/* ===== CSS变量 ===== */
:root {
  --ink: #0d0a08;
  --parchment: #f5edd8;
  --parchment-dark: #ede3c8;
  --parchment-border: #c9a96e;
  --gold: #c9a96e;
  --gold-light: #e8c98a;
  --gold-glow: rgba(201, 169, 110, 0.4);
  --wine: #7b1c2e;
  --wine-light: #a8314a;
  --wine-glow: rgba(123, 28, 46, 0.5);
  --smoke: #2a2018;
  --smoke-mid: #1e1912;
  --smoke-dark: #120f0a;
  --text-light: #f0e8d8;
  --text-mid: #c4b49a;
  --text-dim: #8a7a60;
  --radius: 16px;
  --shadow-deep: 0 12px 48px rgba(0,0,0,0.6);
}

/* ===== 基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--smoke-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
em { color: var(--gold-light); font-style: normal; }
strong { color: var(--text-light); }
code {
  font-family: 'Courier New', monospace;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
}
img { max-width: 100%; display: block; }

/* ===== 烛火粒子 ===== */
#candles-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.spark {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: spark-rise linear infinite;
  pointer-events: none;
}
@keyframes spark-rise {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.8; }
  80%  { opacity: 0.3; }
  100% { transform: translateY(-80vh) scale(0.1) rotate(30deg); opacity: 0; }
}

/* ===== 导航 ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 9, 6, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.nav-ornament { font-size: 0.65rem; opacity: 0.7; }
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.85rem; color: var(--text-mid);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--gold); background: rgba(201,169,110,0.1); }

/* 语言切换按钮 */
.lang-toggle-btn {
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
  white-space: nowrap;
}
.lang-toggle-btn:hover {
  background: rgba(201,169,110,0.25);
  border-color: rgba(201,169,110,0.7);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.35);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12,9,6,0.3) 0%,
    rgba(12,9,6,0.1) 40%,
    rgba(12,9,6,0.7) 80%,
    var(--smoke-dark) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 780px; padding: 0 24px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 24px;
}
.ht-deco {
  font-size: 1.5rem; color: var(--gold); opacity: 0.6;
  flex-shrink: 0;
}
.ht-main {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
}
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.9;
}
.hero-verse {
  display: inline-flex; align-items: flex-start; gap: 12px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 40px;
  text-align: left;
}
.verse-ornament {
  font-size: 1.5rem; color: var(--gold); line-height: 1;
  flex-shrink: 0;
}
.hero-verse p { font-size: 0.92rem; color: var(--text-mid); font-style: italic; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-gold {
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--gold-glow); }
.btn-ghost {
  padding: 14px 36px;
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold);
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-ghost:hover { background: rgba(201,169,110,0.1); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 0.78rem;
  animation: bob 2.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-candle { font-size: 1.2rem; }

/* ===== Section通用 ===== */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-dark { background: var(--smoke-dark); }
.section-parchment {
  background: linear-gradient(180deg, #1a1510 0%, #1e1912 100%);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.chapter-label {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.chapter-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: white;
  margin-bottom: 14px;
}
.chapter-sub {
  color: var(--text-mid); font-size: 1rem;
  max-width: 560px; margin-bottom: 56px;
}

/* ===== 传说章节 ===== */
.story-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start;
}
.story-p {
  color: var(--text-mid); font-size: 0.95rem;
  line-height: 1.9; margin-bottom: 20px;
}
.drop-cap::first-letter {
  float: left;
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem; font-weight: 900;
  color: var(--gold);
  line-height: 0.75;
  margin: 4px 10px 0 0;
}
.parchment-scroll {
  background: var(--parchment);
  border: 2px solid var(--parchment-border);
  border-radius: 8px;
  padding: 28px 32px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.15), var(--shadow-deep);
}
.parchment-scroll::before,
.parchment-scroll::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 12px;
  background: var(--parchment-border);
  border-radius: 4px;
}
.parchment-scroll::before { top: -8px; }
.parchment-scroll::after { bottom: -8px; }
.scroll-content { color: var(--ink); }
.scroll-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700; text-align: center;
  font-size: 1rem; color: var(--wine);
  letter-spacing: 0.2em; margin-bottom: 16px;
}
.scroll-content p {
  font-size: 0.9rem; line-height: 1.9;
  color: #3a2a1a;
}
.scroll-content strong { color: var(--wine); }
.scroll-sig {
  margin-top: 16px; text-align: right;
  font-style: italic; font-size: 0.82rem;
  color: #6a4a2a;
}
.tavern-img-card {
  border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(201,169,110,0.3);
  margin-bottom: 24px;
  box-shadow: var(--shadow-deep);
}
.tavern-img-card img { width: 100%; height: 220px; object-fit: cover; }
.img-caption {
  background: rgba(0,0,0,0.6); padding: 10px 16px;
  font-size: 0.78rem; color: var(--text-mid); text-align: center;
}
.sidebar-info { display: flex; flex-direction: column; gap: 12px; }
.si-item {
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(201,169,110,0.15);
  border-radius: 10px; padding: 12px 16px;
}
.si-icon { font-size: 1.3rem; flex-shrink: 0; }
.si-label { font-size: 0.7rem; color: var(--text-dim); }
.si-val { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* ===== 饮酒积分 ===== */
.drink-hero-cmd {
  position: relative; border-radius: 20px; overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid rgba(201,169,110,0.25);
}
.dhc-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a0a14, #1a0a0a, #200f06);
}
.dhc-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 28px;
  padding: 32px 40px;
}
.dhc-goblet { font-size: 3.5rem; animation: sway 3s ease-in-out infinite; }
@keyframes sway {
  0%,100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
.dhc-info { flex: 1; }
.dhc-cmd-label { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 6px; }
.dhc-cmd {
  font-family: 'Courier New', monospace;
  font-size: 2rem; font-weight: 700;
  color: var(--gold-light);
  background: none; border: none; padding: 0;
  letter-spacing: 0.1em;
}
.dhc-desc { font-size: 0.88rem; color: var(--text-mid); margin-top: 8px; }
.dhc-badge {
  background: linear-gradient(135deg, var(--wine), var(--wine-light));
  color: white; padding: 12px 24px; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 20px var(--wine-glow);
}

.ways-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 40px;
}
.ways-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.ways-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ways-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.way-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--radius); padding: 28px 22px;
  position: relative; transition: all 0.3s;
}
.way-card:hover { transform: translateY(-4px); }
.way-card--featured {
  border-color: rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.06);
  box-shadow: 0 0 40px rgba(201,169,110,0.1);
}
.way-badge-top {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; padding: 4px 14px; border-radius: 50px;
  white-space: nowrap;
}
.way-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem; color: var(--gold); opacity: 0.5;
  margin-bottom: 8px;
}
.way-icon { font-size: 2.2rem; margin-bottom: 12px; }
.way-card h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 8px; }
.way-cmd { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.way-card p { font-size: 0.83rem; color: var(--text-mid); margin-bottom: 14px; line-height: 1.6; }
.way-pts { display: flex; flex-direction: column; gap: 4px; }
.way-pts span { font-size: 0.78rem; color: var(--text-mid); }
.way-pts span:first-child { color: var(--gold-light); font-weight: 700; }
.way-bonus { color: var(--text-dim); font-size: 0.74rem; }

.more-cmds {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: var(--radius); padding: 32px;
  margin-bottom: 40px;
}
.mc-title {
  text-align: center; font-family: 'Noto Serif SC', serif;
  font-size: 1rem; color: var(--gold);
  letter-spacing: 0.2em; margin-bottom: 24px;
}
.mc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.mc-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.mc-item code { font-size: 0.9rem; }
.mc-item span {
  font-size: 0.75rem; color: var(--gold); font-weight: 700;
}
.mc-item p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; }

.daily-cap {
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius); padding: 28px 32px;
}
.dc-title { font-weight: 700; color: white; margin-bottom: 20px; }
.dc-bars { display: flex; flex-direction: column; gap: 14px; }
.dc-row {
  display: grid; grid-template-columns: 48px 1fr 100px;
  align-items: center; gap: 14px; font-size: 0.83rem;
}
.dc-row > span:first-child { color: var(--text-mid); }
.dc-note { font-size: 0.75rem; color: var(--text-dim); }
.dc-track {
  height: 26px; background: rgba(255,255,255,0.06);
  border-radius: 6px; overflow: hidden;
}
.dc-fill {
  height: 100%; width: var(--w);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; font-size: 0.78rem; font-weight: 700; color: white;
  border-radius: 6px; transition: width 1.4s ease;
}
.dc-fill-1 { background: linear-gradient(90deg, #8a6a30, #c9a96e); }
.dc-fill-2 { background: linear-gradient(90deg, var(--wine), var(--wine-light)); }
.dc-fill-3 { background: linear-gradient(90deg, #1a4a30, #2a7a50); }
.dc-fill-4 { background: linear-gradient(90deg, #4a1a30, #8a2a50, #c9a96e); }
.dc-row-total > span:first-child { color: white; font-weight: 700; }

/* ===== 预言 ===== */
.global-wine {
  background: rgba(123,28,46,0.12);
  border: 1px solid rgba(123,28,46,0.3);
  border-radius: var(--radius); padding: 28px 32px;
  margin-bottom: 56px;
}
.gw-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-weight: 600;
}
.gw-val { color: var(--wine-light); font-size: 0.88rem; }
.gw-vessel {
  height: 20px; background: rgba(0,0,0,0.4);
  border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid rgba(123,28,46,0.3); margin-bottom: 32px;
}
.gw-liquid {
  height: 100%;
  background: linear-gradient(90deg, #5a0e1e, var(--wine), var(--wine-light));
  border-radius: 10px; width: 0;
  transition: width 2s ease;
  position: relative;
}
.gw-liquid::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: white; border: 3px solid var(--wine);
  box-shadow: 0 0 10px var(--wine-glow);
}
.gw-shine {
  position: absolute; top: 3px; left: 4px; right: 4px;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.gw-bubbles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.gw-milestones { position: relative; height: 40px; }
.gwm {
  position: absolute; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.gwm span { font-size: 0.7rem; color: var(--text-mid); }
.gwm em { font-size: 0.65rem; color: var(--text-dim); font-style: normal; }

/* 预言卡片 */
.prophecy-list { display: flex; flex-direction: column; gap: 0; }
.prophecy-card {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 0 24px;
}
.pc-left {
  display: flex; flex-direction: column; align-items: center;
}
.pc-candle { font-size: 1.4rem; padding: 20px 0 4px; }
.pc-candle--dim { opacity: 0.4; }
.pc-candle--dark { opacity: 0.15; }
.pc-line { flex: 1; width: 2px; background: rgba(201,169,110,0.2); min-height: 20px; }
.pc-body {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--radius); padding: 24px 28px;
  margin-bottom: 16px; transition: all 0.3s;
}
.pc-body:hover { border-color: rgba(201,169,110,0.35); }
.pc-unlocked .pc-body { border-color: rgba(201,169,110,0.35); background: rgba(201,169,110,0.06); }
.pc-final .pc-body {
  border-color: rgba(201,169,110,0.4);
  background: linear-gradient(135deg, rgba(123,28,46,0.1), rgba(201,169,110,0.05));
}
.pc-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.pc-num {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700; font-size: 0.9rem; color: var(--gold);
  letter-spacing: 0.05em;
}
.pc-threshold { font-size: 0.78rem; color: var(--text-dim); }
.pc-status {
  margin-left: auto; font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
}
.pc-status--open { background: rgba(201,169,110,0.15); color: var(--gold-light); }
.pc-status--lock { background: rgba(255,255,255,0.05); color: var(--text-dim); }
.pc-preview-tag {
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(139,92,246,0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.4);
  letter-spacing: 0.03em;
}
.prophecy-notice {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(201,169,110,0.08));
  border: 1px solid rgba(139,92,246,0.3);
  border-left: 3px solid #8b5cf6;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 40px;
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.6;
}
.prophecy-notice .pn-icon { font-size: 1.4rem; flex-shrink: 0; }
.pc-reveal {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start;
}
.pc-img-wrap {
  border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid rgba(201,169,110,0.3);
}
.pc-img-wrap img { width: 100%; height: 160px; object-fit: cover; }
.pc-img-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.75); color: var(--gold);
  font-size: 0.7rem; padding: 3px 10px; border-radius: 50px;
}
.pc-text h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem; color: white;
  margin-bottom: 10px; line-height: 1.4;
}
.pc-text p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.pc-locked-reveal {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start;
}
.pc-fog {
  border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}
.pc-fog img { width: 100%; height: 160px; object-fit: cover; filter: blur(10px) brightness(0.3); }
.pc-fog--final img { filter: blur(14px) brightness(0.2); }
.pc-fog-layer {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.pc-fog-icon { font-size: 2rem; }
.pc-fog-hint { font-size: 0.72rem; color: var(--text-dim); text-align: center; padding: 0 8px; line-height: 1.4; }
.pc-locked-text h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem; color: var(--text-light);
  margin-bottom: 10px; line-height: 1.4;
}
.pc-locked-text p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.pc-reward, .pc-text .pc-reward {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.25);
  color: var(--gold-light); font-size: 0.8rem;
  padding: 8px 14px; border-radius: 8px;
}
.pc-reward--special {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: #fcd34d;
}
.pc-reward--ultimate {
  background: linear-gradient(135deg, rgba(123,28,46,0.2), rgba(201,169,110,0.1));
  border-color: rgba(201,169,110,0.4);
  color: var(--gold-light);
}
.pc-reward--ultimate strong { color: white; }
.pc-progress-mini { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.ppm-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px;
}
.ppm-fill { height: 100%; background: var(--wine-light); border-radius: 2px; }
.pc-progress-mini span { font-size: 0.7rem; color: var(--text-dim); white-space: nowrap; }

/* ===== 端内 ===== */
.ingame-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 60px; align-items: start;
}
.ingame-desc h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem; color: white; margin-bottom: 28px;
}
.ingame-feature-list { display: flex; flex-direction: column; gap: 16px; }
.ifl-item { display: flex; gap: 16px; align-items: flex-start; }
.ifl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 7px;
}
.ifl-text { display: flex; flex-direction: column; gap: 2px; }
.ifl-text strong { color: white; font-size: 0.9rem; }
.ifl-text span { color: var(--text-dim); font-size: 0.82rem; }

/* 引导文案 */
.ingame-lore {
  position: relative; margin-bottom: 28px;
  padding: 16px 20px;
  background: rgba(139,0,0,0.08);
  border-left: 3px solid var(--wine);
  border-radius: 0 8px 8px 0;
}
.ingame-lore::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,0,0,0.05) 0%, transparent 100%);
  border-radius: inherit; pointer-events: none;
}
.ingame-lore-quote {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem; font-style: italic;
  color: rgba(255,220,180,0.85); margin-bottom: 10px;
  line-height: 1.7;
}
.ingame-lore-body {
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.8;
}
.ingame-lore-body strong { color: var(--gold-light); }
.ingame-steps { display: flex; flex-direction: column; gap: 14px; }
.ingame-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; transition: all 0.3s;
}
.ingame-step:hover {
  background: rgba(201,169,110,0.05);
  border-color: rgba(201,169,110,0.15);
  transform: translateX(4px);
}
.ingame-step-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.75rem; font-weight: 700;
  color: var(--gold); background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.25);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.ingame-step--reward .ingame-step-num {
  font-size: 1rem; background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.35); color: #f87171; width: 34px; height: 34px;
}
.ingame-step-body { display: flex; flex-direction: column; gap: 4px; }
.ingame-step-body strong { font-size: 0.92rem; color: white; }
.ingame-step-body span { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }
.ingame-step-body code {
  font-family: 'Courier New', monospace; font-size: 0.78rem;
  color: #a78bfa; background: rgba(139,92,246,0.12);
  padding: 1px 5px; border-radius: 3px; border: 1px solid rgba(139,92,246,0.25);
}
.ingame-step--reward .ingame-step-body strong { color: #fca5a5; }

/* 手机模拟 */
.phone-mockup { display: flex; justify-content: center; }
.phone-frame {
  width: 310px;
  background: #181210; border-radius: 36px;
  border: 3px solid #2a2018;
  padding: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-notch {
  width: 72px; height: 6px;
  background: #0a0806; border-radius: 3px;
  margin: 0 auto 8px;
}
.phone-screen {
  background: #0d0a08; border-radius: 26px;
  height: 600px; overflow-y: auto; overflow-x: hidden;
}
.phone-screen::-webkit-scrollbar { display: none; }
.ui-wrap { display: flex; flex-direction: column; }
.ui-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(8,6,4,0.95);
  position: sticky; top: 0; z-index: 10;
}
.ui-back { color: var(--text-dim); font-size: 1.3rem; }
.ui-bar-title { font-size: 0.85rem; font-weight: 700; color: white; font-family: 'Noto Serif SC', serif; }
.ui-bar-badge {
  font-size: 0.62rem; color: var(--gold);
  background: rgba(201,169,110,0.12); border: 1px solid rgba(201,169,110,0.25);
  padding: 2px 8px; border-radius: 50px;
}
.ui-tavern-banner { height: 130px; position: relative; overflow: hidden; }
.ui-tavern-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(0.7); }
.utb-overlay {
  position: absolute; inset: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(8,6,4,0.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.utb-title { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; font-weight: 700; color: white; }
.utb-sub { font-size: 0.68rem; color: rgba(255,255,255,0.5); }
.utb-cd { font-size: 0.72rem; color: var(--gold-light); font-weight: 700; margin-top: 2px; }
.ui-bartender {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(201,169,110,0.06);
  border-bottom: 1px solid rgba(201,169,110,0.1);
}
.ui-bt-icon { font-size: 1.3rem; }
.ui-bt-quote { font-size: 0.72rem; color: var(--text-mid); font-style: italic; flex: 1; }
.ui-block { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ui-block-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 700; color: white; margin-bottom: 10px;
}
.ui-block-more { font-size: 0.68rem; color: var(--gold); }
.ui-wine-bar {
  height: 8px; background: rgba(255,255,255,0.07);
  border-radius: 4px; position: relative; margin-bottom: 6px;
}
.ui-wine-fill {
  height: 100%; background: linear-gradient(90deg, var(--wine), var(--wine-light));
  border-radius: 4px;
}
.ui-wine-marks { position: absolute; inset: 0; }
.uwm { position: absolute; top: -3px; transform: translateX(-50%); }
.uwm-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: #0d0a08; margin: 0 auto;
}
.uwm--done .uwm-dot { background: var(--wine-light); border-color: var(--wine); }
.uwm span { font-size: 0.58rem; color: rgba(255,255,255,0.3); display: block; text-align: center; margin-top: 14px; }
.ui-wine-text { font-size: 0.66rem; color: rgba(255,255,255,0.35); }
.ui-dc-btn {
  margin: 8px 14px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #4252c7, #5865f2);
  border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: all 0.2s;
}
.ui-dc-btn:hover { opacity: 0.9; transform: scale(0.98); }
.ui-dc-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.ui-dc-t { font-size: 0.8rem; font-weight: 700; color: white; }
.ui-dc-s { font-size: 0.65rem; color: rgba(255,255,255,0.65); }
.ui-dc-btn > span { color: rgba(255,255,255,0.6); font-size: 1rem; }
.ui-my-stats {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  text-align: center; align-items: center;
}
.ums-n { font-size: 1rem; font-weight: 700; color: var(--gold-light); }
.ums-l { font-size: 0.6rem; color: rgba(255,255,255,0.35); }
.ums-div { width: 1px; height: 28px; background: rgba(255,255,255,0.07); }

/* ===== 奖励 ===== */
.rewards-cups {
  display: flex; align-items: stretch;
  gap: 0; margin-bottom: 48px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius); overflow: hidden;
}
.cup-reward {
  flex: 1; padding: 36px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cup-reward--special { background: rgba(201,169,110,0.04); }
.cup-reward--ultimate {
  background: linear-gradient(180deg, rgba(123,28,46,0.1), rgba(201,169,110,0.05));
}
.cup-connector {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: rgba(201,169,110,0.2);
  padding: 0 8px; writing-mode: horizontal-tb;
  letter-spacing: 4px;
  border-left: 1px solid rgba(201,169,110,0.1);
  border-right: 1px solid rgba(201,169,110,0.1);
}
.cup-icon { font-size: 2.5rem; }
.cup-label { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; font-weight: 700; }
.cup-reward h3 { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; color: white; }
.cup-reward p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.7; flex: 1; }
.cup-badge {
  font-size: 0.78rem; font-weight: 700; padding: 8px 16px;
  border-radius: 50px; white-space: nowrap;
}
.cup-badge--key { background: rgba(201,169,110,0.15); color: var(--gold-light); border: 1px solid rgba(201,169,110,0.3); }
.cup-badge--dice { background: rgba(245,158,11,0.1); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.cup-badge--crown {
  background: linear-gradient(135deg, rgba(123,28,46,0.2), rgba(201,169,110,0.15));
  color: var(--gold-light); border: 1px solid var(--gold);
}
.cup-badge--top10 {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.15));
  color: #a5f3fc; border: 1px solid rgba(99,102,241,0.5);
}
.cup-reward--top10 {
  background: linear-gradient(180deg, rgba(14,165,233,0.06), rgba(99,102,241,0.04));
  position: relative;
}
.cup-reward--top10::before {
  content: 'TOP 10';
  position: absolute; top: 12px; right: 14px;
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.12em;
  color: #a5f3fc; background: rgba(14,165,233,0.2);
  padding: 2px 8px; border-radius: 50px;
  border: 1px solid rgba(99,102,241,0.4);
}

.reward-notes {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 28px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.rn-item { display: flex; gap: 12px; align-items: flex-start; }
.rn-item span { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.rn-item p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

/* ===== 页脚 ===== */
.footer {
  background: #080604;
  border-top: 1px solid rgba(201,169,110,0.15);
  padding: 56px 24px; text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-emblem { font-size: 2.5rem; margin-bottom: 12px; }
.footer-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem; color: var(--gold);
  letter-spacing: 0.15em; margin-bottom: 16px;
}
.footer-quote {
  font-size: 0.88rem; color: var(--text-dim);
  font-style: italic; margin-bottom: 28px;
}
.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a { color: var(--text-dim); font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size: 0.75rem; color: #3a3020; margin-bottom: 10px; }
.footer-by { font-size: 0.78rem; color: var(--text-dim); }

/* ===== 骰子比大小游戏 ===== */
.dice-game-block {
  background: linear-gradient(135deg, #1a0a10, #150e08, #1a0a10);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.dice-game-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.dgb-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.dgb-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 6px;
}
.dgb-title-area h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem; color: white; margin-bottom: 6px;
}
.dgb-title-area p { font-size: 0.85rem; color: var(--text-mid); }
.dgb-pts-tags { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.dgb-tag {
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
}
.dgb-tag--win {
  background: rgba(201,169,110,0.15); border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold-light);
}
.dgb-tag--lose {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
}

.dice-arena {
  display: grid; grid-template-columns: 1fr 160px 1fr;
  gap: 16px; align-items: center; margin-bottom: 18px;
}
.dice-side {
  text-align: center;
}
.ds-label {
  font-size: 0.78rem; color: var(--text-dim);
  letter-spacing: 0.15em; margin-bottom: 14px;
  text-transform: uppercase;
}
.dice-row {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 12px;
}
.die {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 10px;
  transition: all 0.2s;
  user-select: none;
}
.die.rolling {
  animation: die-spin 0.1s linear infinite;
  border-color: var(--gold);
  background: rgba(201,169,110,0.12);
}
@keyframes die-spin {
  0% { transform: scale(0.85) rotate(-8deg); }
  50% { transform: scale(1.05) rotate(8deg); }
  100% { transform: scale(0.85) rotate(-8deg); }
}
.die.win { border-color: rgba(74,222,128,0.6); background: rgba(74,222,128,0.08); }
.die.lose { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.05); }

.ds-total {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold-light);
  transition: all 0.3s;
}
.ds-total.win { color: #4ade80; }
.ds-total.lose { color: #f87171; }

.dice-vs {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.vs-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.05em;
  background: rgba(201,169,110,0.05);
}
.roll-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--wine), var(--wine-light));
  border: none; cursor: pointer;
  border-radius: 14px; padding: 14px 20px;
  box-shadow: 0 4px 20px var(--wine-glow);
  transition: all 0.2s;
}
.roll-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--wine-glow); }
.roll-btn:active { transform: scale(0.94); }
.roll-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.roll-btn-icon { font-size: 1.6rem; }
.roll-btn-text { font-size: 0.78rem; font-weight: 700; color: white; font-family: 'Courier New', monospace; }

.roll-result {
  min-height: 28px;
  font-size: 0.82rem; font-weight: 700; text-align: center;
  padding: 4px 14px; border-radius: 50px;
  transition: all 0.3s;
}
.roll-result.win {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}
.roll-result.lose {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
}
.roll-result.tie {
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--gold-light);
}
.dice-note {
  display: flex; gap: 12px; justify-content: center;
  font-size: 0.75rem; color: var(--text-dim);
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== 横屏游戏 mockup ===== */
.ingame-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: start;
}
.ingame-desc {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.ingame-desc h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem; color: white;
  grid-column: 1 / -1; margin-bottom: 4px;
}
.landscape-mockup {
  width: 100%; display: flex; justify-content: center;
}
.lm-frame {
  width: 100%; max-width: 900px;
  background: #0e0b08;
  border-radius: 20px;
  border: 3px solid #2a2018;
  padding: 8px 8px 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  /* 相机指示点放左侧模拟横屏设备 */
}
.lm-camera {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a1612; margin: 0 auto 6px;
  border: 1px solid #2a2018;
}
.lm-screen {
  background: #0d0a08; border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  /* 固定16:9横屏比例 */
  aspect-ratio: 16 / 9;
  position: relative;
}
.lm-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 14px;
  background: rgba(8,6,4,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.lm-tb-left { display: flex; align-items: center; gap: 14px; }
.lm-back { font-size: 0.72rem; color: var(--text-dim); }
.lm-title { font-size: 0.82rem; font-weight: 700; color: white; font-family: 'Noto Serif SC', serif; }
.lm-tb-right { display: flex; align-items: center; gap: 10px; }
.lm-cd { font-size: 0.68rem; color: var(--gold-light); font-weight: 600; }
.lm-badge {
  font-size: 0.6rem; color: var(--gold);
  background: rgba(201,169,110,0.1); border: 1px solid rgba(201,169,110,0.25);
  padding: 2px 8px; border-radius: 50px;
}
.lm-body {
  display: grid; grid-template-columns: 240px 1fr;
  flex: 1; min-height: 0; overflow: hidden;
}
.lm-col { display: flex; flex-direction: column; }
.lm-col--left {
  border-right: 1px solid rgba(255,255,255,0.05);
}
.lm-tavern-bg {
  height: 75px; position: relative; overflow: hidden; flex-shrink: 0;
}
.lm-tavern-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: brightness(0.55) saturate(0.8); }
.lm-bg-overlay {
  position: absolute; inset: 0; padding: 10px 12px;
  background: linear-gradient(0deg, rgba(8,6,4,0.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.lm-tavern-name { font-family: 'Noto Serif SC', serif; font-size: 0.88rem; font-weight: 700; color: white; }
.lm-tavern-sub { font-size: 0.6rem; color: rgba(255,255,255,0.45); }
.lm-bartender {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 12px;
  background: rgba(201,169,110,0.05);
  border-bottom: 1px solid rgba(201,169,110,0.08);
  flex-shrink: 0;
}
.lm-bartender span:first-child { font-size: 1rem; flex-shrink: 0; }
.lm-quote {
  font-size: 0.67rem; color: var(--text-mid); font-style: italic; line-height: 1.5;
}
.lm-dc-btn {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #5a1a8c 0%, #8b2fc9 50%, #c44b8a 100%);
  margin: 5px 8px; border-radius: 10px; padding: 6px 12px;
  cursor: pointer; transition: all 0.3s;
  margin-top: auto; position: relative; overflow: hidden;
  border: 1px solid rgba(255,180,255,0.25);
  box-shadow: 0 0 10px rgba(180,80,255,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.lm-dc-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.lm-dc-btn:hover::before { transform: translateX(100%); }
.lm-dc-btn:hover {
  box-shadow: 0 0 20px rgba(200,100,255,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.lm-dc-icon { font-size: 1rem; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(255,100,100,0.6)); }
.lm-dc-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.lm-dc-title { font-size: 0.64rem; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.lm-dc-sub { font-size: 0.56rem; color: rgba(255,200,255,0.85); font-style: italic; }
.lm-dc-arrow { color: rgba(255,180,255,0.7); font-size: 0.75rem; flex-shrink: 0; animation: dcArrowPulse 2s ease-in-out infinite; }
@keyframes dcArrowPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.lm-col--right { overflow: visible; display: flex; flex-direction: column; }
.lm-block {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.lm-block-hd {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; font-weight: 700; color: white; margin-bottom: 5px;
}
.lm-more { font-size: 0.62rem; color: var(--gold); }
.lm-wine-bar {
  height: 6px; background: rgba(255,255,255,0.07);
  border-radius: 3px; position: relative; margin-bottom: 4px;
}
.lm-wine-fill { height: 100%; background: linear-gradient(90deg, var(--wine), var(--wine-light)); border-radius: 3px; }
.lm-wine-marks { position: absolute; inset: 0; }
.lm-wm { position: absolute; top: -3px; transform: translateX(-50%); }
.lm-wm-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15); background: #0d0a08; margin: 0 auto;
}
.lm-wm--done .lm-wm-dot { background: var(--wine-light); border-color: var(--wine); }
.lm-wm span { font-size: 0.5rem; color: rgba(255,255,255,0.25); display: block; text-align: center; margin-top: 12px; }
.lm-wine-text { font-size: 0.58rem; color: rgba(255,255,255,0.3); }

/* 已解锁/待解锁并排 */
.lm-block--reward-row {
  display: flex !important;
  padding: 0 !important;
  gap: 0;
}
.lm-reward-col {
  flex: 1; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px;
}
.lm-reward-col--unlocked { background: rgba(201,169,110,0.05); }
.lm-reward-col--locked { background: rgba(255,255,255,0.02); }
.lm-reward-col-hd {
  font-size: 0.62rem; font-weight: 700; margin-bottom: 3px;
}
.lm-reward-col--unlocked .lm-reward-col-hd { color: var(--gold-light); }
.lm-reward-col--locked .lm-reward-col-hd { color: rgba(255,255,255,0.4); }
.lm-reward-divider {
  width: 1px; background: rgba(255,255,255,0.08); flex-shrink: 0;
}

/* 我的积分突出显示 */
.lm-block--myscore { background: rgba(201,169,110,0.04); flex: 1; }
.lm-dc-tag {
  font-size: 0.58rem; color: var(--gold);
  background: rgba(201,169,110,0.12); border-radius: 4px;
  padding: 1px 5px; font-weight: 600;
}
.lm-myscore-row {
  display: flex; justify-content: space-around; align-items: center;
  gap: 8px; margin-bottom: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lm-myscore-main {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.lm-myscore-big {
  font-size: 1.1rem; font-weight: 900; color: var(--gold-light);
  font-family: 'Noto Serif SC', serif; line-height: 1;
}
.lm-myscore-label {
  font-size: 0.58rem; color: rgba(255,255,255,0.4);
}
.lm-rank-main {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.lm-rank-num {
  font-size: 1.1rem; font-weight: 900; color: #ffd700;
  font-family: 'Noto Serif SC', serif; line-height: 1;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.lm-rank-label {
  font-size: 0.58rem; color: rgba(255,255,255,0.4);
}

.lm-block--unlocked {
  background: rgba(201,169,110,0.06);
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.lm-block--unlocked .lm-block-hd span {
  color: var(--gold-light);
}
.lm-unlocked-item {
  display: flex; gap: 8px; align-items: flex-start;
}
.lm-unlocked-icon { font-size: 1.2rem; flex-shrink: 0; }
.lm-unlocked-info { display: flex; flex-direction: column; gap: 2px; }
.lm-unlocked-name { font-size: 0.66rem; font-weight: 700; color: var(--gold-light); }
.lm-unlocked-desc { font-size: 0.58rem; color: rgba(255,255,255,0.5); }
.lm-unlocked-badge {
  font-size: 0.56rem; font-weight: 700;
  color: var(--gold); background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 1px 7px; border-radius: 4px; display: inline-block; margin-top: 2px;
}

.lm-block--prophecy { background: rgba(201,169,110,0.03); }
.lm-prophecy-row { display: flex; gap: 10px; align-items: center; }
.lm-prophecy-fog { font-size: 1.8rem; }
.lm-prophecy-name { font-size: 0.7rem; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.lm-prophecy-hint { font-size: 0.62rem; color: var(--text-dim); font-style: italic; margin-bottom: 5px; }
.lm-prophecy-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; width: 100%; }
.lm-pb-fill { height: 100%; background: var(--wine-light); border-radius: 2px; }

.lm-stats {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  text-align: center; align-items: center;
}
.lm-sn { font-size: 0.82rem; font-weight: 700; color: var(--gold-light); }
.lm-sl { font-size: 0.56rem; color: rgba(255,255,255,0.3); }
.lm-sdiv { width: 1px; height: 24px; background: rgba(255,255,255,0.07); }

/* ===== 端内规则弹层 ===== */
.lm-rules-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 14px;
  background: rgba(201,169,110,0.05);
  border-bottom: 1px solid rgba(201,169,110,0.1);
  flex-shrink: 0;
}
.lm-rules-summary {
  font-size: 0.6rem; color: rgba(255,255,255,0.45);
  display: flex; gap: 12px; align-items: center;
}
.lm-rules-summary span { display: flex; align-items: center; gap: 3px; }
.lm-rules-summary--lore { flex: 1; min-width: 0; overflow: hidden; }
.lm-lore-text {
  font-size: 0.62rem; color: rgba(255,220,180,0.8);
  line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.lm-lore-text b { color: rgba(255,220,130,1); font-weight: 700; }
.lm-rules-btn {
  font-size: 0.58rem; color: var(--gold); cursor: pointer;
  background: rgba(201,169,110,0.1); border: 1px solid rgba(201,169,110,0.25);
  padding: 2px 10px; border-radius: 50px; white-space: nowrap;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 4px;
}
.lm-rules-btn:hover { background: rgba(201,169,110,0.2); }
.lm-rules-btn .lm-rules-arrow { transition: transform 0.3s; display: inline-block; }
.lm-rules-btn.open .lm-rules-arrow { transform: rotate(180deg); }
/* 弹层覆盖在screen上 */
.lm-rules-overlay {
  position: absolute; inset: 0;
  background: rgba(8,6,4,0.96);
  z-index: 20; border-radius: 14px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.lm-rules-overlay.open {
  opacity: 1; pointer-events: all;
}
.lm-rules-panel {
  flex: 1; overflow-y: auto; padding: 14px 18px;
}
.lm-rules-panel::-webkit-scrollbar { width: 3px; }
.lm-rules-panel::-webkit-scrollbar-track { background: transparent; }
.lm-rules-panel::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.3); border-radius: 3px; }
.lm-rules-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; border-bottom: 1px solid rgba(201,169,110,0.12);
  flex-shrink: 0;
}
.lm-rules-hd-title {
  font-family: 'Noto Serif SC', serif; font-size: 0.82rem; font-weight: 700; color: var(--gold);
}
.lm-rules-close {
  font-size: 1rem; color: rgba(255,255,255,0.4); cursor: pointer;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.lm-rules-close:hover { background: rgba(255,255,255,0.08); color: white; }
.lm-rule-section { margin-bottom: 12px; }
.lm-rule-section-title {
  font-size: 0.68rem; font-weight: 700; color: var(--gold-light);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.lm-rule-section-title::after {
  content: ''; flex: 1; height: 1px; background: rgba(201,169,110,0.12);
}
.lm-rule-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lm-rule-item:last-child { border-bottom: none; }
.lm-rule-cmd {
  font-family: 'Courier New', monospace; font-size: 0.65rem; font-weight: 700;
  color: #a78bfa; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3);
  padding: 1px 7px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.lm-rule-desc { font-size: 0.62rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.lm-rule-badge {
  font-size: 0.58rem; font-weight: 700; color: var(--gold);
  background: rgba(201,169,110,0.1); border: 1px solid rgba(201,169,110,0.25);
  padding: 1px 6px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}

/* ===== 端内签到按钮 ===== */
.lm-checkin-btn {
  margin: 6px 10px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(201,169,110,0.06));
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.lm-checkin-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.lm-checkin-btn:hover::before { opacity: 1; }
.lm-checkin-left {
  display: flex; align-items: center; gap: 7px;
}
.lm-checkin-icon { font-size: 1.1rem; flex-shrink: 0; animation: candleGlow 2s ease-in-out infinite; }
@keyframes candleGlow {
  0%,100% { filter: drop-shadow(0 0 2px rgba(255,180,50,0.4)); }
  50% { filter: drop-shadow(0 0 6px rgba(255,180,50,0.9)); }
}
.lm-checkin-info { display: flex; flex-direction: column; gap: 1px; }
.lm-checkin-title { font-size: 0.66rem; font-weight: 700; color: var(--gold-light); letter-spacing: 0.03em; }
.lm-checkin-sub { font-size: 0.56rem; color: rgba(255,255,255,0.4); }
.lm-checkin-sub b { color: var(--gold); }
.lm-checkin-right {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.lm-checkin-pts {
  font-size: 0.64rem; font-weight: 700; color: var(--gold-light);
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 1px 7px; border-radius: 50px;
}
.lm-checkin-action {
  font-size: 0.66rem; font-weight: 700;
  color: #0d0a08;
  background: linear-gradient(135deg, #e8c98a, #c9a96e);
  border: none; border-radius: 6px;
  padding: 4px 12px; cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.lm-checkin-action:hover { filter: brightness(1.1); transform: scale(1.04); }
.lm-checkin-action:active { transform: scale(0.96); }
.lm-checkin-action.done {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
  cursor: not-allowed;
  filter: none; transform: none;
}
.lm-checkin-action.done:hover { filter: none; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .ways-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dice-arena { grid-template-columns: 1fr 120px 1fr; }
  .pc-reveal, .pc-locked-reveal { grid-template-columns: 1fr; }
  .pc-fog img, .pc-img-wrap img { height: 100px; }
  .ingame-desc { grid-template-columns: repeat(2, 1fr); }
  .lm-body { grid-template-columns: 220px 1fr; }
  .rewards-cups { flex-direction: column; }
  .cup-connector { display: none; }
}
@media (max-width: 768px) {
  #navbar .nav-links { display: none; }
  .section { padding: 60px 0; }
  .ways-grid-4 { grid-template-columns: 1fr; }
  .dice-arena { grid-template-columns: 1fr 100px 1fr; gap: 8px; }
  .die { width: 40px; height: 40px; font-size: 1.5rem; }
  .gw-milestones { display: none; }
  .dhc-content { flex-direction: column; text-align: center; }
  .lm-body { grid-template-columns: 1fr; }
  .lm-col--left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .ingame-desc { grid-template-columns: 1fr; }
}
