:root {
  --ink: #263f2d;
  --ink-soft: #5d6d58;
  --cream: #fff9e9;
  --cream-deep: #f7eddb;
  --green-950: #183f2b;
  --green-900: #204c31;
  --green-800: #2b613c;
  --green-700: #347548;
  --green-600: #438e55;
  --green-500: #64bd69;
  --orange: #ffb52e;
  --orange-deep: #ef8b22;
  --coral: #ff7b56;
  --pink: #f787a7;
  --red: #eb554b;
  --gold: #ffd23f;
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-number: "Trebuchet MS", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-card: 0 4px 0 rgba(33, 70, 44, 0.13), 0 12px 24px rgba(28, 62, 40, 0.12);
}

.game-shell {
  --sky-top: #80d8ff;
  --sky-mid: #dcf7ff;
  --sky-low: #fff5cf;
  --sun-color: #ffe574;
  --sun-glow: rgba(255, 225, 117, 0.52);
  --hill-far: #bce996;
  --hill-near: #87d46b;
  --ground-top: #6dca64;
  --ground-bottom: #4aab56;
  --ambient-color: rgba(255, 253, 214, 0.8);
  --board-hi: #8cde68;
  --board-lo: #3fa74f;
  --board-edge: #246e3a;
  --board-line: rgba(255, 255, 255, 0.18);
  --accent: #ffb52e;
  --accent-deep: #dd7d1c;
}

.game-shell[data-theme="blossom"] {
  --sky-top: #9bdcff;
  --sky-mid: #e4f8ff;
  --sky-low: #fff0ec;
  --sun-color: #ffe38d;
  --sun-glow: rgba(255, 216, 166, 0.5);
  --hill-far: #d0ed9e;
  --hill-near: #93d57a;
  --ground-top: #78cc70;
  --ground-bottom: #54ae5e;
  --board-hi: #9bdd76;
  --board-lo: #4eaf5b;
  --board-edge: #2a7443;
  --ambient-color: rgba(255, 197, 216, 0.9);
  --accent: #ff87a7;
  --accent-deep: #de577d;
}

.game-shell[data-theme="forest"] {
  --sky-top: #63c7c2;
  --sky-mid: #dbf3e2;
  --sky-low: #edf5cc;
  --sun-color: #ffeb9c;
  --sun-glow: rgba(255, 236, 159, 0.36);
  --hill-far: #8ac786;
  --hill-near: #58a869;
  --ground-top: #4a9f61;
  --ground-bottom: #347d4d;
  --board-hi: #72c775;
  --board-lo: #2f8c4d;
  --board-edge: #1c5d36;
  --ambient-color: rgba(203, 255, 168, 0.9);
  --accent: #ffd05b;
  --accent-deep: #df9a25;
}

.game-shell[data-theme="sunset"] {
  --sky-top: #ffa987;
  --sky-mid: #ffd8b5;
  --sky-low: #ffedc5;
  --sun-color: #ff9d55;
  --sun-glow: rgba(255, 135, 84, 0.52);
  --hill-far: #d3b47d;
  --hill-near: #a98b5a;
  --ground-top: #9aad57;
  --ground-bottom: #768c45;
  --board-hi: #a8c95d;
  --board-lo: #65953e;
  --board-edge: #41632b;
  --ambient-color: rgba(255, 219, 153, 0.9);
  --accent: #ff996a;
  --accent-deep: #da673a;
}

.game-shell[data-theme="night"] {
  --sky-top: #18234d;
  --sky-mid: #44386e;
  --sky-low: #806276;
  --sun-color: #fff0bd;
  --sun-glow: rgba(255, 239, 184, 0.3);
  --hill-far: #2b4b59;
  --hill-near: #203f45;
  --ground-top: #2b5e50;
  --ground-bottom: #1c443c;
  --board-hi: #428e62;
  --board-lo: #216042;
  --board-edge: #103a2b;
  --ambient-color: rgba(255, 220, 116, 0.96);
  --accent: #ffd05c;
  --accent-deep: #db9c23;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

html {
  background: #8fdcff;
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 3px solid rgba(27, 104, 65, 0.8);
  outline-offset: 3px;
}

svg {
  display: block;
}

i,
em {
  font-style: normal;
}

h1,
h2,
p {
  margin: 0;
}

.game-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--sky-mid);
}

.game-shell::after {
  content: "";
  position: fixed;
  z-index: 95;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 32%, rgba(255, 51, 51, 0.5) 100%);
  opacity: 0;
}

.game-shell.is-damaged::after {
  animation: damage-flash 0.48s ease-out;
}

.app {
  position: relative;
  z-index: 3;
  height: 100%;
}

.screen {
  display: none;
  height: 100%;
}

.screen.is-active {
  display: flex;
  animation: screen-in 0.42s ease both;
}

.scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 72%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 76% 2%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(0deg, rgba(255, 250, 219, 0.12), transparent 40%);
}

.stars {
  position: absolute;
  inset: 0;
}

.scene-stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.game-shell[data-theme="night"] .scene-stars {
  opacity: 1;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fffbe2;
  box-shadow: 0 0 6px rgba(255, 249, 211, 0.9);
  animation: twinkle 2.8s ease-in-out infinite;
}

.star.s1 { top: 8%; left: 8%; animation-delay: -0.4s; }
.star.s2 { top: 15%; left: 25%; width: 2px; height: 2px; animation-delay: -1.6s; }
.star.s3 { top: 6%; left: 46%; animation-delay: -2.1s; }
.star.s4 { top: 20%; left: 65%; width: 2px; height: 2px; animation-delay: -0.9s; }
.star.s5 { top: 10%; right: 8%; width: 4px; height: 4px; animation-delay: -1.3s; }
.star.s6 { top: 31%; left: 12%; width: 2px; height: 2px; animation-delay: -2.4s; }
.star.s7 { top: 27%; right: 24%; animation-delay: -0.2s; }
.star.s8 { top: 41%; left: 36%; width: 2px; height: 2px; animation-delay: -1.7s; }
.star.s9 { top: 37%; right: 7%; width: 2px; height: 2px; animation-delay: -2.2s; }
.star.s10 { top: 4%; left: 36%; width: 2px; height: 2px; animation-delay: -0.7s; }
.star.s11 { top: 22%; left: 82%; width: 2px; height: 2px; animation-delay: -1.9s; }
.star.s12 { top: 34%; left: 5%; animation-delay: -1.1s; }

.sun {
  position: absolute;
  top: 6.5%;
  right: 8%;
  width: clamp(66px, 18vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 32%, #fffbd5 0%, var(--sun-color) 52%, #ffd15d 100%);
  box-shadow:
    0 0 0 14px rgba(255, 237, 159, 0.14),
    0 0 0 28px rgba(255, 237, 159, 0.065),
    0 0 52px var(--sun-glow);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.sun::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 23%;
  width: 28%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(5px);
}

.sun::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 17%;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 10px 20px 0 -2px rgba(255, 255, 255, 0.1);
}

.game-shell[data-theme="night"] .sun {
  background: radial-gradient(circle at 35% 30%, #fffef1 0%, #fff2bf 55%, #f5d98a 100%);
  box-shadow:
    0 0 0 10px rgba(255, 246, 204, 0.06),
    0 0 34px rgba(255, 239, 175, 0.22);
}

.game-shell[data-theme="night"] .sun::before {
  opacity: 0.28;
}

.game-shell[data-theme="night"] .sun::after {
  background: rgba(200, 180, 121, 0.14);
  box-shadow: 14px 24px 0 -2px rgba(200, 180, 121, 0.1);
}

.cloud {
  position: absolute;
  width: 112px;
  height: 42px;
  opacity: 0.72;
  animation: cloud-drift 18s ease-in-out infinite alternate;
  filter: drop-shadow(0 7px 10px rgba(81, 150, 179, 0.1));
}

.cloud i {
  position: absolute;
  bottom: 0;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.cloud i:nth-child(1) {
  left: 0;
  width: 58%;
  height: 56%;
}

.cloud i:nth-child(2) {
  left: 19%;
  width: 52%;
  height: 100%;
}

.cloud i:nth-child(3) {
  right: 0;
  width: 50%;
  height: 48%;
}

.cloud-one {
  top: 15%;
  left: -4%;
  transform: scale(0.9);
}

.cloud-two {
  top: 29%;
  right: 7%;
  width: 88px;
  height: 34px;
  animation-duration: 23s;
  animation-delay: -7s;
  opacity: 0.52;
}

.cloud-three {
  top: 7%;
  left: 45%;
  width: 70px;
  height: 28px;
  animation-duration: 28s;
  animation-delay: -13s;
  opacity: 0.34;
}

.game-shell[data-theme="night"] .cloud {
  opacity: 0.13;
}

.hill {
  position: absolute;
  pointer-events: none;
}

.hill-far {
  left: -32%;
  right: -24%;
  bottom: 17%;
  height: 37%;
  border-radius: 50% 50% 0 0 / 69% 72% 0 0;
  background:
    radial-gradient(ellipse at 32% 28%, rgba(255, 255, 255, 0.18), transparent 27%),
    var(--hill-far);
  opacity: 0.78;
}

.hill-far::after {
  content: "";
  position: absolute;
  left: 56%;
  bottom: 0;
  width: 55%;
  height: 70%;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  background: var(--hill-far);
  opacity: 0.72;
}

.hill-near {
  left: -38%;
  right: -38%;
  bottom: 1%;
  height: 34%;
  border-radius: 50% 50% 0 0 / 74% 74% 0 0;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(255, 255, 255, 0.15), transparent 24%),
    var(--hill-near);
  opacity: 0.92;
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 19%;
  background: linear-gradient(180deg, var(--ground-top), var(--ground-bottom));
}

.ground::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -2%;
  width: 34%;
  height: 22px;
  border-radius: 50%;
  background: var(--ground-top);
  box-shadow:
    28vw 1px 0 var(--ground-top),
    55vw -2px 0 var(--ground-top),
    80vw 1px 0 var(--ground-top);
}

.ground-texture {
  position: absolute;
  inset: auto 0 0;
  height: 29%;
  opacity: 0.24;
  background-image:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 47%, rgba(26, 97, 53, 0.6) 48% 51%, transparent 52%);
  background-size: 31px 24px, 63px 53px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 36%);
  mask-image: linear-gradient(180deg, transparent, #000 36%);
}

.ambient {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.ambient i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ambient-color);
  box-shadow: 0 0 8px var(--ambient-color);
  animation: ambient-float 6s ease-in-out infinite;
}

.ambient i:nth-child(1) { left: 10%; bottom: 22%; animation-delay: -1s; }
.ambient i:nth-child(2) { left: 23%; bottom: 11%; width: 3px; height: 3px; animation-delay: -4.2s; }
.ambient i:nth-child(3) { right: 15%; bottom: 18%; animation-delay: -2.4s; }
.ambient i:nth-child(4) { right: 7%; bottom: 32%; width: 3px; height: 3px; animation-delay: -5.1s; }
.ambient i:nth-child(5) { left: 42%; bottom: 7%; animation-delay: -3.5s; }
.ambient i:nth-child(6) { right: 33%; bottom: 8%; width: 3px; height: 3px; animation-delay: -0.8s; }
.ambient i:nth-child(7) { left: 6%; bottom: 42%; width: 2px; height: 2px; animation-delay: -4.8s; }
.ambient i:nth-child(8) { right: 5%; bottom: 8%; animation-delay: -1.8s; }

.screen-start {
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    calc(10px + env(safe-area-inset-top))
    clamp(14px, 4.6vw, 26px)
    calc(10px + env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-start::-webkit-scrollbar {
  display: none;
}

.start-inner {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  width: min(100%, 440px);
  min-height: 100%;
  gap: clamp(7px, 1.25vh, 13px);
}

.start-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 252, 238, 0.42);
  color: rgba(35, 74, 45, 0.7);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mini-brand-mark {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(42, 108, 57, 0.44);
  border-radius: 50% 50% 50% 3px;
  background: rgba(64, 145, 80, 0.75);
  transform: rotate(-42deg);
}

.round-btn {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 251, 239, 0.9);
  box-shadow: 0 3px 0 rgba(31, 73, 44, 0.12), 0 7px 14px rgba(31, 73, 44, 0.09);
  color: #31563b;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.round-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(31, 73, 44, 0.12);
}

.sound-icon {
  width: 21px;
  height: 21px;
  overflow: visible;
}

.sound-icon .speaker {
  fill: currentColor;
}

.sound-icon .wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  transition: opacity 0.18s ease;
}

.sound-icon .mute-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sound-toggle.is-muted .wave {
  opacity: 0;
}

.sound-toggle.is-muted .mute-line {
  opacity: 0.8;
}

.start-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 5px;
  margin-top: clamp(0px, 1.2vh, 12px);
  text-align: center;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.66);
  box-shadow: 0 3px 10px rgba(31, 72, 46, 0.08);
  color: var(--green-800);
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 900;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.title-badge span {
  color: #efa21e;
  font-size: 9px;
}

.title-badge i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(42, 91, 55, 0.3);
}

.game-logo {
  color: #fff6cd;
  font-family: var(--font-display);
  font-size: clamp(48px, 14.2vw, 72px);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.1;
  transform: rotate(-1.6deg);
  text-shadow:
    -3px -3px 0 #285034,
    3px -3px 0 #285034,
    -3px 3px 0 #285034,
    3px 3px 0 #285034,
    0 -3px 0 #285034,
    0 3px 0 #285034,
    -3px 0 0 #285034,
    3px 0 0 #285034,
    0 7px 0 #295537,
    0 11px 0 #eb9a2d,
    0 16px 18px rgba(38, 77, 46, 0.3);
}

.start-tagline {
  color: rgba(39, 82, 49, 0.74);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.start-tagline::before,
.start-tagline::after {
  content: "✦";
  display: inline-block;
  margin: 0 8px;
  color: rgba(224, 148, 22, 0.82);
  font-size: 8px;
  vertical-align: 2px;
}

.hero-stage {
  position: relative;
  width: min(89vw, 344px);
  height: clamp(180px, 26vh, 250px);
  flex: 0 0 auto;
  margin-top: clamp(-2px, 0.8vh, 8px);
}

.hero-halo {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 208, 0.76) 0%, rgba(255, 244, 187, 0.28) 47%, transparent 71%);
  transform: translate(-50%, -50%);
}

.hero-rays {
  position: absolute;
  top: 3%;
  left: 1%;
  width: 98%;
  height: 91%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, rgba(255, 255, 255, 0.42) 0deg 2.6deg, transparent 2.6deg 18deg);
  opacity: 0.48;
  -webkit-mask-image: radial-gradient(circle, transparent 0 41%, #000 42% 54%, transparent 55%);
  mask-image: radial-gradient(circle, transparent 0 41%, #000 42% 54%, transparent 55%);
  animation: slow-spin 46s linear infinite;
}

.hero-slot {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(53, 67, 36, 0.18));
}

.hero-slot .mole {
  animation: hero-bob 3.4s ease-in-out infinite alternate;
}

.hero-slot.hero-left {
  bottom: 14%;
  left: 1%;
  width: 88px;
  height: 104px;
  transform: rotate(-6deg);
}

.hero-slot.hero-right {
  right: 0;
  bottom: 12%;
  width: 96px;
  height: 112px;
  z-index: 2;
  transform: rotate(5deg);
}

.hero-slot.hero-right .mole {
  animation-delay: -1.2s;
}

.hero-slot.hero-center {
  bottom: 19%;
  left: 50%;
  width: 132px;
  height: 152px;
  z-index: 3;
  transform: translateX(-50%);
}

.hero-slot.hero-center .mole {
  animation-delay: -0.6s;
}

.hero-slot .mole-badge {
  top: 2%;
  right: 0;
  padding: 3px 7px 2px;
  font-size: 10px;
  border-width: 2px;
}

.hero-mound {
  position: absolute;
  z-index: 4;
  right: 1%;
  bottom: 0;
  left: 1%;
  height: 34%;
  border-radius: 48% 50% 24px 22px / 71% 74% 24px 22px;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255, 255, 255, 0.42), transparent 55%),
    linear-gradient(180deg, #96df6b 0%, #64c561 56%, #43a84e 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.38),
    inset 0 -8px 0 rgba(30, 113, 54, 0.14),
    0 9px 0 rgba(35, 104, 49, 0.18),
    0 18px 28px rgba(36, 98, 48, 0.2);
}

.mound-tuft {
  position: absolute;
  bottom: 72%;
  width: 16px;
  height: 15px;
  border-radius: 100% 0 100% 0;
  background: #4caf51;
  transform: rotate(-18deg);
}

.mound-tuft::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 9px;
  width: 12px;
  height: 12px;
  border-radius: 0 100% 0 100%;
  background: #66c25b;
}

.mt-one { left: 15%; }
.mt-two { right: 18%; bottom: 67%; transform: scale(0.8) rotate(18deg); }

.mound-daisy {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe879;
  box-shadow:
    0 -6px 0 1px #fffdf1,
    0 6px 0 1px #fffdf1,
    -6px 0 0 1px #fffdf1,
    6px 0 0 1px #fffdf1;
  opacity: 0.92;
}

.md-one { left: 9%; bottom: 29%; transform: scale(0.76); }
.md-two { right: 9%; bottom: 45%; transform: scale(0.58); }

.hero-hammer {
  position: absolute;
  z-index: 6;
  top: -1%;
  right: 6%;
  width: clamp(62px, 18vw, 80px);
  height: auto;
  filter: drop-shadow(0 10px 8px rgba(72, 49, 22, 0.23));
  animation: mallet-float 3s ease-in-out infinite;
  transform-origin: 30% 80%;
}

.hero-spark {
  position: absolute;
  z-index: 5;
  width: 12px;
  height: 12px;
  background: #fff6a5;
  clip-path: polygon(50% 0%, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 5px rgba(255, 239, 128, 0.8));
  animation: sparkle 2.2s ease-in-out infinite;
}

.spark-a { top: 23%; left: 1%; }
.spark-b { top: 6%; left: 27%; width: 8px; height: 8px; animation-delay: -0.8s; }
.spark-c { top: 38%; right: -1%; width: 9px; height: 9px; animation-delay: -1.4s; }

.start-cta {
  position: relative;
  z-index: 7;
  width: min(100%, 366px);
  margin-top: clamp(-13px, -1.4vh, -4px);
}

.play-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  gap: 11px;
  overflow: hidden;
  padding: 10px 17px 12px 12px;
  border: 2px solid rgba(255, 248, 218, 0.8);
  border-radius: 21px;
  background: linear-gradient(135deg, #ffc648 0%, #ffac31 53%, #ff8e37 100%);
  box-shadow:
    0 6px 0 #d77521,
    0 14px 26px rgba(139, 74, 25, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
  color: #fff9e9;
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.play-btn::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 42%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(18deg);
  animation: button-shine 4.8s ease-in-out infinite;
}

.play-btn::after {
  content: "✦";
  position: absolute;
  top: 10px;
  right: 48px;
  color: rgba(255, 248, 214, 0.66);
  font-size: 12px;
}

.play-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #d77521,
    0 7px 15px rgba(139, 74, 25, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.play-btn-hammer {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  background: rgba(255, 251, 229, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pb-head {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 28px;
  height: 15px;
  border: 2px solid #4f341f;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff4bd, #ffd65b);
  transform: rotate(-28deg);
}

.pb-handle {
  position: absolute;
  top: 21px;
  left: 21px;
  width: 7px;
  height: 21px;
  border: 2px solid #4f341f;
  border-radius: 4px;
  background: #b97844;
  transform: rotate(24deg);
}

.play-btn-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.play-btn-copy strong {
  font-size: clamp(18px, 4.8vw, 21px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(157, 76, 18, 0.23);
}

.play-btn-copy small {
  overflow: hidden;
  color: rgba(255, 250, 230, 0.8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-btn-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 251, 230, 0.26);
  color: #fff9e8;
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 900;
}

.level-road {
  width: min(100%, 390px);
  margin-top: clamp(0px, 0.4vh, 5px);
  padding: 13px 14px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 23px;
  background: rgba(255, 251, 238, 0.72);
  box-shadow: 0 4px 0 rgba(36, 72, 44, 0.08), 0 12px 28px rgba(33, 69, 41, 0.09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.road-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-kicker {
  margin-bottom: 1px;
  color: rgba(40, 76, 48, 0.46);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.road-head h2 {
  color: var(--green-900);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green-700);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.text-btn span {
  font-family: var(--font-number);
  font-size: 12px;
}

.level-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
}

.level-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 3px 0 0;
  border-radius: 12px;
}

.level-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 16px;
  left: calc(50% + 17px);
  right: calc(-50% + 17px);
  height: 3px;
  border-radius: 6px;
  background: rgba(47, 91, 57, 0.13);
}

.level-step.is-done:not(:last-child)::after {
  background: linear-gradient(90deg, #65c56b, #94d878);
}

.step-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #ece4d0;
  box-shadow: 0 2px 0 rgba(45, 77, 48, 0.1);
  color: #8e846e;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 900;
  transition: transform 0.16s ease;
}

.level-step:active .step-node {
  transform: scale(0.93);
}

.step-num {
  line-height: 1;
}

.step-check,
.step-lock {
  display: none;
}

.step-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 8px;
  border: 1.3px solid #fffdf4;
  border-radius: 2px;
  background: #aaa18d;
}

.step-lock::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 2px;
  width: 4px;
  height: 5px;
  border: 1.4px solid #fffdf4;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.step-time {
  color: #5f6f5a;
  font-family: var(--font-number);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
}

.step-target {
  color: #9b927d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.is-done .step-node {
  background: linear-gradient(180deg, #82d777, #54b95f);
  color: #fffdf2;
  box-shadow: 0 2px 0 #3b8f4a;
}

.is-done .step-num {
  display: none;
}

.is-done .step-check {
  display: block;
  font-size: 13px;
  line-height: 1;
}

.is-done .step-time {
  color: #49764e;
}

.is-current .step-node {
  width: 32px;
  height: 32px;
  margin: -2px 0;
  border-color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, #ffd458, #ffa72d);
  box-shadow:
    0 0 0 4px rgba(255, 186, 53, 0.18),
    0 3px 0 #d9811c;
  color: #553a14;
}

.is-current .step-time {
  color: #c07617;
}

.is-current .step-target {
  color: #c18f4a;
}

.is-locked {
  cursor: not-allowed;
}

.is-locked .step-node {
  background: #e8e1d1;
  color: #b6ac98;
  box-shadow: 0 2px 0 rgba(55, 76, 53, 0.06);
}

.is-locked .step-lock {
  display: block;
}

.is-locked .step-time,
.is-locked .step-target {
  opacity: 0.55;
}

.start-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 12px;
  margin-top: auto;
  padding-top: 5px;
  color: rgba(41, 75, 49, 0.63);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.start-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.foot-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.foot-gray { background: #a9b2b8; }
.foot-gold { background: #ffce43; box-shadow: 0 0 5px rgba(255, 195, 43, 0.55); }
.foot-black { background: #5a4b65; }

.screen-game {
  flex-direction: column;
  width: 100%;
  padding:
    calc(9px + env(safe-area-inset-top))
    clamp(12px, 4vw, 22px)
    calc(8px + env(safe-area-inset-bottom));
}

.hud {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 460px;
  flex: 0 0 auto;
  margin: 0 auto;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 7px;
  padding: 0 2px;
}

.level-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(25, 56, 36, 0.87);
  box-shadow: 0 3px 0 rgba(18, 46, 28, 0.16), 0 7px 14px rgba(16, 45, 28, 0.12);
  color: #fff8e7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.level-chip b {
  color: #ffd15d;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 900;
}

.level-chip-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #94e875;
  box-shadow: 0 0 0 3px rgba(148, 232, 117, 0.15);
}

.level-name {
  overflow: hidden;
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 248, 231, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.hud-actions .round-btn {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-width: 1px;
  box-shadow: 0 2px 0 rgba(31, 73, 44, 0.12), 0 5px 10px rgba(31, 73, 44, 0.08);
}

.hud-actions .sound-icon {
  width: 18px;
  height: 18px;
}

.pause-glyph {
  display: flex;
  gap: 4px;
}

.pause-glyph i {
  display: block;
  width: 4px;
  height: 13px;
  border-radius: 3px;
  background: currentColor;
}

.hud-main {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.score-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 9px 14px 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 21px;
  background: rgba(255, 250, 236, 0.94);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.score-panel::before {
  content: "";
  position: absolute;
  top: -28px;
  right: 19%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 205, 78, 0.1);
}

.score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.score-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 7px;
}

.score-label {
  flex: 0 0 auto;
  color: #788573;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.score-value {
  display: inline-block;
  color: #203f2b;
  font-family: var(--font-number);
  font-size: clamp(26px, 7.2vw, 33px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  transform-origin: left bottom;
}

.score-value.is-negative {
  color: #df4a48;
}

.score-value.is-bumping {
  animation: score-bump 0.3s ease;
}

.goal-copy {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 3px;
  padding-bottom: 1px;
  color: #8b947f;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.goal-copy b {
  color: #3e6544;
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 900;
}

.progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  margin-top: 7px;
  border-radius: 999px;
  background: #e9dfc8;
  box-shadow: inset 0 2px 3px rgba(79, 63, 31, 0.14);
}

.progress-fill {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cdc61 0%, #5fc269 56%, #f5c33b 100%);
  box-shadow: 0 0 10px rgba(239, 183, 42, 0.36);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.progress-fill span {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.timer-panel {
  display: grid;
  width: 82px;
  flex: 0 0 82px;
  place-items: center;
  padding: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 21px;
  background: rgba(255, 250, 236, 0.94);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.timer-ring {
  --p: 1;
  --ring: #57b96a;
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1turn), #e9dfc8 0);
  transition: background 0.2s linear;
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffef8, #fbf3dd);
  box-shadow: inset 0 2px 4px rgba(89, 70, 34, 0.07);
}

.timer-ring::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ring);
  transform: translateX(-50%);
  box-shadow: 0 0 5px var(--ring);
}

.timer-face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: #284a31;
}

.timer-face strong {
  font-family: var(--font-number);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.timer-face strong.is-wide {
  font-size: 19px;
}

.timer-face span {
  color: #7d876f;
  font-size: 8px;
  font-weight: 900;
  transform: translateY(-1px);
}

.timer-panel.is-danger {
  animation: timer-alert 0.85s ease-in-out infinite;
}

.timer-panel.is-danger .timer-ring {
  --ring: #ee6152;
}

.timer-panel.is-danger .timer-face strong {
  color: #d94b43;
}

.timer-panel.is-gain {
  animation: timer-gain 0.42s ease;
}

.timer-panel.is-loss {
  animation: timer-loss 0.42s ease;
}

.stage-area {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding-top: clamp(4px, 1dvh, 10px);
}

.play-column {
  display: flex;
  flex-direction: column;
  width: min(100%, 460px, calc(100dvh - 276px));
  gap: 7px;
  margin: 0 auto;
}

.board-wrap {
  position: relative;
  width: 100%;
}

.board-tag {
  position: absolute;
  z-index: 4;
  top: -9px;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.board-tag span {
  display: block;
  padding: 2px 13px 3px;
  border: 1.5px solid rgba(56, 32, 18, 0.5);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #d49a61, #a4693b);
  box-shadow: 0 3px 0 rgba(67, 42, 22, 0.18), inset 0 1px 0 rgba(255, 248, 221, 0.36);
  color: #fff3d5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(76, 41, 18, 0.3);
}

.board {
  position: relative;
  width: 100%;
  padding: clamp(11px, 3.4vw, 17px);
  border: 2px solid var(--board-line);
  border-radius: clamp(23px, 6.8vw, 32px);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(150deg, var(--board-hi) 0%, var(--board-lo) 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.34),
    inset 0 -9px 0 rgba(20, 76, 39, 0.13),
    0 7px 0 var(--board-edge),
    0 16px 32px rgba(27, 68, 41, 0.24);
  touch-action: manipulation;
}

.board::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 13% 20%, rgba(255, 255, 255, 0.14) 0 1.5px, transparent 2px),
    radial-gradient(circle at 68% 34%, rgba(32, 116, 48, 0.14) 0 1.5px, transparent 2px),
    radial-gradient(circle at 41% 78%, rgba(255, 255, 255, 0.11) 0 1.5px, transparent 2px);
  background-size: 41px 38px, 53px 47px, 37px 42px;
  opacity: 0.7;
}

.board::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 11%;
  bottom: 3%;
  width: 14px;
  height: 18px;
  border-radius: 100% 0 100% 0;
  background: rgba(48, 132, 60, 0.3);
  transform: rotate(18deg);
  box-shadow:
    -268px -12px 0 -2px rgba(48, 132, 60, 0.22),
    -7px 5px 0 -4px rgba(48, 132, 60, 0.25);
  pointer-events: none;
}

.hole-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2px, 0.8vw, 7px);
}

.hole {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 26%;
  background: transparent;
  cursor: none;
  -webkit-touch-callout: none;
}

.hole::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 3%;
  bottom: 2%;
  left: 3%;
  height: 30%;
  border-radius: 50%;
  background: rgba(25, 91, 42, 0.13);
  filter: blur(4px);
}

.hole-rim {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 5.5%;
  left: 4%;
  height: 42%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(255, 237, 196, 0.3), transparent 27%),
    linear-gradient(180deg, #c18b56 0%, #a4693c 48%, #7e4c2b 100%);
  box-shadow:
    0 4px 0 rgba(30, 89, 42, 0.23),
    inset 0 3px 3px rgba(255, 229, 181, 0.22);
}

.hole-depth {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 11%;
  left: 9%;
  height: 31%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 25%, #241510 0%, #372217 57%, #4d3020 100%);
  box-shadow:
    inset 0 7px 9px rgba(0, 0, 0, 0.55),
    inset 0 -2px 3px rgba(175, 119, 75, 0.15),
    0 1px 0 rgba(255, 239, 203, 0.12);
}

.hole-front {
  position: absolute;
  z-index: 5;
  right: 6.5%;
  bottom: 7%;
  left: 6.5%;
  height: 36%;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #9c6339 0%, #b37b4a 46%, #87532f 100%);
  clip-path: inset(51% 0 0 0);
  box-shadow: inset 0 3px 0 rgba(255, 223, 173, 0.1);
}

.hole-front::before {
  content: "";
  position: absolute;
  top: 51%;
  right: 12%;
  left: 12%;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 229, 183, 0.13);
}

.mole-clip {
  position: absolute;
  z-index: 4;
  bottom: 17%;
  left: 11%;
  overflow: hidden;
  width: 78%;
  height: 72%;
}

.mole-rise {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(112%);
  transition: transform 0.28s cubic-bezier(0.18, 1.32, 0.44, 1);
  will-change: transform;
}

.hole.is-up .mole-rise {
  transform: translateY(0);
}

.hole.is-hit .mole-rise {
  transform: translateY(112%);
  transition-duration: 0.17s;
  transition-timing-function: ease-in;
}

.hole.is-up .mole {
  animation: mole-bob 1.65s ease-in-out infinite alternate;
}

.hole:nth-child(2n).is-up .mole { animation-delay: -0.4s; }
.hole:nth-child(3n).is-up .mole { animation-delay: -0.9s; }

.hole.is-up.type-gold .hole-depth {
  box-shadow:
    inset 0 7px 9px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 212, 72, 0.66),
    0 1px 0 rgba(255, 239, 203, 0.12);
}

.hole.is-up.type-black .hole-depth {
  box-shadow:
    inset 0 7px 9px rgba(0, 0, 0, 0.62),
    0 0 18px rgba(255, 76, 76, 0.38),
    0 1px 0 rgba(255, 239, 203, 0.12);
}

.hole.is-up.type-gold .mole-clip {
  filter: drop-shadow(0 0 8px rgba(255, 213, 76, 0.45));
}

.hole.is-hit .mole {
  animation: mole-squish 0.22s ease-out both;
}

.board.is-finished .hole.is-up .mole {
  animation-play-state: paused;
}

.mole {
  --fur: #aab3bb;
  --fur-dark: #89949e;
  --inner-ear: #d6a29f;
  --belly: #f8e9d4;
  --outline: #4c4e52;
  --eye: #352d2e;
  --blush: rgba(255, 145, 159, 0.45);
  --nose: #6b4849;
  --mole-shadow: rgba(48, 34, 25, 0.24);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 4px var(--mole-shadow));
  transform-origin: 50% 92%;
}

.mole.type-gray {
  --fur: #b2bbc2;
  --fur-dark: #8c979f;
  --inner-ear: #d6a6a1;
  --belly: #faeedb;
  --outline: #4f5155;
  --eye: #312c2c;
  --blush: rgba(241, 142, 154, 0.42);
  --nose: #634646;
}

.mole.type-pink {
  --fur: #ffb5c8;
  --fur-dark: #ef8fab;
  --inner-ear: #ff90ae;
  --belly: #fff0dc;
  --outline: #7b4a56;
  --eye: #453038;
  --blush: rgba(255, 105, 145, 0.46);
  --nose: #a25067;
}

.mole.type-gold {
  --fur: #ffd45d;
  --fur-dark: #eaa721;
  --inner-ear: #ffae9f;
  --belly: #fff8d5;
  --outline: #71501b;
  --eye: #413319;
  --blush: rgba(255, 143, 104, 0.42);
  --nose: #8b5a28;
  --mole-shadow: rgba(118, 78, 13, 0.26);
}

.mole.type-black {
  --fur: #554660;
  --fur-dark: #392e48;
  --inner-ear: #8d3f55;
  --belly: #94786b;
  --outline: #261c2f;
  --eye: #ff6a68;
  --blush: rgba(255, 95, 113, 0.22);
  --nose: #261c2b;
  --mole-shadow: rgba(26, 17, 34, 0.35);
}

.mole-ear {
  position: absolute;
  z-index: 1;
  top: 10%;
  width: 28%;
  height: 27%;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--fur-dark);
}

.mole-ear::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--inner-ear);
  opacity: 0.88;
}

.ear-left {
  left: 3%;
  transform: rotate(-18deg);
}

.ear-right {
  right: 3%;
  transform: rotate(18deg);
}

.mole-body {
  position: absolute;
  z-index: 2;
  bottom: -1%;
  left: 16%;
  width: 68%;
  height: 45%;
  border: 2px solid var(--outline);
  border-radius: 48% 48% 26% 26% / 38% 38% 21% 21%;
  background:
    radial-gradient(ellipse at 38% 16%, rgba(255, 255, 255, 0.2), transparent 31%),
    linear-gradient(180deg, var(--fur), var(--fur-dark));
}

.mole-belly {
  position: absolute;
  right: 22%;
  bottom: -2%;
  left: 22%;
  height: 76%;
  border-radius: 50% 50% 30% 30%;
  background: var(--belly);
  opacity: 0.9;
}

.mole-arm {
  position: absolute;
  z-index: 3;
  bottom: 8%;
  width: 23%;
  height: 27%;
  border: 2px solid var(--outline);
  border-radius: 48%;
  background: var(--fur-dark);
}

.arm-left {
  left: 7%;
  transform: rotate(23deg);
}

.arm-right {
  right: 7%;
  transform: rotate(-23deg);
}

.mole-head {
  position: absolute;
  z-index: 4;
  top: 10%;
  left: 6%;
  width: 88%;
  height: 64%;
  border: 2px solid var(--outline);
  border-radius: 47% 47% 43% 43% / 52% 52% 46% 46%;
  background:
    radial-gradient(ellipse at 33% 17%, rgba(255, 255, 255, 0.27), transparent 35%),
    linear-gradient(180deg, var(--fur) 0%, var(--fur) 58%, var(--fur-dark) 100%);
  box-shadow: inset 0 -7px 0 rgba(64, 44, 30, 0.05);
}

.mole-tuft {
  position: absolute;
  z-index: 2;
  top: -7%;
  left: 40%;
  width: 19%;
  height: 17%;
  border: 2px solid var(--outline);
  border-radius: 50% 50% 50% 2%;
  background: var(--fur);
  transform: rotate(-22deg);
}

.mole-tuft::after {
  content: "";
  position: absolute;
  top: -15%;
  right: -24%;
  width: 48%;
  height: 55%;
  border: 1.5px solid var(--outline);
  border-radius: 50% 50% 50% 2%;
  background: var(--fur);
  transform: rotate(30deg);
}

.type-black .mole-tuft {
  top: -9%;
  left: 38%;
  width: 24%;
  height: 16%;
  border: 0;
  border-radius: 0;
  background: var(--outline);
  clip-path: polygon(0 100%, 12% 18%, 32% 76%, 49% 0, 65% 74%, 86% 12%, 100% 100%);
  transform: none;
}

.type-black .mole-tuft::after {
  display: none;
}

.mole-brow {
  position: absolute;
  z-index: 2;
  top: 30%;
  width: 16%;
  height: 4.5%;
  border-radius: 999px;
  background: var(--outline);
  opacity: 0.52;
}

.brow-left {
  left: 22%;
  transform: rotate(5deg);
}

.brow-right {
  right: 22%;
  transform: rotate(-5deg);
}

.type-black .mole-brow {
  top: 29%;
  width: 20%;
  height: 7%;
  opacity: 1;
}

.type-black .brow-left {
  left: 19%;
  transform: rotate(22deg);
}

.type-black .brow-right {
  right: 19%;
  transform: rotate(-22deg);
}

.mole-eye {
  position: absolute;
  z-index: 1;
  top: 39%;
  width: 17%;
  height: 20%;
  overflow: hidden;
  border-radius: 50% 50% 47% 47%;
  background: var(--eye);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-origin: center;
}

.eye-left { left: 22%; }
.eye-right { right: 22%; }

.mole-eye::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 20%;
  width: 38%;
  height: 31%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.mole-eye::after {
  content: "";
  position: absolute;
  right: 17%;
  bottom: 17%;
  width: 22%;
  height: 17%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
}

.type-black .mole-eye {
  background: #ff6563;
  box-shadow: 0 0 7px rgba(255, 80, 80, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.type-black .mole-eye::before {
  top: 20%;
  left: 24%;
  width: 28%;
  height: 31%;
  background: #2b1f2c;
}

.type-black .mole-eye::after {
  width: 14%;
  height: 13%;
  background: rgba(255, 255, 255, 0.55);
}

.mole-blush {
  position: absolute;
  z-index: 0;
  top: 57%;
  width: 18%;
  height: 10%;
  border-radius: 50%;
  background: var(--blush);
  filter: blur(0.5px);
}

.blush-left { left: 8%; }
.blush-right { right: 8%; }

.mole-snout {
  position: absolute;
  z-index: 2;
  bottom: 8%;
  left: 50%;
  width: 58%;
  height: 33%;
  border-radius: 50%;
  background: var(--belly);
  box-shadow:
    inset 0 -2px 0 rgba(91, 57, 37, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.mole-nose {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 30%;
  height: 28%;
  border-radius: 48% 48% 58% 58%;
  background: var(--nose);
  transform: translateX(-50%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.mole-nose::before {
  content: "";
  position: absolute;
  top: 17%;
  left: 20%;
  width: 28%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.23);
}

.mole-mouth {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 36%;
  height: 22%;
  border-bottom: 1.8px solid rgba(91, 57, 44, 0.48);
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

.mole-tooth {
  position: absolute;
  bottom: 1%;
  width: 16%;
  height: 27%;
  border-radius: 0 0 4px 4px;
  background: #fffdf1;
  box-shadow: inset 0 -1px 0 rgba(167, 140, 104, 0.28);
}

.tooth-left {
  left: 39%;
  transform: rotate(3deg);
}

.tooth-right {
  right: 39%;
  transform: rotate(-3deg);
}

.type-black .mole-mouth {
  top: 53%;
  height: 15%;
  border-top: 1.8px solid rgba(255, 167, 164, 0.48);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.type-black .mole-tooth {
  bottom: 7%;
  width: 14%;
  height: 22%;
  border-radius: 4px 4px 0 0;
  background: #fff7ee;
}

.type-black .tooth-left {
  left: 41%;
  transform: rotate(7deg);
}

.type-black .tooth-right {
  right: 41%;
  transform: rotate(-7deg);
}

.mole-bow {
  position: absolute;
  z-index: 6;
  top: 7%;
  left: 0;
  display: none;
  width: 29%;
  height: 18%;
  filter: drop-shadow(0 2px 0 rgba(86, 42, 54, 0.16));
}

.type-pink .mole-bow {
  display: block;
}

.mole-bow::before,
.mole-bow::after {
  content: "";
  position: absolute;
  top: 4%;
  width: 48%;
  height: 92%;
  border: 1.6px solid #824e5e;
  border-radius: 58% 42% 54% 46%;
  background: linear-gradient(180deg, #ff9ebb, #ef688e);
}

.mole-bow::before {
  left: 0;
  transform: rotate(-14deg);
}

.mole-bow::after {
  right: 0;
  transform: rotate(14deg) scaleX(-1);
}

.mole-bow i {
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 50%;
  width: 28%;
  height: 48%;
  border: 1.5px solid #824e5e;
  border-radius: 50%;
  background: #ffd4df;
  transform: translateX(-50%);
}

.mole-bolt {
  position: absolute;
  z-index: 5;
  bottom: 23%;
  left: 45%;
  display: none;
  width: 12%;
  height: 22%;
  background: #ffd45a;
  clip-path: polygon(55% 0, 100% 0, 67% 39%, 96% 39%, 32% 100%, 46% 54%, 10% 54%);
  filter: drop-shadow(0 0 4px rgba(255, 205, 71, 0.55));
}

.type-black .mole-bolt {
  display: block;
}

.gold-spark {
  position: absolute;
  z-index: 7;
  display: none;
  width: 9%;
  aspect-ratio: 1;
  background: #fffbd0;
  clip-path: polygon(50% 0%, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 3px rgba(255, 236, 129, 0.9));
  animation: sparkle 1.8s ease-in-out infinite;
  pointer-events: none;
}

.type-gold .gold-spark {
  display: block;
}

.gs-one { top: 8%; left: -4%; }
.gs-two { top: 30%; right: -5%; width: 7%; animation-delay: -0.55s; }
.gs-three { top: 52%; left: -2%; width: 5%; animation-delay: -1.1s; }

.mole-badge {
  position: absolute;
  z-index: 8;
  top: 3%;
  right: -1%;
  display: flex;
  align-items: baseline;
  gap: 1px;
  padding: 1.5px 5px 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 7px;
  background: #fff9ea;
  box-shadow: 0 2px 0 rgba(56, 39, 21, 0.18);
  color: #67716f;
  font-family: var(--font-number);
  font-size: clamp(7px, 1.8vw, 9px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(5deg);
  pointer-events: none;
}

.mole-badge small {
  color: inherit;
  font-size: 0.76em;
  font-weight: 900;
  opacity: 0.65;
}

.type-pink .mole-badge {
  border-color: rgba(255, 255, 255, 0.9);
  background: #fff2f5;
  color: #d94676;
}

.type-gold .mole-badge {
  border-color: rgba(255, 250, 212, 0.95);
  background: linear-gradient(180deg, #fff9d9, #ffe58f);
  box-shadow: 0 2px 0 #dba21e, 0 0 10px rgba(255, 207, 64, 0.44);
  color: #8f5b09;
}

.type-black .mole-badge {
  border-color: rgba(255, 230, 230, 0.75);
  background: linear-gradient(180deg, #ff7474, #df3e4b);
  box-shadow: 0 2px 0 rgba(98, 22, 33, 0.32);
  color: #fff9f5;
}

.hole[booted="true"] .mole-rise {
  transition-duration: 0.3s;
}

.legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  gap: 2px;
  padding: 5px 6px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 14px;
  background: rgba(255, 250, 236, 0.82);
  box-shadow: 0 3px 0 rgba(38, 74, 46, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #687363;
  font-size: clamp(9px, 2.35vw, 10px);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.legend-item i {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, 0.12);
}

.legend-gray i { background: #a9b2b8; }
.legend-pink i { background: #f48cab; }
.legend-gold i { background: #ffd049; box-shadow: inset 0 -1.5px 0 #d89c1c, 0 0 5px rgba(255, 195, 45, 0.5); }
.legend-black i { background: #554660; }

.legend-item em {
  margin-left: 1px;
  color: #bf7b15;
  font-size: 0.84em;
  font-weight: 900;
}

.legend-black {
  color: #a24b4d;
}

.legend-black em {
  color: #d54b4d;
}

.legend-help {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid rgba(87, 76, 53, 0.12);
  border-radius: 50%;
  background: #e9dfc8;
  color: #6d775f;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 900;
}

.legend-help:active {
  transform: scale(0.94);
}

.effect-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.float-score {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-family: var(--font-number);
  font-size: clamp(19px, 5.6vw, 24px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(71, 43, 21, 0.45),
    0 0 11px rgba(255, 245, 200, 0.6);
  white-space: nowrap;
  pointer-events: none;
  animation: score-float 0.9s cubic-bezier(0.18, 0.75, 0.24, 1) forwards;
}

.float-score small {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(36, 50, 30, 0.56);
  color: #fff6d6;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 900;
  text-shadow: none;
}

.float-gray { color: #fffdf2; }
.float-pink { color: #ffdce9; text-shadow: 0 2px 0 #9f3c5d, 0 0 14px rgba(255, 160, 200, 0.8); }
.float-gold { color: #ffe15a; text-shadow: 0 2px 0 #8d5b06, 0 0 16px rgba(255, 222, 88, 0.95); }
.float-black { color: #ff8a84; text-shadow: 0 2px 0 #4b1c21, 0 0 14px rgba(255, 82, 82, 0.65); }

.burst-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--particle-color);
  box-shadow: 0 0 5px var(--particle-color);
  pointer-events: none;
  animation: particle-out 0.58s ease-out forwards;
}

.level-flash {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.level-flash.is-show {
  animation: flash-banner 1.25s ease both;
}

.level-flash strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 27px;
  border: 3px solid rgba(255, 251, 228, 0.9);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffcc4f, #ff963f);
  box-shadow: 0 8px 0 rgba(171, 83, 22, 0.65), 0 20px 42px rgba(74, 48, 20, 0.32);
  color: #fff9e6;
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 39px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgba(158, 78, 17, 0.38);
  transform: rotate(-3deg);
}

.level-flash.is-fail strong {
  background: linear-gradient(135deg, #ff9c74, #e65858);
  box-shadow: 0 8px 0 rgba(150, 50, 49, 0.55), 0 20px 42px rgba(74, 32, 20, 0.3);
}

.hammer-cursor {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 62px;
  height: 62px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 6px rgba(67, 43, 22, 0.26));
  transform: translate(-25%, -72%) rotate(-8deg);
  transform-origin: 30% 80%;
  transition: opacity 0.1s ease;
}

.hammer-cursor.is-visible {
  opacity: 1;
}

.hammer-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 28% 82%;
}

.hammer-cursor.is-swinging svg {
  animation: hammer-swing 0.25s cubic-bezier(0.25, 0.86, 0.32, 1);
}

.modal-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  overflow: hidden;
  padding:
    max(18px, env(safe-area-inset-top))
    18px
    max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-layer.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 20, 0.5);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  width: min(100%, 382px);
  max-height: min(87dvh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 23px 20px 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 221, 127, 0.14), transparent 38%),
    linear-gradient(180deg, #fffdf3 0%, #fff8e5 100%);
  box-shadow:
    0 26px 70px rgba(8, 28, 17, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.26, 1.08), opacity 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(66, 92, 54, 0.25) transparent;
}

.modal-layer.is-open .modal-card {
  opacity: 1;
  transform: none;
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(91, 83, 58, 0.12);
  border-radius: 50%;
  background: rgba(242, 233, 210, 0.9);
  color: #7b7962;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.modal-close:active {
  transform: scale(0.94);
}

.modal-eyebrow {
  margin-bottom: 4px;
  color: #b29355;
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-align: center;
}

.modal-title {
  color: #24432d;
  font-size: clamp(21px, 6vw, 25px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
}

.modal-subtitle {
  margin-top: 5px;
  color: #82846d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 17px;
}

.modal-btn {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}

.modal-btn-primary {
  border: 1.5px solid rgba(255, 255, 255, 0.44);
  background: linear-gradient(180deg, #63c369, #3e9f50);
  box-shadow: 0 5px 0 #2b7b3d, 0 10px 18px rgba(46, 118, 61, 0.2);
  color: #fff9e9;
}

.modal-btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #2b7b3d, 0 5px 10px rgba(46, 118, 61, 0.16);
}

.modal-btn-secondary {
  border: 1.5px solid #e5d9c0;
  background: rgba(255, 253, 244, 0.9);
  box-shadow: 0 3px 0 #e0d3b7;
  color: #526747;
}

.modal-btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #e0d3b7;
}

.modal-btn-ghost {
  min-height: 38px;
  color: #89846f;
  font-size: 11px;
}

.modal-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
  color: #c3b69a;
  font-size: 10px;
}

.modal-link {
  padding: 4px 2px;
  color: #708566;
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(112, 133, 102, 0.4);
  text-underline-offset: 3px;
}

.modal-link:active {
  color: #315939;
}

.result-emblem {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 13px;
  place-items: center;
  border: 2px solid rgba(255, 251, 221, 0.9);
  border-radius: 29px;
  background:
    radial-gradient(circle at 35% 22%, #fff8c6, transparent 32%),
    linear-gradient(150deg, #ffd65b, #ffab2e);
  box-shadow:
    0 7px 0 #d7871b,
    0 14px 24px rgba(183, 116, 27, 0.23),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  color: #7d5211;
  transform: rotate(-4deg);
}

.result-emblem svg {
  width: 48px;
  height: 48px;
  transform: rotate(4deg);
}

.result-emblem.is-fail {
  background:
    radial-gradient(circle at 35% 22%, #ffe0c9, transparent 32%),
    linear-gradient(150deg, #ffab7c, #ef6b5d);
  box-shadow:
    0 7px 0 #c05046,
    0 14px 24px rgba(157, 58, 52, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  color: #863a32;
}

.result-emblem.is-pause {
  background:
    radial-gradient(circle at 35% 22%, #e3f7c4, transparent 32%),
    linear-gradient(150deg, #90da77, #58b963);
  box-shadow:
    0 7px 0 #3f914e,
    0 14px 24px rgba(59, 119, 67, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  color: #2f6c42;
}

.result-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: -2px 0 8px;
  color: #f0ae27;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(218, 147, 23, 0.15);
}

.result-stars span {
  display: inline-block;
  animation: star-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.result-stars span:nth-child(2) { animation-delay: 0.09s; }
.result-stars span:nth-child(3) { animation-delay: 0.18s; }

.result-stars.is-faded {
  opacity: 0.34;
  filter: grayscale(0.35);
}

.result-score {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #efe3ca;
  border-radius: 17px;
  background: rgba(255, 252, 243, 0.83);
  text-align: center;
}

.result-score span {
  display: block;
  margin-bottom: 2px;
  color: #8f8d7c;
  font-size: 10px;
  font-weight: 800;
}

.result-score strong {
  color: #24472e;
  font-family: var(--font-number);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-score strong.is-negative {
  color: #dc4d49;
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.result-stat {
  padding: 8px 6px;
  border: 1px solid #efe4ce;
  border-radius: 13px;
  background: rgba(255, 252, 243, 0.72);
  text-align: center;
}

.result-stat span {
  display: block;
  margin-bottom: 2px;
  color: #9b9583;
  font-size: 9px;
  font-weight: 800;
}

.result-stat b {
  color: #3d5a40;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 900;
}

.result-note {
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f6eedb;
  color: #7f806c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

.result-note b {
  color: #406341;
}

.pause-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pause-stat {
  min-width: 92px;
  padding: 9px 13px;
  border: 1px solid #eee2cb;
  border-radius: 14px;
  background: rgba(255, 253, 245, 0.85);
  text-align: center;
}

.pause-stat span {
  display: block;
  margin-bottom: 3px;
  color: #9b9581;
  font-size: 9px;
  font-weight: 800;
}

.pause-stat b {
  color: #315039;
  font-family: var(--font-number);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.rules-level-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px dashed #d8c8a3;
  border-radius: 13px;
  background: rgba(251, 243, 220, 0.7);
  color: #827b66;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}

.rules-level-note b {
  color: #4a643f;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #eee2ca;
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.8);
}

.rule-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
}

.rule-avatar .mole {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 39px;
  height: 45px;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 2px rgba(55, 39, 24, 0.14));
  animation: none;
}

.rule-avatar .mole-badge {
  display: none;
}

.rule-avatar-gray { background: linear-gradient(160deg, #e8eef0, #ced9d7); }
.rule-avatar-pink { background: linear-gradient(160deg, #ffe5ec, #ffcbd8); }
.rule-avatar-gold { background: linear-gradient(160deg, #fff3bd, #ffdd7b); }
.rule-avatar-black { background: linear-gradient(160deg, #eee4f0, #d8c9dd); }

.rule-copy {
  flex: 1;
  min-width: 0;
}

.rule-copy strong {
  display: block;
  margin-bottom: 1px;
  color: #3b553d;
  font-size: 12px;
  font-weight: 900;
}

.rule-copy span {
  display: block;
  color: #96907d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.rule-points {
  flex: 0 0 auto;
  color: #4e6c4d;
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.rule-points small {
  display: block;
  margin-top: 1px;
  color: #a9a08b;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 800;
}

.rule-row-black .rule-points {
  color: #ce5050;
}

.rule-row-gold .rule-points {
  color: #b88616;
}

.rule-row-black .rule-copy strong {
  color: #70434b;
}

.rules-small-print {
  margin-top: 11px;
  color: #a29a87;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 160;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: min(86vw, 360px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(29, 51, 34, 0.95);
  box-shadow: 0 12px 25px rgba(15, 35, 22, 0.22);
  color: #fff8e9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confetti-layer {
  position: fixed;
  z-index: 130;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: var(--w);
  height: var(--h);
  border-radius: 2px;
  background: var(--c);
  animation: confetti-fall var(--duration) cubic-bezier(0.15, 0.55, 0.45, 1) var(--delay) forwards;
  transform: rotate(var(--rotate));
}

.sr-only {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.noscript {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cream);
  color: var(--green-900);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.game-shell.is-shaking .board {
  animation: board-shake 0.34s ease;
}

.game-shell.is-shaking .hud-main {
  animation: hud-shake 0.34s ease;
}

@keyframes screen-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cloud-drift {
  from { transform: translate3d(-10px, 0, 0); }
  to { transform: translate3d(17px, 5px, 0); }
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes ambient-float {
  0%, 100% { opacity: 0.3; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(5px, -9px, 0); }
}

@keyframes hero-bob {
  from { transform: translateY(0) rotate(-1.2deg); }
  to { transform: translateY(-4px) rotate(1.4deg); }
}

@keyframes mallet-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(-3px, -7px, 0) rotate(2deg); }
}

@keyframes button-shine {
  0%, 35% { transform: translateX(-190%) rotate(18deg); }
  65%, 100% { transform: translateX(480%) rotate(18deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.55) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes score-bump {
  0% { transform: scale(1); }
  44% { transform: scale(1.18) rotate(-2deg); }
  100% { transform: scale(1); }
}

@keyframes timer-alert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes timer-gain {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(255, 208, 73, 0.22); }
  100% { transform: scale(1); }
}

@keyframes timer-loss {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes mole-bob {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-2.4%) rotate(1deg); }
}

@keyframes mole-squish {
  0% { transform: translateY(0) scale(1, 1); }
  48% { transform: translateY(6%) scale(1.12, 0.8); }
  100% { transform: translateY(12%) scale(0.88, 0.72); opacity: 0.8; }
}

@keyframes score-float {
  0% { opacity: 0; transform: translate(-50%, -36%) scale(0.72); }
  22% { opacity: 1; transform: translate(-50%, -70%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -184%) scale(0.92); }
}

@keyframes particle-out {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0.22) rotate(170deg);
  }
}

@keyframes flash-banner {
  0% { opacity: 0; transform: scale(0.7) rotate(-5deg); }
  16% { opacity: 1; transform: scale(1.04) rotate(-2deg); }
  28%, 71% { opacity: 1; transform: scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.94) rotate(-1deg); }
}

@keyframes hammer-swing {
  0% { transform: rotate(0deg); }
  42% { transform: rotate(41deg) translate(9px, 8px) scale(0.96); }
  100% { transform: rotate(0deg); }
}

@keyframes damage-flash {
  0% { opacity: 0; }
  16% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes board-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-5px, 2px, 0) rotate(-0.5deg); }
  40% { transform: translate3d(4px, -3px, 0) rotate(0.4deg); }
  60% { transform: translate3d(-3px, 1px, 0); }
  80% { transform: translate3d(2px, -1px, 0); }
}

@keyframes hud-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-1px); }
}

@keyframes star-pop {
  0% { opacity: 0; transform: scale(0.2) rotate(-25deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -5vh, 0) rotate(var(--rotate)); }
  8% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(var(--drift), 108vh, 0) rotate(calc(var(--rotate) + 540deg)); }
}

@media (max-width: 380px) {
  .start-head {
    gap: 3px;
  }

  .game-logo {
    font-size: clamp(44px, 13.8vw, 54px);
  }

  .title-badge {
    padding: 4px 9px;
  }

  .start-tagline {
    font-size: 10px;
  }

  .hero-stage {
    height: clamp(170px, 24vh, 222px);
  }

  .hero-slot.hero-left {
    width: 80px;
    height: 96px;
  }

  .hero-slot.hero-right {
    width: 88px;
    height: 104px;
  }

  .hero-slot.hero-center {
    width: 120px;
    height: 140px;
  }

  .play-btn {
    min-height: 61px;
  }

  .play-btn-hammer {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .pb-head {
    top: 8px;
    left: 8px;
    width: 26px;
    height: 14px;
  }

  .pb-handle {
    top: 20px;
    left: 19px;
    height: 19px;
  }

  .level-road {
    padding-right: 10px;
    padding-left: 10px;
  }

  .level-chip {
    gap: 5px;
    padding: 6px 9px;
  }

  .level-name {
    display: none;
  }

  .score-panel {
    padding-right: 11px;
    padding-left: 11px;
  }

  .timer-panel {
    width: 76px;
    flex-basis: 76px;
  }

  .timer-ring {
    width: 60px;
    height: 60px;
  }

  .timer-face strong {
    font-size: 21px;
  }

  .legend {
    padding-left: 7px;
  }

  .legend-item {
    gap: 3px;
    font-size: 8px;
  }

  .legend-item i {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .legend-help {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    font-size: 10px;
  }
}

@media (max-height: 700px) {
  .screen-start {
    padding-top: calc(7px + env(safe-area-inset-top));
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }

  .start-inner {
    gap: 6px;
  }

  .start-top {
    min-height: 32px;
  }

  .round-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .start-head {
    margin-top: 0;
  }

  .game-logo {
    font-size: clamp(43px, 12.8vw, 58px);
    text-shadow:
      -2.5px -2.5px 0 #285034,
      2.5px -2.5px 0 #285034,
      -2.5px 2.5px 0 #285034,
      2.5px 2.5px 0 #285034,
      0 5px 0 #295537,
      0 8px 0 #eb9a2d,
      0 12px 14px rgba(38, 77, 46, 0.28);
  }

  .hero-stage {
    height: clamp(148px, 23.5vh, 190px);
  }

  .hero-slot.hero-left {
    width: 75px;
    height: 88px;
  }

  .hero-slot.hero-right {
    width: 82px;
    height: 96px;
  }

  .hero-slot.hero-center {
    width: 110px;
    height: 128px;
    bottom: 21%;
  }

  .hero-mound {
    height: 32%;
  }

  .hero-hammer {
    width: clamp(52px, 15vw, 65px);
  }

  .play-btn {
    min-height: 58px;
  }

  .play-btn-copy strong {
    font-size: 17px;
  }

  .play-btn-copy small {
    font-size: 9px;
  }

  .level-road {
    margin-top: 0;
    padding-top: 9px;
    padding-bottom: 7px;
  }

  .road-head {
    margin-bottom: 6px;
  }

  .road-head h2 {
    font-size: 14px;
  }

  .step-node {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .level-step:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 15px);
    right: calc(-50% + 15px);
  }

  .is-current .step-node {
    width: 29px;
    height: 29px;
    margin: -2px 0;
  }

  .start-foot {
    padding-top: 1px;
    font-size: 8px;
  }

  .screen-game {
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }

  .hud-top {
    min-height: 30px;
    margin-bottom: 5px;
  }

  .hud-actions .round-btn {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .score-panel {
    padding-top: 7px;
    padding-bottom: 8px;
  }

  .score-value {
    font-size: 24px;
  }

  .progress-track {
    margin-top: 5px;
    height: 8px;
  }

  .timer-panel {
    width: 75px;
    flex-basis: 75px;
    padding: 4px;
  }

  .timer-ring {
    width: 58px;
    height: 58px;
  }

  .timer-face strong {
    font-size: 21px;
  }

  .stage-area {
    padding-top: 3px;
  }

  .play-column {
    width: min(100%, 460px, calc(100dvh - 238px));
    gap: 5px;
  }

  .legend {
    min-height: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media (max-width: 340px) {
  .legend {
    gap: 1px;
    padding-right: 4px;
    padding-left: 5px;
  }

  .legend-item {
    gap: 2px;
    font-size: 7.5px;
  }

  .legend-item em {
    font-size: 6.5px;
  }

  .legend-help {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 9px;
  }
}

@media (max-height: 620px) {
  .modal-layer {
    align-items: center;
    padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
  }

  .modal-card {
    max-height: calc(100dvh - 16px);
    padding: 15px 14px 13px;
    border-radius: 22px;
  }

  .modal-close {
    top: 9px;
    right: 9px;
    width: 27px;
    height: 27px;
    font-size: 17px;
  }

  .modal-eyebrow {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .modal-title {
    font-size: 19px;
  }

  .modal-subtitle {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.5;
  }

  .rules-list {
    gap: 5px;
    margin-top: 10px;
  }

  .rule-row {
    gap: 7px;
    padding: 4px 7px;
    border-radius: 12px;
  }

  .rule-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .rule-avatar .mole {
    top: 3px;
    width: 33px;
    height: 38px;
  }

  .rule-copy strong {
    font-size: 11px;
  }

  .rule-copy span {
    font-size: 8px;
  }

  .rule-points {
    font-size: 13px;
  }

  .rules-level-note {
    margin-top: 9px;
    padding: 7px 9px;
    font-size: 9px;
    line-height: 1.55;
  }

  .rules-small-print {
    display: none;
  }

  .modal-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .modal-btn {
    min-height: 42px;
    border-radius: 13px;
    font-size: 13px;
  }

  .modal-link-row {
    margin-top: 1px;
  }

  .result-emblem {
    width: 64px;
    height: 64px;
    margin-bottom: 9px;
    border-radius: 21px;
  }

  .result-emblem svg {
    width: 36px;
    height: 36px;
  }

  .result-stars {
    margin-bottom: 5px;
    font-size: 14px;
  }

  .result-score {
    margin-top: 8px;
    padding: 8px;
  }

  .result-score strong {
    font-size: 30px;
  }

  .result-stats {
    gap: 6px;
    margin-top: 6px;
  }

  .result-stat {
    padding: 6px 5px;
  }

  .result-note {
    margin-top: 7px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .pause-stats {
    margin-top: 10px;
  }

  .pause-stat {
    padding: 7px 12px;
  }
}

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