/* ===== 静心实验场：解药油门 / 急刹小游戏 ===== */

:root {
  --lab-gas: #4ade80;
  --lab-gas-hot: #22c55e;
  --lab-brake: #ff6b4a;
  --lab-brake-deep: #b91c1c;
  --lab-ink: #f8f1de;
  --lab-teal: #5eead4;
}

/* ---------- 静心页双门入口 ---------- */
/* 斜线约 -16deg：顶偏右、底偏左，色块与分隔线同缝 */
.lab-gate {
  --gate-cut-top: 57%;
  --gate-cut-bot: 43%;
  position: relative;
  height: 176px;
  margin: 10px 0 18px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.lab-gate-slash {
  position: absolute;
  top: -14%;
  bottom: -14%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%) skewX(-16deg);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.58) 18%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.58) 82%,
    transparent
  );
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
  z-index: 4;
  pointer-events: none;
}

.lab-gate-panel {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px 16px;
  text-align: left;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
}

.lab-gate-panel.gas {
  z-index: 2;
  padding-right: 48%;
  background:
    radial-gradient(circle at 16% 82%, rgba(74, 222, 128, 0.42), transparent 46%),
    linear-gradient(135deg, #0f2a1c 0%, #0a1812 55%, #102418 100%);
  clip-path: polygon(
    0 0,
    var(--gate-cut-top) 0,
    var(--gate-cut-bot) 100%,
    0 100%
  );
}

.lab-gate-panel.brake {
  z-index: 1;
  text-align: right;
  padding-left: 48%;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 107, 74, 0.36), transparent 50%),
    linear-gradient(220deg, #2a1018 0%, #140810 60%, #1c0c14 100%);
  clip-path: polygon(
    var(--gate-cut-top) 0,
    100% 0,
    100% 100%,
    var(--gate-cut-bot) 100%
  );
}

.lab-gate-panel .stamp {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  padding: 3px 8px;
  border: 1px solid rgba(74, 222, 128, 0.7);
  color: var(--lab-gas);
  transform: rotate(-6deg);
  margin-bottom: 10px;
}

.lab-gate-panel .stamp.cool {
  border-color: rgba(255, 107, 74, 0.7);
  color: var(--lab-brake);
  transform: rotate(6deg);
}

.lab-gate-panel .giant {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #fff 10%, var(--lab-gas) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  white-space: nowrap;
}

.lab-gate-panel.brake .giant {
  background: linear-gradient(180deg, #fff 10%, var(--lab-brake) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lab-gate-panel .sub {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
  max-width: 130px;
}

.lab-gate-panel.brake .sub {
  margin-left: auto;
}

.lab-gate-panel .pedal-hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 2px;
}

.lab-gate-panel:active {
  filter: brightness(1.08);
}

.lab-nav .nav-title {
  letter-spacing: 2px;
}

/* ---------- 解药油门页 ---------- */
.remedy-gas-page {
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

.rg-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  padding: 6px 18px 0;
}

.rg-side-type {
  position: absolute;
  right: -6px;
  top: 72px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 78px;
  font-weight: 700;
  letter-spacing: 14px;
  color: rgba(255, 179, 71, 0.07);
  pointer-events: none;
  z-index: 0;
}

.rg-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: 96px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 179, 71, 0.2);
  box-shadow: inset 0 0 50px rgba(255, 107, 74, 0.1);
  animation: rotateSlow 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.rg-hero {
  position: relative;
  z-index: 1;
  padding: 4px 0 14px;
}

.rg-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--lab-gas);
  margin-bottom: 8px;
}

.rg-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 2px;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff 18%, #ffd9a0 58%, #ff6b4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rg-lead {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
  max-width: 250px;
}

.rg-prompts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.rg-chip {
  align-self: flex-start;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 179, 71, 0.22);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.rg-chip:nth-child(2) { margin-left: 10px; }
.rg-chip:nth-child(3) { margin-left: 2px; }

.rg-chip.active {
  background: rgba(255, 107, 74, 0.2);
  border-color: rgba(255, 179, 71, 0.7);
  color: #fff8e8;
  box-shadow: 0 0 20px rgba(255, 107, 74, 0.22);
  transform: translateX(2px);
}

.rg-forge {
  position: relative;
  z-index: 1;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(18, 8, 28, 0.42);
  border: 1px solid rgba(255, 179, 71, 0.16);
  margin-bottom: 8px;
}

.rg-meter {
  margin-bottom: 12px;
}

.rg-meter-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 179, 71, 0.18);
}

.rg-meter-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffb347, #ff6b4a 70%, #fff);
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.55);
  transition: width 0.08s linear;
}

.rg-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.34);
  letter-spacing: 1px;
}

.rg-ink {
  min-height: 56px;
  padding: 10px 12px 10px 14px;
  margin-bottom: 10px;
  border-left: 3px solid rgba(255, 179, 71, 0.55);
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.1), transparent 75%);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--lab-ink);
  border-radius: 0 10px 10px 0;
}

.rg-ink-empty {
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--sans);
  font-size: 12px;
}

.rg-input {
  width: 100%;
  resize: none;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 179, 71, 0.32);
  background: rgba(10, 4, 18, 0.35);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.rg-input::placeholder { color: rgba(255, 255, 255, 0.28); }

.rg-drive {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 16px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(12, 4, 20, 0.55) 35%);
}

.rg-pedal {
  position: relative;
  display: block;
  width: 136px;
  height: 136px;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #ffd08a, #ff6b4a 55%, #8b1e1e);
  box-shadow:
    0 10px 0 #4a1010,
    0 16px 36px rgba(255, 107, 74, 0.42),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
  color: #2a0c08;
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.rg-pedal-ring {
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 1px dashed rgba(255, 179, 71, 0.4);
  animation: rotateSlow 12s linear infinite;
  pointer-events: none;
}

.rg-pedal-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
}

.rg-pedal-core strong {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 4px;
}

.rg-pedal-core small {
  font-size: 11px;
  opacity: 0.75;
}

.rg-pedal:active,
.rg-pedal.is-pressing {
  transform: translateY(8px) scale(0.96);
  box-shadow:
    0 3px 0 #4a1010,
    0 8px 22px rgba(255, 107, 74, 0.48),
    inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.rg-tip {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.rg-result {
  padding: 18px 18px 28px;
}

.rg-result.hidden,
.bg-result.hidden,
.rg-stage.hidden,
.bg-hud.hidden { display: none; }

.rg-result-card {
  position: relative;
  padding: 26px 20px 20px;
  border-radius: 6px 24px 6px 24px;
  background: linear-gradient(145deg, rgba(80, 30, 40, 0.72), rgba(20, 10, 30, 0.88));
  border: 1px solid rgba(255, 179, 71, 0.42);
  box-shadow: 10px 10px 0 rgba(255, 107, 74, 0.16);
  overflow: hidden;
  margin-bottom: 16px;
}

.rg-result-card::before {
  content: 'REMEDY';
  position: absolute;
  right: -4px;
  top: 16px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 179, 71, 0.32);
}

.rg-result-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--lab-gas);
  letter-spacing: 2px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 179, 71, 0.35);
  padding-bottom: 4px;
}

.rg-result-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 12px;
  color: #fff8e8;
  line-height: 1.3;
}

.rg-result-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 16px;
}

.rg-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.rg-result-meta em {
  font-style: normal;
  color: var(--lab-gas);
  font-size: 20px;
  font-weight: 700;
  margin-left: 4px;
}

.rg-result-actions,
.bg-result-actions {
  display: flex;
  gap: 10px;
}

.rg-result-actions .btn-gold,
.rg-result-actions .btn-ghost,
.bg-result-actions .btn-gold,
.bg-result-actions .btn-ghost {
  flex: 1;
}

/* ---------- 油门与刹车 · 四阶段体验 ---------- */
.page.no-tab .page-scroll.pedal-lab-page {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(24px + var(--safe-bottom, 0px)) !important;
}

.pedal-lab-page {
  padding: 0;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

.pb-stage {
  display: none;
  flex-direction: column;
  padding: 8px 18px 20px;
  position: relative;
}

.pb-stage.is-on {
  display: flex;
}

.pb-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--lab-gas);
  margin-bottom: 10px;
}

.pb-kicker.hot {
  color: var(--lab-brake);
}

.pb-cta {
  width: 100%;
  margin-top: 20px;
  flex-shrink: 0;
}

/* 启动引擎跟在文案后，不要贴屏幕底 */
#pbIntro .pb-cta {
  margin-top: 22px;
  margin-bottom: 8px;
}

#pbTruth .pb-cta {
  margin-top: 8px;
}

/* —— 场景带入 —— */
.pb-scene {
  position: relative;
  margin: 8px 0 18px;
  padding: 10px 8px 12px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(74, 222, 128, 0.1), transparent 42%),
    radial-gradient(ellipse at 82% 70%, rgba(255, 107, 74, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(20, 28, 40, 0.9), rgba(12, 10, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pb-dash-glow {
  position: absolute;
  inset: auto 20% -40% 20%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.18), transparent 70%);
  pointer-events: none;
}

.pb-car-img {
  width: 100%;
  height: auto;
  max-height: 156px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.pb-role-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.pb-role {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.pb-role.gas {
  color: var(--lab-gas);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.pb-role.brake {
  color: var(--lab-brake);
  border-color: rgba(255, 107, 74, 0.35);
  background: rgba(255, 107, 74, 0.08);
}

.pb-intro-copy {
  text-align: left;
  margin-bottom: 0;
}

.pb-intro-copy h1 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 12px;
}

.pb-lead {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

/* —— 真实模拟 —— */
#pbSim {
  flex: 1;
  width: 100%;
  padding-top: 12px;
  padding-bottom: 20px;
  overflow: visible;
  gap: 0;
  justify-content: center;
  box-sizing: border-box;
}

#pbIntro,
#pbTruth,
#pbConvert {
  flex: 1;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

#pbSim.is-shake {
  animation: pbShake 0.12s linear infinite;
}

@keyframes pbShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, 1px); }
  50% { transform: translate(1.5px, -1px); }
  75% { transform: translate(-1px, -0.5px); }
  100% { transform: translate(0, 0); }
}

.pb-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 40, 40, 0.45), rgba(80, 0, 0, 0.55));
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s;
}

.pb-flash.is-on {
  opacity: 1;
  animation: pbFlashPulse 0.45s ease-in-out infinite alternate;
}

@keyframes pbFlashPulse {
  from { opacity: 0.55; }
  to { opacity: 0.9; }
}

.pb-smoke {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.pb-smoke.is-on {
  opacity: 1;
}

.pb-smoke i {
  position: absolute;
  bottom: 28%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 30, 30, 0.75), transparent 70%);
  filter: blur(6px);
  animation: pbSmokeRise 2.2s ease-out infinite;
}

.pb-smoke i:nth-child(1) { left: 12%; animation-delay: 0s; }
.pb-smoke i:nth-child(2) { left: 28%; width: 72px; height: 72px; animation-delay: 0.3s; }
.pb-smoke i:nth-child(3) { left: 46%; animation-delay: 0.55s; }
.pb-smoke i:nth-child(4) { left: 58%; width: 64px; height: 64px; animation-delay: 0.15s; }
.pb-smoke i:nth-child(5) { left: 72%; animation-delay: 0.7s; }
.pb-smoke i:nth-child(6) { left: 84%; width: 48px; height: 48px; animation-delay: 0.4s; }

@keyframes pbSmokeRise {
  0% { transform: translateY(20px) scale(0.6); opacity: 0; }
  30% { opacity: 0.85; }
  100% { transform: translateY(-120px) scale(1.4); opacity: 0; }
}

.pb-alarm {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  z-index: 6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(185, 28, 28, 0.92);
  border: 1px solid rgba(255, 180, 160, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.pb-alarm.is-on {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: pbAlarmBlink 0.5s steps(2) infinite;
}

@keyframes pbAlarmBlink {
  50% { filter: brightness(1.35); }
}

.pb-hud {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.pb-tach {
  position: relative;
  width: 100%;
  max-width: 240px;
}

.pb-tach-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.pb-tach-svg .arc-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 14;
  stroke-linecap: round;
}

.pb-tach-svg .arc-gas {
  fill: none;
  stroke: rgba(74, 222, 128, 0.55);
  stroke-width: 14;
  stroke-linecap: round;
}

.pb-tach-svg .arc-danger {
  fill: none;
  stroke: rgba(255, 107, 74, 0.7);
  stroke-width: 14;
  stroke-linecap: round;
}

.pb-tach-svg .needle {
  stroke: #fff8e0;
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 120px 120px;
  transition: transform 0.05s linear;
  filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.75));
}

.pb-tach-svg .hub {
  fill: #ff6b4a;
  stroke: #fff;
  stroke-width: 2;
}

.pb-tach-read {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  text-align: center;
}

.pb-tach-read strong {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: #fff;
}

.pb-tach-read span {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.38);
}

.pb-speedo {
  margin-top: 4px;
  text-align: center;
}

.pb-speedo em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.pb-speedo span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  margin-top: 2px;
}

.pb-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  max-width: 280px;
}

.pb-hint strong {
  color: var(--lab-gas);
  font-weight: 600;
}

.pb-floor {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  margin-bottom: 12px;
  padding: 0;
  flex-shrink: 0;
}

.pb-pedals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}

.pb-pedal {
  appearance: none;
  border: 0;
  border-radius: 22px 22px 36px 36px;
  padding: 14px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 108px;
  color: #04120a;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.pb-pedal.gas {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #86efac, #16a34a 55%, #14532d);
  box-shadow: 0 7px 0 #052e16, 0 12px 22px rgba(34, 197, 94, 0.35);
}

.pb-pedal.brake {
  color: #2a0606;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, #fb7185, #dc2626 55%, #7f1d1d);
  box-shadow: 0 7px 0 #450a0a, 0 12px 22px rgba(220, 38, 38, 0.32);
}

.pb-pedal-tag {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.7;
}

.pb-pedal-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.1;
}

.pb-pedal-hint {
  font-size: 11px;
  opacity: 0.72;
}

.pb-pedal.is-pressing {
  transform: translateY(6px);
}

.pb-pedal.gas.is-pressing {
  box-shadow: 0 2px 0 #052e16, 0 6px 14px rgba(34, 197, 94, 0.4);
}

.pb-pedal.brake.is-pressing {
  box-shadow: 0 2px 0 #450a0a, 0 6px 14px rgba(220, 38, 38, 0.4);
}

/* —— 真相 / 转化 —— */
.pb-truth-card,
.pb-convert-card {
  margin: auto 0;
  padding: 28px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 107, 74, 0.18), transparent 45%),
    linear-gradient(165deg, rgba(36, 14, 20, 0.95), rgba(12, 10, 18, 0.98));
  border: 1px solid rgba(255, 107, 74, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pb-truth-card h2,
.pb-convert-card h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 14px;
}

.pb-truth-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 24px;
}

.pb-convert-card {
  border-color: rgba(74, 222, 128, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(74, 222, 128, 0.14), transparent 45%),
    linear-gradient(165deg, rgba(14, 28, 22, 0.95), rgba(12, 10, 18, 0.98));
}

.pb-convert-card .pb-kicker {
  color: var(--lab-gas);
}

.pb-convert-card .pb-lead {
  margin-bottom: 22px;
}

.pb-convert-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-convert-actions .btn-gold,
.pb-convert-actions .btn-ghost {
  width: 100%;
}

.pb-retry {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
  letter-spacing: 1px;
}

/* —— 游戏感增强层 —— */
.pb-scene.pb-arena {
  border: 1px solid rgba(255, 200, 120, 0.22);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 120, 40, 0.16), transparent 55%),
    radial-gradient(ellipse at 18% 70%, rgba(34, 197, 94, 0.12), transparent 40%),
    radial-gradient(ellipse at 82% 70%, rgba(239, 68, 68, 0.14), transparent 40%),
    linear-gradient(180deg, #0c1018 0%, #151018 55%, #1a0e0c 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pb-road-lines {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 4px;
  height: 46%;
  transform: translateX(-50%);
  overflow: hidden;
  opacity: 0.5;
  z-index: 0;
}
.pb-road-lines i {
  position: absolute;
  left: 0;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #f5d98a;
  box-shadow: 0 0 8px rgba(245, 217, 138, 0.8);
  animation: pbRoadDash 1.1s linear infinite;
}
.pb-road-lines i:nth-child(1) { top: 0; }
.pb-road-lines i:nth-child(2) { top: 33%; animation-delay: 0.35s; }
.pb-road-lines i:nth-child(3) { top: 66%; animation-delay: 0.7s; }
@keyframes pbRoadDash {
  0% { transform: translateY(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(280%); opacity: 0; }
}

.pb-arena .pb-car-img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(245, 180, 80, 0.25));
  animation: pbCarIdle 3.2s ease-in-out infinite;
}
@keyframes pbCarIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pb-kicker.mission {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  color: #f5d98a;
  border: 1px solid rgba(245, 217, 138, 0.35);
  background: rgba(245, 217, 138, 0.08);
  letter-spacing: 2px;
}

.pb-start-engine {
  position: relative;
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.4) !important;
}

.pb-hud {
  padding: 12px 10px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 32, 42, 0.92), rgba(12, 14, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(245, 217, 138, 0.06);
}

.pb-hint {
  margin-top: 10px !important;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 217, 138, 0.12);
}

.pb-pedal {
  min-height: 118px;
  border-radius: 16px 16px 28px 28px !important;
}
.pb-pedal.gas {
  box-shadow: 0 8px 0 #052e16, 0 14px 24px rgba(34, 197, 94, 0.35) !important;
}
.pb-pedal.brake {
  box-shadow: 0 8px 0 #450a0a, 0 14px 24px rgba(239, 68, 68, 0.32) !important;
}

.pb-truth-card,
.pb-convert-card {
  border-radius: 16px;
  animation: pbCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pbCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pb-truth-card {
  border: 1px solid rgba(255, 120, 80, 0.4) !important;
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.15), 0 16px 36px rgba(0, 0, 0, 0.4);
}
.pb-convert-card {
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.12), 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* ===== 内耗模拟器 · 全新建公路对抗（web） ===== */
.ih-web {
  position: relative;
  min-height: 100%;
  padding: 0 18px 24px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 50% -10%, #1a1030 0%, transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0c0812 45%, #120a08 100%);
  color: #f4f0e6;
}
.ih-web .lab-nav { background: transparent; }
.ih-stage { display: none; flex-direction: column; min-height: calc(100vh - 120px); }
.ih-stage.is-on { display: flex; }

.ih-highway {
  position: relative; height: 160px; margin: 6px 0 14px; overflow: hidden;
  border-radius: 12px; border: 1px solid rgba(255,200,120,.15);
  background: linear-gradient(180deg, #0a1528 0%, #1a1210 38%, #0d0d0d 38%, #151515 100%);
}
.ih-horizon {
  position: absolute; left: 0; right: 0; top: 36%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,180,80,.55), transparent);
}
.ih-road {
  position: absolute; left: 50%; top: 38%; width: 6px; height: 62%; margin-left: -3px;
}
.ih-road i {
  position: absolute; left: 0; width: 6px; height: 16px; border-radius: 2px; background: #f0c860;
  animation: ihDash 0.9s linear infinite;
}
.ih-road i:nth-child(1){top:0} .ih-road i:nth-child(2){top:25%;animation-delay:.22s}
.ih-road i:nth-child(3){top:50%;animation-delay:.44s} .ih-road i:nth-child(4){top:75%;animation-delay:.66s}
@keyframes ihDash { from{transform:translateY(-20px);opacity:0} 20%{opacity:1} to{transform:translateY(120px);opacity:0} }

.ih-split { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.ih-head { flex:1; text-align:center; padding:10px 8px; border-radius:12px; }
.ih-head.gas { border:1px solid rgba(74,222,128,.45); background:rgba(20,60,35,.55); }
.ih-head.brake { border:1px solid rgba(239,68,68,.45); background:rgba(70,20,28,.55); }
.ih-head b { display:block; font-size:18px; }
.ih-head.gas b { color:#4ade80; } .ih-head.brake b { color:#fb7185; }
.ih-head span { display:block; font-size:14px; font-weight:700; margin-top:2px; }
.ih-head small { display:block; font-size:11px; opacity:.55; margin-top:2px; }
.ih-vs {
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; color:#f5d98a; border:1px solid rgba(245,217,138,.4);
}

.ih-crt { font-family:Menlo,Consolas,monospace; font-size:11px; letter-spacing:2px; color:#f5d98a; margin:0 0 8px; }
.ih-mega { font-family:var(--serif); font-size:26px; line-height:1.2; margin:0 0 10px; }
.ih-blurb { font-size:13px; line-height:1.65; color:rgba(255,255,255,.55); margin:0 0 18px; }
.ih-arcade {
  width:100%; border:0; border-radius:16px; padding:14px 12px; cursor:pointer;
  background:linear-gradient(180deg,#3a2a12,#1a1208); border:1.5px solid rgba(245,217,138,.55);
  box-shadow:0 0 24px rgba(212,160,23,.25); color:#f5d98a;
}
.ih-arcade strong { display:block; font-size:18px; letter-spacing:4px; }
.ih-arcade span { display:block; margin-top:4px; font-size:12px; opacity:.7; letter-spacing:3px; color:#ffe9b0; }

#pbSim.is-shake { animation: ihShake .09s linear infinite; }
@keyframes ihShake { 0%{transform:translate(0,0)} 25%{transform:translate(-2px,1px)} 50%{transform:translate(2px,-1px)} 100%{transform:translate(0,0)} }
.ih-redout {
  position:fixed; inset:0; pointer-events:none; opacity:0; z-index:30;
  background:radial-gradient(ellipse at 50% 40%, rgba(255,30,30,.45), rgba(80,0,0,.75));
  transition:opacity .15s;
}
.ih-redout.on { opacity:1; }

.ih-status { display:flex; gap:6px; margin-bottom:12px; }
.ih-status span {
  flex:1; text-align:center; padding:6px 4px; border-radius:8px; font-size:10px;
  font-family:Menlo,Consolas,monospace; color:rgba(255,255,255,.4);
  background:rgba(0,0,0,.4); border:1px solid rgba(255,255,255,.08);
}
.ih-status span.hot { color:#4ade80; border-color:rgba(74,222,128,.5); }
.ih-status span.blink { color:#fff; background:#b91c1c; border-color:#ef4444; }

.ih-meters { display:flex; align-items:flex-end; gap:10px; margin-bottom:12px; }
.ih-meter { flex:1; text-align:center; }
.ih-meter .track {
  position:relative; width:28px; height:120px; margin:0 auto 8px; border-radius:8px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); overflow:hidden;
}
.ih-meter .track i {
  position:absolute; left:0; right:0; bottom:0; background:linear-gradient(180deg,#86efac,#16a34a);
  box-shadow:0 0 12px rgba(34,197,94,.5);
}
.ih-meter.brake .track i { background:linear-gradient(180deg,#fda4af,#dc2626); box-shadow:0 0 12px rgba(220,38,38,.5); }
.ih-meter strong { display:block; font-size:18px; color:#86efac; }
.ih-meter.brake strong { color:#fb7185; }
.ih-meter small { display:block; font-size:10px; color:rgba(255,255,255,.4); }
.ih-zero { flex:1.1; text-align:center; padding-bottom:10px; }
.ih-zero em { display:block; font-style:normal; font-size:36px; font-weight:800; }
.ih-zero span { display:block; font-size:11px; color:rgba(255,200,120,.7); }

.ih-hint {
  margin:0 0 12px; padding:10px; border-radius:10px; text-align:center; font-size:13px;
  color:rgba(255,236,200,.82); background:rgba(0,0,0,.45); border:1px solid rgba(245,217,138,.18);
}
.ih-feet { display:flex; gap:12px; margin-top:auto; }
.ih-foot {
  flex:1; height:110px; border:0; border-radius:50% 50% 40% 40% / 28% 28% 55% 55%;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  padding-bottom:16px; cursor:pointer; color:rgba(0,0,0,.75);
}
.ih-foot.gas { background:radial-gradient(ellipse at 50% 30%, #bbf7d0, #15803d 55%, #052e16); box-shadow:0 8px 0 #022c14, 0 14px 22px rgba(34,197,94,.35); }
.ih-foot.brake { background:radial-gradient(ellipse at 50% 30%, #fecdd3, #b91c1c 55%, #450a0a); box-shadow:0 8px 0 #2a0606, 0 14px 22px rgba(220,38,38,.35); }
.ih-foot.is-pressing { transform:translateY(8px) scale(.97); filter:brightness(.9); }
.ih-foot b { font-size:22px; letter-spacing:4px; }
.ih-foot span { font-size:11px; opacity:.65; }

.ih-stage.blast { justify-content:center; }
.ih-tag { font-family:Menlo,Consolas,monospace; font-size:11px; letter-spacing:3px; color:#ff6b4a; margin:0 0 12px; padding:4px 8px; border-left:3px solid #ef4444; background:rgba(239,68,68,.12); align-self:flex-start; }
.ih-tag.cool { color:#34d399; border-color:#34d399; background:rgba(52,211,153,.1); }
.ih-stage h2 { font-family:var(--serif); font-size:24px; line-height:1.25; margin:0 0 12px; }
.ih-stage h2 em { font-style:normal; background:linear-gradient(90deg,#fff,#f5d98a,#ff6b4a); -webkit-background-clip:text; color:transparent; }
.ih-stage p { font-size:14px; line-height:1.7; color:rgba(255,255,255,.6); margin:0 0 10px; }
.ih-stage p.punch { color:#ffe8c8; font-weight:600; border-left:3px solid #f5d98a; padding-left:10px; margin-bottom:20px; }
.ih-cta {
  width:100%; border:0; border-radius:999px; padding:14px; font-size:15px; font-weight:700; cursor:pointer;
  color:#1a1005; background:linear-gradient(135deg,#fff1c4,#e8b84a); box-shadow:0 8px 20px rgba(232,184,74,.35);
}
.ih-tile {
  width:100%; text-align:left; border-radius:14px; padding:14px; margin-bottom:10px; cursor:pointer;
  border:1px solid rgba(245,217,138,.45); background:linear-gradient(120deg,rgba(245,217,138,.18),rgba(40,28,10,.9)); color:#f5d98a;
}
.ih-tile.ghost { border-color:rgba(255,255,255,.16); background:rgba(255,255,255,.04); color:#fff; }
.ih-tile small { display:block; font-size:10px; opacity:.45; margin-bottom:4px; }
.ih-tile b { display:block; font-size:15px; }
.ih-retry { appearance:none; border:0; background:transparent; color:rgba(255,255,255,.4); font-size:13px; padding:12px; cursor:pointer; letter-spacing:1px; }
