/* ==========================================================================
   Gig Game's Game Show Studio - public site. Same "Live Stage" family as giggame.app:
   a dark stage, teal for structure, orange for energy. Plain CSS, no build step.
   ========================================================================== */
:root {
  --teal: #1e86a8; --teal-bright: #3fb4dd; --teal-deep: #0e4a5e;
  --orange: #f5941f; --orange-bright: #ffb04d; --orange-deep: #c96e05;
  --bg: #05070b; --bg-1: #070b12; --bg-2: #0b111b; --bg-3: #101828;
  --panel: rgba(255,255,255,.045); --panel-strong: rgba(255,255,255,.075);
  --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.18);
  --text: #eef2f7; --text-dim: #aab5c5; --text-dimmer: #7b8798; --on-orange: #1a0e02;
  --glow-orange: 0 0 0 1px rgba(245,148,31,.4), 0 10px 34px rgba(245,148,31,.28);
  --glow-teal: 0 0 0 1px rgba(63,180,221,.32), 0 10px 34px rgba(30,134,168,.28);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.5); --shadow-md: 0 12px 34px rgba(0,0,0,.38);
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 26px; --r-pill: 999px;
  --container: 1200px; --nav-h: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: #fff; font-weight: 700; line-height: 1.14; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--text-dim); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); } .accent-teal { color: var(--teal-bright); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--text-dim); max-width: 60ch; }
.center.lede { max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--font-display); letter-spacing: .15em; text-transform: uppercase; color: var(--orange-bright); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); border-radius: 2px; }
.center .eyebrow, .eyebrow.center { justify-content: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1 var(--font-display); padding: 16px 30px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; text-decoration: none !important; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: var(--on-orange); box-shadow: var(--glow-orange); }
.btn-primary:hover { background: linear-gradient(180deg, #ffc072, var(--orange-bright)); }
.btn-ghost { background: var(--panel); color: #fff; border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--teal-bright); box-shadow: var(--glow-teal); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.arrow::after { content: "\2192"; font-weight: 800; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; background: rgba(5,7,11,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--border); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brand .mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 14px rgba(30,134,168,.5)); }
.brand-name { display: flex; flex-direction: column; gap: 3px; font: 800 1.05rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-name small { font: 700 .62rem/1 var(--font-body, system-ui); letter-spacing: .14em; text-transform: uppercase; color: #7fd0ea; }
.links { display: flex; align-items: center; gap: 6px; }
.links a { color: var(--text-dim); font: 600 .94rem/1 var(--font-display); padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none; transition: color .2s, background .2s; }
.links a:hover, .links a[aria-current="page"] { color: #fff; background: var(--panel-strong); }
.links .nav-cta { margin-left: 8px; color: var(--on-orange); background: linear-gradient(180deg, var(--orange-bright), var(--orange)); }
.links .nav-cta:hover { color: var(--on-orange); background: linear-gradient(180deg, #ffc072, var(--orange-bright)); }
.burger { display: none; width: 44px; height: 44px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
main { padding-top: var(--nav-h); }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.028) 50%, transparent); }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head p { font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
@media (min-width: 921px) { .hero-bg img { position: absolute; left: 30%; width: 70%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,7,11,.97) 0%, rgba(5,7,11,.86) 34%, rgba(5,7,11,.32) 64%, rgba(5,7,11,.05) 100%), linear-gradient(180deg, rgba(5,7,11,.5) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }
.hero-copy { max-width: 640px; padding: 70px 0 90px; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--text-dim); font-size: .94rem; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(63,180,221,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%233fb4dd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.page-hero { position: relative; padding: 92px 0 70px; text-align: center; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 50% 0%, rgba(30,134,168,.28), transparent 70%), radial-gradient(40% 70% at 90% 20%, rgba(245,148,31,.14), transparent 70%); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-hero .lede { margin: 0 auto; }
.crumbs { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .86rem; color: var(--text-dimmer); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--text-dim); }

/* ---------- strips ---------- */
.strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 22px 24px; color: var(--text-dim); font: 600 .95rem var(--font-display); }
.strip-in span { display: inline-flex; align-items: center; gap: 10px; }
.strip-in b { color: var(--orange-bright); font-size: 1.15rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); background: var(--panel-strong); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .98rem; }
.badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 1.6rem; margin-bottom: 18px; background: linear-gradient(135deg, rgba(63,180,221,.22), rgba(245,148,31,.18)); border: 1px solid var(--border-strong); }
a.card { color: inherit; text-decoration: none; display: block; }
.more { display: inline-flex; margin-top: 16px; font: 700 .92rem var(--font-display); color: var(--orange-bright); }
.more::after { content: "\2192"; margin-left: 8px; transition: transform .2s; }
a.card:hover .more::after { transform: translateX(5px); }

/* ---------- split (picture + words) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.flip .pic { order: 2; }
.pic { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); aspect-ratio: 3/2; background: var(--bg-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -80px 80px -60px rgba(5,7,11,.55); pointer-events: none; }
.split h2 { margin-bottom: .5em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; color: var(--text-dim); }
.ticks li strong { color: #fff; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(245,148,31,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23ffb04d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.block + .block { margin-top: 110px; }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px 26px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 800 1.15rem var(--font-display); color: var(--on-orange); background: linear-gradient(180deg, var(--orange-bright), var(--orange)); box-shadow: var(--glow-orange); margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; } .step p { margin: 0; font-size: .96rem; }
.steps.long { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; gap: 18px; }
.steps.long .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding: 26px 28px; }
.steps.long .step::before { margin: 0; grid-row: 1 / span 2; }

/* ---------- games ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.chip { font: 600 .92rem var(--font-display); color: var(--text-dim); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 10px 20px; cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: var(--border-strong); }
.chip[aria-pressed="true"] { color: var(--on-orange); background: linear-gradient(180deg, var(--orange-bright), var(--orange)); border-color: transparent; }
.game { display: flex; flex-direction: column; }
.game .tag { margin-top: auto; padding-top: 16px; font-size: .84rem; color: var(--text-dimmer); }
.game .tag b { color: var(--teal-bright); font-weight: 600; }
.game[hidden] { display: none; }
.game h3 { font-size: 1.25rem; } .game .tl { color: var(--orange-bright); font: 600 .9rem var(--font-display); margin: 0 0 12px; }
.game p.body { font-size: .96rem; }

/* ---------- marquee-light frame (the game-show touch) ---------- */
.marquee { position: relative; padding: 14px; border-radius: 30px; background: linear-gradient(135deg, rgba(245,148,31,.55), rgba(63,180,221,.4)); box-shadow: 0 0 60px rgba(245,148,31,.18), var(--shadow-lg); }
.marquee::before { content: ""; position: absolute; inset: 5px; border-radius: 26px; background: radial-gradient(circle at 10px 10px, #ffe3a8 2.5px, transparent 3px) 0 0 / 28px 28px; opacity: .55; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0); pointer-events: none; }
.marquee .pic { border-radius: 20px; border: 0; aspect-ratio: 3/2; box-shadow: none; }

/* ---------- quote / scene ---------- */
.scene { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,7,11,.05) 25%, rgba(5,7,11,.92) 100%); }
.scene-copy { padding: 44px; max-width: 780px; }
.scene-copy h2 { margin-bottom: .3em; } .scene-copy p { color: #d4dbe6; margin: 0; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(63,180,221,.4); background: var(--panel-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font: 700 1.08rem/1.35 var(--font-display); color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.4rem; color: var(--orange-bright); background: rgba(245,148,31,.12); border-radius: 50%; transition: transform .25s; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 26px 24px; } .faq .ans p { margin: 0; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 100px 0; border-top: 1px solid var(--border); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 120% at 50% 100%, rgba(245,148,31,.22), transparent 70%), radial-gradient(60% 100% at 20% 0%, rgba(30,134,168,.25), transparent 70%); }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta .lede { margin: 0 auto; }
.fine { margin-top: 18px; font-size: .88rem; color: var(--text-dimmer); }

/* ---------- characters ---------- */
.host-card { align-content: start; display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; padding: 0; }
.host-card .pic { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 4/3; }
.host-card .pic.portrait img { object-position: 50% 0%; }
.card .quote { margin: 0 0 16px; }
.host-card .txt { padding: 28px 30px 32px; }
.quote { font: 600 1.08rem/1.5 var(--font-display); color: #fff; margin: 0 0 14px; }

.uc-grid > a:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.uc-grid > a:last-child:nth-child(odd) .pic { height: 100%; aspect-ratio: auto; min-height: 320px; }
@media (max-width: 640px) { .uc-grid > a:last-child:nth-child(odd) { display: block; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-1); padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.foot-grid h4 { font: 700 .8rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--text-dim); padding: 5px 0; font-size: .96rem; }
.foot-grid a.brand { display: inline-flex; padding: 0; }
.foot-grid a:hover { color: #fff; text-decoration: none; }
.foot-brand p { margin-top: 16px; font-size: .94rem; max-width: 34ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-dimmer); }
.foot-base a { color: var(--text-dim); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-bg img { animation: kb 26s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; } .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: rgba(5,7,11,.97); border-bottom: 1px solid var(--border); transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility .3s; max-height: calc(100vh - var(--nav-h)); overflow: auto; }
  .links.open { transform: none; visibility: visible; }
  .links a { padding: 14px 16px; font-size: 1.02rem; }
  .links .nav-cta { margin: 10px 0 0; text-align: center; }
  .section { padding: 80px 0; } .block + .block { margin-top: 80px; }
  .split, .split.flip { grid-template-columns: 1fr; } .split.flip .pic { order: 0; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; } .hero::before { background: linear-gradient(180deg, rgba(5,7,11,.55) 0%, rgba(5,7,11,.9) 55%, var(--bg) 100%); }
  .hero-bg img { object-position: 78% 30%; } .hero-copy { padding: 56px 0 70px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; } .section { padding: 64px 0; } .section-tight { padding: 52px 0; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; } .btn-row { flex-direction: column; } .nav-cta.btn { width: auto; }
  .scene-copy { padding: 28px 22px; } .scene { min-height: 360px; }
  .steps.long .step { grid-template-columns: 1fr; } .steps.long .step::before { margin-bottom: 14px; grid-row: auto; }
  .proof { flex-direction: column; gap: 10px; }
}
