/* ==========================================================================
   军训球球大作战 · 全局样式
   设计关键词：奶油纸张、军绿色、圆润卡片、卡通训练场、轻快动效
   ========================================================================== */

:root {
  --ink: #26362b;
  --ink-soft: #60705e;
  --paper: #fffaf0;
  --paper-deep: #f6efd9;
  --green-950: #142a1d;
  --green-900: #1e3b2a;
  --green-800: #295139;
  --green-700: #35694a;
  --green-500: #5c8f63;
  --green-300: #a7c89b;
  --lime: #c7e38e;
  --yellow: #ffd66e;
  --yellow-deep: #f2b84b;
  --orange: #ef8354;
  --coral: #f36f5f;
  --red: #df5145;
  --white: #fffef9;
  --line: rgba(43, 67, 45, 0.16);
  --shadow-soft: 0 18px 45px rgba(23, 45, 29, 0.18);
  --shadow-card: 0 34px 90px rgba(10, 28, 17, 0.34);
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Arial Rounded MT Bold", "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: var(--green-950);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--green-950);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 193, 77, 0.95);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* 画面上层的柔和阳光与纸纹，让整体更像一张卡通手绘海报 */
.sun-glare {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 245, 195, 0.34), transparent 31%),
    radial-gradient(circle at 8% 92%, rgba(23, 61, 38, 0.18), transparent 36%);
  mix-blend-mode: soft-light;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

/* ==========================================================================
   HUD
   ========================================================================== */

.hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hud.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hud-card,
.leaderboard,
.hud-tools,
.control-hint {
  pointer-events: auto;
}

.hud-card {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 326px;
  padding: 10px 15px 10px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.68);
  border-radius: 21px;
  background: rgba(255, 250, 238, 0.94);
  box-shadow: 0 12px 30px rgba(17, 39, 25, 0.2);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  animation: hudDrop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.cadet-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #fff8d7, #f7d784 58%, #e9b655);
  border: 2px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 -4px 8px rgba(120, 75, 20, 0.15), 0 4px 10px rgba(42, 77, 47, 0.16);
  overflow: hidden;
}

.cadet-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.player-info {
  min-width: 116px;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 1px;
}

.player-name-row strong {
  max-width: 108px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--green-900);
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(53, 105, 74, 0.11);
  color: var(--green-700);
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.score-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.score-number {
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.8px;
  transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.4, 1), color 0.18s ease;
}

.score-number.is-bumping {
  transform: scale(1.2);
  color: var(--orange);
}

.score-star {
  color: var(--yellow-deep);
  font-size: 14px;
  transform: translateY(-2px);
}

.quick-stats {
  display: flex;
  gap: 13px;
  padding-left: 13px;
  border-left: 1px dashed rgba(53, 75, 54, 0.24);
}

.quick-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 36px;
}

.quick-stat span {
  color: #7d8875;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.quick-stat b {
  color: var(--green-800);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.brand-mini {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 250, 231, 0.9);
  background: rgba(21, 48, 31, 0.42);
  box-shadow: 0 5px 20px rgba(11, 29, 17, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}

.brand-star {
  color: var(--yellow);
  font-size: 10px;
}

.hud-tools {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  color: #fff9e3;
  background: rgba(25, 55, 36, 0.52);
  box-shadow: 0 6px 16px rgba(11, 30, 17, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  background: rgba(35, 75, 49, 0.75);
  transform: translateY(-2px);
}

.icon-button:active {
  transform: translateY(0) scale(0.96);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.icon-button .icon-off {
  display: none;
}

.icon-button[aria-pressed="false"] .icon-on {
  display: none;
}

.icon-button[aria-pressed="false"] .icon-off {
  display: block;
}

/* 排行榜 */
.leaderboard {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  width: 218px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  background: rgba(255, 250, 238, 0.92);
  box-shadow: 0 12px 30px rgba(17, 39, 25, 0.17);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: hudDrop 0.6s 0.05s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px 8px;
  color: var(--green-800);
  border-bottom: 1px dashed rgba(53, 75, 54, 0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fa96d;
  box-shadow: 0 0 0 0 rgba(111, 169, 109, 0.5);
  animation: livePulse 2s infinite;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 5px 6px;
  padding: 0;
  list-style: none;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 3px 7px;
  border-radius: 8px;
  color: #4a5a49;
  font-size: 10.5px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.lb-row.is-player {
  color: var(--green-950);
  background: linear-gradient(90deg, rgba(255, 214, 110, 0.7), rgba(255, 225, 144, 0.38));
  box-shadow: inset 0 0 0 1px rgba(212, 159, 49, 0.18);
}

.lb-rank {
  width: 17px;
  flex: 0 0 17px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: #98a08f;
}

.lb-row:nth-child(1) .lb-rank {
  color: #de9b2b;
}

.lb-row:nth-child(2) .lb-rank {
  color: #829a9c;
}

.lb-row:nth-child(3) .lb-rank {
  color: #bc7f51;
}

.lb-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lb-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-row.is-player .lb-name::after {
  content: " · 你";
  color: #966a20;
  font-size: 8.5px;
}

.lb-value {
  flex: 0 0 auto;
  color: #75816d;
  font-size: 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.lb-row.is-player .lb-value {
  color: #82571a;
}

.lb-foot {
  padding: 0 13px 9px;
  color: #9ba390;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.control-hint {
  position: absolute;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 250, 231, 0.92);
  background: rgba(20, 46, 30, 0.5);
  box-shadow: 0 5px 18px rgba(10, 27, 16, 0.14);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.control-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.mouse-icon {
  position: relative;
  width: 11px;
  height: 15px;
  border: 1.4px solid currentColor;
  border-radius: 6px;
}

.mouse-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 1.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.hint-dot {
  opacity: 0.5;
}

/* ==========================================================================
   通用按钮
   ========================================================================== */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: 15px;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 1.3, 0.4, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.button::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 24%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(18deg);
  transition: left 0.55s ease;
}

.button:hover::after {
  left: 115%;
}

.button-primary {
  color: #fffdf2;
  background: linear-gradient(145deg, #4d8558, #2e603e 70%);
  box-shadow: 0 6px 0 #21472e, 0 16px 25px rgba(28, 67, 41, 0.24);
}

.button-primary:hover {
  background: linear-gradient(145deg, #5a9565, #356b47 70%);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #21472e, 0 20px 30px rgba(28, 67, 41, 0.27);
}

.button-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #21472e, 0 8px 16px rgba(28, 67, 41, 0.2);
}

.button-ghost {
  color: var(--green-800);
  background: #f2ecd9;
  border: 1.5px solid rgba(54, 85, 55, 0.18);
  box-shadow: 0 4px 0 rgba(50, 78, 51, 0.11);
}

.button-ghost:hover {
  background: #f8f2df;
  transform: translateY(-2px);
}

.button-ghost:active {
  transform: translateY(2px);
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 17px;
  line-height: 1;
}

.text-button {
  padding: 8px 10px;
  border: 0;
  color: #7b806f;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(80, 91, 73, 0.3);
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--green-700);
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   屏幕 / 弹层
   ========================================================================== */

.screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 74% 16%, rgba(78, 120, 74, 0.16), transparent 36%),
    linear-gradient(118deg, rgba(15, 39, 26, 0.88) 0%, rgba(20, 52, 34, 0.64) 58%, rgba(24, 57, 36, 0.48) 100%);
  backdrop-filter: blur(2.5px) saturate(0.92);
  -webkit-backdrop-filter: blur(2.5px) saturate(0.92);
}

/* ==========================================================================
   开始界面
   ========================================================================== */

.start-screen {
  align-items: center;
}

.start-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  width: min(1040px, 100%);
  min-height: 610px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: cardRise 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.start-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 38px 40px 52px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 131, 84, 0.14);
}

.start-copy h1 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(52px, 5.3vw, 78px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -3px;
}

.start-copy h1 em {
  position: relative;
  color: var(--orange);
  font-style: normal;
  text-shadow: 0 3px 0 rgba(197, 93, 49, 0.14);
}

.start-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: -4px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 195, 88, 0.44);
  transform: rotate(-1.5deg);
  z-index: -1;
}

.tagline {
  margin: 18px 0 24px;
  color: #66725f;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.2px;
}

.how-to {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.how-item {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid rgba(48, 82, 51, 0.1);
  border-radius: 13px;
  background: rgba(244, 239, 219, 0.64);
}

.how-number {
  flex: 0 0 auto;
  color: #a5ad95;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.65;
}

.how-item b {
  display: block;
  margin-bottom: 1px;
  color: var(--green-800);
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.how-item small {
  display: block;
  overflow: hidden;
  color: #8a927f;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.start-actions {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-field span {
  padding-left: 2px;
  color: #7b8773;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1px;
}

.name-field input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1.5px solid rgba(53, 83, 54, 0.17);
  border-radius: 14px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.name-field input::placeholder {
  color: #b0b5a5;
  font-weight: 600;
}

.name-field input:focus {
  outline: none;
  border-color: rgba(80, 134, 88, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(80, 134, 88, 0.1);
}

.start-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-size: 14px;
}

.best-line {
  margin: 14px 0 0;
  color: #929a87;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.best-line strong {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.mini-divider {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 6px 2px;
  border-radius: 50%;
  background: #b5bba9;
}

/* 右侧插画 */
.start-art {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 26%, #fff7cd 0%, #ffe9a0 18%, #ffca6f 40%, #ef9b58 65%, #d97a4e 100%);
}

.start-art::before {
  content: "";
  position: absolute;
  inset: auto -25% -38% -25%;
  height: 70%;
  border-radius: 50% 50% 0 0;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, rgba(255, 243, 192, 0.2) 0 18px, rgba(151, 84, 41, 0.12) 19px 21px, transparent 22px 56px),
    linear-gradient(180deg, transparent, rgba(171, 91, 50, 0.2));
  transform: rotate(-4deg);
}

.art-sun {
  position: absolute;
  top: 42px;
  right: 46px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fffce8, #fff0ac 46%, #ffd66f 72%);
  box-shadow: 0 0 0 18px rgba(255, 248, 208, 0.18), 0 0 70px rgba(255, 243, 175, 0.44);
  animation: sunBreathe 6s ease-in-out infinite;
}

.art-ring {
  position: absolute;
  border: 2px dashed rgba(255, 250, 225, 0.46);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.art-ring-one {
  width: 610px;
  height: 400px;
  left: -150px;
  bottom: 62px;
}

.art-ring-two {
  width: 430px;
  height: 260px;
  left: -52px;
  bottom: 108px;
  border-style: solid;
  opacity: 0.42;
}

.art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, transparent 88%);
}

.art-cloud {
  position: absolute;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 252, 231, 0.7);
  filter: blur(0.2px);
}

.art-cloud::before,
.art-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.art-cloud::before {
  left: 18%;
  width: 50px;
  height: 34px;
}

.art-cloud::after {
  right: 14%;
  width: 34px;
  height: 26px;
}

.art-cloud-one {
  top: 86px;
  left: 26px;
  width: 96px;
  opacity: 0.55;
  animation: cloudDrift 16s ease-in-out infinite;
}

.art-cloud-two {
  top: 184px;
  right: 138px;
  width: 70px;
  opacity: 0.4;
  transform: scale(0.72);
  animation: cloudDrift 20s 2s ease-in-out infinite reverse;
}

#mascotCanvas {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  width: min(94%, 448px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 22px rgba(101, 54, 24, 0.24));
  pointer-events: none;
}

.art-caption {
  position: absolute;
  z-index: 5;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  border-radius: 13px;
  color: var(--green-900);
  background: rgba(255, 250, 233, 0.88);
  box-shadow: 0 9px 22px rgba(101, 54, 24, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.caption-star {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #8b5c14;
  background: var(--yellow);
  font-size: 13px;
}

.art-caption b {
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.art-caption small {
  display: block;
  color: #8d8061;
  font-size: 8.5px;
  font-weight: 700;
}

.art-badge {
  position: absolute;
  z-index: 4;
  padding: 7px 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--green-800);
  background: rgba(255, 252, 239, 0.9);
  box-shadow: 0 9px 20px rgba(102, 57, 24, 0.2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
  animation: badgeFloat 4.4s ease-in-out infinite;
}

.art-badge-water {
  top: 155px;
  left: 42px;
  transform: rotate(-6deg);
}

.art-badge-water::before {
  content: "◆";
  margin-right: 4px;
  color: #5c9dc6;
  font-size: 9px;
}

.art-badge-bun {
  top: 74px;
  right: 78px;
  animation-delay: -2.1s;
  transform: rotate(5deg);
}

.art-badge-bun::before {
  content: "●";
  margin-right: 4px;
  color: #d9a45b;
  font-size: 8px;
}

.art-spark {
  position: absolute;
  z-index: 2;
  color: rgba(255, 252, 220, 0.9);
  font-size: 22px;
  text-shadow: 0 2px 8px rgba(189, 112, 42, 0.18);
  animation: sparkTwinkle 3.2s ease-in-out infinite;
}

.spark-one {
  top: 210px;
  right: 46px;
}

.spark-two {
  top: 108px;
  left: 118px;
  font-size: 14px;
  animation-delay: -1s;
}

.spark-three {
  bottom: 130px;
  right: 30px;
  font-size: 17px;
  animation-delay: -2.2s;
}

.start-footer {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 250, 233, 0.58);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

/* ==========================================================================
   倒计时
   ========================================================================== */

.countdown {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fffdf1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.countdown.is-active {
  opacity: 1;
  visibility: visible;
}

#countdownText {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(100px, 17vw, 180px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
  color: #fff9df;
  text-shadow:
    0 6px 0 #37654a,
    0 14px 34px rgba(7, 27, 15, 0.42),
    0 0 44px rgba(255, 223, 124, 0.25);
  animation: countPop 0.85s cubic-bezier(0.15, 1.45, 0.4, 1) both;
}

.countdown small {
  margin-top: 12px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 251, 230, 0.9);
  background: rgba(20, 47, 30, 0.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.countdown.is-go #countdownText {
  color: #ffe27a;
  font-size: clamp(72px, 12vw, 126px);
  letter-spacing: 1px;
}

/* ==========================================================================
   暂停弹窗
   ========================================================================== */

.pause-screen .screen-scrim {
  background: rgba(12, 31, 19, 0.7);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 34px 34px 26px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: popIn 0.45s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: -4px auto 17px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9e7b8, #f3c970);
  box-shadow: inset 0 -5px 8px rgba(145, 99, 33, 0.12), 0 8px 18px rgba(137, 94, 35, 0.13);
  font-size: 29px;
}

.modal-card .eyebrow {
  justify-content: center;
  margin-bottom: 8px;
}

.modal-card h2 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.modal-desc {
  margin: 9px 0 22px;
  color: #7c856f;
  font-size: 12px;
  font-weight: 600;
}

.pause-card .button-row {
  margin-bottom: 4px;
}

.pause-card .button {
  flex: 1 1 150px;
}

/* ==========================================================================
   结算界面
   ========================================================================== */

.result-screen {
  align-items: flex-start;
  padding-top: 66px;
  padding-bottom: 36px;
}

.result-screen .screen-scrim {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 222, 128, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(12, 31, 19, 0.9), rgba(25, 60, 39, 0.72));
  backdrop-filter: blur(5px) saturate(0.92);
  -webkit-backdrop-filter: blur(5px) saturate(0.92);
}

.result-card {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
  margin: auto;
  padding: 50px 44px 26px;
  border: 2px solid rgba(255, 255, 255, 0.64);
  border-radius: 33px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 225, 135, 0.18), transparent 26%),
    var(--paper);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: resultRise 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-medallion {
  position: absolute;
  top: -42px;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translateX(-50%);
}

.medal-disc {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 4px solid #fff3c4;
  border-radius: 50%;
  color: #966315;
  background:
    radial-gradient(circle at 36% 28%, #fff5b9, #ffd56d 45%, #eab14b 74%, #ce8d2f);
  box-shadow: 0 8px 20px rgba(121, 76, 15, 0.28), inset 0 -5px 9px rgba(139, 86, 15, 0.17);
  font-size: 31px;
  line-height: 1;
  animation: medalSwing 3.4s ease-in-out infinite;
}

.medal-ribbon {
  position: absolute;
  z-index: 1;
  top: 52px;
  width: 27px;
  height: 41px;
  background: #3d7550;
}

.medal-ribbon-left {
  left: 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotate(9deg);
}

.medal-ribbon-right {
  right: 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotate(-9deg);
}

.result-card .eyebrow {
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 6px;
  color: #a17b2e;
}

.result-card h2 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.result-message {
  margin: 8px auto 17px;
  max-width: 390px;
  color: #7a8371;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
}

.final-score {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 17px;
  padding: 12px 16px 14px;
  border: 1px dashed rgba(69, 102, 68, 0.2);
  border-radius: 18px;
  background: rgba(245, 239, 218, 0.56);
}

.final-score > span {
  color: #8c927f;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 2px;
}

.final-score > strong {
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  font-variant-numeric: tabular-nums;
  animation: scorePop 0.65s 0.2s cubic-bezier(0.16, 1.35, 0.3, 1) both;
}

.new-record {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #8b5312;
  background: var(--yellow);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.5px;
  transform: rotate(4deg);
  animation: recordWiggle 1.4s ease-in-out infinite;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid rgba(58, 88, 58, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.result-stat span {
  color: #8d9583;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.result-stat strong {
  color: var(--green-800);
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
  padding: 11px 14px;
  border: 1px solid rgba(190, 139, 43, 0.24);
  border-radius: 15px;
  background: linear-gradient(108deg, rgba(255, 224, 143, 0.42), rgba(255, 242, 197, 0.34));
  text-align: left;
}

.rank-stars {
  flex: 0 0 auto;
  color: #d89b2e;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.rank-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.rank-copy span {
  display: block;
  color: #9d8754;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  color: #76521b;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-stamp {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1.5px solid rgba(184, 121, 43, 0.34);
  border-radius: 6px;
  color: rgba(151, 101, 38, 0.72);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  transform: rotate(5deg);
}

.result-card .button-row {
  margin-bottom: 2px;
}

.result-card .button {
  flex: 1 1 160px;
}

.result-card .best-line {
  margin-top: 11px;
}

/* 结算彩纸 */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confettiFall var(--duration, 3.4s) var(--delay, 0s) linear forwards;
}

/* ==========================================================================
   无脚本提示
   ========================================================================== */

.noscript {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #fff9e2;
  background: #1d3b29;
  font-weight: 800;
  text-align: center;
}

/* ==========================================================================
   动画
   ========================================================================== */

@keyframes hudDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes resultRise {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sunBreathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 18px rgba(255, 248, 208, 0.18), 0 0 70px rgba(255, 243, 175, 0.44);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 25px rgba(255, 248, 208, 0.12), 0 0 92px rgba(255, 243, 175, 0.5);
  }
}

@keyframes cloudDrift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -9px;
  }
}

@keyframes sparkTwinkle {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.82) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.08) rotate(12deg);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 169, 109, 0.46);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(111, 169, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 169, 109, 0);
  }
}

@keyframes countPop {
  0% {
    opacity: 0;
    transform: scale(1.45);
  }
  35% {
    opacity: 1;
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scorePop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes recordWiggle {
  0%,
  100% {
    transform: rotate(4deg) scale(1);
  }
  50% {
    transform: rotate(-3deg) scale(1.06);
  }
}

@keyframes medalSwing {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -4vh, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 40px), 106vh, 0) rotate(var(--spin, 540deg));
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1080px) {
  .start-copy {
    padding-left: 40px;
    padding-right: 28px;
  }

  .start-copy h1 {
    font-size: clamp(46px, 5.4vw, 64px);
  }

  .how-item {
    padding: 9px 7px;
  }

  .how-item small {
    font-size: 8.5px;
  }
}

/* 矮屏笔记本：让开始卡片从顶部开始，避免垂直居中裁掉内容 */
@media (max-height: 700px) and (min-width: 861px) {
  .start-screen {
    align-items: flex-start;
  }

  .start-card {
    min-height: 0;
    margin: 0 auto;
  }

  .start-copy {
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .start-art {
    min-height: 560px;
  }

  .start-footer {
    display: none;
  }
}

@media (max-width: 860px) {
  .screen {
    align-items: flex-start;
    padding: 18px 12px 26px;
  }

  .start-card {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 620px;
    border-radius: 29px;
  }

  .start-art {
    order: -1;
    min-height: 250px;
    height: 250px;
  }

  .start-art::before {
    inset: auto -15% -80% -15%;
  }

  .art-sun {
    top: 24px;
    right: 54px;
    width: 116px;
    height: 116px;
  }

  .art-ring-one {
    width: 480px;
    height: 280px;
    left: -80px;
    bottom: 26px;
  }

  .art-ring-two {
    width: 330px;
    height: 190px;
    left: -10px;
    bottom: 56px;
  }

  #mascotCanvas {
    width: 300px;
    bottom: -34px;
    left: 53%;
  }

  .art-caption {
    left: 14px;
    bottom: 14px;
    padding: 6px 9px 6px 7px;
  }

  .caption-star {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .art-caption b {
    font-size: 9.5px;
  }

  .art-caption small {
    font-size: 7.5px;
  }

  .art-badge-water {
    top: 92px;
    left: 22px;
  }

  .art-badge-bun {
    top: 34px;
    right: 26px;
  }

  .spark-one {
    top: 150px;
    right: 80px;
  }

  .spark-two {
    top: 64px;
    left: 120px;
  }

  .spark-three {
    bottom: 82px;
    right: 26px;
  }

  .start-copy {
    padding: 27px 30px 27px;
  }

  .start-copy h1 {
    font-size: clamp(43px, 9vw, 58px);
  }

  .tagline {
    margin: 14px 0 18px;
  }

  .how-to {
    margin-bottom: 18px;
  }

  .start-footer {
    display: none;
  }

  .brand-mini {
    display: none;
  }

  .leaderboard {
    width: 188px;
    top: calc(68px + env(safe-area-inset-top, 0px));
  }

  .lb-foot {
    display: none;
  }

  .lb-row {
    min-height: 25px;
  }

  .result-card {
    padding: 46px 30px 24px;
  }
}

@media (max-width: 640px) {
  .hud-card {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
    gap: 8px;
    min-width: 0;
    padding: 7px 10px 7px 7px;
    border-radius: 17px;
  }

  .cadet-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .player-info {
    min-width: 78px;
  }

  .player-name-row {
    gap: 4px;
  }

  .player-name-row strong {
    max-width: 76px;
    font-size: 12px;
  }

  .rank-pill {
    height: 16px;
    padding: 0 5px;
    font-size: 8px;
  }

  .score-number {
    font-size: 21px;
  }

  .score-label {
    display: none;
  }

  .score-star {
    font-size: 11px;
  }

  .quick-stats {
    gap: 7px;
    padding-left: 8px;
  }

  .quick-stat {
    min-width: 31px;
  }

  .quick-stat span {
    font-size: 8px;
  }

  .quick-stat b {
    font-size: 11px;
  }

  .hud-tools {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    gap: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .icon-button svg {
    width: 18px;
    height: 18px;
  }

  .leaderboard {
    top: calc(60px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    width: 142px;
    border-radius: 13px;
  }

  .lb-head {
    padding: 7px 9px 6px;
    font-size: 8.5px;
    letter-spacing: 0.7px;
  }

  .lb-list {
    margin: 4px;
  }

  .lb-row {
    min-height: 21px;
    gap: 5px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .lb-rank {
    width: 12px;
    flex-basis: 12px;
    font-size: 8px;
  }

  .lb-dot {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .lb-value {
    font-size: 7.5px;
  }

  .lb-row.is-player .lb-name::after {
    font-size: 7px;
  }

  .lb-row:nth-child(n + 4) {
    display: none;
  }

  .control-hint {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
    padding: 6px 11px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .mouse-icon {
    display: none;
  }

  .start-copy {
    padding: 22px 20px 24px;
  }

  .eyebrow {
    font-size: 8.5px;
    letter-spacing: 1.2px;
  }

  .start-copy h1 {
    font-size: clamp(38px, 11vw, 52px);
    letter-spacing: -2px;
  }

  .tagline {
    font-size: 12px;
  }

  .how-to {
    gap: 6px;
  }

  .how-item {
    display: block;
    padding: 8px 8px 7px;
  }

  .how-number {
    display: block;
    margin-bottom: 2px;
    font-size: 8px;
    line-height: 1;
  }

  .how-item b {
    font-size: 10px;
  }

  .how-item small {
    font-size: 8px;
  }

  .start-actions {
    grid-template-columns: 1fr;
  }

  .name-field input {
    height: 46px;
  }

  .start-button {
    min-height: 47px;
  }

  .start-art {
    height: 218px;
    min-height: 218px;
  }

  .art-sun {
    top: 20px;
    right: 40px;
    width: 96px;
    height: 96px;
  }

  #mascotCanvas {
    width: 260px;
    bottom: -38px;
  }

  .art-badge {
    padding: 5px 8px;
    font-size: 8.5px;
  }

  .art-badge-water {
    top: 74px;
    left: 16px;
  }

  .art-badge-bun {
    top: 22px;
    right: 16px;
  }

  .art-caption {
    left: 10px;
    bottom: 10px;
  }

  .spark-three {
    display: none;
  }

  .modal-card {
    padding: 30px 20px 22px;
    border-radius: 25px;
  }

  .modal-card h2 {
    font-size: 23px;
  }

  .result-screen {
    padding-top: 52px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .result-card {
    border-radius: 27px;
    padding: 46px 18px 22px;
  }

  .result-medallion,
  .medal-disc {
    width: 72px;
    height: 72px;
  }

  .result-medallion {
    top: -36px;
  }

  .medal-disc {
    font-size: 26px;
  }

  .medal-ribbon {
    top: 44px;
    width: 24px;
    height: 36px;
  }

  .medal-ribbon-left {
    left: 10px;
  }

  .medal-ribbon-right {
    right: 10px;
  }

  .result-card h2 {
    font-size: 28px;
  }

  .result-message {
    font-size: 10.5px;
  }

  .final-score > strong {
    font-size: 54px;
  }

  .new-record {
    right: 8px;
    font-size: 7.5px;
  }

  .result-stats {
    gap: 5px;
  }

  .result-stat {
    padding: 8px 3px;
  }

  .result-stat span {
    font-size: 8px;
  }

  .result-stat strong {
    font-size: 14px;
  }

  .rank-card {
    gap: 8px;
    padding: 9px 10px;
  }

  .rank-stars {
    font-size: 13px;
  }

  .rank-copy strong {
    font-size: 13px;
  }

  .rank-stamp {
    display: none;
  }

  .result-card .button-row .button {
    flex-basis: 130px;
    min-height: 46px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .quick-stats {
    display: none;
  }

  .player-card {
    min-width: 0;
  }

  .start-art {
    height: 192px;
    min-height: 192px;
  }

  #mascotCanvas {
    width: 230px;
  }

  .art-badge-bun {
    display: none;
  }

  .how-item small {
    display: none;
  }

  .tagline br {
    display: none;
  }
}

/* 尊重系统的“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
