/* 国风水墨跑酷6 —— 竖屏跑酷 */
:root {
  --ink: #1b1915;
  --ink-soft: #3a362f;
  --paper: #f4efe3;
  --paper-dim: #d9d2c2;
  --orange: #ff8a3d;
  --orange-deep: #e06a1f;
  --red: #c9503c;
  --gold: #f0bf58;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --serif: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #12100c;
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

[hidden] { display: none !important; }

.game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #dcd8cb;
  touch-action: none;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(0, 0, 0, 0) 45%, rgba(18, 15, 10, 0.32) 100%),
    linear-gradient(180deg, rgba(15, 13, 9, 0.34) 0%, rgba(15, 13, 9, 0) 18%, rgba(15, 13, 9, 0) 76%, rgba(15, 13, 9, 0.3) 100%);
}

/* ============ 局内 HUD ============ */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: calc(var(--safe-top) + 12px) 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.game.is-playing .hud,
.game.is-paused .hud,
.game.is-over .hud {
  opacity: 1;
  transform: translateY(0);
}

.hud-left { display: flex; align-items: center; gap: 9px; }
.hud-right { display: flex; align-items: center; gap: 8px; pointer-events: auto; }

.avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #cfc7b4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.avatar svg { display: block; width: 100%; height: 100%; }
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(250, 244, 229, 0.85);
  box-shadow: inset 0 0 0 2px rgba(30, 26, 20, 0.25), 0 0 0 1px rgba(30, 26, 20, 0.35);
}

.hp-wrap { display: flex; align-items: center; gap: 5px; }
.hp {
  position: relative;
  width: 92px;
  height: 12px;
  border-radius: 8px;
  background: rgba(22, 19, 14, 0.62);
  border: 1px solid rgba(248, 241, 226, 0.5);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hp-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, #ff6b4a 0%, #e3442f 55%, #a92a1d 100%);
  transition: width 0.3s cubic-bezier(0.3, 0.8, 0.4, 1);
}
.hp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 0 31%, rgba(24, 20, 15, 0.5) 31% 33%, transparent 33% 64%, rgba(24, 20, 15, 0.5) 64% 66%, transparent 66%);
}
.hp-shine {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 235, 205, 0.28);
  pointer-events: none;
}
.hp-word {
  font-family: var(--serif);
  font-size: 11px;
  color: rgba(250, 244, 229, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 13px 0 9px;
  border-radius: 999px;
  background: rgba(24, 21, 15, 0.58);
  border: 1px solid rgba(248, 241, 226, 0.28);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffedc6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  min-width: 66px;
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
}
.coin-dot {
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffe9a8 0%, #f5c454 42%, #c8891f 78%, #8f5f12 100%);
  box-shadow: inset 0 0 0 1.5px rgba(120, 74, 12, 0.8), 0 2px 4px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.coin-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(70, 43, 10, 0.9);
  transform: translate(-50%, -50%);
}

.round-btn {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(24, 21, 15, 0.58);
  border: 1px solid rgba(248, 241, 226, 0.32);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  color: #f6f0e2;
  transition: transform 0.12s ease, background 0.2s ease;
}
.round-btn .mp-icon { width: 19px; height: 19px; }
.round-btn:active { transform: scale(0.9); background: rgba(255, 138, 61, 0.8); color: #2a1608; }

.dist-tag {
  position: absolute;
  top: calc(var(--safe-top) + 56px);
  right: 18px;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(252, 246, 232, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.dist-tag em { font-style: normal; font-size: 10px; opacity: 0.75; }

/* ============ 操作按钮 ============ */
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px calc(var(--safe-bottom) + 20px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease 0.06s, transform 0.35s ease 0.06s;
}
.game.is-playing .controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}
.game.is-paused .controls,
.game.is-over .controls {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.controls button { pointer-events: auto; }

.lane-pad { display: flex; gap: 12px; align-items: flex-end; }

.ink-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f7f1e3;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.16), rgba(30, 27, 21, 0.55) 55%, rgba(20, 18, 14, 0.72) 100%);
  border: 1px solid rgba(248, 241, 226, 0.34);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), inset 0 1px 2px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
}
.ink-btn .mp-icon { width: 28px; height: 28px; }
.ink-btn:active { transform: scale(0.9); color: #2a1608; background: var(--orange); }

.jump-btn {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #2b1707;
  background:
    radial-gradient(90% 90% at 32% 24%, #ffd2a6 0%, #ffa963 26%, #ff8a3d 58%, #e3681d 100%);
  border: 2px solid rgba(255, 244, 225, 0.75);
  box-shadow:
    0 10px 26px rgba(224, 96, 25, 0.4),
    0 2px 0 rgba(138, 56, 10, 0.5),
    inset 0 2px 6px rgba(255, 240, 220, 0.55),
    inset 0 -6px 14px rgba(150, 58, 9, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.jump-btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(94, 38, 6, 0.28);
  pointer-events: none;
}
.jump-btn .mp-icon { width: 32px; height: 32px; margin-top: 2px; }
.jump-btn span {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: -3px;
  opacity: 0.86;
}
.jump-btn:active {
  transform: scale(0.92) translateY(2px);
  box-shadow: 0 4px 12px rgba(224, 96, 25, 0.35), inset 0 2px 8px rgba(120, 45, 5, 0.3);
}

.gesture-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 122px);
  z-index: 6;
  transform: translate(-50%, 8px);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.55);
  border: 1px solid rgba(248, 241, 226, 0.22);
  color: rgba(250, 244, 229, 0.9);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gesture-hint.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 首页 ============ */
.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.start {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #191712;
  overflow: hidden;
  transition: opacity 0.42s ease, transform 0.5s ease;
}
.start.leaving { opacity: 0; transform: scale(1.035); pointer-events: none; }

.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  display: block;
  transform: scale(1.04);
  animation: heroDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.045) translate3d(0, 0, 0); }
  to { transform: scale(1.115) translate3d(0, -1.2%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 9, 0.62) 0%, rgba(14, 12, 9, 0.1) 12%, rgba(14, 12, 9, 0) 22%, rgba(14, 12, 9, 0) 78%, rgba(14, 12, 9, 0.1) 88%, rgba(14, 12, 9, 0.62) 100%),
    linear-gradient(180deg, rgba(14, 12, 9, 0.78) 0%, rgba(14, 12, 9, 0.28) 17%, rgba(14, 12, 9, 0.02) 36%, rgba(14, 12, 9, 0) 52%, rgba(14, 12, 9, 0.24) 66%, rgba(14, 12, 9, 0.86) 90%, #12100c 100%),
    radial-gradient(100% 62% at 50% 30%, rgba(0, 0, 0, 0) 40%, rgba(10, 9, 7, 0.34) 100%);
}
.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(4deg, rgba(60, 50, 40, 0.05) 0 1px, transparent 1px 5px);
}

.ink-flecks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ink-flecks i {
  position: absolute;
  width: 12px;
  height: 7px;
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  background: linear-gradient(135deg, #d9633f, #a83424);
  opacity: 0;
  filter: blur(0.2px);
  animation: leafFall 11s linear infinite;
}
.ink-flecks i:nth-child(1) { left: 12%; animation-delay: 0s; animation-duration: 13s; }
.ink-flecks i:nth-child(2) { left: 32%; animation-delay: 2.4s; animation-duration: 11s; transform: scale(0.7); }
.ink-flecks i:nth-child(3) { left: 61%; animation-delay: 5.1s; animation-duration: 14s; }
.ink-flecks i:nth-child(4) { left: 82%; animation-delay: 1.3s; animation-duration: 12s; transform: scale(0.6); }
.ink-flecks i:nth-child(5) { left: 47%; animation-delay: 7.6s; animation-duration: 15s; transform: scale(1.1); }
.ink-flecks i:nth-child(6) { left: 73%; animation-delay: 9.2s; animation-duration: 12.5s; transform: scale(0.8); }
@keyframes leafFall {
  0% { top: -4%; opacity: 0; transform: translateX(0) rotate(0deg); }
  8% { opacity: 0.85; }
  50% { transform: translateX(-26px) rotate(220deg); }
  88% { opacity: 0.7; }
  100% { top: 104%; opacity: 0; transform: translateX(16px) rotate(460deg); }
}

.start-top {
  position: relative;
  z-index: 2;
  padding: calc(var(--safe-top) + 23px) 26px 0;
}
.brand { position: relative; display: inline-block; }
.brand-seal {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(150deg, #d4543c, #a72f21);
  color: #f8e8d1;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  transform: rotate(-4deg);
  box-shadow: 0 3px 9px rgba(90, 18, 10, 0.45), inset 0 0 0 1px rgba(255, 220, 190, 0.3);
}
.brand h1 {
  margin: 0 0 0 38px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 11vw, 48px);
  line-height: 1.04;
  letter-spacing: 0.12em;
  color: #faf5e9;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.brand h1 b {
  display: inline-block;
  position: relative;
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: 0.16em;
  color: #ffffff;
}
.brand h1 b::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: 3px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.2), var(--orange) 18%, #ffb37a 70%, rgba(255, 138, 61, 0.1));
  transform: skewX(-18deg) rotate(-1deg);
  opacity: 0.9;
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.35);
}
.brand-sub {
  margin: 12px 0 0 40px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: rgba(246, 238, 222, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.start-bottom {
  position: relative;
  z-index: 3;
  padding: 18px 20px calc(var(--safe-bottom) + 22px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.best-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: rgba(246, 238, 222, 0.75);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}
.best-label { font-family: var(--serif); }
.best-line b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: #ffd9a8;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.best-unit { opacity: 0.6; font-size: 11px; }

.start-btn {
  position: relative;
  width: 100%;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, #ffb070 0%, #ff8a3d 48%, #ef6f21 100%);
  color: #2a1608;
  border: 1px solid rgba(255, 235, 215, 0.6);
  box-shadow:
    0 10px 30px rgba(230, 104, 28, 0.38),
    0 3px 0 rgba(140, 56, 8, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.5),
    inset 0 -6px 16px rgba(160, 65, 8, 0.22);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.1em;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.start-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 32%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(18deg);
  animation: btnSheen 3.6s ease-in-out infinite;
}
@keyframes btnSheen {
  0%, 58% { left: -40%; }
  88%, 100% { left: 130%; }
}
.start-btn .mp-icon { width: 21px; height: 21px; opacity: 0.72; }
.start-btn:active { transform: scale(0.975) translateY(2px); box-shadow: 0 4px 14px rgba(230, 104, 28, 0.3), inset 0 2px 8px rgba(120, 45, 5, 0.25); }

.start-tip {
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(246, 238, 222, 0.55);
}

/* ============ 暂停 / 结束 ============ */
.modal-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
  background: rgba(11, 10, 8, 0.58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
.modal-screen.open { opacity: 1; }

.panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: auto;
  padding: 26px 22px 20px;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 196, 140, 0.09), transparent 55%),
    linear-gradient(165deg, rgba(42, 39, 32, 0.97), rgba(20, 18, 15, 0.98));
  border: 1px solid rgba(255, 196, 140, 0.24);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 235, 210, 0.09);
  color: var(--paper);
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal-screen.open .panel { transform: translateY(0) scale(1); }
.panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 18px;
  border: 1px solid rgba(255, 226, 190, 0.07);
  pointer-events: none;
}
.panel-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: #d8a35c;
  opacity: 0.9;
}
.panel h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.12em;
  color: #fbf6ea;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 22px;
  border-top: 1px solid rgba(255, 240, 220, 0.1);
  border-bottom: 1px solid rgba(255, 240, 220, 0.1);
}
.panel-stats > div {
  position: relative;
  padding: 14px 4px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.panel-stats > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 240, 220, 0.12);
}
.panel-stats b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: #ffd9a8;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.panel-stats span { font-size: 10px; color: rgba(255, 217, 168, 0.6); letter-spacing: 0.1em; }
.panel-stats em {
  margin-top: 4px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(246, 238, 222, 0.5);
}

.result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: -4px 0 6px;
}
.result-score b {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: #ffe1b6;
  text-shadow: 0 4px 22px rgba(255, 160, 80, 0.25);
  font-variant-numeric: tabular-nums;
}
.result-score span { font-size: 13px; color: rgba(255, 217, 168, 0.65); letter-spacing: 0.12em; }
.result-new {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: #ff9d55;
  animation: newPulse 1.6s ease-in-out infinite;
}
@keyframes newPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.result-stats { margin-top: 14px; }

.panel-btn {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, opacity 0.2s ease;
}
.panel-btn.primary {
  background: linear-gradient(160deg, #ffb070, #ff8a3d 55%, #ee6d20);
  color: #2a1608;
  border: 1px solid rgba(255, 240, 220, 0.45);
  box-shadow: 0 7px 20px rgba(230, 104, 28, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}
.panel-btn.ghost {
  margin-top: 10px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 240, 220, 0.18);
  color: rgba(250, 244, 229, 0.88);
}
.panel-btn:active { transform: scale(0.975); }
.panel-text {
  display: block;
  margin: 14px auto 0;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(246, 238, 222, 0.48);
}
.panel-text:active { color: var(--orange); }

@media (max-height: 700px) {
  .brand h1 { font-size: 36px; }
  .start-top { padding-top: calc(var(--safe-top) + 14px); }
  .start-bottom { gap: 9px; padding-bottom: calc(var(--safe-bottom) + 16px); }
  .start-btn { height: 52px; font-size: 17px; }
  .jump-btn { width: 76px; height: 76px; }
  .ink-btn { width: 52px; height: 52px; }
  .gesture-hint { bottom: calc(var(--safe-bottom) + 108px); }
  .panel { padding: 22px 20px 16px; }
  .panel h2 { font-size: 27px; margin-bottom: 16px; }
  .result-score b { font-size: 54px; }
}

@media (min-height: 900px) {
  .start-top { padding-top: calc(var(--safe-top) + 40px); }
  .start-bottom { padding-bottom: calc(var(--safe-bottom) + 34px); }
}
