/* ============================================================
   水墨跑酷 · 国风无尽跑酷
   主色 #FF8A3D  |  纸墨质感 · 移动端优先
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #19140f;
  --ink-2: #2b231a;
  --paper: #f7efdf;
  --paper-2: #eadbc2;
  --accent: #FF8A3D;
  --accent-deep: #e5671f;
  --gold: #f0bd6d;
  --seal: #b23a2a;
  --stage-w: 480px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --serif: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "Noto Serif SC",
           "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0d0b09;
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #2a2119 0%, #13100d 55%, #090807 100%);
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.hidden { display: none !important; }

.stage {
  position: relative;
  width: 100%;
  max-width: var(--stage-w);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #17130f;
  isolation: isolate;
}

@media (min-width: 560px) {
  .stage {
    height: min(94dvh, 920px);
    border-radius: 30px;
    box-shadow:
      0 40px 100px rgba(0, 0, 0, .75),
      0 0 0 1px rgba(255, 226, 186, .12),
      inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ============================================================
   纸纹
   ============================================================ */
.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .17;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.62'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ============================================================
   首页
   ============================================================ */
.home {
  background:
    linear-gradient(180deg, #cdc4b2 0%, #a9b0a6 42%, #6f7468 72%, #2a241b 100%);
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--safe-top) + 16px)
    18px
    calc(var(--safe-bottom) + 22px);
}

.home-art {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background: url("images/gen/gptimg_1795268979_look.png") 44% 44% / cover no-repeat;
  transform: scale(1.035);
  animation: artBreathe 26s ease-in-out infinite alternate;
  will-change: transform;
}

.home-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 46%, transparent 40%, rgba(20, 15, 10, .30) 100%);
}

@keyframes artBreathe {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to   { transform: scale(1.105) translate3d(0, -1.2%, 0); }
}

.home-mist {
  position: absolute;
  z-index: 1;
  left: -30%;
  width: 160%;
  height: 26%;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
      rgba(248, 243, 232, .30) 0%,
      rgba(248, 243, 232, .12) 45%,
      transparent 72%);
  filter: blur(6px);
  opacity: .55;
}
.mist-a { top: 42%; animation: mistDrift 19s ease-in-out infinite alternate; }
.mist-b { top: 61%; height: 18%; opacity: .35; animation: mistDrift 25s ease-in-out infinite alternate-reverse; }

@keyframes mistDrift {
  from { transform: translate3d(-3%, 0, 0) scaleY(1); }
  to   { transform: translate3d(5%, -2%, 0) scaleY(1.14); }
}

.shade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}
.shade-top {
  top: 0;
  height: 38%;
  background: linear-gradient(180deg,
      rgba(15, 11, 8, .68) 0%,
      rgba(15, 11, 8, .34) 36%,
      rgba(15, 11, 8, 0) 100%);
}
.shade-bottom {
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg,
      rgba(13, 10, 7, .88) 0%,
      rgba(13, 10, 7, .46) 32%,
      rgba(13, 10, 7, .14) 70%,
      rgba(13, 10, 7, 0) 100%);
}

.petal-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -8%;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * .64);
  border-radius: 72% 22% 66% 28%;
  background: linear-gradient(135deg, rgba(255, 226, 228, .95), rgba(240, 160, 176, .82));
  opacity: 0;
  filter: blur(.2px);
  box-shadow: 0 0 6px rgba(255, 190, 200, .25);
  animation: petalFall var(--d) linear infinite;
  animation-delay: var(--dl);
  will-change: transform, opacity;
}

@keyframes petalFall {
  0%   { opacity: 0; transform: translate3d(0, -4vh, 0) rotate(0deg); }
  9%   { opacity: .9; }
  70%  { opacity: .7; }
  100% { opacity: 0; transform: translate3d(var(--dx), 110vh, 0) rotate(620deg); }
}

.home-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 15, 10, .58), rgba(20, 15, 10, .26));
  border: 1px solid rgba(255, 232, 198, .16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 236, 208, .30), transparent 58%),
    linear-gradient(150deg, #4a3a2b, #211a13 72%);
  border: 1.5px solid rgba(240, 189, 109, .75);
  box-shadow: 0 0 0 3px rgba(20, 15, 10, .34), inset 0 0 14px rgba(0, 0, 0, .38);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.player-copy b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #f8edda;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-copy span {
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(247, 235, 213, .58);
}

.sound-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f3e4c9;
  background: linear-gradient(180deg, rgba(22, 17, 12, .55), rgba(22, 17, 12, .26));
  border: 1px solid rgba(255, 232, 198, .18);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  transition: transform .14s ease, background .2s ease;
}
.sound-btn:active { transform: scale(.92); background: rgba(255, 138, 61, .22); }
.sound-btn .mp-icon { width: 20px; height: 20px; }
.sound-btn .ic-off { display: none; }
body.muted .sound-btn .ic-off { display: inline-block; }
body.muted .sound-btn .ic-on { display: none; }

/* ---------- 标题 ---------- */
.home-hero {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin-top: clamp(34px, 12.5vh, 118px);
  padding: 14px 14px 18px 4px;
  border-radius: 20px;
  background: radial-gradient(125% 140% at 0% 52%,
      rgba(14, 10, 7, .58) 0%,
      rgba(14, 10, 7, .28) 46%,
      rgba(14, 10, 7, 0) 74%);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .46em;
  color: rgba(255, 231, 197, .72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.game-title {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 14.6vw, 68px);
  line-height: 1.02;
  letter-spacing: .03em;
  color: #fbf1dc;
  text-shadow:
    0 1px 0 rgba(56, 38, 22, .55),
    0 3px 0 rgba(28, 20, 13, .35),
    0 12px 30px rgba(0, 0, 0, .52),
    0 0 46px rgba(255, 196, 130, .16);
}

.title-stroke {
  display: block;
  width: min(72%, 250px);
  height: 15px;
  margin: 6px 0 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.tagline {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .30em;
  color: rgba(250, 235, 211, .72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.seal-vert {
  position: absolute;
  top: 4px;
  right: 2px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(150deg, #c24934, #942c20);
  color: #fbe9d2;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 217, 178, .55);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, .38),
    inset 0 0 0 3px rgba(255, 219, 184, .16);
  transform: rotate(4deg);
  opacity: .95;
}

/* ---------- 底部 ---------- */
.home-foot {
  position: relative;
  z-index: 5;
  margin-top: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.best-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(21, 16, 11, .42);
  border: 1px solid rgba(255, 230, 194, .16);
  color: rgba(247, 234, 212, .66);
  font-size: 10.5px;
  letter-spacing: .12em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.best-chip .mp-icon { width: 14px; height: 14px; color: var(--gold); opacity: .9; }
.best-chip b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #ffd79a;
  letter-spacing: .02em;
}
.best-chip em {
  font-style: normal;
  font-size: 10px;
  color: rgba(247, 234, 212, .52);
}

.start-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px 990px 999px 984px / 990px 999px 984px 999px;
  overflow: hidden;
  text-align: left;
  color: #fdf3e2;
  background:
    radial-gradient(130% 200% at 96% -20%, rgba(255, 138, 61, .55) 0%, rgba(255, 138, 61, .10) 42%, transparent 62%),
    radial-gradient(100% 160% at 6% 120%, rgba(255, 196, 128, .20), transparent 56%),
    linear-gradient(180deg, #33271b 0%, #1c1610 64%, #14100c 100%);
  border: 1px solid rgba(255, 190, 122, .42);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .58),
    0 2px 0 rgba(255, 230, 196, .10) inset,
    0 -10px 24px rgba(0, 0, 0, .35) inset,
    0 0 0 5px rgba(255, 138, 61, .045);
  transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.start-btn:active {
  transform: translateY(2px) scale(.976);
  filter: brightness(.94);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .55),
    0 2px 0 rgba(255, 230, 196, .08) inset;
}

.btn-brush {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(38% 130% at 8% 0%, rgba(255, 234, 201, .18), transparent 62%),
    radial-gradient(30% 90% at 78% 120%, rgba(255, 138, 61, .38), transparent 68%),
    repeating-linear-gradient(102deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 7px);
}
.start-btn::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 195, .30), transparent);
  pointer-events: none;
}

.btn-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.btn-copy b {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .13em;
  color: #ffe7c4;
  text-shadow: 0 2px 10px rgba(255, 138, 61, .45), 0 1px 0 rgba(0, 0, 0, .45);
}
.btn-copy i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(250, 233, 208, .55);
}

.btn-play {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2a1a0d;
  background: linear-gradient(160deg, #ffc07a, var(--accent) 58%, #e26c1c);
  box-shadow:
    0 6px 18px rgba(255, 138, 61, .38),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-play .mp-icon { width: 24px; height: 24px; margin-left: 2px; }

/* ============================================================
   游戏页
   ============================================================ */
.game {
  background: #ded4c0;
  animation: gameIn .52s cubic-bezier(.22, .7, .2, 1) both;
  touch-action: none;
}
@keyframes gameIn {
  from { clip-path: circle(0% at 50% 96%); }
  to   { clip-path: circle(150% at 50% 96%); }
}

#cv {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.game-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 88% at 50% 40%, transparent 54%, rgba(24, 18, 12, .24) 100%),
    linear-gradient(180deg, rgba(22, 16, 11, .26) 0%, transparent 16%, transparent 76%, rgba(20, 14, 9, .32) 100%);
}

.run-hud {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hud-card {
  pointer-events: none;
  padding: 8px 13px 9px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(23, 17, 12, .58), rgba(23, 17, 12, .22));
  border: 1px solid rgba(255, 238, 212, .18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .20);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hud-label {
  display: block;
  font-size: 9px;
  letter-spacing: .32em;
  color: rgba(249, 236, 215, .60);
  margin-bottom: 1px;
}

.dist-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}
.dist-num b {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff3df;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  font-variant-numeric: tabular-nums;
}
.dist-num i {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 231, 197, .66);
  letter-spacing: .08em;
}
.dist-best {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .08em;
  color: rgba(249, 236, 215, .48);
}
.dist-best b { color: rgba(255, 205, 145, .82); font-weight: 600; }

.hud-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(23, 17, 12, .58), rgba(23, 17, 12, .22));
  border: 1px solid rgba(255, 238, 212, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.coin-chip b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffd493;
  font-variant-numeric: tabular-nums;
}
.coin-glyph {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffe6b1, #efb85c 52%, #b57a27 100%);
  border: 1px solid rgba(107, 65, 16, .8);
  box-shadow: 0 0 10px rgba(240, 184, 92, .35);
}
.coin-glyph i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  background: #6d4a1a;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 226, 170, .45);
}

.round-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f7ead6;
  background: linear-gradient(180deg, rgba(23, 17, 12, .58), rgba(23, 17, 12, .26));
  border: 1px solid rgba(255, 238, 212, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .14s ease, background .2s ease;
}
.round-btn:active { transform: scale(.9); background: rgba(255, 138, 61, .26); }
.round-btn .mp-icon { width: 20px; height: 20px; }

.tutorial {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 26px);
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 13, 9, .46);
  border: 1px solid rgba(255, 235, 205, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(252, 240, 220, .82);
  font-size: 11px;
  letter-spacing: .16em;
  animation: tutPulse 2.4s ease-in-out infinite;
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.tutorial .mp-icon { width: 16px; height: 16px; color: var(--accent); }
.tutorial .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 213, 160, .55);
}
.tutorial.fade {
  opacity: 0;
  transform: translate(-50%, 10px);
}
@keyframes tutPulse {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}

/* ============================================================
   浮层 & 纸卡
   ============================================================ */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px calc(26px + var(--safe-bottom));
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(20, 15, 10, .30), rgba(15, 11, 8, .68) 100%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: overlayIn .28s ease both;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ink-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 38px 24px 22px;
  text-align: center;
  color: #2a2016;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, #fffaf0 0%, #f4ead6 46%, #ead9bc 100%);
  border: 1px solid rgba(124, 94, 56, .38);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, .58),
    inset 0 0 0 1px rgba(255, 255, 255, .55);
  animation: cardIn .4s cubic-bezier(.2, .8, .2, 1.1) both;
}
.ink-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 17px;
  border: 1px solid rgba(134, 102, 62, .26);
  pointer-events: none;
}
.ink-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-seal {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  color: #fbe8d1;
  background: linear-gradient(150deg, #c64b34, #922b1f);
  border: 1.5px solid rgba(255, 222, 187, .55);
  box-shadow: 0 8px 20px rgba(88, 33, 22, .35), inset 0 0 0 3px rgba(255, 220, 180, .15);
}
.seal-pause { background: linear-gradient(150deg, #66503a, #3b2c1e); }
.seal-fail { background: linear-gradient(150deg, #c64b34, #7f241a); }

.ink-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #2b2015;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.card-sub {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .08em;
  color: #7a6549;
  line-height: 1.7;
}
.card-sub b {
  font-family: var(--serif);
  font-size: 19px;
  color: #a9481f;
  padding: 0 3px;
}

.result-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 13px 8px;
  border-radius: 14px;
  background: rgba(121, 92, 56, .09);
  border: 1px solid rgba(131, 101, 63, .16);
}
.result-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 78px;
}
.result-item > span {
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #907a5b;
}
.result-item b {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  color: #3b2b1a;
  font-variant-numeric: tabular-nums;
}
.result-item b em {
  font-style: normal;
  font-size: 11px;
  color: #8e7452;
  font-family: var(--sans);
}
.result-item b span { font-size: inherit; }
.result-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(120, 92, 58, .32), transparent);
}

.btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: transform .13s ease, filter .18s ease;
}
.btn:active { transform: scale(.975); }
.btn.primary {
  color: #ffe9c9;
  background: linear-gradient(180deg, #3a2a1b, #1e1610);
  border: 1px solid rgba(255, 173, 99, .35);
  box-shadow: 0 10px 24px rgba(54, 35, 18, .30), inset 0 1px 0 rgba(255, 230, 196, .14);
}
.btn.primary .mp-icon { width: 17px; height: 17px; }
.btn.ghost {
  margin-top: 8px;
  height: 42px;
  color: #7c6649;
  border: 1px solid rgba(124, 98, 62, .28);
  background: rgba(255, 251, 242, .35);
  font-weight: 500;
  font-size: 12.5px;
}

/* ============================================================
   矮屏适配
   ============================================================ */
@media (max-height: 680px) {
  .home { padding-top: calc(var(--safe-top) + 12px); padding-bottom: calc(var(--safe-bottom) + 14px); }
  .home-hero { margin-top: clamp(18px, 7vh, 48px); }
  .game-title { font-size: clamp(40px, 12vw, 54px); }
  .title-stroke { margin: 3px 0 6px; }
  .start-btn { min-height: 64px; }
  .btn-copy b { font-size: 24px; }
  .best-chip { margin-bottom: 8px; }
  .seal-vert { width: 32px; height: 32px; font-size: 18px; }
  .ink-card { padding: 32px 20px 18px; }
  .ink-card h2 { font-size: 26px; }
  .result-row { margin-bottom: 14px; padding: 10px 6px; }
  .btn { height: 46px; }
  .btn.ghost { height: 38px; margin-top: 6px; }
}

@media (max-height: 560px) and (min-width: 560px) {
  .stage { height: 96dvh; }
  .home-hero { margin-top: 20px; }
  .game-title { font-size: 42px; }
  .tagline { display: none; }
}
