@import url('/theme.css');

* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input { width: 100%; min-height: 54px; padding: 13px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
label { display: block; font-weight: 700; margin-bottom: 10px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.1; letter-spacing: -.04em; font-weight: 500; }
h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
h2 { font-size: 1.65rem; }
[hidden] { display: none !important; }
.page-shell { max-width: 1200px; margin: auto; padding: 0 32px; }
.masthead { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--ink); }
.wordmark { font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 700; letter-spacing: -.07em; }
#connection { color: var(--red); font-size: .8rem; }
main { padding: 32px 0; }
.muted, .small-copy, .lede { color: var(--muted); }
.small-copy { font-size: .85rem; margin-top: 16px; }
.lede { font-size: 1.3rem; margin-top: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none; }
.button:hover:not(:disabled) { background: var(--green); border-color: var(--green); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover:not(:disabled) { border-color: var(--ink); }
.button.small { min-height: 40px; padding: 8px 13px; font-size: .85rem; }
.button.full { width: 100%; margin-top: 16px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-button { display: inline-block; padding: 6px 0; border: 0; background: none; font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.notice { max-width: 580px; margin: 14px auto 0; padding: 10px 13px; background: var(--green-light); border-left: 3px solid var(--green); font-size: .85rem; }
.notice.error { background: #f9eeea; border-color: var(--red); }
.join-view { max-width: 360px; margin: clamp(40px, 14vh, 140px) auto 0; }
.join-view label { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.04em; }
.join-view .text-button { margin-top: 24px; }
.waiting { text-align: center; padding: clamp(50px, 17vh, 180px) 0; }
.waiting h1 { font-size: clamp(2rem, 6vw, 3rem); overflow-wrap: anywhere; }
.waiting p { margin-top: 18px; color: var(--muted); }
.loading { text-align: center; margin-top: 60px; color: var(--muted); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.admin-top h1 { font-size: 2rem; }
.admin-top .button-row { gap: 20px; }
.host-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.panel-head p { margin-top: 7px; font-size: .9rem; }
.round-controls .button-row { margin-top: 28px; }
.team-list { margin-top: 18px; }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border: 0; }
.team-row strong, .team-row > span:first-child { overflow-wrap: anywhere; }
.team-status { font-size: .85rem; white-space: nowrap; color: var(--muted); }
.panel > .muted { margin-top: 18px; }
.settings { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.settings-content { max-width: 600px; padding-top: 22px; }
.settings-content > .button-row { margin-top: 20px; }
.settings-content details { margin-top: 25px; }
.duration-row { display: flex; gap: 14px; align-items: end; }
.duration-row label { margin: 0; font-size: .85rem; }
.duration-row input { display: block; max-width: 140px; margin-top: 8px; }
.duration-row button { margin-bottom: 2px; }
.transfer-result { background: var(--green-light); padding: 18px; margin-top: 18px; font-size: .9rem; }
.transfer-result code { display: block; font-size: 1.5rem; letter-spacing: .1em; padding: 8px 0; }
.clock { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.clock.urgent { color: var(--red); }
.play-view .page-shell { max-width: 580px; padding: 0 16px; }
.play-view .masthead { min-height: 62px; }
.play-view .wordmark { font-size: 1.55rem; }
.play-view main { padding-top: 20px; }
.game-layout { max-width: 540px; margin: auto; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.game-top h1 { font-size: 1.9rem; }
.team-name { font-size: .8rem; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.game-top .clock { font-size: 2rem; flex-shrink: 0; }
progress { display: block; width: 100%; height: 3px; border: 0; background: var(--line); accent-color: var(--green); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.game-status { text-align: center; min-height: 30px; padding: 5px 0; font-size: .85rem; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: min(300px, 75vw); margin: 0 auto 20px; }
.board-row { display: contents; }
.tile { aspect-ratio: 1; min-height: 0; display: flex; justify-content: center; align-items: center; position: relative; border: 2px solid #d6d7d3; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.tile.filled { border-color: #8b8f89; }
.tile.correct, .sample-tile.correct { background: var(--green); border-color: var(--green); color: #fff; }
.tile.present, .sample-tile.present { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.tile.absent, .sample-tile.absent { background: var(--absent); border-color: var(--absent); color: #fff; }
.tile-marker { position: absolute; bottom: 3px; right: 3px; font-size: .55rem; font-weight: 400; }
.keyboard { display: grid; gap: 7px; touch-action: manipulation; }
.keyboard-row { display: flex; justify-content: center; gap: 5px; }
.key { flex: 1; max-width: 49px; min-width: 0; min-height: 51px; padding: 0; border: 0; border-radius: 4px; background: #dfe2dd; color: var(--ink); font-size: .85rem; font-weight: 700; }
.key.wide { flex: 1.6; max-width: 74px; font-size: .65rem; }
.key.correct { background: var(--green); color: #fff; }
.key.present { background: var(--yellow); color: #fff; }
.key.absent { background: var(--absent); color: #fff; }
.countdown-view { text-align: center; padding: 8vh 0; }
.countdown-number { font-family: Georgia, serif; font-size: clamp(8rem, 22vw, 17rem); line-height: 1; color: var(--green); }
.screen-view .page-shell { max-width: 1600px; padding: 0 48px; }
.screen-view .masthead { justify-content: center; padding: 16px 0; }
.screen-view .wordmark { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.screen-view #connection { position: absolute; top: 10px; right: 16px; }
.screen-view main { padding-top: 45px; }
.screen-lobby { display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: start; padding-top: 25px; }
.qr-panel { text-align: center; }
.qr-panel img { display: block; width: 100%; max-width: 360px; height: auto; margin: auto; }
.join-address { font-size: .95rem; margin-top: 15px; overflow-wrap: anywhere; }
.teams-heading { margin-top: 50px; font-size: 1.5rem; }
.team-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.team-chip { padding: 11px 17px; background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: 1.1rem; overflow-wrap: anywhere; }
.instructions { max-width: 850px; margin: 15px auto; }
.sample-tiles { display: flex; gap: 8px; margin: 30px 0 18px; }
.sample-tile { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid var(--line); font-size: 1.9rem; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 22px; font-size: 1rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--green); margin-right: 7px; }
.legend span:nth-child(2)::before { background: var(--yellow); }
.legend span:nth-child(3)::before { background: var(--absent); }
.instruction-rules { margin: 30px 0; padding-left: 23px; font-size: 1.25rem; }
.instruction-rules li { margin-top: 12px; }
.projector-active { max-width: 850px; margin: 10px auto; text-align: center; }
.projector-clock { display: block; font-family: Georgia, serif; font-size: clamp(6rem, 16vw, 14rem); font-weight: 400; margin: 30px 0; }
.participation { font-size: 1.15rem; color: var(--muted); margin-top: 28px; }
.reveal { text-align: center; margin: 40px auto; }
.answer-preview { display: flex; justify-content: center; gap: 12px; margin-top: 50px; }
.answer-preview span { display: grid; place-items: center; background: var(--green); color: #fff; width: clamp(45px, 9vw, 100px); height: clamp(50px, 10vw, 110px); font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 700; }
.leaderboard-wrap { max-width: 950px; margin: 15px auto; }
.leaderboard { width: 100%; border-collapse: collapse; margin-top: 35px; text-align: left; }
.leaderboard th { padding: 13px; border-bottom: 2px solid var(--ink); font-size: .9rem; font-weight: 400; color: var(--muted); }
.leaderboard td { padding: 22px 13px; border-bottom: 1px solid var(--line); font-size: 1.55rem; overflow-wrap: anywhere; }
.leaderboard th:last-child, .leaderboard td:last-child { text-align: right; }
.leaderboard td:first-child { width: 90px; }
.leaderboard .winner { background: var(--green-light); }
dialog { width: calc(100% - 32px); max-width: 460px; padding: 28px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; }
dialog::backdrop { background: #1119; }
dialog p { margin-top: 16px; color: var(--muted); }
dialog .button-row { margin-top: 24px; }
@supports (height: 100svh) {
  .play-view .board { max-width: clamp(175px, calc((100svh - 390px) * .82), 300px); }
}
@media (max-width: 700px) {
  .page-shell { padding: 0 20px; }
  .host-layout { grid-template-columns: 1fr; }
  .admin-top .button-row { gap: 12px; }
  .panel { padding: 22px; }
  .screen-view .page-shell { padding: 0 22px; }
  .screen-lobby { grid-template-columns: 1fr; gap: 30px; }
  .qr-panel { grid-row: 1; }
  .qr-panel img { max-width: 250px; }
  .teams-heading { margin-top: 30px; }
  .keyboard-row { gap: 4px; }
  .key.wide { font-size: .6rem; }
  .leaderboard td { font-size: 1rem; padding: 16px 8px; }
  .leaderboard td:first-child { width: 45px; }
}

.presentation-view .page-shell { max-width: 1600px; padding: 0 48px; }
.presentation-view .masthead { justify-content: center; padding: 16px 0; }
.presentation-view .wordmark { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.presentation-view #connection { position: absolute; top: 10px; right: 16px; }
.presentation-view main { padding: 40px 0 110px; }
.presenter-toolbar { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px; padding: 12px 28px; background: var(--paper); border-top: 1px solid var(--line); }
.round-label { font-size: .85rem; color: var(--muted); }
.presenter-actions { margin-left: auto; }
.presenter-settings .settings-content { position: absolute; bottom: 76px; right: 22px; width: min(440px, calc(100vw - 44px)); max-height: 65vh; overflow-y: auto; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 6px 30px #0002; }
.round-kicker { color: var(--muted); margin-bottom: 12px; }
.connections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.connection-tile { min-height: 85px; padding: 12px 6px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #25261e; background: #eeeee5; font-weight: 700; font-size: 1rem; }
.connection-tile.selected { background: #585b48; color: white; }
.connection-group { padding: 18px 10px; margin: 8px 0; border-radius: 5px; text-align: center; color: #20241f; }
.connection-group strong, .connection-group span { display: block; }
.group-0 { background: #f9df6d; }
.group-1 { background: #a0c35a; }
.group-2 { background: #b0c4ef; }
.mistakes { text-align: center; font-size: .9rem; color: var(--muted); margin: 22px 0; }
.puzzle-actions { display: flex; justify-content: center; gap: 10px; }
.connections-reveal { max-width: 850px; }
.connections-reveal h1 { margin-bottom: 30px; }
.connections-reveal .connection-group { font-size: 1.5rem; }
.projector-active .connections-grid { max-width: 600px; margin: 25px auto 0; }
.projector-active:has(.connections-grid) .projector-clock { font-size: 4rem; margin: 15px 0; }
@media (max-width: 700px) {
  .presentation-view .page-shell { padding: 0 20px; }
  .presenter-toolbar { padding: 10px; gap: 10px; flex-wrap: wrap; }
  .presenter-toolbar .round-label { display: none; }
  .presenter-actions { gap: 6px; }
  .presenter-actions .button { padding: 10px 12px; font-size: .8rem; }
  .connection-tile { min-height: 75px; font-size: .85rem; }
}

.brand { display: flex; flex-direction: column; }
.brand-spark { color: var(--green); font-family: Georgia, serif; font-size: .6em; margin-left: .2em; vertical-align: middle; }
.presentation-view .brand { text-align: center; }
.crossword-grid { display: grid; gap: 1px; background: #252525; border: 2px solid #252525; width: 100%; max-width: 350px; margin: auto; }
.cols-8 { grid-template-columns: repeat(8, 1fr); }
.crossword-cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: white; color: #111; font-size: 1.3rem; text-transform: uppercase; }
.crossword-cell.highlighted { background: #ffedaf; }
.crossword-cell.in-entry { box-shadow: inset 0 0 0 2px #a8d4e7; }
.crossword-cell.active-cell { background: #add8ee; }
.crossword-cell:disabled { opacity: 1; }
.crossword-block { background: #252525; }
.clue-number { position: absolute; top: 1px; left: 3px; font-size: .55rem; line-height: 1; }
.extraction-number { position: absolute; bottom: 1px; right: 2px; color: #715500; font-size: .55rem; line-height: 1; }
.extraction { display: flex; justify-content: center; gap: 4px; margin: 15px 0; }
.extraction > span { min-width: 22px; text-align: center; background: #ffedaf; font-weight: 700; padding: 2px; }
.extraction small { display: block; font-size: .55rem; font-weight: 400; }
.extraction .word-break { margin-left: 8px; }
.active-clue { min-height: 44px; padding: 8px 10px; background: #e5f1f6; margin-bottom: 12px; font-size: .85rem; }
.crossword-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px auto; }
.crossword-clues h2 { font: 700 1rem Arial, sans-serif; letter-spacing: 0; margin-bottom: 10px; }
.clue-button { display: block; border: 0; background: transparent; text-align: left; padding: 7px 3px; font-size: .85rem; width: 100%; color: var(--ink); }
.clue-button.active { background: #e5f1f6; }
.projector-crossword { display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 20px; text-align: left; }
.projector-crossword .crossword-clues { font-size: .95rem; margin: 0; }
.projector-crossword .crossword-clues p { margin-bottom: 14px; }
.projector-active:has(.projector-crossword) .projector-clock { font-size: 3.5rem; margin: 15px 0; }
.crossword-reveal { text-align: center; }
.crossword-reveal h1 { margin-bottom: 25px; }
@media (max-width: 700px) { .projector-crossword { grid-template-columns: 1fr; } .crossword-cell { font-size: 1.15rem; } }

.play-view:has(.crossword-game) main { padding-bottom: 220px; }
.crossword-game .keyboard { position: fixed; bottom: 0; left: 0; right: 0; width: calc(100% - 24px); max-width: 548px; margin: auto; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); background: var(--paper); z-index: 3; border-top: 1px solid var(--line); }
.crossword-game .active-clue { margin: 0 0 10px; }
@media (max-height: 750px) and (max-width: 600px) {
  .crossword-game .game-top h1 { font-size: 1.4rem; }
  .crossword-game .team-name { display: none; }
  .crossword-game .game-top { margin-bottom: 8px; }
  .crossword-game .game-status { min-height: 22px; padding: 2px 0; }
  .crossword-game .crossword-grid { max-width: 260px; }
  .crossword-game .active-clue { min-height: 36px; font-size: .8rem; padding: 6px 8px; }
  .crossword-game .extraction { margin: 8px 0; }
}

.strand-theme { background: #deedf3; padding: 10px; text-align: center; font-family: Georgia, serif; font-size: 1.15rem; margin-top: 14px; }
.strands-grid { position: relative; display: grid; width: 100%; max-width: 300px; margin: 8px auto 18px; user-select: none; touch-action: none; }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.strand-letter { position: relative; isolation: isolate; aspect-ratio: 1; z-index: 1; display: grid; place-items: center; border: 0; background: transparent; color: #1f2529; padding: 0; font-size: 1.5rem; font-weight: 600; border-radius: 50%; }
.strand-letter::before { content: ''; position: absolute; inset: 13%; z-index: -1; border-radius: 50%; background: var(--strand-fill, transparent); }
.strand-letter:disabled { opacity: 1; }
.strand-letter.found-letter { --strand-fill: var(--word-colour, #aedbec); }
.strand-letter.spangram-letter { --strand-fill: #f9df6d; }
.strand-letter.selected-letter { --strand-fill: #dddcca; }
.strand-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strand-lines polyline { fill: none; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.theme-line { stroke: var(--word-colour, #aedbec); }
.spangram-line { stroke: #f9df6d; }
.selected-line { stroke: #dddcca; }
.strand-colour-0 { --word-colour: #aedbec; }
.strand-colour-1 { --word-colour: #b7dcca; }
.strand-colour-2 { --word-colour: #d7c8ed; }
.strand-found-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.strand-found-words > span { padding: 6px 10px; border-radius: 20px; background: var(--word-colour, #aedbec); font-size: .75rem; font-weight: 600; }
.strand-found-words .spangram-word { background: #f9df6d; }
.found-count { color: var(--muted); text-align: center; margin-top: 15px; font-size: .9rem; }
.strands-reveal { text-align: center; }
.strands-reveal .strands-grid { max-width: 360px; margin-top: 25px; }
.projector-active:has(.strands-grid) .projector-clock { font-size: 3rem; margin: 12px 0; }
.projector-active .strands-grid { max-width: 320px; }
.strands-reveal .found-count { font-size: 1rem; }
@media (max-height: 750px) and (max-width: 600px) { .strands-game .strands-grid { max-width: 250px; } .strands-game .strand-theme { padding: 6px; margin-top: 10px; } }

.game-status.error { color: var(--red); }
.bee-hive { position: relative; width: 240px; height: 260px; margin: 10px auto 18px; }
.hive-hex { position: absolute; display: grid; place-items: center; width: 80px; height: 92px; padding: 0; border: 0; color: #24251f; background: #e6e6e1; font-size: 1.8rem; font-weight: 700; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.hive-center { left: 80px; top: 84px; background: #f7da21; }
.hive-pos-0 { left: 80px; top: 0; }
.hive-pos-1 { left: 153px; top: 42px; }
.hive-pos-2 { left: 153px; top: 126px; }
.hive-pos-3 { left: 80px; top: 168px; }
.hive-pos-4 { left: 7px; top: 126px; }
.hive-pos-5 { left: 7px; top: 42px; }
.bee-draft { min-height: 46px; text-align: center; font-weight: 700; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.bee-draft .muted { font-weight: 400; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.bee-center-letter { color: #a48700; }
.bee-progress { max-width: 320px; margin: 10px auto; accent-color: #e2bd20; }
.bee-progress::-webkit-progress-value { background: #e2bd20; }
.bee-found { text-align: center; color: var(--muted); font-size: .9rem; margin: 15px auto; line-height: 1.8; }
.bee-theme { font-family: Georgia, serif; font-size: 1.3rem; color: var(--muted); margin: 16px 0; }
.bee-reveal { max-width: 900px; margin: auto; text-align: center; }
.pangrams { font-size: 1.5rem; margin-top: 24px; color: #937700; }
.bee-answer-list { color: var(--muted); font-size: 1.1rem; max-width: 750px; margin: auto; }
.projector-active:has(.bee-hive) .projector-clock { font-size: 4rem; margin: 15px 0; }
.hive-hex:focus-visible { outline: none; background: #c6ddec; }
.hive-center:focus-visible { background: #f6c84c; }
.bee-hive { width: 252px; height: 250px; }
.hive-hex { width: 92px; height: 80px; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }

/* Clear next actions on phones. */
.ready-action:not(:disabled) { background: var(--green); color: #fff; box-shadow: 0 0 0 3px #426e4d22, 0 0 18px #426e4d30; animation: ready-glow 1.8s ease-in-out infinite; border-color: var(--green); }
@keyframes ready-glow { 50% { box-shadow: 0 0 0 5px #426e4d12, 0 0 24px #426e4d45; } }
.selection-hint { font-size: .8rem; text-align: center; margin: 15px 0 5px; color: var(--muted); min-height: 24px; }
.connections-game .mistakes { margin: 8px 0 18px; }
.connection-tile:disabled:not(.selected) { opacity: .65; }
.clue-tabs { display: flex; justify-content: center; gap: 8px; margin: 8px 0 16px; }
.clue-tabs button { width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 50%; color: var(--ink); font-weight: 700; }
.clue-tabs .current { border: 2px solid #26739b; background: #e5f1f6; }
.clue-tabs .checked { background: var(--green-light); color: var(--green); }
.word-clue-card { background: #fff; border: 1px solid #d4e2e8; border-radius: 12px; padding: 18px 12px; text-align: center; }
.clue-position { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.word-clue-card h2 { font: 600 1.15rem/1.4 Arial, sans-serif; letter-spacing: 0; min-height: 52px; }
.word-entry { display: flex; justify-content: center; gap: 5px; margin: 16px 0 22px; }
.word-letter { width: min(48px, 11vw); height: 54px; padding: 0; font-size: 1.7rem; font-weight: 700; border: 1px solid #bac8ce; border-bottom-width: 3px; background: #fff; color: var(--ink); border-radius: 4px; }
.word-letter.gift-letter { background: #fff1bc; }
.word-letter.cursor { background: #d9eef9; border: 2px solid #26739b; border-bottom-width: 4px; }
.word-letter:disabled { opacity: 1; }
.word-clue-card .puzzle-actions { gap: 8px; }
.word-clue-card .button { padding: 9px 13px; min-height: 44px; }
.crossword-helper { margin-top: 12px; font-size: .75rem; color: var(--muted); text-align: center; }
@media (max-height: 750px) and (max-width: 600px) {
  .crossword-game .clue-tabs { margin: 4px 0 10px; }
  .word-clue-card { padding: 12px 9px; }
  .word-clue-card h2 { font-size: 1rem; min-height: 44px; }
  .word-entry { margin: 10px 0 14px; }
  .word-letter { height: 46px; }
  .crossword-helper { margin-top: 7px; }
}

/* The projector is the party stage; the phone remains a focused controller. */
.presentation-view { --stage-accent: #426e4d; --stage-wash: #e7eee2; background: radial-gradient(ellipse at 100% 0, var(--stage-wash), transparent 55%), var(--paper); min-height: 100vh; }
.presentation-view[data-game="connections"] { --stage-accent: #6f5b95; --stage-wash: #e9e0f4; }
.presentation-view[data-game="crossword"] { --stage-accent: #26739b; --stage-wash: #dfedf4; }
.presentation-view[data-game="strands"] { --stage-accent: #317a88; --stage-wash: #deedf0; }
.presentation-view[data-game="bee"] { --stage-accent: #92720d; --stage-wash: #fcf0bd; }
.presentation-view .page-shell { max-width: 1600px; padding: 0 56px; }
.presentation-view .masthead { min-height: 100px; padding: 20px 0; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.presentation-view .brand { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 24px; }
.presentation-view .wordmark { font-size: 2.6rem; line-height: 1; }
.presentation-view .brand-spark { color: var(--stage-accent); }
.presentation-view main { padding: 0 0 100px; }
.stage { position: relative; }
.preview-presentation, .preview-presentation body { overflow: hidden; }
.preview-presentation .presentation-view main { position: relative; padding-bottom: 0; }
.preview-presentation .stage { position: absolute; inset: 0 0 auto; scale: var(--preview-stage-scale, 1); transform-origin: top center; }
.stage.scene-enter { animation: stage-arrive .45s ease-out both; }
@keyframes stage-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.stage-kicker { display: block; font-size: .75rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--stage-accent); }
.stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.stage-heading h1 { font-size: clamp(3rem, 4.8vw, 5.3rem); margin-top: 8px; }
.stage-subtitle { font-size: 1.15rem; color: var(--muted); margin-top: 16px; }
.game-emblem { display: grid; place-items: center; border: 1px solid var(--stage-accent); border-radius: 24px; width: 105px; height: 105px; font: 3.5rem Georgia, serif; color: var(--stage-accent); background: #ffffff70; transform: rotate(7deg); }
.live-stage { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; align-items: stretch; }
.stage-puzzle { border: 1px solid #ffffff; box-shadow: 0 12px 38px #24332c08; border-radius: 24px; background: #ffffffb8; min-height: 420px; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.stage-stats { border: 1px solid var(--line); background: #ffffff60; border-radius: 24px; padding: 20px 28px; text-align: center; }
.stage-clock { width: 210px; height: 210px; position: relative; margin: 0 auto 14px; }
.stage-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stage-clock circle { fill: none; stroke-width: 5; }
.timer-track { stroke: #dce1d4; }
.timer-ring { stroke: var(--stage-accent); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.stage-clock > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.stage-clock .clock { font-size: 3.6rem; }
.stage-clock div > span:last-child { font-size: .75rem; color: var(--muted); }
.live-stat { padding: 12px 0; }
.live-stat strong { display: block; font-size: 2.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.live-stat small { font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.live-stat > span { display: block; color: var(--muted); font-size: .85rem; margin: 3px 0 12px; }
.live-stat progress { height: 5px; border-radius: 5px; }
.finished-stat { border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 14px; }
.finished-stat > span { margin: 0; }
.stage-aside-note { font: italic 1rem/1.5 Georgia, serif; color: var(--muted); margin-top: 10px; }
.wordle-stage-art { margin: 10px auto 22px; transform: rotate(-3deg); }
.stage-letter-row { display: flex; justify-content: center; gap: 10px; margin: 10px 0; }
.stage-letter-row span { width: clamp(55px, 5.5vw, 85px); height: clamp(60px, 6vw, 90px); display: grid; place-items: center; font-size: 2.7rem; font-weight: 700; background: #f4f4ed; border: 2px solid #d6ddcd; color: #82917d; border-radius: 6px; }
.stage-letter-row .letter-known { background: var(--green); color: white; border-color: var(--green); }
.ghost-letters { opacity: .45; }
.stage-puzzle-hint { text-align: center; font: 1.4rem/1.4 Georgia, serif; margin: 12px 0; }
.stage-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 24px 0 8px; font-size: .9rem; }
.stage-legend span:first-child { color: var(--green); }
.stage-legend span:nth-child(2) { color: #9c7823; }
.stage-legend span:last-child { color: var(--absent); }
.stage-puzzle .connections-grid { width: 100%; max-width: 760px; margin: auto; gap: 13px; }
.stage-puzzle .connection-tile { min-height: 105px; font-size: 1.3rem; background: #eeebe5; border: 1px solid #e3e0d9; border-radius: 12px; }
.stage-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stage-clue { display: flex; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #dfe8e9; }
.stage-clue > span { flex-shrink: 0; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: #e4f0f8; color: #26739b; font-weight: 700; }
.stage-clue p { font-size: 1.1rem; line-height: 1.4; }
.stage-clue small { color: var(--muted); font-size: .75rem; }
.clue-blanks { font-size: 1.4rem; line-height: 1.2; letter-spacing: .16em; color: #85a7ba; }
.stage-puzzle .strand-theme { margin: 0 auto 10px; border-radius: 8px; width: 100%; max-width: 420px; font-size: 1.5rem; }
.stage-puzzle .strands-grid { max-width: 300px; margin-bottom: 0; }
.stage-puzzle .bee-theme { text-align: center; margin: 0; font-size: 1.7rem; }
.stage-puzzle .bee-hive { margin-top: 20px; margin-bottom: 8px; }
.instruction-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.instruction-card { padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.instruction-steps { list-style: none; counter-reset: instruction; padding: 0; margin: 26px 0; }
.instruction-steps li { counter-increment: instruction; padding: 0 0 26px 50px; position: relative; font-size: 1.2rem; }
.instruction-steps li::before { content: counter(instruction); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--stage-wash); color: var(--stage-accent); font-size: .9rem; font-weight: 700; }
.time-badge { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.time-badge strong { font-size: 1.7rem; color: var(--stage-accent); }
.instruction-preview { border-radius: 24px; background: var(--stage-wash); border: 1px solid #ffffff; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.instruction-preview .sample-tiles { justify-content: center; }
.instruction-preview .stage-clues { gap: 10px; }
.instruction-preview .stage-clue p { font-size: .95rem; }
.instruction-preview .connection-tile { min-height: 80px; }
.example-label { text-align: center; margin-bottom: 20px; }
.example-caption { text-align: center; font-size: 1rem; line-height: 1.7; margin-top: 20px; }
.example-footer { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 22px; }
.example-connections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.example-connections span { display: grid; place-items: center; padding: 20px 8px; border-radius: 7px; background: #ffffffa0; font-weight: 700; font-size: .9rem; }
.example-crossword { display: grid; grid-template-columns: repeat(3, 65px); gap: 2px; border: 2px solid var(--ink); background: var(--ink); margin: 0 auto; }
.example-crossword > * { position: relative; display: grid; place-items: center; height: 65px; background: white; font-size: 2rem; font-weight: 700; }
.example-crossword small { position: absolute; top: 4px; left: 5px; font: 11px Arial, sans-serif; }
.example-crossword i { background: var(--ink); }
.example-crossword .example-highlight { background: #f9e9a6; }
.example-clues { margin: 18px auto 0; font-size: .9rem; line-height: 1.8; }
.example-clues b { margin-right: 7px; }
.example-clues strong { margin-left: 8px; letter-spacing: .12em; }
.example-theme { font: 1.4rem Georgia, serif; text-align: center; margin-bottom: 20px; }
.example-strands { display: grid; grid-template-columns: repeat(4, 65px); gap: 12px; margin: 0 auto; }
.example-strands span { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 50%; background: #ffffffb0; font-size: 1.8rem; font-weight: 700; }
.example-strands .example-found { color: white; background: #317a88; }
.screen-lobby { grid-template-columns: minmax(0, 1fr) 390px; gap: 80px; padding: 22px 0 0; }
.screen-lobby h1 { max-width: 700px; font-size: clamp(4rem, 6.5vw, 7rem); margin-top: 22px; }
.heading-spark { display: inline-block; margin-left: 16px; font-size: .65em; color: var(--stage-accent); vertical-align: middle; }
.screen-lobby .lede { font-size: 1.4rem; line-height: 1.6; }
.lobby-mini-tiles { display: flex; gap: 7px; margin: 30px 0; }
.lobby-mini-tiles span { height: 46px; width: 46px; border-radius: 7px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 700; font-size: 1.3rem; transform: rotate(-5deg); }
.lobby-mini-tiles span:nth-child(2) { transform: rotate(5deg); background: #c3a145; }
.lobby-mini-tiles span:nth-child(3) { transform: rotate(-3deg); }
.lobby-mini-tiles span:last-child { transform: rotate(9deg); background: #d8cce8; color: #685582; }
.teams-heading { display: flex; align-items: center; gap: 12px; font: 600 1rem Arial, sans-serif; letter-spacing: 0; margin-top: 24px; }
.teams-heading b { color: var(--green); background: var(--green-light); border-radius: 20px; padding: 5px 12px; }
.live-dot { display: inline-block; background: var(--green); width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 4px #426e4d15; }
.team-chip { font-size: .95rem; border-radius: 30px; padding: 9px 16px; animation: chip-arrive .35s ease-out both; }
@keyframes chip-arrive { from { opacity: 0; transform: scale(.92); } }
.empty-teams { margin-top: 20px; color: var(--muted); font-style: italic; }
.qr-panel { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 9px 9px 0 var(--stage-wash); transform: rotate(1deg); }
.qr-panel img { margin: 14px auto; width: 100%; max-width: 310px; }
.qr-panel h2 { font-size: 1.7rem; }
.qr-panel .join-address { font-size: .8rem; line-height: 1.5; margin-top: 14px; }
.stage-countdown { text-align: center; margin-top: 55px; }
.stage-countdown .countdown-view { padding: 30px 0 10px; }
.stage-countdown .countdown-number { color: var(--stage-accent); font-size: clamp(12rem, 24vw, 22rem); text-shadow: 8px 8px 0 var(--stage-wash); }
.reveal-kicker { text-align: center; margin-top: 28px; }
.presentation-view .reveal, .presentation-view .crossword-reveal, .presentation-view .strands-reveal, .presentation-view .bee-reveal { position: relative; margin: 30px auto 0; }
.presentation-view .reveal h1, .presentation-view .crossword-reveal h1, .presentation-view .strands-reveal h1 { font-size: 4.5rem; }
.presentation-view .answer-preview { margin-top: 40px; }
.answer-preview span { border-radius: 12px; box-shadow: 4px 5px 0 #233d2615; animation: answer-pop .5s ease-out both; }
.answer-preview span:nth-child(even) { transform: rotate(3deg); animation-delay: .12s; }
@keyframes answer-pop { from { opacity: 0; translate: 0 16px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }
.celebration { position: absolute; inset: 95px 0 0; overflow: hidden; pointer-events: none; }
.celebration i { position: absolute; width: 9px; height: 19px; border-radius: 2px; background: #e1b64b; opacity: .6; animation: confetti-float 5s ease-in-out infinite alternate; }
.celebration i:nth-child(2n) { background: #a29bc8; width: 13px; height: 13px; }
.celebration i:nth-child(3n) { background: #83ac8a; border-radius: 50%; }
.celebration .confetti-0 { left: 4%; top: 20%; }
.celebration .confetti-1 { left: 12%; top: 65%; animation-delay: -.6s; }
.celebration .confetti-2 { left: 22%; top: 5%; animation-delay: -1s; }
.celebration .confetti-3 { left: 34%; top: 83%; animation-delay: -1.8s; }
.celebration .confetti-4 { left: 65%; top: 14%; animation-delay: -2.5s; }
.celebration .confetti-5 { left: 77%; top: 79%; animation-delay: -3s; }
.celebration .confetti-6 { left: 87%; top: 36%; animation-delay: -3.8s; }
.celebration .confetti-7 { left: 96%; top: 70%; animation-delay: -4.5s; }
@keyframes confetti-float { from { transform: translateY(-10px) rotate(-18deg); } to { transform: translateY(25px) rotate(35deg); } }
.presentation-view .leaderboard-wrap { max-width: none; margin: 0; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 25px; }
.podium-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 25px; background: #ffffffb0; overflow: hidden; }
.podium-card.place-1 { background: #e5eddf; border-color: #b3c9a8; }
.podium-rank { position: absolute; right: 18px; top: 9px; font: 3.8rem Georgia, serif; color: #a8b5a230; }
.podium-card h2 { font-size: 1.8rem; margin: 12px 0 16px; position: relative; overflow-wrap: anywhere; }
.podium-card > strong { display: block; font-size: 2rem; }
.podium-card strong small { font: 400 .8rem Arial, sans-serif; color: var(--muted); }
.round-gain { font-size: .75rem; color: var(--green); }
.presentation-view .leaderboard { margin-top: 16px; }
.presentation-view .leaderboard td { font-size: 1.1rem; padding: 15px; }
.presentation-view .leaderboard th { padding: 10px 15px; }
.presentation-view .crossword-reveal .crossword-grid { max-width: 280px; }
.presenter-toolbar { background: #f8f7f3ef; backdrop-filter: blur(12px); }
@media (min-width: 701px) and (max-height: 850px) {
  .presentation-view .masthead { min-height: 80px; padding: 14px 0; }
  .stage-heading { margin-bottom: 22px; }
  .instruction-card { padding: 24px; }
  .instruction-steps { margin: 18px 0; }
  .instruction-steps li { font-size: 1.05rem; line-height: 1.45; padding-bottom: 16px; }
  .instruction-preview { padding: 20px; }
  .instruction-card .time-badge { padding-top: 16px; }
  .stage-heading h1 { font-size: 3.5rem; }
  .stage-subtitle { margin-top: 10px; }
  .game-emblem { width: 85px; height: 85px; }
  .stage-puzzle { min-height: 360px; padding: 22px; }
  .stage-stats { padding: 12px 24px; }
  .stage-clock { width: 170px; height: 170px; margin-bottom: 4px; }
  .stage-clock .clock { font-size: 3rem; }
  .live-stat { padding: 8px 0; }
  .live-stat strong { font-size: 2rem; }
  .stage-puzzle .strands-grid { max-width: 260px; }
  .stage-clues { gap: 10px; }
  .screen-lobby { padding-top: 0; }
  .qr-panel img { max-width: 260px; }
  .screen-lobby h1 { font-size: 5.2rem; }
}
@media (max-width: 1000px) {
  .presentation-view .page-shell { padding: 0 28px; }
  .live-stage { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .stage-stats { padding: 20px 14px; }
  .stage-clock { width: 190px; height: 190px; }
  .stage-clues { gap: 12px; }
  .screen-lobby { gap: 36px; grid-template-columns: 1fr 330px; }
}
@media (max-width: 700px) {
  .presentation-view .page-shell { padding: 0 18px; }
  .presentation-view .wordmark { font-size: 1.9rem; }
  .stage-heading h1 { font-size: 2.8rem; }
  .stage-subtitle { font-size: 1rem; }
  .game-emblem { width: 65px; height: 65px; flex-shrink: 0; font-size: 2.2rem; border-radius: 16px; }
  .live-stage, .instruction-stage, .screen-lobby { grid-template-columns: 1fr; }
  .stage-stats { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .stage-clock { width: 150px; height: 150px; }
  .stage-clock .clock { font-size: 2.3rem; }
  .stage-puzzle { padding: 18px; min-height: 300px; }
  .stage-clues { grid-template-columns: 1fr; }
  .screen-lobby h1 { font-size: 3.6rem; }
  .screen-lobby .qr-panel { grid-row: auto; }
  .instruction-card { padding: 24px; }
  .podium { grid-template-columns: 1fr; }
  .podium-card { padding: 18px; }
  .presentation-view .reveal h1, .presentation-view .crossword-reveal h1, .presentation-view .strands-reveal h1 { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.presentation-view .leaderboard td { font-size: 1rem; padding: 10px 15px; }
.score-paging { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.score-paging button { width: 35px; height: 30px; background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.score-paging small { font-size: .7rem; }
@media (min-width: 701px) and (max-height: 850px) {
  [data-phase="leaderboard"] .stage-heading h1 { font-size: 2.8rem; }
  [data-phase="leaderboard"] .stage-heading { margin-bottom: 18px; }
  .podium { margin-bottom: 16px; }
  .podium-card { padding: 16px 20px; }
  .podium-card h2 { font-size: 1.4rem; margin: 8px 0; }
  .podium-card > strong { font-size: 1.7rem; }
  .presentation-view .leaderboard td { font-size: .95rem; padding: 6px 15px; }
  .presentation-view .leaderboard th { padding: 6px 15px; }
}
@media (max-height: 750px) and (max-width: 600px) { .crossword-helper { display: none; } }
@media (min-width: 701px) and (max-height: 850px) {
  .stage-puzzle .strands-grid { max-width: 240px; }
  .stage-puzzle .stage-puzzle-hint { font-size: 1.2rem; margin: 8px 0; }
  .stage-puzzle .bee-theme { font-size: 1.5rem; }
  .stage-puzzle .bee-hive { margin-top: 10px; }
}

/* A crossword stays a crossword: grid, active clue and keyboard together. */
.play-view:has(.grid-crossword) .masthead { min-height: 46px; }
.play-view:has(.grid-crossword) .wordmark { font-size: 1.3rem; }
.play-view:has(.grid-crossword) main { padding-top: 8px; padding-bottom: 182px; }
.grid-crossword .game-top { margin-bottom: 7px; }
.grid-crossword .game-top h1 { font-size: 1.45rem; }
.grid-crossword .team-name { display: none; }
.grid-crossword .game-top .clock { font-size: 1.6rem; }
.grid-crossword .game-status { min-height: 24px; padding: 3px 0; font-size: .78rem; }
.grid-clue-bar { display: grid; grid-template-columns: 36px 1fr 48px; align-items: center; gap: 5px; border-radius: 7px; background: #e3eff6; margin-bottom: 10px; min-height: 62px; }
.grid-clue-bar > button { border: 0; background: transparent; color: #26739b; height: 52px; font-size: 1.8rem; padding: 0; }
.grid-clue-bar > .clue-next { font-size: .7rem; font-weight: 700; line-height: 1.3; }
.keyboard-spacer { flex: 1.6; max-width: 74px; }
.backspace-icon { display: block; width: 25px; height: 25px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid-clue-bar strong { font-size: .78rem; }
.grid-clue-bar small { font-weight: 400; color: var(--muted); }
.grid-clue-bar p { font-size: .82rem; line-height: 1.35; margin-top: 1px; }
.grid-crossword .crossword-grid { width: min(350px, 100%, max(216px, calc((100svh - 376px) * 8 / 7))); max-width: 350px; margin: 0 auto; border-width: 1px; border-radius: 2px; }
.grid-crossword .crossword-cell { font-size: clamp(1rem, 5vw, 1.4rem); box-shadow: none; }
.grid-crossword .crossword-cell.in-entry { background: #d8ecfa; }
.grid-crossword .crossword-cell.highlighted { background: #fff0b6; }
.grid-crossword .crossword-cell.in-entry.highlighted { background: #d4e7cb; }
.grid-crossword .crossword-cell.active-cell { background: #62b4ed; }
.grid-crossword .crossword-cell.confirmed-cell .cell-letter { color: #366d44; }
.grid-crossword .clue-number { font-size: .55rem; }
.grid-crossword .extraction-number { font-size: .5rem; color: #806c30; }
.crossword-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px auto; max-width: 350px; }
.crossword-tools .text-button { font-size: .75rem; }
.crossword-tools .button { min-height: 36px; padding: 7px 13px; font-size: .8rem; }
#crossword-clue-picker { position: relative; }
#crossword-clue-picker > summary { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink); padding: 8px 0; }
#crossword-clue-picker > summary span { color: var(--muted); font-size: .7rem; }
.clue-picker-list { position: absolute; bottom: 40px; left: 0; z-index: 4; background: #fff; border: 1px solid #cbd8e0; box-shadow: 0 8px 30px #0002; border-radius: 10px; padding: 5px; width: min(330px, calc(100vw - 36px)); max-height: 320px; overflow-y: auto; }
.clue-picker-list button { display: block; text-align: left; width: 100%; border: 0; border-radius: 5px; padding: 9px; background: transparent; color: var(--ink); }
.clue-picker-list b, .clue-picker-list span { display: block; font-size: .75rem; }
.clue-picker-list .chosen { background: #e3eff6; }
.grid-crossword .keyboard { padding-top: 8px; }
.grid-crossword .key { min-height: 48px; }
.stage-clue > span { width: 40px; font-size: .8rem; }
@media(max-height:700px) and (max-width:600px) {
  .grid-clue-bar { min-height: 54px; margin-bottom: 8px; }
  .grid-clue-bar p { font-size: .75rem; }
  .grid-crossword .crossword-grid { width: min(290px, max(216px, calc((100svh - 367px) * 8 / 7))); }
  .grid-crossword .game-status { min-height: 22px; }
  .crossword-tools { margin: 7px auto; }
}

/* Present one clear moment at a time, with a large clock for Wordle. */
.wordle-live { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 390px; text-align: center; padding: 0 0 20px; }
.wordle-main-clock { display: block; font-size: clamp(8rem, 18vw, 19rem); font-weight: 600; line-height: 1; letter-spacing: -.07em; }
.audience-count { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; font-size: 1rem; color: var(--muted); }
.audience-count strong { color: var(--ink); }
.count-divider { margin: 0 9px; color: #bcc3b6; }
.wordle-stage-note { color: var(--muted); font: 1.1rem Georgia, serif; }
.stage-heading:has(.stage-subtitle:empty) { margin-bottom: 12px; }
.stage-subtitle:empty { display: none; }
.score-race-wrap { max-width: 1250px !important; margin: auto !important; }
.presentation-view .score-race { border-collapse: separate; border-spacing: 0 8px; margin-top: 0; }
.presentation-view .score-race th { padding: 0 16px 6px; font-size: .75rem; border-bottom: 0; }
.presentation-view .score-race td { padding: 12px 16px; border: 0; font-size: 1.2rem; background: #ffffff80; }
.score-race td:first-child { border-radius: 10px 0 0 10px; width: 75px; }
.score-race td:last-child { border-radius: 0 10px 10px 0; width: 155px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-race td:nth-child(3) { width: 115px; text-align: right; }
.score-race td:last-child small { display: block; font-size: .65rem; color: var(--muted); }
.score-race .race-team { position: relative; overflow: hidden; }
.score-race .race-team > strong { position: relative; font-size: 1.1rem; }
.score-bar { position: absolute; left: 0; top: 0; height: 100%; width: 100%; pointer-events: none; }
.score-bar rect { fill: var(--stage-wash); }
.winner .score-bar rect { fill: #c7d9bc; }
.race-rank { display: grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; font-size: 1rem; background: #e6e9e0; }
.winner .race-rank { background: #426e4d; color: white; }
.team-initial { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; background: white; border-radius: 9px; font-size: .8rem; margin-right: 12px; border: 1px solid #dbe0d4; }
.race-gain { color: var(--green); font-size: .95rem; white-space: nowrap; }
.team-result { text-align: center; padding: 10vh 0 35px; }
.result-context { font-size: .8rem; color: var(--muted); }
.result-emblem { display: grid; place-items: center; width: 100px; height: 100px; margin: 35px auto 25px; border-radius: 50%; color: var(--green); background: var(--green-light); font: 4.2rem Georgia, serif; }
.team-result h1 { font-size: 2.5rem; }
.result-team { color: var(--muted); margin-top: 12px; }
.personal-total { display: block; font-size: 3rem; margin-top: 28px; font-variant-numeric: tabular-nums; }
.result-points { font-size: .85rem; color: var(--muted); }
.result-points > span { display: block; color: var(--green); margin-top: 7px; }
.result-watch { margin-top: 35px; font-size: .85rem; color: var(--muted); }
.preview-marker { color: #92720d; padding: 5px 10px; background: #fcf0bd; border-radius: 5px; font-size: .75rem; }
@media(min-width:701px) and (max-height:850px) {
  .wordle-live { min-height: 350px; gap: 18px; }
  .wordle-main-clock { font-size: clamp(8rem, 17vw, 14rem); }
  .presentation-view .score-race td { padding: 8px 14px; font-size: 1rem; }
  .score-race .race-team > strong { font-size: 1rem; }
  .score-race td:last-child small { display: none; }
}
@media(max-width:700px) {
  .wordle-main-clock { font-size: 6rem; }
  .wordle-live { gap: 18px; min-height: 300px; }
  .presentation-view .score-race td { font-size: .85rem; padding: 9px 5px; }
  .score-race .race-team > strong { font-size: .8rem; }
  .team-initial { display: none; }
}
@media(prefers-reduced-motion:reduce) { .score-bar rect { animation: none !important; } }
.grid-crossword .crossword-cell.in-entry.active-cell, .grid-crossword .crossword-cell.active-cell.highlighted { background: #62b4ed; box-shadow: inset 0 0 0 2px #26739b; }
.grid-crossword .crossword-cell.active-cell .cell-letter { color: #102d43; }

/* Shared crossword context: large blank grid and all clues, with no team answers. */
.crossword-stage-heading h1 { font-size: clamp(3rem, 4.5vw, 4.5rem); }
.crossword-stage-clock { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 12px; }
.crossword-stage-clock .clock { font-size: 4.3rem; }
.crossword-stage-clock > span:last-child { color: var(--muted); font-size: .75rem; }
.crossword-stage { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.25fr); gap: 30px; align-items: start; }
.projected-grid-panel { padding: 24px; border-radius: 20px; border: 1px solid #dce7eb; background: #fff; }
.projected-grid-panel .crossword-grid { max-width: 440px; }
.projected-grid-panel .clue-number { font-size: .8rem; top: 3px; left: 4px; }
.projected-grid-panel .extraction-number { font-size: .65rem; }
.grid-caption { font-size: .8rem; text-align: center; margin-top: 12px; color: var(--muted); }
.projected-clue-panel { padding: 8px 0; }
.projected-clue-panel .stage-clues { gap: 15px 24px; }
.projected-clue-panel .stage-clue { min-height: 103px; padding: 10px 0; }
.projected-clue-panel .stage-clue p { font-size: clamp(1rem, 1.4vw, 1.35rem); }
.projected-clue-panel .stage-clue small { font-size: .8rem; }
.projected-clue-panel .clue-blanks { display: none; }

/* Small, letter-free snapshots let the whole room follow the teams. */
.live-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 18px; }
.live-team-card { min-width: 0; text-align: center; padding: 9px 7px; background: #ffffffb0; border: 1px solid var(--line); border-radius: 9px; }
.live-team-card.team-complete { border-color: #a8c69a; background: #eaf1e5; }
.progress-team-name { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: .72rem; margin-bottom: 7px; min-width: 0; }
.progress-team-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-team-name > span { color: var(--green); }
.progress-team-name small { font-size: .55rem; color: var(--muted); }
.mini-wordle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 58px; margin: auto; }
.mini-tile { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #d9ddd4; background: transparent; font: 6px/1 Arial, sans-serif; color: white; }
.mini-tile.correct { background: var(--green); border-color: var(--green); }
.mini-tile.present { background: var(--yellow); border-color: var(--yellow); }
.mini-tile.absent { background: var(--absent); border-color: var(--absent); }
.mini-connections { display: flex; justify-content: center; gap: 5px; }
.mini-group { display: grid; place-items: center; width: 23px; height: 18px; border: 1px solid #d3d8ce; border-radius: 3px; color: var(--muted); font: 11px/1 Arial, sans-serif; }
.mini-group[class*="group-"] { color: #263223; border-color: transparent; }
.mini-word-marks { display: grid; grid-template-columns: repeat(3, 16px); justify-content: center; gap: 5px; margin: 10px auto; }
.mini-word-mark { display: grid; place-items: center; height: 16px; border: 1px solid #bdc8ca; border-radius: 3px; font: 11px/1 Arial, sans-serif; color: #829090; }
.mini-crossword .filled { background: #26739b; border-color: #26739b; color: white; }
.mini-strands .mini-word-mark { border-radius: 50%; }
.mini-strands .filled { background: #317a88; border-color: #317a88; color: white; }
.mini-strands .spangram-mark.filled { background: #f5d76a; border-color: #b59b3d; color: #5b4c17; }
.mini-honeycomb { display: grid; grid-template-columns: repeat(5, 14px); gap: 2px; justify-content: center; margin: 0 auto 5px; }
.mini-hex { position: relative; width: 14px; height: 12px; background: #c9cdbf; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.mini-hex::before { content: ''; position: absolute; inset: 1px; background: var(--paper); clip-path: inherit; }
.mini-hex.filled { background: #b39123; }
.mini-hex.filled::before { background: #f1d05d; }
.mini-caption { font-size: .65rem; color: var(--muted); margin-top: 6px; }
.presentation-view:has(.live-progress) .stage-aside-note { display: none; }
.presentation-view:has(.live-progress) .stage-puzzle .strands-grid { max-width: 280px; }
@media (min-width: 701px) and (max-height: 850px) {
  .presentation-view:has(.live-progress) .masthead { min-height: 66px; padding: 10px 0; }
  .presentation-view:has(.live-progress) .stage-heading { margin-bottom: 18px; }
  .presentation-view:has(.live-progress) .stage-heading h1 { font-size: 2.8rem; }
  .presentation-view:has(.live-progress) .stage-subtitle { font-size: .95rem; margin-top: 6px; }
  .presentation-view:has(.live-progress) .game-emblem { width: 70px; height: 70px; font-size: 2.8rem; }
  .presentation-view:has(.live-progress) .stage-puzzle { min-height: 320px; }
  .presentation-view:has(.live-progress) .stage-clock { width: 150px; height: 150px; }
  .presentation-view:has(.live-progress) .finished-stat { padding: 6px 0 0; }
  .presentation-view:has(.live-progress) .stage-puzzle .strands-grid { max-width: 200px; }
  .presentation-view:has(.live-progress) .wordle-live { min-height: 295px; gap: 14px; }
  .presentation-view:has(.live-progress) .wordle-main-clock { font-size: clamp(8rem, 14vw, 12rem); }
  .projected-grid-panel { padding: 16px; }
  .projected-grid-panel .crossword-grid { max-width: 350px; }
  .projected-clue-panel .stage-clue { min-height: 88px; }
  .projected-clue-panel .stage-clue p { font-size: 1.05rem; }
  .grid-caption { margin-top: 8px; font-size: .7rem; }
  .crossword-stage-clock .clock { font-size: 3.5rem; }
  .live-progress { margin-top: 12px; }
}
@media (max-width: 1000px) { .crossword-stage { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.25fr); gap: 20px; } .projected-clue-panel .stage-clues { gap: 12px; } }
@media (max-width: 700px) { .crossword-stage { grid-template-columns: 1fr; } .projected-clue-panel .stage-clues { grid-template-columns: 1fr 1fr; } .crossword-stage-clock .clock { font-size: 2.3rem; } .live-progress { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } }
@media (min-width: 701px) and (max-height: 850px) {
  .presentation-view:has(.live-progress) .stage-puzzle.bee { padding-top: 16px; padding-bottom: 16px; }
  .presentation-view:has(.live-progress) .stage-puzzle.bee .bee-hive { margin-top: 6px; margin-bottom: 4px; }
}

/* Welcome the room, then put the teams in the spotlight as they arrive. */
.welcome-lobby { display: grid; grid-template-columns: minmax(0, 1fr) 370px; grid-template-areas: 'intro qr' 'teams qr' 'arrival qr'; column-gap: 58px; row-gap: 22px; align-items: start; padding-top: 35px; }
.welcome-intro { grid-area: intro; }
.lobby-party-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--green); margin-bottom: 15px; }
.welcome-intro h1 { position: relative; font-size: clamp(3.5rem, 5.5vw, 5.5rem); line-height: 1.1; letter-spacing: -.055em; padding-right: 30px; }
.welcome-intro h1 em { color: var(--green); font-weight: 500; white-space: nowrap; }
.welcome-intro > p:last-child { color: var(--muted); font-size: 1.15rem; margin-top: 15px; }
.lobby-cap { display: inline-block; width: 67px; height: 52px; margin-left: 18px; vertical-align: top; transform: rotate(10deg); fill: none; stroke: #967b3b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.welcome-qr { position: relative; grid-area: qr; margin-top: 12px; padding: 30px 24px 24px; background: white; border: 1px solid #d8dfd0; border-radius: 22px; text-align: center; transform: rotate(1deg); box-shadow: 9px 10px 0 #e5ebdc; }
.welcome-qr h2 { font-size: 2.5rem; margin-top: 10px; }
.welcome-qr img { display: block; width: 100%; aspect-ratio: 1; max-width: 320px; margin: 12px auto; }
.qr-corner-star { position: absolute; right: -19px; top: -24px; color: #b2944c; font: 3.4rem Georgia, serif; transform: rotate(-12deg); }
.qr-three-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 2px; font-size: .75rem; }
.qr-three-steps b { display: inline-grid; place-items: center; width: 21px; height: 21px; background: #edf1e7; color: var(--green); border-radius: 50%; font-size: .65rem; margin-right: 4px; }
.welcome-qr .join-address { margin-top: 20px; padding-top: 17px; border-top: 1px dashed #cdd7c3; font-size: .8rem; color: #4c5b42; }
.joining-paused { margin-top: 14px; background: #fff1c7; padding: 7px; font-size: .8rem; border-radius: 5px; }
.welcome-roll-call { grid-area: teams; min-width: 0; }
.welcome-roll-call > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.welcome-roll-call h2 { font-size: 1.7rem; }
.lobby-live-label { display: inline-flex; align-items: center; gap: 9px; margin-top: 9px; color: var(--green); font-size: .75rem; }
.lobby-live-label.offline { color: var(--muted); }
.lobby-live-label.offline .live-dot { background: #92998b; box-shadow: none; }
.lobby-team-count { display: flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--green); }
.lobby-team-count strong { font-size: 3.8rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.07em; }
.lobby-team-count > span { font-size: .8rem; color: var(--muted); max-width: 50px; line-height: 1.3; }
.lobby-team-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lobby-team-card { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 14px; align-items: center; gap: 10px; min-height: 60px; margin: 0; padding: 10px 12px; border: 1px solid #d9dfd2; border-radius: 11px; background: #ffffffc0; text-align: left; animation: none; }
.lobby-team-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: .75rem; font-weight: 700; color: #40583b; background: #dce8d2; transform: rotate(-4deg); }
.roster-colour-1 .lobby-team-avatar { background: #eee2b8; color: #74602e; transform: rotate(4deg); }
.roster-colour-2 .lobby-team-avatar { background: #ddd5eb; color: #675583; }
.roster-colour-3 .lobby-team-avatar { background: #d2e5eb; color: #3c6775; transform: rotate(3deg); }
.roster-colour-4 .lobby-team-avatar { background: #f0d9d0; color: #8a5d4c; }
.lobby-team-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.25; }
.lobby-team-check { color: var(--green); font-size: .8rem; }
.lobby-team-card.recent-arrival { background: #f0f5e9; border-color: #aec79e; }
.roster-test { position: absolute; font-size: .5rem; color: var(--muted); right: 7px; bottom: 2px; }
.lobby-empty-roster { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 25px; border: 1px dashed #bac8ae; border-radius: 12px; background: #ffffff60; color: #5f6d55; }
.lobby-empty-roster > span { display: grid; place-items: center; width: 45px; height: 45px; border: 1px dashed #bac8ae; border-radius: 12px; font-size: 1.6rem; }
.lobby-empty-roster p { font-family: Georgia, serif; font-size: 1.2rem; }
.lobby-empty-roster small { display: block; color: var(--muted); font: .8rem Arial, sans-serif; margin-top: 6px; }
.lobby-arrival { grid-area: arrival; display: flex; align-items: center; gap: 17px; padding: 16px 21px; border: 1px solid #d8e2cf; background: #e9efdf; border-radius: 14px; min-height: 88px; }
.arrival-symbol { font: 3rem Georgia, serif; color: var(--green); }
.arrival-label { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green); }
.lobby-arrival-name { display: block; margin-top: 3px; font: 500 1.65rem/1.2 Georgia, serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.lobby-arrival p { font-size: .75rem; color: #66745c; margin-top: 4px; }
.fresh-announcement { background: #e1edd6; border-color: #a9c398; }
@media (min-width: 701px) and (max-height: 850px) {
  .welcome-lobby { padding-top: 22px; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 38px; row-gap: 18px; }
  .welcome-intro h1 { font-size: 3.6rem; }
  .lobby-party-label { margin-bottom: 10px; font-size: .7rem; }
  .welcome-intro > p:last-child { margin-top: 10px; font-size: 1rem; }
  .lobby-cap { width: 47px; height: 38px; margin-left: 12px; }
  .welcome-qr { padding: 24px 20px 20px; }
  .welcome-qr h2 { font-size: 2.1rem; }
  .welcome-qr img { max-width: 280px; margin: 10px auto; }
  .welcome-qr .join-address { margin-top: 14px; padding-top: 14px; font-size: .72rem; }
  .qr-three-steps { gap: 7px; font-size: .65rem; }
  .welcome-roll-call > header { margin-bottom: 12px; }
  .welcome-roll-call h2 { font-size: 1.5rem; }
  .lobby-team-count strong { font-size: 3rem; }
  .lobby-team-roster { gap: 8px; }
  .lobby-team-card { min-height: 54px; padding: 8px 10px; gap: 8px; }
  .lobby-team-name { font-size: .8rem; }
  .lobby-team-avatar { width: 32px; height: 32px; }
  .lobby-arrival { padding: 12px 16px; min-height: 80px; }
  .lobby-arrival-name { font-size: 1.4rem; }
}
@media (max-width: 1000px) { .welcome-lobby { column-gap: 28px; grid-template-columns: minmax(0, 1fr) 300px; } .lobby-team-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .welcome-intro h1 { font-size: 3.1rem; } }
@media (max-width: 700px) { .welcome-lobby { grid-template-columns: 1fr; grid-template-areas: 'intro' 'qr' 'teams' 'arrival'; padding-top: 25px; } .welcome-intro h1 { font-size: 2.8rem; } .welcome-qr { max-width: 350px; width: 100%; margin: 0 auto 15px; } .welcome-roll-call > header { gap: 12px; } .lobby-team-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.example-hive { display: grid; place-items: center; height: 200px; }
.example-hive .bee-hive { margin: 0; transform: scale(.78); }
@media (min-width: 701px) and (max-height: 850px) {
  .instruction-preview .example-label { margin-bottom: 14px; }
  .instruction-preview .example-caption { font-size: .95rem; line-height: 1.5; margin-top: 14px; }
  .instruction-preview .example-footer { margin-top: 14px; }
}

/* A scannable way back to the same team, throughout the presentation. */
.presentation-view.has-presenter-qr .masthead { min-height: 104px; padding: 8px 0; }
.persistent-qr { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.persistent-qr > span { font-size: .7rem; line-height: 1.5; text-align: right; color: var(--muted); white-space: nowrap; }
.persistent-qr img { width: 88px; height: 88px; display: block; background: white; border-radius: 4px; }
.rejoin-view { margin-top: 7vh; }
.rejoin-view h1 { font-size: 2rem; }
.rejoin-view > p { font-size: .85rem; color: var(--muted); margin: 12px 0 22px; line-height: 1.5; }
.rejoin-teams { display: grid; gap: 9px; }
.rejoin-team { width: 100%; justify-content: space-between; text-align: left; overflow-wrap: anywhere; }

/* Keep the crossword calm: outlines guide typing; green means confirmed. */
.grid-crossword .crossword-cell.highlighted,
.grid-crossword .crossword-cell.in-entry,
.grid-crossword .crossword-cell.in-entry.highlighted { background: white; }
.grid-crossword .crossword-cell.in-entry { box-shadow: inset 0 -3px #91b9d1; }
.grid-crossword .crossword-cell.active-cell,
.grid-crossword .crossword-cell.in-entry.active-cell,
.grid-crossword .crossword-cell.active-cell.highlighted { background: white; box-shadow: inset 0 0 0 2px #26739b; }
.grid-crossword .crossword-cell.confirmed-cell,
.grid-crossword .crossword-cell.confirmed-cell.active-cell,
.grid-crossword .crossword-cell.confirmed-cell.in-entry,
.grid-crossword .crossword-cell.confirmed-cell.highlighted { background: #e3f0dd; box-shadow: none; }
.grid-crossword .crossword-cell.confirmed-cell .cell-letter { color: #366d44; font-weight: 700; }
.grid-crossword .crossword-cell:disabled { opacity: 1; }
.grid-crossword .crossword-cell.rejected-cell { box-shadow: inset 0 -3px #bb5851; }
.grid-crossword .extraction-number { background: #f5dd8a; border-radius: 2px; padding: 0 2px; }
.crossword-feedback { display: inline-block; font-weight: 700; border-radius: 4px; padding: 2px 8px; }
.crossword-feedback.correct { color: #366d44; background: #e3f0dd; }
.crossword-feedback.incorrect { color: #a54039; background: #fae6e1; }
.clue-picker-list button:disabled { opacity: 1; color: #366d44; background: #edf5e8; }

/* Show the old totals, add the new points, then reveal the new order. */
.points-waiting { color: var(--muted); }
.final-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; max-width: 1100px; margin: 0 auto 20px; }
.podium-place { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border: 1px dashed #c9cfbf; border-radius: 16px 16px 6px 6px; background: #ffffff80; color: var(--muted); text-align: center; height: 110px; }
.podium-slot-0 { height: 150px; }
.podium-slot-1 { height: 130px; }
.podium-medal { font: 1.6rem Georgia, serif; }
.podium-place strong { font: 500 clamp(1rem,1.6vw,1.4rem)/1.15 Georgia,serif; overflow-wrap: anywhere; color: var(--ink); }
.podium-place > span:last-child { font-size: .75rem; }
.podium-revealed { border-style: solid; border-color: #c1cdb6; background: #e9efe3; color: var(--green); }
.podium-slot-0.podium-revealed { background: linear-gradient(135deg,#fff4c6,#f1d879); border: 2px solid #c7a44a; color: #745c13; box-shadow: 0 6px 25px #ad8b2e20; }
.podium-slot-2.podium-revealed { background: #f0e3d6; border-color: #d2b69b; color: #8b5e37; }
.finale-stage > .stage-heading { margin-bottom: 18px; }
.finale-stage > .stage-heading h1 { font-size: clamp(2.6rem,4vw,4rem); }
.finale-stage > .stage-heading .game-emblem { display: none; }
.finale-stage .score-race td { padding: 8px 14px; }
.finale-confetti { z-index: 2; }
.phone-champion .result-emblem { background: #f8e7a0; color: #8d6d0a; font-size: 4.5rem; }
.phone-champion h1 { color: #426e4d; }
@media (max-height:850px) and (min-width:701px) {
  .final-podium { margin-bottom: 12px; gap: 12px; }
  .podium-place { height: 88px; padding: 9px; gap: 4px; }
  .podium-slot-0 { height: 120px; }
  .podium-slot-1 { height: 105px; }
  .podium-medal { font-size: 1.3rem; }
  .finale-stage > .stage-heading h1 { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) { .finale-confetti { display: none; } }

.projected-hive { display: grid; place-items: center; height: 278px; }
.projected-hive .bee-hive { margin: 0; }
@media (min-width:701px) and (max-height:850px) {
  .projected-hive { height: 220px; }
  .projected-hive .bee-hive { transform: scale(.84); }
}

.speed-bonus { display: block; margin-top: 3px; font-size: .7rem; font-weight: normal; color: var(--muted); }

.connection-tile.long-word { font-size: .78rem; }
.stage-puzzle .connection-tile.long-word { font-size: 1.15rem; }

/* Strands instruction example: a complete 4×4 board. */
.example-strands { grid-template-columns: repeat(4, 56px); gap: 10px; }
.example-strands span { width: 56px; height: 56px; font-size: 1.5rem; }
.example-strands .example-found-0 { background: #317a88; color: white; }
.example-strands .example-found-1 { background: #c9759a; color: white; }
.example-strands .example-found-2 { background: #d9a73f; color: #29232a; }
/* Bee example: keep the sample words clear of the hive. */
.example-hive { height: 235px; margin-bottom: 14px; }
.instruction-preview .example-hive + .example-caption { margin-top: 30px; }
