:root {
  --chrome: #151023;
  --chrome-line: #f4a4e433;
  --accent: #eaff61;
}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
header.game-header{
  position:relative;
  z-index:3;
  height:68px;
  background:#120e1a;
  padding-inline:clamp(20px,5.15vw,100px);
  border-bottom:1px solid var(--chrome-line);
}
.game-header .brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.9rem;
  font-weight:950;
  white-space:nowrap;
  letter-spacing:.07em;
}
.brand-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #ff73bd73;
  border-radius:8px;
  background:linear-gradient(150deg,#402135,#211123);
}
.game-header .brand svg{width:23px;height:23px;color:#ff77b9}
.game-nav{display:flex;align-items:center;gap:clamp(13px,2.6vw,41px)}
.game-nav a{
  color:#d3b9ce;
  font-size:.81rem;
  font-weight:750;
  text-decoration:none;
  white-space:nowrap;
  padding:10px 0;
  transition:color .2s;
}
.game-nav a:hover,.game-nav a:focus-visible{color:var(--accent)}
.game-header .sound{
  background:#1e1428;
  border-color:#9368868a;
  min-height:38px;
  padding:7px 12px;
  border-radius:7px;
}
.hero{
  min-height:clamp(620px,calc(100svh - 117px),850px);
  background:#27112e;
  border-bottom-color:#dc799b4f;
}
.hero .plate{
  background-position:57% 43%;
  transform:scale(1.034) translate(var(--px,0),var(--py,0));
  animation:hero-in .9s cubic-bezier(.16,.68,.17,1) both;
}
@keyframes hero-in{from{opacity:.4;scale:1.05}to{opacity:1;scale:1}}
.hero:after{
  background:
    linear-gradient(90deg,#12091af7 0%,#1b0b23d6 20%,#200d278f 35%,#2e193128 50%,transparent 68%),
    linear-gradient(0deg,#140d1c 0%,#180d20a3 11%,transparent 43%,transparent 85%,#110a1dc9 100%);
}
.hero-copy{
  position:relative;
  z-index:1;
  width:min(100%,660px);
  padding:53px 20px 58px clamp(20px,5.15vw,100px);
  animation:copy-in .65s cubic-bezier(.2,.73,.23,1) both;
}
@keyframes copy-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
.hero-copy .kicker{font-size:.83rem;letter-spacing:.22em;margin-bottom:21px}
.hero h1{
  font-family:'Arial Black',Impact,'DejaVu Sans',system-ui,sans-serif;
  font-size:clamp(5.25rem,9.9vw,11.75rem);
  font-style:italic;
  font-weight:950;
  letter-spacing:-.098em;
  line-height:.81;
  filter:drop-shadow(0 10px 17px #14081abb);
}
.hero h1 span{
  background:linear-gradient(170deg,#ff9cca 0%,#fc60a8 50%,#ef3b90 74%);
  background-clip:text;
  color:transparent;
  text-shadow:none;
}
.hero-copy .subtitle{margin-top:23px;color:#fff5ed;letter-spacing:-.037em}
.hero-copy .lede{color:#f0dce9;max-width:343px;margin-top:10px}
.hero-copy .actions{gap:13px;margin-top:24px}
.primary,.secondary{border-radius:8px}
.hero .primary{
  background:var(--accent);
  box-shadow:0 4px 0 #788936,0 8px 35px #dcff3825;
}
.hero .secondary{background:#25142adc;border-color:#e0a0c689}
.hero .orbit{display:none}
.hero .spotlights{z-index:0;opacity:.74}
.hero-gift{
  position:absolute;
  --stage-size:clamp(158px,18.5vw,290px);
  z-index:2;
  width:var(--stage-size);
  right:clamp(24px,4.6vw,85px);
  bottom:18px;
  text-align:center;
}
.gift-deck{
  position:relative;
  display:block;
  margin:0 auto;
  width:100%;
  height:calc(var(--stage-size)*.72);
  border:0;
  background:none;
  color:var(--ink);
  isolation:isolate;
}
.gift-deck:before,.gift-deck:after{
  content:"";
  display:block;
  width:70%;
  aspect-ratio:3.7;
  border-radius:50%;
  position:absolute;
  left:15%;
  bottom:12%;
  z-index:-1;
}
.gift-deck:before{background:#e6ff3d43;filter:blur(16px)}
.gift-deck:after{border:1px solid #eaff618c;box-shadow:0 0 22px #dcff553b,inset 0 0 19px #ffc87927}
.gift-deck:hover:before{background:#e6ff3d70}
.gift-deck:focus-visible{outline-offset:-5px}
.gift-render{position:absolute;width:100%;height:100%;inset:0;z-index:1;pointer-events:none;visibility:hidden}
.gift-deck .gift-render{height:93%;top:-5%}
.has-webgl>.gift-render{visibility:visible}
.has-webgl>.cube,.has-webgl>.deck-fallback{visibility:hidden}
.deck-fallback{
  position:absolute;
  z-index:1;
  width:58%;
  left:21%;
  top:5%;
  color:var(--accent);
  filter:drop-shadow(0 12px 18px #150920aa);
  animation:parcel-float 3.8s ease-in-out infinite;
}
.gift-deck.shaken .deck-fallback{animation:parcel-shake .62s ease-out both}
@keyframes parcel-float{50%{transform:translateY(-8px) rotate(-4deg)}}
@keyframes parcel-shake{20%{transform:scale(1.07) rotate(-12deg)}40%{transform:rotate(9deg)}62%{transform:rotate(-6deg)}}
.gift-deck-label{
  position:absolute;
  z-index:2;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  color:#fff5ee;
  border:1px solid #c9a49f74;
  border-radius:6px;
  background:#1d1627ed;
  box-shadow:0 4px 14px #120c19ad;
  padding:5px 9px;
  font-size:.82rem;
  font-weight:760;
  white-space:nowrap;
}
#gift-feedback{
  margin:6px auto 0;
  min-height:2.7em;
  max-width:210px;
  color:#f6d5e9;
  line-height:1.3;
  font-size:.83rem;
  font-weight:630;
}
.gift-button .gift-render{z-index:2}
.gift-button:after{z-index:0}
.strip{
  background:#1d1325;
  border-bottom-color:#79516f77;
  padding:16px clamp(20px,5.15vw,100px);
}
.strip strong{color:#fff0f6}
.strip span:last-child{color:#f5e6f0}
.strip span strong:before{
  content:"";
  display:inline-block;
  width:7px;height:7px;
  margin-right:9px;
  vertical-align:2px;
  background:#fd70b9;
  border-radius:50%;
  box-shadow:0 0 9px #ff61b8a5;
}
.strip span:last-child strong:before{
  background:#eaff61;
  box-shadow:0 0 9px #eaff6190;
}
.cast{
  padding-inline:clamp(20px,5.15vw,100px);
  padding-top:40px;
  background:radial-gradient(ellipse at 55% -65%,#5d2144,#1c1426 74%);
}
.cast-grid{max-width:none}
.cast-card{border-color:#77506d94;min-height:182px;background:#24182b}
.cast-card .portrait:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 75%,#24182b 100%);
  pointer-events:none;
}
.cast-copy blockquote{color:#fae1ee}
.work{scroll-margin-top:18px}
#coulisses{scroll-margin-top:15px}
@media(max-width:760px){
  .game-header .game-nav{display:none}
  header.game-header{height:60px}
  .hero{min-height:0;align-items:flex-start;padding-top:clamp(286px,62vw,437px)}
  .hero .plate{background-size:auto clamp(376px,86vw,615px);background-position:80% 0;transform:none}
  .hero:after{background:linear-gradient(0deg,#130d19 2%,#1f0f23 35%,#26122d 44%,#30153313 76%,transparent 93%)}
  .hero-copy{padding:11px 20px 30px}
  .hero h1{font-size:clamp(4.1rem,15.8vw,7.3rem);letter-spacing:-.093em}
  .hero-copy .kicker{margin-bottom:16px;font-size:.78rem}
  .hero-copy .subtitle{margin-top:19px}
  .hero-copy .actions{margin-top:19px}
  .hero-gift{--stage-size:151px;bottom:auto;top:clamp(154px,38vw,291px);right:9px}
  .gift-deck-label{font-size:.74rem}
  #gift-feedback{font-size:.75rem;text-shadow:0 2px 6px #150e1a}
  .strip{gap:9px 15px}
  .strip span{font-size:.88rem}
  .cast-card{min-height:153px}
}
@media(max-width:360px){
  .hero-copy .actions{gap:10px}
  .hero-copy .actions>*{padding-inline:12px;font-size:.91rem}
  .hero-gift{--stage-size:130px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero .plate{transform:none;animation:none}
  .hero-copy,.deck-fallback,.gift-deck.shaken .deck-fallback{animation:none}
}

.guest-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:17px 0 14px}
.guest-message #guest-alias{color:var(--lime);font-weight:850}
#network-rsvp .primary{margin-top:8px}
#network-start:disabled{cursor:not-allowed;opacity:.55}
.group-name-field{margin-bottom:16px}.group-name-field input{margin-top:6px}
.joker-clock{margin:9px 0;color:var(--lime);font-size:.93rem;font-weight:780;font-variant-numeric:tabular-nums}

@media (max-width: 540px) {
  .hero-copy .actions {
    display: grid;
    max-width: 360px;
  }
  .hero-copy .actions > * {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
    padding-inline: 16px;
  }
  .hero-gift {
    top: clamp(129px, 35vw, 220px);
  }
  .card .secondary, .cast-copy .secondary, .guest-actions > *, .scene .primary, .scene .secondary {
    min-height: 44px;
  }
  .card-actions > * {
    flex: 1 1 auto;
  }
  .guest-wrap {
    margin-block: 14px 30px;
  }
  .guest-actions > * {
    flex: 1 1 100%;
  }
  .guest-actions + .secondary, #network-start {
    min-height: 44px;
  }
  .film-controls .primary, .film-controls .secondary {
    min-height: 44px;
  }
  .film-controls .close, .scene .close {
    width: 44px;
    height: 44px;
  }
  .scene h2 {
    margin-inline: 16px;
  }
}
@media (max-width: 360px) {
  .game-header .brand {
    font-size: .79rem;
    gap: 6px;
  }
  .game-header .sound {
    padding-inline: 8px;
  }
  .guest-wrap {
    width: calc(100% - 16px);
  }
  .scene, .guest-message {
    padding-inline: 15px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .film {
    min-height: 0;
    height: calc(100svh - 26px);
  }
  .film-rig {
    width: min(32%, 55vh);
    bottom: 75px;
  }
  .film-script {
    bottom: 57px;
    padding-block: 6px;
  }
}
