.time-game-mode { background: #f3f7fa !important; color: #203c46; }
.time-game-mode .math-game-window-view { width: 100%; grid-template-columns: minmax(0,1fr); }
.time-game-mode .math-game-window-mount { min-width: 0; }
.time-game-mode .math-game-window-head { background: #fff; border: 1px solid #cbdde1; border-radius: 8px; }
.time-game-mode .math-game-window-head h1 { color: #126858; font-family: inherit; font-size: 32px; }
.time-game-mode .math-game-window-head button { background: #126858; border-radius: 6px; }
.time-game-mode .math-game-window-head span { color: #126858; }
.time-game-mode .math-game-window-head p { color: #536e78; }
.time-walkthrough { text-align: center; }
.time-walkthrough output { display: block; margin: 12px auto; font: bold 28px monospace; color: #126858; }
.time-game { max-width: 1100px; margin: 0 auto; padding: 24px; color: #203c46; font-family: Arial, sans-serif; }
.time-game h2 { color: #203c46; font-size: 24px; }
.time-game button,.time-game select { border: 1px solid #99b9bf; border-radius: 6px; padding: 12px 18px; background: #fff; color: #203c46; font: inherit; cursor: pointer; }
.time-game button:focus-visible,.time-game input:focus-visible { outline: 3px solid #cc8a0a; outline-offset: 3px; }
.time-game button:disabled { opacity: .55; cursor: default; }
.time-game button:hover:not(:disabled) { background: #e2f5ee; }
.time-game .time-primary { background: #126858; color: #fff; min-width: 180px; }
.time-status,.time-picker-head { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.time-status [data-time] { font-variant-numeric: tabular-nums; font-size: 24px; color: #126858; }
.time-game progress { width: 100%; height: 8px; accent-color: #168367; margin-top: 18px; }
.time-promotion { min-height: 24px; color: #126858; }
.time-game .time-question { max-width: 780px; margin: 16px auto 24px; text-align: center; line-height: 1.5; min-height: 72px; }
.time-game .time-answer { display: block; width: 100%; min-width: 0; text-align: center; padding: 0; margin: 0; background: transparent; border: 0; }
.time-clock { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(100%, 430px); padding: 20px; margin: auto; border-radius: 8px; background: #172c2b; box-shadow: 0 6px 0 #adc9c3; box-sizing: border-box; }
.time-digit { display: grid; gap: 10px; width: 135px; min-width: 0; }
.time-digit label { display: grid; color: #d0eadc; font-size: 12px; gap: 6px; }
.time-digit input { box-sizing: border-box; width: 100%; min-width: 0; background: #0e1c1b; border: 1px solid #538378; border-radius: 4px; color: #baf4bd; text-align: center; font: bold 64px/1.2 monospace; padding: 8px 0; letter-spacing: 0; }
.time-digit input::placeholder { color: #63816f; }
.time-digit button { padding: 0; min-height: 38px; background: #294b46; color: #e8fff2; font-size: 24px; border-color: #538378; }
.time-colon { color: #baf4bd; font: bold 56px monospace; }
.time-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; }
.time-analog-source,.time-analog-answer { display: grid; justify-items: center; gap: 12px; margin: 0 auto 18px; }
.time-analog-source > span { color: #536e78; font-weight: 700; }
.time-analog-face { display: block; width: min(100%,240px); height: auto; }
.time-analog-face.interactive { width: min(100%,320px); }
.time-analog-dial { fill: #fffdf7; stroke: #203c46; stroke-width: 5; }
.time-analog-marks line { stroke: #536e78; stroke-width: 2; }
.time-analog-marks line.major { stroke: #203c46; stroke-width: 4; }
.time-analog-numbers text { fill: #203c46; font: 700 22px Arial,sans-serif; text-anchor: middle; }
.time-analog-hand { stroke-linecap: round; }
.time-analog-hand.hour { stroke: #203c46; stroke-width: 10; }
.time-analog-hand.minute { stroke: #126858; stroke-width: 7; }
.time-analog-pin { fill: #cc8a0a; stroke: #fff; stroke-width: 2; }
.time-analog-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; width: min(100%,430px); }
.time-analog-controls fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 10px; border: 1px solid #99b9bf; border-radius: 8px; }
.time-analog-controls legend { padding: 0 6px; color: #536e78; font-size: 13px; font-weight: 700; }
.time-analog-controls button { padding: 8px 14px; background: #e2f5ee; color: #126858; font-size: 24px; font-weight: 700; }
.time-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.time-feedback,.time-hint { text-align: center; line-height: 1.6; max-width: 750px; margin: 16px auto; }
.time-feedback { color: #126858; font-weight: 700; }
.time-feedback.wrong { color: #9c3a34; }
.time-game [data-next] { display: block; margin: 16px auto; background: #126858; color: #fff; }
.time-game [hidden] { display: none !important; }
.time-finish { display: block; margin: 28px auto 0; font-size: 13px !important; }
.time-settings { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.time-settings label { display: grid; gap: 6px; flex: 1; min-width: 170px; }
.time-students { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; margin-bottom: 24px; }
.time-students button { text-align: left; overflow-wrap: anywhere; }
.time-students small { display: block; margin-top: 8px; color: #536e78; }
.time-students .done { background: #d5efe2; }
.time-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; padding: 22px 0; }
.time-metrics div { border-bottom: 3px solid #168367; padding: 16px; background: #fff; }
.time-metrics strong { display: block; font-size: 26px; margin-top: 6px; }
.time-ranking { margin-top: 28px; padding: 20px; border: 1px solid #cbdde1; border-radius: 10px; background: #fff; }
.time-ranking h3 { margin: 0; color: #126858; font-size: 21px; }
.time-ranking-subtitle,.time-ranking-status { color: #536e78; }
.time-ranking-list { list-style: none; margin: 16px 0 0; padding: 0; }
.time-ranking-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 10px; border-top: 1px solid #e2eef0; }
.time-ranking-row.current { background: #e2f5ee; border-radius: 6px; }
.time-ranking-position { color: #126858; font-weight: 700; }
.time-ranking-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.time-ranking-name small { color: #126858; font-weight: 400; }
.time-ranking-row strong { color: #536e78; font-size: 14px; text-align: right; }
.time-game details { margin-top: 28px; }.time-game li { margin: 12px 0; }
@media(max-width:600px) { .time-game { padding: 14px 4px; }.time-game .time-question { font-size: 19px; }.time-clock { gap: 10px; padding: 14px; }.time-digit input { font-size: 48px; }.time-status { font-size: 13px; }.time-students { grid-template-columns: 1fr; }.time-actions { flex-wrap: wrap; }.time-analog-face.interactive { width: min(100%,280px); }.time-analog-controls { grid-template-columns: 1fr; } }
@media(max-width:600px) { .time-ranking { padding: 14px; }.time-ranking-row { grid-template-columns: 28px minmax(0,1fr); }.time-ranking-row strong { grid-column: 2; text-align: left; } }
