:root {
  --wood-light: #efb86d;
  --wood-mid: #c9782d;
  --wood-dark: #7b350f;
  --edge: #542307;
  --ink: #3d1b07;
  --cream: #fff2c9;
  --gold: #ffd75e;
  --leaf: #4f9135;
  --leaf-dark: #285c25;
  --flower: #ee91a8;
  --safe-t: 0px;
  --safe-t: constant(safe-area-inset-top);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: 0px;
  --safe-b: constant(safe-area-inset-bottom);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --app-h: 100vh;
  --app-h: 100svh;
  --app-h: 100dvh;
  --app-top: 0px;
  --app-left: 0px;
  --panel: linear-gradient(180deg, #d78935, #ad591d 58%, #81370f);
  --shadow:
    inset 0 3px 0 #ffffff40, inset 0 -5px 0 #3d170347, 0 7px 0 #542307,
    0 13px 24px #411d0545;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  width: 100%;
  height: var(--app-h);
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  position: fixed;
  top: var(--app-top);
  left: var(--app-left);
  width: 100%;
  height: var(--app-h);
  background: rgb(106, 50, 18);
  color: var(--cream);
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}
button {
  font: inherit;
}
button:focus-visible {
  outline: rgb(255, 249, 223) solid 4px;
  outline-offset: 4px;
}
#shell {
  position: relative;
  width: min(100vw, calc(var(--app-h) * 9 / 16));
  height: var(--app-h);
  margin: auto;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(at 18% 16%, rgba(255, 244, 190, 0.2), transparent 30%),
    repeating-linear-gradient(
      88deg,
      transparent 0px,
      transparent 38px,
      rgba(91, 38, 8, 0.06) 40px,
      rgba(91, 38, 8, 0.06) 43px,
      rgba(255, 255, 255, 0.035) 45px,
      rgba(255, 255, 255, 0.035) 51px
    ),
    repeating-linear-gradient(
      92deg,
      rgba(94, 42, 10, 0.03) 0px,
      rgba(94, 42, 10, 0.03) 2px,
      rgba(255, 255, 255, 0.027) 3px,
      rgba(255, 255, 255, 0.027) 8px
    ),
    linear-gradient(
      90deg,
      rgb(217, 150, 78),
      rgb(239, 183, 109) 47%,
      rgb(213, 138, 64)
    );
  box-shadow:
    rgba(75, 31, 6, 0.5) 0px 0px 0px 2px,
    rgba(49, 20, 3, 0.55) 0px 24px 80px;
  transition: filter 0.15s;
}
#shell::before {
  content: "";
  position: absolute;
  inset: 0px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(
      80px 22px at 18% 28%,
      transparent 50%,
      rgba(108, 48, 11, 0.18) 54%,
      transparent 60%
    ),
    radial-gradient(
      110px 25px at 76% 66%,
      transparent 51%,
      rgba(108, 48, 11, 0.14) 55%,
      transparent 61%
    );
}
#stars {
  display: none;
}
#fx,
#stars {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}
#vignette {
  position: absolute;
  inset: 0px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    at 50% 42%,
    transparent 50%,
    rgba(77, 31, 5, 0.24)
  );
}
.canopy {
  position: absolute;
  top: -34px;
  width: 150px;
  height: 170px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(rgba(44, 27, 5, 0.18) 0px 7px 5px);
}
.canopy::before,
.canopy::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 115px;
  border-radius: 90% 10% 80% 20%;
  background: linear-gradient(125deg, #8bcf52, var(--leaf-dark));
  box-shadow:
    rgb(61, 123, 45) 45px 23px 0px -8px,
    rgb(120, 184, 72) 83px -5px 0px -14px;
}
.canopy-left {
  left: -44px;
  transform: rotate(21deg);
}
.canopy-right {
  right: -44px;
  transform: scaleX(-1) rotate(21deg);
}
.garden-floor {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -28px;
  height: 112px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      120% 70% at 50% 100%,
      #1f5c28 0%,
      #1f5c28 52%,
      transparent 58%
    ),
    linear-gradient(180deg, transparent 42%, #256830 58%, #1a4f24 100%);
  animation: 5s ease-in-out 0s infinite normal none running grassSway;
  transform-origin: center bottom;
}
.garden-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    82deg,
    transparent 0,
    transparent 10px,
    #5fad45 11px,
    #5fad45 15px,
    transparent 16px,
    transparent 22px,
    #4e9538 23px,
    #4e9538 26px,
    transparent 27px,
    transparent 34px
  );
  clip-path: polygon(
    0 78%,
    3% 48%,
    6% 78%,
    10% 42%,
    13% 78%,
    17% 52%,
    20% 78%,
    25% 38%,
    28% 78%,
    33% 48%,
    36% 78%,
    41% 40%,
    44% 78%,
    49% 50%,
    52% 78%,
    57% 36%,
    60% 78%,
    65% 46%,
    68% 78%,
    73% 40%,
    76% 78%,
    81% 50%,
    84% 78%,
    89% 42%,
    92% 78%,
    96% 48%,
    100% 78%,
    100% 100%,
    0 100%
  );
  opacity: 0.95;
}
.garden-floor i {
  position: absolute;
  bottom: 54px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3a8, #f0c24a 70%);
  box-shadow:
    0 -8px 0 #ff9eb8,
    7px -3px 0 #f2789d,
    5px 6px 0 #ff9eb8,
    -5px 6px 0 #f2789d,
    -7px -3px 0 #ff9eb8;
  filter: drop-shadow(0 1px 0 rgba(40, 70, 20, 0.25));
}
.garden-floor i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 22px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6fbe4a, #3d7d2c);
  box-shadow: 5px 8px 0 -1px #5aa63c;
}
.garden-floor i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #fff6c4;
  box-shadow: inset 0 0 0 1px rgba(196, 140, 30, 0.35);
}
.garden-floor i:nth-child(1) {
  left: 9%;
  bottom: 56px;
}
.garden-floor i:nth-child(2) {
  left: 26%;
  bottom: 44px;
  transform: scale(0.92);
  box-shadow:
    0 -8px 0 #c9a0ef,
    7px -3px 0 #a978d8,
    5px 6px 0 #c9a0ef,
    -5px 6px 0 #a978d8,
    -7px -3px 0 #c9a0ef;
}
.garden-floor i:nth-child(3) {
  left: 48%;
  bottom: 50px;
  transform: scale(0.78);
}
.garden-floor i:nth-child(4) {
  right: 30%;
  bottom: 40px;
  transform: scale(0.95);
  box-shadow:
    0 -8px 0 #ffe08a,
    7px -3px 0 #f0c24a,
    5px 6px 0 #ffe08a,
    -5px 6px 0 #f0c24a,
    -7px -3px 0 #ffe08a;
}
.garden-floor i:nth-child(4)::after {
  background: #fff8e0;
}
.garden-floor i:nth-child(5) {
  right: 11%;
  bottom: 54px;
  transform: scale(0.88);
}
.screen {
  position: absolute;
  inset: 0px;
  z-index: 4;
  display: none;
  flex-direction: column;
  padding: calc(12px + var(--safe-t)) 16px calc(18px + var(--safe-b));
}
.screen.active {
  display: flex;
  animation: screenEnter 0.35s var(--ease);
}
.top-hud {
  position: absolute;
  top: calc(12px + var(--safe-t));
  left: 14px;
  right: 14px;
  z-index: 12;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-height: 54px;
  pointer-events: none;
}
.top-hud > * {
  pointer-events: auto;
}
.top-hud-btn[hidden] {
  display: none !important;
}
.top-hud-left {
  width: 54px;
  height: 54px;
}
.top-hud-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.top-hud-center .hud-level[hidden] {
  display: none;
}
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  margin: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  border: 3px solid var(--edge);
  cursor: pointer;
  background: radial-gradient(
    circle at 35% 25%,
    rgb(231, 162, 82),
    rgb(168, 84, 25) 68%,
    rgb(116, 48, 13)
  );
  box-shadow:
    inset 0 3px 0 #ffffff4d,
    inset 0 -4px 0 #3d170347,
    0 5px 0 var(--edge),
    0 9px 14px #3d190440;
  transition:
    transform 0.18s var(--ease),
    filter 0.18s,
    box-shadow 0.18s;
}
.icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.08);
}
.icon-btn:active {
  transform: translateY(3px) scale(0.95);
  box-shadow: 0 2px 0 var(--edge);
}
#btn-map-back::before,
#btn-pause::before,
#btn-hint::before,
#btn-ch-prev::before,
#btn-ch-next::before {
  content: "";
  position: absolute;
  inset: 13px;
  background: var(--cream);
  filter: drop-shadow(rgb(112, 52, 14) 0px 2px);
}
#btn-mute .mute-icon,
#btn-shuffle .btn-glyph {
  position: relative;
  inset: auto;
  display: block;
  width: 26px;
  height: 26px;
  margin: 0;
  color: var(--cream);
  filter: drop-shadow(rgb(112, 52, 14) 0px 2px);
  pointer-events: none;
  overflow: visible;
  flex-shrink: 0;
}
#btn-shuffle .btn-glyph {
  width: 24px;
  height: 24px;
}
#btn-mute .mute-icon {
  width: 28px;
  height: 28px;
  fill: var(--cream);
}
#btn-mute .mute-x {
  display: none;
}
#btn-mute.muted .mute-wave {
  display: none;
}
#btn-mute.muted .mute-x {
  display: block;
}
#btn-map-back::before,
#btn-ch-prev::before {
  clip-path: polygon(62% 5%, 18% 50%, 62% 95%, 76% 80%, 48% 50%, 76% 20%);
}
#btn-ch-next::before {
  clip-path: polygon(38% 5%, 82% 50%, 38% 95%, 24% 80%, 52% 50%, 24% 20%);
}
#btn-pause::before {
  inset: 15px 17px;
  background:
    linear-gradient(var(--cream), var(--cream)) left/7px 100% no-repeat,
    linear-gradient(var(--cream), var(--cream)) right/7px 100% no-repeat;
}
#btn-hint {
  overflow: visible;
  z-index: 2;
}
#btn-hint::before {
  inset: 8px 12px 15px;
  clip-path: polygon(
    50% 0px,
    72% 38%,
    100% 42%,
    78% 64%,
    86% 100%,
    50% 80%,
    14% 100%,
    22% 64%,
    0px 42%,
    28% 38%
  );
}
.hint-cost {
  position: absolute;
  left: 50%;
  bottom: -11px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
  min-width: 44px;
  padding: 0 8px 0 5px;
  border: 2.5px solid var(--edge);
  border-radius: 999px;
  background: linear-gradient(180deg, #8a4518 0%, #5c2a0c 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(40, 14, 4, 0.35),
    0 3px 0 #3a1606,
    0 5px 8px rgba(55, 23, 3, 0.28);
  transform: translateX(-50%);
  font:
    900 13px/1 Nunito,
    sans-serif;
  color: #fff8e6;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(50, 20, 5, 0.55);
  white-space: nowrap;
  pointer-events: none;
}
.hint-cost-coin {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  box-shadow:
    inset 0 -2px 0 #9f5912,
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 0 #6f3908;
}
.hint-cost-coin::before {
  inset: 24%;
}
.hint-cost-coin::after {
  inset: 2px;
  border-width: 1px;
}
.coin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  min-width: 96px;
  padding: 0px 12px 0px 6px;
  border: 3px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(rgb(113, 55, 20), rgb(69, 32, 8));
  box-shadow:
    rgba(255, 255, 255, 0.14) 0px 2px inset,
    rgb(50, 21, 6) 0px 4px 0px,
    rgba(55, 23, 3, 0.25) 0px 8px 14px;
  font:
    900 20px Nunito,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.coin-icon,
.fly-coin {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 25%,
    rgb(255, 247, 170),
    rgb(255, 211, 79) 42%,
    rgb(212, 130, 23) 72%
  );
  box-shadow:
    rgb(159, 89, 18) 0px -3px inset,
    rgba(255, 255, 255, 0.6) 0px 2px inset,
    rgb(111, 57, 8) 0px 3px;
}
.coin-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.coin-icon::before,
.fly-coin::before {
  content: "";
  position: absolute;
  inset: 23%;
  background: linear-gradient(rgb(255, 241, 160), rgb(237, 159, 25));
  clip-path: polygon(
    50% 0px,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
.coin-icon::after,
.fly-coin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(132, 70, 8, 0.35);
  border-radius: 50%;
}
.coin-pill.bump {
  animation: coinGain 0.28s ease-out;
}
.btn-gold,
.btn-stone,
.btn-level {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--edge);
  font:
    900 28px Nunito,
    sans-serif;
  letter-spacing: 1.5px;
  transition:
    transform 0.18s var(--ease),
    filter 0.18s,
    box-shadow 0.18s;
}
.btn-gold {
  color: rgb(255, 249, 223);
  text-shadow: rgb(113, 51, 12) 0px 2px;
  background: linear-gradient(
    rgb(233, 163, 79),
    rgb(191, 100, 31) 58%,
    rgb(140, 61, 17)
  );
  box-shadow: var(--shadow);
}
.btn-stone {
  width: 58%;
  height: 54px;
  margin-top: 14px;
  border-radius: 28px;
  color: var(--cream);
  font-size: 24px;
  background: linear-gradient(rgb(98, 154, 67), rgb(57, 112, 46));
  box-shadow:
    rgba(255, 255, 255, 0.22) 0px 2px inset,
    rgb(35, 77, 34) 0px 5px,
    rgba(45, 25, 5, 0.22) 0px 9px 16px;
}
.btn-level {
  width: 58%;
  height: 54px;
  margin-top: 14px;
  border-radius: 28px;
  color: rgb(255, 249, 230);
  font-size: 24px;
  background: linear-gradient(rgb(88, 156, 196), rgb(48, 108, 148));
  box-shadow:
    rgba(255, 255, 255, 0.24) 0px 2px inset,
    rgb(28, 68, 98) 0px 5px,
    rgba(45, 25, 5, 0.22) 0px 9px 16px;
}
.btn-hero {
  width: 80%;
  height: 80px;
  border-radius: 25px;
  font-size: 38px;
}
#btn-play.btn-hero {
  width: 64%;
  height: 60px;
  border-radius: 28px;
  font-size: 28px;
}
.btn-gold:not(.btn-hero) {
  width: 78%;
  height: 62px;
  border-radius: 22px;
}
.btn-gold:hover,
.btn-stone:hover,
.btn-level:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
}
.btn-gold:active,
.btn-stone:active,
.btn-level:active {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 2px var(--edge);
}
.btn-shine {
  position: absolute;
  inset: 0px;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: 3.2s ease-in-out 0s infinite normal none running shine;
}
.btn-label {
  position: relative;
  z-index: 1;
}
.title-hero {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  position: relative;
  isolation: isolate;
}
.title-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90%, 348px);
  height: 236px;
  border: 7px solid #5a2a0c;
  border-radius: 50% / 46%;
  background:
    radial-gradient(
      120% 90% at 50% 18%,
      rgba(255, 236, 180, 0.34),
      transparent 42%
    ),
    repeating-linear-gradient(
      92deg,
      transparent 0 11px,
      rgba(92, 42, 10, 0.07) 11px 13px,
      rgba(255, 244, 210, 0.05) 13px 16px
    ),
    linear-gradient(180deg, #e0a45a 0%, #c9782d 48%, #a65a1f 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 245, 210, 0.45),
    inset 0 -8px 14px rgba(70, 28, 6, 0.35),
    inset 0 0 0 5px #8a4a1c,
    0 8px 0 #4a2108,
    0 16px 28px rgba(55, 22, 4, 0.35);
  transform: translate(-50%, -50%);
  z-index: -1;
}
.title-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 300px);
  height: 196px;
  border: 2px solid rgba(255, 228, 160, 0.28);
  border-radius: 50% / 46%;
  box-shadow: inset 0 0 0 1px rgba(74, 32, 8, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}
.title-kicker {
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3.4px;
  color: #ffe9b0;
  text-shadow:
    0 1px 0 #6d3210,
    0 2px 6px rgba(70, 28, 6, 0.35);
}
.logo-tiles {
  display: flex;
  gap: 8px;
}
.logo-tiles span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid #6a300c;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff6d4 0%, #f0c56a 55%, #d9923a 100%);
  color: #3f1a06;
  font:
    900 32px Nunito,
    sans-serif;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.65),
    inset 0 -5px 0 rgba(140, 70, 18, 0.28),
    0 5px 0 #6a300c,
    0 10px 16px rgba(54, 23, 3, 0.28);
  animation: 3s ease-in-out 0s infinite normal none running tileFloat;
}
.logo-tiles span:nth-child(2) {
  animation-delay: 0.12s;
}
.logo-tiles span:nth-child(3) {
  animation-delay: 0.24s;
}
.logo-tiles span:nth-child(4) {
  animation-delay: 0.36s;
}
.logo-cross {
  margin-top: 12px;
  font:
    900 64px / 0.95 Nunito,
    sans-serif;
  letter-spacing: 6px;
  color: #ffe29a;
  -webkit-text-stroke: 2.5px #4e2208;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #b8742a,
    0 5px 0 #6a3210,
    0 10px 14px rgba(40, 16, 3, 0.35);
  animation: logoEnter 0.7s var(--ease);
}
.logo-spark {
  width: 148px;
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ffe7a0 22%,
    #fff6cf 50%,
    #ffe7a0 78%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(255, 220, 120, 0.55);
}
.title-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  padding-bottom: 4px;
  padding-bottom: max(4px, var(--safe-b));
}
.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 61px;
  padding: 10px 8px 13px;
  border: 3px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.ch-title {
  text-align: center;
}
#ch-num {
  font-size: 13px;
  letter-spacing: 3px;
  color: rgb(255, 232, 171);
}
#ch-name {
  font:
    900 34px Nunito,
    sans-serif;
  letter-spacing: 3px;
  color: var(--cream);
  text-shadow: rgb(106, 45, 10) 0px 3px;
}
.nav-ch {
  width: 45px;
  height: 45px;
}
.nav-ch:disabled {
  opacity: 0.35;
  pointer-events: none;
}
#map-path {
  position: relative;
  flex: 1 1 0%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  place-items: center;
  padding: 12px 8px 25px;
}
.node {
  position: relative;
  width: 70px;
  height: 70px;
  border: 4px solid rgb(97, 48, 13);
  border-radius: 50%;
  cursor: pointer;
  color: var(--edge);
  font:
    900 25px Nunito,
    sans-serif;
  background: radial-gradient(
    circle at 34% 26%,
    rgb(255, 240, 181),
    rgb(217, 142, 55) 68%
  );
  box-shadow:
    rgba(255, 255, 255, 0.5) 0px 3px inset,
    rgba(108, 47, 6, 0.22) 0px -5px inset,
    rgb(101, 48, 12) 0px 6px,
    rgba(57, 25, 4, 0.25) 0px 10px 15px;
  transition: 0.18s;
}
.node:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.08);
}
.node.locked {
  background: linear-gradient(rgb(133, 85, 47), rgb(88, 50, 26));
  color: rgba(255, 240, 200, 0.28);
  filter: saturate(0.55);
  cursor: default;
}
.node.current {
  animation: 1.4s ease-in-out 0s infinite normal none running nodePulse;
  background: radial-gradient(
    circle at 35% 25%,
    rgb(255, 249, 213),
    rgb(255, 214, 95) 68%
  );
}
.node.tier-normal {
  border-color: #a84a12;
}
.node.tier-hard {
  border-color: #7a1e12;
  background: radial-gradient(
    circle at 34% 26%,
    rgb(255, 220, 170),
    rgb(220, 120, 55) 68%
  );
}
.stars-mini {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}
.stars-mini i {
  width: 9px;
  height: 9px;
  background: rgb(123, 63, 22);
  clip-path: polygon(
    50% 0px,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
.stars-mini i.on {
  background: var(--gold);
}
.hud-coins {
  z-index: 12;
}
.play-top-gap {
  flex-shrink: 0;
  height: 64px;
}
#fly-layer {
  position: absolute;
  inset: 0px;
  z-index: 22;
  pointer-events: none;
  overflow: hidden;
}
.fly-coin {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  margin: -16px;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.fly-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px;
  background: rgb(255, 246, 176);
  clip-path: polygon(50% 0px, 100% 50%, 50% 100%, 0px 50%);
  box-shadow: rgb(255, 224, 128) 0px 0px 8px;
  transform: translate3d(var(--sx), var(--sy), 0);
  animation: flySpark 0.26s ease-out forwards;
  pointer-events: none;
}
.hud-level {
  min-width: 0;
  width: 100%;
  max-width: 158px;
  justify-self: center;
  padding: 6px 10px 7px;
  text-align: center;
  border: 3px solid var(--edge);
  border-radius: 18px;
  background: var(--panel);
  box-shadow:
    rgba(255, 255, 255, 0.28) 0px 2px inset,
    rgb(89, 38, 8) 0px 5px,
    rgba(66, 28, 4, 0.23) 0px 9px 16px;
}
#play-ch {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgb(255, 231, 161);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#play-lv {
  font:
    900 24px Nunito,
    sans-serif;
  color: var(--cream);
}
.hud-level h2 {
  font:
    900 16px / 1 Nunito,
    sans-serif;
  letter-spacing: 1px;
  color: rgb(246, 201, 118);
  white-space: nowrap;
}
.hud-level h2 span {
  font-size: 13px;
}
#board-wrap {
  position: relative;
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0px;
  margin: 7px 0px;
  padding: 16px 10px;
  border: 3px solid rgb(103, 49, 13);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 239, 186, 0.45), rgba(222, 153, 72, 0.282)),
    repeating-linear-gradient(
      0deg,
      rgba(99, 48, 11, 0.04) 0px,
      rgba(99, 48, 11, 0.04) 2px,
      transparent 3px,
      transparent 8px
    );
  box-shadow:
    rgba(255, 255, 255, 0.25) 0px 3px inset,
    rgba(88, 35, 5, 0.18) 0px -4px inset,
    rgba(89, 38, 7, 0.78) 0px 6px,
    rgba(64, 27, 4, 0.2) 0px 11px 20px;
}
#board {
  display: grid;
  gap: 5px;
}
.cell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(91, 45, 13, 0.2);
  box-shadow: rgba(85, 40, 9, 0.2) 0px 0px 0px 2px inset;
  font:
    900 1em Nunito,
    sans-serif;
  color: rgb(74, 33, 8);
  transform: scale(0.92);
}
.cell.on {
  background: linear-gradient(145deg, rgb(255, 245, 206), rgb(234, 176, 90));
  box-shadow:
    rgba(255, 255, 255, 0.64) 0px 3px inset,
    rgba(132, 65, 10, 0.17) 0px -4px inset,
    rgb(151, 80, 21) 0px 4px,
    rgba(69, 29, 3, 0.18) 0px 7px 10px;
  transform: scale(1);
}
.cell.pop {
  animation: cellPop 0.4s var(--ease);
}
.cell.hint {
  background: linear-gradient(rgb(255, 251, 220), rgb(255, 215, 94));
  box-shadow:
    rgba(255, 222, 95, 0.6) 0px 0px 0px 3px,
    rgb(151, 80, 21) 0px 4px;
}
.cell.flash {
  animation: 0.45s ease 0s 1 normal none running cellFlash;
}
.word-preview {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    900 29px Nunito,
    sans-serif;
  letter-spacing: 4px;
  color: rgb(255, 249, 223);
  text-shadow: rgb(99, 43, 9) 0px 3px;
  opacity: 0;
}
.word-preview.show {
  opacity: 1;
}
.word-preview.good {
  color: rgb(239, 255, 184);
}
.word-preview.bad {
  color: rgb(255, 208, 196);
}
.word-preview.bonus {
  color: rgb(230, 217, 255);
}
#wheel-wrap {
  height: 36%;
  max-height: min(330px, 38dvh);
  min-height: 168px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  justify-items: center;
  column-gap: 10px;
  padding: 0 6px calc(8px + var(--safe-b));
  overflow: visible;
  flex-shrink: 0;
}
.fab {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  justify-self: center;
}
#wheel {
  position: relative;
  width: min(100%, 280px, calc(var(--app-h) * 0.34));
  height: min(100%, 280px, calc(var(--app-h) * 0.34));
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  cursor: grab;
  touch-action: none;
}
#wheel:active {
  cursor: grabbing;
}
#wheel::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 45% 32%,
    rgb(201, 123, 47),
    rgb(138, 60, 18) 67%,
    rgb(89, 35, 7)
  );
  border: 7px double rgb(77, 33, 9);
  box-shadow:
    rgba(255, 255, 255, 0.2) 0px 5px inset,
    rgba(54, 19, 2, 0.2) 0px -9px inset,
    rgb(79, 33, 8) 0px 10px,
    rgba(58, 23, 3, 0.26) 0px 16px 24px;
}
#wheel::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 4px dashed rgba(255, 225, 147, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
#trail,
#letters {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
}
#trail {
  z-index: 1;
  pointer-events: none;
}
#letters {
  z-index: 2;
  pointer-events: none;
}
.letter {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 3px solid rgb(101, 48, 12);
  border-radius: 50%;
  font:
    900 28px Nunito,
    sans-serif;
  color: rgb(75, 32, 6);
  background: radial-gradient(
    circle at 34% 25%,
    rgb(255, 247, 212),
    rgb(237, 189, 102) 56%,
    rgb(194, 116, 39)
  );
  box-shadow:
    rgba(255, 255, 255, 0.65) 0px 3px inset,
    rgba(108, 48, 7, 0.18) 0px -5px inset,
    rgb(116, 54, 15) 0px 5px,
    rgba(54, 21, 2, 0.25) 0px 9px 14px;
  transition:
    transform 0.12s,
    filter 0.12s;
}
.letter.sel {
  transform: translateY(-4px) scale(1.12);
  filter: brightness(1.08);
  box-shadow:
    rgba(255, 219, 86, 0.72) 0px 0px 0px 4px,
    rgb(116, 54, 15) 0px 8px,
    rgba(54, 21, 2, 0.28) 0px 13px 17px;
}
#wheel.spin .letter {
  transition:
    left 0.45s var(--ease),
    top 0.45s var(--ease);
}
#wheel.shake,
.icon-btn.shake {
  animation: 0.38s ease 0s 1 normal none running shake;
}
.overlay {
  position: absolute;
  inset: 0px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(48, 22, 5, 0.66);
  backdrop-filter: blur(2px);
}
.overlay.show {
  display: flex;
  animation: 0.2s ease 0s 1 normal none running fadeIn;
}
.panel {
  position: relative;
  width: 84%;
  padding: 31px 18px 25px;
  border: 5px solid var(--edge);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--panel);
  box-shadow:
    rgba(255, 255, 255, 0.3) 0px 4px inset,
    rgba(53, 18, 2, 0.28) 0px -7px inset,
    rgb(77, 31, 6) 0px 13px,
    rgba(34, 14, 2, 0.42) 0px 23px 40px;
  animation: 0.48s cubic-bezier(0.2, 1.45, 0.35, 1) 0s 1 normal none running
    panelPop;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 64px;
  height: 42px;
  border-radius: 100% 0px;
  background: linear-gradient(135deg, #8bcf52, var(--leaf-dark));
}
.panel::before {
  left: -13px;
  transform: rotate(-24deg);
}
.panel::after {
  right: -13px;
  transform: scaleX(-1) rotate(-24deg);
}
.panel-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgb(255, 229, 158);
  margin-bottom: 3px;
}
.panel h2 {
  font:
    900 39px / 1.05 Nunito,
    sans-serif;
  letter-spacing: 3px;
  text-align: center;
  color: rgb(247, 211, 141);
  -webkit-text-stroke: 1px rgb(87, 36, 8);
  text-shadow:
    rgb(133, 62, 16) 0px 3px,
    rgb(84, 35, 7) 0px 6px;
  margin-bottom: 20px;
}
.clear-panel h2 {
  font-size: 34px;
}
.level-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(48, 22, 5, 0.72);
  backdrop-filter: blur(4px);
}
.level-intro-overlay[hidden] {
  display: none !important;
}
.level-intro-overlay.show {
  display: flex;
  animation: fadeIn 0.28s ease;
}
.level-intro-overlay.leaving {
  animation: introLeave 0.42s ease forwards;
}
.intro-glow {
  position: absolute;
  width: 78%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 95, 0.28),
    transparent 68%
  );
  pointer-events: none;
}
.level-intro-card {
  position: relative;
  width: 86%;
  padding: 32px 18px 34px;
  border: 5px solid var(--edge);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--panel);
  box-shadow:
    rgba(255, 255, 255, 0.3) 0px 4px inset,
    rgba(53, 18, 2, 0.28) 0px -7px inset,
    rgb(77, 31, 6) 0px 13px,
    rgba(34, 14, 2, 0.42) 0px 23px 40px;
  animation: panelPop 0.48s cubic-bezier(0.2, 1.45, 0.35, 1);
}
.intro-vine {
  position: absolute;
  top: -18px;
  width: 58px;
  height: 38px;
  border-radius: 100% 0;
  background: linear-gradient(135deg, #8bcf52, var(--leaf-dark));
  pointer-events: none;
}
.intro-vine-left {
  left: -12px;
  transform: rotate(-24deg);
}
.intro-vine-right {
  right: -12px;
  transform: scaleX(-1) rotate(-24deg);
}
.intro-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.intro-logo span {
  font:
    900 18px Nunito,
    sans-serif;
  letter-spacing: 3px;
  color: rgb(255, 232, 171);
}
.intro-logo strong {
  font:
    900 22px Nunito,
    sans-serif;
  letter-spacing: 3px;
  color: rgb(246, 209, 139);
  -webkit-text-stroke: 1px rgb(87, 36, 8);
  text-shadow: rgb(133, 62, 16) 0px 2px;
}
.intro-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: rgb(255, 229, 158);
  margin-bottom: 4px;
}
.intro-title {
  font:
    900 42px / 1 Nunito,
    sans-serif;
  letter-spacing: 2px;
  text-align: center;
  color: rgb(247, 211, 141);
  -webkit-text-stroke: 1px rgb(87, 36, 8);
  text-shadow:
    rgb(133, 62, 16) 0px 3px,
    rgb(84, 35, 7) 0px 6px;
  margin-bottom: 12px;
}
.intro-level-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 16px 7px;
  margin-bottom: 16px;
  border: 3px solid var(--edge);
  border-radius: 18px;
  background: linear-gradient(rgb(113, 55, 20), rgb(69, 32, 8));
  box-shadow:
    rgba(255, 255, 255, 0.16) 0px 2px inset,
    rgb(50, 21, 6) 0px 4px;
}
.intro-level-badge span {
  font:
    900 13px Nunito,
    sans-serif;
  letter-spacing: 2px;
  color: rgb(255, 231, 161);
}
.intro-level-badge strong {
  font:
    900 26px Nunito,
    sans-serif;
  color: var(--cream);
}
.intro-demo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.intro-demo span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid rgb(106, 48, 11);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255, 234, 176), rgb(217, 146, 57));
  color: rgb(74, 33, 8);
  font:
    900 24px Nunito,
    sans-serif;
  box-shadow:
    rgba(255, 255, 255, 0.55) 0px 3px inset,
    rgb(106, 48, 11) 0px 4px;
  animation: introTile 1.8s ease-in-out infinite;
}
.intro-demo span:nth-child(3) {
  animation-delay: 0.18s;
}
.intro-demo span:nth-child(5) {
  animation-delay: 0.36s;
}
.intro-demo i {
  width: 14px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgb(255, 213, 106), rgb(255, 230, 129));
  box-shadow: rgb(133, 62, 16) 0px 1px;
  animation: introDash 1.8s ease-in-out infinite;
}
.intro-demo i:nth-child(4) {
  animation-delay: 0.18s;
}
.intro-message {
  text-align: center;
  font:
    700 16px / 1.4 Fredoka,
    sans-serif;
  color: rgb(255, 233, 184);
  text-shadow: rgb(107, 45, 8) 0px 2px;
  margin-bottom: 18px;
}
.intro-play-btn {
  position: relative;
  width: 82%;
  height: 68px;
  border-radius: 22px;
  border: 3px solid var(--edge);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgb(255, 249, 223);
  font:
    900 32px Nunito,
    sans-serif;
  letter-spacing: 2px;
  text-shadow: rgb(113, 51, 12) 0px 2px;
  background: linear-gradient(
    rgb(233, 163, 79),
    rgb(191, 100, 31) 58%,
    rgb(140, 61, 17)
  );
  box-shadow: var(--shadow);
  transition:
    transform 0.18s var(--ease),
    filter 0.18s,
    box-shadow 0.18s;
}
.intro-play-btn:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
}
.intro-play-btn:active {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 2px var(--edge);
}
.intro-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent rgb(255, 249, 223);
  filter: drop-shadow(rgb(113, 51, 12) 0px 2px);
}
.intro-meadow {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 18px;
  pointer-events: none;
}
.intro-meadow i {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flower);
  box-shadow: rgb(247, 191, 208) 5px 0;
}
.intro-meadow i:nth-child(1) {
  left: 8%;
}
.intro-meadow i:nth-child(2) {
  left: 46%;
  background: rgb(246, 217, 118);
}
.intro-meadow i:nth-child(3) {
  right: 10%;
  background: rgb(170, 134, 207);
}
.star-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.star {
  width: 47px;
  height: 47px;
  background: rgb(111, 53, 22);
  clip-path: polygon(
    50% 0px,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
.star.on {
  background: linear-gradient(rgb(255, 248, 187), rgb(255, 208, 77));
  animation: 0.5s cubic-bezier(0.2, 1.5, 0.3, 1) 0s 1 normal none running
    starPop;
}
.star:nth-child(2).on {
  animation-delay: 0.12s;
}
.star:nth-child(3).on {
  animation-delay: 0.24s;
}
.clear-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    900 31px Nunito,
    sans-serif;
  margin: 8px 0px 18px;
  color: var(--gold);
  text-shadow: rgb(107, 45, 8) 0px 2px;
}
.toast {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 41%;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 9px 22px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  font:
    900 20px Nunito,
    sans-serif;
  letter-spacing: 1.6px;
  color: #fff8e6;
  text-shadow: 0 2px 0 rgba(62, 28, 6, 0.45);
  background: linear-gradient(180deg, #f0b45a 0%, #d78935 48%, #a85a1c 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -3px 0 rgba(80, 35, 8, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.92);
  white-space: nowrap;
}
.toast.done {
  background: linear-gradient(180deg, #9ad85f 0%, #5fa83a 52%, #3d7a2c 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(30, 70, 20, 0.28);
}
.toast.bonus {
  background: linear-gradient(180deg, #7ec8ff 0%, #3f8fd4 52%, #2468a8 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(20, 50, 90, 0.28);
}
.toast.warn {
  background: linear-gradient(180deg, #ff9b7a 0%, #e05648 52%, #b03830 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(90, 20, 15, 0.28);
}
.toast.show {
  animation: toastIn 0.95s var(--ease) forwards;
}
.ghost-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 50%;
  background: rgba(255, 221, 92, 0.65);
  pointer-events: none;
  z-index: 3;
  animation: 1.6s ease 0s infinite normal none running ghost;
}
@keyframes screenEnter {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
}
@keyframes logoEnter {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.9);
  }
  70% {
    transform: translateY(3px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes shine {
  0%,
  58% {
    transform: translateX(-120%);
  }
  80%,
  100% {
    transform: translateX(120%);
  }
}
@keyframes tileFloat {
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}
@keyframes grassSway {
  50% {
    transform: skewX(1.5deg);
  }
}
@keyframes nodePulse {
  50% {
    transform: scale(1.08);
  }
}
@keyframes coinGain {
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes flySpark {
  to {
    opacity: 0;
    transform: translate3d(var(--sx), calc(var(--sy) - 16px), 0) scale(0.35);
  }
}
@keyframes cellPop {
  0% {
    transform: scale(0.2) rotate(-12deg);
  }
  70% {
    transform: scale(1.12) rotate(3deg);
  }
}
@keyframes cellFlash {
  40% {
    filter: brightness(1.45);
    box-shadow:
      rgba(255, 220, 90, 0.62) 0px 0px 0px 4px,
      rgb(151, 80, 21) 0px 5px;
  }
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
}
@keyframes panelPop {
  0% {
    opacity: 0;
    transform: scale(0.75) translateY(18px);
  }
}
@keyframes starPop {
  0% {
    transform: scale(0.2) rotate(-20deg);
  }
  70% {
    transform: scale(1.2) rotate(8deg);
  }
}
@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.86);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.05);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -14px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -34px) scale(0.96);
  }
}
@keyframes ghost {
  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}
@keyframes introLeave {
  to {
    opacity: 0;
  }
}
@keyframes introTile {
  50% {
    transform: translateY(-4px) scale(1.06);
  }
}
@keyframes introDash {
  50% {
    opacity: 0.45;
    transform: scaleX(0.7);
  }
}
@media (max-height: 780px) {
  .screen {
    padding-top: calc(8px + var(--safe-t));
    padding-bottom: calc(12px + var(--safe-b));
  }
  .title-hero {
    padding-top: 0;
  }
  .title-hero::before {
    width: min(86%, 300px);
    height: 186px;
  }
  .title-hero::after {
    width: min(74%, 258px);
    height: 152px;
  }
  .title-kicker {
    margin-bottom: 12px;
    font-size: 10px;
  }
  .logo-tiles {
    gap: 6px;
  }
  .logo-tiles span {
    width: 46px;
    height: 46px;
    font-size: 26px;
  }
  .logo-cross {
    margin-top: 8px;
    font-size: 48px;
  }
  .logo-spark {
    margin-top: 10px;
  }
  .btn-hero {
    height: 66px;
    font-size: 32px;
  }
  #btn-play.btn-hero {
    width: 70%;
    height: 50px;
    font-size: 24px;
  }
  .btn-level {
    height: 48px;
    margin-top: 10px;
    font-size: 22px;
  }
  .node {
    width: 59px;
    height: 59px;
    font-size: 21px;
  }
  .map-head {
    margin-top: 52px;
    padding-block: 6px;
  }
  #wheel-wrap {
    height: 34%;
    max-height: min(250px, 36dvh);
    min-height: 156px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    column-gap: 8px;
    padding: 0 4px calc(8px + var(--safe-b));
  }
  .play-top-gap {
    height: 58px;
  }
  .word-preview {
    height: 32px;
    min-height: 32px;
    font-size: 24px;
  }
  .garden-floor {
    height: 88px;
    bottom: -22px;
  }
  .intro-title {
    font-size: 34px;
  }
  .intro-play-btn {
    height: 58px;
    font-size: 28px;
  }
  .intro-demo span {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .overlay,
  .level-intro-overlay {
    padding: calc(12px + var(--safe-t)) 16px calc(12px + var(--safe-b));
  }
}
@media (max-width: 540px) {
  html,
  body,
  #shell {
    width: 100%;
    max-width: none;
    height: var(--app-h);
  }
  #shell {
    margin: 0;
    box-shadow: none;
  }
  .top-hud {
    top: calc(14px + var(--safe-t));
    left: 12px;
    right: 12px;
  }
  .canopy {
    top: calc(-18px + var(--safe-t));
  }
  .title-hero::before {
    width: min(88%, 320px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.panel,
.map-head,
.hud-level {
  background: linear-gradient(180deg, #d78935 0%, #ad591d 58%, #81370f 100%);
}

@media (hover: none) and (pointer: coarse) {
  :root {
    --safe-t: 44px;
    --safe-t: max(44px, constant(safe-area-inset-top));
    --safe-t: max(44px, env(safe-area-inset-top, 0px));
  }
  .top-hud {
    top: calc(12px + var(--safe-t));
  }
  .play-top-gap {
    height: 70px;
  }
  .map-head {
    margin-top: 64px;
  }
}

/* Interactive first-level finger tutorial */
.tutorial-layer[hidden]{display:none}.tutorial-layer{position:absolute;inset:0;z-index:24;pointer-events:none;overflow:hidden}.tutorial-tip{position:absolute;z-index:3;max-width:280px;padding:10px 17px;border:3px solid #6c320d;border-radius:17px;opacity:0;transform:translate(-50%,-50%) scale(.88);background:linear-gradient(180deg,#fff3c4,#e8bd6b);color:#512508;font:900 16px/1.15 "Fredoka",sans-serif;text-align:center;white-space:nowrap;box-shadow:inset 0 2px rgba(255,255,255,.6),0 5px 0 #945019,0 10px 16px rgba(73,31,5,.25);text-shadow:0 1px rgba(255,255,255,.45);transition:top .2s,left .2s}.tutorial-tip:after{content:"";position:absolute;left:50%;bottom:-11px;width:18px;height:18px;border-right:3px solid #6c320d;border-bottom:3px solid #6c320d;background:#e8bd6b;transform:translateX(-50%) rotate(45deg);z-index:-1}.tutorial-tip.show{animation:tutorialTipIn .35s var(--ease) forwards}.tutorial-tip.try{animation:tutorialTipPop .42s cubic-bezier(.2,1.5,.3,1) forwards}.tutorial-tip.success{color:#326221;background:linear-gradient(#fffbd1,#d7e985);animation:tutorialSuccess .8s var(--ease) forwards}
.tutorial-hand{position:absolute;z-index:4;width:68px;height:84px;margin-left:-18px;margin-top:-9px;opacity:0;overflow:visible;filter:drop-shadow(0 7px 4px rgba(61,27,4,.3));transform:translate(4px,-48px) scale(.72) rotate(-12deg);transform-origin:18px 10px;transition:left .04s linear,top .04s linear,opacity .18s,transform .18s var(--ease);pointer-events:none}.tutorial-hand.show{opacity:1;transform:translate(4px,-48px) scale(1) rotate(-12deg)}.tutorial-hand.pressed{transform:translate(4px,-41px) scale(.94) rotate(-12deg)}.tutorial-hand-shadow{fill:#5b270b;stroke:#5b270b;stroke-width:5;stroke-linejoin:round}.tutorial-hand-fill{fill:#fff0c4;stroke:#71340e;stroke-width:3;stroke-linejoin:round}.tutorial-hand-light{fill:none;stroke:#f4c97d;stroke-width:3;stroke-linecap:round;opacity:.7}.tutorial-hand-cuff{fill:#72a947;stroke:#542b0d;stroke-width:3}
#shell.tutorial-demo .top-hud,#shell.tutorial-demo #board-wrap,#shell.tutorial-demo #btn-shuffle,#shell.tutorial-demo #btn-hint{filter:brightness(.78);opacity:.72;transition:filter .25s,opacity .25s}#wheel.tutorial-focus{z-index:25;filter:drop-shadow(0 0 13px rgba(255,211,90,.55))}.letter.tutorial-pulse{animation:tutorialStartPulse .75s ease-in-out 3}.tutorial-demo .letter.sel{transform:translateY(-4px) scale(1.1);filter:brightness(1.1);box-shadow:0 0 0 4px rgba(255,215,90,.7),0 0 22px rgba(255,188,45,.6),0 7px 0 #74360f}
@keyframes tutorialTipIn{to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes tutorialTipPop{0%{opacity:1;transform:translate(-50%,-50%) scale(.85)}65%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes tutorialSuccess{0%{opacity:1;transform:translate(-50%,-50%) scale(.8)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-70%) scale(1)}}@keyframes tutorialStartPulse{50%{transform:scale(1.08);filter:brightness(1.12);box-shadow:0 0 0 4px rgba(255,215,90,.55),0 0 18px rgba(255,188,45,.45),0 5px 0 #74360f}}
@media(max-width:420px){.tutorial-tip{font-size:14px;padding:9px 13px}.tutorial-hand{width:61px;height:76px}}@media(prefers-reduced-motion:reduce){.tutorial-hand{transition:none}.tutorial-tip,.tutorial-hand,.letter.tutorial-pulse{animation-duration:.01ms!important;animation-delay:0ms!important}}
#wheel.tutorial-focus{z-index:23}
