.year-game .year-board {
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  background: #171e29;
  border: 1px solid #3c4c62;
  border-radius: 20px;
  color: #f2f5fa;
}

.year-game .year-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 16px clamp(16px, 5vw, 38px);
  background: #111822;
}

.year-game .year-toolbar label,
.year-game .year-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #b4c3d8;
  font-size: .875rem;
}

.year-game .year-score strong { color: #ffc073; }

.year-game .year-toolbar select,
.year-game .year-board button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #3c4c62;
  border-radius: 9px;
  background: #202938;
  color: #f2f5fa;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.year-game .year-board button:hover { background: #314056; }
.year-game .year-board button:focus-visible,
.year-game .year-board select:focus-visible,
.year-game .year-board input:focus-visible,
.year-game .year-board a:focus-visible {
  outline: 2px solid #ffc073;
  outline-offset: 3px;
}

.year-game .year-board progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
  background: #263348;
  accent-color: #65e8c4;
}

.year-game .year-board progress::-webkit-progress-bar { background: #263348; }
.year-game .year-board progress::-webkit-progress-value { background: #65e8c4; }
.year-game .year-board progress::-moz-progress-bar { background: #65e8c4; }

.year-game .year-body { padding: clamp(16px, 5vw, 38px); }

.year-game .year-prompt {
  min-height: 104px;
  margin: 0 0 18px;
}

.year-game #yearTopic {
  margin: 0 0 8px;
  color: #65e8c4;
  font-size: .875rem;
  font-weight: 700;
}

.year-game .year-prompt h2,
.year-game .year-summary h2 {
  margin: 0;
  color: #f2f5fa;
  font-size: clamp(1.5rem, 3.25vw, 2.25rem);
  line-height: 1.22;
}

.year-game .year-picker {
  padding: 18px clamp(12px, 4vw, 28px);
  background: #101722;
  border: 1px solid #35445a;
  border-radius: 14px;
}

.year-game .year-picker label {
  display: block;
  text-align: center;
  color: #b4c3d8;
  font-size: .875rem;
  font-weight: 650;
}

.year-game .year-dial {
  display: grid;
  grid-template-columns: auto auto minmax(96px, auto) auto auto;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1.5vw, 12px);
  margin: 2px 0 6px;
}

.year-game .year-dial button {
  min-width: 44px;
  padding-inline: clamp(5px, 1.4vw, 12px);
}

.year-game .year-dial output {
  color: #65e8c4;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: 1.15;
  text-align: center;
}

.year-game #yearSlider {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #65e8c4;
  cursor: ew-resize;
}

.year-game .year-ticks {
  position: relative;
  height: 1.2em;
  margin: -6px 0 16px;
  color: #b4c3d8;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.year-game .year-ticks span { position: absolute; }
.year-game .year-ticks span:nth-child(2) { left: 26.1%; transform: translateX(-50%); }
.year-game .year-ticks span:nth-child(3) { left: 60.9%; transform: translateX(-50%); }
.year-game .year-ticks span:last-child { right: 0; }

.year-game .year-actions {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8px;
}

.year-game .year-board .year-primary {
  background: #65e8c4;
  border-color: #65e8c4;
  color: #101722;
}

.year-game .year-board .year-primary:hover {
  background: #a1f6de;
  border-color: #a1f6de;
}

.year-game .year-actions button,
.year-game #yearNext { min-height: 49px; }

.year-game .year-result {
  padding: 18px clamp(14px, 4vw, 24px);
  border: 1px solid #477265;
  border-radius: 14px;
  background: #182a2b;
}

.year-game .year-result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
}

.year-game .year-result h3 {
  margin: 0;
  color: #f2f5fa;
  font-size: 1.5rem;
}

.year-game #yearPoints { color: #65e8c4; }
.year-game .year-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}
.year-game .year-metrics div {
  padding: 10px;
  border: 1px solid #3c4c62;
  border-radius: 8px;
  background: #171e29;
}
.year-game .year-metrics dt { color: #b4c3d8; font-size: .8125rem; line-height: 1.3; }
.year-game .year-metrics dd {
  margin: 4px 0 0;
  color: #f2f5fa;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.year-game #yearDifference { color: #ffc073; }
.year-game .year-result p { margin: 7px 0; color: #cfdfdf; }
.year-game .year-board .year-scoring { color: #b4c3d8; font-size: .875rem; }
.year-game .year-result a { display: inline-block; margin-top: 4px; color: #a1f6de; }
.year-game #yearNext { display: block; width: 100%; margin-top: 16px; }
.year-game .year-rule { margin: 12px 0 0; color: #b4c3d8; font-size: .875rem; }
.year-game .year-summary p { color: #b4c3d8; }
.year-game #yearSummaryStats { color: #65e8c4; font-size: 1.2rem; font-weight: 700; }
.year-game .year-ranking-link { color: #65e8c4; font-weight: 700; text-underline-offset: 4px; }
.year-game .year-summary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.year-game .year-review { margin-top: 18px; }
.year-game .year-review summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.year-game .year-review ol { margin-top: 4px; padding-inline-start: 24px; }
.year-game .year-review li { padding: 8px 4px; border-bottom: 1px solid #3c4c62; }
.year-game .year-review li a { color: #f2f5fa; text-underline-offset: 3px; }
.year-game .year-review li span { display: block; margin-top: 2px; color: #b4c3d8; font-size: .875rem; }
.year-game #community { max-width: 860px; scroll-margin-top: 80px; }
.year-game .year-board [hidden] { display: none; }

@media (max-width: 420px) {
  .year-game .year-toolbar { padding-inline: 12px; }
  .year-game .year-body,
  .year-game .year-picker { padding-inline: 10px; }
  .year-game .year-dial { grid-template-columns: repeat(2, auto) minmax(70px, auto) repeat(2, auto); }
  .year-game .year-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-game .year-actions button { padding-inline: 5px; }
}

@media (max-width: 360px) {
  .year-game .year-dial {
    grid-template-columns: repeat(2, auto) minmax(62px, auto) repeat(2, auto);
    gap: 4px;
  }
  .year-game .year-dial button { min-width: 36px; }
  .year-game .year-dial output { font-size: 2.125rem; }
}
