:root {
  --ink: #fff6df;
  --soft: #ecd8b0;
  --gold: #e6b54a;
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Fredoka", "Noto Sans SC", sans-serif;
  --ipa: "Andika", "Noto Sans SC", serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: #120e0a;
}

button { font-family: inherit; cursor: pointer; border: 0; }

.hidden { display: none !important; }

.app {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background: #16110c;
}

.app[data-world="1"] { background: #1d140e; }
.app[data-world="2"] { background: #10180f; }

.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 42% at 50% 0%, rgba(255, 186, 92, 0.2), transparent 55%),
    linear-gradient(180deg, #2c1d12, #120e0a 74%);
}

.app[data-world="1"] .sky {
  background:
    radial-gradient(55% 40% at 82% 6%, rgba(255, 176, 88, 0.34), transparent 50%),
    linear-gradient(180deg, #c86428, #8a3a14 48%, #1a100c 100%);
}

.app[data-world="2"] .sky {
  background:
    radial-gradient(50% 36% at 18% 6%, rgba(170, 255, 196, 0.22), transparent 48%),
    linear-gradient(180deg, #3f8f4c, #245a30 48%, #10180f 100%);
}

.screen {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 236, 196, 0.12), transparent 46%),
    rgba(18, 12, 8, 0.62);
  border: 1px solid rgba(255, 220, 170, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 236, 200, 0.16);
  backdrop-filter: blur(18px);
}

.kicker,
.title-en {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.title-stack {
  position: absolute;
  left: 28px;
  top: 28px;
  width: min(460px, calc(100% - 180px));
  padding: 22px 24px 20px;
  border-radius: 24px;
}

.home-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1c1610 url("./../assets/track-1.jpg") center / cover no-repeat;
}

.home-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 6, 0.28), rgba(12, 8, 6, 0.55) 70%);
}

.home-scene .world-bg { display: none; }

.home-art {
  position: absolute;
  right: 4vw;
  top: 10vh;
  width: min(38vw, 420px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 170, 0.28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  background: #1c1610;
}

.home-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 900;
  object-fit: cover;
}

.title-stack h1,
.panel h2,
.board h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  line-height: 1.1;
}

.title-stack h1 {
  font-size: clamp(34px, 6vw, 58px);
  text-shadow: 0 4px 0 #2a1a0c;
}

.title-en { margin-top: 10px; font-size: 16px; }

.home-progress {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #3d220c;
  background: linear-gradient(180deg, #ffe08a, #d7a03c);
  border: 3px solid #7a4814;
  box-shadow: 0 6px 0 #4a2a08;
}

.home-panel {
  position: absolute;
  left: 50%;
  bottom: 5vh;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 36px));
  padding: 22px 24px 24px;
  text-align: center;
  border-radius: 24px;
}

.lede,
.tip,
.seek-hint,
.sentence-zh {
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.primary,
.ghost,
.back,
.listen,
.link-btn {
  padding: 12px 22px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 999px;
}

.primary {
  color: #fff8e8;
  background: linear-gradient(180deg, #d26422, #8a3510);
  border: 3px solid #4a1c08;
  box-shadow: 0 6px 0 #2a1008;
}

.primary.big { padding: 15px 36px; font-size: 24px; }
.primary:hover,
.ghost:hover,
.back:hover { transform: translateY(1px); }

.ghost,
.back,
.link-btn {
  color: #3d220c;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe7a8, #e2b24a);
  border: 3px solid #7a4814;
  box-shadow: 0 6px 0 #4a2a08;
}

.link-btn { display: inline-block; }

.listen {
  color: #fff8e8;
  background: linear-gradient(180deg, #2a7a6e, #145248);
  border: 3px solid #083830;
  box-shadow: 0 4px 0 #042420;
}

.panel-wrap {
  min-height: 100dvh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(12, 8, 6, 0.42), rgba(12, 8, 6, 0.62)),
    #1c1610 url("../assets/track-1.jpg") center / cover no-repeat;
}

.panel.wide {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 28px;
}

.panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.help-grid,
.world-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.help-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(20, 10, 6, 0.28);
  border: 2px solid rgba(232, 195, 106, 0.28);
}

.help-card strong { display: block; margin-bottom: 6px; }

.rule-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(20, 10, 6, 0.28);
}

.rule-table caption {
  padding: 12px 8px 8px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--gold);
}

.rule-table th,
.rule-table td {
  padding: 10px 12px;
  text-align: left;
  border-top: 1px solid rgba(232, 195, 106, 0.2);
}

.rule-table th { color: #ffe08a; }

.world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.world-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  min-height: 320px;
  padding: 0;
  border-radius: 22px;
  color: #fff6df;
  border: 1px solid rgba(255, 220, 170, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.world-art { position: absolute; inset: 0; }

.world-card[data-world="1"] .world-art {
  background: #1c1610 url("../assets/track-1.jpg") center 58% / cover no-repeat;
}

.world-card[data-world="2"] .world-art {
  background: #142016 url("../assets/track-2.jpg") center 62% / cover no-repeat;
}

.world-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 6, 0.78));
}

.world-art .seal {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 28px;
  color: #3d220c;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #d7a03c);
  border: 3px solid #7a4814;
  box-shadow: 0 6px 0 #2a1406;
}

.mini-row {
  position: absolute;
  left: 18px;
  top: 88px;
  display: flex;
  gap: 8px;
}

.mini-tile {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 56px;
  padding: 0 10px;
  border-radius: 12px;
  font-family: var(--ipa);
  font-size: 18px;
  color: #3d220c;
  background: linear-gradient(180deg, #fff4d2, #e8c36a);
  border: 3px solid #5a3010;
  box-shadow: 0 4px 0 #2a1406;
}

.world-copy {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 16px;
  background: linear-gradient(180deg, transparent 22%, rgba(12, 8, 5, 0.78) 70%);
}

.world-card h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 26px;
}

.world-card p { margin: 6px 0 0; color: #f0d7b0; }

.world-card.open:hover { transform: translateY(-3px); }

.world-card .done {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 12, 8, 0.45);
  font-weight: 800;
}

.play {
  padding: 0;
}

.arena {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #1c1610 url("../assets/track-1.jpg") center 46% / cover no-repeat;
}

.app[data-world="2"] .arena {
  background: #142016 url("../assets/track-2.jpg") center 52% / cover no-repeat;
}

.arena::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(8, 6, 4, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.22) 0%, transparent 22%, transparent 70%, rgba(8, 6, 4, 0.28) 100%);
}

.arena.rumble { animation: rumble 0.35s ease; }

.world-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arena .sky-layer,
.arena .range,
.arena .hills,
.arena .treeline,
.arena .props {
  display: none;
}

.sky-layer {
  position: absolute;
  inset: 0 0 42% 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 236, 176, 0.7), transparent 22%),
    linear-gradient(180deg, #6eb7e6 0%, #b7d8ef 46%, #e7c48a 100%);
}

.app[data-world="2"] .sky-layer {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 248, 210, 0.55), transparent 24%),
    linear-gradient(180deg, #7ec8ea 0%, #c8e8c0 58%, #8fc86a 100%);
}

.sun {
  position: absolute;
  top: 7%;
  right: 11%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff8d2, #f0c12a 54%, #e08a18);
  box-shadow: 0 0 40px 12px rgba(255, 196, 80, 0.55), 0 0 90px 24px rgba(255, 170, 60, 0.28);
}

.app[data-world="2"] .sun { right: auto; left: 10%; }

.haze {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255, 228, 180, 0.35));
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 40px;
  filter: blur(0.4px);
  box-shadow: 18px 0 0 rgba(255, 255, 255, 0.8), 36px 6px 0 rgba(255, 255, 255, 0.7);
}

.c1 { top: 12%; left: 8%; width: 90px; height: 24px; opacity: 0.8; animation: drift 28s linear infinite; }
.c2 { top: 20%; right: 24%; width: 70px; height: 20px; opacity: 0.7; animation: drift 36s linear infinite reverse; }
.c3 { top: 8%; left: 42%; width: 54px; height: 16px; opacity: 0.55; animation: drift 42s linear infinite; }

.range,
.hills,
.treeline {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.range {
  bottom: 40%;
  height: 20%;
  background:
    radial-gradient(120% 90% at 18% 100%, #7a8aa0 0 36%, transparent 37%),
    radial-gradient(90% 80% at 48% 110%, #66768c 0 40%, transparent 41%),
    radial-gradient(110% 86% at 82% 100%, #738198 0 38%, transparent 39%);
  opacity: 0.55;
}

.hills {
  bottom: 26%;
  height: 26%;
  background:
    radial-gradient(80% 120% at 0% 100%, #4e8a3a 0 42%, transparent 43%),
    radial-gradient(70% 110% at 36% 120%, #3f7a30 0 46%, transparent 47%),
    radial-gradient(90% 130% at 70% 110%, #4a8636 0 44%, transparent 45%),
    radial-gradient(80% 120% at 100% 100%, #35702a 0 40%, transparent 41%);
}

.app[data-world="1"] .hills {
  background:
    radial-gradient(80% 120% at 0% 100%, #8a7a3a 0 42%, transparent 43%),
    radial-gradient(70% 110% at 36% 120%, #6a5a28 0 46%, transparent 47%),
    radial-gradient(90% 130% at 70% 110%, #7a6830 0 44%, transparent 45%),
    radial-gradient(80% 120% at 100% 100%, #5a481e 0 40%, transparent 41%);
}

.treeline {
  bottom: 28%;
  height: 12%;
  background:
    repeating-radial-gradient(circle at 10% 80%, #1f5a20 0 8px, transparent 9px 28px),
    repeating-radial-gradient(circle at 40% 90%, #246428 0 10px, transparent 11px 34px),
    repeating-radial-gradient(circle at 72% 85%, #1a4e1c 0 9px, transparent 10px 30px);
  opacity: 0.7;
}

.props {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tree {
  position: absolute;
  bottom: 12%;
  width: 86px;
  height: 160px;
  background:
    radial-gradient(circle at 50% 28%, #4aa33a 0 28%, transparent 29%),
    radial-gradient(circle at 32% 40%, #3d8a2e 0 22%, transparent 23%),
    radial-gradient(circle at 68% 42%, #2f7a24 0 20%, transparent 21%);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.28));
}

.tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 38%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #5a3514, #8a5a28 46%, #3d220c);
  border-radius: 4px;
}

.t1 { left: 2%; bottom: 18%; transform: scale(1.1); }
.t2 { left: 9%; bottom: 14%; transform: scale(0.78); }
.t3 { right: 3%; bottom: 17%; transform: scale(1.05); }
.t4 { right: 11%; bottom: 13%; transform: scale(0.7); }

.rail {
  position: absolute;
  bottom: 10%;
  width: 9%;
  height: 18%;
  background:
    repeating-linear-gradient(180deg, #8a3a1c 0 10px, #5a2410 10px 14px),
    #6a2c12;
  box-shadow: inset 0 0 0 3px #3d180c, 6px 8px 10px rgba(0, 0, 0, 0.28);
  opacity: 0.72;
}

.rail.left { left: 0; transform: perspective(200px) rotateY(28deg); transform-origin: left bottom; }
.rail.right { right: 0; transform: perspective(200px) rotateY(-28deg); transform-origin: right bottom; }

.stage-3d {
  position: absolute;
  left: 0;
  right: 0;
  top: 16%;
  bottom: 0;
  z-index: 3;
}

.ground {
  position: absolute;
  inset: 0;
  background: transparent;
}

.apron { display: none; }

.fork {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 8%;
  bottom: 20%;
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.fork[data-count="2"] {
  left: 6%;
  right: 6%;
}

.lane {
  position: relative;
  flex: 0 0 18%;
  max-width: 220px;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: manipulation;
}

.fork[data-count="2"] .lane {
  flex-basis: 28%;
  max-width: 280px;
}

.sign-wrap {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.4));
}

.sign-post {
  width: 7px;
  height: 54px;
  order: 2;
  background: linear-gradient(90deg, #3a3a3c, #d4d4d6 38%, #1c1c1e 78%);
  border-radius: 2px;
  box-shadow: 2px 0 0 rgba(0, 0, 0, 0.35);
}

.sign {
  order: 1;
  min-width: 108px;
  padding: 10px 16px 12px;
  border-radius: 6px;
  font-family: var(--ipa);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: #1a1814;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 48%),
    linear-gradient(180deg, #f4f1e6, #c8c2b0);
  border: 3px solid #2a2824;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.28);
}

.lane[data-verb="am"] .sign {
  background: linear-gradient(180deg, rgba(255,255,255,.38), transparent 42%), linear-gradient(180deg, #ffe7b4, #d88820);
}
.lane[data-verb="is"] .sign {
  background: linear-gradient(180deg, rgba(255,255,255,.38), transparent 42%), linear-gradient(180deg, #d8ecff, #3f86c4);
}
.lane[data-verb="are"] .sign {
  background: linear-gradient(180deg, rgba(255,255,255,.38), transparent 42%), linear-gradient(180deg, #def6c8, #3f9640);
}

.lane.hint-lane .sign {
  box-shadow: 0 0 0 5px #ffe08a, 0 10px 18px rgba(0, 0, 0, 0.28);
}

.road {
  position: relative;
  width: 72%;
  height: 100%;
  overflow: hidden;
  border-radius: 40% 40% 18px 18px / 10% 10% 18px 18px;
  background: linear-gradient(180deg, rgba(255, 236, 180, 0.0), rgba(255, 220, 140, 0.04) 40%, rgba(0, 0, 0, 0.08));
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.road::after { display: none; }

.lane:hover .road,
.lane:focus-visible .road {
  background: linear-gradient(180deg, rgba(255, 220, 120, 0.16), rgba(255, 200, 80, 0.06));
  box-shadow: inset 0 0 0 2px rgba(255, 224, 150, 0.28);
}

.lane.right .road {
  background: linear-gradient(180deg, rgba(120, 220, 110, 0.18), rgba(40, 120, 50, 0.08));
  box-shadow: inset 0 0 40px rgba(90, 200, 80, 0.18);
}

.pit {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 78%;
  height: 92px;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, #4a2a16 0 12%, #120806 46%, #000 78%);
  box-shadow:
    inset 0 18px 20px #000,
    0 0 0 6px rgba(90, 58, 28, 0.55);
}

.lane.open-pit .pit {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.lane.right .sign {
  background: linear-gradient(180deg, #e8ffd4, #6fc45a);
  border-color: #16381c;
}

.lane.wrong .sign {
  background: linear-gradient(180deg, #ffd0c4, #d45454);
  color: #fff8e8;
}

.lane.wrong .sign-wrap { animation: shake 0.35s ease; }

.play-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.play-hud .back { pointer-events: auto; }

.board {
  border-radius: 16px;
  padding: 8px 12px 10px;
  background: rgba(14, 10, 8, 0.46);
  border: 1px solid rgba(255, 230, 190, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.board.compact h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.status {
  min-width: 148px;
  text-align: right;
  color: #fff6df;
  background: rgba(14, 10, 8, 0.5);
  border-color: rgba(255, 230, 190, 0.16);
}

.status p { margin: 0 0 4px; font-weight: 800; font-size: 14px; }

.banner {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 7;
  width: min(560px, calc(100% - 220px));
  transform: translateX(-50%);
  padding: 8px 14px 10px;
  text-align: center;
  border-radius: 18px;
  background: rgba(12, 8, 6, 0.38);
  border: 1px solid rgba(255, 230, 190, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.seek-hint {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.sentence-row { text-align: center; }

.sentence {
  display: block;
  margin: 6px 0 0;
  color: #fff6df;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
  font-family: var(--ipa);
}

.wl-word {
  margin: 0;
  padding: 0 2px;
  border-bottom: 2px dashed currentColor;
  cursor: pointer;
}

.wl-word:hover { border-bottom-style: solid; }

.sentence .blank {
  display: inline-block;
  min-width: 3ch;
  margin: 0 4px;
  padding: 0 8px;
  border-bottom: 4px solid #ffe08a;
  color: #ffe08a;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
}

.car-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  pointer-events: none;
  z-index: 5;
}

.car {
  --x: 0px;
  --y: 0px;
  --rot: 0deg;
  --scale: 1;
  position: relative;
  z-index: 4;
  width: min(250px, 56vw);
  pointer-events: auto;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--rot)) scale(var(--scale));
  transition: transform 0.72s cubic-bezier(0.22, 0.8, 0.2, 1);
  animation: idle 1.4s ease-in-out infinite;
}

.car.drive,
.car.fall,
.car.pass { animation: none; }

.car.fall {
  transition-duration: 0.46s;
  transition-timing-function: cubic-bezier(0.6, 0.1, 0.9, 0.3);
}

.car.pass { filter: drop-shadow(0 0 16px rgba(255, 224, 120, 0.85)); }

.car-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 8px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.5), transparent 72%);
  filter: blur(4px);
  z-index: 0;
}

.car-cargo {
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 4px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.28));
}

.icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.car-mast {
  position: absolute;
  left: 50%;
  top: 1%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54%;
  transform: translateX(-50%);
}

.car-word {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--ipa);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: #2a1c0c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 46%),
    linear-gradient(180deg, #fff8e4, #e2b24a);
  border: 2px solid #4a3010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.28);
}

.car-word em {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  background: rgba(122, 72, 20, 0.14);
  vertical-align: middle;
}

.pole { display: none; }

.car-body {
  position: relative;
  z-index: 2;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
}

.car-photo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.42));
}

.car-photo.photo-2 { display: none; }

.app[data-world="2"] .car-photo.photo-1 { display: none; }
.app[data-world="2"] .car-photo.photo-2 { display: block; }

.ring,
.cabin,
.windshield,
.headlamp,
.wheel { display: none; }

.drivers { display: none; }

.face {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff0d8, #f0c8a0 60%, #d4a078);
  border: 2px solid #5a3010;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.06);
}

.face.girl { background: radial-gradient(circle at 35% 30%, #ffe4dc, #f3c0b4 60%, #d49890); }
.face.pet {
  background: radial-gradient(circle at 35% 30%, #fff4b0, #f4d36a 60%, #c8a030);
  border-radius: 10px;
}

.face::before,
.face::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #2a1810;
  top: 8px;
}

.face::before { left: 5px; }
.face::after { right: 5px; }

.headlamp {
  position: absolute;
  bottom: 16px;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffce8, #f0d060);
  box-shadow: 0 0 10px rgba(255, 220, 120, 0.8);
  border: 2px solid #3d2a08;
}

.headlamp.left { left: 18px; }
.headlamp.right { right: 18px; }

.wheel {
  position: absolute;
  bottom: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #d8d8d8 0 22%, #222 23% 62%, #111 63% 100%);
  box-shadow: inset 0 0 0 3px #0a0a0a, 0 3px 0 #000;
}

.wheel.left { left: 22px; }
.wheel.right { right: 22px; }

.car.drive .wheel,
.car.pass .wheel { animation: spin 0.28s linear infinite; }

.car-zh {
  position: relative;
  z-index: 3;
  margin: 10px 0 0;
  text-align: center;
  font-weight: 800;
  color: #fff6df;
  text-shadow: 0 2px 0 #2a1406, 0 6px 10px rgba(0, 0, 0, 0.35);
}

.crash {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background: rgba(8, 4, 2, 0.62);
  backdrop-filter: blur(4px);
}

.crash-card {
  width: min(420px, calc(100% - 36px));
  padding: 24px;
  text-align: center;
  border-radius: 28px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 20;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  pointer-events: none;
  background: #2a150a;
  border: 2px solid #c9a056;
  font-weight: 800;
}

.word-pop {
  position: fixed;
  z-index: 30;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #3d220c;
  background: #fff8e4;
  border: 3px solid #7a4814;
  box-shadow: 0 10px 0 #2a1406;
}

.word-en {
  margin: 0;
  font-family: var(--ipa);
  font-size: 26px;
}

.word-ipa {
  margin: 4px 0 0;
  color: #7a4814;
}

.word-zh { margin: 6px 0 0; }

.word-pop button {
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff8e8;
  background: #2a7a6e;
}

#result {
  background:
    linear-gradient(180deg, rgba(12, 8, 6, 0.48), rgba(12, 8, 6, 0.64)),
    #1c1610 url("../assets/track-1.jpg") center / cover no-repeat;
}

.app[data-world="2"] #result {
  background:
    linear-gradient(180deg, rgba(10, 16, 10, 0.48), rgba(10, 16, 10, 0.64)),
    #142016 url("../assets/track-2.jpg") center / cover no-repeat;
}

.result-card {
  position: absolute;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 36px));
  text-align: center;
  padding: 24px;
  border-radius: 28px;
}

.result-words {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.result-words button {
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 12px;
  font-family: var(--ipa);
  font-weight: 800;
  color: #fff6df;
  background: #c45a1c;
  border: 2px solid #4a1c08;
}

.result-score {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 42px;
  color: var(--gold);
}

@keyframes idle {
  0%, 100% { transform: translate3d(var(--x), var(--y), 0) rotate(var(--rot)) scale(var(--scale)); }
  50% { transform: translate3d(var(--x), calc(var(--y) - 5px), 0) rotate(var(--rot)) scale(var(--scale)); }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translateX(calc(-50% - 6px)); }
  75% { transform: translateX(calc(-50% + 6px)); }
}

@keyframes rumble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(28px); }
}

@media (max-width: 980px) {
  .world-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .help-grid { grid-template-columns: 1fr; }
  .title-stack { left: 16px; top: 18px; width: calc(100% - 32px); }
  .home-progress { top: auto; bottom: 32vh; right: 18px; }
  .home-art { display: none; }
  .banner { top: 70px; width: min(560px, calc(100% - 24px)); padding: 8px 10px 10px; }
  .sign { min-width: 68px; font-size: 24px; padding: 5px 8px; }
  .icon { width: 38px; height: 38px; }
  .tree.t2,
  .tree.t4,
  .rail { display: none; }
  .car { width: min(210px, 64vw); }
  .sign-wrap { top: 16%; }
}

@media (prefers-reduced-motion: reduce) {
  .car,
  .pit,
  .wheel,
  .cloud,
  .arena { animation: none !important; transition-duration: 0.01ms !important; }
}
