/* Квиз «Какой сервер Minecraft тебе нужен» — стиль «настольная игра»: светлое игровое поле в клетку, карточки-квесты
   с толстым контуром и «печатной» тенью, фишка на клетчатом маршруте, кубик. Шрифт — округлый Nunito.
   Не воксели и не пиксели (это mcserver и games первой волны). */
:root {
  --paper: #f6efdf;
  --paper2: #eee3c8;
  --card: #fffdf7;
  --ink: #24304a;
  --mut: #5b6478;
  --line: #24304a;
  --red: #e0533f;
  --blue: #2b62c9;
  --blue-d: #1f4ea6;
  --green: #2f9a5d;
  --yellow: #f2b632;
  --red-l: #fbdcd5;
  --blue-l: #d9e5fb;
  --green-l: #d5efdf;
  --yellow-l: #fcecc1;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
  --sh: 0 5px 0 var(--ink);

  --lf-fg: var(--ink);
  --lf-muted: var(--mut);
  --lf-field: #fff;
  --lf-field-fg: var(--ink);
  --lf-border: #b9b2a0;
  --lf-accent: var(--blue);
  --lf-accent-fg: #fff;
  --lf-chip: #fff;
  --lf-chip-active: var(--blue);
  --lf-chip-active-fg: #fff;
  --lf-radius: 14px;
  --lf-error: #c0392b;
  --cta-glow: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--sans); }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
svg { flex: 0 0 auto; }

/* A/B mcquiz_gift: до выбора варианта обе версии скрыты, потом видна своя */
main [data-abv] { display: none !important; }
body[data-abv="A"] main [data-abv="A"], body[data-abv="B"] main [data-abv="B"] { display: revert !important; }
body[data-abv="A"] main .hero-prize[data-abv="A"], body[data-abv="B"] main .hero-prize[data-abv="B"] { display: flex !important; }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 239, 223, .92); backdrop-filter: blur(8px); border-bottom: 2.5px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 19px; }
.logo svg { width: 34px; height: 34px; }
.logo small { display: block; font-weight: 700; font-size: 11.5px; color: var(--mut); letter-spacing: .03em; margin-top: 1px; }
.logo span { line-height: 1.05; }
.role { display: flex; gap: 3px; padding: 3px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; }
.role button { font: 800 14px var(--sans); color: var(--mut); background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.role button.is-active { background: var(--yellow); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; background: var(--blue); color: #fff;
  font: 900 17.5px var(--sans); text-decoration: none; white-space: nowrap; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--sh);
  transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }

/* ── первый экран ── */
.hero { position: relative; padding: 26px 0 34px; overflow: hidden; }
.board-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 72% 46%, rgba(255, 253, 247, .85), transparent 70%),
    repeating-conic-gradient(rgba(36, 48, 74, .045) 0 25%, transparent 0 50%) 0 0 / 72px 72px; }
.board-bg::before, .board-bg::after { content: ""; position: absolute; border-radius: 50%; border: 2.5px solid var(--ink); }
.board-bg::before { width: 46px; height: 46px; left: 4%; bottom: 9%; background: var(--green); box-shadow: 0 5px 0 var(--ink); opacity: .9; }
.board-bg::after { width: 30px; height: 30px; left: 41%; top: 10%; background: var(--yellow); box-shadow: 0 4px 0 var(--ink); opacity: .9; }
.hero > .wrap { max-width: 1440px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 14px 7px 10px; font-weight: 800; font-size: 15px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.kicker svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 2; }
.kicker svg circle { fill: var(--red); stroke: none; }
h1 { font-size: clamp(36px, 3.5vw, 62px); line-height: 1.06; }
h1 mark { background: none; color: inherit; position: relative; white-space: nowrap; z-index: 0; }
h1 mark::before { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .42em; background: var(--yellow); border-radius: .2em; z-index: -1; transform: rotate(-1.2deg); }
.hero-prize { align-items: center; gap: 18px; margin-top: 30px; }
.hero-prize p { margin: 0; display: flex; flex-direction: column; font-size: 15.5px; color: var(--mut); line-height: 1.35; }
.hero-prize p b { font-size: 20px; color: var(--ink); font-weight: 900; }
.book { width: 96px; flex: 0 0 auto; transform: rotate(-6deg); border: 2.5px solid var(--ink); border-radius: 6px 10px 10px 6px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: #fff; }
.book img { display: block; width: 100%; height: auto; }
.hand { display: flex; flex: 0 0 auto; }
.hand i { width: 58px; height: 80px; display: grid; place-items: center; font: 900 30px var(--sans); font-style: normal; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--blue-l) 0 6px, #fff 6px 12px); box-shadow: 0 4px 0 var(--ink); }
.hand i:nth-child(1) { transform: rotate(-9deg) translateY(4px); }
.hand i:nth-child(2) { margin-left: -16px; z-index: 1; background: repeating-linear-gradient(45deg, var(--red-l) 0 6px, #fff 6px 12px); }
.hand i:nth-child(3) { margin-left: -16px; transform: rotate(9deg) translateY(4px); background: repeating-linear-gradient(45deg, var(--green-l) 0 6px, #fff 6px 12px); }
.micro { margin: 26px 0 0; font-weight: 700; font-size: 15px; color: var(--mut); }

/* поле-маршрут над карточкой */
.quest { position: relative; }
.track { position: relative; list-style: none; margin: 0 0 18px; padding: 0 0 0 4px; display: flex; gap: 8px; align-items: flex-start; }
.track li { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; font-weight: 900; font-size: 17px; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); transition: background .3s, transform .3s; }
.track li:nth-child(even) { margin-top: 10px; }
.track li svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.track li.t-star svg { fill: var(--yellow); }
.track li:nth-child(4n+1).is-past { background: var(--red-l); }
.track li:nth-child(4n+2).is-past { background: var(--blue-l); }
.track li:nth-child(4n+3).is-past { background: var(--green-l); }
.track li:nth-child(4n).is-past { background: var(--yellow-l); }
.track li.is-here { background: var(--yellow); }
.track li.t-fin { background: var(--ink); }
.track li.t-fin svg { stroke: #fff; }
.pawn { position: absolute; left: 0; top: 0; width: 28px; height: 36px; pointer-events: none; z-index: 2;
  transform: translate(calc(var(--x, 27px) - 14px), calc(var(--y, 0px) - 26px)); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.pawn svg { display: block; width: 100%; height: 100%; }

.quest-card { position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); }
.quest-band { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 22px; background: var(--blue); color: #fff;
  border-bottom: 3px solid var(--ink); border-radius: 21px 21px 0 0; font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.dice { width: 40px; height: 40px; margin: -2px 0; }
.dice rect { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.dice .pips { fill: var(--ink); }
.dice.roll { animation: roll .55s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes roll { 0% { transform: rotate(-200deg) scale(.7); } 100% { transform: none; } }

/* квиз внутри карточки (каркас — _shared/quiz.css) */
.quest-card .qz { padding: 18px 26px 26px; --qz-q-size: clamp(22px, 1.9vw, 29px); --qz-border: var(--ink); --qz-opt-on-bg: var(--yellow); }
.quest-card .qz-progress { visibility: hidden; }
.quest-card .qz-head { min-height: 34px; }
.quest-card .qz-count { font-weight: 800; font-size: 14px; color: var(--mut); }
.quest-card .qz { scroll-margin-top: 170px; }
.quest-card .qz[data-step="result"] .qz-count { visibility: hidden; }
.quest-card .qz-back { border: 2px solid var(--ink); }
.qz-q { font-weight: 900; letter-spacing: -.01em; }
.qz-opts { gap: 12px; }
.qz-opt { min-height: 80px; padding: 12px 16px; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); background: #fff;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; column-gap: 12px; row-gap: 0; }
.qz-opt:not(:has(.qz-ico)) { grid-template-columns: minmax(0, 1fr); }
.qz-opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.qz-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.qz-opt.is-on { background: var(--yellow); border-color: var(--ink); }
.qz-opt .qz-ot { font-weight: 800; font-size: 18px; }
.qz-opt small { grid-column: 2; margin-top: -1px; font-weight: 600; }
.qz-opt:not(:has(.qz-ico)) small { grid-column: 1; }
.qz-ico { grid-row: span 2; width: 42px; height: 42px; margin: 0; padding: 7px; border-radius: 12px; border: 2px solid var(--ink); }
.qz-opt:has(small) .qz-ot { align-self: end; }
.qz-opt:not(:has(small)) .qz-ico { grid-row: auto; }
.qz-opt small { align-self: start; }
.qz-opt:nth-child(4n+1) .qz-ico { background: var(--red-l); color: #a8321f; }
.qz-opt:nth-child(4n+2) .qz-ico { background: var(--blue-l); color: var(--blue-d); }
.qz-opt:nth-child(4n+3) .qz-ico { background: var(--green-l); color: #1f6e40; }
.qz-opt:nth-child(4n) .qz-ico { background: var(--yellow-l); color: #8a5d00; }
.qz-opt.is-on .qz-ico { background: #fff; }
.qz-opts--many .qz-opt { min-height: 60px; justify-items: center; text-align: center; }
.qz-opts--many .qz-ot { font-size: 18px; }
.qz-next { border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--sh); font-weight: 900; font-size: 17px; min-height: 54px; }
.qz-next:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.qz-micro { font-weight: 700; }
.qz-gift-line { font-weight: 700; }
.qz .lf-submit { border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--sh); font-weight: 900; }
.qz .lf-day, .qz .lf-time { border-width: 2px; border-color: var(--ink); font-weight: 800; }
.qz .lf-input { border-width: 2px; }

/* итог квиза */
.res-k { margin: 0 0 2px; font-weight: 800; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.res-cards { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.res-cards li { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px 11px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink); border-top-width: 10px; animation: deal .45s cubic-bezier(.3, 1.3, .5, 1) both; }
.res-cards li:nth-child(2) { animation-delay: .08s; } .res-cards li:nth-child(3) { animation-delay: .16s; } .res-cards li:nth-child(4) { animation-delay: .24s; }
@keyframes deal { from { opacity: 0; transform: translateY(-14px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .res-cards li { animation: none; } .pawn { transition: none; } }
.res-cards b { font-weight: 900; font-size: 15.5px; line-height: 1.15; }
.res-cards span { font-size: 12.5px; line-height: 1.3; color: var(--mut); font-weight: 600; }
.rc-paper { border-top-color: var(--ink) !important; background: var(--paper) !important; }
.rc-red { border-top-color: var(--red) !important; } .rc-blue { border-top-color: var(--blue) !important; }
.rc-green { border-top-color: var(--green) !important; } .rc-yellow { border-top-color: var(--yellow) !important; }
.res-h { margin: 0 0 4px; font-weight: 900; font-size: 16px; }
.res-list { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; }
.res-list li { position: relative; padding-left: 24px; margin-bottom: 3px; }
.res-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--green); }
.res-note { margin: 10px 0 0; padding: 9px 12px; font-size: 14px; line-height: 1.4; background: var(--yellow-l); border: 2px dashed #c79a2a; border-radius: 12px; }

/* ── секции ── */
.sec { padding: 92px 0; position: relative; }
.sec-felt { background: var(--paper2); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.sec-k { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 900; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.chip { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.c-red { background: var(--red); } .c-blue { background: var(--blue); } .c-green { background: var(--green); } .c-yellow { background: var(--yellow); }
h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.1; max-width: 900px; }
.sec-sub { margin: 14px 0 0; font-size: 18px; color: var(--mut); max-width: 760px; font-weight: 600; }

/* шесть ходов: грани кубика */
.moves { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.moves li { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); }
.moves em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--red); margin-top: 10px; }
.moves b { font-size: 21px; font-weight: 900; }
.moves li > span:not(.die) { color: var(--mut); font-weight: 600; }
.die { --pip: radial-gradient(circle, var(--ink) 0 4.2px, transparent 4.8px); width: 52px; height: 52px; border: 2.5px solid var(--ink); border-radius: 13px;
  background-color: #fff; background-repeat: no-repeat; background-size: 18px 18px; box-shadow: 0 3px 0 var(--ink); }
.d1 { background-image: var(--pip); background-position: 50% 50%; }
.d2 { background-image: var(--pip), var(--pip); background-position: 12% 12%, 88% 88%; }
.d3 { background-image: var(--pip), var(--pip), var(--pip); background-position: 12% 12%, 50% 50%, 88% 88%; }
.d4 { background-image: var(--pip), var(--pip), var(--pip), var(--pip); background-position: 12% 12%, 88% 12%, 12% 88%, 88% 88%; }
.d5 { background-image: var(--pip), var(--pip), var(--pip), var(--pip), var(--pip); background-position: 12% 12%, 88% 12%, 50% 50%, 12% 88%, 88% 88%; }
.d6 { background-image: var(--pip), var(--pip), var(--pip), var(--pip), var(--pip), var(--pip); background-position: 15% 10%, 85% 10%, 15% 50%, 85% 50%, 15% 90%, 85% 90%; }
.moves li:nth-child(1) .die, .moves li:nth-child(4) .die { background-color: var(--red-l); }
.moves li:nth-child(2) .die, .moves li:nth-child(5) .die { background-color: var(--blue-l); }
.moves li:nth-child(3) .die, .moves li:nth-child(6) .die { background-color: var(--green-l); }

/* экраны */
.screens { margin-top: 40px; display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.screens > * { min-width: 0; }
.shot { margin: 0; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.shot img, .shot video { display: block; width: 100%; height: auto; border-bottom: 2.5px solid var(--ink); background: #fff; }
.shot figcaption { padding: 12px 16px 14px; font-size: 14.5px; color: var(--mut); line-height: 1.45; font-weight: 600; }
.shot figcaption b { color: var(--ink); }
.shot-main { grid-row: span 2; align-self: start; }

/* маршрут: змейка из клеток */
.route { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 40px; }
.route li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); }
.route b { font-size: 19px; font-weight: 900; line-height: 1.2; }
.route li > span:not(.cell-n) { font-size: 14.5px; color: var(--mut); font-weight: 600; line-height: 1.4; }
.route em { font-style: normal; font-weight: 800; font-size: 13.5px; margin-top: auto; padding-top: 8px; }
.cell-n { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 6px; font-weight: 900; font-size: 19px; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; }
.cell-n svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.r-red .cell-n { background: var(--red-l); } .r-blue .cell-n { background: var(--blue-l); } .r-green .cell-n { background: var(--green-l); } .r-yellow .cell-n { background: var(--yellow-l); }
.r-fin { background: var(--ink) !important; color: #fff; }
.r-fin .cell-n { background: var(--red); }
.r-fin > span:not(.cell-n) { color: #cfd6e4 !important; }
.route li:first-child em { color: var(--green); }
/* соединители: ряд 1 слева направо, вниз, ряд 2 справа налево */
.route li::after { content: ""; position: absolute; border: 0 dashed var(--ink); }
.route li:nth-child(-n+3)::after { left: 100%; top: 40px; width: 40px; border-top-width: 3px; }
.route li:nth-child(4)::after { top: 100%; left: 50%; height: 46px; border-left-width: 3px; }
.route li:nth-child(5)::after, .route li:nth-child(6)::after { right: 100%; top: 40px; width: 40px; border-top-width: 3px; }
.route li:nth-child(5) { grid-column: 4; grid-row: 2; }
.route li:nth-child(6) { grid-column: 3; grid-row: 2; }
.route li:nth-child(7) { grid-column: 2; grid-row: 2; }
.route-note { grid-column: 1; margin: 34px 0 0; font-weight: 700; color: var(--mut); max-width: 720px; }

/* книга админа */
.kniga { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.kniga > * { min-width: 0; }
.kniga-cover { transform: rotate(-4deg); border: 3px solid var(--ink); border-radius: 8px 14px 14px 8px; overflow: hidden; box-shadow: 12px 12px 0 var(--ink); background: #fff; }
.kniga-cover img { display: block; width: 100%; height: auto; }
.kniga-text > p { font-size: 17.5px; color: var(--mut); font-weight: 600; margin: 16px 0 0; max-width: 680px; }
.deck { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.deck li { display: flex; flex-direction: column; padding: 10px 12px 12px; background: #fff; border: 2.5px solid var(--ink); border-top-width: 9px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.deck b { font-weight: 900; font-size: 15.5px; }
.deck span { font-size: 13px; color: var(--mut); font-weight: 600; line-height: 1.3; }
.k-red { border-top-color: var(--red) !important; } .k-blue { border-top-color: var(--blue) !important; }
.k-green { border-top-color: var(--green) !important; } .k-yellow { border-top-color: var(--yellow) !important; }
.kniga-more { font-size: 16px !important; color: var(--ink) !important; }
.kniga .btn { margin-top: 26px; }

/* вопросы */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-wrap > * { min-width: 0; }
.faq-side { color: var(--mut); font-weight: 600; margin: 16px 0 0; }
.faq details { background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 900; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center;
  font-weight: 900; font-size: 20px; line-height: 1; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow-l); }
.faq details[open] summary::after { content: "−"; background: var(--yellow); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--mut); font-weight: 600; }

/* финиш */
.finish { padding: 64px 0; background: var(--blue); color: #fff; border-top: 2.5px solid var(--ink); }
.finish-in { display: flex; align-items: center; gap: 36px; }
.finish-in > div:nth-child(2) { flex: 1; min-width: 0; }
.finish h2 { color: #fff; font-size: clamp(26px, 2.6vw, 38px); }
.finish p { margin: 8px 0 0; font-weight: 700; color: #dbe6fb; }
.finish-dice { display: flex; gap: 10px; }
.finish-dice .die:first-child { transform: rotate(-12deg); }
.finish-dice .die:last-child { transform: rotate(10deg) translateY(8px); background-color: var(--yellow-l); }
.finish .btn { background: var(--yellow); color: var(--ink); }
.finish .btn:hover { background: #ffc94a; }

/* подвал */
.foot { padding: 34px 0 44px; font-size: 13.5px; color: var(--mut); font-weight: 600; }
.foot-in { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--ink); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.analytics-note, .foot-tm { margin: 0; font-size: 12.5px; }

/* ── адаптив ── */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr minmax(0, 560px); gap: 36px; }
  .deck { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-prize { margin-top: 20px; }
  .micro { margin-top: 16px; }
  .moves { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr; }
  .shot-main { grid-row: auto; }
  .route { grid-template-columns: 1fr 1fr; gap: 30px; }
  .route li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .route li::after { display: none; }
  .kniga { grid-template-columns: 1fr; gap: 36px; }
  .kniga-cover { width: 240px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .top-in { height: 56px; gap: 8px; }
  .logo { font-size: 16px; gap: 7px; }
  .logo svg { width: 28px; height: 28px; }
  .logo small { display: none; }
  .top .btn-sm { display: none; }
  .role button { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
  .board-bg::before, .board-bg::after { display: none; }
  .hero { padding: 14px 0 26px; }
  .kicker { font-size: 13px; margin-bottom: 12px; padding: 5px 11px 5px 8px; }
  .kicker svg { width: 18px; height: 18px; }
  h1 { font-size: 29px; }
  .hero-prize { margin-top: 14px; gap: 14px; }
  .hero-prize p { font-size: 13.5px; }
  .hero-prize p b { font-size: 16.5px; }
  .book { width: 48px; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
  .hand i { width: 34px; height: 46px; font-size: 18px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
  .hand i:nth-child(n+2) { margin-left: -10px; }
  .micro { font-size: 13.5px; margin-top: 12px; }
  .track { gap: 4px; margin-bottom: 14px; padding-left: 0; }
  .track li { width: 34px; height: 34px; font-size: 14px; border-radius: 9px; border-width: 2px; }
  .track li:nth-child(even) { margin-top: 6px; }
  .track li svg { width: 17px; height: 17px; }
  .pawn { width: 22px; height: 28px; transform: translate(calc(var(--x, 17px) - 11px), calc(var(--y, 0px) - 20px)); }
  .quest-band { padding: 8px 10px 8px 16px; font-size: 12.5px; }
  .dice { width: 32px; height: 32px; }
  .quest-card .qz { padding: 12px 14px 18px; scroll-margin-top: 158px; }
  .qz-next--main { font-size: 15.5px; padding: 0 12px; }
  .qz-opts { gap: 9px; }
  .qz-opt { min-height: 56px; padding: 8px 12px; box-shadow: 0 3px 0 var(--ink); }
  .qz-ico { width: 34px; height: 34px; padding: 5px; }
  .qz-opts--many { grid-template-columns: repeat(3, 1fr) !important; }
  .qz-opts--many .qz-opt { min-height: 50px; padding: 6px; }
  .qz-opts--many .qz-ot { font-size: 16px; }
  .res-cards { grid-template-columns: 1fr 1fr; }
  .sec { padding: 64px 0; }
  .sec-sub { font-size: 16px; }
  .moves { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .moves li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 2px; padding: 18px; }
  .moves li .die { grid-row: span 3; }
  .moves em { margin-top: 0; }
  .route { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .route li:nth-child(n)::after { display: block; top: 100%; left: 38px; right: auto; width: 0; height: 22px; border-top-width: 0; border-left-width: 3px; }
  .route li:nth-child(n):last-child::after { display: none; }
  .deck { grid-template-columns: 1fr 1fr; }
  .kniga-cover { width: 190px; }
  .finish-in { flex-direction: column; align-items: flex-start; gap: 20px; }
  .finish .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
}
