/* sine.games — общая таблица стилей: лендинг студии с HOTSHOTS, политика, условия, поддержка (EN и RU).
   Тёмная тема в цветах иконки HOTSHOTS: сливовый фон, красно-оранжевый акцент, жёлтая вспышка выстрела.
   Заголовки — Press Start 2P (Google Fonts, OFL, есть кириллица), текст — системный шрифт. */
:root {
  --bg: #120c0f;
  --bg-2: #1a1115;
  --card: #21161b;
  --card-2: #2a1c22;
  --text: #f6efe9;
  --text-soft: #e2d6cf;
  --muted: #ab9a96;
  --red: #d7262b;
  --orange: #ec5a2a;
  --flash: #ffd86b;
  --ink: #170a08;
  --line: rgba(246, 239, 233, 0.09);
  --line-strong: rgba(246, 239, 233, 0.16);
  --gutter: 16px;
  --max: 1120px;
  --pixel: "Press Start 2P", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flash); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--flash); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 12, 15, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }
.brand .wave { display: inline-block; width: 26px; height: 14px; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 3px 8px; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--text); color: var(--bg); }
@media (max-width: 600px) {
  .site-nav { gap: 12px; font-size: 14px; }
  .site-nav .nav-extra { display: none; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- Типографика ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.35; }
h2 { font-family: var(--pixel); font-size: clamp(17px, 3.2vw, 26px); letter-spacing: 0.01em; }
h3 { font-family: var(--pixel); font-size: 13px; line-height: 1.6; color: var(--flash); }
.eyebrow { display: inline-block; font-family: var(--pixel); font-size: 11px; color: var(--orange); margin-bottom: 16px; letter-spacing: 0.04em; }
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--text-soft); margin-top: 18px; max-width: 36em; }

/* ---------- Кнопки ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px;
  font-family: var(--pixel); font-size: 12px; line-height: 1.3; letter-spacing: 0.02em; white-space: nowrap;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--orange); }
.btn-soon { background: var(--card-2); color: var(--text-soft); border-color: var(--line-strong); box-shadow: 4px 4px 0 rgba(0,0,0,.5); cursor: default; }
.btn-soon:active { transform: none; box-shadow: 4px 4px 0 rgba(0,0,0,.5); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { display: block; font-family: inherit; font-size: 9px; opacity: .75; margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #1b1016; border-bottom: 4px solid var(--ink); }
.hero picture img { width: 100%; height: clamp(420px, 70vh, 640px); object-fit: cover; object-position: 30% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,15,0) 30%, rgba(18,12,15,.55) 65%, var(--bg) 100%); pointer-events: none; }
.hero-inner { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 36px; }
.hero-logo { width: min(440px, 78vw); margin-bottom: 14px; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.6)); }
.hero .tagline { font-family: var(--pixel); font-size: clamp(11px, 1.8vw, 14px); line-height: 1.8; color: var(--flash); text-shadow: 2px 2px 0 #000; max-width: 34em; }
.hero .btns { margin-top: 22px; }
@media (max-width: 700px) {
  .hero picture img { height: 360px; object-position: 16% 40%; }
  .hero::after { background: linear-gradient(180deg, rgba(18,12,15,0) 0, rgba(18,12,15,0) 200px, var(--bg) 360px); }
  .hero-inner { position: relative; margin-top: -110px; }
}

/* ---------- Секции ---------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }

.studio { background: var(--bg); padding-top: 40px; }
.studio .card { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .studio .card { grid-template-columns: auto 1fr; gap: 28px; } }
.studio .mark { width: 96px; height: 96px; }

.card { background: var(--card); border: 1px solid var(--line); padding: 22px; }
@media (min-width: 720px) { .card { padding: 28px 32px; } }

/* Фича: картинка + текст, чередуются */
.feature { display: grid; gap: 24px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 56px 0; }
  .feature.flip .media { order: 2; }
}
.feature p + p { margin-top: 12px; }
.feature .text p { color: var(--text-soft); }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--text-soft); }
.feature li { position: relative; padding-left: 22px; margin-top: 8px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--orange); }
.feature h2 { margin-bottom: 16px; }

.media { position: relative; background: var(--bg-2); border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.55); overflow: hidden; }
.media > img, .media > video { width: 100%; }
.media.pad { padding: 22px; display: grid; place-items: center; }
.media.pad-dark { background: radial-gradient(ellipse at center, #3a1e1c 0%, #140c10 75%); }

/* Ряд анимированных спрайтов */
.sprites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
.sprites.cols-7 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 560px) { .sprites.cols-7 { grid-template-columns: repeat(7, 1fr); } }
.sprites.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sprites img { width: 100%; aspect-ratio: 1; }
.sprites figure { margin: 0; text-align: center; }
.sprites figcaption { font-family: var(--pixel); font-size: 9px; color: var(--muted); margin-top: -4px; }

.biomes { display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .biomes { grid-template-columns: 1fr 1fr; } .biomes figure:first-child { grid-column: 1 / -1; } }
.biomes figure { margin: 0; position: relative; }
.biomes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.biomes figcaption { position: absolute; left: 8px; bottom: 8px; font-family: var(--pixel); font-size: 10px; background: rgba(0,0,0,.72); padding: 6px 8px; }

.chest-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.chest-row .chest { width: 144px; height: 144px; }
.chest-row .perks { width: min(420px, 100%); }

/* Слот анимации (WebP из Steam-GIF); постер — фон-fallback */
.gif-slot[data-gif] > img { display: block; width: 100%; height: auto; }

/* Факты-плитки */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--card); border: 1px solid var(--line); padding: 18px 16px; }
.fact b { display: block; font-family: var(--pixel); font-size: clamp(18px, 3vw, 24px); font-weight: 400; color: var(--flash); margin-bottom: 10px; }
.fact span { font-size: 15px; color: var(--text-soft); }

.free { background: var(--bg-2); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.cta { text-align: center; }
.cta .btns { justify-content: center; }
.cta h2 { max-width: 22em; margin: 0 auto; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a:hover { color: var(--text); }

/* ---------- Документы (privacy / terms / support) ---------- */
body.doc main { padding: 44px 0 72px; }
body.doc main .wrap { max-width: 760px; }
body.doc h1 { font-family: var(--pixel); font-size: clamp(18px, 4vw, 26px); line-height: 1.45; }
body.doc h2 { font-size: 14px; line-height: 1.6; margin: 40px 0 12px; color: var(--flash); }
body.doc h3 { font-family: inherit; font-size: 17px; font-weight: 700; color: var(--text); margin: 24px 0 6px; }
body.doc p, body.doc li { color: var(--text-soft); }
body.doc p + p { margin-top: 12px; }
body.doc ul { padding-left: 22px; margin: 10px 0; }
body.doc li { margin: 6px 0; }
body.doc main a:not(.btn) { color: var(--flash); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
body.doc .card { margin: 24px 0; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.app-head img { width: 48px; height: 48px; border: 2px solid var(--ink); }
.faq details { background: var(--card); border: 1px solid var(--line); margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-family: var(--pixel); font-size: 14px; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 18px; }
.err { text-align: center; padding: 96px 0; }
.err img { margin: 0 auto 24px; width: 204px; }
.media.armory { background: repeating-linear-gradient(0deg, #3b2a2c 0 2px, #33242a 2px 4px); }
.media.armory img { width: min(640px, 100%); }
