:root {
  --surface: #fbf9f5;
  --surface-low: #f5f3ef;
  --surface-high: #ece8e0;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --wood: #77584e;
  --wood-deep: #5a4038;
  --wood-dark: #3a2925;
  --ink: #31332f;
  --ink-soft: #7d726a;
  --lime: #eefe59;
  --lime-deep: #d9ef31;
  --leaf: #4f7e35;
  --leaf-soft: #bff3a9;
  --mint: #bcf0ae;
  --danger: #ff6a4d;
  --danger-deep: #d65135;
  --shadow: rgba(52, 34, 28, 0.12);
  --shadow-deep: rgba(52, 34, 28, 0.24);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(188, 240, 174, 0.42), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(238, 254, 89, 0.24), transparent 20%),
    radial-gradient(circle at 48% 100%, rgba(238, 254, 89, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f6f1 0%, var(--surface) 44%, #f6f2ea 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

body::before {
  left: -56px;
  top: 22%;
  width: 210px;
  height: 300px;
  background:
    radial-gradient(circle at 60% 20%, rgba(95, 130, 74, 0.85), transparent 16%),
    radial-gradient(circle at 36% 48%, rgba(95, 130, 74, 0.8), transparent 18%),
    radial-gradient(circle at 72% 82%, rgba(95, 130, 74, 0.76), transparent 15%);
  filter: blur(1px);
}

body::after {
  right: -34px;
  top: 28%;
  width: 190px;
  height: 260px;
  background:
    radial-gradient(circle at 38% 14%, rgba(95, 130, 74, 0.74), transparent 15%),
    radial-gradient(circle at 60% 40%, rgba(95, 130, 74, 0.78), transparent 18%),
    radial-gradient(circle at 44% 74%, rgba(95, 130, 74, 0.7), transparent 14%);
  filter: blur(1px);
}

body.ninja-vibe {
  animation: ninja-vibe 370ms linear;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.top-shell,
.app-shell,
.bottom-nav,
.overlay {
  position: relative;
  z-index: 1;
}

.top-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 0;
  z-index: 12;
}

.icon-chip,
.wallet-pill {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(89, 60, 42, 0.08);
}

.icon-chip {
  width: 42px;
  color: var(--wood);
  cursor: pointer;
}

.brand-mark {
  margin: 0;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.05em;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  color: var(--wood);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.wallet-icon {
  color: #6c8828;
  font-size: 18px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 76px 18px calc(116px + env(safe-area-inset-bottom));
  transition: padding-bottom 180ms ease;
}

.game-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
}

.score-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 18px;
  text-align: center;
}

.hero-label,
.overlay-kicker,
.stat-kicker,
.timer-caption {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.hero-score {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 16vw, 4.8rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: var(--wood);
}

.combo-chip {
  justify-self: end;
  margin-right: 8%;
  display: grid;
  gap: 2px;
  padding: 12px 22px 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, var(--lime) 0%, #ebff47 100%);
  box-shadow:
    0 18px 34px rgba(209, 226, 60, 0.35),
    inset 0 -3px 0 rgba(82, 92, 0, 0.18);
  transform: rotate(-8deg);
}

.combo-chip-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f5604;
}

.combo-value {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  line-height: 0.94;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.06em;
  color: #26251c;
  text-shadow: 0 0 10px rgba(233, 246, 58, 0.5);
  transition: color 140ms ease, text-shadow 140ms ease;
}

.combo-value.bump {
  animation: combo-bump 260ms ease;
}

.timer-block {
  display: grid;
  gap: 10px;
}

.timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-value {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--leaf);
}

.time-value::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 12px rgba(79, 126, 53, 0.36);
}

.time-bar {
  height: 15px;
  border-radius: 999px;
  overflow: hidden;
  background: #ebe8e1;
  box-shadow: inset 0 1px 2px rgba(52, 34, 28, 0.1);
}

.time-bar-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--lime) 100%);
  box-shadow: 0 0 16px rgba(227, 246, 83, 0.32);
  transition: width 90ms linear, background 90ms linear;
}

body.classic-mode .time-value {
  color: var(--wood);
}

body.classic-mode .time-value::before {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(238, 254, 89, 0.36);
}

.arena-panel {
  display: grid;
}

.arena-shell {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  padding: 16px;
  background:
    linear-gradient(160deg, #8e685d 0%, var(--wood) 55%, var(--wood-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 44px rgba(90, 64, 56, 0.2);
}

.arena-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 2;
}

.arena-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 16%, transparent 16% 32%, rgba(255, 255, 255, 0.03) 32% 48%, transparent 48% 64%, rgba(255, 255, 255, 0.03) 64% 80%, transparent 80% 100%);
  opacity: 0.26;
  mix-blend-mode: screen;
  pointer-events: none;
}

#gameCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  touch-action: none;
  background: rgba(255, 255, 255, 0.78);
}

.screen-flash {
  position: absolute;
  inset: 16px;
  z-index: 3;
  border-radius: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.center-banner {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 46%;
  padding: 14px 24px;
  min-width: 118px;
  border-radius: 28px;
  transform: translate(-50%, -50%) rotate(-11deg);
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: #f9fbeb;
  background: linear-gradient(180deg, #497233 0%, #38602c 100%);
  box-shadow: 0 16px 28px rgba(49, 85, 38, 0.32);
  pointer-events: none;
}

.center-banner.hidden {
  display: none;
}

.center-banner.show {
  animation: banner-pop 460ms ease;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-pod {
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 34px rgba(90, 64, 56, 0.08);
  backdrop-filter: blur(10px);
}

.stat-pod strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: -0.05em;
}

.energy-dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
}

.energy-dot {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: #d8d4cd;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.energy-dot.is-on {
  background: var(--leaf);
  box-shadow: 0 0 10px rgba(79, 126, 53, 0.24);
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-items: end;
  padding: 10px 12px 14px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 -4px 24px rgba(52, 34, 28, 0.08);
  transition: transform 220ms ease, opacity 180ms ease;
}

body.run-active .app-shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

body.run-active .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(135%);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(49, 51, 47, 0.54);
}

.nav-item .material-symbols-outlined {
  font-size: 22px;
}

.nav-item-active {
  width: 66px;
  height: 66px;
  justify-self: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  background: #2e2725;
  color: #f1d540;
  box-shadow: 0 16px 28px rgba(46, 39, 37, 0.22);
  transform: translateY(-22px);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  padding: 84px 18px calc(110px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 6%, rgba(238, 254, 89, 0.18), transparent 22%),
    rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(16px);
}

.overlay.hidden {
  display: none;
}

.overlay-screen {
  width: min(100%, 430px);
  margin: 0 auto;
}

.menu-screen,
.shop-screen,
.options-screen,
.gameover-screen {
  display: grid;
  gap: 18px;
}

.menu-record-card,
.final-score-card,
.options-wood-panel,
.shop-hero {
  position: relative;
  overflow: hidden;
}

.menu-record-card {
  padding: 18px 20px 20px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 36px rgba(90, 64, 56, 0.08);
  text-align: center;
}

.menu-record-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 13vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  color: var(--wood);
}

.menu-dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 10px;
}

.menu-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(190, 228, 92, 0.9);
}

.play-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 24px 18px;
  border: 0;
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(132, 95, 82, 0.22), transparent 40%),
    linear-gradient(160deg, #876356 0%, var(--wood) 55%, var(--wood-deep) 100%);
  color: #fff9f2;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 36px rgba(90, 64, 56, 0.16);
  position: relative;
}

.play-cta::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime) 0%, #f5ff84 100%);
  box-shadow: 0 0 18px rgba(238, 254, 89, 0.45);
}

.play-cta .material-symbols-outlined {
  font-size: 42px;
  color: var(--lime);
}

.mode-panel {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 32px rgba(90, 64, 56, 0.08);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(49, 51, 47, 0.06);
  color: var(--ink-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

.mode-button.is-selected {
  background: linear-gradient(180deg, var(--lime) 0%, #efff6f 100%);
  color: #485500;
  box-shadow:
    0 12px 22px rgba(220, 236, 74, 0.24),
    inset 0 -2px 0 rgba(97, 104, 0, 0.16);
}

.mode-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.menu-actions,
.gameover-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.soft-action,
.shop-item,
.stat-cell {
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 32px rgba(90, 64, 56, 0.08);
}

.soft-action {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 16px;
  border: 0;
  border-radius: 34px;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.soft-action .material-symbols-outlined {
  font-size: 30px;
  color: var(--wood);
}

.reward-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 18px 18px 16px;
  border: 0;
  border-radius: 34px;
  background: linear-gradient(135deg, #d6f6b0 0%, #baf19d 100%);
  box-shadow: 0 18px 34px rgba(125, 176, 88, 0.16);
  text-align: left;
  cursor: pointer;
}

.reward-card:disabled {
  opacity: 0.72;
  cursor: default;
}

.reward-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(49, 89, 39, 0.18);
  color: var(--leaf);
}

.reward-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  color: #32552f;
}

.reward-status {
  display: block;
  margin-top: 4px;
  color: rgba(50, 85, 47, 0.78);
  font-size: 0.8rem;
  line-height: 1.35;
}

.reward-arrow {
  color: #32552f;
}

.menu-wallet {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

.menu-wallet span {
  color: var(--wood);
  font-family: "Space Grotesk", sans-serif;
}

.shop-hero {
  padding: 22px 20px;
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(145deg, #876356 0%, var(--wood) 46%, #231f21 100%);
  color: #fffaf5;
  box-shadow: 0 22px 38px rgba(90, 64, 56, 0.18);
}

.shop-hero-copy h2,
.options-head h2,
.gameover-title {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.shop-wallet {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf5;
  font-weight: 700;
}

.shop-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.shop-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink-soft);
  font-weight: 700;
}

.shop-tab.active {
  background: var(--wood);
  color: #fffaf5;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-item {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 14px 14px;
  border: 3px solid transparent;
  border-radius: 34px;
}

.swatch {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 14px 28px rgba(90, 64, 56, 0.12);
  position: relative;
  overflow: hidden;
  background-color: #d9d8d2;
}

.swatch::before,
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.swatch::before {
  inset: 8px;
}

.swatch-jade {
  background:
    radial-gradient(circle at 50% 50%, rgba(238, 254, 89, 0.85), rgba(238, 254, 89, 0.1) 57%, transparent 66%);
  box-shadow:
    0 0 0 4px rgba(221, 244, 84, 0.9),
    0 14px 28px rgba(90, 64, 56, 0.14);
}

.swatch-jade::before {
  background:
    radial-gradient(circle at 34% 28%, rgba(154, 199, 109, 0.9), transparent 18%),
    radial-gradient(circle at 62% 66%, rgba(10, 30, 12, 0.96), transparent 58%),
    radial-gradient(circle at 50% 46%, #35522f 0%, #20321c 52%, #0b120a 82%);
}

.swatch-jade::after {
  inset: 18px;
  opacity: 0.5;
  background:
    radial-gradient(circle at 42% 44%, transparent 0 16px, rgba(120, 159, 86, 0.55) 17px 19px, transparent 20px),
    linear-gradient(132deg, transparent 22%, rgba(109, 154, 79, 0.45) 27%, transparent 34%, transparent 58%, rgba(65, 104, 47, 0.42) 63%, transparent 69%);
  transform: rotate(-18deg);
}

.swatch-ember {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 143, 85, 0.38), transparent 62%);
}

.swatch-ember::before {
  background:
    radial-gradient(circle at 50% 50%, #4f5258 0%, #2d3036 62%, #111317 86%),
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.22), transparent 20%);
}

.swatch-ember::after {
  inset: 16px;
  background:
    linear-gradient(25deg, transparent 0 22%, rgba(255, 120, 55, 0.95) 22% 25%, transparent 25% 46%, rgba(255, 168, 88, 0.92) 46% 50%, transparent 50% 100%),
    linear-gradient(110deg, transparent 0 18%, rgba(255, 108, 44, 0.92) 18% 21%, transparent 21% 42%, rgba(255, 168, 88, 0.88) 42% 45%, transparent 45% 68%, rgba(255, 120, 55, 0.92) 68% 72%, transparent 72% 100%),
    linear-gradient(155deg, transparent 0 26%, rgba(255, 120, 55, 0.88) 26% 30%, transparent 30% 56%, rgba(255, 173, 97, 0.86) 56% 60%, transparent 60% 100%);
  mix-blend-mode: screen;
}

.swatch-chrome {
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 222, 255, 0.26), transparent 64%);
}

.swatch-chrome::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.32), transparent 16%),
    radial-gradient(circle at 50% 50%, #11151e 0%, #05070c 72%);
}

.swatch-chrome::after {
  inset: 14px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 26px, rgba(7, 10, 14, 0.94) 27px 100%),
    linear-gradient(112deg, transparent 0 26%, rgba(73, 225, 255, 0.95) 27% 31%, transparent 32% 100%),
    linear-gradient(128deg, transparent 0 42%, rgba(59, 198, 255, 0.92) 43% 47%, transparent 48% 100%),
    linear-gradient(145deg, transparent 0 58%, rgba(158, 247, 255, 0.94) 59% 63%, transparent 64% 100%);
}

.swatch-shadow {
  background:
    radial-gradient(circle at 50% 50%, rgba(161, 136, 255, 0.24), transparent 62%);
}

.swatch-shadow::before {
  background:
    radial-gradient(circle at 34% 30%, rgba(210, 200, 255, 0.18), transparent 14%),
    radial-gradient(circle at 50% 50%, #353340 0%, #1e1d27 64%, #111017 84%);
}

.swatch-shadow::after {
  inset: 14px;
  background:
    radial-gradient(circle at 50% 60%, rgba(118, 92, 190, 0.2), transparent 44%),
    linear-gradient(120deg, transparent 0 36%, rgba(106, 90, 156, 0.52) 36% 42%, transparent 42% 100%);
  filter: blur(1.4px);
}

.swatch-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(15, 17, 23, 0.2);
}

.swatch-lock .material-symbols-outlined {
  font-size: 30px;
}

.shop-meta {
  text-align: center;
}

.shop-meta strong {
  display: block;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-meta span {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.shop-item button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(49, 51, 47, 0.06);
  color: var(--wood);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: none;
}

.shop-item button.locked {
  background: rgba(49, 51, 47, 0.06);
  color: #6c8828;
}

.shop-item button.equipped {
  background: linear-gradient(180deg, var(--lime) 0%, #efff6f 100%);
  color: #435300;
}

.options-head {
  text-align: center;
}

.options-wood-panel {
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(145deg, #8a7269 0%, #7a635b 100%);
  box-shadow: 0 22px 40px rgba(90, 64, 56, 0.16);
}

.option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  color: #fffaf5;
}

.option-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fffaf5;
}

.option-copy strong {
  display: block;
  font-size: 1.12rem;
}

.option-copy span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: rgba(255, 250, 245, 0.72);
}

.option-row button {
  min-width: 78px;
}

.record-badge {
  justify-self: center;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lime) 0%, #efff6f 100%);
  color: #5a5104;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 16px 28px rgba(220, 236, 74, 0.24);
}

.record-badge.hidden {
  display: none;
}

.gameover-overlay {
  background:
    radial-gradient(circle at 50% 12%, rgba(236, 254, 89, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(17, 30, 11, 0.94), rgba(10, 18, 8, 0.98));
}

.gameover-screen {
  color: #fffaf5;
  text-align: center;
}

.gameover-title {
  color: var(--danger);
  text-transform: uppercase;
  font-style: italic;
  text-shadow: 0 0 18px rgba(255, 106, 77, 0.44);
}

.final-score-card {
  padding: 24px 22px 28px;
  border-radius: 44px;
  background: linear-gradient(160deg, #8c675a 0%, #73564c 100%);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.2);
}

.final-score-card .overlay-kicker {
  color: rgba(255, 250, 245, 0.48);
}

.final-score-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 16vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-cell {
  padding: 18px 16px;
  border-radius: 34px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
}

.stat-cell p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stat-cell strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-cell .material-symbols-outlined {
  color: #587d27;
}

.record-line {
  margin: -2px 0 0;
  color: rgba(255, 250, 245, 0.72);
  font-weight: 700;
}

.record-line strong {
  font-family: "Space Grotesk", sans-serif;
  color: #fffaf5;
}

.overlay-buttons {
  display: grid;
  gap: 14px;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

.overlay-buttons button,
.option-row button {
  width: 100%;
  padding: 18px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(90, 64, 56, 0.08);
}

.restart-button {
  background: linear-gradient(180deg, #ff7b5c 0%, var(--danger) 100%) !important;
  color: #fff7f1 !important;
  box-shadow: 0 10px 0 var(--danger-deep), 0 22px 34px rgba(214, 81, 53, 0.24) !important;
}

.gameover-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hidden {
  display: none !important;
}

@keyframes combo-bump {
  0% {
    transform: rotate(-8deg) scale(1);
  }
  40% {
    transform: rotate(-8deg) scale(1.12);
  }
  100% {
    transform: rotate(-8deg) scale(1);
  }
}

@keyframes banner-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) rotate(-14deg) scale(0.72);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -52%) rotate(-7deg) scale(1.06);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -48%) rotate(-10deg) scale(0.95);
  }
}

@keyframes ninja-vibe {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-3px, 2px); }
  20% { transform: translate(3px, -2px); }
  30% { transform: translate(-4px, 1px); }
  40% { transform: translate(4px, -1px); }
  50% { transform: translate(-3px, -2px); }
  60% { transform: translate(3px, 2px); }
  70% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 380px) {
  .top-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-shell,
  .overlay {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-score,
  .final-score-card strong {
    font-size: clamp(2.9rem, 15vw, 4rem);
  }

  .combo-chip {
    margin-right: 2%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .arena-shell {
    border-radius: 34px;
    padding: 13px;
  }

  .arena-shell::before,
  #gameCanvas,
  .screen-flash {
    border-radius: 24px;
  }

  .stats-row,
  .menu-actions,
  .gameover-secondary,
  .stats-grid {
    gap: 12px;
  }

  .stat-pod,
  .soft-action,
  .shop-item,
  .stat-cell {
    border-radius: 28px;
  }
}
