/* Лендинг «Глазка» для рекламы. Чёрный, как площадка ночью; светится только то, что светится в игре. */
:root {
  --ink: #ece6d3;
  --ink-dim: #a39c88;
  --bulb: #e9c46f;
  --bulb-hi: #f3d283;
  --blood: #c9584c;
  --black: #050505;
  --line: rgba(236,230,211,.12);
  --serif: "Literata", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --gut: clamp(18px, 4.5vw, 64px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bulb); outline-offset: 3px; }


/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
#hero-door { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.7) 34%, rgba(5,5,5,0) 62%),
              linear-gradient(0deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,0) 40%);
}
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gut) clamp(48px, 10vh, 110px); max-width: 760px; }
.hero-kicker { font: 600 15px/1.4 var(--sans); color: var(--bulb); margin: 0 0 16px; }
.hero-title {
  font: 800 clamp(40px, 6.2vw, 86px)/0.96 var(--sans); letter-spacing: -0.04em; margin: 0 0 24px;
  text-wrap: balance;
}
.lead { font: 400 clamp(17px, 1.6vw, 21px)/1.6 var(--serif); color: #d6cfbb; margin: 0 0 32px; max-width: 34em; }
.cta-row { display: grid; gap: 14px; justify-items: start; }
.cta {
  display: inline-block; background: var(--bulb); color: #0b0906; text-decoration: none;
  font: 700 clamp(17px, 1.5vw, 19px)/1 var(--sans); padding: 20px 32px; border-radius: 2px;
  box-shadow: 0 0 0 0 rgba(233,196,111,.0), 0 20px 60px -20px rgba(233,196,111,.55);
  transition: background .2s, transform .2s;
}
.cta:hover { background: var(--bulb-hi); transform: translateY(-1px); }
.cta-note { margin: 0; font: 400 14px/1.5 var(--sans); color: var(--ink-dim); max-width: 30em; }
.hero-hint {
  position: absolute; z-index: 2; right: var(--gut); bottom: clamp(48px, 10vh, 110px); margin: 0;
  font: italic 400 14px/1.4 var(--serif); color: var(--ink-dim); max-width: 14em; text-align: right;
}

/* ---------- механики ---------- */
.mech { padding: clamp(80px, 12vw, 150px) var(--gut) 40px; max-width: 1240px; margin: 0 auto; }
h2 { font: 800 clamp(30px, 4vw, 52px)/1.02 var(--sans); letter-spacing: -0.03em; margin: 0 0 clamp(40px, 6vw, 72px); text-wrap: balance; }
.m {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line);
}
.m:nth-of-type(even) .m-media { order: 2; }
.m h3 { font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing: -0.02em; margin: 0 0 14px; }
.m p { font: 400 clamp(17px, 1.4vw, 19px)/1.65 var(--serif); color: #cfc8b4; margin: 0; max-width: 30em; }
.m-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; filter: contrast(1.05); }
/* кадр с рукой: крупно щель двери и пальцы у цепочки */
.m-door .m-media { overflow: hidden; }
.m-door .m-media img { transform: scale(2.1); transform-origin: 57% 30%; }

.m-media.peep { display: grid; place-items: center; padding: 10px 0; }
.m-media.peep canvas {
  width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 9px #17120b, 0 0 0 11px #75603a, 0 0 0 13px #2a2114, 0 0 0 16px #0b0906, 0 40px 120px -10px rgba(0,0,0,.95), 0 0 160px rgba(233,196,111,.07);
}

.m-media.phone { display: grid; place-items: center; }
.ph {
  width: min(100%, 340px); background: #0f1113; border: 1px solid #262a2e; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 0 6px #0a0b0c, 0 30px 90px -30px rgba(120,150,190,.25);
}
.ph-top { padding: 16px 18px 12px; border-bottom: 1px solid #1d2024; display: grid; gap: 2px; }
.ph-top b { font: 600 15px/1.2 var(--sans); color: #e7e9ec; }
.ph-top span { font: 400 12px/1 var(--sans); color: #7d8590; }
.ph-msgs { padding: 14px 12px 18px; display: grid; gap: 6px; }
.ph-msgs p { margin: 0; max-width: 82%; padding: 8px 12px; border-radius: 14px; font: 400 15px/1.35 var(--sans); }
.ph-msgs .her { background: #23272c; color: #e6e8eb; border-bottom-left-radius: 4px; justify-self: start; }
.ph-msgs .me { background: #2d4a3f; color: #eef2ef; border-bottom-right-radius: 4px; justify-self: end; }
.ph-msgs p { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.ph-msgs p.on { opacity: 1; transform: none; }

/* ---------- звук ---------- */
.sound { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); }
.sound-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: blur(1.5px) brightness(.75) saturate(.8); }
.sound::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(5,5,5,.75), rgba(5,5,5,.25) 70%); }
.sound-copy { position: relative; z-index: 2; padding: 0 var(--gut); max-width: 760px; }
.sound h2 { margin-bottom: 20px; }
.sound p { font: 400 clamp(18px, 1.7vw, 22px)/1.65 var(--serif); color: #ddd6c2; margin: 0; }

/* ---------- цены ---------- */
.price, .faq { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gut) 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.price-grid > div { padding: 28px 28px 28px 0; }
.price-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.price-grid b { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--sans); letter-spacing: -0.02em; margin-bottom: 12px; }
.price-grid b s { font: 400 .5em/1 var(--sans); color: var(--ink-dim); margin-left: 6px; }
.price-grid p { margin: 0; font: 400 17px/1.55 var(--serif); color: var(--ink-dim); max-width: 22em; }
.price-note { margin: 18px 0 0; font: 400 15px/1.5 var(--sans); color: var(--ink-dim); }

/* ---------- вопросы ---------- */
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 26px/1 var(--sans); color: var(--bulb); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; font: 400 17px/1.65 var(--serif); color: #cfc8b4; max-width: 44em; }

/* ---------- финальный призыв ---------- */
.final { position: relative; margin-top: clamp(90px, 12vw, 160px); min-height: 80vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.final::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,5,5,.55) 0%, rgba(5,5,5,.25) 35%, rgba(5,5,5,.9) 75%); }
.final-copy { position: relative; z-index: 2; padding: 0 var(--gut); display: grid; justify-items: center; gap: 18px; }
.final h2 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 80px); }


@media (max-width: 860px) {
  .hero { align-items: end; }
  .hero::after { background: linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.75) 45%, rgba(5,5,5,.1) 75%); }
  .hero-hint { display: none; }
  .m { grid-template-columns: 1fr; }
  .m:nth-of-type(even) .m-media { order: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .price-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cta { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .ph-msgs p { opacity: 1; transform: none; }
}

/* место под шапку и заголовок, который помещается в невысокое окно */
.hero { padding-top: 104px; }
.hero-title { font-size: clamp(36px, min(6.2vw, 9.5vh), 86px); }

.hero-copy { padding-left: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); }
.hero-hint { right: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); }
.hero-copy { max-width: calc(720px + max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)))); }

/* телефон горизонтально: весь первый экран с кнопкой «Играть» без прокрутки */
@media (orientation: landscape) and (max-height: 540px) and (min-width: 560px) {
  .hero { padding-top: 58px; }
  .hero-copy { padding-bottom: 20px; padding-left: max(var(--edge, var(--gut)), env(safe-area-inset-left)); max-width: 640px; }
  .hero-kicker { font-size: 13px; margin-bottom: 8px; }
  .hero-title { font-size: clamp(30px, 11vh, 44px); margin-bottom: 12px; }
  .lead { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
  .cta-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
  .cta { padding: 14px 22px; font-size: 16px; }
  .cta-note { font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 540px) and (min-width: 560px) {
  /* механики: картинка и текст рядом, глазок не выше экрана */
  .m { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .m:nth-of-type(even) .m-media { order: 2; }
  .m-media.peep canvas { width: min(100%, 68vh); }
  .ph { width: min(100%, 300px); }
  .cta { width: auto; }
}

/* Keep the source frames visible at their original exposure. */
.hero::after, .sound::after, .final::after { display: none; }
.sound-bg, .m-media img { filter: none; opacity: 1; }
.hero-copy, .sound-copy, .final-copy { text-shadow: 0 2px 5px #050505, 0 0 16px #050505; }
