:root {
  color-scheme: light;
  --paper: #f8f5e8;
  --cream: #fffaf0;
  --ink: #203d33;
  --muted: #54665b;
  --line: #ddd9c6;
  --green: #173c34;
  --mint: #d8e7d2;
  --orange: #e8a33f;
  --gold: #ffd568;
  --brick: #a33e30;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 270px;
  color: var(--ink);
  font-family: var(--body);
  background: radial-gradient(circle, #826b4a17 .65px, transparent .8px) 0 0 / 7px 7px, var(--paper);
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #ad5425; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px; background: white; }

.site-header { border-bottom: 1px solid var(--line); background: #fcf9ef; }
.header-inner {
  width: min(1180px, calc(100% - 64px));
  min-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/.98 var(--display); white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dfac52; border-radius: 12px; background: #ffda7b; }
.brand-icon img { object-fit: contain; }
.brand small { display: block; margin-top: 4px; font: 700 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 25px; }
.nav-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; white-space: nowrap; transition: background-color .15s, transform .15s; }
.button:not(:disabled):active { transform: translateY(2px); }
.shop-button { min-height: 40px; padding: 0 14px; background: var(--green); color: #fff9e8; font-size: 14px; }
.shop-button:not(:disabled):hover { background: #285347; }
.shop-button:disabled { opacity: .64; }

.icon { display: inline-block; flex-shrink: 0; position: relative; width: 18px; height: 18px; }
.icon-ticket {
  height: 13px;
  border-radius: 2px;
  background: currentColor;
  mask: radial-gradient(circle at 0 50%, transparent 2.5px, #000 2.8px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 2.5px, #000 2.8px) right / 51% 100% no-repeat;
}
.icon-ticket::before { content: ""; position: absolute; inset: 3px 5px 3px auto; border-left: 1px dashed var(--ticket-hole, #173c34); }
.icon-target { border: 2px solid currentColor; border-radius: 50%; }
.icon-target::before { content: ""; position: absolute; inset: 3px; border: 2px solid currentColor; border-radius: 50%; }

.page { width: min(1180px, calc(100% - 64px)); margin: auto; padding: 32px 0 44px; }
.intro { margin-bottom: 27px; }
.intro h1 { position: relative; width: fit-content; font: 800 clamp(43px, 6.2vw, 77px)/.98 var(--display); letter-spacing: -.07em; }
.intro em { color: var(--brick); font-style: normal; }
.title-spark { display: inline-block; margin-left: 11px; color: #c98228; font-size: .37em; vertical-align: top; transform: translateY(6%) rotate(12deg); }
.intro p { margin-top: 12px; color: var(--muted); font-size: clamp(14px, 1.65vw, 17px); font-weight: 600; }
.arcade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(252px, 286px); gap: 22px; align-items: start; }

.booth {
  overflow: hidden;
  border: 2px solid #223f34;
  border-radius: 18px;
  background: var(--green);
  box-shadow: 0 5px 0 #263d3322, 0 10px 26px #37442c14;
}
.awning {
  position: relative;
  z-index: 1;
  height: 55px;
  display: grid;
  place-items: center;
  border-bottom: 3px solid #693d2a;
  background: linear-gradient(180deg, #fff9e336, transparent 55%, #5b2a2525),
              repeating-linear-gradient(90deg, #c65d46 0 32px, #f7dbac 32px 64px);
  box-shadow: 0 4px 0 #162c2670;
}
.awning::after { content: ""; position: absolute; inset: 4px 0; border-block: 1px solid #fdf2ce77; }
.booth-sign {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 13px;
  border: 1px solid #7d472d;
  border-radius: 9px;
  color: #fff3d6;
  background: #8d4134;
  text-align: center;
  box-shadow: inset 0 0 0 1px #edb37575;
}
.booth-sign img { width: 25px; height: 23px; object-fit: contain; }
.booth-sign img:last-child { scale: -1 1; }
.booth-sign strong { display: block; font: 800 18px/.98 var(--display); letter-spacing: -.01em; }
.booth-sign small { display: block; margin-top: 3px; font-size: 9px; line-height: 1; }
.playfield {
  --duck-size: clamp(44px, 7.1vw, 72px);
  position: relative;
  isolation: isolate;
  height: clamp(318px, 35vw, 440px);
  overflow: hidden;
  background: #155051 url("assets/pond.jpg") center center / cover no-repeat;
  touch-action: manipulation;
}
.playfield[data-state="playing"] { cursor: crosshair; }
.playfield[data-state="reloading"] { cursor: wait; }
.playfield::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #122f2510, #112a2752); box-shadow: inset 0 0 45px #0b302f68; }
.tracks, .idle-ducks { position: absolute; inset: 0; pointer-events: none; }
.tracks::before, .tracks::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(7px, 1.4vw, 16px);
  background: linear-gradient(90deg, #664936, #b3855b 65%, #5f4231);
  box-shadow: 2px 0 4px #132e27ab;
}
.tracks::after { inset: 0 0 0 auto; scale: -1 1; }
.tracks i {
  position: absolute;
  top: calc(37% + var(--duck-size) * .57);
  left: 0;
  right: 0;
  height: 9px;
  border-block: 1px solid #f4cc8e9c;
  background: linear-gradient(#987658, #5b4d3f);
  box-shadow: 0 4px 0 #1031325e;
}
.tracks i:nth-child(2) { top: calc(64% + var(--duck-size) * .57); }
.idle-duck, .target {
  position: absolute;
  width: var(--duck-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.idle-duck img, .target-art { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 2px #14241e90); }
.idle-duck::after, .target::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -12%;
  width: 6px;
  height: 23%;
  translate: -50%;
  border-inline: 1px solid #3b3527;
  background: #c9a679;
  pointer-events: none;
}
.idle-duck span, .target-points {
  position: absolute;
  bottom: -12%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 29px;
  padding: 2px 5px;
  border: 1px solid #fbe7ad;
  border-radius: 6px;
  color: #fff7dc;
  background: #20483c;
  font: 700 12px/1.05 var(--mono);
  text-align: center;
  white-space: nowrap;
}
.idle-duck-a { top: 37%; left: 20%; rotate: -5deg; }
.idle-duck-b { top: 35%; left: 50%; width: calc(var(--duck-size) * 1.2); }
.idle-duck-c { top: 37%; left: 80%; rotate: 4deg; }
.idle-duck-d { top: 64%; left: 24%; rotate: 3deg; }
.idle-duck-e { top: 64%; left: 51%; }
.idle-duck-f { top: 64%; left: 77%; rotate: -3deg; }
.idle-duck-b img { transform: scaleX(-1); }
.idle-duck-c img, .idle-duck-e img { transform: scaleX(-1); }
.idle-duck-b img, .gold-duck, .target--gold .target-art { filter: saturate(1.45) hue-rotate(-20deg) drop-shadow(0 1px 6px #ffb9558c); }
.idle-duck-b span, .target--gold .target-points { color: #39281c; background: #ffd277; }
.playfield:is([data-state="playing"], [data-state="reloading"]) .idle-ducks { visibility: hidden; }
.target { z-index: 2; display: block; border: 0; padding: 0; background: transparent; touch-action: manipulation; }
.playfield .target { cursor: crosshair; }
.target[data-direction="left"] .target-art { transform: scaleX(-1); }
.target--bonus .target-art, .jackpot-duck { filter: hue-rotate(85deg) saturate(.85) drop-shadow(0 2px 6px #8bed9f); }
.target--bonus .target-points { color: #203930; background: #bceba2; }
.target:hover .target-art { filter: brightness(1.2) drop-shadow(0 0 5px #ffde95); }
.target:focus-visible { outline-color: #fff0b4; border-radius: 12px; }
.score-pop, .stage-flash, .hit-burst { position: absolute; pointer-events: none; z-index: 3; }
.score-pop { z-index: 4; transform: translate(-50%, -50%); color: #fff0ad; font: 800 29px/1 var(--display); text-shadow: 0 2px 1px #18342b, 0 0 8px #63471c; animation: score-pop .6s ease-out both; }
.stage-flash { width: 18px; height: 18px; border: 2px solid #dbeedc; border-radius: 50%; box-shadow: 0 0 12px #b3f0dd8c; animation: impact-ring .32s ease-out both; }
.hit-burst { width: 58px; height: 58px; transform: translate(-50%, -50%); }
.hit-burst::before, .hit-burst::after { content: ""; position: absolute; }
.hit-burst::before { inset: 8px; border-radius: 50%; border: 3px solid #ffdc79; animation: impact-ring .37s ease-out both; }
.hit-burst::after {
  inset: 0;
  background: radial-gradient(circle, #fff7c0 0 2px, transparent 3px) 6% 37% / 7px 7px no-repeat,
              radial-gradient(circle, #ffdc79 0 3px, transparent 4px) 24% 8% / 9px 9px no-repeat,
              radial-gradient(circle, #fff7c0 0 2px, transparent 3px) 64% 5% / 7px 7px no-repeat,
              radial-gradient(circle, #f9ae5c 0 3px, transparent 4px) 94% 29% / 9px 9px no-repeat,
              radial-gradient(circle, #ffdc79 0 2px, transparent 3px) 83% 75% / 7px 7px no-repeat,
              radial-gradient(circle, #fff7c0 0 3px, transparent 4px) 32% 92% / 9px 9px no-repeat,
              radial-gradient(circle, #ffdc79 0 2px, transparent 3px) 7% 76% / 7px 7px no-repeat;
  animation: impact-sparks .43s cubic-bezier(.15,.5,.35,1) both;
}
@keyframes score-pop {
  0% { translate: 0 -5px; scale: .7; }
  21% { scale: 1.17; }
  63% { opacity: 1; }
  100% { translate: 0 -39px; scale: 1; opacity: 0; }
}
@keyframes impact-ring {
  from { scale: .4; opacity: 1; }
  to { scale: 2; opacity: 0; }
}
.stage-flash { translate: -50% -50%; }
@keyframes impact-sparks {
  0% { scale: .45; opacity: 1; }
  55% { opacity: .88; }
  100% { scale: 1.8; rotate: 14deg; opacity: 0; }
}

.stage-blaster {
  --held-art: url("assets/held-starter.png");
  --muzzle-x: 39.8%;
  --muzzle-y: 14.5%;
  position: absolute;
  z-index: 1;
  bottom: -2px;
  left: 50%;
  width: clamp(144px, 19vw, 211px);
  aspect-ratio: 1;
  translate: calc(0% - var(--muzzle-x));
  rotate: var(--aim, 0deg);
  transform-origin: 55% 93%;
  pointer-events: none;
  transition: rotate .09s linear;
  filter: drop-shadow(0 5px 8px #09221d99);
}
[data-blaster="middle"] .stage-blaster {
  --held-art: url("assets/held-middle.png");
  --muzzle-x: 37.6%;
  --muzzle-y: 18.6%;
}
[data-blaster="top"] .stage-blaster {
  --held-art: url("assets/held-top.png");
  --muzzle-x: 33.2%;
  --muzzle-y: 15.2%;
}
[data-blaster="champion"] .stage-blaster {
  --held-art: url("assets/held-champion.png");
  --muzzle-x: 35.6%;
  --muzzle-y: 13.1%;
}
[data-blaster="popper"] .stage-blaster {
  --held-art: url("assets/held-popper.png");
  --muzzle-x: 35.3%;
  --muzzle-y: 13.7%;
}
[data-blaster="scope"] .stage-blaster {
  --held-art: url("assets/held-scope.png");
  --muzzle-x: 33.4%;
  --muzzle-y: 14.8%;
}
.blaster-body { position: absolute; inset: 0; transition: transform .2s ease-out; }
.blaster-sprite { position: absolute; inset: 0; background: var(--held-art) center / contain no-repeat; }
.blaster-flare {
  position: absolute;
  left: var(--muzzle-x);
  top: var(--muzzle-y);
  width: 34%;
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: 0;
  clip-path: polygon(50% 0, 59% 34%, 91% 14%, 73% 44%, 100% 56%, 68% 64%, 81% 94%, 53% 78%, 28% 100%, 33% 68%, 0 63%, 30% 45%, 13% 14%, 41% 34%);
  background: radial-gradient(circle, #fffde0 0 25%, #ffd067 28% 53%, #eb8650 55%);
}
.stage-blaster[data-firing="true"] .blaster-body { animation: blaster-kick .16s ease-out both; }
.stage-blaster[data-firing="true"] .blaster-flare { animation: blaster-flare .15s ease-out both; }
.playfield[data-state="reloading"] .blaster-body { transform: translateY(40%) rotate(12deg); }
@keyframes blaster-kick { 38% { transform: translateY(13%) scale(1.05); } }
@keyframes blaster-flare { 0% { opacity: 1; scale: .68; } 30% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .68; } }

.stage-overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: start center; padding: 12px 14px; pointer-events: none; }
.welcome {
  width: min(425px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #fdf3da;
  border: 1px solid #e6c477;
  outline: 5px solid #173c34;
  border-radius: 12px;
  background: #173c34;
  box-shadow: 0 9px 22px #101f1bc0, inset 0 0 0 3px #173c34, inset 0 0 0 4px #d6b47135;
  pointer-events: auto;
}
.welcome h2 { font: 800 clamp(19px, 3.2vw, 27px)/1.02 var(--display); letter-spacing: -.035em; }
.welcome p { margin-top: 4px; color: #e7ecdb; font-size: 12px; line-height: 1.25; }
.start-button { min-height: 41px; padding: 0 12px; color: #263523; border-color: #e2a847; background: var(--gold); box-shadow: 0 3px 0 #bd782c; }
.start-button::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.start-button:hover { background: #ffe295; }
.start-button:focus-visible { outline-color: #fff2bc; }

.game-controls {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 17px;
  border-top: 2px solid #90765a;
  background: #f2e6c9;
}
.ammo { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; }
.ammo-caption { font-size: 13px; font-weight: 800; white-space: nowrap; }
.ammo-pips { display: flex; flex-wrap: wrap; gap: 4px; }
.ammo-pips span { width: 8px; height: 15px; border: 1px solid #a46b2a; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #ffda7b, #dca148); }
.ammo-pips span[data-spent]:not([data-spent="false"]) { border-color: #b6a88c; background: #d9cbaa; }
.control-buttons { display: flex; align-items: center; gap: 6px; }
.reload-button, .sound-button { min-height: 39px; padding: 0 10px; background: #fff6df; border-color: #b8aa87; font-size: 13px; }
.reload-button:not(:disabled):hover, .sound-button:hover { background: white; }
.reload-button:disabled { opacity: .64; }
.sound-dot { width: 7px; height: 7px; border-radius: 50%; background: #347e62; }
.sound-button[aria-pressed="false"] .sound-dot { background: #857b63; }
.reload-icon { font-size: 18px; line-height: 1; }
kbd { display: inline-block; padding: 1px 4px; border: 1px solid #9e9677; border-radius: 4px; font: 600 11px/1.25 var(--mono); background: #fffbef; }
.noscript { padding: 8px 14px; color: white; }

.sidebar { display: grid; gap: 13px; }
.scoreboard { padding: 17px 17px 14px; color: #faf2dc; background: var(--green); border: 1px solid #112e27; border-radius: 15px; box-shadow: 0 4px 0 #213c3020; }
.scoreboard-header { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.scoreboard-header h2 { font: 800 19px/1 var(--display); }
.scoreboard-header h2 span { color: #edc66c; margin-right: 3px; }
.round-status { border-radius: 20px; padding: 5px 7px; background: #365748; color: #f7ecd2; font: 600 10px/1.2 var(--mono); white-space: nowrap; }
.score-main { margin: 15px 0 9px; padding: 10px 13px 12px; border: 1px solid #4b6757; border-radius: 9px; background: #102e28; }
.stat-label { display: block; margin-bottom: 4px; color: #d0e0cd; font: 600 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.score-number { display: block; color: #ffda78; font: 700 48px/.98 var(--mono); letter-spacing: -.09em; }
.score-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.score-stats > div { min-width: 0; padding: 9px 10px; border: 1px solid #4b6757; border-radius: 8px; background: #254a3d; }
.score-stats strong { font: 700 23px/1 var(--mono); }
.score-stats small { margin-left: 3px; font-size: 13px; }
#timer-value[data-urgent="true"] { color: #ffd479; }

.wallet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; background: #fbe9b9; border: 1px solid #e8c67b; border-radius: 12px; }
.wallet-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #5f421e; --ticket-hole: #ffd674; background: #ffd674; }
.wallet h2 { font: 800 16px/1.1 var(--display); }
.wallet p { margin-top: 3px; color: #5f543e; font-size: 11px; }
.wallet strong { max-width: 100%; font: 700 clamp(16px, 2vw, 22px)/1 var(--mono); overflow-wrap: anywhere; }
.target-legend { padding: 13px 13px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.target-legend h2 { margin-bottom: 6px; font: 800 16px/1.2 var(--display); }
.target-legend div { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 8px; min-height: 35px; font-size: 13px; font-weight: 700; }
.target-legend div + div { border-top: 1px solid #ece4d2; }
.target-legend strong { font: 700 11px/1 var(--mono); }
.legend-duck { padding: 2px; object-fit: contain; }

.instructions { margin-top: 29px; scroll-margin-top: 16px; }
.instructions h2 { font: 800 26px/1.2 var(--display); letter-spacing: -.025em; }
.instruction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 10px; }
.instruction-grid > div { display: grid; grid-template-columns: 34px 1fr; align-content: start; align-items: center; column-gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fdf9ee; }
.instruction-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--mint); --ticket-hole: #d8e7d2; font-size: 22px; line-height: 1; }
.instruction-grid h3 { font: 800 16px/1.2 var(--display); }
.instruction-grid p { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.45; }

.shop-dialog { width: min(530px, calc(100% - 28px)); max-height: calc(100% - 32px); padding: 0; border: 2px solid var(--green); border-radius: 15px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 45px #11251f76; }
.shop-dialog::backdrop { background: #122d25aa; }
.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; color: #fff5dc; background: var(--green); }
.shop-header h2 { font: 800 30px/1.05 var(--display); letter-spacing: -.025em; }
.shop-header p { margin-top: 4px; font-size: 14px; }
.shop-close { width: 36px; height: 36px; padding: 0; border: 1px solid #6e8877; border-radius: 7px; color: inherit; background: #315448; font-size: 25px; line-height: 1; }
.shop-tabs { display: flex; gap: 6px; padding: 13px 16px 6px; }
.shop-tabs button { flex: 1; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); font-size: 14px; font-weight: 800; }
.shop-tabs button[aria-pressed="true"] { background: var(--mint); border-color: #a5c4aa; }
.shop-items { display: grid; gap: 8px; padding: 7px 16px 0; }
.shop-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); }
.shop-card-art { display: grid; place-items: center; width: 39px; height: 39px; object-fit: contain; font-size: 24px; }
.shop-card:has(> .shop-card-art[data-blaster]) { grid-template-columns: 67px minmax(0, 1fr) auto; }
.shop-card-art[data-blaster] {
  --blaster-shell: #79b4a0;
  --blaster-shadow: #307360;
  position: relative;
  width: 100%;
  border: 1px solid #e9dec4;
  border-radius: 7px;
  background: #f2e8ce;
}
.shop-card-art[data-blaster="middle"] { --blaster-shell: #a2bde7; --blaster-shadow: #5178aa; }
.shop-card-art[data-blaster="top"] { --blaster-shell: #e9b561; --blaster-shadow: #a66542; }
.shop-card-art[data-blaster="champion"] { --blaster-shell: #dc8ca8; --blaster-shadow: #964b68; }
.shop-card-art[data-blaster="popper"] { --blaster-shell: #ee9862; --blaster-shadow: #aa523c; }
.shop-card-art[data-blaster="scope"] { --blaster-shell: #a68ad1; --blaster-shadow: #6a528a; }
.shop-card-art[data-blaster]::before {
  content: "";
  position: absolute;
  inset: 7px 4px 5px;
  clip-path: var(--profile);
  background: linear-gradient(0deg, #232c2655, transparent 52%, #fff0cc55),
    linear-gradient(90deg, var(--blaster-shadow) 0 28%, var(--blaster-shell) 28% 79%, var(--blaster-shadow) 79% 88%, #f09c4b 88%);
}
.shop-card-art[data-blaster="starter"] { --profile: polygon(0 39%, 30% 25%, 66% 24%, 66% 15%, 100% 15%, 100% 31%, 64% 31%, 61% 44%, 43% 44%, 34% 60%, 24% 55%, 15% 82%, 0 85%); }
.shop-card-art[data-blaster="middle"] { --profile: polygon(6% 37%, 26% 28%, 43% 22%, 78% 26%, 78% 20%, 95% 20%, 95% 39%, 68% 41%, 56% 52%, 35% 52%, 29% 78%, 8% 79%); }
.shop-card-art[data-blaster="top"] { --profile: polygon(0 41%, 12% 31%, 40% 30%, 40% 7%, 64% 7%, 64% 30%, 100% 30%, 100% 43%, 63% 43%, 60% 59%, 41% 59%, 33% 88%, 23% 88%, 26% 57%, 12% 67%, 0 64%); }
.shop-card-art[data-blaster="champion"] { --profile: polygon(0 43%, 31% 34%, 31% 20%, 100% 20%, 100% 59%, 58% 59%, 53% 82%, 41% 82%, 40% 61%, 17% 76%, 0 73%); }
.shop-card-art[data-blaster="popper"] { --profile: polygon(2% 32%, 13% 25%, 23% 25%, 23% 6%, 44% 6%, 44% 23%, 100% 23%, 94% 34%, 100% 43%, 94% 52%, 100% 61%, 94% 71%, 52% 71%, 47% 97%, 33% 97%, 31% 70%, 12% 64%, 2% 55%); }
.shop-card-art[data-blaster="scope"] { --profile: polygon(4% 43%, 26% 38%, 26% 28%, 45% 28%, 45% 21%, 36% 21%, 36% 8%, 63% 8%, 63% 21%, 56% 21%, 56% 28%, 71% 28%, 71% 42%, 100% 42%, 100% 54%, 63% 56%, 49% 67%, 35% 67%, 29% 83%, 10% 83%); }
.shop-card-art:is([data-blaster="top"], [data-blaster="scope"])::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 40%;
  width: 20%;
  height: 4px;
  border-radius: 2px;
  background: #514356;
  box-shadow: inset -3px 0 #fae489;
}
.shop-card-art[data-blaster="scope"]::after { box-shadow: inset -3px 0 #fae489, 0 6px 0 #514356; }
.shop-duck-art { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
[data-duck="gold"] .shop-duck-art { filter: saturate(1.45) hue-rotate(-20deg); }
[data-duck="bonus"] .shop-duck-art { filter: hue-rotate(85deg) saturate(.85); }
.shop-card-art[data-ammo] {
  position: relative;
  border: 1px solid #e9dec4;
  border-radius: 7px;
  background: #f2e8ce;
}
.shop-card-art[data-ammo]::before, .shop-card-art[data-ammo="sixteen-pack"]::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 9px;
  height: 21px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(90deg, #6d4b2d, #d69553 45%, #f6cb82 62%, #9d622f);
}
.shop-card-art[data-ammo="six-pack"]::before { width: 10px; height: 10px; bottom: 12px; border-radius: 50%; }
.shop-card-art[data-ammo="eight-pack"]::before { height: 15px; bottom: 10px; }
.shop-card-art[data-ammo="ten-pack"]::before { width: 7px; height: 25px; }
.shop-card-art[data-ammo="twelve-pack"]::before { width: 16px; height: 24px; border-radius: 0; clip-path: polygon(52% 0, 100% 100%, 0 100%); }
.shop-card-art[data-ammo="fourteen-pack"]::before { width: 14px; height: 24px; border-radius: 0; clip-path: polygon(0 0, 49% 26%, 100% 0, 81% 100%, 19% 100%); }
.shop-card-art[data-ammo="sixteen-pack"]::before { transform: translateX(-5px) rotate(-12deg); }
.shop-card-art[data-ammo="sixteen-pack"]::after { transform: translateX(5px) rotate(12deg); }
.shop-card-art[data-ammo="eighteen-pack"]::before { width: 18px; height: 26px; border-radius: 0; clip-path: polygon(23% 74%, 23% 21%, 39% 0, 66% 0, 81% 21%, 81% 74%, 100% 74%, 100% 100%, 0 100%, 0 74%); }
.shop-card-name { font: 800 16px/1.15 var(--display); }
.shop-card-description { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.shop-card-action { padding: 6px 8px; border: 1px solid #c59647; border-radius: 7px; background: #fce0a2; font-size: 12px; font-weight: 800; }
.shop-card-action[aria-disabled="true"] { border-color: var(--line); background: var(--paper); cursor: default; }
.shop-note { min-height: 37px; padding: 8px 16px 12px; font-size: 13px; }

@media (max-width: 840px) {
  .header-inner, .page { width: calc(100% - 36px); }
  .arcade { grid-template-columns: minmax(0, 1fr) 220px; gap: 13px; }
  .scoreboard { padding-inline: 12px; }
  .scoreboard-header h2 { font-size: 17px; }
  .instruction-grid { gap: 8px; }
}

@media (max-width: 655px) {
  .header-inner, .page { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; }
  nav { gap: 11px; }
  .nav-link { font-size: 12px; }
  .shop-button { min-height: 37px; padding-inline: 8px; font-size: 12px; gap: 6px; }
  .shop-button .icon-ticket { width: 14px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-icon { width: 35px; height: 35px; border-radius: 8px; }
  .brand-icon img { width: 23px; height: 22px; }
  .brand small { font-size: 9px; }
  .page { padding-top: 23px; }
  .intro { margin-bottom: 18px; }
  .intro h1 { letter-spacing: -.07em; }
  .intro p { margin-top: 8px; line-height: 1.4; }
  .arcade { grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
  .booth, .scoreboard { grid-column: 1 / -1; }
  .sidebar { display: contents; }
  .scoreboard { order: -1; display: grid; grid-template-columns: 1fr 2fr; gap: 5px; padding: 8px; border-radius: 11px; }
  .scoreboard-header { grid-column: 1 / -1; }
  .scoreboard-header h2 { font-size: 14px; }
  .round-status { padding-block: 3px; }
  .score-main { margin: 0; padding: 6px; }
  .score-number { font-size: 23px; }
  .score-stats { gap: 5px; }
  .score-stats > div { padding: 6px; }
  .score-stats strong { font-size: 20px; }
  .stat-label { font-size: 9px; letter-spacing: .04em; }
  .awning { height: 45px; }
  .playfield { height: clamp(282px, 72vw, 385px); }
  .welcome { width: min(340px, 100%); padding: 8px; }
  .welcome p { font-size: 11px; }
  .start-button { min-height: 38px; padding-inline: 7px; gap: 5px; font-size: 13px; }
  .game-controls { min-height: 53px; padding: 6px 8px; }
  .reload-button, .sound-button { min-height: 36px; padding-inline: 6px; gap: 4px; font-size: 12px; }
  .reload-button kbd { display: none; }
  .wallet { grid-template-columns: auto 1fr; padding: 9px; gap: 6px; align-content: center; }
  .wallet-icon { width: 27px; height: 27px; }
  .wallet strong { grid-column: 2; }
  .wallet p { display: none; }
  .target-legend { padding: 8px; }
  .target-legend h2 { font-size: 14px; }
  .target-legend div { grid-template-columns: 19px 1fr auto; gap: 3px; font-size: 11px; }
  .target-legend strong { font-size: 10px; }
  .legend-duck { width: 19px; height: 19px; padding: 0; }
  .instruction-grid { grid-template-columns: 1fr; }
}

@media (max-width: 365px) {
  .nav-link, .title-spark { display: none; }
  .intro h1 { font-size: 39px; }
  .shop-card { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 6px; padding: 6px; }
  .shop-card-art { width: 28px; height: 28px; }
  .shop-card:has(> .shop-card-art[data-blaster]) { grid-template-columns: 49px minmax(0, 1fr) auto; }
  .shop-card-art[data-blaster] { height: 32px; }
  .shop-tabs { gap: 4px; padding-inline: 8px; }
  .shop-tabs button { padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
