@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #100d0f;
  --bg-2: #161214;
  --surface: #1c171a;
  --surface-2: #251f23;
  --line: rgba(244, 237, 228, 0.12);
  --line-strong: rgba(244, 237, 228, 0.22);
  --text: #f4ede4;
  --muted: #bcaea2;
  --amber: #f2b766;
  --amber-ink: #2b1a07;
  --rose: #ec6f86;
  --accent: var(--amber);
  --accent-ink: var(--amber-ink);
  --focus: #ffd48a;
  --radius: 22px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "DejaVu Sans", sans-serif;
  color-scheme: dark;
}

.theme-love {
  --g-bg: #14101c;
  --g-bg-grad: radial-gradient(120% 90% at 85% 0%, rgba(255, 122, 150, 0.22), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(255, 154, 122, 0.12), transparent 60%), #14101c;
  --g-surface: #1f1829;
  --accent: #f4798f;
  --accent-ink: #2a0b16;
  --accent-2: #ffa587;
}
.theme-norm {
  --g-bg: #1a1225;
  --g-bg-grad: radial-gradient(110% 80% at 100% 0%, rgba(45, 212, 167, 0.16), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(255, 107, 93, 0.14), transparent 60%), #1a1225;
  --g-surface: #241a33;
  --accent: #2dd4a7;
  --accent-ink: #0b2a22;
  --accent-2: #ff6b5d;
}
.theme-dvoe {
  --g-bg: #1e0f1c;
  --g-bg-grad: radial-gradient(100% 70% at 90% 0%, rgba(239, 186, 100, 0.14), transparent 55%), linear-gradient(160deg, #3a1733 0%, #22101f 55%, #120915 100%);
  --g-surface: #2c1529;
  --accent: #f78192;
  --accent-ink: #2e0b14;
  --accent-2: #efba64;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70rem 36rem at 80% -12rem, rgba(242, 166, 94, 0.13), transparent 70%),
    radial-gradient(50rem 30rem at -10% 10rem, rgba(236, 111, 134, 0.07), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; outline: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.25rem, 8.5vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 5.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
ul, ol { padding-left: 1.25em; }
li { margin: 0.3em 0; }
code { font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }
mark.todo { background: #ffd400; color: #000; padding: 0 0.3em; border-radius: 4px; font-weight: 700; font-family: ui-monospace, monospace; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--amber); color: var(--amber-ink); padding: 0.75rem 1rem; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(16, 13, 15, 0.72); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap; }
.brand img { display: block; border-radius: 9px; }
.top-nav { display: flex; align-items: center; gap: 0.9rem; }
.top-nav > a { color: var(--text); text-decoration: none; font-size: 0.95rem; padding: 0.5rem 0.1rem; }
.top-nav > a:hover, .top-nav > a[aria-current] { text-decoration: underline; color: var(--amber); }
.langs { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.langs li { margin: 0; }
.langs a { display: block; min-width: 2.35rem; padding: 0.35rem 0.5rem; border-radius: 999px; text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: var(--surface-2); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; text-align: center; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); filter: none; }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .langs a { transition: filter 0.15s ease, border-color 0.15s ease, transform 0.2s ease, background-color 0.15s ease; }
}

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--amber); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.lead p:last-child { margin-bottom: 0; }

.hero { padding-top: clamp(3rem, 12vw, 7rem); padding-bottom: clamp(2rem, 7vw, 4rem); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-cta { margin-top: 1.75rem; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 3rem; align-items: center; }
  .hero > :not(.hero-art) { grid-column: 1; }
  .hero-art { display: block; grid-column: 2; grid-row: 1 / span 4; position: relative; height: 18rem; }
  .hero-icon { position: absolute; width: 9.5rem; height: 9.5rem; border-radius: 22%; box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.45); }
  .hero-icon-love { left: 0; top: 1.5rem; transform: rotate(-9deg); }
  .hero-icon-norm { right: 0; top: 0; transform: rotate(7deg); }
  .hero-icon-dvoe { left: 5rem; bottom: 0; transform: rotate(-2deg); }
}

.section { padding-top: clamp(2rem, 7vw, 3.5rem); padding-bottom: clamp(1rem, 4vw, 2rem); }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.35rem; border-radius: var(--radius); background: var(--g-bg-grad, var(--surface)); border: 1px solid var(--line); color: var(--text); }
.card:hover { border-color: var(--line-strong); }
.card-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.9rem; }
.app-icon { display: block; flex: none; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4); }
.app-icon-lg { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 1.25rem; }
.card-title { font-size: 1.6rem; margin: 0 0 0.35rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-phrase { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; margin-bottom: 0.75rem; }
.card-for { color: var(--muted); font-size: 0.97rem; }
.card-for .label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.15rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.75rem; margin-bottom: 0; }
.card .card-actions .btn { flex: 1 1 11rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.chip-age { border-color: var(--accent); color: var(--accent); }
.chip-soon { background: var(--accent-2, var(--amber)); color: #1d0e08; border-color: transparent; }
.chip-lang { color: var(--muted); font-weight: 500; }

.name-norm { font-family: "Unbounded", var(--sans); font-weight: 800; letter-spacing: -0.01em; }
.card-title.name-norm { font-size: 1.3rem; }

.stores { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.store-badge { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.9rem; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text); font-size: 0.85rem; text-decoration: none; }
.store-badge.is-soon { color: var(--muted); }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { margin: 0; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.principles h3 { color: var(--amber); font-size: 1.2rem; }
.principles p { color: var(--muted); margin: 0; }

.page-game main { background: var(--g-bg); }
.game-hero { background: var(--g-bg-grad); border-bottom: 1px solid var(--line); }
.game-hero-inner { padding-top: clamp(1.25rem, 5vw, 2.5rem); padding-bottom: clamp(2rem, 7vw, 3.5rem); }
.game-hero h1 { margin-bottom: 0.35em; }
.game-hero h1.name-norm { font-size: clamp(2rem, 8vw, 3.5rem); }
.game-hero .lead { color: var(--text); opacity: 0.88; margin-bottom: 1rem; }
.game-hero .chips { margin-bottom: 1.25rem; }
.game-hero .card-actions { padding-top: 0; }
.crumbs { font-size: 0.92rem; margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.crumbs a::before { content: "\2190\00a0"; }
.soon-note { margin: 0; padding: 0.9rem 1.1rem; border-radius: 16px; border: 1px dashed var(--accent-2); color: var(--text); max-width: 36rem; }

.prose { max-width: 42rem; }
.prose p:last-child { margin-bottom: 0; }

.gallery { list-style: none; margin: 0 -1.25rem; padding: 0.25rem 1.25rem 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 250px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.25rem; overscroll-behavior-x: contain; }
.gallery li { margin: 0; scroll-snap-align: start; }
@media (min-width: 900px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0.25rem 0 1rem; }
}
.phone { margin: 0; padding: 7px; border-radius: 34px; background: #070506; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.phone img { display: block; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 27px; background: var(--g-surface, var(--surface)); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0.75rem; max-width: 44rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.9rem; align-items: start; margin: 0; padding: 1rem; border-radius: 18px; background: var(--g-surface, var(--surface)); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-family: var(--serif); font-size: 1.15rem; }

.modes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.modes li { margin: 0; padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.modes h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--accent); font-family: var(--sans); font-weight: 700; }
.modes p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.age-box { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; max-width: 46rem; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--accent); }
@media (min-width: 40rem) { .age-box { flex-direction: row; gap: 1.25rem; } }
.age-big { flex: none; font-family: var(--serif); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--accent); }

.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.link-list li { margin: 0; }
.link-list a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; }
.link-list a:hover { border-color: var(--accent); }

.other-games { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .other-games { grid-template-columns: repeat(2, 1fr); } }
.other-games li { margin: 0; }
.other-games a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 18px; background: var(--g-bg-grad); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.other-games a:hover { border-color: var(--line-strong); }
.other-games img { border-radius: 11px; }
.other-games .name-norm { font-size: 1rem; }

.doc { max-width: 48rem; padding-top: clamp(2rem, 8vw, 4rem); padding-bottom: 3rem; }
.doc-header { margin-bottom: 2rem; }
.doc-header h1 { font-size: clamp(1.6rem, 7vw, 3.25rem); }
.updated { color: var(--muted); font-size: 0.95rem; }
.doc h2 { margin-top: 0; }
.doc-section { padding: 1.75rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.doc-section p, .doc-section li { color: #e6ddd3; }
.doc-game { border-top: 0; margin: 1rem -1.25rem; padding: 1.5rem 1.25rem; background: var(--g-bg-grad); border-radius: 0; }
@media (min-width: 640px) { .doc-game { margin: 1.25rem 0; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); } }
.doc-game h2 { color: var(--text); }
.doc-game a:not(.btn) { color: var(--accent); }
.doc h3 { font-size: 1.1rem; font-family: var(--sans); margin-top: 1.25rem; }
.note { color: var(--muted); font-size: 0.95rem; padding-left: 0.9rem; border-left: 3px solid var(--line-strong); }

.toc { margin: 0 0 1rem; padding: 1rem 1.25rem; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.toc-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc a { color: var(--text); }

.contact-card { padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(242, 183, 102, 0.12), rgba(236, 111, 134, 0.06)), var(--surface); border: 1px solid var(--line-strong); margin-bottom: 2rem; }
.contact-card h2 { font-size: 1.35rem; }
.contact-email { font-size: clamp(1.15rem, 5vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-email a { color: var(--amber); }
.contact-card p:last-child { margin-bottom: 0; }

.faq-group { padding-top: 1.5rem; scroll-margin-top: 1rem; }
.faq-group h3 { font-size: 1.35rem; color: var(--accent); }
.faq-group h3.name-norm { font-size: 1.1rem; }
details { border: 1px solid var(--line); border-radius: 16px; margin: 0 0 0.6rem; background: var(--bg-2); }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; padding: 0.95rem 2.75rem 0.95rem 1.1rem; font-weight: 650; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.1rem; top: 0.8rem; font-size: 1.3rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
.answer { padding: 0 1.1rem 1rem; color: #e6ddd3; }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0; }

.del-action { margin: 1.25rem 0 0.5rem; }
.del-subject { font-size: 0.9rem; color: var(--muted); }

.facts { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .facts div { grid-template-columns: 12rem 1fr; gap: 1rem; } }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 600; }

.not-found { padding-top: clamp(3rem, 14vw, 7rem); padding-bottom: 4rem; }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: #0c0a0b; color: var(--muted); font-size: 0.95rem; }
.page-game .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: 1.75rem; padding-top: 2.5rem; padding-bottom: 1.5rem; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 0.6rem 0 0; max-width: 22rem; }
.footer-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #9a8c80; margin-bottom: 0.5rem; }
.site-footer ul:not(.langs) { list-style: none; padding: 0; margin: 0; }
.site-footer ul:not(.langs) li { margin: 0; }
.site-footer ul:not(.langs) a { display: inline-block; padding: 0.3rem 0; color: var(--text); text-decoration: none; }
.site-footer ul:not(.langs) a:hover { text-decoration: underline; color: var(--amber); }
.footer-lang .langs { display: inline-flex; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 2rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }

.lang-hint { position: fixed; left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'text close' 'go go'; align-items: center; gap: 0.5rem 0.75rem; padding: 0.75rem 0.75rem 0.75rem 1rem; border-radius: 18px; background: #231c20; border: 1px solid var(--line-strong); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); max-width: 36rem; margin: 0 auto; }
.lang-hint[hidden] { display: none; }
.lang-hint-text { grid-area: text; margin: 0; font-size: 0.95rem; line-height: 1.35; }
.lang-hint .btn { grid-area: go; justify-self: start; --accent: var(--amber); --accent-ink: var(--amber-ink); }
@media (min-width: 34rem) { .lang-hint { grid-template-columns: 1fr auto auto; grid-template-areas: 'text go close'; } }
.lang-hint-close { grid-area: close; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lang-hint-close:hover { color: var(--text); background: var(--surface-2); }

@media (max-width: 34rem) {
  .header-row .brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) {
  .top-nav { gap: 0.5rem; }
  .langs a { min-width: 2.1rem; padding: 0.35rem 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
