:root {
  color-scheme: light;
  --bg: #eef7f3;
  --panel: #ffffff;
  --ink: #1d2b2a;
  --muted: #5d6b69;
  --line: #cddbd7;
  --brand: #2b8f78;
  --brand-dark: #176854;
  --gold: #f7bd35;
  --danger: #d75b4d;
  --blue: #5a93d9;
  --pink: #ef83ad;
  --shadow: 0 14px 36px rgba(35, 74, 66, .18);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ecfbf6 0%, #e9f0ff 100%);
  color: var(--ink);
}
button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,249,246,.9));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(45, 87, 80, .12);
}
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
.topbar p { margin: 4px 0 0; color: var(--muted); }
.player-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mini-parent-top {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 54px;
  height: 34px;
  border: 1px solid rgba(23, 104, 84, .25);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #dff4ec);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 0 #b9ddd0, 0 10px 18px rgba(32, 71, 63, .16);
}
.mini-parent-top:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 2px 0 #b9ddd0; }
.quick-switch {
  width: 126px;
  height: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(23, 104, 84, .22);
  background: #fff;
  box-shadow: 0 5px 0 #c8ded8, 0 10px 18px rgba(32, 71, 63, .14);
}
.quick-switch button {
  border: 0;
  background: linear-gradient(180deg, #ffffff, #e8f7f2);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 0;
}
.quick-switch button + button { border-left: 1px solid rgba(23, 104, 84, .18); }
.quick-switch button:hover { background: linear-gradient(180deg, #fff9d8, #dff4ec); }
.pill-button, .solid-button, .back-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #e8f3ef;
  color: var(--ink);
  font-weight: 700;
}
.pill-button.primary, .solid-button { background: var(--brand); color: #fff; }
.solid-button.ghost, .back-btn { background: #eef4f2; color: var(--brand-dark); border: 1px solid var(--line); }
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7dc;
  border: 1px solid #ead08d;
}
.coin-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); display: inline-block; box-shadow: inset 0 0 0 3px #ffe6a0; }

main { padding: 22px; }
.view { display: none; }
.view.active { display: block; }
.hall-shell, .run-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}
.hall-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.8);
  background:
    linear-gradient(180deg, #8ed5ff 0%, #dff7ff 46%, #c8f0d3 47%, #8fd17a 100%);
  box-shadow: 0 24px 48px rgba(35, 74, 66, .24), inset 0 1px 0 rgba(255,255,255,.9);
  isolation: isolate;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.hall-stage::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 34px;
  height: 210px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(0deg, rgba(255,255,255,.13) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(145deg, #9be37d, #5cae57);
  border: 6px solid rgba(255,255,255,.48);
  transform: rotateX(62deg) rotateZ(-2deg);
  transform-origin: center bottom;
  box-shadow: 0 26px 0 #3d7c3e, 0 48px 34px rgba(23, 64, 48, .32);
  z-index: 0;
}
.hall-stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
  z-index: 6;
}
.hall-stage.spring { background: linear-gradient(135deg, #ffe0d4, #fff1bd 52%, #ffd0ca); }
.hall-stage.lantern { background: linear-gradient(135deg, #fff4d7, #ffd8d8 58%, #f9edd2); }
.hall-stage.children { background: linear-gradient(135deg, #cdeefd, #fff0bd 55%, #ffd6e8); }
.hall-stage.dragon { background: linear-gradient(135deg, #d9f3dc, #c7e4ff 58%, #f0eccb); }
.hall-stage.midautumn { background: linear-gradient(135deg, #243b6b, #f5d892 70%); color: #fff; }
.hall-stage.national { background: linear-gradient(135deg, #ffe8cf, #f5f6d1 55%, #ffd2d2); }
.hall-stage.christmas { background: linear-gradient(135deg, #dff6ff, #e9fff0 55%, #f7f7ff); }
.hall-path {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 130px;
  height: 58px;
  top: auto;
  border-radius: 18px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, #ffe5ad, #ca9553);
  box-shadow: inset 0 7px 0 rgba(255,255,255,.36), 0 16px 0 #946235, 0 28px 22px rgba(49, 80, 55, .25);
  z-index: 1;
  transform: rotateX(58deg);
  transform-origin: center bottom;
}
.hall-sun {
  position: absolute;
  right: 8%;
  top: 48px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff8bb 0 17%, #ffd95a 18% 66%, #f29c22 67%);
  box-shadow: 0 0 0 18px rgba(255, 221, 99, .24), 0 0 44px rgba(255, 180, 41, .62);
  z-index: 1;
  animation: sunGlow 4s ease-in-out infinite;
}
.amusement-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
}
.ride {
  position: absolute;
  transform-style: preserve-3d;
}
.ferris {
  left: 8%;
  top: 110px;
  width: 112px;
  height: 112px;
  border: 8px solid #6b8edb;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 33%, rgba(255,255,255,.28) 34%);
  box-shadow: 0 12px 0 #3d5c9e, 0 25px 22px rgba(38, 62, 93, .22);
  animation: ferrisTurn 12s linear infinite;
}
.ferris::before,
.ferris::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: #6b8edb;
  transform: translateX(-50%);
}
.ferris::after { transform: translateX(-50%) rotate(90deg); }
.ferris span {
  position: absolute;
  width: 20px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(145deg, #fff, #ff9ab8);
  box-shadow: 0 4px 0 #c65c78;
}
.ferris span:nth-child(1) { left: 45px; top: -14px; }
.ferris span:nth-child(2) { right: -12px; top: 45px; }
.ferris span:nth-child(3) { left: 45px; bottom: -14px; }
.ferris span:nth-child(4) { left: -12px; top: 45px; }
.carousel {
  right: 23%;
  top: 166px;
  width: 112px;
  height: 84px;
  border-radius: 50% 50% 18px 18px;
  background: linear-gradient(145deg, #fff2b8, #ff8a65);
  box-shadow: 0 12px 0 #b95b43, 0 23px 20px rgba(90, 55, 43, .2);
}
.carousel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -36px;
  width: 96px;
  height: 52px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(90deg, #f55 0 16px, #fff4c7 16px 32px);
}
.carousel span {
  position: absolute;
  bottom: 14px;
  width: 10px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.14);
}
.carousel span:nth-child(1) { left: 25px; }
.carousel span:nth-child(2) { left: 51px; }
.carousel span:nth-child(3) { right: 25px; }
.slide {
  right: 8%;
  bottom: 196px;
  width: 128px;
  height: 86px;
}
.slide::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 88px;
  height: 34px;
  border-radius: 18px;
  background: linear-gradient(145deg, #88d8ff, #2d91d0);
  transform: rotate(-24deg);
  box-shadow: 0 10px 0 #1b6597;
}
.slide::after {
  content: "";
  position: absolute;
  left: 70px;
  top: 0;
  width: 44px;
  height: 74px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffe176, #e4a31c);
  box-shadow: 0 10px 0 #a56d10;
}
.cube-stack {
  left: 68%;
  bottom: 132px;
  width: 92px;
  height: 86px;
}
.cube-stack span {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(145deg, #fff, #89c9ff 65%, #3d78c5);
  box-shadow: 10px 10px 0 #2e5d9f, 18px 18px 20px rgba(33, 63, 88, .24);
  transform: rotateX(58deg) rotateZ(-38deg);
}
.cube-stack span:nth-child(1) { left: 0; bottom: 0; }
.cube-stack span:nth-child(2) { left: 34px; bottom: 20px; background: linear-gradient(145deg, #fff, #ffc877 65%, #d17a19); }
.cube-stack span:nth-child(3) { left: 16px; bottom: 48px; background: linear-gradient(145deg, #fff, #a9f0aa 65%, #4c9b51); }
.hall-portal {
  position: absolute;
  width: 150px;
  min-height: 126px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(221,240,255,.96));
  box-shadow: 12px 12px 0 rgba(84, 112, 126, .5), 0 28px 30px rgba(36, 81, 72, .22);
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--ink);
  z-index: 2;
  transition: transform .16s ease, box-shadow .16s ease;
  transform-style: preserve-3d;
  transform: translateZ(26px);
  animation: portalFloat 3.8s ease-in-out infinite;
}
.hall-portal::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -34px;
  height: 52px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(145deg, #fff1a4, #e79a45);
  box-shadow: 10px 10px 0 rgba(133, 84, 43, .38), 0 14px 20px rgba(125, 83, 42, .22);
  z-index: -1;
  transform: translateZ(18px);
}
.hall-portal::after {
  content: "";
  position: absolute;
  left: 0;
  right: -16px;
  bottom: -18px;
  height: 22px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(91, 112, 104, .46), rgba(56, 76, 70, .72));
  transform: rotateX(-70deg);
  transform-origin: top;
  z-index: -2;
}
.hall-portal:hover { transform: translateY(-8px) translateZ(44px) rotateX(3deg); box-shadow: 0 16px 0 rgba(129, 160, 151, .45), 0 34px 40px rgba(36, 81, 72, .24); }
.hall-portal:active { transform: translateY(4px) translateZ(10px); box-shadow: 0 4px 0 rgba(129, 160, 151, .45), 0 12px 18px rgba(36, 81, 72, .18); }
.hall-portal small { color: var(--muted); }
.portal-icon { font-size: 24px; color: var(--brand); }
.portal-challenge { left: 7%; bottom: 166px; }
.portal-park { left: 26%; bottom: 166px; }
.portal-shop { left: 47%; bottom: 166px; top: auto; }
.portal-dress { right: 8%; bottom: 166px; top: auto; }
.portal-challenge {
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #e8f4ff, #96c9ff);
}
.portal-challenge::before { background: linear-gradient(145deg, #99d4ff, #367fc7); }
.portal-park {
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #eefff1, #94df8d);
}
.portal-park::before { background: linear-gradient(145deg, #b8f49f, #4da95b); }
.portal-dress {
  background:
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, #dff0ff 0 50%, #ffe1ef 51%);
}
.portal-dress::before { background: linear-gradient(90deg, #7db8ff 0 50%, #ff91be 51%); }
.portal-dress b::after {
  content: "";
  display: block;
  width: 74px;
  height: 34px;
  margin: 8px auto 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #6aa7ff 0 48%, #ffffff 49% 51%, #ff8fbd 52% 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 6px 0 rgba(103,80,110,.25);
}
.portal-parent {
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  width: 76px;
  min-height: 58px;
  padding: 6px;
  font-size: 12px;
  border-radius: 8px;
  animation: none;
  transform: translateX(-50%) translateZ(18px);
}
.portal-parent:hover { transform: translateX(-50%) translateY(-3px); }
.portal-parent small, .portal-parent .portal-icon { display: none; }
.shop-room {
  width: 176px;
  min-height: 146px;
  padding-top: 34px;
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,.7) 0 9%, transparent 10%),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, #fff7da, #f0c878 70%, #d49a42);
  border: 2px solid rgba(128, 89, 48, .18);
}
.shop-room::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  height: 18px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #df675d 0 18px, #fff4d5 18px 36px);
  box-shadow: 0 4px 0 rgba(119, 80, 49, .18);
}
.shop-room::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 44px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #8b5d3b, #60412e);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.shop-room .portal-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 58px;
  width: 30px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #8bd5ff);
  box-shadow: 76px 0 0 #ffd58b, 0 7px 0 rgba(75, 92, 105, .24), 76px 7px 0 rgba(75, 92, 105, .18);
}
.shop-roof {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 158px;
  height: 58px;
  transform: translateX(-50%) perspective(220px) rotateX(35deg);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(135deg, #dd584f, #f09a61);
  box-shadow: 0 10px 16px rgba(92, 55, 37, .18);
}
.festival-toy {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.28), 0 18px 26px rgba(43, 82, 73, .18);
  font-size: 82px;
  z-index: 2;
  transform-style: preserve-3d;
  animation: toyBob 3.2s ease-in-out infinite;
}
.festival-toy::after { content: "🧸"; }
.spring .festival-toy::after { content: "🧒🧨👧"; font-size: 58px; }
.lantern .festival-toy::after { content: "🥣"; }
.children .festival-toy::after { content: "🎈👧👦"; font-size: 54px; }
.dragon .festival-toy::after { content: "🛶"; }
.midautumn .festival-toy::after { content: "🥮"; }
.national .festival-toy::after { content: "🇨🇳"; }
.christmas .festival-toy::after { content: "🎄🛷"; font-size: 58px; }
.festival-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.christmas .festival-decor::before {
  content: "";
  position: absolute;
  left: 11%;
  top: 13%;
  width: 130px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 70px 310px 0 8px rgba(255,255,255,.85), 620px 20px 0 5px rgba(255,255,255,.8);
}
.national .festival-decor::before {
  content: "国庆快乐";
  position: absolute;
  left: 38%;
  top: 20%;
  padding: 8px 26px;
  border-radius: 8px;
  background: #d92727;
  color: #ffe36b;
  font-weight: 900;
}
.chibi {
  position: absolute;
  width: 54px;
  height: 84px;
  transform: translate(-50%, -50%);
  z-index: 3;
  filter: drop-shadow(0 13px 10px rgba(32, 61, 55, .28));
  transform-style: preserve-3d;
  --skin: #ffd1a4;
  --hair: #8a4f31;
  --shirt: #7ee45f;
  --pants: #58bf46;
  --shoe: #233329;
  --hat-color: #f97316;
  --bag-color: #db9852;
}
.chibi::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 8px;
  background:
    radial-gradient(circle at 62% 32%, #fff6a8 0 2px, transparent 3px),
    linear-gradient(145deg, #fff06d, #8fe655 68%, #35a84e);
  box-shadow: 19px 1px 0 -1px #8fe655, 20px 0 0 1px #fff06d;
  transform: rotate(-28deg);
  z-index: 4;
}
.chibi::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 58px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 69, 231, .5) 0 30%, rgba(87, 255, 210, .26) 31% 56%, rgba(30, 64, 58, .18) 57% 100%);
  box-shadow: 0 0 18px rgba(255, 66, 231, .36), inset 0 0 0 3px rgba(255,255,255,.22);
  z-index: -3;
}
.chibi span { position: absolute; left: 50%; transform: translateX(-50%); display: block; }
.chibi .head {
  top: 0;
  width: 40px;
  height: 37px;
  border-radius: 48% 48% 46% 46%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.7) 0 9%, transparent 10%),
    radial-gradient(circle at 73% 74%, rgba(255,142,142,.3) 0 8%, transparent 9%),
    linear-gradient(145deg, #ffe2c6, var(--skin) 62%, #e4a171);
  border: 2px solid rgba(102, 67, 45, .85);
  box-shadow: inset -5px -6px 0 rgba(143, 83, 51, .16), 0 4px 0 rgba(98, 62, 39, .18);
}
.chibi .head::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: -8px;
  height: 21px;
  border-radius: 18px 18px 11px 11px;
  background:
    radial-gradient(circle at 24% 70%, color-mix(in srgb, var(--hair) 78%, #fff) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 66%, color-mix(in srgb, var(--hair) 72%, #fff) 0 4px, transparent 5px),
    linear-gradient(145deg, #6f4635, var(--hair));
  box-shadow:
    -13px 7px 0 4px var(--hair),
    13px 7px 0 4px color-mix(in srgb, var(--hair) 88%, #fff),
    inset 4px 4px 0 rgba(255,255,255,.16);
}
.chibi .head::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 5px;
  height: 6px;
  border-radius: 50%;
  background: #2f2420;
  box-shadow: 15px 0 0 #2f2420, 7px 9px 0 -1px #c66f67, -4px 7px 0 2px rgba(255,136,130,.24), 18px 7px 0 2px rgba(255,136,130,.24);
}
.chibi.has-glasses .head::after {
  left: 7px;
  top: 15px;
  width: 11px;
  height: 7px;
  border: 2px solid #1f2933;
  background: transparent;
  box-shadow: 16px 0 0 -2px transparent, 16px 0 0 0 #1f2933;
}
.chibi .body {
  top: 35px;
  width: 38px;
  height: 31px;
  border-radius: 18px 18px 15px 15px;
  background:
    radial-gradient(circle at 21% 70%, rgba(255,242,126,.8) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 68%, rgba(96,196,73,.9) 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 0 30%, rgba(255,255,255,.52) 31% 36%, transparent 37%),
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.76) 0 8%, transparent 9%),
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.48) 0 13%, transparent 14%),
    linear-gradient(145deg, color-mix(in srgb, var(--shirt) 78%, #fff), var(--shirt) 68%, color-mix(in srgb, var(--shirt) 70%, #111));
  border: 2px solid rgba(255,255,255,.65);
  box-shadow: inset -5px -6px 0 rgba(26, 58, 72, .16), 0 3px 0 rgba(48, 95, 63, .18);
}
.chibi .body::before,
.chibi .body::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 11px;
  height: 27px;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shirt) 82%, #fff), var(--skin) 74%);
  z-index: -1;
}
.chibi .body::before { left: -9px; transform: rotate(13deg); }
.chibi .body::after { right: -9px; transform: rotate(-13deg); }
.chibi .legs {
  top: 62px;
  width: 34px;
  height: 16px;
  border-radius: 4px 4px 12px 12px;
  background:
    linear-gradient(90deg, transparent 0 12%, var(--skin) 13% 31%, transparent 32% 68%, var(--skin) 69% 87%, transparent 88%),
    linear-gradient(145deg, color-mix(in srgb, var(--pants) 88%, #fff), var(--pants) 62%, color-mix(in srgb, var(--pants) 78%, #111));
  clip-path: polygon(10% 0, 90% 0, 100% 86%, 64% 100%, 50% 72%, 36% 100%, 0 86%);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.14), inset 0 2px 0 rgba(255,255,255,.16);
}
.chibi .shoes {
  top: 76px;
  width: 42px;
  height: 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shoe) 68%, #fff), var(--shoe));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22);
}
.chibi.boy,
.chibi.girl {
  --hair: #6f3f2d;
  --shirt: #f7f2e9;
  --pants: #253b73;
  --shoe: #24376b;
}
.chibi.boy::before,
.chibi.girl::before {
  left: 2px;
  top: 24px;
  width: 11px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd9b5, #eaa179);
  box-shadow: 38px 0 0 0 #eaa179;
  transform: none;
  z-index: 0;
}
.chibi.boy .head,
.chibi.girl .head {
  width: 42px;
  height: 39px;
  border-radius: 48% 48% 45% 45%;
}
.chibi.boy .head::before,
.chibi.girl .head::before {
  left: -4px;
  right: -4px;
  top: -7px;
  height: 21px;
  border-radius: 17px 17px 7px 7px;
  background:
    radial-gradient(circle at 24% 78%, color-mix(in srgb, var(--hair) 70%, #fff) 0 4px, transparent 5px),
    linear-gradient(145deg, #8b6047, var(--hair) 70%, #4d2d20);
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.14);
}
.chibi.boy .head::after,
.chibi.girl .head::after {
  left: 9px;
  top: 18px;
  width: 7px;
  height: 8px;
  background:
    radial-gradient(circle at 58% 38%, #fff 0 2px, transparent 3px),
    #27303d;
  box-shadow:
    16px 0 0 #27303d,
    16px 0 0 0 #27303d,
    7px 10px 0 -2px #b86c62,
    -3px 7px 0 2px rgba(255,136,130,.18),
    22px 7px 0 2px rgba(255,136,130,.18);
}
.chibi.boy.has-glasses .head::after,
.chibi.girl.has-glasses .head::after {
  left: 7px;
  top: 16px;
  width: 12px;
  height: 8px;
  background: transparent;
  box-shadow: 17px 0 0 -2px transparent, 17px 0 0 0 #1f2933;
}
.chibi.boy .body,
.chibi.girl .body {
  top: 36px;
  width: 34px;
  height: 30px;
  border-radius: 12px 12px 9px 9px;
  background:
    radial-gradient(circle at 34% 20%, rgba(255,255,255,.82) 0 10%, transparent 11%),
    linear-gradient(145deg, #fffdf8, var(--shirt) 68%, #d8d2c9);
  border-color: rgba(255,255,255,.8);
}
.chibi.boy .body::before,
.chibi.boy .body::after,
.chibi.girl .body::before,
.chibi.girl .body::after {
  top: 7px;
  height: 32px;
  background: linear-gradient(180deg, var(--skin), #de8d70);
}
.chibi.boy .body::before,
.chibi.girl .body::before { left: -12px; transform: rotate(15deg); }
.chibi.boy .body::after,
.chibi.girl .body::after { right: -12px; transform: rotate(-15deg); }
.chibi.boy .legs,
.chibi.girl .legs {
  top: 63px;
  width: 32px;
  height: 19px;
  clip-path: none;
  border-radius: 2px 2px 8px 8px;
  background:
    linear-gradient(90deg, var(--skin) 0 18%, transparent 19% 81%, var(--skin) 82% 100%),
    linear-gradient(90deg, var(--pants) 0 45%, transparent 46% 54%, color-mix(in srgb, var(--pants) 86%, #111) 55% 100%);
}
.chibi.boy .shoes,
.chibi.girl .shoes {
  top: 79px;
  width: 40px;
  height: 10px;
  border-radius: 10px 10px 7px 7px;
  background:
    linear-gradient(90deg, transparent 0 16%, var(--skin) 17% 33%, transparent 34% 66%, var(--skin) 67% 83%, transparent 84%),
    linear-gradient(180deg, #40548b, var(--shoe));
}
.chibi .hat {
  top: -12px;
  width: 31px;
  height: 14px;
  border-radius: 13px 13px 7px 7px;
  background: transparent;
  box-shadow: none;
}
.chibi.has-hat .hat {
  background: linear-gradient(145deg, color-mix(in srgb, var(--hat-color) 80%, #fff), var(--hat-color));
  box-shadow: 0 4px 0 rgba(82, 45, 25, .18);
}
.chibi .bag {
  right: -9px;
  left: auto;
  top: 34px;
  transform: none;
  width: 13px;
  height: 22px;
  border-radius: 5px 5px 8px 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--bag-color) 75%, #fff), var(--bag-color));
  border: 2px solid rgba(255,255,255,.48);
}
.chibi .bag::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 8px;
  height: 13px;
  border: 2px solid rgba(95, 63, 40, .45);
  border-right: 0;
  border-radius: 8px 0 0 8px;
}
.chibi:not(.has-bag) .bag { opacity: 0; }
.chibi.has-bag .bag { opacity: 1; }
.player { left: 50%; top: 70%; }
.sled {
  position: absolute;
  width: 52px;
  height: 28px;
  border-radius: 8px;
  background: #c43b3b;
  border-bottom: 5px solid #8e4d26;
}
.sled::after { content: "🛷"; position: absolute; inset: -12px 0 0; font-size: 32px; }
.side-panel, .parent-card, .park-intro, .locked-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.side-panel h2, .side-panel h3 { margin-top: 0; }
.hint, .feedback-line { color: var(--muted); line-height: 1.7; }
.control-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

.ladder {
  min-height: 760px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #eaf5ff, #f5fff6);
  padding: 32px 12px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  align-items: center;
  overflow: auto;
}
.level-node {
  width: 184px;
  min-height: 84px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(37,72,68,.16);
  position: relative;
  padding: 10px;
}
.level-node:nth-child(odd) { margin-left: 170px; }
.level-node:nth-child(even) { margin-right: 170px; }
.level-node.locked { opacity: .48; filter: grayscale(.7); }
.stars { color: var(--gold); letter-spacing: 0; font-weight: 900; }
.run-map {
  min-height: 620px;
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.72) 0 8%, transparent 9%),
    linear-gradient(180deg, #c9ecff, #dff9dc 64%, #b8df9c);
  box-shadow: var(--shadow);
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.tile, .question-point, .finish, .npc {
  position: absolute;
  border-radius: 8px;
}
.tile {
  background: linear-gradient(145deg, #b7e78f, #74b65e);
  border: 2px solid rgba(255,255,255,.38);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.28), 0 12px 0 #4f8845, 0 20px 22px rgba(30,65,58,.28);
  transform: rotateX(50deg);
  transform-origin: center bottom;
}
.tile::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -15px;
  height: 15px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #4f8845, #376538);
  transform: rotateX(-72deg);
  transform-origin: top;
}
.wall {
  background: linear-gradient(145deg, #c8d1dc, #697582);
  border-color: rgba(255,255,255,.38);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.24), 0 18px 0 #4b5560, 0 28px 28px rgba(30,45,55,.32);
}
.question-point {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #fff 0 15%, transparent 16%),
    linear-gradient(145deg, #fff9d0, #f7bd35 68%, #b56d09);
  border: 4px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: inset -5px -7px 0 rgba(134, 82, 7, .2), 0 10px 0 #b77714, 0 17px 18px rgba(93, 66, 20, .3);
  transform: translateZ(30px);
  animation: pointPulse 1.8s ease-in-out infinite;
}
.question-point.done {
  background: linear-gradient(145deg, #e8fff0, #5fd08e 68%, #247947);
  border-color: var(--brand);
  box-shadow: inset -5px -7px 0 rgba(20, 92, 55, .18), 0 8px 0 #247947, 0 14px 14px rgba(35, 74, 66, .24);
}
.finish {
  width: 56px;
  height: 56px;
  background:
    radial-gradient(circle at 32% 24%, #fff 0 12%, transparent 13%),
    linear-gradient(145deg, #fff4ba, #e2a824 70%, #9f6312);
  border: 4px solid #e2a824;
  display: grid;
  place-items: center;
  box-shadow: inset -7px -9px 0 rgba(128, 77, 13, .18), 0 14px 0 #9f6312, 0 24px 24px rgba(92, 66, 24, .28);
  transform: translateZ(34px);
}
.finish::after { content: "终"; font-weight: 900; }
.npc {
  width: 38px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  z-index: 3;
  filter: drop-shadow(0 8px 6px rgba(39, 70, 64, .24));
  transition: left .12s linear, top .12s linear;
  --npc-shirt: #ef83ad;
  --npc-pants: #4b5f9f;
  --npc-hair: #57382c;
}
.npc span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}
.npc-head {
  top: 0;
  width: 29px;
  height: 27px;
  border-radius: 48% 48% 46% 46%;
  background:
    radial-gradient(circle at 34% 29%, rgba(255,255,255,.55) 0 11%, transparent 12%),
    linear-gradient(145deg, #ffe0c2, #ffd1a4 64%, #dc996d);
  border: 2px solid #755037;
  box-shadow: inset -3px -4px 0 rgba(132, 75, 45, .14);
}
.npc-head::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -5px;
  height: 14px;
  border-radius: 14px 14px 8px 8px;
  background:
    radial-gradient(circle at 72% 75%, var(--npc-hair) 0 5px, transparent 6px),
    linear-gradient(145deg, #75503f, var(--npc-hair));
}
.npc-head::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #2f2420;
  box-shadow: 10px 0 0 #2f2420, 5px 7px 0 -1px #cc7a72;
}
.npc-body {
  top: 26px;
  width: 30px;
  height: 25px;
  border-radius: 14px 14px 11px 11px;
  background:
    radial-gradient(circle at 33% 23%, rgba(255,255,255,.42) 0 13%, transparent 14%),
    linear-gradient(145deg, color-mix(in srgb, var(--npc-shirt) 78%, #fff), var(--npc-shirt) 70%, color-mix(in srgb, var(--npc-shirt) 76%, #111));
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: inset -3px -4px 0 rgba(47, 46, 82, .14);
}
.npc-body::before,
.npc-body::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 8px;
  height: 20px;
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--npc-shirt) 85%, #fff), #ffd1a4 76%);
  z-index: -1;
}
.npc-body::before { left: -7px; transform: rotate(12deg); }
.npc-body::after { right: -7px; transform: rotate(-12deg); }
.npc::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 34px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(32, 61, 55, .18);
  z-index: -2;
}
.npc-legs {
  top: 49px;
  width: 24px;
  height: 12px;
  border-radius: 0 0 9px 9px;
  background:
    linear-gradient(90deg, var(--npc-pants) 0 45%, transparent 46% 54%, color-mix(in srgb, var(--npc-pants) 80%, #111) 55% 100%);
}
.npc-shoes {
  top: 59px;
  width: 31px;
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #52616c, #263238);
}
.npc-green { --npc-shirt: #50b889; --npc-pants: #385568; --npc-hair: #3a4a32; }
.npc-purple { --npc-shirt: #8b7ae6; --npc-pants: #6d4a7f; --npc-hair: #3b2f66; }
.npc-bubble {
  left: 50%;
  top: -25px;
  min-width: 46px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(35, 74, 66, .18);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 12px rgba(36, 81, 72, .14);
}
.npc.waiting .npc-bubble { opacity: 1; }
.npc.waiting .npc-body {
  animation: npcThink 1.2s ease-in-out infinite;
}
@keyframes npcThink {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-2px); }
}
.level-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.level-stats span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shop-custom-maker {
  margin: 0 0 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.76) 0 10%, transparent 11%),
    linear-gradient(145deg, #fff8dc, #e9f7ff);
  box-shadow: 0 10px 0 rgba(130, 157, 170, .28), 0 20px 26px rgba(35, 74, 66, .14);
  padding: 12px 14px;
}
.shop-custom-maker summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
}
.shop-custom-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.shop-custom-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}
.shop-custom-form input,
.shop-custom-form select {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.shop-auto-price {
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  border: 1px dashed rgba(41, 121, 95, .3);
  color: #35715c;
  font-size: 12px;
  font-weight: 800;
}
.shop-showcase {
  min-height: 170px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.8) 0 10%, transparent 11%),
    linear-gradient(145deg, #6967eb 0%, #857dff 54%, #d7f7ff 100%);
  color: #fff;
  box-shadow: 0 14px 0 rgba(78, 72, 176, .28), 0 28px 34px rgba(35,74,66,.18);
  overflow: hidden;
}
.shop-showcase h3 { margin: 0 0 8px; font-size: 22px; text-shadow: 0 2px 0 rgba(0,0,0,.13); }
.shop-showcase p { margin: 0; max-width: 520px; color: rgba(255,255,255,.92); font-weight: 800; }
.shop-avatar-stage {
  position: relative;
  height: 132px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 54%, rgba(255,255,255,.5) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), 0 10px 0 rgba(60, 55, 150, .24);
}
.shop-avatar {
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scale(1.32);
}
.shop-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.shop-section.locked::after {
  content: attr(data-lock);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.88) 0 8px, rgba(210,210,210,.88) 8px 16px);
  color: #000;
  font-weight: 900;
  padding: 20px;
}
.shop-group {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.74) 0 9%, transparent 10%),
    linear-gradient(145deg, #f9fffb, #eef4ff);
  border: 1px solid rgba(43, 143, 120, .12);
}
.shop-group h4 {
  display: inline-block;
  margin: 0 0 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8c7, #dbf5ef);
  color: var(--brand-dark);
  font-size: 13px;
  box-shadow: 0 4px 0 rgba(112, 153, 141, .2);
}
.shop-item, .skin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  background: #f8fbfa;
}
.item-swatch {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: inset -5px -5px 0 rgba(0,0,0,.12), inset 3px 3px 0 rgba(255,255,255,.34);
}
.item-swatch::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.72);
}
.item-swatch.clothes::after { border-radius: 6px 6px 12px 12px; inset: 6px 9px; }
.item-swatch.pants::after { border-radius: 3px 3px 8px 8px; inset: 7px 8px 5px; border-top-width: 8px; }
.item-swatch.shoes::after { inset: 18px 5px 6px; border-radius: 8px; }
.item-swatch.hat::after { inset: 8px 5px 14px; border-radius: 12px 12px 5px 5px; }
.item-swatch.bag::after { inset: 6px 10px 5px; border-radius: 6px 6px 9px 9px; }
.item-swatch.glasses::after { inset: 11px 5px; border-radius: 8px; border-width: 3px; }
.item-swatch.suit::after {
  inset: 5px;
  border-radius: 7px 7px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 0 28%, transparent 29% 71%, rgba(255,255,255,.72) 72% 100%),
    linear-gradient(180deg, rgba(255,255,255,.65), transparent);
}
.shop-item small, .skin-item small {
  display: block;
  margin-top: 3px;
  color: #5d6b69;
  font-weight: 800;
}
.dress-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dress-room {
  min-height: 180px;
  border-radius: 8px;
  padding: 18px;
  color: #17324d;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(110, 137, 154, .28), 0 24px 30px rgba(35,74,66,.16);
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
  align-items: center;
}
.dress-room::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.6);
  pointer-events: none;
}
.dress-room::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  width: 52px;
  height: 100%;
  background: rgba(56, 78, 96, .12);
  transform: skewY(-18deg);
}
.dress-room.boy { background: linear-gradient(135deg, #d8ebff, #8ec9ff 68%, #5d95d7); }
.dress-room.girl { background: linear-gradient(135deg, #ffe1ef, #ffaad0 68%, #e46fa7); }
.room-preview { display: flex; gap: 12px; flex-wrap: wrap; }
.room-preview span {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 5px 0 rgba(76, 92, 110, .18), 0 10px 12px rgba(35,74,66,.12);
}
.dress-pick {
  position: relative;
  min-height: 138px;
  display: grid;
  place-items: end center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 0 rgba(88, 117, 143, .16);
  z-index: 1;
}
.dress-avatar {
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) scale(1.02);
}
.dress-pick .solid-button {
  position: relative;
  z-index: 2;
  min-width: 76px;
  padding: 8px 10px;
}
.owned-skins { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 32, 30, .45);
  z-index: 30;
  padding: 18px;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-card.wide { width: min(760px, 100%); }
.gender-card {
  width: min(720px, 100%);
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.9) 0 9%, transparent 10%),
    linear-gradient(145deg, #eef2ff, #fef6ff 58%, #e9fff6);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 0 rgba(110, 128, 160, .24), 0 32px 42px rgba(35,74,66,.18);
}
.gender-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.gender-option {
  min-height: 230px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(120, 116, 255, .22) 0 20%, transparent 21%),
    linear-gradient(180deg, #6f6cf0 0%, #8b82ff 62%, #dbd7ff 100%);
  color: #fff;
  display: grid;
  grid-template-rows: 150px auto auto;
  place-items: center;
  gap: 4px;
  padding: 14px;
  box-shadow: 0 10px 0 rgba(72, 67, 176, .32), 0 22px 28px rgba(35,74,66,.16);
  text-align: center;
}
.gender-option:nth-child(2) {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 240, 145, .22) 0 20%, transparent 21%),
    linear-gradient(180deg, #5bc7af 0%, #76dba8 62%, #e4ffd6 100%);
}
.gender-option:hover { transform: translateY(-5px); box-shadow: 0 15px 0 rgba(72, 67, 176, .28), 0 28px 34px rgba(35,74,66,.18); }
.gender-option b { font-size: 20px; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.gender-option small { color: rgba(255,255,255,.92); font-weight: 800; }
.gender-preview {
  position: relative;
  left: auto;
  top: auto;
  transform: scale(1.65);
  display: block;
}
.answer-input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 12px 0;
  font-size: 18px;
}
.choice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.choice-button {
  min-height: 58px;
  border: 1px solid rgba(43, 143, 120, .22);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.8) 0 12%, transparent 13%),
    linear-gradient(145deg, #ffffff, #e3f6f0);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  font-weight: 800;
  box-shadow: 0 6px 0 #b9ddd0, 0 12px 16px rgba(35,74,66,.14);
  text-align: left;
}
.choice-button b {
  color: var(--brand-dark);
  font-size: 18px;
  flex: 0 0 auto;
}
.choice-button span {
  overflow-wrap: anywhere;
}
.choice-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #b9ddd0, 0 16px 20px rgba(35,74,66,.17);
}
.choice-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b9ddd0, 0 7px 12px rgba(35,74,66,.14);
}
.big-stars { font-size: 42px; color: var(--gold); letter-spacing: 0; }
.wrong-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.wrong-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fbfbfb; }

.camera-box {
  height: 230px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1f2933;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
}
.camera-box video { width: 100%; height: 100%; object-fit: cover; display: none; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.big-notice { font-size: 18px; font-weight: 800; }
.park-open { display: none; }
.park-open.active {
  display: block;
  position: relative;
  min-height: 520px;
  padding: 22px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, #fff7a4 0 5%, transparent 6%),
    linear-gradient(180deg, #aee1ff 0%, #e7fbff 44%, #c8f1d2 45%, #80c76f 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.8);
  perspective: 1100px;
  transform-style: preserve-3d;
}
.park-open.active::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 170px;
  height: 190px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(0deg, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(145deg, #95db82, #5cae57);
  transform: rotateX(62deg);
  transform-origin: center bottom;
  box-shadow: 0 24px 0 #3c7b40, 0 42px 30px rgba(29, 70, 49, .28);
}
.park-open.active::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 48px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff8bb 0 18%, #ffd95a 19% 68%, #f29c22 69%);
  box-shadow: 0 0 0 16px rgba(255,221,99,.22), 0 0 40px rgba(255,180,41,.55);
}
.locked-panel.hidden { display: none; }
.park-open .park-intro {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255,255,255,.86) 0 11%, transparent 12%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,210,.95));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 14px 0 rgba(154, 128, 78, .35), 0 26px 30px rgba(35, 74, 66, .18);
  transform: translateZ(52px);
}
.park-open .park-intro .solid-button {
  box-shadow: 0 6px 0 rgba(18, 83, 68, .45), 0 12px 16px rgba(35,74,66,.18);
}
.map-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
  max-height: 720px;
  overflow-y: auto;
  padding: 6px 8px 16px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(230,244,255,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 30px rgba(35,74,66,.18);
  transform: translateZ(34px);
}
.map-card {
  background: #fff;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(130, 157, 170, .32), 0 22px 28px rgba(35, 74, 66, .15);
  transform: translateZ(26px);
  transition: transform .16s ease, box-shadow .16s ease;
}
.map-card:hover {
  transform: translateY(-8px) translateZ(46px);
  box-shadow: 0 16px 0 rgba(130, 157, 170, .32), 0 32px 38px rgba(35, 74, 66, .2);
}
.map-cover {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: #dcecff;
}
.map-cover img,
.map-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-cover.generated {
  --cover-color: #6aa7ff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.58) 0 12%, transparent 13%),
    linear-gradient(145deg, color-mix(in srgb, var(--cover-color) 72%, #fff), var(--cover-color) 65%, color-mix(in srgb, var(--cover-color) 72%, #111));
}
.map-cover.generated b {
  display: block;
  font-size: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.map-cover.generated span {
  margin-top: 44px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.26);
  font-weight: 900;
}
.cover-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}
.map-card-body {
  padding: 12px 14px 14px;
}
.map-card-body p {
  margin: 6px 0;
  color: var(--muted);
}
.name-plate {
  display: inline-block;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff7dc;
  border: 1px solid #ead08d;
  color: #7b4b08;
  font-weight: 900;
}

.creator-controls, .palette {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.creator-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
.creator-avatar-card,
.creator-stage-title {
  min-height: 118px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.75) 0 14%, transparent 15%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,244,255,.92));
  box-shadow: 0 14px 0 rgba(143, 173, 169, .35), 0 24px 34px rgba(35, 74, 66, .18);
}
.creator-avatar-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  overflow: hidden;
}
.creator-avatar-card::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 14px;
  width: 70px;
  height: 18px;
  border-radius: 50%;
  background: rgba(30, 70, 62, .16);
}
.creator-avatar {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 8px auto 0;
  scale: 1.12;
}
.creator-avatar-card h3,
.creator-avatar-card p {
  margin: 0;
}
.creator-avatar-card p,
.creator-stage-title span {
  color: var(--muted);
  line-height: 1.6;
}
.creator-stage-title {
  padding: 18px 20px;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 84% 28%, rgba(255,247,210,.95) 0 13%, transparent 14%),
    linear-gradient(145deg, #e6f7ff, #f2fff0 62%, #fff4d4);
}
.creator-stage-title b {
  font-size: 22px;
}
.creator-controls input {
  width: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.creator-controls #mapName {
  width: 150px;
}
.creator-controls #coverPhoto,
.creator-controls #coverVideo {
  width: 220px;
}
.palette button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eef8f4);
  padding: 8px 10px;
  box-shadow: 0 4px 0 #c8ded8, 0 8px 14px rgba(32, 71, 63, .11);
  font-weight: 800;
}
.palette button.active {
  background: linear-gradient(180deg, #40a58e, var(--brand-dark));
  color: #fff;
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0f4f40, 0 5px 10px rgba(32, 71, 63, .16);
}
.palette-label {
  align-self: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff7dc;
  border: 1px solid #ead08d;
  color: #8a5a12;
  font-weight: 900;
}
.custom-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.custom-tool-model, .custom-model {
  --custom-color: #22a6b3;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.65) 0 16%, transparent 17%),
    linear-gradient(145deg, color-mix(in srgb, var(--custom-color) 62%, #fff), var(--custom-color) 72%, color-mix(in srgb, var(--custom-color) 70%, #111));
  color: #fff;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: inset -5px -6px 0 rgba(0,0,0,.16), 0 7px 0 color-mix(in srgb, var(--custom-color) 65%, #111), 0 12px 16px rgba(35,74,66,.18);
}
.custom-maker {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 10px 14px;
}
.custom-maker summary {
  font-weight: 900;
  color: var(--brand-dark);
  cursor: pointer;
}
.custom-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.custom-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}
.custom-form input {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.custom-form .wide {
  grid-column: span 2;
}
.custom-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef8ff, #f7fbf5);
}
.custom-model {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 22px;
}
.custom-model.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: inset -4px -5px 0 rgba(0,0,0,.16), 0 4px 0 color-mix(in srgb, var(--custom-color) 65%, #111);
}
.creator-grid {
  display: grid;
  gap: 6px;
  padding: 34px 34px 48px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,.18) 0 9%, transparent 10%),
    linear-gradient(145deg, #33465d, #1b2735);
  overflow: auto;
  max-height: 520px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 36px rgba(18, 34, 48, .28);
  perspective: 1100px;
  transform-style: preserve-3d;
}
.creator-cell {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), 13px 13px 18px rgba(0,0,0,.24);
  font-weight: 900;
  transition: transform .14s ease, box-shadow .14s ease;
}
.creator-cell::before,
.creator-cell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.creator-cell::before {
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  border-radius: 0 0 6px 6px;
  background: rgba(23, 35, 45, .48);
  transform: rotateX(-90deg);
  transform-origin: top;
}
.creator-cell::after {
  right: -12px;
  top: 0;
  width: 12px;
  bottom: 0;
  border-radius: 0 6px 6px 0;
  background: rgba(255,255,255,.12);
  transform: rotateY(90deg);
  transform-origin: left;
}
.creator-cell > *,
.creator-cell {
  transform-style: preserve-3d;
}
.creator-cell:hover {
  transform: rotateX(58deg) rotateZ(-38deg) translateZ(12px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.24), 18px 18px 24px rgba(0,0,0,.28);
}
.creator-cell.floor { background: linear-gradient(145deg, #b5e58f, #72b65f); }
.creator-cell.start { background: linear-gradient(145deg, #91c9ff, #367fc7); }
.creator-cell.finish { background: linear-gradient(145deg, #ffe88d, #e6a915); color: #333; }
.creator-cell.wall { background: linear-gradient(145deg, #b0bac6, #667381); }
.creator-cell.bomb { background: radial-gradient(circle at 35% 28%, #ffaaa0 0 18%, transparent 19%), linear-gradient(145deg, #e86f61, #a9352e); }
.creator-cell.spring { background: linear-gradient(145deg, #ffb1cf, #dc5f92); }
.creator-cell.trampoline { background: linear-gradient(145deg, #b7a5ff, #6d51d8); }
.creator-cell.portal { background: radial-gradient(circle, #e0ffff 0 18%, #4ad2dc 19% 54%, #16828c 55%); }
.creator-cell.ball { background: radial-gradient(circle at 35% 30%, #ffd3a4 0 16%, #f97316 17% 70%, #b74c0c 71%); }
.creator-cell.save { background: linear-gradient(145deg, #5eead4, #0f9d8c); }
.creator-cell.custom-object {
  background: #eef4ff;
  color: #fff;
}
.creator-cell .custom-model {
  transform: translateZ(18px);
}
.park-play-grid {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(145deg, #253242, #111827);
  overflow: auto;
  max-height: 620px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow);
}
.park-play-grid .creator-cell {
  position: relative;
  cursor: default;
}
.mini-runner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 28px;
  transform: translate(-50%, -58%);
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.28));
}
.mini-runner span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}
.mini-head {
  top: 0;
  width: 17px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe2c6, #ffd1a4 65%, #dc996d);
  border: 1px solid #755037;
}
.mini-head::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: -3px;
  height: 7px;
  border-radius: 8px 8px 4px 4px;
  background: #5b3b2e;
}
.mini-body {
  top: 15px;
  width: 19px;
  height: 15px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(145deg, #85c9ff, #3f8fd3);
  border: 1px solid rgba(255,255,255,.75);
}

@keyframes portalFloat {
  0%, 100% { transform: translateY(0) translateZ(26px) rotateX(0deg); }
  50% { transform: translateY(-7px) translateZ(34px) rotateX(4deg); }
}

@keyframes toyBob {
  0%, 100% { transform: translate(-50%, -50%) translateZ(20px) rotateX(0deg); }
  50% { transform: translate(-50%, -56%) translateZ(34px) rotateX(5deg); }
}

@keyframes pointPulse {
  0%, 100% { transform: translateZ(30px) translateY(0) scale(1); }
  50% { transform: translateZ(44px) translateY(-5px) scale(1.06); }
}

@keyframes sunGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(255, 221, 99, .24), 0 0 44px rgba(255, 180, 41, .62); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 26px rgba(255, 221, 99, .18), 0 0 64px rgba(255, 180, 41, .78); }
}

@keyframes ferrisTurn {
  from { transform: rotate(0deg) translateZ(30px); }
  to { transform: rotate(360deg) translateZ(30px); }
}

@media (max-width: 900px) {
  .topbar, .section-head { align-items: flex-start; flex-direction: column; }
  .hall-shell, .run-layout, .shop-grid, .dress-rooms, .creator-showcase { grid-template-columns: 1fr; }
  .map-list { grid-template-columns: 1fr; }
  .custom-form { grid-template-columns: 1fr; }
  .shop-custom-form { grid-template-columns: 1fr; }
  .custom-form .wide { grid-column: auto; }
  .choice-options { grid-template-columns: 1fr; }
  .hall-stage { min-height: 560px; }
  .hall-portal { width: 116px; min-height: 104px; scale: .82; }
  .portal-challenge { left: 4%; }
  .portal-park { left: 24%; }
  .portal-shop { left: 45%; }
  .portal-dress { right: 2%; }
  .ferris, .carousel, .slide, .cube-stack { scale: .72; }
  .level-node:nth-child(n) { margin-left: 0; margin-right: 0; }
}
