:root { --rf-red: #e31b37; --rf-mint: #b9f4de; --rf-purple: #7772c5; --rf-ink: #0d1020; --rf-panel: rgba(18, 21, 36, .82); }
.rapid-fire-body { background: var(--rf-ink); }
.rapid-fire { min-height: calc(100dvh - 82px); color: #fff; background: #101321; }
.rf-screen { min-height: calc(100dvh - 82px); }
.rf-screen[hidden] { display: none !important; }
.rf-setup { position: relative; isolation: isolate; overflow: hidden; }
.rf-menu-media, .rf-menu-overlay { position: absolute; inset: 0; pointer-events: none; }
.rf-menu-media { z-index: -3; background: #121524 url("./rapidfireposter.svg") center / cover no-repeat; }
.rf-menu-media video { width: 100%; height: 100%; object-fit: cover; }
.rf-menu-overlay { z-index: -2; background: radial-gradient(ellipse at center, rgba(10, 12, 23, .68) 0 28%, rgba(10, 12, 23, .44) 58%, rgba(10, 12, 23, .78) 100%), linear-gradient(90deg, rgba(8, 10, 20, .76), rgba(8, 10, 20, .25) 42%, rgba(8, 10, 20, .64)); }
.rf-setup-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(460px, 600px); align-items: center; gap: clamp(32px, 7vw, 100px); width: min(1240px, calc(100% - 40px)); min-height: calc(100dvh - 82px); margin: auto; padding: 48px 0; }
.rf-title-block h1, .rf-results-heading h1, .rf-leaderboard h1 { margin: 0; font-size: clamp(58px, 8vw, 118px); line-height: .84; letter-spacing: -.06em; }
.rf-title-block h1 em { color: var(--rf-red); font-style: normal; text-shadow: 0 0 34px rgba(227, 27, 55, .4); }
.rf-title-block > p:last-child { max-width: 470px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: clamp(17px, 2vw, 22px); }
.rf-kicker, .rf-step { margin: 0 0 14px; color: var(--rf-mint); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.rf-kicker span { display: inline-block; width: 28px; height: 2px; margin: 0 9px 3px 0; background: var(--rf-red); }
.rf-setup-card { padding: clamp(22px, 3.2vw, 38px); border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: linear-gradient(145deg, rgba(27,30,53,.88), rgba(13,16,32,.9)); box-shadow: 0 35px 110px rgba(0,0,0,.46); backdrop-filter: blur(24px); }
.rf-setup-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.rf-setup-heading h2 { margin: 0; font-size: 28px; line-height: 1; }
.rf-question-pill { padding: 7px 11px; border: 1px solid rgba(185,244,222,.25); border-radius: 999px; color: var(--rf-mint); font-size: 12px; white-space: nowrap; }
.rf-field { display: grid; gap: 8px; margin-bottom: 20px; color: rgba(255,255,255,.82); font-size: 14px; }
.rf-field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; outline: 0; background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: 17px; transition: border 160ms, box-shadow 160ms; }
.rf-field input:focus { border-color: var(--rf-mint); box-shadow: 0 0 0 3px rgba(185,244,222,.13); }
.rf-fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.rf-fieldset legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; color: rgba(255,255,255,.82); font-size: 14px; }
.rf-fieldset legend small { color: rgba(255,255,255,.45); }
.rf-difficulty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rf-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.rf-choice span { display: grid; place-items: center; min-height: 44px; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.05; text-align: center; cursor: pointer; transition: 150ms ease; }
.rf-choice small { display: block; margin-top: 3px; color: inherit; font-size: 9px; opacity: .66; }
.rf-choice input:checked + span { border-color: var(--rf-mint); background: rgba(185,244,222,.13); color: #fff; box-shadow: inset 0 0 0 1px rgba(185,244,222,.22); }
.rf-choice input:focus-visible + span { outline: 3px solid var(--rf-mint); outline-offset: 2px; }
.rf-operation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.rf-operation-grid .rf-choice span { display: flex; gap: 7px; }
.rf-operation-symbol { color: var(--rf-mint); font-size: 20px; }
.rf-sound-toggle { display: flex; align-items: center; gap: 9px; width: max-content; color: rgba(255,255,255,.63); font-size: 13px; cursor: pointer; }
.rf-sound-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); }
.rf-sound-toggle > span { width: 34px; height: 20px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.16); }
.rf-sound-toggle > span::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 160ms; }
.rf-sound-toggle input:checked + span { background: var(--rf-mint); }.rf-sound-toggle input:checked + span::after { transform: translateX(14px); background: var(--rf-ink); }
.rf-form-message { min-height: 20px; margin: 8px 0; color: #ff9bac; font-size: 13px; }
.rf-primary-actions, .rf-result-actions { display: flex; gap: 9px; }
.rf-button { min-height: 50px; padding: 12px 18px; border: 1px solid transparent; border-radius: 13px; color: #fff; font: 400 14px "Poppins Semi", sans-serif; cursor: pointer; transition: transform 150ms, box-shadow 150ms, opacity 150ms; }
.rf-button:hover { transform: translateY(-2px); }.rf-button:focus-visible, .rf-back-button:focus-visible, .rf-text-button:focus-visible { outline: 3px solid var(--rf-mint); outline-offset: 3px; }
.rf-button-primary { flex: 1; justify-content: space-between; background: linear-gradient(110deg, #c6001c, #e73850); box-shadow: 0 14px 32px rgba(198,0,28,.25); }
.rf-button-primary b { margin-left: 16px; font-size: 20px; }.rf-button-ghost { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.rf-button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.rf-text-button, .rf-back-button { display: block; margin: 14px auto 0; border: 0; background: none; color: rgba(255,255,255,.6); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.rf-countdown { display: grid; place-content: center; justify-items: center; background: radial-gradient(circle, rgba(198,0,28,.22), transparent 28%), #101321; text-align: center; }
.rf-countdown p { margin: 0; color: var(--rf-mint); letter-spacing: .16em; text-transform: uppercase; }.rf-countdown strong { font: 400 clamp(140px, 30vw, 340px)/.9 "Poppins Semi", sans-serif; text-shadow: 0 0 60px rgba(227,27,55,.34); animation: rf-count 700ms ease both; }.rf-countdown span { color: rgba(255,255,255,.55); }
@keyframes rf-count { from { opacity: .2; transform: scale(.68); } to { opacity: 1; transform: scale(1); } }
.rf-playing { overflow: hidden; background: radial-gradient(circle at 10% 10%, rgba(119,114,197,.23), transparent 28%), radial-gradient(circle at 90% 90%, rgba(198,0,28,.15), transparent 30%), #101321; }
.rf-game-shell { display: grid; grid-template-rows: auto 1fr; width: min(1100px, calc(100% - 32px)); min-height: calc(100dvh - 82px); margin: auto; padding: 24px 0; }
.rf-game-hud { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.045); }
.rf-mini-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--rf-red); font-family: "Poppins Semi", sans-serif; }
.rf-progress-copy > span, .rf-hud-stat span { color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }.rf-progress-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }.rf-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rf-red), var(--rf-mint)); transition: width 240ms; }.rf-hud-stat { min-width: 78px; text-align: right; }.rf-hud-stat strong { display: block; font-size: 24px; }
.rf-question-stage { position: relative; display: grid; align-content: center; justify-items: center; padding: 30px 0; }.rf-question-stage h1 { margin: 12px 0 30px; font-size: clamp(68px, 13vw, 168px); line-height: 1; letter-spacing: -.05em; text-align: center; }.rf-streak { padding: 6px 12px; border: 1px solid rgba(185,244,222,.18); border-radius: 99px; color: var(--rf-mint); font-size: 12px; }.rf-live-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.rf-answer-form { width: min(560px, 100%); }.rf-answer-form > label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.62); font-size: 13px; }.rf-answer-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.rf-answer-row input { min-width: 0; height: 70px; padding: 0 22px; border: 2px solid rgba(255,255,255,.18); border-radius: 16px; outline: none; background: rgba(255,255,255,.06); color: #fff; font: 400 30px "Poppins Semi", sans-serif; }.rf-answer-row input:focus { border-color: var(--rf-mint); box-shadow: 0 0 0 5px rgba(185,244,222,.1); }.rf-answer-row button { min-width: 132px; border: 0; border-radius: 16px; background: var(--rf-mint); color: var(--rf-ink); font: 400 15px "Poppins Semi", sans-serif; cursor: pointer; }.rf-answer-form small { display: block; margin-top: 8px; color: rgba(255,255,255,.4); }.rf-feedback { min-height: 36px; margin-top: 12px; font: 400 18px "Poppins Semi", sans-serif; }.rf-question-stage.is-correct { animation: rf-correct 220ms; }.rf-question-stage.is-wrong { animation: rf-wrong 220ms; }.rf-question-stage.is-correct .rf-feedback { color: var(--rf-mint); }.rf-question-stage.is-wrong .rf-feedback { color: #ff7185; }
@keyframes rf-correct { 50% { filter: drop-shadow(0 0 40px rgba(185,244,222,.3)); } } @keyframes rf-wrong { 25%,75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.rf-results { padding: 58px 0; background: radial-gradient(circle at 80% 15%, rgba(119,114,197,.24), transparent 30%), radial-gradient(circle at 15% 85%, rgba(198,0,28,.14), transparent 30%), #101321; }.rf-results-shell, .rf-leaderboard-shell { width: min(1100px, calc(100% - 40px)); margin: auto; }.rf-results-heading h1, .rf-leaderboard h1 { font-size: clamp(46px, 7vw, 82px); }.rf-results-heading > p:last-child, .rf-leaderboard header > p:last-child { color: rgba(255,255,255,.57); }.rf-result-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; margin: 34px 0 18px; }.rf-score-card, .rf-stat-card { min-height: 170px; padding: 24px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: rgba(255,255,255,.055); }.rf-score-card { background: linear-gradient(145deg, rgba(198,0,28,.23), rgba(255,255,255,.05)); }.rf-score-card > span, .rf-stat-card > span { color: rgba(255,255,255,.53); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }.rf-score-card strong, .rf-stat-card strong { display: block; margin: 14px 0 4px; font: 400 clamp(32px, 4vw, 54px)/1 "Poppins Semi", sans-serif; }.rf-score-card p, .rf-stat-card p { margin: 8px 0 0; color: rgba(255,255,255,.5); font-size: 13px; }.rf-personal-best { width: max-content; margin-top: 12px; padding: 5px 9px; border-radius: 99px; background: var(--rf-mint); color: var(--rf-ink); font-size: 12px; }.rf-result-actions { flex-wrap: wrap; }.rf-result-actions .rf-button { flex: 1; }.rf-review { margin-top: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); }.rf-review summary { padding: 18px 22px; cursor: pointer; }.rf-review summary span { float: right; }.rf-review > div { display: grid; gap: 8px; padding: 0 18px 18px; }.rf-review-item { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 12px; border-radius: 10px; background: rgba(0,0,0,.17); color: rgba(255,255,255,.7); }.rf-review-item strong { color: #fff; }
.rf-leaderboard { padding: 50px 0; background: #101321; }.rf-back-button { margin: 0 0 26px; text-decoration: none; }.rf-leaderboard-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 16px; }.rf-leaderboard-filters label { display: grid; gap: 6px; color: rgba(255,255,255,.55); font-size: 12px; }.rf-leaderboard select { height: 48px; padding: 0 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: #1a1d35; color: #fff; }.rf-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); }.rf-table-wrap table { width: 100%; border-collapse: collapse; min-width: 620px; }.rf-table-wrap th, .rf-table-wrap td { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }.rf-table-wrap th { color: rgba(255,255,255,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }.rf-table-wrap tr.is-current { background: rgba(185,244,222,.07); }.rf-empty-state { padding: 36px; color: rgba(255,255,255,.58); text-align: center; }
.rf-dialog { width: min(530px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: #1a1d35; color: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.65); }.rf-dialog::backdrop { background: rgba(5,7,14,.76); backdrop-filter: blur(8px); }.rf-dialog form { position: relative; padding: 34px; }.rf-dialog h2 { margin: 0; font-size: 32px; }.rf-dialog ol { padding-left: 22px; color: rgba(255,255,255,.67); }.rf-dialog li { margin: 12px 0; }.rf-dialog-close { position: absolute; top: 16px; right: 16px; border: 0; background: none; color: #fff; font-size: 28px; cursor: pointer; }
@media (max-width: 860px) { .rf-setup-content { grid-template-columns: 1fr; padding-top: 64px; }.rf-title-block { text-align: center; }.rf-title-block > p:last-child { margin-inline: auto; }.rf-title-block .rf-kicker { margin-inline: auto; }.rf-result-grid { grid-template-columns: repeat(2, 1fr); }.rf-score-card { grid-column: span 2; }.rf-game-hud { grid-template-columns: auto minmax(70px, 1fr) auto auto; gap: 12px; } }
@media (max-width: 600px) { .rapid-fire-header .nav-cta { width: auto; }.rapid-fire { min-height: calc(100dvh - 72px); }.rf-screen { min-height: calc(100dvh - 72px); }.rf-setup-content { width: min(100% - 22px, 560px); min-height: calc(100dvh - 72px); padding: 34px 0; }.rf-title-block h1 { font-size: 62px; }.rf-setup-card { padding: 20px 16px; border-radius: 20px; }.rf-fieldset legend small { display: none; }.rf-difficulty-grid { grid-template-columns: repeat(3, 1fr); }.rf-operation-grid { grid-template-columns: repeat(2, 1fr); }.rf-primary-actions { flex-direction: column; }.rf-game-shell { width: calc(100% - 20px); min-height: calc(100dvh - 72px); padding: 10px 0; }.rf-game-hud { gap: 6px; padding: 10px; }.rf-mini-logo { width: 38px; height: 38px; }.rf-hud-stat { min-width: 45px; }.rf-hud-stat strong { font-size: 17px; }.rf-hud-stat span, .rf-progress-copy > span { font-size: 9px; }.rf-question-stage { padding: 16px 0; }.rf-question-stage h1 { margin: 8px 0 20px; font-size: clamp(60px, 20vw, 96px); }.rf-answer-row { grid-template-columns: 1fr; }.rf-answer-row input { height: 60px; }.rf-answer-row button { min-height: 52px; }.rf-results { padding: 34px 0; }.rf-result-grid { gap: 8px; margin-top: 24px; }.rf-score-card, .rf-stat-card { min-height: 132px; padding: 17px; }.rf-review-item { grid-template-columns: 1fr; gap: 4px; }.rf-leaderboard-filters { grid-template-columns: 1fr; }.rf-results-shell, .rf-leaderboard-shell { width: calc(100% - 24px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
