* { box-sizing: border-box; }
body { margin:0; background:#edf4f1; color:#203d37; font:18px/1.5 Arial, sans-serif; }
.game { width:94%; max-width:660px; margin:20px auto; }
header { text-align:center; } .eyebrow { font-size:12px; font-weight:bold; letter-spacing:2px; color:#526d65; }
h1 { font:normal 40px/1.1 Georgia,serif; margin:9px 0; } header p { margin:8px 0 20px; }
.board-top { overflow:hidden; margin:0 5px 10px; font-size:16px; } #count { float:right; }
.board { position:relative; background:#fff; border:1px solid #d7e4de; border-radius:22px; overflow:hidden; box-shadow:0 8px 28px rgba(26,61,47,.05); }
canvas { display:block; width:100%; touch-action:manipulation; }
button { font: bold 18px Arial,sans-serif; border:1px solid #b8ccc3; border-radius:12px; background:#fff; color:#254e42; padding:14px 22px; min-height:52px; cursor:pointer; }
button:focus { outline:3px solid #d18b33; outline-offset:3px; } button:disabled { opacity:.45; cursor:default; }
.primary { background:#285e4c; border-color:#285e4c; color:white; }
nav { text-align:center; } nav button { width:30%; margin:0 1%; padding:14px 6px; }
#status { min-height:54px; text-align:center; margin:12px 0; }
footer { margin-top:22px; overflow:hidden; font-size:15px; color:#526d65; } footer span { display:inline-block; padding-top:13px; }
.text-button { float:right; border:0; background:transparent; font-size:15px; padding:12px 4px; }
[hidden] { display:none !important; } .win { position:absolute; top:0; left:0; width:100%; height:100%; background:#fff; text-align:center; padding:24% 20px 0; } .win h2 { font:36px Georgia,serif; }
#diagnostics { background:white; padding:20px; border-radius:16px; margin-top:12px; } #diagnostics h2 { font-size:22px; } pre { white-space:pre-wrap; word-wrap:break-word; font:14px/1.6 monospace; }
.keyboard { position:absolute; width:1px; height:1px; overflow:hidden; } .keyboard:focus-within { position:static; width:auto; height:auto; } .keyboard button:focus { position:fixed; bottom:10px; left:10px; z-index:10; }
@media (max-width:420px) { h1 { font-size:34px; } header p { font-size:16px; } .game { margin-top:14px; } }
@media (min-width:700px) and (min-height:850px) { .game { margin-top:30px; } }
@media (orientation:landscape) and (max-height:800px) { .game { max-width:480px; margin-top:12px; } header p { margin-bottom:10px; } h1 { font-size:30px; } .board { max-width:420px; margin:auto; } }
