.reaction-game .reaction-board{background:#fffdf6;border-radius:16px;overflow:hidden;box-shadow:0 14px 28px #00000012}
.reaction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 26px;background:#f4f1e7;color:#435b45}.reaction-toolbar p{font-size:15px;font-weight:800;margin:0}.reaction-toolbar .icon-button{font-size:13px;white-space:nowrap}
.reaction-play{padding:24px 26px}.reaction-pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;width:100%;min-height:300px;padding:30px 20px;border:0;border-radius:12px;background:#e5eddc;color:#294b34;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;font-family:inherit}
.reaction-pad[data-phase="waiting"]{background:#993d35;color:#fff9f1}.reaction-pad[data-phase="cue"]{background:#24663f;color:#fffdf1}.reaction-pad[data-phase="false"]{background:#f5ce75;color:#513c1c}.reaction-pad[data-phase="between"],.reaction-pad[data-phase="finished"]{background:#e0eddf;color:#245436}.reaction-pad[data-phase="cancelled"]{background:#eee4d3;color:#57412e}
.reaction-pad[data-phase="ready"]:hover,.reaction-pad[data-phase="between"]:hover,.reaction-pad[data-phase="finished"]:hover{background:#d2e3cd}.reaction-pad:focus-visible{outline:3px solid #aa681b;outline-offset:5px}.signal-mark{flex-shrink:0}.signal-title{display:block;font-size:clamp(32px,5vw,52px);font-weight:900;letter-spacing:-.025em;line-height:1.12;text-align:center}.signal-copy{display:block;font-size:17px;font-weight:700;text-align:center;max-width:44ch}.reaction-pad[data-phase="waiting"] .signal-mark{opacity:.8}
.reaction-message{text-align:center;color:#38563d;font-size:16px;font-weight:800;min-height:26px;margin:20px auto 7px;max-width:65ch}.keyboard-help{font-size:12px;color:#52634d;text-align:center;margin:0 auto;max-width:65ch}
.trial-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px;margin:25px 0 12px;color:#354c37}.trial-heading h2{font-size:17px;letter-spacing:0;margin:0}.trial-heading p{font-size:13px;margin:0}.trial-heading strong{font-weight:900;margin-left:8px}
.reaction-trials{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}.reaction-trials li{min-width:0;padding:10px 6px;background:#f0f1e9;border-radius:8px;text-align:center;color:#57634c}.reaction-trials li.is-current{background:#dcebcf;outline:1px solid #7b986b}.reaction-trials li.is-done{background:#e5eddf;color:#284d33}.reaction-trials span{display:block;font-size:11px}.reaction-trials strong{display:block;font-weight:900;font-size:20px;line-height:1.3;font-variant-numeric:tabular-nums;margin-top:4px}.reaction-trials small{font-size:11px;font-weight:700}
.reaction-result{margin-top:27px;padding-top:24px;border-top:1px solid #b8c5ae;color:#294d34}.reaction-result h2{font-size:25px;line-height:1.2;margin:0 0 18px;letter-spacing:-.02em}.result-values{display:grid;grid-template-columns:1fr 1fr;gap:18px}.result-values p{margin:0;font-size:13px;color:#4a5e46}.result-values strong{display:block;font-size:32px;font-weight:900;line-height:1.25;font-variant-numeric:tabular-nums;color:#244e33;margin-top:5px}.reaction-result>p{font-size:14px;margin:15px 0 8px;max-width:70ch;color:#455a3f}.reaction-result a{display:inline-block;padding:8px 0;font-size:15px;font-weight:900;color:#1c5b3b;underline-offset:3px}
.cancel-run{display:block;margin:17px auto 0;padding:10px 20px;min-height:44px;border:1px solid #9eaf94;border-radius:9px;background:transparent;color:#455a3f;font-family:inherit;font-size:13px;font-weight:800}.cancel-run:hover{background:#eff1e7}
.reaction-record{display:flex;justify-content:space-between;gap:24px;background:#f4f1e7;padding:18px 26px;color:#4e5e49;font-size:13px}.reaction-record p{margin:0}.reaction-record strong{display:block;font-size:22px;font-weight:900;color:#294c35;font-variant-numeric:tabular-nums}
.reaction-game .fan-toast{color:#203b2c}.reaction-game select:disabled,.reaction-game .icon-button:disabled{opacity:1;background:#e2e5dc;color:#52614c;cursor:default}.reaction-game .arcade-leaderboard{width:100%;max-width:none}.reaction-game .arcade-submit input,.reaction-game .arcade-submit button{font-family:inherit}.reaction-game .arcade-submit input::placeholder{color:#596650;opacity:1}.reaction-game .arcade-submit button:disabled{opacity:1;background:#dce1d5;color:#53614a}.reaction-game .arcade-ranking{scrollbar-color:#77957b #f8f5ef}.reaction-game .fan-guide{margin-top:22px}.reaction-game .fan-guide p{max-width:74ch}
@media(max-width:650px){.reaction-toolbar{padding:15px 18px;gap:12px}.reaction-toolbar p{font-size:13px;max-width:20ch}.reaction-toolbar .icon-button{font-size:12px}.reaction-play{padding:20px 18px}.reaction-pad{min-height:280px;padding:26px 18px}.signal-title{font-size:36px}.signal-copy{font-size:15px}.reaction-message{font-size:15px;min-height:48px}.reaction-trials{gap:6px}.reaction-trials strong{font-size:17px}.reaction-trials li{padding:9px 2px}.reaction-trials span{font-size:11px}.trial-heading h2{font-size:15px}.trial-heading p{font-size:12px}.reaction-record{padding:17px 18px;font-size:12px}.reaction-record strong{font-size:21px}.result-values strong{font-size:28px}.reaction-game .section-nav a{font-size:11px}}
@media(max-width:360px){.signal-title{font-size:31px}.reaction-game .fan-heading h1{font-size:26px}.reaction-game .fan-heading img{width:44px;height:44px}.reaction-trials strong{font-size:15px}.trial-heading{display:block}.trial-heading p{margin-top:6px}.result-values strong{font-size:24px}}
@media(prefers-reduced-motion:no-preference){.reaction-result{animation:reaction-reveal .3s cubic-bezier(.16,1,.3,1)}@keyframes reaction-reveal{from{clip-path:inset(0 0 12%);transform:translateY(5px)}to{clip-path:inset(0);transform:translateY(0)}}}
