*{box-sizing:border-box}
body{margin:0;min-height:100dvh;background:#183d36;color:#fff2d0;font-family:Georgia,serif}
main{width:min(100% - 20px,760px);margin:auto;padding:8px 0 max(12px,env(safe-area-inset-bottom))}
nav,footer,.buttons{display:flex;gap:12px;align-items:center;justify-content:space-between}
nav{padding:3px 5px 8px}nav a{display:inline-flex;align-items:center;min-height:44px;color:#fff2d0;text-underline-offset:3px}
nav a:first-child{text-decoration:none;font-size:20px}
article{background:#fff0cb;color:#2e463a;border-radius:16px 22px 12px 20px;padding:clamp(7px,1.6vw,15px);border:2px solid #ab895c}
header{padding:2px 8px 9px}header p{margin:0;font:italic 600 16px Georgia,serif;color:#803e31}
h1{margin:0;font-size:clamp(25px,5vmin,42px);letter-spacing:-.04em}
.field{height:clamp(220px,min(59svh,75vw),460px);border-radius:9px;overflow:hidden;isolation:isolate}
footer{padding:7px 4px 0}#hint{font:600 clamp(15px,2.4vmin,18px)/1.27 Georgia,serif;margin:0}
.buttons{justify-content:flex-end;flex-wrap:wrap;gap:5px}
.buttons a,.buttons button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #224e42;padding:7px 14px;border-radius:9px 4px 10px 5px;color:#fff3cd;background:#295541;font:700 16px Georgia,serif;cursor:pointer;text-decoration:none;text-align:center}
.buttons button{background:#983f2d;border-color:#633b24}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #209f90;outline-offset:2px}
@media(max-width:550px) and (min-height:500px){.field{height:clamp(269px,49svh,470px)}footer{flex-direction:column;text-align:center}.buttons{justify-content:center}}
@media(max-height:480px) and (orientation:landscape){main{padding-block:2px}.field{height:clamp(144px,calc(100svh - 155px),310px)}nav{padding-block:0}nav a{min-height:34px}header p{font-size:14px}h1{font-size:24px}}

header{display:flex;align-items:center;justify-content:space-between;gap:5px}#sound{min-height:44px;min-width:64px;border:1px solid #a3845b;border-radius:9px;background:#f9e6bf;color:#304537;font:600 14px Georgia,serif;cursor:pointer}