/* 赛博木鱼 · 奶蛙黄限定皮肤
   奶黄底 + 黑描边 + 红印章，整页像一张会笑的贴纸。 */

:root {
  --bg: #ffe01b;
  --bg-2: #fff8d6;
  --cream: #fffdf0;
  --ink: #161000;
  --ink-soft: #3a2e00;
  --red: #ff3b1f;
  --red-deep: #d9260c;
  --pink: #ff7a6b;
  --muted: rgba(22, 16, 0, 0.58);
  --dim: rgba(22, 16, 0, 0.38);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace;
  --font-sans: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 14%, rgba(255, 59, 31, 0.14), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(255, 255, 255, 0.42), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.5), transparent 18%);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overscroll-behavior: none;
}

/* 半调网点：奶蛙黄的底色上铺一层漫画印刷感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 16, 0, 0.14) 1.15px, transparent 1.25px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: soft-light;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(14px + env(safe-area-inset-top))
    18px
    calc(14px + env(safe-area-inset-bottom));
}

/* ---------- 顶部 HUD ---------- */

.topbar { flex-shrink: 0; }

.hud {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-sans);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 92px;
  padding: 7px 12px 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.2deg);
}
.stat + .stat { transform: rotate(1.2deg); }

.stat .k {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.stat .v {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.v.cyan { color: var(--red); }
.v.purple { color: var(--ink); }

.icon-btn {
  flex-shrink: 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: rotate(3deg);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  touch-action: manipulation;
}
.icon-btn:hover { background: #fff; transform: rotate(3deg) translate(-1px, -1px); }
.icon-btn:active { transform: rotate(3deg) translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.meter {
  margin-top: 12px;
  height: 13px;
  border-radius: 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 100%;
  border-radius: 5px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--red) 0 8px,
      #ff6a4d 8px 16px
    );
  transition: width 0.18s ease;
}

.date-line {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-align: center;
}

/* ---------- 主舞台 ---------- */

.stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 0 0;
  overflow: hidden;
}

/* 背景里一个巨大的“哈”，负责抽象 */
.stage::before {
  content: "哈";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(-13deg);
  font-size: 300px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 59, 31, 0.10);
  pointer-events: none;
}

.stage > * { position: relative; z-index: 1; }

.stage.shake { animation: shake 0.16s linear; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

.float-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.laugh-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.combo {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  color: var(--cream);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 9px;
  transform: rotate(6deg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.combo.show { opacity: 1; }
.combo.pop { animation: comboPop 0.18s ease; }
@keyframes comboPop {
  0% { transform: rotate(6deg) scale(0.86); }
  60% { transform: rotate(6deg) scale(1.1); }
  100% { transform: rotate(6deg) scale(1); }
}

.fish-wrap {
  position: relative;
  width: 270px;
  height: 334px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: 0;
}

/* 奶蛙本体：五套姿势轮换，整体可以随鼠标 / 手指轻微 3D 倾斜 */
.fish {
  width: 240px;
  height: 310px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease;
  touch-action: manipulation;
  -webkit-user-drag: none;
  perspective: 900px;
}
.fish:focus-visible {
  outline: 4px dashed var(--red);
  outline-offset: 6px;
  border-radius: 34px;
}

.fish::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 58%;
  height: 20px;
  z-index: 0;
  transform: translateX(calc(-50% + var(--shadow-shift, 0px))) scaleX(1);
  background: rgba(22, 16, 0, 0.18);
  border-radius: 50%;
  filter: blur(5px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.fish.react::after,
.fish.laughing::after {
  transform: translateX(calc(-50% + var(--shadow-shift, 0px))) scaleX(1.16);
  opacity: 0.85;
}

.fish-3d,
.fish-breathe {
  position: absolute;
  inset: 0;
}
.fish-3d {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  will-change: transform;
}
.fish-breathe {
  animation: fishBreathe 4.6s ease-in-out infinite;
}
@keyframes fishBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.006); }
}

.fish-pose {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: scale(0.92) translateY(1.5%) rotate(-1.2deg);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 1.25, 0.4, 1);
  filter: drop-shadow(7px 7px 0 var(--ink));
  will-change: opacity, transform;
}
.fish-pose.is-active {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(0deg);
}

/* 原图本身就在腿 / 肚子处裁断的三张，用底部渐隐接地 */
.fish-pose.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 99%);
}

/* 换装提示贴纸 */
.pose-tag {
  position: absolute;
  left: 50%;
  bottom: -4px;
  z-index: 5;
  transform: translate(-50%, 8px) rotate(-2deg) scale(0.9);
  opacity: 0;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--cream);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.26s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.pose-tag.show {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg) scale(1);
}

/* 每敲一下：奶蛙弹一下、晃一下 */
.fish.react { animation: fishReact 0.34s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes fishReact {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.07, 0.93) rotate(-2.5deg) translateY(1%); }
  70% { transform: scale(0.98, 1.03) rotate(1.5deg) translateY(-1%); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 连击里程碑：当前姿势狂笑乱晃 */
.fish.laughing { animation: fishLaugh 0.62s ease; }
@keyframes fishLaugh {
  0%, 100% { transform: rotate(0deg) scale(1); }
  18% { transform: rotate(-3deg) scale(1.06, 0.94) translateY(-2%); }
  36% { transform: rotate(3deg) scale(0.97, 1.03) translateY(0); }
  54% { transform: rotate(-2deg) scale(1.04, 0.96) translateY(-1%); }
  72% { transform: rotate(2deg) scale(0.99, 1.01); }
}

.mallet {
  position: absolute;
  right: -42px;
  top: 4px;
  width: 52px;
  height: 160px;
  transform-origin: 42px 148px;
  transform: rotate(-26deg);
  transition: transform 0.08s ease;
  pointer-events: none;
  z-index: 3;
}
.mallet-stick {
  position: absolute;
  left: 21px;
  top: 28px;
  width: 11px;
  height: 118px;
  border-radius: 6px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.mallet-head {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 38px;
  border-radius: 14px;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.mallet.hit { transform: rotate(10deg); }

.ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86%;
  height: 80%;
  border: 3px dashed var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple 0.55s ease-out forwards;
  z-index: 1;
}
@keyframes ripple {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}

.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 3;
  animation: particle 0.65s ease-out forwards;
}
@keyframes particle {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(160deg) scale(0.2);
  }
}

/* 飘字：白色贴纸 + 红功德签 */
.float {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  animation: floatUp 1.75s ease-out forwards;
  z-index: 4;
}
.float .phrase {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  max-width: 250px;
  box-shadow: var(--shadow-sm);
}
.float .gain {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  color: var(--cream);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  box-shadow: 2px 2px 0 var(--ink);
}
.float.cyan .phrase { background: #dff7ff; }
.float.yellow .phrase { background: #fff3a6; }
.float.pink .phrase { background: #ffe0dc; }

@keyframes floatUp {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.85);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -56%) rotate(var(--rot, 0deg)) scale(1);
  }
  70% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -175%) rotate(var(--rot, 0deg)) scale(1.02);
  }
}

/* 奶蛙笑声字：红字黑边白影 */
.laugh-word {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--cream);
  opacity: 0;
  animation: laughPop 0.85s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes laughPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.2);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.25);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -130%) rotate(var(--rot, 0deg)) scale(0.92);
  }
}

.knock-btn {
  margin-top: 16px;
  border: 3px solid var(--ink);
  color: var(--cream);
  background: var(--red);
  padding: 11px 52px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.3em;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s;
  touch-action: manipulation;
}
.knock-btn:hover { background: #ff4f35; }
.knock-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}
.knock-btn:focus-visible,
.share-btn:focus-visible,
.icon-btn:focus-visible,
.modal-actions button:focus-visible,
.clear-card button:focus-visible,
.reset:focus-visible {
  outline: 3px dashed var(--red);
  outline-offset: 4px;
}

.hint {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.title-line {
  margin: 7px 0 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1deg);
}

/* ---------- 底部 ---------- */

.bottom {
  flex-shrink: 0;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.today-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  border-top: 2px dashed rgba(22, 16, 0, 0.28);
  padding-top: 10px;
}

.share-btn {
  width: 100%;
  margin-top: 10px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--cream);
  padding: 12px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s;
  touch-action: manipulation;
}
.share-btn:hover { background: #fff; }
.share-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.brand {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.16em;
}

/* ---------- 分享弹层 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(22, 16, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  background: var(--bg-2);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 8px 8px 0 var(--ink);
}
#shareImage {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--bg);
}
.share-tip {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.modal-actions button {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.modal-actions button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.primary {
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--ink);
}
.ghost {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.reset {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-sans);
}

/* ---------- 清零庆祝 ---------- */

.clear-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 16, 0, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.clear-overlay.show { display: flex; }

.clear-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.5deg);
  overflow: hidden;
}
.clear-card::before {
  content: "哈";
  position: absolute;
  right: -18px;
  bottom: -54px;
  z-index: 0;
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 59, 31, 0.13);
  transform: rotate(-12deg);
  pointer-events: none;
}
.clear-card > * { position: relative; z-index: 1; }

.clear-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: var(--bg);
  background: var(--ink);
  letter-spacing: 0.24em;
  padding: 4px 9px;
  transform: rotate(2deg);
}
.clear-card h2 {
  margin: 14px 0 6px;
  font-size: 27px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.clear-card h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 7px;
  margin: 6px auto 0;
  background: var(--red);
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}
.clear-card p {
  margin: 10px 0 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.clear-card button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.clear-card button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.clear-card .primary { border: 2px solid var(--ink); }
.clear-card .ghost { border: 2px solid var(--ink); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  border: 2px solid var(--cream);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(22, 16, 0, 0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 小屏适配 ---------- */

@media (max-width: 380px) {
  .fish-wrap { width: 240px; height: 292px; }
  .fish { width: 210px; height: 270px; }
  .mallet { right: -38px; top: 2px; transform: rotate(-26deg) scale(0.9); }
  .mallet.hit { transform: rotate(10deg) scale(0.9); }
  .knock-btn { padding: 10px 42px; font-size: 18px; }
  .float .phrase { max-width: 210px; font-size: 11.5px; }
  .stat { min-width: 84px; padding: 6px 10px 7px; }
  .stat .v { font-size: 21px; }
}

@media (min-height: 760px) {
  .fish-wrap { width: 306px; height: 376px; }
  .fish { width: 272px; height: 350px; }
  .mallet { right: -46px; top: 6px; }
}

@media (min-width: 900px) {
  .fish-wrap { width: 336px; height: 412px; }
  .fish { width: 298px; height: 386px; }
  .mallet { right: -50px; top: 8px; }
}

@media (max-height: 560px) {
  .app { padding-top: 8px; padding-bottom: 8px; }
  .stage { padding-top: 0; }
  .date-line { display: none; }
  .fish-wrap { width: 162px; height: 166px; margin-top: 0; }
  .fish { width: 136px; height: 157px; }
  .mallet {
    right: -32px;
    top: 0;
    transform-origin: 42px 104px;
    transform: rotate(-28deg) scale(0.6);
  }
  .mallet.hit { transform: rotate(8deg) scale(0.6); }
  .knock-btn { margin-top: 4px; padding: 8px 30px; font-size: 15px; }
  .hint, .title-line, .brand, .pose-tag { display: none; }
  .bottom { padding-top: 4px; }
  .share-btn { margin-top: 6px; padding: 9px; }
  .stage::before { font-size: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple, .particle, .laugh-word { display: none; }
  .float { animation-duration: 0.01s; }
  .stage.shake { animation: none; }
  .fish, .mallet, .fish-pose, .fish-3d { transition: none; }
  .fish.react, .fish.laughing, .fish-breathe { animation: none; }
}
