:root{--ink:#153d3b;--paper:#fbfaf4;--edge:#b3c1b7;--accent:#ffe179;--exact:#175b4e;--near:#ffce69;--miss:#e0e4de;font-family:"Trebuchet MS",Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}
body{margin:0;min-height:100vh;background-image:radial-gradient(#91a69b41 .8px,transparent .8px);background-size:14px 14px}
button,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #285eba;outline-offset:3px}
header{background:var(--ink);color:#fffdf1}.bar{width:min(1100px,92%);height:60px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}.stamp{display:grid;place-items:center;background:var(--accent);color:var(--ink);font:900 1.15rem Georgia,serif;border-radius:4px;width:27px;height:27px;transform:rotate(-6deg)}.slash{opacity:.5}.arcade{font-weight:500}
.project{background:transparent;border:1px solid #a4bcb0;border-radius:6px;color:inherit;min-height:36px;padding:3px 11px;font-weight:700}.project span:first-child{font-size:1.2rem;vertical-align:-1px}
main{width:min(1030px,92%);margin:clamp(22px,4vh,48px) auto;display:grid;grid-template-columns:.95fr 1.25fr;align-items:start;gap:clamp(30px,5vw,82px)}
.brief{padding-top:16px}.title-art{display:flex;margin:0 0 12px 4px;align-items:end;min-height:40px}.title-art i{font:900 1.36rem/1 Georgia,serif;background:var(--accent);border:2px solid var(--ink);border-radius:5px;width:34px;height:35px;display:grid;place-items:center;transform:rotate(-12deg);box-shadow:2px 3px 0 var(--ink)}.title-art i+i{background:#bce2c3;transform:rotate(9deg);margin-left:3px}
h1{font:bold clamp(3rem,5.8vw,5rem)/.99 Georgia,serif;letter-spacing:-.065em;margin:0}p,h2{margin:0}.lede{font-size:1.13rem;line-height:1.45;margin:13px 0 24px;max-width:31ch}
.clue{border:2px solid var(--ink);border-radius:10px;background:#fffef7;box-shadow:4px 5px var(--ink);overflow:hidden}.cardhead{background:var(--accent);border-bottom:2px solid var(--ink);display:flex;justify-content:space-between;padding:9px 17px;align-items:center}.cardhead span{font:700 .91rem/1.3 ui-monospace,monospace}.cardinside{padding:16px 18px 18px}.topicline{display:flex;justify-content:space-between;align-items:center;gap:9px}.topicline div{font-weight:800;color:#3e635a}.link{font-weight:bold;font-size:.94rem;background:transparent;border:0;padding:6px 0;text-decoration:underline;text-underline-offset:3px}
#clue{font:700 clamp(1.35rem,2.25vw,1.9rem)/1.18 Georgia,serif;margin:13px 0 16px;letter-spacing:-.015em}.hint,.mini{background:#f3f4e9;border:1px solid #91a698;border-radius:6px;padding:6px 10px;min-height:36px;font-weight:700}.hint:hover,.mini:hover{background:#e5eddd}#hintText{margin-top:10px;line-height:1.45}#picker{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}#picker label{width:100%;font-size:.9rem}select{flex:1;min-width:0;background:white;padding:7px;border-radius:5px;border:1px solid #83988b}
.legend{margin:20px 0 8px;display:flex;flex-wrap:wrap;gap:7px 14px;font-size:.92rem}.legend span{display:flex;align-items:center;gap:5px}.legend b{width:24px;height:24px;display:grid;place-items:center;border-radius:5px;font:bold 1.05rem Arial}
.exact{background:var(--exact)!important;color:white!important}.near{background:var(--near)!important;color:#392a08!important}.miss{background:var(--miss)!important;color:#39473d!important}
.play{background:#fffef8;border:2px solid var(--ink);border-radius:12px;box-shadow:5px 6px 0 #c1d1bd;padding:clamp(14px,2.4vw,24px)}.boardhead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:9px;border-bottom:1px solid #cdd5c9}.boardhead strong{font-size:1.03rem}.boardhead span{color:#4e655c;font-size:.9rem}
#board{display:grid;gap:4px;width:min(100%,clamp(230px,38vh,315px));margin:13px auto 6px}.row{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.tile{position:relative;aspect-ratio:1.13;border:1.5px solid #b9c8ba;border-radius:5px;display:grid;place-items:center;background:#f3f5eb;color:#173b36;font:800 clamp(1.18rem,3.8vh,2rem)/1 system-ui,sans-serif}.row.current .tile{background:#fffef8;border:2px solid #647f71}.row.current .caret{border-color:#153d3b;box-shadow:inset 0 -3px var(--ink)}.tile small{position:absolute;right:3px;bottom:1px;font:900 .72rem/1 system-ui}.tile.exact,.tile.near,.tile.miss{border-color:transparent}.message{line-height:1.35;text-align:center;margin:8px 0;font-size:.96rem;min-height:1.4em}.message.error{font-weight:bold;color:#993519}
.keys{display:flex;justify-content:center;gap:4px;margin-top:5px}.key{flex:1 1 0;min-width:0;max-width:51px;border:1px solid #a5b4a8;border-bottom-width:3px;border-radius:5px;background:#f3f4e9;font-weight:800;height:40px;padding:0;position:relative}.key small{position:absolute;right:1px;bottom:0;font-size:.6rem}.key.action{flex:1.6;max-width:68px;font-size:.82rem}.key.enter{background:var(--ink);color:white;border-color:#0c2a28}.key:hover{filter:brightness(.94)}#finish{padding:13px 14px;background:#e1eddf;border-radius:8px;margin-top:10px}#answer{font:700 1.4rem Georgia,serif}#talk{font-size:1rem;line-height:1.4;margin:5px 0 9px}#next{background:var(--ink);color:white;border:0;border-radius:7px;padding:9px 16px;font-weight:bold;min-height:40px}[hidden]{display:none!important}
body.projected main{width:min(1220px,95%)}body.projected #board{width:min(100%,clamp(260px,45vh,400px))}body.projected #clue{font-size:clamp(1.6rem,3vw,2.5rem)}
@media(max-width:720px){main{grid-template-columns:1fr;gap:13px;width:min(96%,540px);margin:14px auto 22px}.bar{width:94%;height:48px}.brief{padding:0 3px}.title-art{display:none}h1{font-size:2.55rem}.lede{font-size:1rem;margin:4px 0 11px;max-width:none}.cardhead{padding:5px 12px}.cardinside{padding:6px 12px 10px}#clue{margin:4px 0 8px;font-size:1.25rem}.legend{margin:13px 0 0;font-size:.87rem}.legend b{width:20px;height:20px}.play{padding:10px}.boardhead{padding-bottom:5px}#board{width:min(100%,235px);margin-top:8px;gap:3px}.row{gap:3px}.tile{aspect-ratio:1.35}.key{height:37px}.brand{gap:6px;font-size:.92rem}.message{font-size:.9rem}.topicline .link{padding:5px 0}.hint{min-height:34px}.title-art,.arcade,.slash{flex-shrink:0}}@media(max-width:380px){.arcade,.slash{display:none}.keys{gap:2px}.key.action{font-size:.72rem}}
#board:focus{outline:none}.row.current .caret:after{content:"";width:30%;height:2px;background:#587166;position:absolute;bottom:20%}
#choicesButton{display:block;margin-top:8px}#wordChoices{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}#wordChoices .hint{background:white;font-weight:800;letter-spacing:.04em}.cardhead{gap:8px}.cardhead span{text-align:right}
#pilotPicker{display:flex;align-items:center;gap:10px;font-weight:bold;margin:0 0 12px}#pilotDay{flex:0 1 auto;min-width:132px}

.tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#sound[aria-pressed="true"] { background: #e1eddf; color: var(--ink); }
@media (max-width: 520px) {
  .brand .arcade, .brand .slash { display: none; }
  .project { font-size: .88rem; padding-inline: 7px; }
  .bar { gap: 6px; min-height: 48px; height: auto; padding-block: 5px; }
}

.field-guide { margin: 18px 0 8px; background: #fffef8; border: 1px solid var(--edge); border-radius: 9px; }
.field-guide .legend { margin: 0; padding: 10px 12px; gap: 8px 14px; font-weight: 700; }
#guide { border-top: 1px dashed var(--edge); }
#guide summary { padding: 10px 12px; cursor: pointer; font-weight: 700; }
#guide summary:focus-visible { outline: 3px solid #285eba; outline-offset: 2px; }
#guide p, #guide ul { margin: 0 14px 12px; line-height: 1.45; }
#guide ul { padding-left: 18px; }
#guide li + li { margin-top: 4px; }
.sample-row { max-width: 240px; margin: 0 14px 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.sample-row .tile { font-size: 1.35rem; }
.tile small:not(:empty) { font: 900 .86rem/1 system-ui, sans-serif; right: 2px; bottom: 1px; }
.tile.exact b, .tile.near b, .tile.miss b { transform: translate(-2px,-2px); }
.guess-note { margin-top: 10px; padding: 9px 12px; background: #edf3e9; border-left: 4px solid var(--exact); border-radius: 2px 7px 7px 2px; }
.guess-note strong { font-size: .91rem; }
.guess-note p { margin-top: 3px; line-height: 1.4; }
.message:empty { min-height: 0; }
body.projected .tile small:not(:empty) { font-size: 1rem; }
@media (max-width:720px) {
  .field-guide { margin: 12px 0 0; }
  .field-guide .legend { gap: 6px 12px; padding: 7px 10px; }
  #guide summary { padding: 7px 10px; }
}

.audio-setting{display:inline-grid;justify-items:center;align-content:center;gap:2px;flex-shrink:0}.audio-setting #audio-state{font:700 .78rem/1.2 system-ui;white-space:nowrap}.audio-setting #sound{white-space:nowrap;min-height:32px;padding:3px 9px;font-size:.85rem;line-height:1.2}.audio-setting{padding-block:4px}

@media (max-width:360px) {
  .bar {flex-wrap:wrap;justify-content:center}
}
