:root{--wine:#55182d;--velvet:#280c1b;--rose:#f5b5cf;--pearl:#fff4e9;--champagne:#ffdb9f}
.roast-nav{border-color:#531c2d30;color:var(--wine);min-height:61px;gap:.8rem;background:var(--pearl)}
.roast-menu-link{font-weight:700;font-size:.8rem;white-space:nowrap}
.roast-foot{border-color:#531c2d30;color:var(--wine);padding-block:1.1rem}
#stage{min-height:65vh}
.load-stage{padding:15vh 6vw;color:var(--wine)}
.roast-product,.how-section{width:min(1250px,92.5%);margin-inline:auto}
.roast-product{display:grid;gap:1.4rem;margin-block:1.15rem 2.3rem}
.product-art{position:relative;min-width:0;overflow:hidden;border-radius:1.35rem;background:#53152e;aspect-ratio:1.28}
.product-art img{height:100%;object-fit:cover}
.product-art figcaption{position:absolute;inset:0;padding:1.15rem;display:flex;justify-content:space-between;color:#ffdddf;font-size:.64rem;font-weight:900;letter-spacing:.15em;background:linear-gradient(#1f050d85,transparent 25%);pointer-events:none}
.product-copy{align-self:center;color:var(--wine);min-width:0}
.roast-label{font-weight:900;font-size:.7rem;letter-spacing:.16em;line-height:1.35}
.product-copy h1{margin:.45rem 0 .6rem;font-size:clamp(2.65rem,6.5vw,7.3rem);line-height:.88;letter-spacing:-.074em;font-weight:860}
.product-copy h1 em,.stage-title em{font-family:var(--serif);font-style:italic}
.product-copy h1 em{display:block}
.roast-lead{font-size:clamp(1.07rem,2vw,1.41rem);font-weight:680;line-height:1.28}
.product-facts{padding:0;display:flex;flex-wrap:wrap;gap:0;list-style:none;font-size:.73rem;font-weight:720;color:#70475a;margin:.8rem 0}
.product-facts li+li:before{content:"·";padding-inline:.44rem}
.purchase-line{display:flex;gap:.68rem;align-items:baseline;margin:1.05rem 0 .6rem}
.purchase-line strong{font-family:var(--display);font-size:1.85rem;line-height:1}
.purchase-line span,.product-note{font-size:.75rem}
.product-actions{display:flex;gap:.52rem;flex-wrap:wrap}
.roast-button{border:1px solid currentColor;border-radius:999px;min-height:44px;padding:.62rem 1.05rem;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;text-align:center;font-weight:800;font-size:.92rem;line-height:1.15;background:transparent;text-decoration:none}
.roast-button.primary{background:var(--wine);color:var(--pearl);border-color:var(--wine)}
.roast-button.primary:hover{background:#741f42}
.roast-button.secondary:hover{background:#f3cada}
.roast-button:disabled{cursor:default;opacity:.45}
.product-note{margin-top:.58rem;color:#755165}
.how-section{color:var(--wine);padding-bottom:3rem}
.how-section h2{font-size:clamp(2.28rem,5vw,4.6rem);margin-bottom:1rem}
.how-acts{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem;margin:0 0 1.5rem}
.how-acts li{border-radius:1rem;background:#f4e6dc;padding:.9rem}
.how-acts li:nth-child(2){background:#f4d8e6}.how-acts li:nth-child(3){background:#eaddf1}.how-acts li:nth-child(4){background:#f5dec2}
.how-acts span{font-size:.65rem;font-weight:800}
.how-acts h3{font-size:1.45rem;margin:.3rem 0 .45rem;line-height:.98}
.how-acts p,.how-section details p{font-size:.83rem;line-height:1.35}
.how-section details{border-top:1px solid #59132e30;padding:.65rem 0}.how-section details summary{font-weight:750;cursor:pointer}
.how-section details p{margin:.4rem 0}.related{display:flex;gap:1rem;flex-wrap:wrap;font-weight:750;font-size:.8rem;margin-top:1rem}
.game-wrap{position:relative;isolation:isolate;background:radial-gradient(ellipse at 47% -20%,#90345a 0,transparent 50%),radial-gradient(ellipse at 80% 100%,#58102d,transparent 47%),#210b17;color:var(--pearl);min-height:calc(100dvh - 61px);padding:clamp(1.05rem,3.75vw,3rem) 4vw 3rem;overflow:hidden}
.game-wrap:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,#230414a0,transparent 26%,transparent 74%,#240415c0),repeating-linear-gradient(88deg,#c43b6724 0,#28041224 28px,transparent 50px);opacity:.7}
.game-inner{width:min(1120px,100%);margin-inline:auto}
.game-top{display:flex;justify-content:space-between;align-items:center;min-height:40px;gap:1rem;color:var(--rose);margin-bottom:clamp(.8rem,2.6vw,2rem)}
.game-top a{font-size:.8rem;font-weight:700;padding:.5rem 0}
.room-pill{align-self:center;font-weight:900;font-size:.72rem;letter-spacing:.15em;white-space:nowrap;padding:.35rem .65rem;border:1px solid #ffb8d750;border-radius:999px}
.acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.36rem;margin:0 0 clamp(1.25rem,4vw,3.5rem);padding:0;list-style:none;color:#e2aec6;font-size:clamp(.58rem,1.35vw,.76rem);line-height:1.25;font-weight:760}
.acts li{border-top:2px solid #ec93b842;padding:.45rem 0;min-width:0}
.acts li[aria-current="step"]{border-color:var(--rose);color:#fff}
.acts b{display:block;font-size:.7rem;margin-bottom:.25rem;color:var(--rose)}
.stage-title{font-size:clamp(2.75rem,10vw,7.1rem);line-height:.88;letter-spacing:-.076em;margin:.42rem 0 .78rem;text-wrap:balance}
.stage-kicker{color:var(--rose)}
.stage-note{max-width:40ch;color:#f8d5e6;line-height:1.4;margin:.48rem 0 .95rem}
.stage-grid{display:grid;gap:clamp(1rem,5vw,4.8rem);align-items:start}
.stage-body,.stage-aside{min-width:0}
.invite-card,.ballot,.entry-form,.player-list,.sidebox{border:1px solid #ffb7d54a;background:#361023aa;border-radius:1rem;padding:1rem}
.invite-card h2,.stage-aside h2,.sidebox h2,.deck h2{font-size:clamp(1.3rem,3vw,2.2rem);letter-spacing:-.048em;line-height:1.1;margin:0 0 .48rem}
.invite-card p{color:#f5ccd8;font-size:.83rem}
.room-invite{display:flex;gap:1rem;justify-content:space-between;align-items:center}
.qr{width:103px;height:103px;display:block;background:#fff;object-fit:contain;padding:6px;border-radius:.6rem}
.large-code{font:850 clamp(1.5rem,6vw,3rem)/1 var(--display);letter-spacing:.09em;color:var(--champagne);margin-block:.65rem}
.roster{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0}
.roster li,.status-chip{padding:.37rem .62rem;border:1px solid #ffaeca55;border-radius:999px;background:#4c1530;color:#ffdfef;font-size:.77rem;max-width:100%;overflow-wrap:anywhere}
.game-wrap .roast-button.primary,.reveal-modal .roast-button.primary{background:var(--rose);color:#360d22;border-color:var(--rose)}
.game-wrap .roast-button.primary:hover{background:#ffdbeb}
.game-wrap .roast-button.secondary:hover{background:#f9bad52a}
.game-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1rem}
.game-actions>*{flex:0 1 auto}
.entry-form label{display:block;font-weight:750;margin:0 0 .43rem}
.entry-form input,.entry-form select,.entry-form textarea{display:block;width:100%;min-height:45px;background:#fff3ec;color:#4b152e;border:1px solid #f7b9d1;border-radius:.64rem;padding:.65rem;font-size:1rem}
.entry-form textarea{min-height:98px;resize:vertical}
.char-count,.game-status,.small-note{font-size:.77rem;color:#efbdd3;margin-top:.4rem;min-height:1.2em}
.game-status[data-error="yes"]{color:#ffbeb4}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:.5rem}
.vote-card{position:relative;display:block;min-height:48px;cursor:pointer;border:1px solid #ffaeca6a;background:#4c1631;border-radius:.7rem;padding:.68rem;color:#fff0f6;line-height:1.25;font-weight:710;overflow-wrap:anywhere}
.vote-card input{accent-color:#f69ac4;margin-right:.3rem}.vote-card:has(input:checked){background:#ffd0e2;color:#460f27;border-color:#ffd0e2}
.entry-form blockquote,.sidebox blockquote{margin:.48rem 0;font-weight:700;color:#fff;overflow-wrap:anywhere}
.entry-form .story-option+.story-option{border-top:1px solid #f4adcf69;padding-top:.72rem;margin-top:.72rem}
.sidebox{margin-top:.7rem}.sidebox > :last-child{margin-bottom:.15rem}
.moderation-line{display:flex;align-items:start;justify-content:space-between;gap:.5rem;border-top:1px solid #ffaed33c;padding-block:.45rem;font-size:.8rem}
.moderation-line button{min-height:44px;border:0;background:none;text-decoration:underline;color:#ffc0cf}
.lobby-roster{margin-top:.65rem}.join-entry{max-width:520px}
.curStage{text-align:center;max-width:790px;margin:0 auto}
.curStage .stage-title,.curStage .stage-note{margin-inline:auto}
.curStage .game-actions{justify-content:center}
.envelope{position:relative;isolation:isolate;display:grid;place-content:center;min-height:200px;width:min(510px,100%);margin:0 auto 1rem;overflow:hidden;border-radius:1.2rem;background:#690b33 url("../assets/roast-awards.webp") center 52%/cover}
.envelope::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse,#250c258c,transparent),linear-gradient(180deg,#26101916,#170713b5)}
.envelope b{position:relative;color:#ffd9a7;font-family:var(--display);font-size:clamp(2.6rem,8vw,5rem);line-height:1;letter-spacing:-.067em;text-shadow:0 5px 22px #0c0009}
.award-stage{position:relative;isolation:isolate;min-height:280px;display:grid;align-content:center;justify-items:center;text-align:center;overflow:hidden;border-radius:1.2rem;border:1px solid #fbbc966a;padding:1.3rem;background:#351023 url("../assets/roast-awards.webp") center 58%/cover;margin-bottom:1rem}
.award-stage::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 20%,#fb81ac55,transparent 35%),linear-gradient(180deg,#200a1f92,#220d1dc9 60%,#290921f0)}
.award-stage h2{font:850 clamp(2.15rem,8.5vw,6.6rem)/.95 var(--display);max-width:15ch;letter-spacing:-.075em;color:#ffebc6;text-wrap:balance;margin:.45rem 0}
.award-stage .winner{font:italic 400 clamp(2rem,6vw,5.6rem)/1 var(--serif);overflow-wrap:anywhere;color:#ffc0dc;margin:.15rem 0}
.award-stage .award-desc{font-size:.87rem;max-width:37ch;margin:.65rem 0 0;color:white}
.award-stage.entrance{animation:award-in .62s cubic-bezier(.2,.75,.2,1) both}
@keyframes award-in{from{opacity:0;transform:scale(.95);filter:brightness(.55)}to{opacity:1;transform:none;filter:none}}
.revealed-list{display:grid;gap:.45rem;padding:0;list-style:none}.revealed-list li{background:#49152f;padding:.6rem;border-radius:.6rem;font-size:.82rem}.revealed-list b{color:var(--champagne)}
.reveal-modal{width:min(630px,94vw);max-height:92dvh;overflow:auto;background:var(--velvet);color:var(--pearl);border:1px solid var(--rose);border-radius:1.15rem;padding:1rem}.reveal-modal::backdrop{background:#1b0614bf}.reveal-modal .roast-button{margin:.35rem 0}
.sharing-preview{width:min(260px,100%);margin:auto;display:block;border-radius:.7rem}
@media(min-width:740px){
 .roast-product{grid-template-columns:1.08fr .92fr;gap:clamp(1.6rem,5.5vw,6.5rem);margin-top:2.8rem;margin-bottom:5rem}
 .product-art{aspect-ratio:1.04}
 .how-acts{grid-template-columns:repeat(4,1fr)}
 .stage-grid{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)}
 .envelope{min-height:255px}.award-stage{min-height:420px}
}
@media(max-width:540px){.roast-nav .roast-menu-link:first-of-type{display:none}.product-actions>*{flex:1}.game-actions>*{flex:1 1 auto}.game-top{margin-bottom:.85rem}}
@media(prefers-reduced-motion:reduce){.award-stage.entrance{animation:none}}

#stage[tabindex="-1"]:focus{outline:none}
.game-wrap-compact{min-height:0;padding-bottom:clamp(2.2rem,7vw,5rem)}
.game-wrap-compact .game-actions{gap:.6rem}
@media(max-width:480px){
  .game-wrap-compact .game-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .game-wrap-compact .game-actions .roast-button{white-space:normal}
}

.demo-ballot{display:grid;gap:.6rem;margin:.7rem 0 1rem;max-width:42rem}
.roast-button.demo-choice{display:grid;gap:.28rem;justify-items:start;width:100%;min-height:58px;
 padding:.68rem .9rem;border:1px solid #ffb8d78a;border-radius:11px;background:#49152f;color:#fff1e6;text-align:left;white-space:normal}
.demo-choice b{color:#ffc4dd;font-size:.78rem;letter-spacing:.085em;text-transform:uppercase}
.demo-choice span{font-weight:760;line-height:1.3}
.roast-button.demo-choice:hover,.roast-button.demo-choice:focus-visible{background:#72294d;border-color:#ffc4dd}
.demo-winning-line{margin:.75rem 0;font-weight:750;color:#ffe2ef;overflow-wrap:anywhere}
.room-link:not([hidden]){display:grid;gap:.25rem;margin-top:.75rem;font-size:.8rem}
.room-link input{display:block;width:100%;min-width:0}
