.challenge-header { grid-template-columns: 1fr 1fr; }
.game { max-width: 1050px; }
.board-strip { position: sticky; z-index: 3; top: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #425f7a; border: 1px solid #425f7a; border-radius: 0 0 7px 7px; box-shadow: 0 5px 17px #080e17bc; }
.board-strip > div { min-width: 0; display: grid; gap: 3px; align-content: start; background: #152536; padding: 7px 11px; }
.board-strip span, .board-strip small { color: var(--muted); font-size: .74rem; line-height: 1.2; }
.board-strip strong { font-size: 1.03rem; color: #e7f2ff; line-height: 1.12; font-variant-numeric: tabular-nums; }
.game #screen-title { scroll-margin-top: var(--board-height, 85px); }
.game-hero { padding-block: 34px 12px; }
.game-hero h1 { font-size: clamp(1.95rem, 4.1vw, 3.55rem); }
.game-hero .motion-control { margin-top: 3px; }
.round-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.round-progress li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px; border: 1px solid var(--rule); border-radius: 5px; background: #121c27; color: #9eb0c4; font-size: .8rem; line-height: 1.27; }
.round-progress span { display: grid; flex: 0 0 21px; height: 21px; place-items: center; background: #25364a; border-radius: 50%; }
.round-progress [aria-current="step"] { border-color: #8cbcf2; background: #203851; color: var(--ink); box-shadow: 0 0 17px #65acff3d; }
.round-progress .done { border-color: #53798d; color: #b5d4d9; }
.game .chapter { padding-block: clamp(23px, 4vw, 48px) 27px; }
.game h2 { font-size: clamp(1.6rem, 3.2vw, 2.7rem); }
#screen { margin-top: 15px; }
.lead { color: var(--muted); max-width: 67ch; }

.game button:not(.motion-control, .case-link, .plot-dot), .game input, .game select { min-height: 43px; border: 1px solid #587391; border-radius: 5px; font: inherit; }
.game button:not(.motion-control, .case-link), .project-dialog button { padding: 7px 14px; cursor: pointer; font-size: .9rem; font-weight: 650; }
.game button.primary { color: #102035; border-color: var(--accent); background: var(--accent); }
.game button.primary:hover:not(:disabled) { background: #e0eeff; }
.game button.secondary { color: var(--ink); background: #203248; }
.game button.secondary:hover:not(:disabled), .game button[aria-pressed="true"] { border-color: var(--accent); background: #2f4b68; }
.game button:disabled { opacity: .55; cursor: default; }
.game input, .game select { width: 100%; padding: 7px 9px; color: var(--ink); background: #101c29; }
.game input:focus-visible, .game select:focus-visible, .table-scroll:focus-visible, .goal-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#begin { display: grid; justify-items: start; gap: 7px; max-width: 320px; margin-top: 21px; }
#begin button { margin-top: 6px; }
.game-actions { margin-top: 17px; }

.mandate, .instructions { margin-block: 12px; padding-inline-start: 1.25rem; color: var(--muted); }
.mandate li, .instructions li { margin-block: 4px; }
.mandate strong, .instructions strong { color: var(--ink); }
.goal-details { margin-block: 13px; color: var(--muted); }
.goal-details summary { width: fit-content; color: var(--accent); cursor: pointer; }
.game-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(117px, 1fr)); gap: 7px; margin-block: 12px; }
.game-stats > div { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 5px; background: #142233; }
.game-stats span, .asset-list span { display: block; color: var(--muted); font-size: .78rem; }
.game-stats strong { display: block; margin-top: 3px; font-size: clamp(.98rem, 2.1vw, 1.27rem); font-variant-numeric: tabular-nums; }
.game-stats .countdown { border-color: #719fd1; }
progress { width: 100%; height: 6px; accent-color: var(--accent); }
.notice { margin-block: 7px; color: var(--muted); font-size: .86rem; }

.offer-card, .game-panel { padding: clamp(12px, 2vw, 20px); border: 1px solid #496787; border-radius: 7px; background: #172638; }
.offer-card h3 { margin-top: 5px; font-size: clamp(1.23rem, 3vw, 1.9rem); }
.offer-facts { display: flex; flex-wrap: wrap; gap: 7px 24px; margin: 12px 0; }
.offer-facts dt { color: var(--muted); font-size: .77rem; }
.offer-facts dd { margin: 3px 0 0; font-weight: 650; }
.votes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.votes li { border: 1px solid; border-radius: 5px; padding: 6px 8px; font-size: .78rem; line-height: 1.3; }
.votes .supports { border-color: #5c947f; color: #b6f1d8; background: #193732; }
.votes .opposes { border-color: #a9747c; color: #ffd1d6; background: #392933; }
.votes span { display: block; margin-top: 3px; color: var(--muted); }
.offer-card .game-actions button { min-width: 105px; }

.game-panel { margin-block: 13px; }
.team-announcement { margin-bottom: 14px; padding: 13px 16px; background: linear-gradient(110deg, #1d3c49, #192e41); border: 1px solid #6196a9; border-radius: 7px; }
.team-announcement .meta { color: #bcebdc; }
.team-announcement h3 { margin-block: 3px 6px; font-size: clamp(1.22rem, 2.4vw, 1.7rem); }
.team-announcement p:last-child { color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.filters label { display: grid; gap: 4px; color: var(--muted); font-size: .82rem; }
.table-scroll { overflow: auto; max-height: 320px; border: 1px solid var(--rule); border-radius: 5px; }
.game table, .project-dialog table { border-spacing: 0; width: 100%; text-align: left; white-space: nowrap; font-size: .86rem; }
.game thead th, .project-dialog thead th { position: sticky; top: 0; background: #20354c; font-weight: 600; }
.game th, .game td, .project-dialog th, .project-dialog td { padding: 7px 9px; border-bottom: 1px solid var(--rule); }
.game td span { color: var(--muted); }
.case-link { padding: 3px 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .16em; cursor: pointer; }
.project-dialog { width: min(630px, calc(100% - 24px)); max-height: 90dvh; padding: 16px; border: 1px solid #6492c0; border-radius: 7px; background: #162536; color: var(--ink); }
.project-dialog::backdrop { background: #09121bdc; }
.project-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.project-dialog button { color: var(--ink); background: #203248; border: 1px solid #587391; border-radius: 5px; }
.project-dialog h2 { font-size: 1.5rem; }
.asset-list, .scorecard { list-style: none; padding: 0; margin-bottom: 0; }
.asset-list li, .scorecard li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.scorecard li { justify-content: flex-start; }
.scorecard strong { min-width: 4rem; color: #ffc9cd; }
.scorecard .met { color: #b6f1d8; }
.board-verdict { padding: clamp(14px, 2.6vw, 24px); border: 1px solid #5b7895; border-radius: 8px; background: #17283b; }
.board-verdict h3 { margin-block: 5px; font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
.board-verdict.verdict-strong { border-color: #76b69c; background: radial-gradient(ellipse at 10% 12%, #285447, #172c36 75%); box-shadow: 0 0 24px #65c49d30; }
.verdict-strong .meta { color: #b6f1d8; }
.director-verdict { margin-top: 11px; padding-top: 10px; border-top: 1px solid #688ba166; color: var(--muted); }
.director-verdict strong { color: var(--ink); }
.verdict-scorecard li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px; padding-block: 11px; }
.verdict-scorecard .notice { margin: 2px 0 0; }
.verdict-status { color: #ffc9cd; font-size: .84rem; font-weight: 700; }
.verdict-result { margin-top: 2px; color: var(--accent); font-size: .88rem; }

.risk-figure { margin: 16px 0; padding: 13px clamp(8px, 2vw, 16px); border: 1px solid var(--rule); border-radius: 7px; background: #111e2e; }
.risk-legend { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-block: 6px 12px; color: var(--muted); font-size: .77rem; }
.risk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.risk-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #78c9fa; }
.risk-legend .wind::before { border-radius: 1px; background: #f0c986; }
.risk-legend .chosen::before { border: 1px solid #fff; outline: 1px solid #9ac5f2; background: transparent; }
.plot-frame { margin-inline: 31px 15px; }
.axis-y-title { margin: 0 0 5px -29px; color: var(--muted); font-size: .78rem; }
.axis-x-title { margin-top: 25px; color: var(--muted); text-align: center; font-size: .79rem; }
.plot-plane { position: relative; isolation: isolate; height: clamp(170px, 31vw, 265px); border: 1px solid #567591; }
.plot-row, .plot-column { position: absolute; pointer-events: none; color: var(--muted); font: .7rem/1.1 "IBM Plex Mono", Consolas, monospace; }
.plot-row { inset-inline: 0; bottom: var(--y); border-top: 1px solid #2d4762; }
.plot-row span { position: absolute; right: 100%; padding-right: 6px; transform: translateY(-50%); }
.plot-column { inset-block: 0; left: var(--x); border-left: 1px solid #2d4762; }
.plot-column span { position: absolute; top: 100%; padding-top: 5px; transform: translateX(-50%); }
.game button.plot-dot { position: absolute; z-index: 1; left: var(--x); bottom: var(--y); display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 0; border: 0; background: transparent; transform: translate(-50%, 50%); }
.plot-dot span { width: 11px; height: 11px; border: 1px solid #0a1520; border-radius: 50%; background: #78c9fa; }
.plot-dot.wind span { border-radius: 1px; background: #f0c986; }
.plot-dot:hover, .plot-dot:focus-visible, .plot-dot[data-chosen] { z-index: 2; }
.game .plot-dot[aria-pressed="true"] { background: transparent; }
.plot-dot:hover span, .plot-dot:focus-visible span, .plot-dot[data-chosen] span { outline: 2px solid #e9f5ff; outline-offset: 1px; }
.plot-readout { padding-top: 9px; color: var(--ink); font-size: .84rem; min-height: 3em; }
.no-points { padding: 10px; }

.period-controls { display: flex; flex-wrap: wrap; gap: 7px 11px; align-items: center; margin-top: 10px; }
.period-controls label { font-size: .87rem; font-variant-numeric: tabular-nums; }
.game .period-controls input[type="range"] { flex: 1 1 110px; min-width: 96px; min-height: 27px; margin: 0; padding: 0; accent-color: var(--accent); }
.period-scale { display: flex; justify-content: space-between; gap: 4px; margin-block: 7px 11px; color: var(--muted); font-size: .75rem; }
.progress-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); gap: 8px; }
.timeline-card { display: grid; align-items: baseline; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 8px 10px; border: 1px solid #4b6784; border-radius: 5px; background: #112031; font-size: .87rem; }
.timeline-card span { display: block; color: var(--muted); font-size: .77rem; }
.timeline-card progress { grid-column: 1 / -1; }
.timeline-card.sold { border-color: #5f997d; }
.timeline-card.sold progress { accent-color: #a7e2c8; }
.timeline-card.failed { border-color: #98677a; }
.timeline-card.failed progress { accent-color: #ec9daa; }

.feedback-form { display: grid; gap: 9px; margin-top: 10px; }
.feedback-form label { display: grid; gap: 4px; font-size: .93rem; }
.feedback-form textarea { width: 100%; padding: 8px; border: 1px solid #587391; border-radius: 5px; color: var(--ink); background: #101c29; font: inherit; resize: vertical; }
.feedback-form select { max-width: 260px; }
.feedback-form .actions { margin-top: 5px; }

@media (max-width: 650px) {
  .board-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-strip > div { grid-template-columns: 1fr auto; gap: 2px 4px; padding: 5px 6px; }
  .board-strip strong { font-size: .82rem; }
  .board-strip span, .board-strip small { font-size: .66rem; }
  .board-strip small { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero { padding-block: 22px 9px; }
  .round-progress { margin-top: 12px; }
  .round-progress li { padding: 5px; font-size: .68rem; }
  .round-progress span { flex-basis: 16px; height: 16px; }
  .game-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .votes span { display: none; }
}
