
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sa-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--sa-ink);
  background-color: var(--sa-paper);
  background-image: var(--sa-pattern);
  background-size: var(--sa-pattern-size);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden;
}
main { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
:root { --focus-ring: var(--sa-accent); }
.topbar, .stage, .section-night, .footer, .notice { --focus-ring: var(--sa-light); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 40; padding: 10px 16px; border-radius: 10px; background: var(--sa-light); color: var(--sa-on-light); font-weight: 700; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--sa-font-display); font-weight: var(--sa-display-weight); line-height: 1; letter-spacing: var(--sa-display-tracking); text-transform: var(--sa-display-case); }
.section h2, .panel h1, .legal h1 { color: var(--sa-heading); text-shadow: var(--sa-heading-shadow); }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 16px; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--sa-night); color: var(--sa-on-night); }
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 16px; pointer-events: none;
  background:
    radial-gradient(ellipse 5px 7px at 14px 10px, var(--sa-bulb-1) 70%, transparent 76%),
    radial-gradient(ellipse 5px 7px at 50px 10px, var(--sa-bulb-2) 70%, transparent 76%),
    radial-gradient(ellipse 5px 7px at 86px 10px, var(--sa-bulb-3) 70%, transparent 76%),
    linear-gradient(var(--sa-wire), var(--sa-wire)) 0 2px / 100% 2px no-repeat;
  background-size: 108px 16px, 108px 16px, 108px 16px, 100% 2px;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
  filter: drop-shadow(0 0 4px var(--sa-bulb-glow));
}
.logo-text { display: grid; line-height: 1; }
.logo-claim { font-family: var(--sa-font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--sa-on-night-muted); margin-top: 3px; white-space: nowrap; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.topbar [data-buy]:disabled { display: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--sa-font-display); font-weight: var(--sa-display-weight); font-size: 22px; letter-spacing: var(--sa-display-tracking); min-height: 44px; }
.logo-mark { width: 28px; height: 28px; flex: none; color: var(--sa-light); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border: 3px solid var(--sa-ink); border-radius: 12px; cursor: pointer;
  font-family: var(--sa-font-body); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center;
  user-select: none; -webkit-user-select: none;
  transition: transform .12s ease, background-color .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-go { background: var(--sa-light); color: var(--sa-on-light); }
.btn-ink { background: var(--sa-ink); color: var(--sa-on-night); }
.btn-plain { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: 15px; border-width: 2px; white-space: nowrap; }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; flex: none; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .65; }

.tape {
  display: inline-block; padding: 4px 12px 3px;
  background: var(--sa-tape-red); color: var(--sa-on-tape);
  font-family: var(--sa-font-body); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 var(--sa-tape-shine), inset 0 -2px 0 var(--sa-tape-shade);
  transform: rotate(-2deg);
}
.tape-green { background: var(--sa-tape-green); }
.tape-ink { background: var(--sa-tape-ink); }

.section { padding: 52px 0; }
.section h2 { font-size: clamp(36px, 9vw, 54px); margin: 0 0 24px; }
.price-label { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 6px 18px 6px 34px; background: radial-gradient(circle 5px at 17px 50%, var(--sa-night) 92%, transparent 100%), var(--sa-light); color: var(--sa-on-light); font-family: var(--sa-font-display); font-size: 30px; line-height: 1; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transform: rotate(-4deg); }
.price-label[hidden] { display: none; }
.price-label small { margin-left: 8px; font-family: var(--sa-font-body); font-size: 12px; font-weight: 700; }
.walking { display: flex; gap: 10px; height: 44px; align-items: center; }
.walking span { width: 14px; height: 26px; background: var(--sa-ink); -webkit-mask: url(/img/foot.svg) center / contain no-repeat; mask: url(/img/foot.svg) center / contain no-repeat; opacity: .15; animation: step 1.6s infinite; }
.walking span:nth-child(odd) { transform: translateY(-7px) rotate(80deg); }
.walking span:nth-child(even) { transform: translateY(7px) rotate(100deg); }
.walking span:nth-child(2) { animation-delay: .2s; }
.walking span:nth-child(3) { animation-delay: .4s; }
.walking span:nth-child(4) { animation-delay: .6s; }
@keyframes step { 0%, 100% { opacity: .15; } 25%, 55% { opacity: 1; } }

.info-lines { margin: 0; }
.info-lines div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 2px dotted var(--sa-line); }
.info-lines dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-ink-soft); padding-top: 2px; }
.info-lines dd { margin: 0; font-weight: 700; }

.form-error { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--sa-error-soft); color: var(--sa-error); font-weight: 700; font-size: 15px; }
.form-error:empty { display: none; }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--sa-sheet); border: 2px solid var(--sa-line); border-radius: 12px; }
.faq details[open] { border-color: var(--sa-ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; min-height: 58px; padding: 8px 14px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; width: 18px; height: 22px; justify-self: center; background: var(--sa-accent); -webkit-mask: url(/img/foot.svg) center / contain no-repeat; mask: url(/img/foot.svg) center / contain no-repeat; transform: rotate(14deg); }
.faq summary::after { content: '+'; font-family: var(--sa-font-display); font-size: 26px; color: var(--sa-ink-soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px 52px; padding-right: 14px; color: var(--sa-ink-soft); max-width: 60ch; }

.footer { background: var(--sa-night); color: var(--sa-on-night-muted); padding: 22px 0 32px; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 10px -8px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--sa-on-night); font-weight: 700; text-decoration-color: var(--sa-light); }
.footer p { margin: 4px 0; }

.panel-page { display: grid; place-items: center; padding: 36px 0 52px; }
.panel { width: 100%; max-width: 460px; margin: 0 auto; background: var(--sa-sheet); border: 3px solid var(--sa-ink); border-radius: 18px; padding: 28px 22px 24px; box-shadow: 0 8px 0 var(--sa-ink); }
.panel h1 { font-size: 32px; margin: 18px 0 10px; }
.panel p { margin: 0 0 16px; }
.panel .actions { display: grid; gap: 10px; margin-top: 6px; }
.panel .actions + p { margin-top: 16px; }
.panel .muted { color: var(--sa-ink-soft); font-size: 15px; }
.panel [data-state] { display: none; }
.panel[data-current="checking"] [data-state="checking"],
.panel[data-current="paid"] [data-state="paid"],
.panel[data-current="pending"] [data-state="pending"],
.panel[data-current="slow"] [data-state="slow"],
.panel[data-current="failed"] [data-state="failed"],
.panel[data-current="loading"] [data-state="loading"],
.panel[data-current="elsewhere"] [data-state="elsewhere"],
.panel[data-current="expired"] [data-state="expired"],
.panel[data-current="unknown"] [data-state="unknown"],
.panel[data-current="error"] [data-state="error"],
.panel[data-current="form"] [data-state="form"],
.panel[data-current="sent"] [data-state="sent"] { display: block; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.field input { width: 100%; min-height: 54px; padding: 10px 14px; border: 3px solid var(--sa-ink); border-radius: 12px; background: var(--sa-sheet); color: var(--sa-ink); font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.field input:focus { outline: none; box-shadow: 0 0 0 4px var(--sa-light); }

.legal { padding: 34px 0 60px; }
.legal article { max-width: 760px; margin: 0 auto; background: var(--sa-sheet); border: 3px solid var(--sa-ink); border-radius: 18px; padding: 26px 18px; }
.legal h1 { font-size: 40px; margin: 0 0 8px; }
.legal .tape + h1 { margin-top: 16px; }
.legal h2 { font-size: 24px; margin: 30px 0 6px; color: var(--sa-heading); }
.legal p, .legal li { font-size: 16px; }
.legal .summary { padding: 12px 14px 12px 32px; margin: 18px 0; border-radius: 12px; background: var(--sa-light); display: grid; gap: 4px; font-weight: 700; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.legal dt { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal .meta { color: var(--sa-ink-soft); font-size: 14px; }

@media (min-width: 760px) {
  .legal article { padding: 40px 44px; }
}
@media (max-width: 400px) {
  .logo { font-size: 19px; }
  .logo-mark { width: 24px; height: 24px; }
  .logo-claim { font-size: 10px; letter-spacing: 0; }
  .topbar .btn-small { padding: 8px 10px; }
}

.notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 480px; margin: 0 auto; padding: 14px 18px; border-radius: 12px; background: var(--sa-ink); color: var(--sa-sheet); font-weight: 700; transform: translateY(150%); transition: transform .25s ease; }
.notice.is-visible { transform: none; }

.price-label small { max-width: 74px; line-height: 1.15; }

.section h2::after { content: ''; display: inline-block; width: 116px; height: 26px; margin-left: 14px; vertical-align: middle; background: var(--sa-accent); opacity: .7; -webkit-mask: url(/img/trail.svg) left center / auto 100% repeat-x; mask: url(/img/trail.svg) left center / auto 100% repeat-x; }

.stage { position: relative; padding: 22px 0 96px; background: var(--sa-night-sky); color: var(--sa-on-night); isolation: isolate; }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 78px; z-index: -1; background: var(--sa-horizon) center bottom / auto 100% repeat-x; pointer-events: none; }
.stage-grid { display: grid; grid-template-areas: "art" "head" "buy"; justify-items: center; gap: 14px; text-align: center; }
.stage-art { grid-area: art; width: min(300px, 76vw); aspect-ratio: 380 / 270; background: var(--sa-hero) center / contain no-repeat; }
.stage-head { grid-area: head; display: grid; justify-items: inherit; gap: 8px; }
.stage-buy { grid-area: buy; display: grid; justify-items: inherit; gap: 10px; }
.stage h1 { margin: 0; font-size: clamp(36px, 10vw, 68px); color: var(--sa-on-night); text-shadow: 0 3px 0 var(--sa-wire); text-wrap: balance; }
.tagline { margin: 0; font-family: var(--sa-font-display); font-size: clamp(20px, 5vw, 28px); line-height: 1.1; color: var(--sa-light); text-wrap: balance; }
.stage .lead { margin: 4px 0 0; max-width: 46ch; font-size: 17px; color: var(--sa-on-night); white-space: pre-line; }
.facts { display: flex; flex-wrap: wrap; justify-content: inherit; gap: 6px 16px; margin: 2px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 15px; color: var(--sa-on-night-muted); }
.facts li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.facts li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sa-light); }
.buy-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin: 0; }
.btn-big { min-height: 60px; padding: 16px 30px; font-size: 20px; }

.section-night { background: var(--sa-night-sky); color: var(--sa-on-night); }
.section-night h2 { color: var(--sa-on-night); text-shadow: 0 3px 0 var(--sa-wire); }
.section-night h2::after { background: var(--sa-light); }
.section-night .buy-bar { margin-top: 22px; }

.rules { display: grid; gap: 18px; }
.rule-card { display: grid; gap: 16px; align-content: start; padding: 22px 20px; background: var(--sa-sheet); border: 3px solid var(--sa-ink); border-radius: 18px; box-shadow: 0 6px 0 var(--sa-ink); }
.rule-head { display: grid; justify-items: start; gap: 8px; }
.rule-card h3 { margin: 4px 0 0; font-size: 32px; color: var(--sa-heading); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding-left: 46px; line-height: 1.45; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sa-light); color: var(--sa-on-light); border: 2px solid var(--sa-ink); font-family: var(--sa-font-display); font-size: 18px; }
.steps b { display: block; color: var(--sa-heading); }
.finale { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 26px 0 0; text-align: center; font-family: var(--sa-font-display); font-size: clamp(20px, 4.6vw, 26px); line-height: 1.2; color: var(--sa-heading); }

.trailer { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--sa-ink); border: 3px solid var(--sa-ink); box-shadow: 0 18px 40px -18px var(--sa-shadow), 0 0 0 3px var(--sa-light); }
.trailer video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--sa-ink); }
.trailer video:fullscreen { object-fit: contain; }
.trailer-play { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 96px; height: 96px; padding: 0; border: 4px solid var(--sa-ink); border-radius: 50%; background: var(--sa-light); cursor: pointer; box-shadow: 0 8px 24px var(--sa-shadow); --focus-ring: var(--sa-on-night); }
.play-icon::after { content: ''; display: block; margin-left: 8px; border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent var(--sa-night); }
.trailer:not([data-state="poster"]) .trailer-play { display: none; }
.trailer-end { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center; background: color-mix(in srgb, var(--sa-night) 90%, transparent); }
.trailer[data-state="ended"] .trailer-end { display: grid; }
.trailer-end-title { margin: 0; font-family: var(--sa-font-display); font-size: clamp(26px, 6vw, 44px); line-height: 1; color: var(--sa-on-night); }
.trailer-end .btn-plain { color: var(--sa-on-night); min-height: 44px; }
.trailer[data-state="missing"] video { display: none; }
.trailer[data-state="missing"] .trailer-play { pointer-events: none; }


.narrow-only { display: none; }
@media (max-width: 520px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .stage { padding-top: 12px; padding-bottom: 88px; }
  .stage-grid { gap: 10px; }
  .stage-art { width: min(220px, 60vw); }
  .stage .lead { font-size: 16px; }
  .buy-bar { flex-wrap: nowrap; gap: 10px 12px; width: 100%; justify-content: center; }
  .buy-bar .price-label { font-size: 24px; padding-left: 30px; padding-right: 10px; flex: none; }
  .buy-bar .btn-big { flex: 0 1 auto; min-width: 0; padding: 10px 22px; }
  .trailer { border-radius: 12px; margin: 0 -6px; }
  .trailer-play { width: 72px; height: 72px; }
  .play-icon::after { margin-left: 6px; border-width: 14px 0 14px 23px; }
  .trailer-end { gap: 8px; }
  .trailer-end .btn-big { min-height: 52px; padding: 10px 20px; font-size: 17px; }
  .rule-card { padding: 18px 16px; }
  .rule-card h3 { font-size: 26px; }
}
@media (max-width: 520px) and (max-height: 700px) {
  .stage-art { width: 150px; }
  .stage-grid { gap: 8px; }
  .stage h1 { font-size: 32px; }
  .tagline { font-size: 19px; }
  .stage .lead { font-size: 15px; }
}
@media (max-width: 520px) and (max-height: 600px) {
  .stage { padding-top: 8px; }
  .stage-art { width: 104px; }
  .stage h1 { font-size: 29px; }
  .tagline { font-size: 17px; }
  .stage .lead { font-size: 14px; line-height: 1.45; }
  .facts { font-size: 13px; }
}
@media (min-width: 760px) {
  .stage { padding: 40px 0 110px; }
  .stage-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "head art" "buy art"; justify-items: start; align-items: center; text-align: left; gap: 18px 40px; }
  .stage-head { align-self: end; }
  .stage-buy { align-self: start; }
  .stage-art { width: 100%; max-width: 420px; justify-self: center; }
  .facts { justify-content: flex-start; }
  .buy-bar { justify-content: flex-start; }
  .section-night .buy-bar { justify-content: center; }
  .rules { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stage .buy-bar { flex-wrap: nowrap; }
}
@media (min-width: 760px) and (max-width: 999px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 540px) {
  .stage { padding: 14px 0 44px; }
  .stage::after { height: 40px; }
  .stage-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "head art" "buy art"; justify-items: start; text-align: left; gap: 10px 24px; }
  .stage-art { width: 100%; max-width: 260px; }
  .stage h1 { font-size: 34px; }
  .tagline { font-size: 20px; }
  .stage .lead { font-size: 15px; }
  .facts { display: none; }
  .buy-bar { justify-content: flex-start; }
  .section-night .buy-bar { justify-content: center; }
  .buy-bar .btn-big { min-height: 52px; padding: 10px 18px; font-size: 17px; }
  .trailer { max-width: min(960px, calc((100dvh - 150px) * 16 / 9)); }
}
.nowrap { white-space: nowrap; }
@media (orientation: landscape) and (max-height: 360px) {
  .stage { padding: 18px 0 40px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "buy"; gap: 8px; }
  .stage-art { display: none; }
  .stage-head { gap: 4px; }
  .stage h1 { font-size: 28px; }
  .tagline { font-size: 17px; }
  .stage .lead { font-size: 14px; line-height: 1.4; margin: 0; }
}
