:root { color-scheme: light; font-family: Georgia, 'Times New Roman', serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #d8c9a8; }
body { touch-action: none; user-select: none; }
#game { position: relative; width: 100%; height: 100%; overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#caption { position: absolute; left: 50%; top: max(22px, env(safe-area-inset-top)); transform: translateX(-50%); text-align: center; color: #43382d; letter-spacing: .05em; font-size: clamp(15px, 2.1vw, 22px); pointer-events: none; white-space: nowrap; }
#hint { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); color: #6d5c47; font-size: clamp(12px, 1.5vw, 15px); letter-spacing: .08em; text-transform: lowercase; pointer-events: none; transition: opacity .5s ease; white-space: nowrap; }
#hint.gone { opacity: 0; }
#reset { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); border: 1px solid #aa987a; background: rgba(239,229,201,.75); color: #665640; border-radius: 50%; width: 38px; height: 38px; font: 21px Georgia, serif; cursor: pointer; }
#reset:active { transform: scale(.92); }
@media (orientation: portrait) { #caption { top: max(14px, env(safe-area-inset-top)); } #hint { bottom: max(68px, calc(env(safe-area-inset-bottom) + 48px)); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
