/* Dragons & Gems — лендинг. Палитра: ночной сапфир, золото рамок, яркие самоцветы поля. */
@font-face {
  font-family: "MPlus Rounded";
  src: url("../fonts/mplus-rounded-extrabold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --night: #070b24;
  --deep: #0c1440;
  --sapphire: #13235f;
  --sapphire-hi: #1d3690;
  --gold: #f4bd50;
  --gold-hi: #ffe09a;
  --gold-deep: #a9651a;
  --ink: #f1f3ff;
  --muted: #aeb7dd;
  --display: "MPlus Rounded", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1b1200; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.top.is-stuck { background: rgba(7, 11, 36, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(244, 189, 80, .25); }
.top__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.top__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 17px; white-space: nowrap; }
.top__brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1.5px var(--gold); }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; opacity: .85; }
.top__nav a:hover { opacity: 1; color: var(--gold-hi); }
.lang { display: flex; border: 1.5px solid rgba(244, 189, 80, .55); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang a, .lang span { padding: 5px 11px; text-decoration: none; color: var(--ink); }
.lang span { background: var(--gold); color: #241600; }
@media (max-width: 860px) { .top__nav { display: none; } .lang { margin-left: auto; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 16px; border-radius: 14px;
  font-family: var(--display); font-size: 17px; line-height: 1.1; color: #fff; text-decoration: none;
  background: linear-gradient(#2fbf5b, #17853a);
  border: 2px solid #0c5a25;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 6px 0 #0b4a1f, 0 14px 24px rgba(0, 0, 0, .35);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 3px 0 #0b4a1f; }
.btn--store { background: linear-gradient(#1b2a6e, #0d1746); border-color: var(--gold); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 6px 0 #060a24, 0 14px 24px rgba(0, 0, 0, .35); cursor: default; }
.btn--store:hover { transform: none; }
.btn--store[href] { cursor: pointer; }
.btn--store[href]:hover { transform: translateY(-2px); }
.btn--store small { display: block; font: 600 11px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 3px; }
.btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; padding: 104px 0 0; min-height: min(100svh, 900px); display: flex; flex-direction: column; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 36, .78) 0%, rgba(7, 11, 36, .25) 30%, rgba(7, 11, 36, .35) 62%, var(--night) 100%),
    radial-gradient(80% 60% at 20% 45%, rgba(7, 11, 36, .72), transparent 70%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; flex: 1; padding-bottom: 56px; }
.hero__logo { width: min(560px, 100%); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.hero__tag { font-family: var(--display); font-size: clamp(26px, 3.6vw, 44px); margin-top: 22px; text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
.hero__tag em { font-style: normal; color: var(--gold); }
.hero__lead { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; color: #e3e7ff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.hero .stores { margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--muted); text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.hero__stage { position: relative; padding: 0 0 26px 24%; max-width: 480px; justify-self: center; width: 100%; }
.hero__dragonling { position: absolute; left: -4%; bottom: 0; width: 58%; z-index: 2; filter: drop-shadow(0 0 14px rgba(255, 170, 60, .45)) drop-shadow(0 14px 12px rgba(0, 0, 0, .55)); animation: breathe 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scaleY(1.018) scaleX(.994); } }

.phone { position: relative; border-radius: clamp(18px, 3vw, 34px); padding: clamp(6px, 1vw, 11px); background: linear-gradient(145deg, #2b2f45, #0a0c18 60%); box-shadow: 0 0 0 1.5px #474c6b, 0 30px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(42, 95, 224, .28); }
.phone img { border-radius: clamp(14px, 2.4vw, 26px); width: 100%; aspect-ratio: 1179 / 2556; object-fit: cover; }
.hero__stage .phone { transform: rotate(2deg); }

@media (max-width: 900px) {
  .hero { padding-top: 84px; min-height: 0; }
  .hero__in { grid-template-columns: 1fr; padding-bottom: 36px; }
  .hero__copy { text-align: center; }
  .hero__logo { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .hero__stage { max-width: 380px; }
}

/* ---------- Полоса цифр ---------- */
.stats { background: linear-gradient(180deg, var(--night), var(--deep)); padding: 8px 0 44px; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { text-align: center; padding: 18px 8px; border-radius: var(--radius); background: rgba(29, 54, 144, .28); border: 1px solid rgba(244, 189, 80, .28); }
.stats b { display: block; font: 800 clamp(30px, 4vw, 46px)/1 var(--display); color: var(--gold); text-shadow: 0 3px 0 var(--gold-deep); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .stats ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Секции ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sec--deep { background: var(--deep); }
.sec--glow { background: radial-gradient(70% 50% at 50% 0%, rgba(42, 95, 224, .22), transparent 70%), var(--night); }
.sec__head { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 52px); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 9px; height: 13px; background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sec h2 { font-size: clamp(30px, 4.4vw, 50px); }
.sec__head p { margin-top: 16px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }

/* Окно игры: сапфировая панель в золотой рамке */
.panel {
  position: relative; border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, var(--sapphire-hi), var(--sapphire) 55%, #0e1a4b);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 2px rgba(120, 60, 0, .55), inset 0 2px 30px rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .4);
}
.panel h3 { font-size: 21px; }
.panel p { color: #cfd6f6; margin-top: 8px; font-size: 16px; }

/* ---------- Как играть ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; padding: 14px 14px 22px; display: flex; flex-direction: column; }
.step::before { content: counter(step); position: absolute; top: -16px; left: 16px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font: 800 19px/1 var(--display); color: #2a1700; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); box-shadow: 0 4px 0 #6b3d0a; }
.step__art { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #0a1030; border: 1px solid rgba(244, 189, 80, .35); margin-bottom: 16px; position: relative; }
.step__art img { width: 100%; height: 100%; object-fit: cover; }
.step__art--mosaic { background: radial-gradient(circle, #1d3690, #0a1030 75%); }
.step__art--mosaic img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.step h3 { font-size: 20px; padding: 0 6px; }
.step p { padding: 0 6px; font-size: 15.5px; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---------- Мозаика уровней ---------- */
.pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pics li { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; padding: 10%; background: radial-gradient(circle at 50% 40%, rgba(29, 54, 144, .55), rgba(12, 20, 64, .9) 75%); border: 1px solid rgba(244, 189, 80, .3); }
.pics img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transition: transform .25s; }
.pics li:hover img { transform: scale(1.04) rotate(-1deg); }
.pics__more { text-align: center; color: var(--muted); border-style: dashed !important; align-content: center; gap: 8px; }
.pics__more span { font: 800 clamp(48px, 6vw, 72px)/1 var(--display); color: var(--gold); text-shadow: 0 4px 0 var(--gold-deep); }
.pics__more p { font-size: 15px; max-width: 12em; }
@media (max-width: 860px) { .pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Картинка + текст (легенда, гнездо, альбом) ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.duo + .duo { margin-top: clamp(56px, 8vw, 96px); }
.duo--flip .duo__art { order: 2; }
.duo__art { position: relative; padding: 0 22% 18% 0; max-width: 520px; justify-self: center; width: 100%; }
.duo__art--single { padding: 0; max-width: 460px; justify-self: center; width: 100%; }
.duo__art img { border-radius: var(--radius); border: 2px solid var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.duo__art img + img { position: absolute; right: 0; bottom: 0; width: 48%; transform: rotate(3deg); }
.duo__text p { margin-top: 16px; color: #d5dbf7; }
.duo__text p.quote { font-family: var(--display); font-size: 21px; color: var(--gold-hi); padding-left: 18px; border-left: 4px solid var(--gold); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo--flip .duo__art { order: 0; } }

/* ---------- Земли ---------- */
.land__art { position: relative; }
.land__art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.land__num { position: absolute; left: 8px; top: 8px; z-index: 1; min-width: 28px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; font: 800 14px/1 var(--display); color: #2a1700; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); box-shadow: 0 3px 0 #6b3d0a; }
.land-open { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 860px; margin: 0 auto 28px; padding: 16px; }
.land-open .land__num { min-width: 38px; height: 38px; font-size: 18px; left: 12px; top: 12px; }
.land-open h3 { font-size: clamp(26px, 3vw, 36px); }
.land-open p { font-size: 17px; margin-top: 12px; }
.lands { max-width: 860px; margin: 0 auto; text-align: center; }
.lands ol { margin: 0; padding: 0; list-style: none; counter-reset: land 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.lands li { counter-increment: land; font: 800 17px/1.3 var(--display); color: var(--ink); }
.lands li::before { content: counter(land) '. '; color: rgba(255, 224, 154, .85); }
.lands p { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .land-open { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* ---------- Бусты ---------- */
.boosts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.boost { text-align: center; display: grid; justify-items: center; align-content: start; gap: 10px; }
.boost img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.boost p { font-size: 15.5px; }
@media (max-width: 980px) { .boosts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .boosts { grid-template-columns: 1fr; } .boost { grid-template-columns: 64px 1fr; text-align: left; justify-items: start; align-items: center; } .boost img { width: 64px; height: 64px; } }

/* ---------- Честная игра ---------- */
.fair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fair li { padding: 22px; border-radius: var(--radius); background: rgba(29, 54, 144, .22); border: 1px solid rgba(244, 189, 80, .28); }
.fair h3 { font-size: 19px; color: var(--gold-hi); }
.fair p { margin-top: 8px; font-size: 15.5px; color: #cfd6f6; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; } }

/* ---------- Вопросы ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: rgba(29, 54, 144, .28); border: 1px solid rgba(244, 189, 80, .3); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font: 800 18px/1.3 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 26px; color: var(--gold); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 20px; color: #cfd6f6; }

/* ---------- Финал и подвал ---------- */
.final { text-align: center; position: relative; overflow: hidden; background: radial-gradient(60% 80% at 50% 100%, rgba(244, 189, 80, .2), transparent 70%), var(--deep); }
.final__dragonling { width: min(280px, 58vw); margin: 0 auto 10px; filter: drop-shadow(0 0 18px rgba(255, 170, 60, .5)); }
.final h2 { font-size: clamp(30px, 4.6vw, 54px); }
.final p { color: var(--muted); margin: 14px auto 28px; max-width: 34em; }
.final .stores { justify-content: center; }
.foot { padding: 30px 0 40px; font-size: 14px; color: var(--muted); border-top: 1px solid rgba(244, 189, 80, .2); }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot a { color: var(--muted); }

/* ---------- Политика конфиденциальности ---------- */
.doc { padding: 112px 0 72px; background: radial-gradient(70% 40% at 50% 0%, rgba(42, 95, 224, .2), transparent 70%), var(--night); }
.doc__in { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 18px; }
.doc h2 { font-size: 22px; margin-top: 36px; color: var(--gold-hi); }
.doc p { margin-top: 12px; color: #d5dbf7; }
.doc__date { color: var(--muted); font-size: 15px; }
.doc__back { font-size: 15px; text-decoration: none; }

/* Появление при прокрутке */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .hero__dragonling { animation: none; }
}
