* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: light; font: 100%/1.45 system-ui, sans-serif; color: #222f2c; background: #eae8df; }
body { margin: 0; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
main { max-width: 34rem; margin: 0 auto; padding: clamp(14px, 4vw, 28px); background: #fffcf4; border: 1px solid #c8c7b7; border-radius: 12px; }
header, footer, .eyebrow { color: #485d53; font-size: .82rem; }
header { border-bottom: 1px solid #cccabb; padding-bottom: 12px; }
header span { margin: 0 .35em; }
footer { margin-top: 16px; }
.eyebrow { font-weight: 650; margin: 16px 0 4px; }
h1 { margin: 0; font: 600 clamp(1.65rem, 7vw, 2.25rem)/1.15 Georgia, serif; }
p { margin: 10px 0; }
#legend, #choices { list-style: none; display: grid; margin: 14px 0; padding: 0; gap: 10px; }
#legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#legend li { display: grid; grid-template-columns: repeat(2, 40px); justify-content: center; justify-items: center; gap: 3px 8px; border-radius: 8px; padding: 4px; background: #304642; color: #fff9e9; }
#legend span { grid-column: 1 / -1; font-weight: 600; }
img { display: block; width: 40px; height: 40px; object-fit: contain; }
button { min-height: 48px; border: 1px solid #224e42; border-radius: 8px; font: 600 1rem/1.2 system-ui, sans-serif; color: white; background: #285646; padding: 10px 14px; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .6; cursor: not-allowed; }
button:focus-visible { outline: 3px solid #8a4500; outline-offset: 2px; }
h1:focus { outline: none; }
#choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#choices button { display: grid; place-items: center; min-height: 74px; padding: 8px; background: #304642; border-color: #20322e; }
#choices button:active { border-color: #224e42; }
.total { font-weight: 650; }
table { margin: 14px 0; width: 100%; border-collapse: collapse; font-size: .9rem; }
caption { text-align: left; font-weight: 700; margin: 0 0 4px; }
th, td { text-align: left; padding: 5px 3px; border-bottom: 1px solid #cccabb; overflow-wrap: anywhere; }
#loading:empty { display: none; }
