@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800&family=Rubik:wght@500;700;900&display=swap");

:root {
  --ink: #221b2d;
  --paper: #fff9df;
  --yellow: #ffd33d;
  --orange: #ff8b32;
  --red: #ec3151;
  --blue: #52bfd3;
  --green: #49b675;
  --edge: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }

body {
  color: var(--ink);
  background: #e9d7b4;
  font-family: "Rubik", system-ui, sans-serif;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }

.game {
  height: 100dvh;
  min-height: 520px;
  display: grid;
  grid-template-rows: 64px 62px minmax(250px, 1fr) 186px;
  overflow: hidden;
  background: var(--paper);
}

.topbar {
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(10px, 2.5vw, 32px);
  border-bottom: var(--edge);
  background: var(--yellow);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 42px; flex: 0 0 auto;
  color: #fff; background: var(--red); border: 2px solid var(--ink); border-radius: 52% 48% 50% 45%;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-5deg);
  font: 900 15px/1 "Barlow Condensed", sans-serif; letter-spacing: -.5px;
}
.brand strong { display: block; font: italic 900 clamp(21px, 3vw, 31px)/.8 "Barlow Condensed", sans-serif; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 4px; opacity: .72; font: 700 9px/1 "Barlow Condensed", sans-serif; letter-spacing: .09em; text-transform: uppercase; }

.wallet {
  display: flex; align-items: center; gap: 6px; min-width: 100px; padding: 6px 11px;
  background: #fff5bc; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 rgba(34,27,45,.28);
  font: 900 19px/1 "Barlow Condensed", sans-serif;
}
.coin-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: #ffb51c; }
.soul-count { display: flex; gap: 4px; align-items: center; margin-left: 6px; padding-left: 8px; border-left: 2px solid rgba(34,27,45,.25); }
.soul-count b { color: #804fd7; }
.round-button {
  width: 39px; height: 39px; padding: 0; border: 2px solid var(--ink); border-radius: 50%;
  background: #fff; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; font-size: 19px;
}
.round-button:active { transform: translate(3px,3px); box-shadow: none; }

.target-hud {
  position: relative; z-index: 15; display: grid; grid-template-columns: minmax(170px, .45fr) minmax(240px, 1fr);
  align-items: center; gap: clamp(12px, 4vw, 60px); padding: 8px clamp(12px, 5vw, 70px);
  border-bottom: var(--edge); background: #fffdfa;
}
.target-title span, .hp-copy span { display: block; color: #776e6a; font: 800 9px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; }
.target-title strong { display: block; overflow: hidden; margin-top: 3px; font: italic 900 clamp(19px, 3vw, 29px)/1 "Barlow Condensed", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.hp-copy { display: flex; justify-content: space-between; margin-bottom: 5px; }
.hp-copy strong { font: 800 11px/1 "Barlow Condensed", sans-serif; }
.hp-track { position: relative; height: 18px; overflow: hidden; background: #e7e0d7; border: 2px solid var(--ink); border-radius: 5px; }
.hp-track::after { content: ""; position: absolute; inset: 2px; background: repeating-linear-gradient(105deg, transparent 0 11px, rgba(255,255,255,.22) 11px 15px); pointer-events: none; }
.hp-fill, .hp-track i { position: absolute; inset: 0 auto 0 0; width: 100%; transition: width 120ms ease-out; }
.hp-track i { z-index: 0; background: #ff9f38; transition-duration: 440ms; }
.hp-fill { z-index: 1; background: var(--red); }

.arena {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(#92e2e7 0 66%, #f4c763 66% 100%);
}
.sunburst { position: absolute; inset: 0; z-index: -3; opacity: .24; background: repeating-conic-gradient(from 250deg at 72% 60%, transparent 0 8deg, #fff 9deg 15deg); }
.arena::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .1;
  background-image: radial-gradient(var(--ink) .8px, transparent .8px); background-size: 8px 8px;
}
.arena::after { content: ""; position: absolute; left: 0; right: 0; bottom: 31%; z-index: -1; height: 4px; background: var(--ink); }
.floor-shadow { position: absolute; left: 5%; right: 4%; bottom: 16%; height: 13%; border-radius: 50%; background: rgba(91,66,46,.15); transform: skewX(-12deg); }

.punch-rig {
  --arm-width: clamp(320px, 43vw, 610px); --arm-thickness: clamp(62px, 9vw, 104px);
  position: absolute; z-index: 8; left: -36px; top: 47%;
  width: var(--arm-width); height: var(--arm-thickness); transform-origin: 2% 50%;
  transition: transform 220ms cubic-bezier(.2,.8,.3,1), width 80ms linear;
}
.punch-rig .arm { width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(2px 3px 0 rgba(34,27,45,.18)); }
.punch-rig.has-aura .arm, .punch-rig.has-aura-temp .arm { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 15px #ffe445) drop-shadow(2px 3px 0 rgba(34,27,45,.18)); }
.arm-detail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.lightning { position: absolute; right: -23%; top: -50%; width: 63%; height: 190%; z-index: 4; animation: sparkBlink .18s steps(2) infinite; }
.punch-rig.charging { transition: none; }
.punch-rig.punching { animation: punchSnap 250ms cubic-bezier(.1,.82,.22,1); }

.target-wrap { position: absolute; right: clamp(25px, 9vw, 145px); bottom: 16%; z-index: 5; display: grid; place-items: end center; width: clamp(125px, 22vw, 280px); height: 68%; transform-origin: 50% 100%; }
.target-wrap > img#target-image { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform: scale(var(--target-scale, 1)); transform-origin: 50% 100%; filter: drop-shadow(3px 4px 0 rgba(34,27,45,.2)); }
.target-shadow { position: absolute; bottom: 0; width: 90%; height: 12%; border-radius: 50%; background: rgba(34,27,45,.2); }
.target-wrap.hit img#target-image { animation: targetHit 220ms ease-out; }
.target-wrap.breaking img#target-image { animation: targetBreak 520ms cubic-bezier(.2,.8,.3,1) forwards; }
.target-wrap.police img#target-image { animation: copBob 500ms ease-in-out infinite alternate; }
.police-callout { position: absolute; z-index: 9; top: -2%; right: 44%; width: 170px; padding: 10px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 4px 4px 0 var(--ink); font: 900 15px/1 "Barlow Condensed", sans-serif; text-align: center; transform: rotate(-4deg); }
.police-callout::after { content: ""; position: absolute; right: 12px; bottom: -12px; width: 17px; height: 17px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: #fff; transform: rotate(45deg); }

.chain-debuff { position: absolute; z-index: 10; left: 1%; top: 61%; width: clamp(110px, 13vw, 175px); }
.chain-debuff img { width: 100%; }
.chain-debuff span { position: absolute; left: 58%; bottom: 4%; width: 55px; color: white; font: 900 11px/1 "Barlow Condensed", sans-serif; text-align: center; transform: rotate(-8deg); }

.gear-icons { position: absolute; left: clamp(12px, 2vw, 28px); bottom: 8px; z-index: 14; display: flex; gap: 7px; }
.gear-icon { display: grid; place-items: center; width: 48px; height: 48px; padding: 5px; border: 2px solid var(--ink); border-radius: 9px; background: rgba(255,249,223,.92); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.gear-icon:nth-child(2) { transform: rotate(2deg); }
.gear-icon[hidden] { display: none; }
.gear-icon img { display: block; max-width: 100%; max-height: 100%; }

.charge-readout { position: absolute; left: 50%; bottom: 3%; z-index: 12; width: min(210px, 26vw); opacity: 0; transform: translate(-50%,8px); transition: .15s; }
.charge-readout.active { opacity: 1; transform: translate(-50%,0); }
.charge-readout > span { font: 800 9px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; }
.charge-readout > strong { margin-left: 6px; font: italic 900 20px/1 "Barlow Condensed", sans-serif; }
.charge-readout > div { height: 10px; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.charge-readout i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--red)); }

.effects { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.particle { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border: 2px solid var(--ink); background: var(--c); animation: particleFly 620ms ease-out forwards; }
.damage-number { position: absolute; left: 69%; top: 35%; z-index: 30; color: #fff; -webkit-text-stroke: 2px var(--ink); font: italic 900 clamp(28px, 6vw, 65px)/1 "Barlow Condensed", sans-serif; filter: drop-shadow(3px 4px 0 var(--ink)); animation: damageFloat 720ms ease-out forwards; }
.damage-number.critical { color: var(--yellow); font-size: clamp(38px, 8vw, 82px); }
.coin-pop { position: absolute; z-index: 30; color: #ffcf25; -webkit-text-stroke: 1px var(--ink); font: 900 22px/1 "Barlow Condensed", sans-serif; animation: coinFly 900ms ease-out forwards; }
.impact-flash { position: absolute; left: 63%; top: 27%; width: 180px; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0,60% 34%,84% 15%,69% 41%,100% 49%,67% 58%,87% 84%,59% 68%,48% 100%,40% 68%,12% 88%,30% 58%,0 47%,34% 40%,18% 12%,41% 33%); animation: flashOut 220ms ease-out forwards; }
.announcer { position: absolute; z-index: 40; left: 50%; top: 16%; width: 80%; pointer-events: none; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); font: italic 900 clamp(30px, 7vw, 80px)/.9 "Barlow Condensed", sans-serif; text-align: center; opacity: 0; transform: translate(-50%,-50%) rotate(-4deg) scale(.2); }
.announcer.show { animation: announce 900ms cubic-bezier(.1,.8,.25,1); }
.speed-lines span { position: absolute; z-index: 2; left: 22%; top: var(--top); width: 0; height: 3px; background: var(--ink); opacity: 0; }
.speed-lines.go span { animation: speedLine 240ms ease-out; }

.controls { z-index: 20; overflow: hidden; border-top: var(--edge); background: #f8efcf; }
.shop-head { height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 5px clamp(10px, 2vw, 26px); border-bottom: 2px solid var(--ink); background: #ece0b8; }
.shop-head div { display: flex; align-items: baseline; gap: 10px; }
.shop-head span { color: #6e655b; font: 800 9px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; }
.shop-head strong { font: italic 900 15px/1 "Barlow Condensed", sans-serif; }
.control-row { height: calc(100% - 37px); display: grid; grid-template-columns: minmax(0,1fr) clamp(150px, 23vw, 260px); align-items: stretch; }
.upgrade-strip { display: flex; gap: 9px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 10px 14px 13px; scrollbar-color: var(--ink) transparent; scrollbar-width: thin; }
.upgrade-card {
  position: relative; flex: 0 0 142px; min-width: 0; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: 1fr auto;
  gap: 2px 7px; padding: 8px; border: 2px solid var(--ink); border-radius: 9px; background: #fffdf6; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; text-align: left;
}
.upgrade-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 3px 5px 0 var(--ink); }
.upgrade-card:active:not(:disabled) { transform: translate(3px,3px); box-shadow: none; }
.upgrade-card:disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .58; }
.upgrade-card.affordable { background: #fff7bb; animation: shopNudge 1.2s ease-in-out infinite; }
.upgrade-card .up-icon { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 22px; }
.upgrade-card strong { align-self: end; overflow: hidden; font: 900 14px/1 "Barlow Condensed", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.upgrade-card small { color: #756a62; font: 700 9px/1.1 "Barlow Condensed", sans-serif; }
.upgrade-card .cost { grid-column: 1 / 3; justify-self: stretch; padding-top: 5px; border-top: 1px solid #d7cdbd; color: var(--red); font: 900 12px/1 "Barlow Condensed", sans-serif; text-align: center; }
.upgrade-card.locked::after { content: "NEXT"; position: absolute; top: -7px; right: 5px; padding: 2px 5px; border: 1px solid var(--ink); background: var(--blue); font: 900 8px/1 "Barlow Condensed", sans-serif; }

.punch-button {
  position: relative; overflow: hidden; margin: 9px 13px 13px 5px; border: 4px solid var(--ink); border-radius: 18px;
  background: linear-gradient(#ff5a52, #dd1f42); box-shadow: 0 7px 0 #8b1733, 0 10px 0 var(--ink); color: white; cursor: pointer; transform: translateY(-2px); touch-action: none;
}
.punch-button::after { content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(255,255,255,.45); border-radius: 10px; pointer-events: none; }
.punch-button small, .punch-button strong { position: relative; z-index: 3; display: block; pointer-events: none; text-shadow: 2px 3px 0 #7b1530; }
.punch-button small { margin-bottom: 2px; font: 800 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .15em; }
.punch-button strong { font: italic 900 clamp(32px, 5vw, 58px)/.85 "Barlow Condensed", sans-serif; }
.punch-button:active, .punch-button.charging { transform: translateY(6px); box-shadow: 0 1px 0 #8b1733, 0 3px 0 var(--ink); }
.button-charge { position: absolute; z-index: 1; left: 0; bottom: 0; width: 0; height: 100%; background: linear-gradient(90deg, #ff7a32, #ffd23a); opacity: .75; }
.button-shine { position: absolute; left: -20%; top: -100%; width: 35%; height: 300%; background: rgba(255,255,255,.16); transform: rotate(18deg); animation: buttonShine 3s ease-in-out infinite; }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(34,27,45,.72); backdrop-filter: blur(4px); }
.modal { position: fixed; z-index: 100; left: 50%; top: 50%; width: min(420px, calc(100% - 28px)); padding: 28px; border: 4px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 9px 9px 0 var(--ink); transform: translate(-50%,-50%) rotate(-1deg); }
.modal[hidden], .modal-backdrop[hidden] { display: none; }
.modal-close { position: absolute; right: 10px; top: 8px; border: 0; background: none; cursor: pointer; font: 900 28px/1 sans-serif; }
.modal-kicker { margin: 0 0 6px; color: var(--red); font: 900 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .15em; }
.modal h1 { margin: 0 0 20px; font: italic 900 34px/1 "Barlow Condensed", sans-serif; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 2px solid var(--ink); }
.setting-row span strong, .setting-row span small { display: block; }
.setting-row span strong { font: 900 16px/1 "Barlow Condensed", sans-serif; }
.setting-row span small { margin-top: 4px; color: #756a62; font-size: 10px; }
.setting-row button { min-width: 65px; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; font: 900 13px/1 "Barlow Condensed", sans-serif; }
.save-note { color: #756a62; font-size: 10px; }
.reset-button, .rebirth-button { width: 100%; padding: 13px; border: 3px solid var(--ink); border-radius: 8px; background: var(--red); box-shadow: 4px 4px 0 var(--ink); color: #fff; cursor: pointer; font: 900 16px/1 "Barlow Condensed", sans-serif; }
.start-modal { max-width: 390px; padding: 34px 28px 30px; text-align: center; background: radial-gradient(circle at 50% 10%, #fff, #fff8d4 72%); }
.start-modal h1 { margin-bottom: 25px; font-size: clamp(34px, 8vw, 48px); line-height: .95; }
.start-button { width: 100%; padding: 15px; border: 3px solid var(--ink); border-radius: 9px; background: var(--yellow); box-shadow: 4px 5px 0 var(--ink); cursor: pointer; font: italic 900 21px/1 "Barlow Condensed", sans-serif; }
.start-button:active { transform: translate(4px,5px); box-shadow: none; }
.rebirth-modal { text-align: center; background: radial-gradient(circle at 50% 25%, #fff, #f4e4ff 55%, #c4a3ee); }
.rebirth-modal p:not(.modal-kicker) { line-height: 1.5; }
.cosmic-fist { font-size: 72px; filter: drop-shadow(4px 5px 0 var(--ink)); animation: cosmicFloat 1.2s ease-in-out infinite alternate; }
.rebirth-button { margin-top: 12px; background: #7348c9; font-size: 22px; }
.rebirth-button span { color: var(--yellow); }

.game.shake { animation: screenShake 190ms linear; }
.game.big-shake { animation: bigShake 360ms linear; }
.game.chain-mode .arena { filter: saturate(.82); }

@keyframes punchSnap { 0% { transform: translateX(-25%) scaleX(.6) rotate(-6deg); } 38% { transform: translateX(43%) scaleX(1.32) rotate(1deg); } 58% { transform: translateX(47%) scaleX(1.35); } 100% { transform: none; } }
@keyframes targetHit { 0%,100% { transform: scale(var(--target-scale,1)); } 25% { transform: translateX(18px) rotate(5deg) scale(var(--target-scale,1)) scaleX(.94) scaleY(1.05); } 60% { transform: translateX(-4px) rotate(-2deg) scale(var(--target-scale,1)); } }
@keyframes targetBreak { 0% { transform: scale(var(--target-scale,1)); opacity: 1; } 28% { transform: translateX(25px) rotate(9deg) scale(var(--target-scale,1)) scale(1.08); } 100% { transform: translate(42px, 70px) rotate(24deg) scale(.25); opacity: 0; } }
@keyframes particleFly { to { transform: translate(var(--dx),var(--dy)) rotate(var(--r)); opacity: 0; } }
@keyframes damageFloat { 0% { transform: translate(-50%,0) scale(.3) rotate(-6deg); opacity: 0; } 18% { transform: translate(-50%,-15px) scale(1.18) rotate(3deg); opacity: 1; } 100% { transform: translate(-50%,-95px) scale(.86) rotate(-3deg); opacity: 0; } }
@keyframes coinFly { 0% { transform: translate(0,0) rotate(0) scale(.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(var(--dx),var(--dy)) rotate(540deg) scale(1); opacity: 0; } }
@keyframes flashOut { from { transform: scale(.1) rotate(0); opacity: 1; } to { transform: scale(1.6) rotate(20deg); opacity: 0; } }
@keyframes announce { 0% { transform: translate(-50%,-50%) rotate(-6deg) scale(.2); opacity: 0; } 16%,65% { transform: translate(-50%,-50%) rotate(-3deg) scale(1); opacity: 1; } 100% { transform: translate(-50%,-80%) rotate(3deg) scale(1.2); opacity: 0; } }
@keyframes speedLine { 0% { opacity: .7; width: 2%; } 100% { opacity: 0; width: 70%; transform: translateX(30%); } }
@keyframes screenShake { 0%,100% { transform: none; } 25% { transform: translate(-3px,2px); } 50% { transform: translate(3px,-2px); } 75% { transform: translate(-2px,-1px); } }
@keyframes bigShake { 0%,100% { transform: none; } 15% { transform: translate(-7px,5px) rotate(-.3deg); } 30% { transform: translate(8px,-5px); } 45% { transform: translate(-6px,-2px); } 60% { transform: translate(6px,4px); } 80% { transform: translate(-3px,2px); } }
@keyframes sparkBlink { 50% { opacity: .45; transform: scale(1.05); } }
@keyframes copBob { to { transform: scale(var(--target-scale,1)) translateY(-4px) rotate(2deg); } }
@keyframes shopNudge { 50% { transform: translateY(-2px); } }
@keyframes buttonShine { 0%,65% { transform: translateX(0) rotate(18deg); } 90%,100% { transform: translateX(450%) rotate(18deg); } }
@keyframes cosmicFloat { to { transform: translateY(-8px) rotate(5deg); } }

@media (max-width: 700px) {
  .game { min-height: 560px; grid-template-rows: 55px 57px minmax(220px,1fr) 260px; }
  .topbar { gap: 8px; }
  .brand-mark { width: 39px; height: 35px; font-size: 12px; }
  .brand strong { font-size: 21px; }
  .brand small { display: none; }
  .wallet { min-width: 75px; padding: 5px 7px; font-size: 16px; }
  .coin-icon { width: 21px; height: 21px; }
  .round-button { width: 34px; height: 34px; }
  .target-hud { grid-template-columns: 42% 1fr; padding: 7px 10px; gap: 10px; }
  .target-title strong { font-size: 18px; }
  .hp-copy span { display: none; }
  .hp-copy { justify-content: flex-end; margin-bottom: 3px; }
  .hp-track { height: 15px; }
  .punch-rig { left: -5%; top: 53%; --arm-width: 60vw; --arm-thickness: 15vw; }
  .chain-debuff { left: 0; top: 65%; width: 118px; }
  .gear-icons { bottom: 7px; gap: 5px; }
  .gear-icon { width: 42px; height: 42px; padding: 4px; }
  .target-wrap { right: 3%; bottom: 15%; width: 33vw; height: 67%; }
  .police-callout { width: 130px; right: 34%; font-size: 12px; }
  .control-row { grid-template-columns: minmax(0,1fr); grid-template-rows: 96px minmax(0,1fr); grid-template-areas: "punch" "shop"; }
  .shop-hint { display: none; }
  .upgrade-strip { grid-area: shop; gap: 7px; padding: 7px 9px 12px; }
  .upgrade-card { flex-basis: 132px; grid-template-columns: 34px 1fr; padding: 7px; }
  .upgrade-card .up-icon { width: 33px; height: 33px; font-size: 18px; }
  .upgrade-card strong { font-size: 12px; }
  .punch-button { grid-area: punch; width: auto; min-width: 0; margin: 8px 10px 12px; border-radius: 14px; }
  .punch-button strong { font-size: 40px; }
  .charge-readout { bottom: 2%; width: 31vw; }
  .damage-number { left: 73%; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .game { min-height: 360px; grid-template-rows: 48px 48px minmax(160px,1fr) 118px; }
  .brand small, .shop-hint { display: none; }
  .target-wrap { height: 77%; bottom: 10%; width: 170px; }
  .shop-head { height: 29px; }
  .control-row { height: calc(100% - 29px); grid-template-columns: minmax(0,1fr) 150px; grid-template-rows: minmax(0,1fr); grid-template-areas: "shop punch"; }
  .upgrade-strip { padding: 6px 10px 8px; }
  .upgrade-card { flex-basis: 130px; padding: 5px 7px; grid-template-columns: 30px 1fr; }
  .upgrade-card .up-icon { width: 28px; height: 28px; font-size: 16px; }
  .punch-button { margin: 5px 10px 11px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
