*{box-sizing:border-box}
html,body{margin:0;-webkit-text-size-adjust:100%;text-size-adjust:100%;height:100%;background:#2a1508;color:#2b1a0e;font-family:Georgia,"Droid Serif","Times New Roman",serif;overscroll-behavior:none}
#app{position:fixed;inset:0;display:flex;flex-direction:column}
canvas{flex:1;display:block;width:100%;min-height:0;touch-action:none;-webkit-tap-highlight-color:transparent;outline:none}
#foot{flex:0 0 auto;font:12px/1.3 system-ui,sans-serif;color:#f3d9b5;background:#1c0d04;text-align:center;padding:5px 8px calc(5px + env(safe-area-inset-bottom))}
#foot a{color:#ffc36b}
.overlay{position:absolute;inset:0 0 26px 0;display:none;align-items:center;justify-content:center;background:rgba(30,12,2,.62);padding:14px;overflow:auto}
.overlay.show{display:flex}
.card{background:#fff6e4;border:4px solid #7a3b1d;border-radius:18px;box-shadow:0 10px 0 #4a2210,0 18px 40px rgba(0,0,0,.5);max-width:560px;width:100%;padding:22px 24px;margin:auto;position:relative}
.card.hidden{display:none}
.card:before{content:"";position:absolute;inset:6px;border:2px dashed #d9a066;border-radius:12px;pointer-events:none}
h1{font-size:clamp(28px,7vw,44px);margin:2px 0 0;color:#a1381b;letter-spacing:.5px;line-height:1.05}
h2{font-size:clamp(24px,6vw,32px);margin:4px 0 8px;color:#a1381b}
.sub{font-style:italic;color:#7a3b1d;font-size:18px;margin-bottom:10px}
.kicker{font:600 12px/1.2 system-ui,sans-serif;letter-spacing:1.5px;text-transform:uppercase;color:#9a6a3a}
.how{padding-left:20px;margin:8px 0;font-size:15px;line-height:1.4}
.how li{margin:5px 0}
.keys{font:13px/1.5 system-ui,sans-serif;color:#5b3a20}
kbd{font:12px system-ui,sans-serif;background:#f1dfc0;border:1px solid #b78a5c;border-bottom-width:2px;border-radius:4px;padding:0 5px}
.tag{font:700 12px system-ui,sans-serif;padding:1px 6px;border-radius:8px;color:#fff}
.tag.f{background:#5b6b7d}.tag.v{background:#2f5d50}
.row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn{font:700 17px Georgia,serif;padding:12px 18px;border-radius:12px;border:3px solid #7a3b1d;background:#ffe9c2;color:#7a3b1d;cursor:pointer;box-shadow:0 4px 0 #7a3b1d;touch-action:manipulation}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #7a3b1d}
.btn.primary{background:#d9541e;color:#fff8ea;border-color:#7a2a10;box-shadow:0 4px 0 #7a2a10}
.btn:focus-visible{outline:3px solid #ffb300;outline-offset:2px}
.best{margin-top:10px;font:13px system-ui,sans-serif;color:#7a5a3a}
.stats{font:15px/1.6 system-ui,sans-serif}
.stats b{color:#a1381b}
.fact{background:#fff;border:2px solid #e0b98a;border-radius:12px;padding:10px 14px;margin-top:10px;transform:rotate(-.6deg)}
.factHead{font:800 13px system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#2f5d50}
.fact p{margin:6px 0 4px;font-size:17px;line-height:1.35}
.src{font:12px system-ui,sans-serif;color:#8a6a4a}
