:root {
  color-scheme: light;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: #203331;
  background: #f3efe4;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; padding: 27px 0 22px; border-bottom: 1px solid #d8d4c8; }
a { color: inherit; }
.brand { font-family: Georgia, serif; font-size: 29px; font-weight: bold; letter-spacing: -.05em; text-decoration: none; }
.brand span, h1 span { color: #a34e3d; }
.download { font-size: 14px; font-weight: bold; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.download span { margin-left: 5px; }
.intro { padding: 31px 0 23px; }
h1 { font: 700 clamp(43px, 7.2vw, 92px)/.95 Georgia, serif; letter-spacing: -.078em; margin: 0 0 14px; }
.intro p { margin: 0; color: #4f6059; font-size: clamp(14px, 2vw, 17px); }
.game { overflow: hidden; border: 2px solid #283836; box-shadow: 0 7px 0 #d9d2c1; border-radius: 8px; }
.stage { position: relative; background: #a5c5ab; }
canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspots[hidden] { display: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #8a36a9; outline-offset: 4px; }
.spot { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); border: 1px solid #273a38; border-radius: 4px; padding: .35em .6em; font-size: clamp(9px, 1.4vw, 15px); font-weight: bold; color: #1f3832; background: #fff8df; box-shadow: 0 2px 0 #22333a80; white-space: nowrap; }
.spot:hover { background: #fff0a8; transform: translate(-50%, -55%); }
.spot::before { content: ""; position: absolute; inset: -1.8em 0 0; }
.spot:disabled { cursor: wait; opacity: .67; }
.nova { left: 19.2%; top: 59%; }
.shop { left: 48.65%; top: 59%; }
.mio { left: 78.46%; top: 59%; }
.car { left: 68.6%; top: 86.3%; background: #f5b992; }
.car::before { inset: -3.3em -1.8em 0; }
.caption { min-height: 46px; padding: 11px 17px; display: flex; align-items: center; gap: 11px; color: #f5e9c8; background: #263e3a; }
.caption p { margin: 0; font-size: 14px; }
.lamp { width: 8px; height: 8px; background: #ecc684; box-shadow: 0 0 0 3px #e9c1832a; flex: 0 0 auto; }
.tip { color: #516459; font-size: 13px; margin: 19px 0 24px; }
.shop-ui { color: #2d352c; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; position: absolute; inset: 0; }
.shop-copy { position: absolute; left: 7%; top: 10%; background: #fff2cd; padding: .35em .65em; border: 1px solid #845f57; }
.shop-copy h2 { margin: 0; font: bold clamp(14px, 3vw, 35px)/1.1 Georgia, serif; letter-spacing: -.035em; }
.shop-copy p { margin: .2em 0 0; font-size: clamp(10px, 1.6vw, 15px); }
#wardrobe { position: absolute; inset: auto 4% 18%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.shop-ui button { font-size: clamp(9px, 1.5vw, 15px); font-weight: bold; padding: .4em .65em; border: 1px solid #785753; border-radius: 4px; color: #37372a; background: #fff0c9; }
#wardrobe [aria-pressed="true"] { background: #21594a; border-color: #214f41; color: #fff7dc; }
.shop-actions { position: absolute; bottom: 3%; right: 4%; display: flex; gap: 7px; }
.shop-ui .primary { background: #a34e3d; color: white; }
@media (max-width: 520px) {
  header, main { width: calc(100% - 22px); }
  header { padding-block: 17px; }
  .intro { padding-block: 25px 17px; }
  .game { border-radius: 4px; }
  .caption { padding: 9px 11px; }
  .caption p { font-size: 12px; }
}
