html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #2b2d2f;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

.jm-app {
  --g: #8bc34a;
  --g2: #a5d65f;
  --bg: #2b2d2f;
  --bg2: #232527;
  --panel: #383a3d;
  --panel2: #424548;
  --line: #4d5054;
  --mute: #c3c6ca;
  --soft: #9a9ea3;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: #f4f5f6;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

.jm-app *,
.jm-app *::before,
.jm-app *::after {
  box-sizing: border-box;
}

.jm-app img {
  max-width: 100%;
  height: auto;
  display: block;
}

.jm-app a {
  color: var(--g2);
}

.jm-app h1,
.jm-app h2,
.jm-app h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}

.jm-app h2 {
  font-size: 30px;
}

.jm-app h3 {
  font-size: 21px;
}

.jm-app p {
  margin: 0 0 14px;
}

.jm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--g);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}

.jm-btn:hover {
  background: var(--g2);
  transform: translateY(-1px);
}

.jm-btn-s {
  padding: 8px 14px;
  font-size: 15px;
}

.jm-btn-l {
  padding: 16px 28px;
  font-size: 19px;
}

.jm-glow {
  position: relative;
  animation: jm-pulse 2s ease-in-out infinite;
}

@keyframes jm-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 195, 74, 0.6);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(139, 195, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(139, 195, 74, 0);
  }
}

.jm-ghost {
  padding: 7px 14px;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.jm-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

.jm-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.jm-logo img {
  width: 130px;
}

.jm-mainnav {
  flex: 1;
}

.jm-nav,
.jm-dnav,
.jm-fnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.jm-nav a,
.jm-dnav a,
.jm-fnav a {
  color: var(--mute);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.jm-nav a[aria-current="page"],
.jm-nav a:hover {
  color: var(--g);
}

.jm-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.jm-langs {
  position: relative;
}

.jm-langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.jm-langs summary::-webkit-details-marker {
  display: none;
}

.jm-langs ul {
  position: absolute;
  right: 0;
  top: 32px;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.jm-langs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
}

.jm-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.jm-burger span {
  width: 22px;
  height: 2px;
  background: #fff;
}

.jm-drawer {
  display: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

.jm-dnav {
  flex-direction: column;
  gap: 12px;
}

.jm-open .jm-drawer {
  display: block;
}

.jm-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.jm-hero picture {
  position: absolute;
  inset: 0;
}

.jm-hero-bg {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: right center;
}

.jm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(35, 37, 39, 0.9) 0%,
    rgba(35, 37, 39, 0.4) 55%,
    rgba(35, 37, 39, 0) 100%
  );
}

.jm-hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
}

.jm-kicker {
  color: var(--mute);
  font-size: 22px;
  font-weight: 700;
}

.jm-hero h1 {
  max-width: 760px;
  font-size: 52px;
  margin-bottom: 26px;
}

.jm-cards,
.jm-games,
.jm-provs,
.jm-pay,
.jm-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.jm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.jm-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: var(--panel);
}

.jm-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s;
}

.jm-card:hover img {
  transform: scale(1.04);
}

.jm-card span {
  display: block;
  padding: 14px 16px 16px;
}

.jm-card strong {
  display: block;
  color: #fff;
  font-size: 19px;
}

.jm-card small {
  color: var(--mute);
  font-size: 14px;
}

.jm-games ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.jm-games a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.jm-games strong {
  font-size: 15px;
  line-height: 1.25;
}

.jm-games small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.jm-games em {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 16px;
  border-radius: 4px;
  background: var(--g);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.jm-games a:hover em,
.jm-games a:focus em {
  opacity: 1;
}

.jm-g1 a {
  background: radial-gradient(circle at 30% 20%, #e05bb0, #5c1e63 70%);
}

.jm-g2 a {
  background: radial-gradient(circle at 30% 20%, #ffb340, #7a2b0c 70%);
}

.jm-g3 a {
  background: radial-gradient(circle at 30% 20%, #d9b45a, #3d2a10 70%);
}

.jm-g4 a {
  background: radial-gradient(circle at 30% 20%, #59a8ff, #12285e 70%);
}

.jm-g5 a {
  background: radial-gradient(circle at 30% 20%, #4fd1c5, #0d4a52 70%);
}

.jm-g6 a {
  background: radial-gradient(circle at 30% 20%, #a5d65f, #2f4d16 70%);
}

.jm-provs ul,
.jm-pay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jm-provs li {
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--mute);
  font-size: 15px;
  font-weight: 600;
}

.jm-pay li {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--panel);
}

.jm-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.jm-lead p:first-child {
  font-size: 19px;
  color: #fff;
}

.jm-facts {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.jm-facts li {
  padding: 14px;
  border-radius: 6px;
  background: var(--panel);
  border-top: 3px solid var(--g);
}

.jm-facts strong {
  display: block;
  color: var(--g);
  font-size: 20px;
  line-height: 1.2;
}

.jm-facts span {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.4;
}

.jm-block {
  padding-top: 18px;
  scroll-margin-top: 80px;
}

.jm-block ul,
.jm-block ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.jm-block li {
  margin-bottom: 6px;
}

.jm-steps li::marker {
  color: var(--g);
  font-weight: 800;
}

.jm-tip {
  padding: 14px 16px;
  border-left: 4px solid var(--g);
  border-radius: 0 6px 6px 0;
  background: var(--panel);
  color: #fff;
}

.jm-calc,
.jm-table {
  margin: 22px 0;
  padding: 22px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.jm-calc-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.jm-calc-in label span {
  display: block;
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 4px;
}

.jm-calc-in input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg2);
  color: #fff;
  font: inherit;
}

.jm-calc-out {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}

.jm-calc-out div {
  padding: 12px;
  border-radius: 6px;
  background: var(--bg2);
}

.jm-calc-out dt {
  color: var(--soft);
  font-size: 13px;
}

.jm-calc-out dd {
  margin: 0;
  color: var(--g);
  font-size: 22px;
  font-weight: 800;
}

.jm-fine {
  color: var(--soft);
  font-size: 14px;
}

.jm-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.jm-table th,
.jm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.jm-table th {
  color: var(--g);
}

.jm-cta-row {
  margin: 22px 0;
  text-align: center;
}

.jm-faq {
  padding-top: 26px;
}

.jm-faq details {
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--panel);
}

.jm-faq summary {
  padding: 14px 44px 14px 16px;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.jm-faq summary::-webkit-details-marker {
  display: none;
}

.jm-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 10px;
  color: var(--g);
  font-size: 24px;
}

.jm-faq details[open] summary::after {
  content: "\2212";
}

.jm-faq details p {
  padding: 0 16px;
}

.jm-notes {
  margin-top: 26px;
  color: var(--soft);
  font-size: 14px;
}

.jm-notes h2 {
  font-size: 18px;
}

.jm-side {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jm-author,
.jm-toc,
.jm-more {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
}

.jm-author img {
  width: 80px;
  border-radius: 50%;
  border: 3px solid var(--g);
  margin-bottom: 12px;
}

.jm-author blockquote {
  margin: 0 0 12px;
  font-style: italic;
  color: #fff;
}

.jm-author figcaption strong,
.jm-author figcaption span,
.jm-author figcaption small {
  display: block;
}

.jm-author figcaption span {
  color: var(--g);
  font-size: 14px;
}

.jm-author figcaption small {
  color: var(--soft);
  font-size: 13px;
  margin-top: 4px;
}

.jm-toc h2,
.jm-more h2 {
  font-size: 17px;
}

.jm-toc ol,
.jm-more ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}

.jm-toc li,
.jm-more li {
  margin-bottom: 6px;
}

.jm-toc a,
.jm-more a {
  color: var(--mute);
  text-decoration: none;
}

.jm-toc a:hover,
.jm-more a:hover {
  color: var(--g);
}

.jm-pay {
  padding-bottom: 40px;
}

.jm-foot {
  padding: 36px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  text-align: center;
}

.jm-foot > img {
  width: 130px;
  margin: 0 auto 16px;
}

.jm-fnav {
  justify-content: center;
  margin-bottom: 18px;
}

.jm-seal {
  max-width: 820px;
  margin: 0 auto 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  color: var(--soft);
  font-size: 14px;
}

.jm-seal img {
  flex: none;
}

.jm-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.jm-show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1020px) {
  .jm-mainnav {
    display: none;
  }

  .jm-burger {
    display: flex;
  }

  .jm-wrap {
    grid-template-columns: 1fr;
  }

  .jm-side {
    position: static;
  }

  .jm-games ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .jm-app {
    font-size: 16px;
  }

  .jm-app h2 {
    font-size: 24px;
  }

  .jm-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .jm-logo img {
    width: 96px;
  }

  .jm-ghost {
    display: none;
  }

  .jm-hero {
    min-height: 420px;
    align-items: flex-end;
  }

  .jm-hero-bg {
    object-position: center;
  }

  .jm-hero::after {
    background: linear-gradient(
      0deg,
      rgba(35, 37, 39, 0.95) 0%,
      rgba(35, 37, 39, 0.3) 70%
    );
  }

  .jm-hero h1 {
    font-size: 32px;
  }

  .jm-kicker {
    font-size: 17px;
  }

  .jm-btn-l {
    font-size: 17px;
    white-space: normal;
  }

  .jm-cards {
    grid-template-columns: 1fr;
  }

  .jm-games ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .jm-facts,
  .jm-calc-out {
    grid-template-columns: repeat(2, 1fr);
  }

  .jm-calc-in {
    grid-template-columns: 1fr;
  }

  .jm-calc,
  .jm-table {
    padding: 16px;
  }

  .jm-table thead {
    display: none;
  }

  .jm-table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .jm-table td {
    display: block;
    padding: 4px 0;
    border: 0;
  }

  .jm-table td::before {
    content: attr(data-h) ": ";
    color: var(--g);
    font-weight: 700;
  }
}
