.times-page {
  min-height: 100dvh; color: #263653;
  background: radial-gradient(ellipse at 8% 17%, #def4fb, transparent 47%),
    radial-gradient(ellipse at 90% 32%, #f4e6ff, transparent 48%), #f8fbff;
}
.times-main { padding-block: 16px 30px; }
.times-intro { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.times-intro h1 { margin-block: 3px; font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1.03; letter-spacing: -.065em; }
.times-page .eyebrow { color: #4e5191; }
.times-layout { display: grid; grid-template-columns: minmax(182px, 216px) minmax(0, 1fr); align-items: start; gap: 13px; }
.times-settings, .times-cabinet {
  min-width: 0; padding: 11px; border: 1px solid #d3def1; border-radius: 19px;
  background: #fff; box-shadow: 0 12px 33px #374b8718;
}
.times-guide {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px;
  border-radius: 12px; background: linear-gradient(125deg, #e0f2ff, #f4e2fd);
}
.times-guide img { width: 40px; height: 49px; object-fit: contain; }
.times-guide .eyebrow, .times-scorebar .eyebrow { font-size: .62rem; }
.times-guide h2 { font-size: 1.03rem; line-height: 1.16; }
.times-settings form { display: grid; gap: 4px; font-size: .76rem; }
.times-settings form > label, .times-settings legend { font-weight: 850; }
.times-settings form > label:not(:first-child), .times-settings fieldset { margin-top: 4px; }
.times-settings select {
  width: 100%; min-height: 34px; padding: 3px 7px; border: 1px solid #c7d7ed; border-radius: 8px;
  background: #f4f8ff; color: #2d3c64; font: inherit; font-weight: 750;
}
.times-field-note, .times-best { color: #526384; font-size: .68rem; line-height: 1.35; }
.times-settings fieldset { display: grid; gap: 4px; border: 0; min-width: 0; padding: 0; }
.times-settings legend { margin-bottom: 4px; }
.times-mode {
  display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 4px 5px;
  border: 1px solid #dbe3f0; border-radius: 8px; background: #f8faff; cursor: pointer;
}
.times-mode:has(:checked) { background: #eee9ff; border-color: #ae9de8; }
.times-mode input { accent-color: #6044b1; }
.times-mode small { display: block; color: #4d5880; font-size: .64rem; }
.times-settings .times-primary { margin-top: 4px; }
.times-best { margin-top: 7px; font-weight: 800; }
.times-soft, .times-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 37px;
  padding: 5px 11px; border: 1px solid #c5cbef; border-radius: 10px; white-space: nowrap;
  background: #f3f5ff; color: #423e7f; font-size: .78rem; font-weight: 850; line-height: 1.15;
}
.times-primary { border-color: #5946b5; background: linear-gradient(155deg, #7457d3, #563daf); color: #fff; }
.times-soft:hover { background: #e7ebff; }
.times-primary:hover { background: #553bac; }
.times-soft:disabled { opacity: .6; cursor: default; }
.times-soft .icon { width: 17px; height: 17px; }
.times-cabinet { display: grid; gap: 7px; background: linear-gradient(145deg, #fff, #f4efff); }
.times-scorebar, .times-tools, .times-actions, .times-steer, .times-assist { display: flex; align-items: center; gap: 6px; }
.times-scorebar { justify-content: space-between; }
.times-scorebar h2 { font-size: clamp(1.2rem, 2.8vw, 1.9rem); line-height: 1.08; letter-spacing: -.045em; }
.times-muted, #times-sound[aria-pressed="true"] .times-waves, .times-shrink { display: none; }
#times-sound[aria-pressed="true"] .times-muted { display: block; }
.times-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.times-stats > div {
  display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; padding: 5px 7px;
  border: 1px solid #cddbf1; border-radius: 8px; background: #ecf6ff; color: #3b527b; font-size: .73rem; font-weight: 850;
}
.times-stats > div:nth-child(2) { background: #fff3ce; border-color: #e9d6a3; color: #69471c; }
.times-stats > div:nth-child(3) { background: #efe7ff; border-color: #d9caf3; color: #624583; }
.times-stats strong { font-variant-numeric: tabular-nums; font-size: .92rem; white-space: nowrap; }
#times-heart-box { background: #fff0f5; border-color: #eed3e6; color: #943656; }
#times-hearts { letter-spacing: .03em; }
#times-clock-box[data-low] { background: #ffede4; border-color: #edbaa8; color: #873b2c; }
.times-stage {
  --zone-light: #e4fcff; --zone-ink: #1a5070; --zone-accent: #67d7ec;
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  min-height: clamp(400px, 54dvh, 525px); border: 1px solid #a3d5ec; border-radius: 15px; background: #98eaf7;
}
.times-stage[data-zone="1"] { --zone-light: #f3e8ff; --zone-ink: #563877; --zone-accent: #d1a9ff; }
.times-stage[data-zone="2"] { --zone-light: #fff2d8; --zone-ink: #74471d; --zone-accent: #ffd377; }
.times-sky, .times-clouds { position: absolute; inset: 0; pointer-events: none; }
.times-sky {
  z-index: -2; background: #9aeafa url("sky-garden.webp") center 55% / cover no-repeat;
  transition: filter .7s ease, background-position .7s ease;
}
.times-stage[data-zone="1"] .times-sky { filter: hue-rotate(28deg) saturate(.87); background-position: 69% center; }
.times-stage[data-zone="2"] .times-sky { filter: hue-rotate(-26deg) saturate(1.08); background-position: 28% 61%; }
.times-clouds {
  z-index: -1; opacity: .55; background:
    radial-gradient(ellipse 22% 12% at 20% 29%, #fff8 0, #fff0 95%),
    radial-gradient(ellipse 20% 16% at 72% 67%, #fff9 0, #fff0 94%),
    linear-gradient(0deg, var(--zone-accent), transparent 45%);
  animation: times-clouds 15s ease-in-out infinite alternate;
}
@keyframes times-clouds { to { transform: translateX(7%) scale(1.12); } }
.times-panel { display: grid; align-items: stretch; min-width: 0; min-height: 0; }
.times-state { min-width: 0; min-height: 0; }
.times-ready {
  display: grid; grid-template-columns: 1fr minmax(0, .95fr); align-items: center;
  gap: clamp(6px, 2.5vw, 26px); padding: clamp(9px, 4vw, 43px);
}
.times-launch-art { display: flex; align-items: end; justify-content: center; gap: 0; max-height: 290px; }
.times-launch-art img { object-fit: contain; height: auto; width: 29%; filter: drop-shadow(0 8px 4px #38356055); }
.times-launch-art .times-paxa { width: 48%; z-index: 1; margin-inline: -3%; transform: translateY(-9%); }
.times-launch-art .times-maya { width: 26%; }
.times-overlay-card {
  display: grid; gap: 8px; justify-items: start; width: min(100%, 440px); padding: clamp(10px, 2.5vw, 26px);
  border: 1px solid #fff; border-radius: 17px; background: #fffc;
  box-shadow: 0 10px 30px #2f598a39; backdrop-filter: blur(8px);
}
.times-overlay-card .eyebrow { font-size: .63rem; }
.times-overlay-card h3 { color: #342e70; font-size: clamp(1.52rem, 4.3vw, 3.1rem); letter-spacing: -.06em; line-height: 1.02; }
.times-overlay-card p:not(.eyebrow) { color: #415277; font-size: .81rem; line-height: 1.35; }
.times-paused, .times-summary { display: grid; place-items: center; padding: 9px; overflow: auto; }
.times-paused .times-overlay-card, .times-summary .times-overlay-card { background: #fffffff0; }
#times-play {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 6px; padding: 9px;
  align-items: stretch;
}
.times-prompt { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.times-zone {
  padding: 2px 9px; border: 1px solid #fff; border-radius: 99px;
  background: var(--zone-light); color: var(--zone-ink); font-size: .65rem; font-weight: 900; line-height: 1.3;
}
.times-equation {
  padding: 3px 17px; border: 1px solid #fff; border-radius: 12px; background: #fffffff2; color: #272858;
  font-size: clamp(2.05rem, 5vw, 4.1rem); line-height: 1; letter-spacing: -.052em;
  font-variant-numeric: lining-nums tabular-nums; box-shadow: 0 3px 0 #23487629;
}
.times-wind { width: min(42%, 160px); height: 5px; overflow: hidden; border-radius: 99px; background: #24426b70; }
.times-wind span {
  display: block; width: 100%; height: 100%; transform-origin: left;
  transform: scaleX(var(--wind, 1)); transition: transform .1s linear;
  background: linear-gradient(90deg, #f5bf4e, #fff691);
}
.times-flight {
  --aim-x: calc(12.5% + var(--lane, 1) * 25%);
  --pod-height: clamp(51px, 31cqh, 96px);
  --ship-height: clamp(36px, 49cqh, 113px);
  position: relative; justify-self: center; width: min(100%, 720px); min-height: 0;
  container-type: size;
}
.times-choices {
  position: absolute; z-index: 2; inset: 8% 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center; gap: 4px;
  transform: translateY(calc(var(--approach, 0) * clamp(0px, 90cqh - var(--pod-height) - var(--ship-height) - 9px, 110px)));
  transition: transform .1s linear;
}
.times-choice {
  --pod-top: #ffea94; --pod-base: #ffc957; --pod-line: #a26d2a; --pod-ink: #503317;
  position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0;
  width: min(92%, 118px); height: var(--pod-height); padding: 2px 6px;
  border: 2px solid var(--pod-line); border-radius: 42% 42% 37% 37%;
  background: radial-gradient(ellipse at 35% 16%, #fff8 2%, #fff0 52%), linear-gradient(160deg, var(--pod-top), var(--pod-base));
  color: var(--pod-ink); font: inherit; font-size: clamp(1.24rem, 4.1vw, 2.32rem); font-weight: 950;
  box-shadow: inset 0 2px 0 #fff9, 0 4px 0 var(--pod-line), 0 7px 12px #394b8370;
  animation: times-pod 1.9s ease-in-out infinite alternate;
}
.times-choice:nth-child(2) { --pod-top: #c8b4ff; --pod-base: #a587ef; --pod-line: #6b49a8; --pod-ink: #2c195a; animation-delay: -.6s; }
.times-choice:nth-child(3) { --pod-top: #98f4da; --pod-base: #66ddbc; --pod-line: #2c9076; --pod-ink: #184939; animation-delay: -.26s; }
.times-choice:nth-child(4) { --pod-top: #ffc6e3; --pod-base: #ff9bc7; --pod-line: #aa4d86; --pod-ink: #582344; animation-delay: -.89s; }
.times-choice[data-selected] { outline: 3px solid #fff; outline-offset: 3px; }
.times-choice[data-selected]:focus-visible { outline-color: #302367; }
.times-choice:disabled { cursor: default; animation-play-state: paused; }
.times-choice:hover:not(:disabled) { filter: brightness(1.07); }
.times-choice kbd {
  position: absolute; inset: auto auto 1px 50%; translate: -50% 0; min-width: 14px;
  padding: 0 2px; border-radius: 3px; background: #fffc; color: var(--pod-ink);
  font: inherit; font-size: .54rem; line-height: 1.15;
}
.times-choice[data-outcome="correct"] { --pod-top: #e2ffd2; --pod-base: #93e887; --pod-line: #347f57; --pod-ink: #164d31; }
.times-choice[data-outcome="incorrect"] { --pod-top: #ffe1d6; --pod-base: #ffab97; --pod-line: #9f4b44; --pod-ink: #65271e; }
@keyframes times-pod { from { translate: 0 -3px; } to { translate: 0 4px; } }
.times-aim, .times-ship, .times-shot, .times-burst { position: absolute; left: var(--aim-x); translate: -50% 0; pointer-events: none; }
.times-aim {
  inset-block: 12% 13%; width: 1px; opacity: .8; border-left: 2px dashed #fff;
  filter: drop-shadow(0 1px 1px #415db0); transition: left .16s ease;
}
.times-ship {
  z-index: 3; bottom: 1px; height: var(--ship-height); aspect-ratio: 1.2;
  transition: left .17s cubic-bezier(.2,.8,.3,1);
  filter: drop-shadow(0 4px 4px #26326468);
}
.times-ship img { position: absolute; z-index: 1; left: 20%; bottom: 25%; height: 75%; width: 60%; object-fit: contain; }
.times-glider { position: absolute; z-index: 2; bottom: 5%; width: 100%; height: 46%; overflow: visible; }
.times-jet {
  position: absolute; bottom: 0; left: 32%; width: 36%; height: 26%; border-radius: 50%;
  background: radial-gradient(ellipse, #fff 3%, #fff68a 22%, #47d8ff 52%, #6e8fff00 75%);
  animation: times-jet .38s ease-in-out infinite alternate;
}
@keyframes times-jet { to { scale: .83 1.3; opacity: .66; } }
.times-shot {
  z-index: 4; bottom: 13%; width: 13px; height: 28px; opacity: 0; border-radius: 50%;
  background: radial-gradient(ellipse, #fff, #fffaa8 26%, #ffca3e 53%, #ffe4a000 74%);
}
.times-burst { z-index: 4; width: 61px; aspect-ratio: 1; opacity: 0; top: 20%; }
.times-burst::before, .times-burst::after {
  position: absolute; content: ""; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, #fffaca 0 7deg, transparent 7deg 44deg);
  mask-image: radial-gradient(circle, transparent 22%, #000 32%, transparent 73%);
}
.times-burst::after { rotate: 23deg; scale: .73; }
.times-burst[data-miss]::before, .times-burst[data-miss]::after {
  background: repeating-conic-gradient(from 10deg, #ffb58a 0 7deg, transparent 7deg 44deg);
}
.times-actions { flex-wrap: wrap; }
#times-play-actions { justify-content: center; }
.times-steer, .times-assist { gap: 4px; }
.times-steer .times-soft { width: 39px; padding-inline: 3px; font-size: 1rem; }
.times-steer .times-soft[aria-disabled="true"] { opacity: .65; }
#times-launch { padding-inline: 13px; }
.times-clue {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-self: center;
  width: min(100%, 560px); gap: 8px; padding: 5px 7px; border: 1px solid #ebd7a0;
  border-radius: 8px; background: #fff8dc; color: #5d4725; font-size: .71rem; line-height: 1.24;
}
.times-array { display: grid; gap: 1px; grid-template-columns: repeat(var(--array-cols, 4), minmax(0, 1fr)); }
.times-array i { display: block; width: clamp(3px, .5vw, 6px); aspect-ratio: 1; border-radius: 50%; background: #966036; }
.times-clue:not(:has(.times-array i)) { grid-template-columns: minmax(0, 1fr); }
.times-clue:not(:has(.times-array i)) .times-array { display: none; }
.times-result-record { font-weight: 850; }
.times-review {
  width: 100%; padding: 6px 8px; border: 1px solid #dcd1ef; border-radius: 8px;
  background: #faf4ff; font-size: .74rem; color: #574071;
}
.times-review summary { cursor: pointer; font-weight: 850; }
.times-review ul { max-height: 105px; overflow: auto; margin-block: 5px 0; padding-left: 18px; }
.times-review li { margin-block: 3px; }
.times-plots { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.times-plot {
  display: grid; place-items: center; min-height: 14px; border: 1px solid #cbd5ee;
  border-radius: 5px; background: #e7edf9; font-weight: 900; font-size: .7rem; line-height: 1;
}
.times-plot::after { content: "·"; color: #657eaf; }
.times-plot[data-state="bloom"] { background: #e2f3b9; border-color: #a3c479; }
.times-plot[data-state="bloom"]::after { content: "✿"; color: #8b4377; }
.times-plot[data-state="try"] { background: #ffe6dc; border-color: #e8b8a8; }
.times-plot[data-state="try"]::after { content: "×"; color: #874731; }
.times-plot[data-state="current"] { outline: 2px solid #725bd0; outline-offset: -2px; }
.times-plot[data-pop] { animation: times-bloom .3s ease-out; }
@keyframes times-bloom { 45% { transform: scale(1.18); } }
.times-feedback {
  display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 3px 8px;
  border-radius: 9px; background: #eaf3ff; color: #32527c; font-size: .76rem; font-weight: 850; line-height: 1.22;
}
.times-feedback img { width: 22px; height: 28px; object-fit: contain; flex: none; }
.times-feedback[data-tone="correct"] { background: #e9f8e0; color: #315a37; }
.times-feedback[data-tone="combo"] { background: #f2e6ff; color: #644085; }
.times-feedback[data-tone="review"] { background: #fff0df; color: #743f23; }
.times-local { margin-top: 8px; color: #536485; font-size: .73rem; }

html:has(.times-layout.is-expanded) { overflow: hidden; }
.times-page:has(.times-layout:is(:fullscreen, .is-expanded)) :is(.site-header, .skip, .game-crumbs, .times-intro, .times-local, .game-reading, .games-footer) { visibility: hidden; }
.times-layout:is(:fullscreen, .is-expanded) {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; position: fixed;
  inset: 0; z-index: 10; width: 100%; height: 100dvh; overflow: hidden;
  padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: #e9f0ff;
}
.times-layout:is(:fullscreen, .is-expanded) .times-settings { display: none; }
.times-layout:is(:fullscreen, .is-expanded) .times-cabinet {
  width: 100%; height: 100%; min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
.times-layout:is(:fullscreen, .is-expanded) .times-stage { min-height: 0; }
.times-layout:is(:fullscreen, .is-expanded) .times-flight {
  width: 100%;
  --pod-height: clamp(51px, min(22cqw, 25cqh), 176px);
  --ship-height: clamp(36px, min(21cqw, 35cqh), 220px);
}
.times-layout:is(:fullscreen, .is-expanded) .times-choice {
  width: min(90%, clamp(118px, 13cqw, 250px));
  font-size: clamp(1.24rem, min(4.2cqw, 12cqh), 3.4rem);
}
.times-layout:is(:fullscreen, .is-expanded) .times-choices {
  transform: translateY(calc(var(--approach, 0) * max(0px, 90cqh - var(--pod-height) - var(--ship-height) - 9px)));
}
.times-layout:is(:fullscreen, .is-expanded) .times-icon { width: 38px; min-height: 36px; padding: 3px; background: #ffffff85; }
.times-layout:is(:fullscreen, .is-expanded) :is(.times-icon span, .times-expand) { display: none; }
.times-layout:is(:fullscreen, .is-expanded) .times-shrink { display: block; }

@media (max-width: 850px) {
  .times-layout { grid-template-columns: minmax(0, 1fr); }
  .times-settings form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .times-settings fieldset, .times-field-note { grid-column: 1 / -1; }
  .times-settings fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .times-settings form > label:not(:first-child) { margin: 0; }
}
@media (max-width: 570px) {
  .times-intro { align-items: start; flex-direction: column; }
  .times-cabinet { padding: 6px; gap: 5px; }
  .times-tools .times-icon { width: 35px; padding: 3px; }
  .times-tools .times-icon span { display: none; }
  .times-stats { gap: 3px; }
  .times-stats > div { display: grid; justify-content: center; gap: 1px; padding: 3px 1px; text-align: center; font-size: .61rem; }
  .times-stats strong { font-size: .75rem; }
  .times-ready { grid-template: auto auto / minmax(0, 1fr); justify-items: center; align-content: center; }
  .times-launch-art { max-width: 235px; }
  .times-overlay-card { gap: 6px; }
  #times-play { padding: 5px; gap: 5px; }
  .times-choice { width: 91%; padding-inline: 2px; }
  .times-array i { width: 3px; }
}
@media (max-height: 490px) {
  .times-layout:is(:fullscreen, .is-expanded) .times-cabinet { gap: 4px; padding: 5px; }
  .times-layout:is(:fullscreen, .is-expanded) .times-scorebar h2 { font-size: 1.08rem; }
  .times-layout:is(:fullscreen, .is-expanded) .times-equation { font-size: clamp(1.65rem, 4vw, 2.35rem); }
  .times-layout:is(:fullscreen, .is-expanded) #times-play { padding: 4px 6px; gap: 3px; }
  .times-layout:is(:fullscreen, .is-expanded) :is(.times-soft, .times-primary) { min-height: 31px; }
  .times-layout:is(:fullscreen, .is-expanded) .times-array i { width: 3px; }
  .times-layout:is(:fullscreen, .is-expanded) .times-feedback { min-height: 31px; padding-block: 2px; }
  .times-layout:is(:fullscreen, .is-expanded) .times-feedback img { height: 24px; }
  .times-layout:is(:fullscreen, .is-expanded) .times-choice { font-size: clamp(1.15rem, 3vw, 1.8rem); }
  .times-layout:is(:fullscreen, .is-expanded) .times-flight {
    --pod-height: clamp(40px, 35cqh, 69px);
    --ship-height: clamp(32px, 42cqh, 79px);
  }
}
@media (min-width: 571px) and (max-height: 490px) {
  .times-layout:is(:fullscreen, .is-expanded) #times-play:has(.times-clue:not([hidden])) {
    grid-template: "prompt prompt" auto "arena hint" minmax(0, 1fr) "controls controls" auto / minmax(0, 1fr) minmax(120px, 20%);
  }
  .times-layout:is(:fullscreen, .is-expanded) #times-play:has(.times-clue:not([hidden])) .times-prompt { grid-area: prompt; }
  .times-layout:is(:fullscreen, .is-expanded) #times-play:has(.times-clue:not([hidden])) .times-flight { grid-area: arena; }
  .times-layout:is(:fullscreen, .is-expanded) #times-play:has(.times-clue:not([hidden])) #times-play-actions { grid-area: controls; }
  .times-layout:is(:fullscreen, .is-expanded) #times-play:has(.times-clue:not([hidden])) .times-clue {
    grid-area: hint; grid-template-columns: minmax(0, 1fr); align-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .times-clouds, .times-choice, .times-jet, .times-plot[data-pop] { animation: none; }
  .times-sky, .times-aim, .times-ship, .times-wind span, .times-choices { transition: none; }
  .times-choices { transform: none; }
}
