.time-attack-page{--text: #202124;--muted: #5f6368;--line: #dedede;--soft: #f5f4f0;--yellow: #d2ad42;width:min(calc(100% - 48px),1160px);margin-inline:auto;color:var(--text)}.time-attack-page [hidden]{display:none!important}.time-attack-page button{cursor:pointer;font:inherit}.time-attack-page button:focus-visible,.time-attack-page summary:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}.time-attack-page .primary{min-height:48px;padding:10px 22px;border:1px solid #b79530;border-radius:5px;background:var(--yellow);color:var(--text);font-weight:700}.time-attack-page .eyebrow{color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.16em}.time-attack-heading{padding:44px 0 32px;border-bottom:1px solid var(--line)}.time-attack-heading h1{margin:8px 0 18px;font-size:clamp(2rem,4vw,3rem);line-height:1.35;letter-spacing:-.03em}.time-attack-heading strong{display:block;font-size:clamp(1.25rem,2.6vw,1.8rem)}.time-attack-heading p:last-child{max-width:760px;margin:16px 0 0;color:var(--text);font-size:.95rem}.genre-selector{display:flex;flex-wrap:wrap;gap:8px;max-width:760px;margin:32px auto 0;padding:0;border:0}.genre-selector legend{width:100%;margin-bottom:12px;color:var(--muted);font-size:.85rem;font-weight:700}.genre-chip{min-height:44px;padding:7px 19px;border:1px solid #cdd4dc;border-radius:999px;background:#fff;color:var(--text);font-weight:700}.genre-chip[aria-pressed=true]{border-color:#d6a51c;background:#fff2c9}.genre-chip[aria-pressed=true]:before{content:"✓";margin-right:7px}.genre-description{max-width:760px;margin:24px auto}.genre-description h2{margin:0;font-size:1.25rem}.genre-description p{margin:8px 0 18px;max-width:620px;font-size:.94rem}.genre-description h3{margin:0 0 8px;color:var(--muted);font-size:.78rem;font-weight:600}.theme-list{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none;color:var(--muted);font-size:.8rem}.theme-list li{padding:3px 0;border-bottom:1px solid var(--line)}.record-list{max-width:760px;margin:24px auto 0;border-block:1px solid var(--line)}.record-list>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.record-list>div:last-child{border-bottom:0}.record-list dt{color:var(--muted);font-size:.72rem;letter-spacing:.09em;font-weight:700}.record-list dd{margin:0;font-size:.88rem;font-variant-numeric:tabular-nums}.record-list dd>span{display:flex;justify-content:space-between;gap:12px}.leader-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-list strong{flex:none}.record-note{max-width:760px;margin:10px auto;color:var(--muted);font-size:.72rem;line-height:1.6}.start-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;max-width:760px;margin:24px auto 0}.start-row p{margin:0;color:var(--muted);font-size:.82rem}.start-row .primary{flex:none}.play-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 12px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.83rem}.play-topline button{padding:4px 0;border:0;background:none;color:var(--text);font-weight:700}.play-topline button span{font-size:1.5rem;line-height:.7}.playing .site-header,.playing .site-footer{display:none}.play-screen{max-width:680px;margin-inline:auto;padding-bottom:24px;outline:none}.play-screen.feedback-correct:before,.play-screen.feedback-incorrect:before,.play-screen.feedback-bonus:before{position:fixed;z-index:8;inset:0;pointer-events:none;content:"";animation:answer-flash .44s ease-out both}.play-screen.feedback-correct:before{box-shadow:inset 0 0 0 9px #2d804980;background:#2d804914}.play-screen.feedback-incorrect:before{box-shadow:inset 0 0 0 9px #b3261e85;background:#b3261e14}.play-screen.feedback-bonus:before{box-shadow:inset 0 0 0 12px #d2ad42bd;background:#d2ad422e}@keyframes answer-flash{0%{opacity:0}20%{opacity:1}to{opacity:0}}.game-status{position:sticky;z-index:3;top:0;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:#fff}.game-status>div{display:flex;align-items:baseline;gap:7px;padding:12px 0}.game-status .time{position:relative}.game-status>div:last-child{border-right:0}.game-status span{color:var(--muted);font-size:.72rem;font-weight:600;letter-spacing:.03em}.game-status strong{font-size:1.2rem;line-height:1.3;font-variant-numeric:tabular-nums}.game-status .time strong{font-size:1.55rem}.game-status .time em{position:absolute;z-index:9;left:15px;top:35px;color:#8c6d17;font-size:1.15rem;font-style:normal;font-weight:900;white-space:nowrap;animation:bonus-appear .44s ease-out both}.game-status .time strong.bonus-pulse{animation:time-pulse .44s ease-out both}@keyframes bonus-appear{0%{opacity:0;transform:translateY(8px) scale(.9)}30%{opacity:1;transform:translateY(0) scale(1.14)}to{opacity:0;transform:translateY(-9px) scale(1)}}@keyframes time-pulse{35%{transform:scale(1.18);color:#8c6d17}to{transform:scale(1)}}.game-status .combo strong,.best-message.is-update{color:#a48529}.best-message{color:var(--muted)}.time-low .game-status .time strong{color:#a33}.question-panel{min-height:138px;padding:18px 0 12px}.question-panel .eyebrow{margin:0}.question-panel h2{margin:2px 0 6px;font-size:1.26rem}.question-panel>p:not(.eyebrow){margin:0;font-size:.91rem;line-height:1.7}.instant-feedback{min-height:24px;margin-top:5px;font-size:.88rem;font-weight:700}.instant-feedback.correct{color:#256d3c}.instant-feedback.incorrect{color:#b3261e}.calculator{border-top:1px solid var(--line);padding-top:10px}.calculator-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}.calculator-heading span:first-child{display:flex;align-items:baseline;gap:8px}.calculator-heading small{color:var(--muted);font-size:.65rem;font-weight:700;letter-spacing:.14em}.calculator-heading strong{font-size:1rem}.keyboard-hint{color:var(--muted);font-size:.7rem}.calculator-display-row{position:relative}.calculator-display-row input{width:100%;height:50px;padding:6px 55px 6px 12px;border:1px solid var(--text);border-radius:2px;background:#fff;color:var(--text);text-align:right;font:inherit;font-size:1.4rem;font-variant-numeric:tabular-nums}.calculator-unit{position:absolute;right:12px;top:12px;color:var(--muted);font-size:.82rem}.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}.calculator-keys button{min-height:42px;border:1px solid #c7c9ca;border-radius:2px;background:#fff;color:var(--text)}.calculator-keys button:hover{background:var(--soft)}.calculator-keys button:active{background:#eae7dd}.calculator-keys .operator,.calculator-keys .utility{background:#f5f5f5}.calculator-keys .wide{grid-column:span 2}.calculator-keys .equals{border-color:var(--text);background:var(--text);color:#fff;box-shadow:inset 0 -2px var(--yellow)}.submit-answer{width:100%;margin-top:7px}.calculation-log{margin-top:8px;color:var(--muted);font-size:.73rem}.calculation-log summary{min-height:34px;cursor:pointer}.calculation-log ol{max-height:92px;margin:0;padding-left:24px;overflow:auto}.result-screen{max-width:680px;margin-inline:auto;padding:48px 0}.result-screen>h2{margin:0;font-size:1.65rem}.result-genre{margin:6px 0 24px;color:var(--muted)}.result-score-label{margin:0 0 4px}.result-screen>strong{display:block;font-size:clamp(3.7rem,12vw,6rem);line-height:1.15}.best-message{min-height:1.7em;margin:8px 0 0;font-weight:700}.result-screen .result-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:24px 0;border-block:1px solid var(--line)}.result-screen .result-stats div{padding:14px 10px;border-right:1px solid var(--line)}.result-screen .result-stats div:last-child{border-right:0}.result-stats dt{color:var(--muted);font-size:.72rem}.result-stats dd{margin:4px 0 0;font-weight:700}.result-retry{margin:24px 0 36px}.result-retry .primary{min-width:180px}.review-section{border-top:1px solid var(--text)}.review-section h2{margin:18px 0;font-size:1.25rem}.review-item{padding:16px 0;border-top:1px solid var(--line)}.review-item h3{margin:0 0 5px;font-size:1rem}.review-item p{margin:5px 0;font-size:.85rem}.review-item .review-calculation{color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.all-attempts{margin-top:20px;border-top:1px solid var(--line)}.all-attempts summary{min-height:44px;padding-top:10px;cursor:pointer;font-weight:700}.ranking-entry{margin-top:26px;padding:20px 0;border-top:1px solid var(--line)}.ranking-entry h2{margin:0 0 8px;font-size:1.15rem}.ranking-entry p{margin:0 0 14px;color:var(--muted);font-size:.82rem}.ranking-entry label{display:block;margin-bottom:7px;font-size:.8rem;font-weight:700}.ranking-entry form>div{display:flex;gap:8px}.ranking-entry input{min-width:0;flex:1;min-height:44px;padding:7px 10px;border:1px solid var(--line);font:inherit}.ranking-entry button{min-height:44px;padding:7px 16px;border:1px solid var(--text);background:#fff;font-weight:700}.ranking-entry button:disabled{opacity:.55;cursor:default}.result-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:34px;padding-top:24px;border-top:1px solid var(--line)}.result-actions>button:not(.primary){min-height:44px;padding:8px 0;border:0;background:none;text-decoration:underline;text-underline-offset:5px}.result-actions a{font-size:.9rem;font-weight:700;text-underline-offset:5px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.time-attack-page{width:min(calc(100% - 32px),1160px)}.time-attack-heading{padding:28px 0 24px}.time-attack-heading h1{margin-bottom:20px}.start-row{flex-direction:column;align-items:flex-start;gap:14px}.record-list>div{grid-template-columns:120px minmax(0,1fr);gap:12px}.play-screen{padding-bottom:14px}.game-status{gap:8px}.game-status>div{gap:4px;padding:10px 0}.game-status .time strong{font-size:1.35rem}.game-status strong{font-size:1.1rem}.game-status span{font-size:.65rem}.game-status .time em{top:34px;left:12px;font-size:1.05rem}.question-panel{min-height:145px}.keyboard-hint{display:none}.calculator-keys button{min-height:43px}.result-screen{padding:30px 0}.result-screen .result-stats{grid-template-columns:repeat(2,1fr)}.result-screen .result-stats div:nth-child(2){border-right:0}.result-screen .result-stats div:nth-child(-n+2){border-bottom:1px solid var(--line)}.result-actions{flex-direction:column;align-items:stretch}.result-actions a{min-height:44px;display:flex;align-items:center}.ranking-entry form>div{flex-wrap:wrap}.ranking-entry input{flex-basis:100%}}@media(prefers-reduced-motion:reduce){.time-attack-page *{scroll-behavior:auto!important}.play-screen:before,.game-status .time em,.game-status .time strong.bonus-pulse{animation:none!important}}.record-updates{min-height:1em;color:#92711a;font-size:.84rem;font-weight:700}.practice-links{max-width:760px;margin:24px auto 56px;padding-top:24px;border-top:1px solid var(--line)}.practice-links h2{margin:0 0 12px;font-size:1.1rem}.practice-links a{display:block;width:fit-content;padding:6px 0;font-size:.9rem;text-underline-offset:5px;text-decoration-color:var(--yellow)}.drill-explanation{max-width:760px;margin:80px auto 0;padding-top:32px;border-top:1px solid var(--line)}.drill-explanation h2{margin:0 0 16px;font-size:1.55rem}.drill-explanation>p{margin:0 0 24px;font-size:.94rem}.drill-explanation section{padding:16px 0;border-top:1px solid var(--line)}.drill-explanation h3{margin:0 0 8px;font-size:1.05rem}.drill-explanation section p,.drill-explanation li{font-size:.9rem}.drill-explanation ul{padding-left:1.3em;margin:8px 0}.drill-explanation li{margin:8px 0}#play-screen[data-astro-cid-fst3mch3]:not([hidden])~.tool-seo-region[data-astro-cid-fst3mch3]{display:none}
