/* Sky Show website. Colors match the game's Theme.swift. */
@font-face { font-family: "Sky Rounded"; src: url("../fonts/MPLUSRounded1c-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sky Rounded"; src: url("../fonts/MPLUSRounded1c-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sky Rounded"; src: url("../fonts/MPLUSRounded1c-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Sky Rounded"; src: url("../fonts/MPLUSRounded1c-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --night: #0B0F2A;
  --night-deep: #04071A;
  --sky-mid: #0C1036;
  --sky-low: #22195A;
  --panel: #151A44;
  --panel-raised: #1C2256;
  --border: #2E3577;
  --gold: #FFC94A;
  --gold-light: #FFE39A;
  --gold-dark: #C8901A;
  --ink: #1A1240;
  --text: #F4F1FF;
  --soft: #C9C6EE;
  --muted: #B7B4E2;
  --red: #FF5468;
  --purple: #B98CFF;
  --blue: #46B4FF;
  --pink: #FF86CF;
  --green: #5BE59A;
  --radius: 22px;
  --max: 1120px;
  --display: "Sky Rounded", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Fredoka", ui-rounded, system-ui, -apple-system, sans-serif;
  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(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.brand span { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .05em; }
.brand span b { color: var(--gold); font-weight: 900; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--text); }
@media (max-width: 680px) { .nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none;
  color: var(--ink); background: linear-gradient(var(--gold-light), var(--gold));
  box-shadow: 0 5px 0 var(--gold-dark), 0 12px 30px rgba(255, 201, 74, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-dark), 0 6px 18px rgba(255, 201, 74, .3); }
.btn svg { width: 22px; height: 22px; }
.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1.5px solid rgba(255,255,255,.22); box-shadow: none;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.09); }
.btn-ghost:active { box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  padding: 120px 0 0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(185,140,255,.28), transparent 60%),
    linear-gradient(var(--night-deep), var(--sky-mid) 55%, var(--sky-low));
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hero .stars, .hero canvas.fx, .hero canvas.skyline { position: absolute; left: 0; width: 100%; pointer-events: none; }
.hero .stars { inset: 0; height: 100%; z-index: -3;
  background-image:
    radial-gradient(1.4px 1.4px at 10% 20%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 30% 65%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.6px 1.6px at 55% 30%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.1px 1.1px at 70% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 85% 55%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 45% 85%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 28%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 18% 45%, rgba(255,255,255,.55), transparent 60%);
  background-size: 420px 420px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .65; } to { opacity: 1; } }
.hero canvas.fx { inset: 0; height: 100%; z-index: -2; }
.hero canvas.skyline { bottom: 0; height: 120px; z-index: -1; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
  min-height: calc(min(100svh, 980px) - 120px);
  padding-bottom: 60px;
}
.hero-copy { position: relative; z-index: 2; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.wordmark {
  margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: .05em;
  font-size: clamp(64px, 11vw, 136px); line-height: .9;
  text-shadow: 0 0 40px rgba(255, 201, 74, .45);
}
.wordmark span { display: block; }
.wordmark .sky { color: #FFF4DE; text-shadow: 0 6px 0 #B07A12, 0 0 40px rgba(255,201,74,.45); }
.wordmark .show { color: var(--gold); text-shadow: 0 6px 0 #8A5A00, 0 0 40px rgba(255,201,74,.45); }
.tagline { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; color: var(--text); margin: 26px 0 10px; }
.lede { color: var(--soft); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.sky-hint {
  position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%);
  font-size: 15px; color: var(--soft); background: rgba(11,15,42,.55); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .5s ease; white-space: nowrap; z-index: 3;
}
.sky-hint.is-hidden { opacity: 0; }

.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 440 / 956; margin-inline: auto;
  border-radius: 52px; padding: 11px; background: #0A0B14;
  box-shadow: 0 0 0 2px #3A3E58, 0 40px 80px rgba(0,0,0,.55), 0 0 80px rgba(185,140,255,.25);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; }
.hero .phone { transform: rotate(4deg); z-index: 2; pointer-events: none; }

@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-bottom: 150px; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero .phone { width: min(280px, 70vw); transform: rotate(0); }
  .sky-hint { bottom: 112px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: .01em; }
h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 0 8px; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--soft); margin: 0; }
.center { text-align: center; margin-inline: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step .phone { width: min(260px, 70vw); border-radius: 44px; padding: 9px; margin-bottom: 26px; }
.step .phone img { border-radius: 36px; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 900; margin-bottom: 10px;
}
.step p { color: var(--soft); margin: 0 auto; max-width: 22em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 64px; } }

.band { background: linear-gradient(180deg, var(--night), #10154A 50%, var(--night)); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: rgba(21, 26, 68, .75); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.feature p { color: var(--soft); margin: 0; font-size: 17px; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,201,74,.12); color: var(--gold);
}
.feature .ico svg { width: 28px; height: 28px; }
.feature:nth-child(3n+2) .ico { background: rgba(70,180,255,.12); color: var(--blue); }
.feature:nth-child(3n) .ico { background: rgba(255,134,207,.12); color: var(--pink); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.pic { margin: 0; text-align: center; }
.pic canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 16px; background: #070A1F; border: 1px solid rgba(255,255,255,.08); transition: box-shadow .6s ease, border-color .6s ease; }
.pic.is-lit canvas { border-color: rgba(255,201,74,.35); box-shadow: 0 0 24px rgba(185,140,255,.22); }
.pic figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 600px) { .wall { grid-template-columns: repeat(4, 1fr); gap: 8px; } .pic figcaption { font-size: 11px; } }

.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 30px; margin: 0 -16px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots .phone { flex: 0 0 auto; width: 240px; border-radius: 40px; padding: 8px; scroll-snap-align: center; }
.shots .phone img { border-radius: 33px; }
@media (min-width: 1100px) { .shots { justify-content: center; overflow: visible; } }

.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.plan.featured { background: linear-gradient(160deg, #2A1D63, var(--panel)); border-color: rgba(185,140,255,.55); }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--soft); }
.plan li { padding-left: 26px; position: relative; margin: 8px 0; font-size: 17px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(255,201,74,.7); }
.plan .tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--soft); margin-bottom: 10px; }
.plan.featured .tag { background: var(--purple); color: var(--ink); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.fine { color: var(--muted); font-size: 15px; margin-top: 22px; }

.final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 130px 0 170px;
  background: radial-gradient(90% 80% at 50% 100%, rgba(185,140,255,.3), transparent 65%), linear-gradient(var(--night), var(--sky-low));
  cursor: crosshair; -webkit-tap-highlight-color: transparent;
}
.final canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.final canvas.skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; z-index: -1; pointer-events: none; }
.final .app-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 50px rgba(255,201,74,.25); }

/* ---------- footer ---------- */
.site-footer { background: #070A20; border-top: 1px solid rgba(255,255,255,.06); padding: 40px 0 50px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer small { display: block; max-width: 640px; font-size: 13px; color: #8F8CC0; }

/* ---------- legal / support pages ---------- */
.page-hero {
  padding: 130px 0 56px;
  background: radial-gradient(100% 120% at 50% 0%, rgba(185,140,255,.22), transparent 60%), linear-gradient(var(--night-deep), var(--night));
}
.page-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6vw, 60px); margin: 0 0 8px; }
.page-hero p { color: var(--soft); margin: 0; }
.doc { padding: 20px 0 90px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: #DCD8F6; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--gold); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.doc .callout { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin: 22px 0; }
.toc { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 16px 22px; margin: 26px 0 10px; }
.toc ol { margin: 6px 0 0; padding-left: 22px; columns: 2; column-gap: 30px; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--gold); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; margin: 12px 0; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-family: var(--display); font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--gold); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: #DCD8F6; }
.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: linear-gradient(160deg, #2A1D63, var(--panel)); border: 1px solid rgba(185,140,255,.45); border-radius: 22px; padding: 26px; margin: 10px 0 40px; }
.contact-card p { margin: 4px 0 0; color: var(--soft); }
