/* 반응속도 테스트(2026-10-29 개발자3). 공용 /psych/style.css 위에 덮는다. 본문 14px 이상. 게임판은 엄지가 닿는 넓은 칸 하나. */
.stage.rs { padding: 0 0 40px; }
.hidden { display: none !important; }
.rs-head { text-align: center; margin: 12px 16px 0; }
.rs-eyebrow { font-size: 14px; font-weight: 800; color: #1971C2; }
.rs-title { font-size: 30px; font-weight: 900; color: #111827; margin: 2px 0 0; letter-spacing: -0.02em; word-break: keep-all; }
.rs-sub { font-size: 15px; line-height: 1.6; color: #4B5563; margin: 6px 0 0; word-break: keep-all; }

.rs-pad { position: relative; margin: 16px 16px 0; min-height: 340px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 24px 18px; text-align: center; color: #fff; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent; box-shadow: 0 6px 0 rgba(0,0,0,.15); transition: background-color .05s linear; outline: none; }
.rs-pad.st-ready, .rs-pad.st-done { background: linear-gradient(160deg, #4DABF7, #1971C2); }
.rs-pad.st-wait { background: #E03131; }
.rs-pad.st-go { background: #2F9E44; }
.rs-pad.st-early { background: #F08C00; }
.rs-pad.st-shown { background: linear-gradient(160deg, #4DABF7, #1971C2); }
.rs-round { position: absolute; top: 14px; left: 0; right: 0; font-size: 15px; font-weight: 800; opacity: .9; }
.rs-big { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; word-break: keep-all; }
.rs-pad.st-go .rs-big { font-size: 64px; }
.rs-pad.st-shown .rs-big { font-size: 56px; font-variant-numeric: tabular-nums; }
.rs-small { font-size: 16px; font-weight: 700; opacity: .95; line-height: 1.5; word-break: keep-all; max-width: 300px; }
.rs-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.rs-dot { min-width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.3); font-size: 13px; font-weight: 800; line-height: 18px; padding: 0 2px; }
.rs-dot.on { background: #fff; color: #1971C2; padding: 0 7px; }
.rs-best { text-align: center; font-size: 14px; font-weight: 800; color: #1971C2; margin: 12px 16px 0; min-height: 20px; }

.rs-box { background: #fff; border: 1.5px solid #E5E7EB; border-radius: 22px; padding: 16px; margin: 16px 16px 0; }
#rsResult { text-align: center; }
#rsResult.locked button { pointer-events: none; opacity: .6; }   /* 결과가 뜬 직후 연타가 버튼에 닿지 않게 */
.rs-res-emoji { font-size: 56px; line-height: 1.1; animation: rsPop .5s ease-out; }
.rs-res-title { display: inline-block; margin-top: 6px; font-size: 20px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #FF922B, #E8590C); border-radius: 999px; padding: 5px 16px; box-shadow: 0 4px 0 #C2410C; }
.rs-res-big { font-size: 34px; font-weight: 900; color: #1864AB; margin-top: 10px; font-variant-numeric: tabular-nums; }
.rs-res-sub { font-size: 15px; font-weight: 800; color: #495057; margin-top: 4px; word-break: keep-all; }
.rs-bars { margin: 14px auto 0; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.rs-bar { display: grid; grid-template-columns: 38px 1fr 64px; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #495057; }
.rs-bar .n { text-align: right; color: #868E96; }
.rs-bar .t { height: 14px; background: #E7F5FF; border-radius: 999px; overflow: hidden; }
.rs-bar .t i { display: block; height: 100%; background: #4DABF7; border-radius: 999px; }
.rs-bar.best .t i { background: #2F9E44; }
.rs-bar .v { text-align: left; font-variant-numeric: tabular-nums; }
.rs-res-best { display: inline-block; font-size: 15px; font-weight: 800; color: #495057; background: #F8F9FA; border-radius: 999px; padding: 4px 12px; margin-top: 12px; }
.rs-res-best.new { color: #fff; background: linear-gradient(135deg, #20C997, #0CA678); }
.rs-res-say { font-size: 15px; font-weight: 700; color: #4B5563; margin-top: 8px; word-break: keep-all; }
.rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rs-sub-btn { display: block; width: 100%; font-family: inherit; font-size: 15px; font-weight: 800; color: #374151; background: #F8F9FA; border: 1.5px solid #E9ECEF; border-radius: 12px; padding: 12px 6px; cursor: pointer; }
.rs-main { display: block; width: 100%; margin-top: 14px; font-family: inherit; font-size: 18px; font-weight: 900; color: #fff;
    background: linear-gradient(180deg, #339AF0, #1971C2); border: 0; border-radius: 16px; padding: 15px; cursor: pointer; box-shadow: 0 5px 0 #1864AB; }
.rs-main:active { transform: translateY(3px); box-shadow: 0 2px 0 #1864AB; }
.rs-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
@keyframes rsPop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.rs-intro { color: #374151; }
.rs-intro-title { font-size: 18px; font-weight: 900; color: #111827; margin: 0 0 8px; }
.rs-intro p { font-size: 15px; line-height: 1.7; margin: 0 0 8px; word-break: keep-all; }

@media (prefers-reduced-motion: reduce) { .rs-res-emoji { animation: none; } }
@media (min-width: 768px) {
    .stage.rs { max-width: 760px; }
    .rs-title { font-size: 36px; }
    .rs-pad { min-height: 380px; }
}
