:root {
  color-scheme: light;
  --paper: #fbf7ed;
  --cream: #fffdf6;
  --ink: #342f28;
  --muted: #635c4e;
  --olive: #3f5036;
  --deep-olive: #303e29;
  --green: #dfe9cc;
  --butter: #f3e6b8;
  --orange: #a05435;
  --line: #dfd4bc;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--olive); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #a44e2e; outline-offset: 3px; }
:focus { scroll-margin-block: 1rem; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; border-bottom: 1px solid var(--line); }
.site-name, .backlink { text-decoration: none; }
.site-name { --ochre: #997335; display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; letter-spacing: -.015em; font-size: .95rem; color: #586449; }
.site-name span { line-height: 1.3; }
.site-name .fish-logo { display: block; width: 48px; height: 30px; flex: none; }
.backlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.backlink:hover, .site-name:hover { text-decoration: underline; }
.intro { padding-block: clamp(22px, 5vw, 52px) 24px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 7.1vw, 5.25rem); line-height: .98; letter-spacing: -.07em; margin-bottom: 13px; font-weight: 900; }
h1 span { color: var(--orange); }
.intro p { font-size: clamp(1rem, 2vw, 1.14rem); max-width: 38rem; margin-bottom: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(260px, 1fr); align-items: start; gap: 18px; }
.game-grid:has(.basket[hidden]) { grid-template-columns: minmax(0, 1fr); }
.game, .basket { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 7px 0 #e6dbc5; }
.scene { height: clamp(140px, 21vw, 235px); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 3%; padding: 18px 5.5% 21px; border-radius: 23px 23px 0 0; background: #eddfb9; }
.scene-sky, .scene-floor { position: absolute; z-index: -1; inset: 0; }
.scene-sky { background: repeating-linear-gradient(90deg, transparent 0 67px, #fdf5d5 67px 70px), linear-gradient(#f3e6b6, #eedfc1); }
.scene-floor { top: 60%; background: repeating-linear-gradient(90deg, transparent 0 54px, #e4c99a 54px 56px), repeating-linear-gradient(0deg, #f4dec0 0 26px, #ead1a9 26px 28px); border-top: 3px solid #e2c18d; }
.shop { align-self: end; position: relative; margin-bottom: 9px; min-width: 0; padding: 0; border: 2px solid #9f8869; border-radius: 9px 9px 3px 3px; background: #fdf5d6; box-shadow: 3px 5px 0 #ad8c643d; overflow: hidden; transition: transform 160ms ease-out; }
.shop:disabled { cursor: default; }
.shop:enabled:hover { transform: translateY(-4px); border-color: var(--olive); }
.shop-sign { display: grid; place-items: center; min-height: clamp(21px, 3.4vw, 33px); padding-inline: 3px; color: var(--ink); font-size: clamp(.59rem, 1.4vw, .88rem); font-weight: 900; letter-spacing: .035em; text-align: center; }
.shop-wares { display: flex; align-items: center; justify-content: center; min-height: clamp(33px, 6vw, 77px); font-size: clamp(.95rem, 2.9vw, 2.2rem); border-bottom: clamp(9px, 2vw, 22px) solid #c19270; background: radial-gradient(ellipse, #fff4cf, #eddfbd); }
.shop-wares span { display: inline-block; filter: drop-shadow(0 2px 1px #79532147); }
.shop-wares span:nth-child(2) { transform: rotate(-12deg) translateY(2px); }
.awning { display: block; height: clamp(16px, 3.7vw, 35px); border-block: 1px solid #9f8869; background: repeating-linear-gradient(90deg, var(--stripe) 0 14%, #fff5d5 14% 28%); box-shadow: 0 4px 0 #a3835f37; }
.shop-produce { --stripe: #8da373; }
.shop-fish { --stripe: #82a7aa; }
.shop-pantry { --stripe: #d49373; }
.scene[data-stall="produce"] .shop-produce, .scene[data-stall="fish"] .shop-fish, .scene[data-stall="pantry"] .shop-pantry { outline: 3px solid #596648; outline-offset: 3px; }
.scene-marker { position: absolute; inset-inline-start: var(--pin-x, 50%); bottom: 5px; transform: translateX(-50%); padding: 3px 9px; border-radius: 99px; font-size: .7rem; font-weight: 900; background: var(--deep-olive); color: white; white-space: nowrap; pointer-events: none; transition: inset-inline-start 200ms ease-out; }
.scene[data-stall="produce"] { --pin-x: 19%; }
.scene[data-stall="pantry"] { --pin-x: 81%; }
.game-content, .basket { padding: clamp(17px, 3vw, 27px); }
.game-content h2, .basket h2 { font-size: clamp(1.25rem, 3.2vw, 1.76rem); line-height: 1.15; margin-bottom: .4em; font-weight: 875; letter-spacing: -.025em; }
.game-content p { margin-bottom: .85em; }
.mission-picker, .stall-picker, .item-picker { display: grid; gap: 9px; margin-top: 15px; }
.mission-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stall-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item-picker { grid-template-columns: repeat(auto-fit, minmax(min(135px,100%), 1fr)); }
.tile { text-align: left; min-width: 0; display: grid; align-content: start; gap: 2px; padding: 12px; border: 1px solid #c9bd9e; border-radius: 12px; background: var(--paper); color: var(--ink); line-height: 1.28; min-height: 48px; }
.tile strong { font-weight: 875; }
.tile small { color: var(--muted); font-size: .78rem; }
.tile:hover, .tile[aria-pressed="true"] { background: var(--green); border-color: #6c7c61; }
.tile-icon { font-size: 1.3rem; margin-bottom: 2px; }
.welcome-note, .muted, .footnote { color: var(--muted); font-size: .85rem; }
.welcome-note { margin-top: 15px; }
.game-content .welcome-note, .game-content .actions:last-child { margin-bottom: 0; }
.status-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: .81rem; font-weight: 850; color: var(--olive); margin-bottom: 12px; }
.status-line span:last-child, .money { font-variant-numeric: lining-nums tabular-nums; }
.dialogue { margin-top: 12px; border: 1px solid #ded1ae; background: #fbf1d2; padding: 11px 13px; border-radius: 11px; }
.vendor { display: block; color: #634327; font-size: .78rem; font-weight: 900; margin-bottom: 2px; }
.dialogue p:last-child { margin-bottom: 0; }
.spoken { color: var(--olive); font-weight: 850; }
.order { display: grid; gap: 8px; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.order-line, .total-line, .basket-head, .basket-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-line strong { text-align: right; }
.scale { display: grid; justify-items: center; padding: 10px; border: 1px solid #ddd0b2; border-radius: 12px; background: #f6edd5; }
.scale-tray { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 100%; min-height: 45px; padding: 2px 12px; border: 1px solid #9eacaa; border-bottom: 4px solid #809593; border-radius: 9px 9px 17px 17px; background: #e3ebe5; }
.scale-tray span { display: inline-block; font-size: clamp(1.05rem, 4.5vw, 1.6rem); animation: settle 250ms ease-out both; }
.scale-tray span:nth-child(even) { rotate: -14deg; }
.scale-body { display: flex; align-items: center; gap: 10px; background: #536a64; color: white; border-radius: 0 0 8px 8px; padding: 5px 9px; font-size: .76rem; }
.scale-display { display: inline-block; min-width: 4.4rem; text-align: center; font-family: 'Courier New', monospace; font-size: 1.03rem; padding: 2px 5px; border-radius: 3px; background: #e1edbb; color: #303e29; }
.guess { margin-top: 9px; text-align: center; }
.guess .actions { justify-content: center; margin-top: 6px; }
.guess-feedback { margin: 7px 0 0; text-align: center; }
@keyframes settle { from { opacity: .35; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.basket-head h2 { margin-bottom: 0; }
.basket-icon { font-size: 1.7rem; }
.basket-icon.pop { animation: pop 300ms ease-out; }
@keyframes pop { 45% { transform: translateY(-7px) rotate(-10deg) scale(1.23); } }
.budget-label { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.budget { font-size: clamp(1.85rem, 4.2vw, 2.4rem); font-weight: 900; line-height: 1.1; color: var(--olive); margin-bottom: 10px; }
progress { appearance: none; border: none; width: 100%; height: 8px; background: #ebe2cd; border-radius: 99px; overflow: hidden; }
progress::-webkit-progress-bar { background: #ebe2cd; }
progress::-webkit-progress-value { background: #70815b; }
progress::-moz-progress-bar { background: #70815b; }
.basket-list, .receipt-list { list-style: none; padding: 0; margin: 12px 0; }
.basket-list li { font-size: .86rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.basket-list li > span:last-child { flex-shrink: 0; }
.total-line { border-top: 1px dashed #b8a888; padding-top: 10px; margin-top: 12px; font-weight: 850; }
.paper-receipt { max-width: 490px; padding: 15px; margin-top: 15px; border: 1px solid #dfd0ae; border-bottom: 3px double #b8a888; border-radius: 7px; background: #f8efd7; }
.paper-receipt h3, .takeaway-title { margin: 0; font-size: 1rem; }
.takeaway-title { margin-top: 18px; }
.goal { margin: 15px 0 0; font-size: .89rem; }
.goal strong { display: block; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.button { display: inline-flex; justify-content: center; align-items: center; background: var(--cream); color: var(--olive); border: 1px solid #829072; padding: 8px 12px; min-height: 44px; border-radius: 10px; text-decoration: none; text-align: center; font-weight: 850; font-size: .89rem; }
.button:hover { background: var(--green); }
.button.primary { background: var(--olive); color: white; border-color: var(--olive); }
.button.primary:hover { background: var(--deep-olive); }
.button:disabled { cursor: not-allowed; opacity: .65; }
.button.secondary { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.button.secondary:hover { background: var(--green); }
.note { border-left: 3px solid var(--orange); padding-left: 9px; margin: 9px 0; font-size: .85rem; color: #713924; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity .button { padding: 0 10px; min-width: 44px; font-size: 1.08rem; }
.quantity output { min-width: 3.5rem; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.receipt-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.receipt-list li:last-child { border-bottom: 0; }
.footnote { margin: 19px 0 28px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 7px; left: 7px; z-index: 5; background: var(--cream); padding: 8px 12px; }
@media (max-width: 760px) { .site-name { font-size: .8rem; gap: 6px; } .site-name .fish-logo { width: 36px; height: 28px; } }
@media (max-width: 750px) { .game-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) {
  .wrap { width: calc(100% - 24px); }
  .masthead { min-height: 52px; gap: 8px; font-size: .79rem; }
  .scene { padding-inline: 4%; }
  .tile { padding: 10px 8px; }
  .stall-picker .tile { font-size: .85rem; }
  .order-line { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
