*{box-sizing:border-box}body{margin:0;background:#122c2e;color:#faf3d9;font:16px/1.4 "Avenir Next",Avenir,system-ui,sans-serif;background-image:radial-gradient(ellipse at 70% 5%,#345351,transparent 55%)}main{max-width:1040px;margin:auto;padding:25px 28px}header,.charthead,.foot,.legend,.controls{display:flex;align-items:center;justify-content:space-between}header{border-bottom:1px solid #92a498;padding-bottom:16px;margin-bottom:18px}.brand,.kicker{margin:0;font-size:10px;letter-spacing:.18em;font-weight:800}.brand{color:#ffca80}h1,h2{font-family:Georgia,serif;line-height:1.05}h1{font-size:clamp(38px,6vw,70px);font-weight:400;margin:4px 0 0;letter-spacing:-.05em}.seal{border:3px double #e9ba75;border-radius:50%;width:54px;height:54px;display:grid;place-content:center;color:#ffd39a;font:italic 25px Georgia;position:relative;transform:rotate(-14deg)}.seal span{position:absolute;bottom:5px;right:8px;font-size:16px}.desk{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.chart,.panel{border:1px solid #667c75;border-radius:8px;padding:18px}.chart{background:#192f32;display:flex;flex-direction:column}.charthead h2,.letter h2{margin:0;font-size:26px;font-weight:400}.charthead span{font:12px monospace;color:#ffce87}.boardbox{display:grid;place-items:center;flex:1;min-height:220px}#board{display:grid;gap:4px;width:min(100%,425px);grid-template-columns:1.1em repeat(var(--n),minmax(0,1fr));align-items:center;padding:10px}.axis{text-align:center;color:#ded8bd;font:12px monospace}.cell{position:relative;display:grid;place-items:center;aspect-ratio:1;background:#eee0bd;color:#153e40;border-radius:3px;box-shadow:inset 0 -3px #b6a988;font-size:clamp(12px,3.5vw,36px);font-weight:800}.void{background:repeating-linear-gradient(135deg,#273f40 0 3px,#304747 3px 4px);box-shadow:none}.here{background:#ffc87d}.dest{color:#963216}.ghost{font-size:clamp(11px,2.4vw,23px);color:#f6af6b;text-shadow:0 0 2px #000}.ghost:not(.void){color:#92512f;text-shadow:none}.legend{justify-content:center;gap:18px;font-size:12px;color:#efe1bd}.legend i{color:#ffc87d}.legend b{color:#ff9d70}aside{display:grid;gap:12px}.letter{background:#f9edcf;color:#2d3830;border-radius:8px;overflow:hidden}.letter img{display:block;width:100%;height:clamp(90px,15vh,154px);object-fit:cover;object-position:center}.letterbody{padding:12px 17px 10px;border-top:5px solid transparent;border-image:repeating-linear-gradient(125deg,#ad5138 0 10px,#e8d5af 10px 20px,#356663 20px 30px,#e8d5af 30px 40px) 5}.letter h2{font-size:24px;margin:4px 0}.address{font:bold 15px monospace;letter-spacing:.02em}.letterbody p:last-child,.keys{font-size:12px;margin:6px 0 0}.panel{background:#203c3e;padding:14px}.controls{margin:9px 0;justify-content:flex-start;gap:18px}.pad{display:grid;grid-template-columns:repeat(3,40px);gap:3px}.pad button:first-child{grid-column:2}.pad button:nth-child(2){grid-column:1}.levels{display:grid;gap:4px}button{background:#f1dfba;color:#253933;border:0;border-radius:4px;cursor:pointer;font-weight:700;min-height:34px;padding:4px 10px;font-size:14px}button:hover{background:#ffcb82}button:focus-visible,summary:focus-visible{outline:3px solid #ffa15a;outline-offset:2px}button:disabled{opacity:.45}.keys{color:#d4dacd}#feedback{font-size:14px;min-height:2.6em;margin:8px 0 2px}.foot{font:12px monospace;color:#ffcd85}#next{background:#ffbd74}details{margin-top:12px;font-size:13px}summary{cursor:pointer;color:#f3d6a3}details p{max-width:760px}@media(max-width:680px){main{padding:12px}.desk{grid-template-columns:1fr;gap:8px}header{margin-bottom:8px;padding-bottom:8px}.chart{padding:10px}.boardbox{min-height:0}#board{width:min(100%,270px);max-height:265px}.charthead h2{font-size:20px}aside{gap:8px}.letter{display:grid;grid-template-columns:28% 1fr}.letter img{height:100%;min-height:90px}.letterbody{border-top:0;padding:10px}.letter h2{font-size:21px}.controls{float:left;margin:6px 12px 5px 0;gap:6px}.pad{grid-template-columns:repeat(3,31px)}.keys{display:none}.foot{clear:both}.cell{font-size:20px}.panel{padding:10px}#feedback{min-height:45px}.legend{font-size:11px}header .seal{width:42px;height:42px}}
