.game-board-host { position: fixed; inset: 0; display: flex; flex-direction: column; padding: 4vh max(7vw, calc((100vw - 1260px)/2)); color: #bab4a4; }
.board-header { flex-shrink: 0; }
.board-scores { display: flex; justify-content: space-between; gap: 20px; }
.board-score { display: flex; align-items: baseline; gap: 16px; max-width: 43%; color: #736f64; }
.board-score span { font: 14px Georgia, serif; overflow-wrap: anywhere; }
.board-score strong { font: 25px Georgia, serif; font-weight: normal; }
.board-score.is-turn { color: #d8ceaf; }
.board-title { font: italic 22px/1.3 Georgia, serif; text-align: center; margin: 10px 0 25px; color: #b0aa96; }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 16px 22px; flex: 1; min-height: 0; }
.board-tile, .card-face { position: relative; border-radius: 1px; border: 1px solid #726a514f; background: url('/grain.svg'), radial-gradient(ellipse at 35% 0%, #302e2480, transparent 85%), #111410; color: #c6bda6; box-shadow: 0 5px 12px #0009, inset 0 0 28px #0008; }
.board-tile::before, .card-face::before { content: ''; position: absolute; inset: 6px; border: 1px solid #776f522d; pointer-events: none; }
.board-tile { display: flex; align-items: center; justify-content: center; padding: 12px 28px; transform: rotate(var(--tilt)); transition: border-color .2s, box-shadow .2s, translate .2s; }
.card-title { font: 20px/1.2 Georgia, serif; font-variant: small-caps; letter-spacing: .06em; text-align: center; text-shadow: 0 2px 4px #000; }
.card-mark { position: absolute; top: 9px; left: 12px; font: 15px Georgia, serif; color: #81765a; }
.card-value { position: absolute; bottom: 10px; right: 15px; font: 18px Georgia, serif; color: #a79b7c; }
.board-tile:hover:not(:disabled) { border-color: #b0a07b; box-shadow: 0 9px 20px #000; translate: 0 -3px; }
.board-tile:focus-visible { outline: 1px solid #d5c7a1; outline-offset: 4px; }
.board-tile.is-used { opacity: .24; }
.board-tile.is-used .card-title { text-decoration: line-through; }
.card-spent { position: absolute; bottom: 11px; left: 12px; font: 8px monospace; letter-spacing: .12em; }
.board-tile.is-lifted { visibility: hidden; }
.board-tile:disabled { cursor: default; }
.board-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; font: 10px monospace; color: #77796a; }
.board-reveal { position: fixed; inset: 0; background: #020403ce; z-index: 10; display: grid; place-items: center; padding: 24px; backdrop-filter: blur(5px); perspective: 1400px; }
.board-reveal-inner { width: min(460px, 100%); text-align: center; }
.card-flight { width: min(340px, 70vw); height: min(420px, 58dvh); margin: auto; perspective: 1400px; }
.card-flip { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-front .card-title { font-size: 33px; }
.card-face::before { inset: 12px; }
.card-back { transform: rotateY(180deg); background: url('/grain.svg'), radial-gradient(ellipse at 50% 40%, #37342670, transparent), #141610; }
.card-back-mark { position: absolute; top: 13%; font: 50px Georgia, serif; color: #9c8c67; opacity: .5; }
.board-clue { font: italic 46px Georgia, serif; color: #d3c6a6; margin: 30px 0 0; }
.board-clue:focus { outline: none; }
.card-face .card-value { bottom: 24px; right: 28px; font-size: 26px; }
.board-reveal-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; }
.board-reveal button { border: 0; border-radius: 0; background: transparent; color: #ccc2a9; padding: 14px 4px; font: 18px Georgia, serif; min-height: 48px; }
.board-reveal button:hover:not(:disabled) { color: #fff0c3; }
.board-reveal button:focus-visible { outline: 1px solid #a49b79; outline-offset: 3px; }
.board-reveal button:disabled { opacity: .3; }
.board-reveal .board-back, .board-reveal .board-no-winner { font: 14px Georgia, serif; color: #969481; }
.board-award-label { font: italic 17px Georgia, serif; margin: 24px 0 0; }
.board-awards { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 20px; }
.board-no-winner { flex-basis: 100%; }
.board-offline { position: fixed; bottom: 8px; left: 0; right: 0; text-align: center; font: 12px Arial, sans-serif; color: #bfa188; z-index: 12; }
.game-board-phone { position: absolute; inset: 0; display: flex; flex-direction: column; padding: max(30px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); color: #c5c7b0; }
.game-board-phone .board-score { gap: 8px; }
.game-board-phone .board-score span { font-size: 13px; }
.game-board-phone .board-title { font-size: 22px; margin: 24px 0; }
.game-board-phone .board-grid { gap: 10px 8px; flex: 1; max-height: 490px; }
.game-board-phone .board-tile { padding: 24px 5px; }
.game-board-phone .card-title { font-size: clamp(12px, 3.6vw, 16px); letter-spacing: 0; }
.game-board-phone .card-mark { font-size: 11px; top: 7px; left: 8px; }
.game-board-phone .card-value { font-size: 14px; bottom: 7px; right: 9px; }
.game-board-phone .card-face .card-value { font-size: 26px; bottom: 24px; right: 28px; }
.game-board-phone .board-footer { font-size: 9px; }
.game-board-phone .card-spent { display: none; }
@media (max-height: 600px) { .game-board-host { padding-top: 15px; } .board-title { margin: 5px 0 14px; } .board-grid { gap: 10px 16px; } .board-footer { padding-top: 12px; } .board-reveal-actions { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .board-tile { transition: none; } }
.game-board .board-header { display:block; padding:0; border:0; background:none; }
.board-tile, .card-face { background: linear-gradient(145deg, #22251de8, #0a0d0bea), url('/grain.svg'), #111410; }
.card-back { background: radial-gradient(ellipse at 50% 40%, #303023ed, #10130fed), url('/grain.svg'), #141610; }
.game-board .board-header { width:100%; height:auto; max-width:none; margin:0; }
.board-instructions { white-space:pre-wrap; font:14px/1.5 Georgia,serif; max-height:100px; overflow:auto; }
.card-title { overflow-wrap:anywhere; max-width:100%; }
.board-tile { overflow:hidden; }
@media (max-width:400px) { .game-board-phone .board-tile { padding:18px 5px; } }
.board-tile:nth-child(4n+1) { --tilt:-.65deg; }
.board-tile:nth-child(4n+2) { --tilt:.4deg; }
.board-tile:nth-child(4n+3) { --tilt:-.3deg; }
.board-tile:nth-child(4n) { --tilt:.7deg; }
.card-flight { width:min(640px, 85vw); height:auto; aspect-ratio:2/1; max-height:58dvh; }
.game-board-phone .card-flight { width:min(280px, 70vw); aspect-ratio:2/3; }
.board-reveal-inner { width:min(640px, 100%); }
.board-clue { font:italic clamp(18px, 2vw, 26px)/1.4 Georgia,serif; margin:0 28px; max-height:calc(100% - 96px); overflow-y:auto; overflow-wrap:anywhere; white-space:pre-wrap; scrollbar-width:thin; scrollbar-color:#77735d transparent; }
.card-back-mark { top:16px; font-size:24px; }
.board-tile.is-finale{border-color:#a3956890}.board-tile.is-finale-locked{opacity:.5;background:repeating-linear-gradient(135deg,#11160ed9 0 12px,#1b2118d9 12px 13px);cursor:not-allowed}.board-tile.is-finale .card-value{font-size:12px;letter-spacing:.1em}.board-tile.is-finale .card-spent{font-size:10px;letter-spacing:.1em}
