:root {
  --bg: #0a0e1a;
  --bg-soft: #111827;
  --panel: rgba(20, 27, 45, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf8;
  --muted: #8b97b8;
  --gold: #ffc93c;
  --pink: #ff4d7d;
  --cyan: #35e6f0;
  --green: #2ee6a8;
  --red: #ff5a5f;
  --purple: #8b5cf6;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 24px 20px 40px;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(600px 500px at 15% 10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(700px 600px at 85% 20%, rgba(53, 230, 240, 0.18), transparent 60%),
    radial-gradient(600px 600px at 50% 100%, rgba(255, 77, 125, 0.18), transparent 60%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

/* ---------- Header ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 4px;
  background: linear-gradient(92deg, var(--gold), var(--pink) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}

.me-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.me-bar b { color: var(--cyan); font-weight: 600; }
.me-bar .ip { color: #5f6b8a; font-family: ui-monospace, Menlo, Consolas, monospace; }
.me-bar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Layout ---------- */
.layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* ---------- Level track ---------- */
.level-track {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.track-item {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  position: relative;
}

.track-item .bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
  overflow: hidden;
}

.track-item .bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.45s ease;
}

.track-item.done .bar::after { width: 100%; }
.track-item.done { color: var(--green); }
.track-item.active .bar::after { width: 55%; background: linear-gradient(90deg, var(--gold), var(--pink)); }
.track-item.active { color: var(--gold); }
.track-item.fail .bar::after { width: 100%; background: var(--red); }
.track-item.fail { color: var(--red); }

/* ---------- Test level picker ---------- */
.test-bar {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 201, 60, 0.28);
  border-radius: 12px;
  background: rgba(255, 201, 60, 0.05);
}
.test-label { font-size: 11px; color: rgba(255, 201, 60, 0.8); letter-spacing: 1px; }
.test-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.test-btn {
  min-width: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.test-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.test-btn.active { background: rgba(255, 201, 60, 0.18); border-color: var(--gold); color: var(--gold); }
.test-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Stage ---------- */
.stage { min-height: 430px; display: flex; flex-direction: column; }

.scene { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }

.level-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
  border: 1px solid rgba(255, 201, 60, 0.35);
  background: rgba(255, 201, 60, 0.08);
}

.scene h2 { margin: 0; font-size: 22px; }
.scene .desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 460px; }

.status {
  min-height: 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.status.win { color: var(--green); }
.status.lose { color: var(--red); }
.status.info { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(93deg, var(--pink), var(--purple));
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(255, 77, 125, 0.32);
}
.btn-ghost { background: rgba(255, 255, 255, 0.04); }
.btn-block { width: 100%; }

.choice-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.choice {
  min-width: 128px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.choice:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(53, 230, 240, 0.18);
}
.choice:disabled { opacity: 0.4; cursor: not-allowed; }
.choice .glyph { font-size: 30px; line-height: 1; }
.choice .sub { font-size: 11px; color: var(--muted); }
.choice.picked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 201, 60, 0.35); }
.choice.right { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46, 230, 168, 0.4); }
.choice.wrong { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.4); }

/* ---------- Level 1: dice ---------- */
.dice-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.dice-stage {
  width: 150px; height: 150px;
  perspective: 900px;
  perspective-origin: 50% 45%;
  display: flex; align-items: center; justify-content: center;
}

.dice-tilt {
  transform-style: preserve-3d;
  animation: dice-float 3.6s ease-in-out infinite;
}
@keyframes dice-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}
.dice-stage.rolling .dice-tilt { animation: dice-shake 0.42s linear infinite; }
@keyframes dice-shake {
  0%   { transform: translate(2px, 0) scale(0.97); }
  25%  { transform: translate(-3px, -6px) scale(1.02); }
  50%  { transform: translate(2px, 3px) scale(0.98); }
  75%  { transform: translate(-2px, -3px) scale(1.01); }
  100% { transform: translate(2px, 0) scale(0.97); }
}

.dice-cube {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(0.2, 0.75, 0.15, 1);
}

.dice-face {
  position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(150deg, #ffffff 0%, #f2f5fc 55%, #dbe2f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 22px rgba(90, 105, 145, 0.18), inset 0 -8px 14px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 15px;
  gap: 3px;
  backface-visibility: visible;
}

.dice-face .pip {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #5a6584, #101728);
  box-shadow: inset 0 -2px 3px rgba(255, 255, 255, 0.25);
  align-self: center; justify-self: center;
}

.dice-shadow {
  width: 92px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%);
  filter: blur(2px);
}

.dice-value { font-size: 38px; font-weight: 700; letter-spacing: 2px; min-height: 46px; }

/* ---------- Level 2: RPS ---------- */
.rps-arena { display: flex; align-items: center; gap: 26px; }
.rps-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rps-side .label { font-size: 12px; color: var(--muted); }
.rps-hand {
  width: 96px; height: 96px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}
.rps-hand.shaking { animation: shake 0.32s linear infinite; }
@keyframes shake {
  0%   { transform: translateY(0) rotate(-8deg); }
  50%  { transform: translateY(-14px) rotate(8deg); }
  100% { transform: translateY(0) rotate(-8deg); }
}
.rps-vs { font-size: 18px; color: var(--muted); letter-spacing: 2px; }

/* ---------- Level 3: cards ---------- */
.card-area { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; }
.card-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.card-slot .label { font-size: 12px; color: var(--muted); }

.card {
  width: 96px; height: 136px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.card .face {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}
.card .front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #ffffff, #e9eef9);
  font-size: 42px;
  justify-content: center;
}
.card .front .corner {
  position: absolute;
  top: 8px; left: 9px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card .front .corner em { font-style: normal; font-size: 13px; }
.card .front .big { font-size: 54px; line-height: 1; margin-top: 6px; }
.card .back {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 6px, transparent 6px 12px),
    linear-gradient(150deg, var(--purple), #2b2f6b);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.card.flipped { transform: rotateY(180deg); }
.card.red .front { color: #e03131; }
.card.black .front { color: #16192b; }

.suit-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.suit-btn {
  width: 74px; padding: 12px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 30px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.suit-btn .suit-name { font-size: 11px; color: var(--muted); }
.suit-btn:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--cyan); }
.suit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.suit-btn.red { color: var(--red); }
.suit-btn.picked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 201, 60, 0.35); }
.suit-btn.right { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46, 230, 168, 0.45); }
.suit-btn.wrong { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.45); }

/* ---------- Level 4: hand (掌心图片 + 手指热区) ---------- */
.hand-wrap { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }

.hand-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  /* 写实质感手掌：保留原色，仅加投影增强立体感 */
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)) saturate(1.05);
  opacity: 0.98;
}

/* 手指热区：默认极淡的轮廓，悬停时高亮 */
.finger-hot {
  position: absolute;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 46% 46% 32% 32% / 60% 60% 20% 20%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hand-wrap:not(.open) .finger-hot:hover {
  border-color: rgba(255, 201, 60, 0.9);
  background: rgba(255, 201, 60, 0.16);
  box-shadow: 0 0 18px rgba(255, 201, 60, 0.4);
}
.finger-hot.picked {
  border-color: var(--gold);
  background: rgba(255, 201, 60, 0.22);
  box-shadow: 0 0 24px rgba(255, 201, 60, 0.55);
}
.hand-wrap.open .finger-hot { cursor: default; }
.hand-wrap.open .finger-hot:not(.picked) { border-color: rgba(255, 255, 255, 0.06); }

/* 钻石：从手指背后升起 */
.dia-gem {
  position: absolute;
  width: 17%;
  height: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(53, 230, 240, 0.8));
  transition:
    top 0.95s cubic-bezier(0.22, 0.9, 0.28, 1),
    opacity 0.3s ease,
    transform 0.95s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.dia-gem.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gem-spark { animation: shine 1.4s ease-in-out infinite; }
@keyframes shine { 50% { opacity: 0.35; } }

.hand-hint { font-size: 12px; color: var(--muted); }

/* ---------- Level 5: revolver duel (写实左轮，枪口朝向) ---------- */
.gun-wrap { position: relative; width: 100%; max-width: 560px; }

.gun-stage {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.gun-rot {
  position: relative;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.55, 0.06, 0.25, 1), filter 0.5s ease;
  transform-origin: 50% 60%;
}
/* 玩家回合：枪口朝外（正对玩家，正常朝向，枪管在左指向玩家侧） */
.gun-rot.aim-me { transform: rotate(0deg) scaleX(1); filter: none; }
/* 系统回合：枪口朝里（水平翻转，枪管指向外侧，并压暗以示意「背面」） */
.gun-rot.aim-sys { transform: rotate(0deg) scaleX(-1); filter: brightness(0.62) contrast(1.05); }

.gun-photo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}

/* 弹巢环：叠加在照片转轮位置（约 57.6% / 42.9%） */
.cyl-ring {
  position: absolute;
  left: 40%;
  top: 23%;
  width: 36%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.cyl-spin {
  transform-box: view-box;
  transform-origin: 100px 100px;
  transition: transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flutes path { stroke: rgba(0, 0, 0, 0.38); stroke-width: 6; stroke-linecap: round; }

.chamber { pointer-events: auto; cursor: default; }
.chamber circle {
  fill: #11162a;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2.5;
  transition: fill 0.25s, stroke 0.25s;
}
.chamber text { fill: #eef2ff; font-size: 22px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.gun-wrap.my-turn .chamber:not(.empty):not(.loaded) { cursor: pointer; }
.gun-wrap.my-turn .chamber:not(.empty):not(.loaded):hover circle { fill: #384270; stroke: var(--gold); }
.chamber.selected circle { fill: rgba(255, 201, 60, 0.42); stroke: var(--gold); stroke-width: 3.5; }
.chamber.empty circle { fill: rgba(46, 230, 168, 0.24); stroke: var(--green); }
.chamber.loaded circle { fill: rgba(255, 90, 95, 0.62); stroke: var(--red); stroke-width: 3.5; }

/* 枪口火焰（位于枪管末端，约 5% / 46%） */
.muzzle-fx {
  position: absolute;
  left: 1%;
  top: 38%;
  width: 16%;
  height: 16%;
  pointer-events: none;
}
.muzzle-fx .flash {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffe58a 26%, #ff9a3c 58%, rgba(255, 90, 40, 0) 100%);
  opacity: 0;
  transform: scale(0.2);
}
.muzzle-fx .shock {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 3px solid rgba(255, 240, 190, 0.9);
  opacity: 0;
  transform: scale(0.3);
}
.muzzle-fx.go .flash { animation: muzzle-front 0.6s ease-out; }
.muzzle-fx.go .shock { animation: shockwave 0.6s ease-out; }
@keyframes muzzle-front {
  0%   { opacity: 0; transform: scale(0.2); }
  18%  { opacity: 1; transform: scale(1.1); }
  45%  { opacity: 0.95; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2.4); }
}
@keyframes shockwave {
  0%   { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(3); }
}
/* 系统回合翻转后，火焰也同步反向 */
.gun-rot.aim-sys .muzzle-fx { left: auto; right: 1%; }

.gun-wrap.shake { animation: gun-shake 0.5s ease-out; }
@keyframes gun-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-7px, 3px); }
  30% { transform: translate(6px, -4px); }
  45% { transform: translate(-5px, -2px); }
  60% { transform: translate(4px, 3px); }
  80% { transform: translate(-2px, 1px); }
}

.duel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 560px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.duel-turn { font-weight: 600; }
.duel-turn.me { color: var(--cyan); }
.duel-turn.sys { color: var(--pink); }
.duel-left { color: var(--muted); }
.duel-left b { color: var(--text); }

.rank-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rank-head h2 { margin: 0; font-size: 18px; letter-spacing: 1px; }
.badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(93deg, var(--gold), var(--pink));
  color: #1a1024; font-weight: 700; letter-spacing: 1px;
}

.stats { display: flex; gap: 10px; margin-bottom: 14px; }
.stat-box {
  flex: 1; padding: 10px; border-radius: 12px; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.stat-box .num { font-size: 20px; font-weight: 700; color: var(--cyan); }
.stat-box .cap { font-size: 11px; color: var(--muted); margin-top: 2px; }

.rank-table { max-height: 460px; overflow-y: auto; }
.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.15fr) 62px 46px;
  gap: 8px;
  align-items: center;
  padding: 9px 6px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rank-header { color: var(--muted); font-size: 11px; letter-spacing: 1px; position: sticky; top: 0; background: #141b2d; z-index: 1; }
.rank-row .rk { font-weight: 700; color: var(--muted); text-align: center; }
.rank-row.top1 .rk { color: var(--gold); }
.rank-row.top2 .rk { color: #d7dcec; }
.rank-row.top3 .rk { color: #e2a06a; }
.rank-row .who { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #aab6d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .geo { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .lv { text-align: center; font-weight: 700; }
.rank-row .lv.full { color: var(--gold); }
.rank-row .cl { text-align: center; color: var(--muted); font-size: 12px; }
.rank-row.me { background: rgba(53, 230, 240, 0.1); border-radius: 10px; }

.empty { padding: 26px 0; text-align: center; color: var(--muted); font-size: 13px; }

.me-rank { margin: 12px 0 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(53, 230, 240, 0.35); background: rgba(53, 230, 240, 0.06); font-size: 13px; color: var(--muted); line-height: 1.8; }
.me-rank b { color: var(--cyan); }
.tip { color: #5f6b8a; font-size: 11px; line-height: 1.7; margin: 10px 0 0; }

.footer { text-align: center; color: #4c567a; font-size: 12px; margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .stage { min-height: 400px; }
  .panel { padding: 16px; }
  .rps-arena { gap: 14px; }
  .rps-hand { width: 78px; height: 78px; font-size: 36px; }
}
