:root {
  --coral: #ff6672;
  --coral-dark: #e94a59;
  --pink: #ffe2e6;
  --yellow: #ffd95d;
  --yellow-dark: #f1b93b;
  --mint: #a9dfcf;
  --ink: #2d2933;
  --muted: #756e7c;
  --paper: #fffaf5;
  --white: #ffffff;
  --brown: #6b402d;
  --shadow: 0 14px 35px rgba(102, 54, 58, 0.14);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #f8f1eb;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    #f8f1eb;
  background-size: 24px 24px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button { font: inherit; }
button, .target { touch-action: none; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 0 55px rgba(91, 58, 48, 0.11);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(73, 52, 49, 0.08);
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-5deg);
}
.brand p, .brand h1 { margin: 0; }
.brand p { color: var(--muted); font-size: 11px; font-weight: 700; }
.brand h1 { margin-top: 1px; font-size: 21px; line-height: 1.15; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.merit-pill {
  display: flex;
  align-items: baseline;
  gap: 5px;
  height: 42px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}
.merit-pill span { font-size: 15px; }
.merit-pill strong { min-width: 16px; font-size: 20px; line-height: 1; }
.merit-pill small { font-size: 11px; font-weight: 800; }

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}
.icon-button.muted { color: #aaa2a8; box-shadow: none; transform: translate(2px, 2px); }

main { min-height: calc(100dvh - 176px); }
.view { padding: 22px 18px 26px; }
.view[hidden] { display: none; }
.game-copy { text-align: center; }
.game-copy h2 { margin: 4px 0 4px; font-size: clamp(24px, 7vw, 34px); line-height: 1.2; letter-spacing: 0; }
.game-copy > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow {
  margin: 0;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.game-stage {
  position: relative;
  max-width: 560px;
  min-height: 570px;
  margin: 12px auto 0;
  padding: 14px 12px 16px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 85% 23%, rgba(255, 255, 255, 0.75) 0 4px, transparent 5px),
    var(--pink);
  box-shadow: 5px 6px 0 var(--ink);
}

.ambient {
  position: absolute;
  padding: 5px 8px;
  border: 1px dashed rgba(45, 41, 51, 0.4);
  border-radius: 6px;
  color: rgba(45, 41, 51, 0.56);
  background: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-5deg);
}
.ambient-one { top: 102px; left: 14px; }
.ambient-two { top: 150px; right: 12px; transform: rotate(6deg); }

.charge-wrap { position: relative; z-index: 10; width: min(90%, 380px); margin: 0 auto; }
.charge-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.charge-labels strong { color: var(--coral-dark); font-size: 18px; }
.charge-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
}
.charge-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint) 0 33%, var(--yellow) 33% 68%, var(--coral) 68%);
  transition: width 80ms linear;
}
.charge-stop { position: absolute; top: 0; width: 1.5px; height: 100%; background: rgba(45, 41, 51, 0.55); }
.stop-one { left: 33%; }
.stop-two { left: 68%; }

.playfield { position: relative; height: 405px; margin-top: 0; }
.target {
  position: absolute;
  z-index: 5;
  bottom: 38px;
  left: 50%;
  width: min(84%, 360px);
  height: 345px;
  padding: 0;
  overflow: visible;
  border: 0;
  outline: none;
  background: transparent;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E%F0%9F%94%A8%3C/text%3E%3C/svg%3E") 8 24, pointer;
  transform: translateX(-50%);
}
.person {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 92%;
  transition: transform 420ms cubic-bezier(.2,.9,.35,1);
}
.person img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; filter: drop-shadow(0 8px 5px rgba(60, 34, 37, 0.2)); }
.target:focus-visible .person { filter: drop-shadow(0 0 0.4rem var(--yellow-dark)); }

.face { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.blush { position: absolute; top: 39%; width: 11%; height: 5%; border-radius: 50%; background: rgba(255, 92, 112, 0.42); filter: blur(1px); }
.blush-left { left: 26%; }
.blush-right { left: 54%; }
.mouth {
  position: absolute;
  top: 48.8%;
  left: 42%;
  width: 10%;
  height: 5.5%;
  border-bottom: 4px solid #4b2429;
  border-radius: 0 0 50% 50%;
  transform: rotate(2deg);
}
.face-cry { opacity: 0; }
.tear {
  position: absolute;
  top: 37%;
  width: 8%;
  height: 15%;
  border-radius: 48% 52% 55% 45%;
  background: linear-gradient(145deg, rgba(255,255,255,.92), #66c9ed 60%, #2aa9de);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.5), 0 2px 0 rgba(25,112,159,.25);
  transform-origin: 50% 0;
}
.tear-left { left: 29%; transform: rotate(4deg) scale(.6); }
.tear-right { left: 55%; transform: rotate(-5deg) scale(.6); }
.cry-mouth {
  position: absolute;
  top: 49%;
  left: 42%;
  width: 11%;
  height: 7%;
  border: 4px solid #4b2429;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.ouch-bubble {
  position: absolute;
  z-index: 8;
  top: 18%;
  right: 1%;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 7px 7px 7px 2px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: rotate(8deg) scale(.7);
}

.hole { position: absolute; z-index: 7; bottom: 6px; left: 50%; width: 96%; height: 100px; transform: translateX(-50%); pointer-events: none; }
.hole-rim {
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #4c2c2e;
  box-shadow: inset 0 8px 0 rgba(0,0,0,.12);
}
.hole-front {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 7%;
  display: grid;
  width: 86%;
  height: 70px;
  place-items: center;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 48% 48%;
  background: #9e654a;
  box-shadow: inset 0 -12px 0 rgba(91,48,37,.15);
}
.hole-front::before { content: ""; position: absolute; inset: 9px 10px auto; height: 3px; background: rgba(91,48,37,.28); box-shadow: 18px 16px 0 rgba(91,48,37,.25), -8px 32px 0 rgba(91,48,37,.22); }
.hole-front span { z-index: 2; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 5px; background: #f3c87e; font-size: 11px; font-weight: 900; transform: rotate(-2deg); }

.hammer { position: absolute; z-index: 12; top: 70px; right: 7%; width: 122px; height: 152px; pointer-events: none; transform: rotate(20deg); transform-origin: 76% 82%; transition: transform 180ms ease; filter: drop-shadow(4px 6px 0 rgba(45,41,51,.16)); }
.hammer-head { position: absolute; top: 3px; left: 3px; width: 105px; height: 62px; border: 3px solid var(--ink); border-radius: 14px 14px 10px 10px; background: #995d3d; box-shadow: inset 0 -11px 0 rgba(80,38,24,.18); transform: rotate(-8deg); }
.hammer-head::before, .hammer-head::after { content: ""; position: absolute; top: 9px; width: 9px; height: 34px; border-radius: 50%; background: rgba(255,218,155,.23); }
.hammer-head::before { left: 17px; }
.hammer-head::after { right: 16px; }
.hammer-head span { position: absolute; inset: 25px 15px auto; height: 3px; background: rgba(73,35,23,.32); }
.hammer-handle { position: absolute; top: 50px; left: 53px; width: 27px; height: 103px; border: 3px solid var(--ink); border-radius: 6px 6px 12px 12px; background: #e5ae68; transform: rotate(-8deg); }

.impact-lines { position: absolute; z-index: 15; top: 108px; left: 52%; width: 100px; height: 80px; opacity: 0; pointer-events: none; transform: translateX(-50%); }
.impact-lines i { position: absolute; top: 50%; left: 50%; width: 5px; height: 37px; border-radius: 3px; background: var(--yellow-dark); transform-origin: 50% 0; }
.impact-lines i:nth-child(1) { transform: rotate(0deg) translateY(23px); }
.impact-lines i:nth-child(2) { transform: rotate(60deg) translateY(23px); }
.impact-lines i:nth-child(3) { transform: rotate(120deg) translateY(23px); }
.impact-lines i:nth-child(4) { transform: rotate(180deg) translateY(23px); }
.impact-lines i:nth-child(5) { transform: rotate(240deg) translateY(23px); }
.impact-lines i:nth-child(6) { transform: rotate(300deg) translateY(23px); }

.game-stage.charging .hammer { animation: hammer-charge .36s ease-in-out infinite alternate; }
.game-stage.hit .hammer { animation: hammer-hit .34s cubic-bezier(.3,.9,.4,1); }
.game-stage.hit .impact-lines { animation: impact-burst .45s ease-out; }
.game-stage.hit .person { animation: person-hit .58s cubic-bezier(.2,.8,.3,1); }
.game-stage.hit .face-smile { opacity: 0; }
.game-stage.hit .face-cry { opacity: 1; }
.game-stage.hit .tear { animation: tear-drop .5s ease-in infinite alternate; }
.game-stage.hit .ouch-bubble { animation: bubble-pop .7s ease-out; }
.game-stage.power-3 .tear { height: 20%; transform: scale(.9); }
.game-stage.power-5 .tear { height: 27%; transform: scale(1.2); animation-duration: .28s; }
.game-stage.power-5 .person { animation-name: person-hit-hard; }

.hit-button {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92%, 380px);
  min-height: 62px;
  margin: -2px auto 0;
  padding: 8px 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--white);
  background: var(--coral);
  box-shadow: 4px 5px 0 var(--ink);
  cursor: pointer;
}
.hit-button:active, .hit-button.charging { box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 4px); }
.hit-button span:nth-child(2) { display: grid; text-align: left; }
.hit-button strong { font-size: 17px; }
.hit-button small { opacity: .88; font-size: 11px; }
.mini-hammer { margin-right: 12px; font-size: 27px; transform: rotate(-16deg); }
.game-hint { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 11px; font-weight: 700; }

.floating-merit { position: absolute; z-index: 30; color: var(--coral-dark); font-size: 25px; font-weight: 1000; pointer-events: none; text-shadow: 2px 2px 0 var(--white); animation: merit-fly .9s ease-out forwards; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; max-width: 600px; margin: 4px auto 24px; }
.section-heading h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: 0; }
.balance-card, .inventory-count { display: grid; min-width: 78px; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); text-align: center; }
.balance-card span, .inventory-count span { font-size: 10px; font-weight: 800; }
.balance-card strong, .inventory-count strong { font-size: 20px; }

.shop-list, .inventory-list { display: grid; max-width: 600px; margin: 0 auto; gap: 12px; }
.reward-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  min-height: 100px;
  padding: 14px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.reward-card::after { content: ""; position: absolute; top: -22px; right: -22px; width: 60px; height: 60px; border-radius: 50%; background: var(--card-color, var(--pink)); opacity: .7; }
.reward-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--card-color, var(--pink)); font-size: 29px; transform: rotate(-3deg); }
.reward-info h3 { margin: 0 0 5px; font-size: 17px; }
.reward-info p { margin: 0; color: var(--muted); font-size: 11px; }
.reward-cost { display: grid; justify-items: end; gap: 7px; }
.reward-cost strong { font-size: 15px; }
.reward-cost button, .coupon-actions button {
  min-width: 68px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  color: var(--white);
  background: var(--coral);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.reward-cost button:disabled { color: #837d82; background: #e4dfe0; box-shadow: none; cursor: not-allowed; }
.shop-note { max-width: 600px; margin: 18px auto; color: var(--muted); text-align: center; font-size: 11px; }

.coupon-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  min-height: 126px;
  padding: 16px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.coupon-card::before, .coupon-card::after { content: ""; position: absolute; right: 88px; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.coupon-card::before { top: -10px; }
.coupon-card::after { bottom: -10px; }
.coupon-card.used { filter: grayscale(.7); opacity: .65; box-shadow: none; }
.coupon-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--card-color, var(--pink)); font-size: 28px; }
.coupon-info { padding-right: 82px; }
.coupon-info h3 { margin: 0 0 5px; font-size: 17px; }
.coupon-info p { margin: 0; color: var(--muted); font-size: 10px; }
.coupon-code { display: inline-block; margin-top: 10px; padding: 4px 7px; border-radius: 4px; background: #f0ece8; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; }
.coupon-actions { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }
.coupon-actions button { color: var(--ink); background: var(--yellow); }
.coupon-actions button:disabled { border-style: dashed; background: #ded8d8; box-shadow: none; }
.empty-state { padding: 50px 22px; border: 1.5px dashed #b8adb0; border-radius: 8px; background: rgba(255,255,255,.5); text-align: center; }
.empty-state span { display: block; margin-bottom: 12px; font-size: 46px; }
.empty-state h3 { margin: 0 0 6px; font-size: 19px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 28px), 500px);
  min-height: 66px;
  padding: 7px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 4px 5px 0 var(--ink);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.nav-item { position: relative; display: grid; place-items: center; gap: 1px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.nav-item span:not(.nav-badge) { height: 25px; font-size: 20px; }
.nav-item strong { font-size: 11px; }
.nav-item.active { color: var(--ink); background: var(--pink); }
.nav-badge { position: absolute; z-index: 2; top: 2px; left: calc(50% + 8px); display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 1px solid var(--ink); border-radius: 9px; color: var(--white); background: var(--coral); font-size: 9px; font-weight: 900; }

.welcome {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(45, 41, 51, .72);
  backdrop-filter: blur(8px);
  transition: opacity .35s ease, visibility .35s ease;
}
.welcome.closed { opacity: 0; visibility: hidden; }
.welcome-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 30px 24px 22px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 9px 0 var(--ink);
  text-align: center;
}
.welcome-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: repeating-linear-gradient(90deg, var(--coral) 0 24px, var(--yellow) 24px 48px, var(--mint) 48px 72px); }
.welcome-panel > p { margin: 0; color: var(--coral-dark); font-size: 12px; font-weight: 900; }
.welcome-panel h2 { margin: 8px 0 14px; font-size: clamp(31px, 9vw, 43px); line-height: 1.12; letter-spacing: 0; }
.welcome-stamp { position: absolute; top: 19px; right: 18px; display: grid; width: 54px; height: 54px; place-items: center; border: 2px solid var(--coral); border-radius: 50%; color: var(--coral); font-size: 10px; font-weight: 900; line-height: 1.15; transform: rotate(9deg); }
.welcome-avatar { position: relative; height: 255px; margin: 0 auto 15px; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; background: var(--pink); }
.welcome-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.welcome-avatar span { position: absolute; bottom: 14px; left: 14px; padding: 7px 10px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); font-size: 12px; font-weight: 900; transform: rotate(-3deg); }
.welcome-panel > button { width: 100%; min-height: 54px; border: 2px solid var(--ink); border-radius: 7px; color: var(--white); background: var(--coral); box-shadow: 4px 4px 0 var(--ink); font-size: 16px; font-weight: 900; cursor: pointer; }
.welcome-panel > button:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 3px); }
.welcome-panel > button span { margin-left: 7px; }
.welcome-panel > small { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; }

.toast { position: fixed; z-index: 130; top: max(18px, env(safe-area-inset-top)); left: 50%; padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: 7px; color: var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: 12px; font-weight: 900; opacity: 0; pointer-events: none; transform: translate(-50%, -20px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confirm-layer { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(45,41,51,.65); backdrop-filter: blur(5px); }
.confirm-layer[hidden] { display: none; }
.confirm-dialog { width: min(100%, 360px); padding: 24px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 6px 7px 0 var(--ink); text-align: center; }
.confirm-icon { font-size: 48px; }
.confirm-dialog h2 { margin: 8px 0 4px; font-size: 23px; }
.confirm-dialog p { margin: 0 0 19px; color: var(--muted); font-size: 12px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.confirm-actions button { min-height: 44px; border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 900; cursor: pointer; }
.button-secondary { background: var(--white); }
.button-primary { color: var(--white); background: var(--coral); }

footer { padding: 8px 20px 22px; color: #a29ba0; text-align: center; font-size: 10px; }

@keyframes hammer-charge { from { transform: rotate(20deg) translateY(0); } to { transform: rotate(4deg) translateY(-7px); } }
@keyframes hammer-hit { 0% { transform: rotate(15deg); } 48% { transform: rotate(-47deg) translate(-16px, 15px); } 70% { transform: rotate(-38deg) translate(-13px, 11px); } 100% { transform: rotate(20deg); } }
@keyframes impact-burst { 0%, 30% { opacity: 0; transform: translateX(-50%) scale(.3); } 45% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(1.5); } }
@keyframes person-hit { 0% { transform: translateY(0) scale(1); } 28% { transform: translateY(72px) scale(.96,.82); } 60% { transform: translateY(72px) scale(.97,.85); } 100% { transform: translateY(0) scale(1); } }
@keyframes person-hit-hard { 0% { transform: translateY(0) scale(1); } 25% { transform: translateY(112px) scale(.92,.7) rotate(-2deg); } 55% { transform: translateY(108px) scale(.94,.73) rotate(2deg); } 100% { transform: translateY(0) scale(1); } }
@keyframes tear-drop { from { translate: 0 0; } to { translate: 0 12px; } }
@keyframes bubble-pop { 0% { opacity: 0; transform: rotate(8deg) scale(.5); } 26%, 70% { opacity: 1; transform: rotate(8deg) scale(1); } 100% { opacity: 0; transform: rotate(8deg) translateY(-12px) scale(.9); } }
@keyframes merit-fly { 0% { opacity: 0; transform: translate(-50%, 0) scale(.7) rotate(-5deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1.25) rotate(4deg); } }

@media (min-width: 700px) {
  .topbar { padding-inline: 32px; }
  .view { padding: 28px 40px 35px; }
  .game-stage { min-height: 595px; }
  .playfield { height: 425px; }
  .target { height: 370px; }
  .hammer { right: 12%; }
}

@media (max-width: 390px) {
  .brand p { display: none; }
  .brand h1 { font-size: 18px; }
  .brand-mark { width: 39px; height: 39px; }
  .merit-pill { height: 39px; padding-inline: 9px; }
  .icon-button { width: 39px; height: 39px; }
  .view { padding-inline: 12px; }
  .game-stage { min-height: 545px; padding-inline: 7px; }
  .playfield { height: 385px; }
  .target { height: 325px; width: 88%; }
  .hammer { right: 2%; transform: scale(.88) rotate(20deg); }
  .reward-card { grid-template-columns: 64px 1fr auto; padding: 12px 10px; }
  .reward-icon { width: 52px; height: 52px; }
}

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