:root {
  --wood-light: #c8793f;
  --wood-main: #a9582e;
  --wood-dark: #76371f;
  --wood-shadow: #512517;
  --green: #6fc51d;
  --green-dark: #397d11;
  --gold: #ffd230;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  width: 100%;
  height: 100%;
  height: 100svh;
  height: var(--app-height, 100svh);
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: "Fredoka", "Kantumruy Pro", "Trebuchet MS", sans-serif;
  font-weight: 600;
  color: #fff7dc;
  user-select: none;
  background:
    repeating-linear-gradient(90deg, #fff1 0 2px, transparent 2px 38px),
    radial-gradient(ellipse at 50% 38%, #d98a4b 0, #a95a31 55%, #72361f 110%);
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px #3a160a99;
  background: repeating-linear-gradient(
    87deg,
    transparent 0 76px,
    #4a1e0a0b 77px 80px
  );
}
.home-screen {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100svh;
  height: var(--app-height, 100svh);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 20px
    max(20px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(
      circle at 50% 18%,
      #fff9d9 0 5%,
      #f7c979 35%,
      transparent 61%
    ),
    repeating-linear-gradient(92deg, #87451f20 0 2px, transparent 2px 55px),
    linear-gradient(#eab36b, #c9783f);
  transition:
    opacity 0.38s var(--ease),
    transform 0.45s var(--ease),
    visibility 0.45s;
}
.home-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.home-screen:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px #70371966;
}
.home-screen.leaving {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}
.home-sun {
  position: absolute;
  top: -18vw;
  width: min(90vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #fff4;
  box-shadow:
    0 0 0 28px #fff1,
    0 0 0 58px #fff1,
    0 0 80px #fff3;
}
.home-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  filter: drop-shadow(0 11px 0 #6f351f) drop-shadow(0 18px 14px #5b2c1c55);
  animation: logoFloat 3.2s ease-in-out infinite;
}
.logo-small {
  display: block;
  width: max-content;
  margin: 0 auto -4px;
  padding: 8px 24px;
  border: 4px solid #754126;
  border-radius: 17px;
  background: linear-gradient(#fff5d8, #e7bd7d);
  color: #704128;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 1000;
  letter-spacing: 3px;
  text-shadow: 0 2px #fff;
}
.home-logo strong {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: clamp(72px, 22vw, 116px);
  line-height: 0.92;
}
.home-logo strong i {
  display: grid;
  place-items: center;
  width: 0.82em;
  height: 0.95em;
  font-style: normal;
  color: #fff4cf;
  -webkit-text-stroke: 5px #704127;
  text-shadow:
    inset 0 4px #fff,
    0 5px #81381f;
  border: 5px solid #704127;
  border-radius: 28% 22% 30% 24%;
  background: linear-gradient(145deg, #ff9565, #e4523f);
  box-shadow:
    inset 0 5px #ffc2a5,
    inset 0 -8px #a93731;
}
.home-logo strong i:nth-child(2) {
  background: linear-gradient(145deg, #63dac2, #1fa18b);
  box-shadow:
    inset 0 5px #b9ffeb,
    inset 0 -8px #147363;
  transform: rotate(-3deg) translateY(-5px);
}
.home-logo strong i:nth-child(3) {
  background: linear-gradient(145deg, #b77af1, #7a42ca);
  box-shadow:
    inset 0 5px #e0bdff,
    inset 0 -8px #57319a;
  transform: rotate(3deg);
}
.logo-chip {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 4px solid #704127;
  border-radius: 7px;
  background: #ffd34e;
}
.chip-one {
  left: 3%;
  bottom: -6px;
  transform: rotate(15deg);
}
.chip-two {
  right: 0;
  top: 25%;
  background: #64d8bf;
  transform: rotate(22deg);
}
.chip-three {
  left: 18%;
  top: -14px;
  background: #ff7b55;
  transform: rotate(-16deg);
}
.home-toy {
  position: relative;
  z-index: 1;
  width: min(78vw, 390px);
  height: clamp(120px, 20vh, 175px);
  margin-top: 16px;
}
.home-toy:before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 7%;
  height: 22px;
  border-radius: 50%;
  background: #60311d44;
  filter: blur(10px);
}
.home-block {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 4px solid #743d25;
  border-radius: 22px;
  color: #0002;
  font-size: 36px;
  text-shadow: 0 2px #fff5;
  box-shadow:
    inset 0 5px #fff7,
    inset 0 -8px #0002,
    0 9px 0 #67351f,
    0 15px 18px #5c2d1b55;
}
.block-purple {
  left: 5%;
  bottom: 20%;
  background: #a961e6;
  transform: rotate(-10deg);
}
.block-cyan {
  left: 31%;
  bottom: 5%;
  background: #43d7c2;
  transform: rotate(4deg);
}
.block-orange {
  right: 23%;
  bottom: 24%;
  background: #ff8451;
  transform: rotate(-5deg);
}
.block-green {
  right: 1%;
  bottom: 6%;
  background: #8bd64b;
  transform: rotate(11deg);
}
.home-diffs {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 10px;
}
.home-diff {
  min-width: 92px;
  height: 38px;
  padding: 0 10px;
  border: 3px solid #704127;
  border-radius: 14px;
  color: #6b3b23;
  background: linear-gradient(#fff0c9, #d99c55);
  box-shadow:
    inset 0 2px #fff,
    inset 0 -3px #b2763d,
    0 4px 0 #4e2b1b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-shadow: 0 1px #fff8;
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.12s;
}
.home-diff:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px #fff,
    inset 0 -2px #b2763d,
    0 1px 0 #4e2b1b;
}
.home-diff.on[data-diff="easy"] {
  color: #fff;
  background: linear-gradient(#91e32e, #4ea80e 64%, #397d11);
  text-shadow: 0 2px #2f6a0c;
  box-shadow:
    inset 0 2px #d7ff6688,
    inset 0 -3px #286708,
    0 4px 0 #4e2b1b;
}
.home-diff.on[data-diff="normal"] {
  color: #fff;
  background: linear-gradient(#60dbc2, #239e88 64%, #157565);
  text-shadow: 0 2px #12695c;
  box-shadow:
    inset 0 2px #c6fff3aa,
    inset 0 -3px #116457,
    0 4px 0 #4e2b1b;
}
.home-diff.on[data-diff="hard"] {
  color: #fff;
  background: linear-gradient(#ff8451, #e0561c 64%, #c2410c);
  text-shadow: 0 2px #8a2d0a;
  box-shadow:
    inset 0 2px #ffc8a8aa,
    inset 0 -3px #a3360c,
    0 4px 0 #4e2b1b;
}
.home-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 22px;
}
.home-play {
  min-width: min(68vw, 300px);
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 5px solid #704127;
  border-radius: 27px;
  color: white;
  background: linear-gradient(#60dbc2, #239e88 64%, #157565);
  box-shadow:
    inset 0 5px #c6fff3aa,
    inset 0 -7px #116457,
    0 8px 0 #4e2b1b,
    0 15px 20px #542a1955;
  text-shadow: 0 3px #12695c;
  transition:
    transform 0.14s var(--ease),
    box-shadow 0.14s;
}
.home-play:active {
  transform: translateY(6px) scale(0.98);
  box-shadow:
    inset 0 4px #c6fff399,
    inset 0 -4px #116457,
    0 3px 0 #4e2b1b;
}
.home-play > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-play b {
  font-size: 30px;
  line-height: 1;
}
.home-play small {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.play-triangle {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #fff0ae;
  filter: drop-shadow(0 3px #7b5121);
}
.home-levels {
  width: 66px;
  height: 66px;
  border: 4px solid #704127;
  border-radius: 21px;
  background: linear-gradient(#fff0c9, #d99c55);
  box-shadow:
    inset 0 4px #fff,
    inset 0 -5px #b2763d,
    0 7px 0 #4e2b1b;
}
.home-levels svg {
  width: 72%;
  fill: #8a4e2b;
}
.home-progress {
  position: relative;
  z-index: 2;
  width: min(82vw, 380px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: #6b3b23;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.home-progress div {
  height: 13px;
  overflow: hidden;
  border: 3px solid #754127;
  border-radius: 9px;
  background: #8b4f2f;
  box-shadow: inset 0 2px 3px #3c1d12;
}
.home-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #45cbb2, #84e1a2);
  transition: width 0.5s var(--ease);
}
@keyframes logoFloat {
  50% {
    transform: translateY(-6px) rotate(0.5deg);
  }
}
@media (max-height: 720px) {
  .home-screen {
    padding-top: max(18px, env(safe-area-inset-top, 0px));
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
  .home-logo strong {
    font-size: 70px;
  }
  .home-toy {
    height: 110px;
    margin-top: 6px;
  }
  .home-block {
    width: 60px;
    height: 60px;
  }
  .home-diffs {
    margin: 0 0 6px;
    gap: 6px;
  }
  .home-diff {
    min-width: 78px;
    height: 34px;
    font-size: 11px;
  }
  .home-actions {
    margin: 4px 0 16px;
  }
  .home-play {
    height: 70px;
  }
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.game-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: 100%;
  height: 100svh;
  height: var(--app-height, 100svh);
  max-height: var(--app-height, 100svh);
  margin: auto;
  padding: max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(14px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}
.hud {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.toy-button {
  border: 0;
  background: linear-gradient(#91e32e, #59ae13 62%, #3e8d0e);
  box-shadow:
    inset 0 3px 2px #d7ff6688,
    inset 0 -5px 2px #286708,
    0 0 0 4px #7b391d,
    0 6px 0 #542616,
    0 11px 14px #39150966;
  transition:
    transform 0.13s var(--ease),
    filter 0.13s;
  position: relative;
}
.toy-button:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #b4ee4a77;
  border-radius: inherit;
  pointer-events: none;
}
.toy-button:active {
  transform: translateY(5px) scale(0.96);
  box-shadow:
    inset 0 3px 2px #d7ff6688,
    inset 0 -3px 2px #286708,
    0 0 0 4px #7b391d,
    0 2px 0 #542616;
}
.square {
  width: 60px;
  height: 60px;
  border-radius: 15px;
}
.toy-button svg {
  width: 72%;
  height: 72%;
  position: relative;
  z-index: 2;
  fill: #ffad24;
  stroke: #934411;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 0 #ffe95a88);
}
.hud .toy-button:last-child {
  justify-self: end;
}
.level-badge {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  height: 66px;
  overflow: visible;
  padding: 4px 10px 8px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(#da7335 0, #bb4f24 54%, #903418 100%);
  box-shadow:
    inset 0 3px 2px #ffb26477,
    inset 0 -5px 3px #67200f,
    0 0 0 5px #7c3219,
    0 7px 0 #512517,
    0 10px 14px #40160a88;
  text-shadow: 0 3px 0 #60220e;
  line-height: 1;
}
.level-badge > span {
  font-size: 18px;
  font-weight: 900;
}
.level-badge strong {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 20px;
}
.level-badge strong.score-pop {
  animation: scorePop 0.22s var(--ease);
}
#starIcon.star-pop {
  animation: starHit 0.28s var(--ease);
}
#moveCount {
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
}
.level-badge svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  overflow: visible;
  fill: #ffd22f;
  stroke: #b56a0c;
  stroke-width: 2;
}
.board-zone {
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  padding: 40px;
}
.board {
  width: min(100%, 430px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  position: relative;
  z-index: 2;
  touch-action: none;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background-color: #3c1c12;
  background-image:
    repeating-linear-gradient(
      90deg,
      #26110c 0 4px,
      transparent 4px var(--cell, 16.666%)
    ),
    repeating-linear-gradient(
      #26110c 0 4px,
      transparent 4px var(--cell, 16.666%)
    ),
    repeating-linear-gradient(90deg, #4a2416, #5a2c1a 46%, #3a1a10);
  background-size: 100% 100%;
  box-shadow:
    inset 0 8px 16px #14080688,
    0 0 0 4px #6b2e16,
    0 0 0 18px #c17a44,
    0 0 0 21px #8a4524,
    0 10px 0 18px #6e3218,
    0 18px 24px #3b160b88;
}
.playfield {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.playfield .block {
  pointer-events: auto;
}
.gate-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.gate,
.gate * {
  pointer-events: none !important;
}
.gate {
  position: absolute;
  display: flex;
  gap: 0;
  padding: 2px;
  border: 0;
  background: none;
  z-index: 1;
}
.gate .candy {
  box-shadow:
    inset 0 1px 1px #fff8,
    inset 0 -2px 2px #0003,
    0 1px 0 var(--dark);
  border-radius: 7px;
}
.gate .candy:before {
  inset: 14%;
  border-width: 1px;
}
.gate .candy svg {
  inset: 17%;
  width: 66%;
  height: 66%;
  stroke-width: 3.5;
}
.gate:after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.gate.top,
.gate.bottom {
  flex-direction: row;
}
.gate.left,
.gate.right {
  flex-direction: column;
}
.gate.top:after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #fff1d0;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}
.gate.bottom:after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #fff1d0;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}
.gate.left:after {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid #fff1d0;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
}
.gate.right:after {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff1d0;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
}
.gate.flash {
  animation: gateFlash 0.38s var(--ease);
}
.candy {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 7px;
  background:
    linear-gradient(155deg, #fff8 0 16%, transparent 40%),
    linear-gradient(180deg, var(--light) 0%, var(--block) 44%, var(--dark) 100%);
  box-shadow:
    inset 0 3px 1px #fff9,
    inset 2px 0 1px #fff5,
    inset 0 -5px 5px #00000030,
    0 3px 0 var(--dark),
    0 5px 7px #1a080655;
  border: 1.5px solid #ffffff28;
}
.candy.tl {
  border-top-left-radius: 28%;
}
.candy.tr {
  border-top-right-radius: 28%;
}
.candy.bl {
  border-bottom-left-radius: 28%;
}
.candy.br {
  border-bottom-right-radius: 28%;
}
.candy:before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 22%;
  border: 2px solid #ffffff24;
  box-shadow:
    inset 0 2px 3px #ffffff30,
    inset 0 -3px 4px #00000022;
  pointer-events: none;
}
.candy svg {
  position: absolute;
  inset: 18%;
  width: 64%;
  height: 64%;
  fill: var(--dark);
  fill-opacity: 0.2;
  stroke: var(--dark);
  stroke-width: 4.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.72;
  filter: drop-shadow(0 1.5px 0 #fff8);
  pointer-events: none;
}
.block {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 3;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
  transition:
    transform 0.42s var(--ease),
    opacity 0.25s;
}
.block .candy {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.block.exiting {
  pointer-events: none;
  z-index: 12;
  transition:
    transform 0.42s cubic-bezier(0.18, 0.82, 0.32, 1),
    opacity 0.36s ease;
}
.block.settling {
  pointer-events: none;
  transition: transform 0.42s var(--ease);
}
.block.dragging {
  z-index: 8;
  cursor: grabbing;
  transition: none;
}
.block.dragging .candy {
  filter: brightness(1.08);
}
.block.entering {
  animation: pieceIn 0.38s var(--ease) both;
}
.block.hint .candy {
  animation: hint 1s ease-in-out 2;
}
.block.blocked {
  animation: shake 0.24s ease;
}
.block.hammer-target .candy {
  filter: brightness(1.3) drop-shadow(0 0 12px #ffef6f);
}
.boosters {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: clamp(28px, 10vw, 52px);
  min-height: 96px;
  padding-bottom: 22px;
}
.booster {
  width: 62px;
  height: 62px;
  border-radius: 15px;
}
.booster .count {
  position: absolute;
  z-index: 4;
  right: -10px;
  top: -11px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8de72d;
  color: #203807;
  font-weight: 900;
  border: 3px solid #3d6810;
  box-shadow:
    inset 0 2px #e5ff9a,
    0 2px 3px #321509;
}
.booster b {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #4a1b0d;
  white-space: nowrap;
}
.booster:disabled {
  filter: grayscale(0.8) brightness(0.7);
}
.tutorial {
  position: absolute;
  z-index: 9;
  pointer-events: none;
  text-align: center;
  font-weight: 900;
  text-shadow: 0 2px #512517;
  width: max-content;
  transform: translate(-30%, 0);
}
.tutorial-hand {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  filter: drop-shadow(0 5px 6px #2b0d0866);
}
.tutorial-hand svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #ffe8bd;
  stroke: #6d351d;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tutorial[data-dir="right"] .tutorial-hand {
  animation: teachRight 1.15s ease-in-out infinite;
}
.tutorial[data-dir="left"] .tutorial-hand {
  animation: teachLeft 1.15s ease-in-out infinite;
}
.tutorial[data-dir="bottom"] .tutorial-hand {
  animation: teachDown 1.15s ease-in-out infinite;
}
.tutorial[data-dir="top"] .tutorial-hand {
  animation: teachUp 1.15s ease-in-out infinite;
}
.tutorial span {
  display: block;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #2b100bcc;
  font-size: 13px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.block.intro-target,
.gate.teach {
  animation: introGlow 1.15s ease-in-out infinite;
  z-index: 4;
}
.game-modal {
  border: 0;
  padding: 8px 12px 18px;
  margin: auto;
  background: none;
  overflow: visible;
  max-width: none;
  max-height: none;
  box-shadow: none;
}
.game-modal::backdrop {
  background: #2b100ba8;
  backdrop-filter: blur(4px);
}
.panel {
  width: min(86vw, 390px);
  padding: 27px 24px 22px;
  text-align: center;
  border: 8px solid #7d3018;
  border-radius: 27px;
  background:
    repeating-linear-gradient(90deg, #fff1 0 2px, transparent 2px 28px),
    linear-gradient(#d26d32, #9a3c1d);
  box-shadow:
    inset 0 4px #f6a35c,
    inset 0 -7px #67230f,
    0 12px 0 #4f1d10,
    0 24px 35px #1b080777;
}
.panel h2 {
  font-size: 31px;
  margin: 0 0 20px;
  text-shadow: 0 3px #60210e;
}
.panel-primary,
.panel-action {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 14px;
  margin: 7px 0;
  font-weight: 900;
  color: #fffbe6;
  text-shadow: 0 2px #315d0c;
  background: linear-gradient(#92df35, #54a713);
  box-shadow:
    inset 0 3px #dbff8188,
    inset 0 -4px #367b0a,
    0 5px 0 #4a2412;
}
.panel-action {
  background: linear-gradient(#e69247, #b94e24);
  text-shadow: 0 2px #6a260f;
  box-shadow:
    inset 0 3px #ffc27a88,
    inset 0 -4px #7d2d16,
    0 5px 0 #4a2412;
}
.sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px 8px;
  font-weight: 900;
}
.sound-row input {
  display: none;
}
.sound-row i {
  width: 57px;
  height: 31px;
  border-radius: 20px;
  background: #6f2b19;
  box-shadow: inset 0 3px 4px #301009;
  position: relative;
}
.sound-row i:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  left: 4px;
  top: 3px;
  background: #fff1c7;
  transition: 0.2s;
}
.sound-row input:checked + i {
  background: #69bd1a;
}
.sound-row input:checked + i:after {
  transform: translateX(25px);
}
.language-link {
  border: 0;
  background: transparent;
  color: #ffe6ba;
  font-weight: 900;
  padding: 13px;
}
.level-panel {
  display: flex;
  flex-direction: column;
  width: min(90vw, 430px);
  height: auto;
  max-height: min(90vh, 680px);
  overflow: hidden;
}
.level-panel h2,
.level-panel .panel-primary {
  flex-shrink: 0;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(58px, 1fr));
  gap: 10px;
  flex: 0 0 auto;
  min-height: 262px;
  overflow: visible;
  padding: 5px 3px 12px;
}
.level-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.level-grid button {
  min-width: 0;
  width: 100%;
  min-height: 58px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  overflow: hidden;
  border: 3px solid #6e2816;
  border-radius: 14px;
  background: linear-gradient(#ed9147, #b84d24);
  box-shadow:
    inset 0 2px #ffc178,
    0 4px 0 #5b2113;
  color: #fff7d9;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px #60210e;
}
.level-grid button small {
  display: block;
  font-size: 9px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.level-grid button.current {
  background: linear-gradient(#a8ee44, #58ad13);
}
.level-grid button.locked {
  filter: grayscale(1);
  opacity: 0.42;
}
.level-pages {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin: 2px 0 10px;
}
.level-pages button {
  height: 44px;
  border: 3px solid #754127;
  border-radius: 14px;
  background: linear-gradient(#fff4d5, #dea761);
  color: #704127;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 2px #fff,
    0 4px 0 #613820;
}
.level-pages button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px #fff,
    0 1px 0 #613820;
}
.level-pages button:disabled {
  opacity: 0.3;
  filter: grayscale(1);
}
.level-pages strong {
  color: #704127;
  text-shadow: 0 1px #fff;
  letter-spacing: 2px;
}
@media (max-height: 620px) {
  .level-grid {
    grid-template-rows: repeat(4, 48px);
    min-height: 222px;
    gap: 7px;
  }
  .level-grid button {
    min-height: 48px;
  }
  .level-panel h2 {
    margin-bottom: 8px;
  }
}
.stars {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: -16px 0 8px;
  min-height: 90px;
}
.win-star {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  opacity: 0.42;
  transform: scale(0.84);
  filter: grayscale(1) drop-shadow(0 5px 0 #5b341f55);
}
.win-star:nth-child(2) {
  width: 96px;
  height: 96px;
  margin-inline: -7px;
}
.win-star:nth-child(2) svg {
  transform: translateY(-8px);
}
.win-star svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 0 #9b5914) drop-shadow(0 10px 8px #5e321d66);
}
.win-star .star-edge {
  fill: #a45a10;
  stroke: #6e3b10;
  stroke-width: 4;
  stroke-linejoin: round;
}
.win-star .star-face {
  fill: #8c8173;
  stroke: #6c6257;
  stroke-width: 2;
  stroke-linejoin: round;
}
.win-star .star-shine {
  fill: #fff;
  opacity: 0.18;
}
.win-panel.celebrate .win-star {
  animation: star 0.55s var(--ease) both;
}
.win-panel.celebrate .win-star:nth-child(2) {
  animation-delay: 0.14s;
}
.win-panel.celebrate .win-star:nth-child(3) {
  animation-delay: 0.28s;
}
.win-star.on {
  opacity: 1;
  filter: none;
}
.win-star.on .star-face {
  fill: #ffd333;
  stroke: #f09d0b;
}
.win-star.on .star-edge {
  fill: #e8860d;
  stroke: #8d4d0d;
}
.win-star.on .star-shine {
  opacity: 0.72;
}
.win-star.on:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: 14px;
  top: 13px;
  background: white;
  clip-path: polygon(
    50% 0,
    61% 38%,
    100% 50%,
    61% 61%,
    50% 100%,
    39% 61%,
    0 50%,
    39% 38%
  );
  filter: drop-shadow(0 0 5px white);
  animation: starSpark 1.1s 0.45s ease-out both;
}
.win-panel {
  position: relative;
  overflow: visible;
  padding-top: 30px;
}
.win-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 18%, #fff6 0 12%, transparent 38%),
    repeating-conic-gradient(
      from 8deg,
      #ffd34e33 0 8deg,
      transparent 8deg 22deg
    );
  mask-image: radial-gradient(circle at 50% 18%, #000 0 22%, transparent 48%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 18%,
    #000 0 22%,
    transparent 48%
  );
}
.win-level {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border: 3px solid #744229;
  border-radius: 14px;
  background: linear-gradient(#fff6e0, #e8c48a);
  color: #6b3822;
  font-size: 18px;
  font-weight: 900;
  box-shadow:
    inset 0 2px #fff,
    0 4px 0 #674027;
}
.win-stats {
  margin: 0 0 18px;
  color: #6b3822;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.win-stats b {
  font-size: 18px;
  text-shadow: 0 1px #fff;
}
.win-panel .panel-primary {
  margin: 8px 0 4px;
}
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 120px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #4e1c10e8;
  border: 3px solid #d37c3e;
  border-radius: 15px;
  padding: 10px 18px;
  font-weight: 900;
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes pieceIn {
  from {
    opacity: 0;
    scale: 0.68;
  }
  70% {
    scale: 1.06;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes gateFlash {
  50% {
    filter: brightness(1.65) drop-shadow(0 0 10px #fff);
    scale: 1.08;
  }
}
@keyframes hint {
  50% {
    filter: brightness(1.35) drop-shadow(0 0 12px #fff66e);
  }
}
@keyframes shake {
  25% {
    translate: -7px;
  }
  75% {
    translate: 7px;
  }
}
@keyframes teachRight {
  0%,
  18% {
    transform: translate(0, 0) rotate(-18deg);
  }
  62% {
    transform: translate(46px, 6px) rotate(-8deg);
  }
}
@keyframes teachLeft {
  0%,
  18% {
    transform: translate(0, 0) rotate(18deg);
  }
  62% {
    transform: translate(-46px, 6px) rotate(8deg);
  }
}
@keyframes teachDown {
  0%,
  18% {
    transform: translate(0, 0) rotate(-8deg);
  }
  62% {
    transform: translate(6px, 46px) rotate(4deg);
  }
}
@keyframes teachUp {
  0%,
  18% {
    transform: translate(0, 0) rotate(-8deg);
  }
  62% {
    transform: translate(6px, -46px) rotate(-16deg);
  }
}
@keyframes introGlow {
  50% {
    filter: brightness(1.22) saturate(1.12);
  }
}
@keyframes introSlide {
  0%,
  18% {
    transform: translateX(0);
  }
  70% {
    transform: translateX(36px);
  }
}
@keyframes introDoor {
  0%,
  55% {
    filter: brightness(1);
  }
  78% {
    filter: brightness(1.35);
  }
}
@keyframes star {
  from {
    opacity: 0;
    transform: scale(0) rotate(-50deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes starSpark {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0);
  }
  45% {
    opacity: 1;
    transform: scale(1.4) rotate(90deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
  }
}
@keyframes scorePop {
  50% {
    transform: scale(1.18);
  }
}
@keyframes starHit {
  40% {
    transform: scale(1.5) rotate(-14deg);
  }
}
@media (max-height: 500px) {
  .game-shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 4px;
  }
  .board-zone {
    padding: 28px;
  }
  .boosters {
    transform: scale(0.82);
    transform-origin: center;
  }
  .square {
    transform: scale(0.84);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sunlit Toy Workshop visual system */
:root {
  --ink: #49311f;
  --paper: #fff2d4;
  --oak: #d7964e;
  --oak-deep: #8b4927;
  --teal: #28a88f;
  --teal-deep: #126a61;
  --coral: #f06e4f;
}
body {
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 5%, #fff5d9aa 0 12%, transparent 42%),
    repeating-linear-gradient(92deg, #8c4c2820 0 2px, transparent 2px 52px),
    linear-gradient(90deg, #d99a58, #edb86f 50%, #d99a58);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 22%, #fff8 0 2px, transparent 3px),
    radial-gradient(circle at 86% 72%, #6e381322 0 2px, transparent 3px);
  background-size:
    90px 110px,
    130px 150px;
  opacity: 0.55;
}
body:after {
  box-shadow: inset 0 0 70px #6a341d55;
  background: none;
}
.game-shell {
  width: min(100%, 560px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-inline: max(10px, env(safe-area-inset-left, 0px))
    max(10px, env(safe-area-inset-right, 0px));
  gap: 10px;
}
.hud {
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 16px;
}
.square {
  width: 56px;
  height: 56px;
  border-radius: 19px;
}
.toy-button {
  background: linear-gradient(
    155deg,
    #58d8bf 0%,
    var(--teal) 52%,
    #178473 100%
  );
  box-shadow:
    inset 0 3px 2px #c5fff399,
    inset 0 -5px 2px #0f6659,
    0 0 0 4px #704127,
    0 6px 0 #4a2a1b,
    0 11px 18px #51281755;
}
.toy-button:before {
  border-color: #a8f4df77;
}
.toy-button svg {
  fill: #fff0a9;
  stroke: #865023;
  filter: drop-shadow(0 2px 0 #fff8);
}
.level-badge {
  width: min(100%, 280px);
  height: 60px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff4d9, #efd09d);
  color: var(--ink);
  text-shadow: 0 1px #fff;
  box-shadow:
    inset 0 3px 2px #fff,
    inset 0 -4px 3px #c39055,
    0 0 0 4px #8d512d,
    0 6px 0 #60371f,
    0 11px 17px #5d301b44;
}
.level-badge svg {
  fill: #f7b51d;
  stroke: #a6650b;
}
.board-zone {
  padding: 42px;
}
.board {
  width: min(100%, 428px);
  border-radius: 25px;
  background-color: #5a321f;
  background-image:
    repeating-linear-gradient(
      90deg,
      #3f2217 0 3px,
      transparent 3px var(--cell, 16.666%)
    ),
    repeating-linear-gradient(
      #3f2217 0 3px,
      transparent 3px var(--cell, 16.666%)
    ),
    linear-gradient(145deg, #70432b, #4c291c);
  box-shadow:
    inset 0 9px 18px #24100888,
    inset 0 0 0 3px #85543b,
    0 0 0 7px #7b4629,
    0 0 0 20px #e0a35d,
    0 0 0 25px #98572f,
    0 10px 0 25px #754027,
    0 22px 30px #61341f55;
}
.gate {
  filter: drop-shadow(0 4px 3px #4c291b66);
}
.gate .candy {
  border: 2px solid #fff7;
  box-shadow:
    inset 0 2px #fff9,
    inset 0 -3px #0002,
    0 3px 0 var(--dark);
}
.gate:after {
  filter: drop-shadow(0 2px 0 #704127);
}
.candy {
  border-color: #fff5;
  box-shadow:
    inset 0 4px 2px #fff9,
    inset 2px 0 1px #fff5,
    inset 0 -6px 5px #0002,
    0 4px 0 var(--dark),
    0 8px 8px #20100955;
}
.candy:before {
  inset: 9%;
  border-color: #fff4;
}
.boosters {
  position: relative;
  align-self: stretch;
  gap: clamp(34px, 11vw, 58px);
  padding: 10px 12px 26px;
  background: none;
  box-shadow: none;
}
.booster {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}
.booster b {
  top: 66px;
  color: #fff7dc;
  text-shadow: 0 2px 0 #4a1b0d;
}
.booster .count {
  background: #ffdd53;
  border-color: #8d5d16;
  color: #59370b;
}
.panel {
  border-color: #744229;
  border-width: 5px;
  background:
    repeating-linear-gradient(92deg, #8c4c2812 0 2px, transparent 2px 35px),
    linear-gradient(#fff1d2, #eabf80);
  color: var(--ink);
  box-shadow:
    inset 0 3px #fff,
    0 7px 0 #59321f,
    0 16px 22px #25120a44;
}
.panel h2 {
  color: #6b3822;
  text-shadow: 0 2px #fff;
}
.panel-primary {
  background: linear-gradient(#5ddac1, #209f89);
  text-shadow: 0 2px #147565;
  box-shadow:
    inset 0 3px #c8fff3,
    inset 0 -4px #147565,
    0 5px 0 #674027;
}
.panel-action {
  background: linear-gradient(#ff9b6c, var(--coral));
  box-shadow:
    inset 0 3px #ffd1b9,
    inset 0 -4px #be4933,
    0 5px 0 #674027;
}
.win-panel h2 {
  margin: 10px 0 12px;
  font-size: 28px;
  letter-spacing: 0.5px;
}
.win-level {
  border-color: #8a512f;
  box-shadow:
    inset 0 2px #fff,
    0 4px 0 #704127;
}
.language-link {
  color: #704127;
}
.level-grid button {
  border-color: #8a512f;
  background: linear-gradient(#fff0ce, #dca35f);
  color: #60361f;
  text-shadow: 0 1px #fff;
  box-shadow:
    inset 0 2px #fff,
    0 4px 0 #704127;
}
.level-grid button.current {
  background: linear-gradient(#68ddc5, #20a189);
  color: white;
  text-shadow: 0 2px #176e61;
}
@media (max-height: 500px) {
  .game-shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .board-zone {
    padding: 28px;
  }
  .boosters {
    padding-top: 4px;
    transform: scale(0.84);
  }
  .win-star {
    width: 56px;
    height: 56px;
  }
  .win-panel {
    padding-top: 22px;
  }
}
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  overflow: visible;
}
.fx-star {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px #ffe56acc) drop-shadow(0 2px 0 #b56a0c66);
}
.fx-star svg {
  display: block;
  width: 100%;
  height: 100%;
}
.home-stars {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #6b3b23;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px #fff6;
}
.tutorial-skip {
  pointer-events: auto;
  margin-top: 8px;
  border: 3px solid #744229;
  border-radius: 12px;
  padding: 6px 14px;
  background: linear-gradient(#fff6e0, #e8c48a);
  color: #6b3822;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  box-shadow:
    inset 0 2px #fff,
    0 3px 0 #674027;
}
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #2b100ba8;
  backdrop-filter: blur(5px);
}
.intro-overlay[hidden] {
  display: none;
}
.intro-card {
  width: min(86vw, 360px);
  padding: 26px 22px 18px;
  text-align: center;
  border: 5px solid #744229;
  border-radius: 24px;
  background:
    repeating-linear-gradient(92deg, #8c4c2812 0 2px, transparent 2px 35px),
    linear-gradient(#fff1d2, #eabf80);
  color: #60361f;
  box-shadow:
    inset 0 3px #fff,
    0 8px 0 #59321f,
    0 18px 24px #25120a55;
}
.intro-card h2 {
  margin: 0 0 16px;
  color: #6b3822;
  font-size: 28px;
  letter-spacing: 0.4px;
  text-shadow: 0 1px #fff;
}
.intro-demo {
  --block: #4eb7f8;
  --dark: #1a7ec4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 88px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 3px solid #8a512f;
  border-radius: 18px;
  background:
    repeating-linear-gradient(90deg, #26110c 0 3px, transparent 3px 14px),
    linear-gradient(#5a2c1a, #3a1a10);
  box-shadow: inset 0 4px 8px #14080688;
}
.intro-piece,
.intro-door {
  display: grid;
  place-items: center;
  width: 58px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(#6ec8ff, var(--block) 58%, var(--dark));
  box-shadow:
    inset 0 4px #fff8,
    inset 0 -5px #1a7ec488,
    0 4px 0 var(--dark);
}
.intro-piece {
  width: 72px;
  animation: introSlide 1.35s ease-in-out infinite;
}
.intro-piece svg,
.intro-door svg {
  width: 28px;
  height: 28px;
  fill: #fff8;
  stroke: #0d4f86;
  stroke-width: 4;
  filter: drop-shadow(0 2px 0 #fff6);
}
.intro-door {
  width: 36px;
  border-radius: 10px 4px 4px 10px;
  animation: introDoor 1.35s ease-in-out infinite;
}
.intro-chevron {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffd230;
  filter: drop-shadow(0 2px 0 #7b5121);
}
.intro-card p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px #fff8;
}
.intro-card .panel-primary {
  margin: 0;
}
.intro-skip {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: none;
  color: #704127;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-height: 620px) {
  .intro-card {
    padding: 18px 18px 12px;
  }
  .intro-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .intro-demo {
    height: 68px;
    margin-bottom: 10px;
  }
  .intro-card p {
    font-size: 14px;
    margin-bottom: 10px;
  }
}
.board.hitstop {
  filter: contrast(1.12) saturate(1.08);
}
.toy-button.nudge {
  animation: nudge 0.65s ease-in-out 3;
}
@keyframes nudge {
  50% {
    transform: scale(1.12) rotate(-7deg);
  }
}
.win-new-best {
  margin: 0 0 10px;
  color: #6b3822;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 1px #fff;
}
.debug-panel {
  position: fixed;
  z-index: 240;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #1b0c08e8;
  color: #ffe7c2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  pointer-events: none;
}

@media (max-width: 540px) {
  .game-shell {
    width: 100%;
    gap: 8px;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  .hud {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    gap: 10px;
  }
  .square {
    width: 58px;
    height: 58px;
    transform: none;
  }
  .level-badge {
    width: 100%;
    max-width: none;
    height: 58px;
  }
  .level-badge > span {
    font-size: 17px;
  }
  .board-zone {
    padding: 36px;
  }
  .board {
    width: min(100%, 428px);
    box-shadow:
      inset 0 8px 16px #24100888,
      inset 0 0 0 3px #85543b,
      0 0 0 5px #7b4629,
      0 0 0 14px #e0a35d,
      0 0 0 18px #98572f,
      0 8px 0 18px #754027,
      0 16px 22px #61341f55;
  }
  .boosters {
    justify-content: space-evenly;
    gap: 0;
    transform: none;
    min-height: 100px;
    padding: 6px 4px 24px;
  }
  .booster {
    width: 60px;
    height: 60px;
  }
  .booster b {
    top: 68px;
    font-size: 11px;
  }
  .toast {
    bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  }
}

@media (max-width: 540px) and (max-height: 560px) {
  .board-zone {
    padding: 32px 30px 34px;
  }
  .hud .square,
  .square {
    width: 52px;
    height: 52px;
  }
  .hud {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }
  .level-badge {
    height: 52px;
  }
  .booster {
    width: 54px;
    height: 54px;
  }
  .booster b {
    top: 62px;
  }
  .boosters {
    min-height: 88px;
    padding-bottom: 22px;
  }
}

@media (max-width: 540px) and (orientation: landscape) {
  .game-shell {
    padding: max(8px, env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      max(8px, env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px));
    gap: 6px;
  }
  .board-zone {
    padding: 26px;
  }
  .boosters {
    min-height: 72px;
    padding: 4px 8px 8px;
  }
  .booster b {
    top: 58px;
    font-size: 10px;
  }
}
