* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: 'Avenir Next', 'Segoe UI', Arial, sans-serif; color: #efdfcb; background: #0c252f; font-synthesis: none; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #0c252f; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: url('./minefield/background.png') center center / cover no-repeat; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #06192318, transparent 70%); pointer-events: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #f7ce86; outline-offset: 4px; }
[hidden] { display: none !important; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 3%; gap: 12px; }
.topbar > div { display: flex; gap: 10px; }
.wordmark { font: 700 18px Georgia, serif; letter-spacing: 1px; text-decoration: none; color: #efddc8; }
.wordmark span { color: #dc8996; padding: 0 6px; }
.quiet { padding: 11px 17px; border: 1px solid #b79e775e; border-radius: 10px; background: #0b2029d9; color: #e0ceba; font-size: 13px; min-height: 44px; }
.quiet:hover { background: #223943; }
main { width: min(1100px, 76%); margin: 26px auto 70px; }
.glass { background: linear-gradient(145deg, #0e252ef5, #0c2027ea); border: 1px solid #b89e76; box-shadow: 0 16px 50px #02131d38, inset 0 0 0 4px #ffffff02; border-radius: 20px; }
.eyebrow { font-size: 10px; letter-spacing: 2.5px; font-weight: 600; color: #bca68e; line-height: 1.6; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { letter-spacing: -1.5px; }
h2 { font-size: clamp(27px, 3vw, 36px); margin: 16px 0 12px; }
.muted { color: #a7b8bb; font-size: 14px; line-height: 1.6; }
.small-note { color: #a9b8b9; font-size: 12px; line-height: 1.6; }
.setup-shell { display: grid; grid-template-columns: 1fr 440px; gap: 42px; min-height: 720px; align-items: start; padding-top: 28px; }
.intro { padding: 65px 0 0; text-shadow: 0 3px 25px #061924; }
.intro h1 { font-size: clamp(50px, 6vw, 86px); line-height: 1.08; margin: 28px 0; }
.intro h1 em { font-weight: 400; color: #e0a6ae; }
.intro-copy { font-size: 16px; line-height: 1.8; color: #c4ccca; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.intro-tags span { font-size: 10px; border: 1px solid #9d8d6d80; padding: 8px 10px; border-radius: 20px; background: #0b263090; }
.setup-card { padding: 30px; }
.step-line { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: 2px; color: #bca68e; }
.step-dots { display: flex; gap: 6px; }.step-dots i { width: 6px; height: 6px; border-radius: 50%; background: #50616a; }.step-dots .on { background: #e1aab8; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; color: #d5c7b9; margin-top: 19px; }
input, select { min-width: 0; width: 100%; min-height: 48px; padding: 11px 13px; color: #eee1d3; background: #17313b; border: 1px solid #63716b; border-radius: 9px; }
select { font-size: 13px; }
input { font-size: 17px; }
.primary { background: linear-gradient(145deg, #a04d60, #781c39 70%, #68112e); border: 1px solid #e39aa8; border-radius: 11px; min-height: 49px; padding: 13px 18px; color: #fff0e3; font-weight: 600; box-shadow: inset 0 2px #f4b8bd25, 0 5px 14px #040e163d; }
.primary:hover:not(:disabled) { filter: brightness(1.14); transform: translateY(-1px); }
.wide { width: 100%; }.primary.wide { display: flex; align-items: center; justify-content: center; gap: 12px; }
fieldset { border: none; padding: 0; margin: 22px 0 0; } legend { font-size: 12px; margin-bottom: 10px; color: #d5c7b9; font-weight: 600; }
.mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { display: flex; align-items: center; text-align: left; padding: 12px; gap: 10px; border: 1px solid #50636b; border-radius: 10px; background: #152d37; }
.mode.active { border-color: #e29cae; background: #61314285; box-shadow: inset 0 0 0 1px #d18c9c; }
.mode > b { font: 25px Georgia, serif; color: #e1cba9; }.mode span { font-size: 13px; }.mode small { display: block; font-size: 10px; margin-top: 5px; color: #bcc3be; }
#vocab-note { margin: 18px 0; }.form-actions { display: flex; gap: 12px; margin-top: 24px; }.form-actions .primary { flex: 1; }
.game-heading { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; gap: 20px; }.game-heading h1 { font-size: clamp(28px, 3.7vw, 48px); margin: 6px 0; text-shadow: 0 3px 15px #05151d; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 25px; }
.game-layout aside { grid-column: 2; grid-row: 1; display: grid; gap: 16px; }.crew { padding: 18px; }.crew > .eyebrow { margin: 0 0 12px; }.player-card { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 9px; border: 1px solid transparent; margin-top: 8px; }
.player-card.current { border-color: #e18b9e; background: #54283960; box-shadow: 0 0 16px #c6628115, inset 0 0 0 1px #d381951f; }
.avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #75384c; font-family: Georgia,serif; }.color-1 { background: #406762; }.color-2 { background: #655879; }.color-3 { background: #8a6b36; }
.player-info { display: grid; gap: 4px; min-width: 0; }.player-info strong { font-size: 12px; overflow-wrap: anywhere; }.player-info small { font-size: 9px; color: #b0bbb8; }.banked { font: 24px Georgia,serif; margin-left: auto; color: #efd2b0; }
.turn { text-align: center; padding: 17px; }.turn .eyebrow { overflow-wrap: anywhere; }.turn .muted { font: 16px Georgia,serif; }.turn > strong { display: block; font: 58px Georgia,serif; margin: 10px 0; color: #f1d3a3; }.turn .small-note { font-style: italic; }
.board-panel { grid-column: 1; grid-row: 1; background: #0b263039; border: none; border-radius: 0; box-shadow: none; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #d2c5b3; }.board-heading > div { display: flex; align-items: center; gap: 8px; }.board-heading b { font-weight: 400; }.live-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #edc890; box-shadow: 0 0 10px #f0b964; }#progress { white-space: nowrap; color: #b5b6a6; }
#status { min-height: 34px; font-size: 11px; line-height: 1.5; color: #bcc5c1; margin: 12px 0; }
#board { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: clamp(7px, 1vw, 16px); padding: 3px 0 10px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1; background: #091e28; border: 1px solid #bf9290; border-radius: 12%; padding: 0; box-shadow: 0 5px 0 #704846, 0 9px 12px #0010179e; isolation: isolate; transition: transform .18s, box-shadow .18s; }
.tile:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 8px 0 #76504e, 0 14px 18px #001017; }.tile:disabled { opacity: 1; }
.tile-cover { position: absolute; inset: 0; border-radius: 11%; background: #7b1736 url('./minefield/tile.png') center / cover; display: grid; place-items: center; z-index: 2; box-shadow: inset 0 0 0 2px #f2c6b135; }
.tile-cover > span { font: 500 clamp(18px, 2.5vw, 36px) Georgia, serif; color: #f4dbc9; text-shadow: 0 2px 3px #210311, 0 0 10px #210311; }
.tile-under { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 11%; background: radial-gradient(ellipse, #38505a, #061d27 75%); overflow: hidden; }
.tile-image { width: 85%; height: 85%; object-fit: contain; }.tile .reward-symbol { font-size: clamp(22px, 4vw, 52px); }
.revealing .tile-cover { animation: uncover .52s ease-in forwards; pointer-events: none; }.revealing .tile-under > * { animation: treasure-pop .75s ease-out; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; color: #c3b296; font-size: 10px; margin: 24px 0; }
.modal { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; background: linear-gradient(140deg, #203b45, #0b222d); color: #f1e0cd; border: 1px solid #d0b48b; border-radius: 22px; padding: 34px; box-shadow: 0 24px 120px #000b; }
.modal[open] { animation: modal-in .3s ease-out; }.modal::backdrop { background: #03141be0; backdrop-filter: blur(6px); }.modal .primary { margin-top: 17px; }.question-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.tile-number { font-size: 10px; color: #c8ae8b; white-space: nowrap; }#clue { font: 24px/1.6 Georgia, serif; margin: 26px 0; }#answer-form input { font-size: 22px; min-height: 56px; }#challenge .small-note { margin-top: 20px; }
.choices { display: grid; gap: 10px; }.choice, .target-button { border: 1px solid #688087; background: #1e3843; border-radius: 11px; padding: 14px; color: #eee4d5; min-height: 52px; display: flex; align-items: center; gap: 14px; font-size: 17px; text-align: left; }.choice:hover, .target-button:hover { background: #543747; border-color: #d69aaa; }.option-letter { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #799087; border-radius: 7px; font-size: 11px; color: #d9c29e; }
.event-modal { text-align: center; overflow-x: hidden; position: fixed; }.event-modal > :not(#sparks) { position: relative; z-index: 1; }.event-art { width: 190px; height: 180px; margin: 5px auto 0; display: grid; place-items: center; background: radial-gradient(ellipse, #c293502a, transparent 70%); }.reward-image { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px #d0a96832); }.reward-symbol { font: bold 100px Georgia,serif; color: #f0c981; text-shadow: 0 0 24px #eec66735; }.reward-symbol.violet { color: #c0a6e8; }.reward-symbol.rose { color: #eb94a3; }.event-delta { font-size: 32px; font-weight: 700; color: #f0ca85; margin: 10px 0; letter-spacing: 1px; }.event-modal h2 { margin-top: 8px; }#event-copy { color: #c8d0c9; line-height: 1.7; font-size: 15px; }#correction { color: #eac598; font-size: 17px; }#targets { display: grid; gap: 8px; }.target-button { justify-content: center; }.event-bomb[open] { animation: modal-in .25s, shake .4s .25s; }.event-art .reward-image { animation: item-arrive .65s cubic-bezier(.2,.8,.2,1.2); }.rose .event-delta { color: #f0a5ae; }.mint .event-delta { color: #a6dccb; }
.dice-face { font-size: 130px; line-height: 1; color: #f3ddba; text-shadow: 0 5px 0 #8f6d54; }.rolling { animation: dice-roll .16s linear infinite; }
#sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }#sparks i { position: absolute; top: 34%; left: 50%; width: 5px; height: 9px; background: #efc474; opacity: 0; animation: spark .9s var(--delay) ease-out forwards; }
.result-modal { text-align: center; }.result-star { font-size: 70px; color: #efc67e; }.final-row { display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 14px 0; border-bottom: 1px solid #68736960; gap: 7px; }.final-row small { grid-column: 1 / -1; color: #aebbb9; }.final-row strong { overflow-wrap: anywhere; }.modal ol, .modal dl { line-height: 1.65; font-size: 14px; color: #c8d0c9; }.modal dt { color: #ead1b0; font-weight: 700; margin-top: 12px; }.modal dd { margin: 0; }
@keyframes uncover { 35% { transform: translateY(-10px) rotate(-4deg); } 100% { transform: translateY(-40px) rotate(-12deg) scale(.2); opacity: 0; } }
@keyframes treasure-pop { 0%,55% { transform: scale(.25); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes item-arrive { from { transform: scale(.4) rotate(-15deg); } to { transform: scale(1) rotate(0); } }
@keyframes shake { 25%,75% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes spark { 15% { opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(220deg); opacity: 0; } }
@keyframes dice-roll { 50% { transform: rotate(20deg) translateY(-9px); } 100% { transform: rotate(-20deg); } }
@media (min-width: 1600px) { main { margin-top: 50px; } }
@media (max-width: 1100px) { main { width: 88%; }.setup-shell { grid-template-columns: 1fr 400px; gap: 25px; }.game-layout { grid-template-columns: minmax(0,1fr) 215px; gap: 16px; }.crew { padding: 10px; }.player-card { gap: 6px; padding: 10px 5px; }.banked { font-size: 22px; } }
@media (max-width: 760px) {
 body::before { background-size: auto 100vh; background-position: 60% bottom; }body::after { background: #071e2860; }.topbar { padding: 15px 16px; }.wordmark { font-size: 13px; }.topbar > div { gap: 6px; }.quiet { padding: 9px 10px; font-size: 11px; }main { width: auto; margin: 10px 16px 40px; }.setup-shell { display: block; padding: 0; }.intro { padding: 10px 4px 20px; }.intro .eyebrow { font-size: 8px; }.intro h1 { font-size: 44px; margin: 15px 0; }.intro h1 br { display: none; }.intro-copy { font-size: 13px; }.intro-tags { display: none; }.setup-card { max-width: 470px; padding: 23px; margin: auto; }.game-heading { align-items: start; gap: 12px; margin-top: 24px; }.game-heading h1 { font-size: 29px; }.game-heading .eyebrow { font-size: 8px; }.game-heading .quiet { white-space: nowrap; }.game-layout { display: flex; flex-direction: column; gap: 18px; }.game-layout aside { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }.crew { padding: 10px; }.crew > .eyebrow { display: none; }#scoreboard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }.player-card { margin: 0; padding: 8px; }.avatar { width: 25px; height: 25px; }.player-info strong { font-size: 12px; }.banked { font-size: 22px; }.turn { display: flex; align-items: center; gap: 13px; padding: 10px 15px; }.turn .eyebrow { margin-right: auto; letter-spacing: 1px; font-size: 10px; }.turn > strong { font-size: 28px; margin: 0; }.turn .muted { font-size: 12px; white-space: nowrap; }.turn .small-note { display: none; }.board-panel { width: 100%; }#board { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.tile-cover > span { font-size: 26px; }.tile .reward-symbol { font-size: 35px; }.modal { padding: 24px; }#clue { font-size: 22px; }.event-art { width: 150px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; } }
/* Keep the illustrated background above the page paint, below the interface. */
body::before { z-index: 0; pointer-events: none; }
body::after { z-index: 0; }
#app { position: relative; z-index: 1; }
.dice-cube { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 7px; width: 105px; height: 105px; padding: 17px; border-radius: 20px; background: linear-gradient(135deg, #fff0ce, #b9a281); border: 2px solid #fbe4be; box-shadow: inset -6px -7px 0 #88725755, inset 3px 3px 0 #fff8e966, 0 8px 0 #6c5949, 0 14px 25px #0005; transform: rotate(-10deg); }
.dice-cube i { background: #50362c; border-radius: 50%; box-shadow: inset 1px 2px 1px #140f09aa, 0 1px #fff5; }
.tile .dice-cube { width: 53%; height: 53%; padding: 10%; gap: 8%; border-radius: 15%; box-shadow: inset -3px -4px 0 #88725755, 0 4px 0 #6c5949, 0 6px 12px #0005; }
@media (min-width: 761px) {
  #board { max-width: min(100%, calc(100svh - 350px)); min-width: min(100%, 440px); margin-inline: auto; }
}
/* Expedition IV: expressive events and persistent protection. */
.avatar { position: relative; overflow: visible; }
.shield-badge { position: absolute; right: -10px; top: -10px; width: 23px; height: 27px; object-fit: contain; background: #193c40; border: 1px solid #d9b877; border-radius: 8px; padding: 2px; box-shadow: 0 0 12px #d8b96a55; z-index: 2; }
.player-card { transition: background .25s, transform .25s; }
.player-card.current { border-width: 2px; border-color: #f1b4c6; box-shadow: 0 0 22px #dc709b38, inset 0 0 14px #e2b48512; background: linear-gradient(130deg,#733249b0,#25404ccc); transform: scale(1.035); }
.player-card.current .player-info strong { font-size: 16px; color: #fff0dc; }
.player-card.current .banked { color: #ffe0a0; }
.turn .eyebrow { font-size: 16px; letter-spacing: .5px; color: #ffe0b5; font-weight: 700; }
.turn-announcement { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: #051821b8; backdrop-filter: blur(7px); padding: 24px; }
.turn-banner { text-align: center; padding: 35px; width: min(640px,100%); border-radius: 28px; border: 1px solid #d6b889; background: radial-gradient(ellipse at top,#4b3e49,#112d38 70%); box-shadow: 0 30px 100px #0009; animation: turn-arrival .5s cubic-bezier(.2,.8,.2,1.1); }
.big-avatar { width: 76px; height: 76px; margin: auto auto 20px; display: grid; place-items: center; border: 2px solid #efc697; border-radius: 24px; font: 44px Georgia,serif; box-shadow: 0 0 40px #efb27633; }
.turn-banner h2 { font-size: clamp(40px,7vw,78px); color: #ffdec0; margin: 12px 0; overflow-wrap: anywhere; }
.turn-invitation { color: #c4cfc9; line-height: 1.6; margin-bottom: 25px; }
.event-modal { width: min(620px,calc(100% - 28px)); }
.event-art { width: 230px; height: 230px; margin: 12px auto; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 28px #04111b77; }
.event-art .reward-image { width: 100%; height: 100%; object-fit: cover; }
.event-delta { font-size: clamp(30px,6vw,48px); letter-spacing: -1px; line-height: 1.1; }
.event-modal h2 { font-size: clamp(28px,4vw,39px); }
.event-steal .event-art, .event-swap .event-art { box-shadow: 0 0 30px #b68ad02d; }
.event-bomb .event-art { box-shadow: 0 0 40px #fb75234a; }
.event-bomb.shield-block .event-art { box-shadow: 0 0 40px #73d6c362; }
.event-bomb.shield-block { border-color: #a4d6c1; }
.event-bonus .event-art { box-shadow: 0 0 50px #f2c56a55; }
.tile-image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile-value { position: absolute; bottom: 4px; right: 5px; background: #061b29de; border: 1px solid #dfbc76; border-radius: 7px; padding: 3px 5px; color: #ffdda5; font-size: clamp(10px,1.1vw,16px); box-shadow: 0 1px 6px #0008; }
.amount-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.target-button.selected { background: #653848; border-color: #f0b6c7; box-shadow: inset 0 0 0 1px #d992aa; }
#steal-form { border-top: 1px solid #ac93845e; margin-top: 18px; padding-top: 6px; }
#steal-amount { text-align: center; font-size: 26px; }
.treasure-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 15px; }
.treasure-guide > div { display: grid; gap: 6px; font-size: 10px; text-align: center; background: #071d2980; border: 1px solid #b2996950; border-radius: 10px; padding: 7px; }
.treasure-guide img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.treasure-guide b { color: #f6cb80; font-size: 15px; }
@keyframes turn-arrival { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@media(max-width:760px) { .event-art { width: 180px; height: 180px; }.player-card.current .player-info strong { font-size: 14px; }.player-card.current { transform: none; }.turn .eyebrow { font-size: 14px; }.shield-badge { width: 20px; height: 23px; top: -9px; right: -8px; }.turn-banner { padding: 26px 18px; }.turn-banner h2 { font-size: 43px; }.event-modal { padding: 22px; } }
/* V: large, direct controls. */
.setup-shell { grid-template-columns: minmax(240px,1fr) minmax(0,560px); gap: 32px; }
.setup-card { padding: 28px; }
.intro h1 { font-size: clamp(48px,5vw,72px); }
.tile-picker legend, fieldset legend, label { font-size: 18px; }
.tile-picker { margin-top: 18px; }
.number-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.question-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.number-options label, .question-options label { position: relative; margin: 0; cursor: pointer; display: block; }
.number-options input, .question-options input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; margin: 0; }
.number-options span, .question-options span { display: grid; place-items: center; min-height: 60px; border: 2px solid #6b817f; border-radius: 12px; background: #18323d; color: #efe2d3; font-size: 26px; font-weight: 700; padding: 9px; text-align: center; }
.question-options span { font-size: 18px; }
.number-options input:checked + span, .question-options input:checked + span { border-color: #f0b4c4; background: #75324b; box-shadow: inset 0 0 0 1px #db9bab; color: #fff3e2; }
.number-options input:focus-visible + span, .question-options input:focus-visible + span { outline: 3px solid #f7ce86; outline-offset: 3px; }
.mode { min-height: 76px; padding: 14px; }.mode span { font-size: 20px; }.mode small { font-size: 14px; line-height: 1.4; }.mode > b { font-size: 30px; }
.primary, .quiet { font-size: 18px; min-height: 52px; }
.muted, .intro-copy { font-size: 18px; }.small-note { font-size: 16px; }.eyebrow, .step-line { font-size: 12px; letter-spacing: 1.6px; }
.duration-setting { margin-top: 20px; }.duration-setting label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 18px; }
#duration-label { font-size: 20px; color: #f4d39f; }
#duration { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; min-height: 10px; padding: 0; margin: 8px 0; background: #65817f; border: none; border-radius: 8px; cursor: pointer; }
#duration::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #f0caa6; border: 4px solid #a64665; box-shadow: 0 2px 8px #0006; }
#duration::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #f0caa6; border: 4px solid #a64665; }
.range-labels { display: flex; justify-content: space-between; font-size: 14px; color: #bbc8c3; margin-top: 12px; }
.game-tools { display: flex; align-items: center; gap: 14px; }
.game-clock { display: grid; gap: 3px; text-align: center; padding: 10px 16px; border-radius: 13px; border: 1px solid #bb9e79; background: #112d37; min-width: 125px; }
.game-clock span { font-size: 14px; color: #c9c6b7; }.game-clock strong { font-size: 25px; color: #f8dab1; font-variant-numeric: tabular-nums; }.game-clock.clock-low { border-color: #f09cab; background: #622939; }
.game-layout { grid-template-columns: minmax(0,1fr) 295px; }
.player-info strong { font-size: 17px; }.player-card.current .player-info strong { font-size: 21px; }.player-info small { font-size: 13px; }.banked { font-size: 29px; }
.board-heading { font-size: 17px; }#status { font-size: 16px; min-height: 44px; }.legend { font-size: 15px; gap: 15px; }.turn .eyebrow { font-size: 20px; }.turn .small-note { font-size: 15px; }
.modal .eyebrow, .tile-number { font-size: 14px; }.modal label { font-size: 18px; }.choice { font-size: 22px; min-height: 62px; }.option-letter { font-size: 16px; width: 34px; height: 34px; }.target-button { font-size: 20px; min-height: 58px; }
#event-copy { font-size: 19px; }.modal ol, .modal dl { font-size: 18px; }.treasure-guide > div { font-size: 14px; }.treasure-guide b { font-size: 20px; }.final-row { font-size: 20px; }.final-row small { font-size: 16px; }
@media(max-width:1100px) { .setup-shell { grid-template-columns: 1fr 520px; gap: 22px; }.game-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 16px; } }
@media(max-width:760px) {
 .setup-shell { display: block; }.setup-card { padding: 22px; }.intro h1 { font-size: 42px; }.intro-copy { font-size: 16px; }.intro .eyebrow { font-size: 11px; }
 .topbar { flex-wrap: wrap; gap: 12px; }.topbar > div { gap: 8px; }.topbar .quiet { font-size: 16px; min-height: 48px; }.wordmark { font-size: 15px; }
 .number-options { gap: 8px; }.number-options span { min-height: 58px; font-size: 24px; }.question-options span { font-size: 16px; min-height: 68px; }.mode { padding: 10px; gap: 8px; }.mode span { font-size: 18px; }.mode small { font-size: 13px; }.small-note { font-size: 15px; }.setup-card .muted { font-size: 17px; }
 .game-heading { flex-wrap: wrap; }.game-heading h1 { font-size: 32px; }.game-tools { width: 100%; justify-content: space-between; }.game-clock { text-align: left; min-width: 150px; }
 .game-layout { display: flex; }.player-info strong { font-size: 16px; }.player-card.current .player-info strong { font-size: 18px; }.player-info small { font-size: 12px; }.player-card { flex-wrap: wrap; padding: 10px; }.player-info { flex: 1; }.banked { font-size: 27px; }.avatar { width: 28px; height: 28px; }
 .board-heading { font-size: 16px; }#status { font-size: 16px; }.turn .eyebrow { font-size: 18px; }.turn .muted { font-size: 16px; }.legend { font-size: 14px; }.tile-value { font-size: 12px; }
 .modal { padding: 22px; }.event-art { width: 150px; height: 150px; }.modal .eyebrow, .tile-number { font-size: 12px; letter-spacing: 1px; }#event-copy { font-size: 18px; }.event-delta { font-size: 30px; }.modal ol, .modal dl { font-size: 17px; }
}
@media(max-width:760px) { .intro h1 em { margin-left: .12em; } }

/* Fit the expedition into the available iframe viewport. */
body:has(#play:not([hidden])){height:100dvh;overflow:hidden}
body:has(#play:not([hidden])) .topbar{display:none}
body:has(#play:not([hidden])) main{width:100%;height:100dvh;margin:0;padding:8px}
#play:not([hidden]){height:100%;display:flex;flex-direction:column;gap:6px;min-height:0}
#play .game-heading{flex:none;margin:0;gap:8px;align-items:center;flex-wrap:nowrap}
#play .game-heading>.heading-copy{min-width:0}#play .game-heading .eyebrow{display:none}#play .game-heading h1{font-size:20px;margin:0}
#play .game-tools{width:auto;gap:6px}#play .game-clock{min-width:0;padding:4px 9px;text-align:center}#play .game-clock span{font-size:9px}#play .game-clock strong{font-size:15px}#play .quiet{font-size:11px;padding:6px 10px;min-height:36px}
#play .game-layout{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
#play .game-layout aside{flex:none;display:flex;align-items:stretch;gap:6px;width:100%}
#play .crew{flex:1;padding:4px 6px}#play .crew>.eyebrow{display:none}#play #scoreboard{display:flex;gap:6px;flex-wrap:wrap}#play .player-card{flex:1;margin:0;padding:4px 7px;flex-wrap:nowrap}#play .avatar{width:24px;height:24px;font-size:12px}#play .player-info strong,#play .player-card.current .player-info strong{font-size:12px}#play .player-info small{font-size:9px}#play .banked{font-size:19px}
#play .turn{padding:4px 10px;display:flex;align-items:center;gap:6px}#play .turn .eyebrow,#play .turn .muted,#play .turn .small-note{display:none}#play .turn>strong{margin:0;font-size:22px}
#play .board-panel{flex:1;min-height:0;width:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;padding:8px;gap:5px}
#play .board-heading{font-size:12px;gap:8px}#play #status{font-size:11px;min-height:0;margin:0;line-height:1.25}
#play #board{min-height:0;min-width:0;max-width:100%;width:100%;height:100%;margin:0;grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-template-rows:repeat(var(--columns),minmax(0,1fr));gap:5px}
#play .tile{min-height:0;aspect-ratio:auto;border-radius:8px}#play .tile-cover>span{font-size:clamp(12px,3vw,24px)}#play .tile-number{font-size:10px}#play .tile .reward-symbol{font-size:22px}#play .tile-value{font-size:9px}
#play .legend{font-size:9px;gap:8px;margin:0;line-height:1.4}
@media(min-width:1100px){#play .game-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px}#play .game-layout aside{display:grid;grid-column:2;grid-row:1;align-content:start}#play #scoreboard{display:block}#play .game-heading h1{font-size:30px}#play .board-panel{height:100%}}
@media(max-height:500px) and (orientation:landscape){#play .game-heading h1{font-size:16px}#play .game-layout{flex-direction:row}#play .game-layout aside{width:150px;flex-direction:column}#play .board-panel{height:100%}#play .game-clock span{display:none}#play .board-heading{font-size:11px}#play #status{font-size:10px}#play .legend{display:none}}

#play #board{grid-template-rows:repeat(var(--board-rows,var(--columns)),minmax(0,1fr))}.board-pages25{display:flex;align-items:center;gap:5px;margin-left:auto;flex:none}.board-pages25[hidden]{display:none}.board-pages25 button{min-height:32px;width:32px;padding:0;background:#17333f;color:#ffe2a0;border:1px solid #b49450;border-radius:7px;font-size:23px}.board-pages25 span{font:11px Manrope,system-ui,sans-serif;white-space:nowrap}

@media (orientation:landscape){
 .modal{width:calc(100vw - 16px);max-width:900px;max-height:calc(100dvh - 16px);padding:8px;overflow:visible}
 #rules[open]{height:calc(100dvh - 16px);display:grid;grid-template-rows:10px 20px auto minmax(0,1fr) auto 28px;gap:3px}
 #rules .eyebrow{font-size:9px;line-height:10px;margin:0}
 #rules h2{font-size:18px;line-height:20px;margin:0}
 #rules ol{font-size:10px;line-height:12px;margin:0;padding-left:18px}
 #rules dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 10px;align-content:start;font-size:9px;line-height:11px}
 #rules dt{font-size:10px;line-height:12px;margin:0}#rules dd{margin:0;font-size:9px;line-height:11px}
 #rules .treasure-guide{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0}
 #rules .treasure-guide>div{padding:2px;font-size:8px;line-height:9px;display:flex;align-items:center;gap:3px}
 #rules .treasure-guide img{width:32px;height:32px;flex:none}#rules .treasure-guide b{font-size:10px}
 #rules .small-note{font-size:9px;line-height:11px;margin:0}
 #rules-close{min-height:28px;padding:3px;font-size:12px}
 #challenge .tile-number{font-size:12px}#challenge h2{font-size:20px;margin:4px 0}
 #challenge #clue{font-size:14px;line-height:1.35;margin:5px 0}
 #challenge #answer-form{display:flex;gap:8px;align-items:center}#challenge #answer-form label{flex:1;font-size:12px}
 #challenge #answer{width:100%;font-size:16px;min-height:36px}#challenge #answer-form button{min-height:36px;padding:5px 12px}
 #event[open]{display:grid;grid-template-columns:150px minmax(0,1fr);gap:4px 12px;align-items:center}
 #event>*{grid-column:2;margin:0}#event #event-art{grid-column:1;grid-row:1/10;width:150px;height:150px}
 #event h2{font-size:22px;line-height:1.1}#event #event-copy{font-size:12px;line-height:1.3}#event .event-delta{font-size:24px}
 #event .target-button{font-size:13px;min-height:30px;padding:4px}#event button{min-height:30px;padding:4px;font-size:12px}
 #results[open]{display:grid;grid-template-columns:80px minmax(0,1fr);gap:4px 12px;align-items:center}
 #results>*{grid-column:2;margin:0}#results .result-star{grid-column:1;grid-row:1/9;font-size:64px}
 #results h2{font-size:22px}#results .eyebrow{font-size:10px}#results .small-note{font-size:11px}
 #results .final-row{font-size:14px;padding:4px}#results .final-row small{font-size:10px}
 #results button{font-size:12px;min-height:30px;padding:4px}
}
@media (orientation:landscape){
 #rules-close,#event button,#results button{margin:0}
 #challenge #choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #challenge .choice{min-height:40px;padding:6px;font-size:16px;line-height:1.2}
 #challenge .option-letter{width:24px;height:24px;font-size:12px}
 #challenge .small-note{font-size:11px;line-height:1.3;margin:6px 0 0}
}
@media (orientation:landscape){
 #event #targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 #event .target-button{min-width:0;font-size:11px;overflow-wrap:anywhere}
 #event #steal-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;margin:0}
 #event #steal-form label{grid-column:1/-1;font-size:12px;line-height:14px;margin:0}
 #event #steal-amount{grid-column:1;grid-row:2;min-width:0;width:100%;height:32px;min-height:32px;padding:3px 6px;font-size:16px;margin:0}
 #event #steal-form>button{grid-column:2;grid-row:2;height:32px;min-height:32px}
 #event #amount-presets{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0}
 #event #amount-presets button{min-height:24px;padding:2px;font-size:11px}
}

#play #board{align-self:center;justify-self:center;grid-template-columns:repeat(var(--columns),var(--tile-side26));grid-template-rows:repeat(var(--board-rows),var(--tile-side26));margin:auto}#play .tile{width:var(--tile-side26);height:var(--tile-side26);aspect-ratio:1;padding:0}#play .tile>span:not(.tile-cover):not(.tile-number){max-width:100%}#play .tile-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#play .game-tools{padding-right:52px}body:has(#play:not([hidden])) main{padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left))}.modal{box-sizing:border-box;max-width:min(760px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 40px));max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);margin:auto}#challenge{width:min(760px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 40px));padding:clamp(12px,2vw,24px)}#challenge .choice{min-width:0;overflow-wrap:anywhere}@media(orientation:landscape){#play .game-layout{display:flex;flex-direction:row}#play .game-layout aside{width:clamp(105px,16vw,210px);display:flex;flex-direction:column}#play #scoreboard{display:flex;flex-direction:column}#play .board-panel{height:100%;flex:1}#play .legend{display:none}}
#play #board{padding:0}#play .tile-cover>span{font-size:clamp(9px,calc(var(--tile-side26)*.46),24px)}#play .tile-value{font-size:clamp(6px,calc(var(--tile-side26)*.14),12px);padding:2px;max-width:95%}.homework-game #new-game{display:none}

#challenge #question-title{font:400 clamp(12px,1.5vw,18px)/1.3 Arial,sans-serif;color:#c0d0d1;margin:10px 0 4px}#challenge #clue{font:700 clamp(25px,4.5vw,48px)/1.15 Georgia,serif;color:#ffe2a0;margin:6px 0 16px;overflow-wrap:anywhere}#challenge[data-prompt=clue] #clue{font-size:clamp(20px,3vw,32px)}
