:root{color-scheme:dark;--bg:#101d24;--panel:#1a3035;--panel-alt:#203b40;--line:#39555b;--text:#eff4e6;--muted:#acc0bf;--lime:#d5ef96;--orange:#f5c59f;--red:#e97675;--green:#8ee2ac;font-family:system-ui,-apple-system,'Apple SD Gothic Neo','Noto Sans KR',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:4px}[hidden]{display:none!important}
.topbar{height:70px;padding:0 max(24px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #30444a;background:#12232a}.back-link{display:flex;align-items:center;gap:12px;color:#d7e9db;font-size:13px;font-weight:700}.back-link span{font-size:22px;color:var(--lime)}.back-link:hover{color:var(--lime)}.top-label{font:700 11px/1.4 ui-monospace,monospace;letter-spacing:.17em;color:#a0bdb5}.top-label span{color:var(--green)}.layout{max-width:1168px;padding:0 24px;margin:auto}.intro{min-height:295px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:50px;align-items:center;padding:42px 0 36px;border-bottom:1px solid #2e474c}.eyebrow,.step{display:block;color:var(--lime);font-size:11px;font-weight:750;letter-spacing:.08em}.intro h1{margin:11px 0 13px;font-size:clamp(38px,5vw,66px);letter-spacing:-.07em;line-height:1.13}.intro h1 span{color:var(--lime)}.intro-copy>p:not(.eyebrow){max-width:675px;margin:0;color:var(--muted);font-size:14px;line-height:1.9;word-break:keep-all}.intro-copy strong{color:var(--text)}.feature-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}.feature-pills span{border:1px solid #466061;border-radius:5px;padding:7px 11px;color:#c5d7ce;font-size:11px}.hero-signal{position:relative;display:flex;justify-content:center;align-items:center;height:220px;overflow:hidden}.hero-signal::before{content:'';position:absolute;width:245px;height:245px;border:1px dashed #4c6c65;border-radius:50%;transform:rotate(12deg)}.signal-shell{display:flex;align-items:center;gap:20px;padding:24px 20px;border:7px solid #09171a;border-radius:24px;background:#273b3f;box-shadow:10px 14px 0 #050d11,0 0 0 1px #436264 inset;transform:rotate(-7deg)}.signal-shell i{width:49px;height:49px;border:6px solid #0c1d23;border-radius:50%;background:#26383d;box-shadow:inset 0 4px 10px #0009}.signal-shell .red{background:#e36f65;box-shadow:0 0 23px #e36f6590,inset 0 3px 6px #fff5}.signal-shell .amber{background:#d9a95b;opacity:.35}.signal-shell .green{background:#7bcf96;opacity:.4}.signal-flash{position:absolute;right:6px;top:36px;color:var(--lime);transform:rotate(12deg);font:900 23px ui-monospace,monospace}
.panel{border:1px solid var(--line);border-radius:16px;background:var(--panel)}.setup{padding:28px;margin-top:28px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px}.section-heading h2,.arena-top h2,.rules-title h2,.finish-heading h2{font-size:26px;letter-spacing:-.04em;margin:7px 0}.section-heading p,.arena-top p,.finish-heading p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.count-select{display:grid;gap:8px;color:#c6d7cd;font-size:12px;font-weight:700}.count-select select{min-width:170px;background:#14272d;color:var(--text);border:1px solid #61736d;border-radius:9px;padding:12px}.player-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:25px 0}.player-input{display:grid;gap:8px;min-width:0}.player-input label{font-size:11px;color:#bdd1c9;font-weight:700}.player-input input{width:100%;min-width:0;border-radius:8px;border:1px solid #496268;background:#10252b;padding:13px 12px;color:var(--text);font-size:14px}.player-input input::placeholder{color:#79918f}.setup-bottom{display:flex;gap:22px;justify-content:space-between;align-items:center;padding-top:20px;border-top:1px solid var(--line)}.setup-bottom p{max-width:520px;margin:0;font-size:12px;color:var(--muted);line-height:1.65}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:48px;padding:12px 20px;border:1px solid transparent;border-radius:9px;font-weight:750;font-size:13px;text-align:center}.button.primary{color:#192b23;background:var(--lime);border-color:var(--lime)}.button.primary:hover{background:#ebffc4}.button.ghost{background:transparent;border-color:#58706a;color:#d3e2d4}.button.ghost:hover{background:#2a4548}
.arena{padding:32px 0 0}.arena-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.arena-top h2{font-size:32px}.turn-counter{font-weight:800;font-variant-numeric:tabular-nums;color:var(--lime);border:1px solid #49675e;border-radius:8px;padding:10px 14px}.arena-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:18px}.arena-main{min-width:0}.traffic-lights{display:flex;justify-content:center;gap:17px;margin-bottom:12px}.light{width:25px;height:25px;border:3px solid #3c5255;border-radius:50%;background:#273e42}.arena[data-phase=waiting] .light.red{background:#e96363;box-shadow:0 0 20px #e9636366}.arena[data-phase=amber] .light.amber{background:#f3c35f;box-shadow:0 0 20px #f3c35f66}.arena[data-phase=green] .light.green{background:#9dffa9;box-shadow:0 0 20px #9dffa999}
.reaction-pad{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;gap:16px;width:100%;min-height:330px;padding:36px 16px;border:1px solid #4f6b66;border-radius:18px;background:radial-gradient(circle at 50% 45%,#345359,#1f383d 66%);color:var(--text);text-align:center;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:background .08s linear,box-shadow .08s}.reaction-pad:disabled{opacity:1}.pad-orbit{position:absolute;width:min(330px,90%);aspect-ratio:1;border:1px dashed #94b1a147;border-radius:50%;z-index:-1}.pad-icon{font-size:58px;line-height:1;color:#afc8b6}.pad-text{font-size:clamp(28px,4.5vw,48px);font-weight:900;letter-spacing:-.06em;line-height:1.2}.pad-subtext{font-size:13px;color:#bed2c9;font-weight:650}.reaction-pad.is-waiting{background:radial-gradient(circle at 50% 30%,#864d4e,#622e36 70%);border-color:#c56869}.reaction-pad.is-waiting .pad-icon{color:#f5aaaa}.reaction-pad.is-amber{background:radial-gradient(circle at 50% 30%,#957346,#57412e 70%);border-color:#caa36b}.reaction-pad.is-amber .pad-icon{color:#ffe6a2}.reaction-pad.is-green{background:radial-gradient(circle at 50% 35%,#4da66a,#206d56 78%);border-color:#b4fdc2;box-shadow:0 0 0 3px #8effad35}.reaction-pad.is-green .pad-icon,.reaction-pad.is-green .pad-subtext{color:#ddffe2}.reaction-pad.is-false{background:radial-gradient(circle at 50% 30%,#a94f52,#542c38 75%);border-color:#ed8b85}.reaction-pad.is-done{background:radial-gradient(circle at 50% 30%,#486d69,#1f3b46 72%);border-color:#80b2a7}.reaction-pad.is-green .pad-orbit{animation:pulse 1.1s ease-in-out infinite}.pad-hint{font-size:12px;line-height:1.7;color:var(--muted);text-align:center;margin:13px 12px 18px}.result-chip{text-align:center;border:1px solid #52746c;border-radius:8px;background:#213c3f;padding:12px;color:var(--lime);font-weight:750;margin-bottom:14px}.turn-action{width:100%;font-size:15px;min-height:56px}.arena-other-actions{display:flex;justify-content:center;gap:18px;margin-top:16px}.arena-other-actions .button{min-height:36px;font-size:12px;padding:8px 14px}
.score-panel{padding:24px;align-self:start}.score-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:9px;padding-bottom:18px;border-bottom:1px solid var(--line)}.score-heading h3{margin:6px 0 0;font-size:23px}.score-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}.score-list,.final-list{padding:0;margin:17px 0;list-style:none;display:grid;gap:8px}.score-list li,.final-list li{display:grid;align-items:center;grid-template-columns:36px 1fr auto;gap:11px;border-radius:10px;padding:12px 10px;background:#264146}.rank{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:#36535a;font-weight:900;color:var(--lime)}.rank-name{font-weight:750;font-size:13px;overflow-wrap:anywhere}.rank-score{font-size:12px;color:#caddd2;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}.score-list li.pending{opacity:.68}.score-list li.false,.final-list li.false .rank-score{color:#ffbcaf}.score-foot{margin:0;padding-top:13px;border-top:1px solid var(--line);font-size:11px;line-height:1.7;color:var(--muted)}.grade-guide{margin-top:18px;background:#13282d;border:1px solid #315155;border-radius:11px;padding:15px}.grade-guide strong{font-size:12px;color:var(--text)}.grade-guide>div{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:13px;font-size:11px;color:#c7d8cf}
.finish{margin:27px 0;padding:28px}.finish-heading{margin-bottom:23px}.loser-card{display:flex;gap:19px;align-items:center;border-radius:15px;padding:20px;background:linear-gradient(110deg,#654735,#3b3936);border:1px solid #a68c5b}.loser-icon{display:grid;place-items:center;flex:none;width:75px;height:75px;border-radius:50%;background:#efd8a3;color:#493227;font-size:39px}.loser-card p{margin:0 0 6px;color:#ffe4b5;font-size:12px}.loser-card strong{display:block;font-size:clamp(26px,4vw,43px);letter-spacing:-.05em}.loser-card small{display:block;margin-top:5px;font-size:12px;color:#f4ddca}.final-list{grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0 22px}.finish-actions{display:flex;flex-wrap:wrap;gap:10px}.rules{padding:28px 0 45px}.rules-title h2{margin:8px 0 16px;font-size:22px}.rules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rules-grid article{border-top:2px solid #57736d;padding:15px 4px}.rules-grid article>span{color:var(--lime);font-size:12px;font-weight:850}.rules-grid h3{font-size:16px;margin:8px 0}.rules-grid p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}footer{border-top:1px solid #304b50;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px max(24px,calc((100vw - 1120px)/2));font-size:12px;color:var(--muted)}footer a:hover{color:var(--lime)}
@keyframes pulse{50%{transform:scale(1.08);opacity:.55}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:850px){.intro{grid-template-columns:1fr 160px;gap:18px}.hero-signal{height:180px}.signal-shell{flex-direction:column;gap:8px;padding:12px}.signal-shell i{width:35px;height:35px}.signal-flash{right:0}.player-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.arena-grid{grid-template-columns:1fr}.score-panel{margin-top:8px}.score-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.topbar{height:58px;padding:0 17px}.top-label{font-size:9px}.layout{padding:0 16px}.intro{padding:31px 0 24px;grid-template-columns:1fr 84px;min-height:0;gap:6px}.intro h1{font-size:clamp(31px,8vw,42px)}.intro-copy>p:not(.eyebrow){font-size:12px;line-height:1.75}.eyebrow{font-size:10px}.feature-pills{gap:5px;margin-top:12px}.feature-pills span{padding:5px 7px;font-size:10px}.hero-signal{height:130px}.signal-shell{padding:10px 8px;gap:5px;border-width:4px;border-radius:12px;box-shadow:5px 7px 0 #050d11}.signal-shell i{width:21px;height:21px;border-width:3px}.hero-signal::before{width:105px;height:105px}.signal-flash{top:8px;font-size:14px}.setup,.finish{padding:17px;margin-top:18px}.section-heading{display:block}.section-heading h2,.arena-top h2{font-size:23px}.section-heading p{font-size:12px}.count-select{margin-top:18px;max-width:225px}.count-select select{min-width:0}.player-inputs{gap:9px;margin:19px 0}.player-input input{padding:12px 10px}.setup-bottom{display:block}.setup-bottom p{margin:0 0 16px}.setup-bottom .button{width:100%}.arena{padding-top:20px}.arena-top h2{font-size:26px}.turn-counter{padding:8px;font-size:12px}.reaction-pad{min-height:295px}.pad-text{font-size:33px}.arena-other-actions{gap:9px}.score-panel{padding:17px}.score-list{grid-template-columns:1fr}.grade-guide>div{grid-template-columns:repeat(2,1fr)}.final-list{grid-template-columns:1fr}.loser-icon{width:58px;height:58px;font-size:30px}.loser-card{padding:15px}.rules{padding-top:13px}.rules-grid{grid-template-columns:1fr;gap:6px}.rules-grid article{padding:13px 4px}footer{padding:17px;display:block}footer small{display:block;margin-top:9px}}

/* Unified one-touch reaction stage. */
.turn-roster{display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding:2px 1px 13px;margin:0 0 14px;scrollbar-width:thin;scrollbar-color:#5c7b70 transparent;scroll-snap-type:x proximity}
.turn-member{flex:1 0 112px;min-width:0;max-width:200px;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;padding:10px 11px;border:1px solid #355356;border-radius:12px;background:#182e35;color:#a7c1b9;scroll-snap-align:start}
.turn-index{grid-row:1/3;display:grid;place-items:center;width:29px;height:29px;background:#29444b;border-radius:9px;font:850 12px/1 ui-monospace,monospace;color:#a8c6bd}
.turn-name{font-size:12px;font-weight:780;color:#d8e9df;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.turn-score{font-size:10px;font-weight:650;color:#9db3ac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.turn-member.is-current{background:#2b4842;border-color:#b8dc85;box-shadow:inset 0 1px #daeead25,0 0 0 2px #d5ef9620}
.turn-member.is-current .turn-index{color:#22382c;background:#d5ef96}
.turn-member.is-done{background:#1e363d}.turn-member.is-done .turn-score{color:#d4e9ad}
.turn-member.is-false .turn-score{color:#ffab9e}
.pressure-band{margin-bottom:13px;padding:12px 15px;border-radius:11px;border:1px solid #bd977a;background:linear-gradient(105deg,#564235,#353b3c);color:#f7e3c0;font-size:12px;font-weight:750;line-height:1.5;animation:pressure-shimmer 1.7s ease-in-out infinite alternate}
.pressure-band[hidden]{display:none}
@keyframes pressure-shimmer{to{border-color:#e6cf99;box-shadow:inset 0 0 17px #fff4b309}}
.arena-main{position:relative;min-width:0}
.traffic-lights{margin:4px 0 13px;gap:12px}
.traffic-lights .light{width:31px;height:31px;border:4px solid #0e252b;box-shadow:inset 0 2px 8px #000a,0 0 0 1px #59707770;background:#29414a;transition:background .11s ease,box-shadow .11s ease}
.arena[data-phase=waiting] .light.red{background:#ef776f;box-shadow:0 0 18px #ef776f80,inset 0 1px 5px #ffc8bb}
.arena[data-phase=amber] .light.amber{background:#f9cc73;box-shadow:0 0 24px #ffc865a3,inset 0 1px 6px #fff2c0}
.arena[data-phase=green] .light.green{background:#a1f7b7;box-shadow:0 0 25px #91ffb49d,inset 0 1px 7px #efffec}
.reaction-pad{min-height:370px;gap:13px;border-width:2px;border-radius:20px;box-shadow:inset 0 2px 2px #ffffff0e,0 16px 27px #020c1355;cursor:pointer}
.reaction-pad .pad-text{z-index:1}.reaction-pad .pad-icon{position:relative;font-size:60px;filter:drop-shadow(0 5px 10px #04141b61)}
.reaction-pad .pad-subtext{max-width:90%;font-size:13px;font-weight:750;z-index:1;line-height:1.6}
.reaction-pad.is-ready{background:radial-gradient(circle at 50% 36%,#3c6359 0%,#223f3f 55%,#142c36 100%);border-color:#9abb87}
.reaction-pad.is-ready::after{content:'TAP TO START';position:absolute;inset:auto 0 16px;pointer-events:none;font:750 10px/1.5 ui-monospace,monospace;letter-spacing:.22em;color:#b2d5be;opacity:.86}
.reaction-pad.is-ready:hover{border-color:#d5ef96;box-shadow:0 0 0 3px #d5ef9620,0 16px 27px #020c1355}
.reaction-pad.is-waiting{background:radial-gradient(circle at 50% 36%,#a15155 0%,#63333d 61%,#3a2834 100%);border-color:#e5827f}
.reaction-pad.is-amber{background:radial-gradient(circle at 50% 36%,#bd914d,#755537 55%,#423627 100%);border-color:#f4d18a}
.reaction-pad.is-amber .pad-icon{animation:amber-warning .25s steps(2) infinite}
@keyframes amber-warning{to{opacity:.36}}
.reaction-pad.is-green{background:radial-gradient(circle at 50% 34%,#61bb7a,#31855f 61%,#1b614a);border-color:#b8ffd0;box-shadow:inset 0 3px 25px #e8ffdc20,0 0 0 3px #80ed9b41,0 12px 37px #3ee09c2f}
.reaction-pad.is-false{border-color:#fdaca3;background:radial-gradient(circle at 50% 31%,#b96063,#833c48 60%,#4c3039)}
.reaction-pad.is-done{background:radial-gradient(circle at 50% 30%,#48796e,#254f55 65%,#1a3642);border-color:#b1e2b7}
.reaction-pad.is-done::after,.reaction-pad.is-false::after{content:'TAP FOR NEXT';position:absolute;inset:auto 0 15px;font:750 10px/1.5 ui-monospace,monospace;letter-spacing:.19em;color:#f2e8cd;pointer-events:none}
.reaction-pad:active:not(:disabled){filter:brightness(1.09)}
.pad-hint{margin:14px 9px 11px;font-size:12px;max-width:640px}
.result-chip{margin:0 0 12px;padding:14px 18px;border-color:#648c7f;border-radius:12px;background:#254043;font-size:13px}
.arena-other-actions{margin-top:12px}.arena-other-actions .button{background:#1b333a;border-color:#486a65}
@media(max-width:570px){.arena{padding-top:17px}.turn-roster{gap:7px;margin-bottom:10px;padding-bottom:10px}.turn-member{flex:0 0 119px;padding:9px 8px}.reaction-pad{min-height:315px;border-radius:16px;gap:12px}.pad-text{font-size:clamp(30px,9vw,39px)}.pad-subtext{font-size:12px}.pressure-band{padding:11px 12px;font-size:11px}.traffic-lights .light{width:28px;height:28px}.pad-hint{font-size:11px;margin:10px 5px 12px}}
@media(prefers-reduced-motion:reduce){.pressure-band,.reaction-pad.is-amber .pad-icon{animation:none!important}}

/* Allow independent music/effects controls to wrap on compact screens. */
.arena-other-actions{flex-wrap:wrap;gap:10px}
.arena-other-actions .button[aria-pressed="false"]{opacity:.72}


/* Reaction Lab visual identity. Scoped to this game; signal timing and state logic unchanged. */
/* Warm instrument panel by day / timing-console at night. */
html[data-theme="light"] body.standalone-hub-page-reaction{
  --bg:#edf2eb;--panel:#fffdf5;--panel-alt:#f4f7f0;--line:#bdcec4;
  --text:#203e34;--muted:#506d61;--lime:#226c4c;--orange:#855422;
  --red:#b14f51;--green:#157b53;
  --rx-surface:#fffdf5;--rx-inset:#e9f0e6;--rx-button:#1d664a;--rx-button-ink:#fffdf4;
  background:radial-gradient(ellipse at 87% 8%,#d4e7d4 0%,transparent 34%),linear-gradient(135deg,#f5f6ef 0%,#e8f0e8 100%);
  color:var(--text);color-scheme:light;
}
html[data-theme="dark"] body.standalone-hub-page-reaction{
  --bg:#0d1c25;--panel:#172f35;--panel-alt:#203b40;--line:#45635f;
  --text:#f0f6ec;--muted:#b8d1c8;--lime:#bcea9e;--orange:#ffcf87;
  --red:#ff938b;--green:#9ce2ae;
  --rx-surface:#183139;--rx-inset:#12272e;--rx-button:#c8eda2;--rx-button-ink:#1b352b;
  background:radial-gradient(ellipse at 86% 4%,#254e4759 0%,transparent 40%),linear-gradient(145deg,#102630,#0b1c25 70%);
  color:var(--text);color-scheme:dark;
}
html[data-theme] body.standalone-hub-page-reaction .layout{position:relative}
html[data-theme] body.standalone-hub-page-reaction .intro{
  position:relative;isolation:isolate;overflow:hidden;
  border-bottom:1px solid var(--line);min-width:0;
}
html[data-theme] body.standalone-hub-page-reaction .intro::before{
  content:"";position:absolute;inset:0 0 0 auto;width:45%;z-index:-1;pointer-events:none;
  background:repeating-linear-gradient(90deg,transparent 0 39px,currentColor 40px 41px),
             repeating-linear-gradient(0deg,transparent 0 39px,currentColor 40px 41px);
  opacity:.028;mask-image:linear-gradient(90deg,transparent,#000);
}
html[data-theme] body.standalone-hub-page-reaction .intro h1{
  color:var(--text);letter-spacing:-.065em;text-wrap:balance;
}
html[data-theme] body.standalone-hub-page-reaction .intro h1 span{color:var(--lime)}
html[data-theme] body.standalone-hub-page-reaction .intro-copy>p:not(.eyebrow),
html[data-theme] body.standalone-hub-page-reaction .section-heading p,
html[data-theme] body.standalone-hub-page-reaction .arena-top p,
html[data-theme] body.standalone-hub-page-reaction .finish-heading p,
html[data-theme] body.standalone-hub-page-reaction .setup-bottom p{color:var(--muted)}
html[data-theme] body.standalone-hub-page-reaction .eyebrow,
html[data-theme] body.standalone-hub-page-reaction .step,
html[data-theme] body.standalone-hub-page-reaction .rules-grid article>span{color:var(--lime)}
html[data-theme] body.standalone-hub-page-reaction .feature-pills span{
  border:1px solid var(--line);background:var(--rx-surface);color:var(--muted);
  border-radius:999px;font-weight:750;
}
html[data-theme] body.standalone-hub-page-reaction .hero-signal::before{border-color:var(--line);border-style:dashed}
html[data-theme] body.standalone-hub-page-reaction .signal-shell{
  border-color:#142a30;background:linear-gradient(145deg,#3b5456,#1f373c);
  box-shadow:8px 11px 0 #10272c,0 0 0 2px #7c9b8d inset,0 13px 32px #0c29283d;
}
html[data-theme] body.standalone-hub-page-reaction .signal-shell .red{
  background:#e96964;box-shadow:0 0 25px #f15d5a95,inset 0 3px 7px #fff6;
}
html[data-theme] body.standalone-hub-page-reaction .signal-flash{color:var(--lime)}
html[data-theme] body.standalone-hub-page-reaction :is(.panel.setup,.score-panel,.panel){
  background:var(--rx-surface);border:1px solid var(--line);
  box-shadow:0 12px 34px #122c2420;
}
html[data-theme="dark"] body.standalone-hub-page-reaction .panel{
  box-shadow:inset 0 1px 0 #ffffff0b,0 15px 35px #04121855;
}
html[data-theme] body.standalone-hub-page-reaction .setup{border-top:3px solid var(--lime)}
html[data-theme] body.standalone-hub-page-reaction .setup h2,
html[data-theme] body.standalone-hub-page-reaction .arena-top h2,
html[data-theme] body.standalone-hub-page-reaction .score-heading h3,
html[data-theme] body.standalone-hub-page-reaction .finish-heading h2,
html[data-theme] body.standalone-hub-page-reaction .rules h2,
html[data-theme] body.standalone-hub-page-reaction .rules-grid h3{color:var(--text)}
html[data-theme] body.standalone-hub-page-reaction .count-select{color:var(--text)}
html[data-theme] body.standalone-hub-page-reaction .count-select select{
  border:1px solid var(--line);background:var(--rx-inset);color:var(--text);
}
html[data-theme] body.standalone-hub-page-reaction .button.primary{
  background:var(--rx-button);border-color:var(--rx-button);color:var(--rx-button-ink);
  box-shadow:0 4px 0 #102e2440;
}
html[data-theme] body.standalone-hub-page-reaction .button.primary:hover{filter:brightness(1.09)}
html[data-theme] body.standalone-hub-page-reaction .button.ghost{
  color:var(--text);border-color:var(--line);background:var(--rx-inset);
}
html[data-theme] body.standalone-hub-page-reaction .button.ghost:hover{filter:brightness(.97)}
html[data-theme] body.standalone-hub-page-reaction .turn-counter{
  color:var(--lime);border:1px solid var(--line);background:var(--rx-surface);
  font-variant-numeric:tabular-nums;
}
html[data-theme] body.standalone-hub-page-reaction :is(#round-label,#turn-description,#pad-hint,#completed-count,.score-panel .step){color:var(--muted)}
html[data-theme] body.standalone-hub-page-reaction .turn-member{
  background:var(--rx-surface);border:1px solid var(--line);color:var(--text);
}
html[data-theme] body.standalone-hub-page-reaction .turn-member .turn-name{color:var(--text)}
html[data-theme] body.standalone-hub-page-reaction .turn-member .turn-score{color:var(--muted)}
html[data-theme] body.standalone-hub-page-reaction .turn-member .turn-index{
  color:var(--text);background:var(--rx-inset);
}
html[data-theme] body.standalone-hub-page-reaction .turn-member.is-current{
  background:var(--rx-inset);border-color:var(--lime);box-shadow:0 0 0 2px #70b98b28;
}
html[data-theme] body.standalone-hub-page-reaction .turn-member.is-current .turn-index{
  color:var(--rx-button-ink);background:var(--rx-button);
}
html[data-theme] body.standalone-hub-page-reaction .turn-member.is-done .turn-score{color:var(--lime)}
html[data-theme] body.standalone-hub-page-reaction .turn-member.is-false .turn-score{color:var(--red)}
html[data-theme] body.standalone-hub-page-reaction .traffic-lights .light{
  border-color:#22373a;background:#34474c;transition:none;
}
/* Keep the active traffic lamp visible above the shared instrument-housing rule.
   Previously this more-specific housing selector hid all three live signal colors. */
html[data-theme] body.standalone-hub-page-reaction .arena[data-phase="waiting"] .traffic-lights .light.red{
  background:#ff776d;box-shadow:0 0 8px #ffc4bb,0 0 24px #ed6155bb,inset 0 1px 5px #fff8;
}
html[data-theme] body.standalone-hub-page-reaction .arena[data-phase="amber"] .traffic-lights .light.amber{
  background:#ffd05a;box-shadow:0 0 8px #ffe8a0,0 0 30px #f0b53ac9,inset 0 1px 5px #fff9;
}
html[data-theme] body.standalone-hub-page-reaction .arena[data-phase="green"] .traffic-lights .light.green{
  background:#a2ffb2;box-shadow:0 0 8px #d3ffcf,0 0 26px #4eda85c2,inset 0 1px 5px #fffb;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad{
  overflow:hidden;position:relative;isolation:isolate;
  box-shadow:inset 0 0 0 1px #ffffff13,0 14px 30px #071d2240;
  transition:background .08s linear,border-color .08s linear,box-shadow .08s linear;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad .pad-orbit{
  z-index:0;border-style:solid;border-color:currentColor;opacity:.17;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad .pad-text,
html[data-theme] body.standalone-hub-page-reaction .reaction-pad .pad-icon,
html[data-theme] body.standalone-hub-page-reaction .reaction-pad .pad-subtext{
  position:relative;z-index:1;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-ready::before{
  content:"";position:absolute;inset:12px;border:1px solid currentColor;border-radius:12px;
  opacity:.14;pointer-events:none;
}
html[data-theme="light"] body.standalone-hub-page-reaction .reaction-pad.is-ready{
  color:#1e5843;border-color:#72a88c;
  background:radial-gradient(circle at 50% 45%,#ffffff 0%,#f0f8eb 42%,#d4e9dc 100%);
}
html[data-theme="light"] body.standalone-hub-page-reaction .reaction-pad.is-ready :is(.pad-icon,.pad-subtext){color:#2c6850}
html[data-theme="light"] body.standalone-hub-page-reaction .reaction-pad.is-ready::after{color:#42725d}
html[data-theme="dark"] body.standalone-hub-page-reaction .reaction-pad.is-ready{
  color:#f0f7e7;border-color:#83bba1;
  background:radial-gradient(circle at 50% 40%,#38635c 0%,#203f45 62%,#152c37 100%);
}
html[data-theme="dark"] body.standalone-hub-page-reaction .reaction-pad.is-ready .pad-subtext{color:#e1f0e0}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad:is(.is-waiting,.is-amber,.is-green,.is-false,.is-done){
  color:#fff9f1;text-shadow:0 1px 2px #16212180;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad:is(.is-waiting,.is-amber,.is-green,.is-false,.is-done) .pad-subtext{color:#fff9f1}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-waiting{
  background:radial-gradient(circle at 50% 38%,#ac4d53,#6b303c 62%,#3c2530);
  border-color:#ef9a93;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-amber{
  background:radial-gradient(circle at 50% 36%,#b78b43,#796036 62%,#463a28);
  border-color:#f5d08a;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-green{
  background:radial-gradient(circle at 50% 35%,#429b65,#1b785c 60%,#15503e);
  border-color:#a2f1b1;box-shadow:0 0 0 3px #64d99455,0 12px 35px #136f5140;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-false{
  background:radial-gradient(circle at 50% 36%,#ad5357,#773943 62%,#442a33);
  border-color:#e9a6a0;
}
html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-done{
  background:radial-gradient(circle at 50% 36%,#437e74,#28545d 65%,#193943);
  border-color:#94c6b4;
}
html[data-theme] body.standalone-hub-page-reaction .pressure-band{
  color:#fff5da;background:linear-gradient(105deg,#74523e,#3c4140);border-color:#b89068;
}
html[data-theme] body.standalone-hub-page-reaction .result-chip{
  color:var(--text);border-color:var(--line);background:var(--rx-inset);
}
html[data-theme] body.standalone-hub-page-reaction .arena-other-actions .button{
  color:var(--text);background:var(--rx-inset);border-color:var(--line);
}
html[data-theme] body.standalone-hub-page-reaction .score-list li,
html[data-theme] body.standalone-hub-page-reaction .final-list li{
  color:var(--text);background:var(--rx-inset);border:1px solid var(--line);
}
html[data-theme] body.standalone-hub-page-reaction .score-list .rank,
html[data-theme] body.standalone-hub-page-reaction .final-list .rank{
  background:var(--rx-button);color:var(--rx-button-ink);
}
html[data-theme] body.standalone-hub-page-reaction :is(.rank-name,.rank-score){color:var(--text)}
html[data-theme] body.standalone-hub-page-reaction .score-list li.false,
html[data-theme] body.standalone-hub-page-reaction .final-list li.false .rank-score{color:var(--red)}
html[data-theme] body.standalone-hub-page-reaction .score-list li.pending{opacity:.8}
html[data-theme] body.standalone-hub-page-reaction .score-foot{color:var(--muted)}
html[data-theme] body.standalone-hub-page-reaction .grade-guide{
  color:var(--text);border-color:var(--line);background:var(--rx-inset);
}
html[data-theme] body.standalone-hub-page-reaction .grade-guide :is(strong,span){color:var(--text)}
html[data-theme] body.standalone-hub-page-reaction .rules-grid article{border-color:var(--line)}
html[data-theme] body.standalone-hub-page-reaction .rules-grid article:first-child{border-top-color:#ba6662}
html[data-theme] body.standalone-hub-page-reaction .rules-grid article:nth-child(2){border-top-color:#2c9871}
html[data-theme] body.standalone-hub-page-reaction .rules-grid article:nth-child(3){border-top-color:#d3a34a}
html[data-theme] body.standalone-hub-page-reaction .rules-grid p{color:var(--muted)}
html[data-theme="light"] body.standalone-hub-page-reaction .loser-card{
  background:linear-gradient(120deg,#f2dfbc,#e6c68c);border-color:#c5a76c;color:#503b28;
}
html[data-theme="light"] body.standalone-hub-page-reaction .loser-card :is(p,small,strong){color:#503b28}
html[data-theme="dark"] body.standalone-hub-page-reaction .loser-card{
  background:linear-gradient(120deg,#6d4b39,#3d3331);border-color:#b78c5b;
}
html[data-theme] body.standalone-hub-page-reaction footer{border-color:var(--line);color:var(--muted)}
html[data-theme] body.standalone-hub-page-reaction .seo-related-games{border-color:var(--line)}
@media(max-width:570px){
  html[data-theme] body.standalone-hub-page-reaction .signal-shell{
    box-shadow:4px 6px 0 #10272c,0 0 0 1px #7c9b8d inset;
  }
  html[data-theme] body.standalone-hub-page-reaction .reaction-pad.is-ready::before{inset:9px}
  html[data-theme] body.standalone-hub-page-reaction .score-panel{margin-top:6px}
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body.standalone-hub-page-reaction .reaction-pad{transition:none}
}
