/* ============================================================
   德语对对碰 - 全局样式（深色/浅色双主题）
   ============================================================ */

/* ============ 主题变量：浅色（默认） ============ */
:root {
  --brand-orange: #F5A623;
  --brand-gold: #FFD700;
  --brand-light-gold: #F9E076;
  --brand-green: #5CB85C;

  /* 背景层 */
  --bg-body: linear-gradient(180deg, #f0f4f8 0%, #e8ecf3 60%, #dde3ed 100%);
  --bg-wrapper: rgba(255, 255, 255, 0.72);
  --bg-wrapper-border: rgba(245, 166, 35, 0.28);
  --bg-wrapper-shadow: 0 20px 50px rgba(45, 55, 72, 0.15),
    inset 0 0 35px rgba(245, 166, 35, 0.05);

  /* 文字 */
  --text-primary: #2d3748;
  --text-secondary: rgba(45, 55, 72, 0.62);
  --text-muted: rgba(45, 55, 72, 0.42);
  --text-on-accent: #ffffff;
  --text-accent: #b8780a;
  --text-accent-bright: #d97706;
  --text-success: #3a8a3a;
  --text-danger: #c0392b;

  /* 卡片表面 */
  --surface-card: rgba(255, 255, 255, 0.55);
  --surface-card-hover: rgba(245, 166, 35, 0.12);
  --surface-input: rgba(45, 55, 72, 0.04);
  --surface-bar-track: rgba(45, 55, 72, 0.12);

  /* 边框 */
  --border-default: rgba(45, 55, 72, 0.14);
  --border-accent: rgba(245, 166, 35, 0.32);
  --border-divider: rgba(45, 55, 72, 0.08);

  /* 覆盖层 */
  --overlay-bg: rgba(245, 248, 252, 0.92);
  --overlay-blur: blur(15px);
  --memorize-bg: rgba(245, 248, 252, 0.95);

  /* 封面 */
  --cover-bg: linear-gradient(135deg, #f5f9fc 0%, #eaf1f8 50%, #e0e8f3 100%);
  --cover-bg-glow-1: rgba(245, 166, 35, 0.18);
  --cover-bg-glow-2: rgba(92, 184, 92, 0.12);
  --cover-bg-glow-3: rgba(255, 215, 0, 0.10);
  --cover-text: #2d3748;
  --cover-subtitle: rgba(45, 55, 72, 0.55);
  --cover-word-bg: rgba(255, 255, 255, 0.6);
  --cover-word-text: #b8780a;
  --cover-loading: rgba(45, 55, 72, 0.5);

  --tile-width: 76px;
  --tile-height: 100px;
  --gap: 4px;

  /* 词性区分颜色（词库） */
  --word-verb-color: #6c5ce7;       /* 动词 - 紫蓝 */
  --word-adjektiv-color: #16a085;   /* 形容词 - 青绿 */
  --word-other-color: #6c7a89;      /* 其他 - 中性灰蓝 */

  /* 各界面层级轻微染色（浅色） */
  --screen-tint-series: rgba(66, 153, 225, 0.10);
  --screen-tint-map: rgba(56, 178, 172, 0.10);
  --screen-tint-levels: rgba(237, 137, 54, 0.10);
  --screen-tint-game: rgba(128, 90, 213, 0.08);
  --screen-tint-browser: rgba(0, 193, 196, 0.10);
  --screen-tint-settings: rgba(113, 128, 150, 0.08);
}

/* ============ 主题变量：深色 ============ */
[data-theme="dark"] {
  --bg-body: linear-gradient(180deg, #1e1e3a 0%, #1a1a2e 60%, #16162e 100%);
  --bg-wrapper: rgba(30, 30, 50, 0.6);
  --bg-wrapper-border: rgba(245, 166, 35, 0.25);
  --bg-wrapper-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
    inset 0 0 35px rgba(245, 166, 35, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-on-accent: #ffffff;
  --text-accent: #f9e076;
  --text-accent-bright: #f5a623;
  --text-success: #90d990;
  --text-danger: #e74c3c;

  --surface-card: rgba(255, 255, 255, 0.08);
  --surface-card-hover: rgba(245, 166, 35, 0.12);
  --surface-input: rgba(255, 255, 255, 0.1);
  --surface-bar-track: rgba(0, 0, 0, 0.4);

  --border-default: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(245, 166, 35, 0.3);
  --border-divider: rgba(255, 255, 255, 0.08);

  --overlay-bg: rgba(0, 0, 0, 0.85);
  --overlay-blur: blur(15px);
  --memorize-bg: rgba(0, 0, 0, 0.9);

  --cover-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --cover-bg-glow-1: rgba(245, 166, 35, 0.15);
  --cover-bg-glow-2: rgba(92, 184, 92, 0.12);
  --cover-bg-glow-3: rgba(255, 215, 0, 0.08);
  --cover-text: #ffffff;
  --cover-subtitle: rgba(255, 255, 255, 0.7);
  --cover-word-bg: rgba(255, 255, 255, 0.1);
  --cover-word-text: #f9e076;
  --cover-loading: rgba(255, 255, 255, 0.6);

  /* 词性区分颜色（深色，比浅色稍亮） */
  --word-verb-color: #a29bfe;        /* 动词 - 紫蓝亮 */
  --word-adjektiv-color: #55efc4;    /* 形容词 - 青绿亮 */
  --word-other-color: #a0aec0;       /* 其他 - 中性灰蓝亮 */

  /* 各界面层级轻微染色（深色，比浅色稍强） */
  --screen-tint-series: rgba(66, 153, 225, 0.14);
  --screen-tint-map: rgba(56, 178, 172, 0.14);
  --screen-tint-levels: rgba(237, 137, 54, 0.14);
  --screen-tint-game: rgba(128, 90, 213, 0.12);
  --screen-tint-browser: rgba(0, 193, 196, 0.14);
  --screen-tint-settings: rgba(160, 174, 192, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overscroll-behavior: none; touch-action: manipulation; }

/* ============ 封面层（始终深色：词云亮色在暗底上效果最佳） ============ */
.cover-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  overflow: visible; transition: opacity 0.6s ease, transform 0.6s ease;
}
.cover-screen.hide { opacity: 0; transform: scale(1.05); pointer-events: none; }
.cover-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.cover-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(92, 184, 92, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
}
/* ============ 封面3D词云球体 ============ */
.cover-content {
  position: relative; z-index: 2; text-align: center;
  color: #ffffff;
  padding: 24px 16px 30px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
/* 封面子元素初始隐藏（等待词云渲染就绪后 fade-in） */
.cover-content > *:not(#cover-cloud-container) {
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* 词云加载完成后取消延迟，所有元素 fade-in */
.cover-content.cover-ready > *:not(#cover-cloud-container) {
  opacity: 1;
}
.cover-title {
  font-size: 2.6rem; font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(135deg, #f9e076, #f5a623, #ff8c00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(245, 166, 35, 0.4);
  animation: coverTitleIn 0.8s ease-out;
}
@keyframes coverTitleIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cover-subtitle {
  font-size: 1.05rem; color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px; margin-bottom: 16px;
  font-style: normal; font-weight: 400;
  font-family: 'Nunito', 'Noto Sans SC', -apple-system, 'Segoe UI', sans-serif;
}
/* Three.js 3D词云容器：球面分布的德语单词 + 中心品牌图标 */
/* 容器仅占位，实际渲染由 WebGL canvas 填充 */
.cover-decorations {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 8px 0 24px;
  overflow: visible;
}
#cover-cloud-container {
  width: 100%;
  height: 100%;
  position: relative;
}
#cover-cloud-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* 启动按钮内ü品牌图标 + 浮动动画（继承原logo浮动效果） */
.cover-enter-btn {
  background: linear-gradient(135deg, #f5a623, #ff8c00);
  border: none; color: #fff; font-size: 1.1rem; font-weight: bold;
  padding: 14px 40px; border-radius: 30px; cursor: pointer;
  letter-spacing: 2px; box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: coverBtnFloat 3s ease-in-out infinite;
  display: inline-flex; align-items: center; gap: 10px;
  filter: drop-shadow(0 0 20px rgba(245, 166, 35, 0.5));
}
@keyframes coverBtnFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}
.cover-btn-icon {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
  vertical-align: middle;
}
.cover-loading {
  color: rgba(255, 255, 255, 0.6); font-size: 0.9rem;
  animation: coverPulse 1.2s ease-in-out infinite;
}
@keyframes coverPulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes coverBtnIn {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.cover-enter-btn:hover {
  box-shadow: 0 16px 36px rgba(245, 166, 35, 0.8);
  filter: drop-shadow(0 0 28px rgba(245, 166, 35, 0.7)) brightness(1.1);
}
.cover-enter-btn:active { filter: brightness(0.95); }

/* 封面底部机构logo + 专利文字（深色封面固定配色） */
.cover-copyright {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px; opacity: 0.85;
}
/* ============ 启动过场动画（2秒"至元德语出品"加载） ============ */
.splash-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.splash-screen.show { opacity: 1; }
.splash-content {
  text-align: center; color: #fff;
  animation: splashIn 0.5s ease-out;
}
@keyframes splashIn {
  0%   { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.splash-logo {
  width: 180px; max-width: 60vw; margin-bottom: 18px;
  filter: drop-shadow(0 0 30px rgba(245, 166, 35, 0.7));
  animation: splashLogoPulse 1.5s ease-in-out infinite;
}
@keyframes splashLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 25px rgba(245, 166, 35, 0.6)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 40px rgba(245, 166, 35, 0.9)); }
}
.splash-text {
  font-size: 1.3rem; font-weight: bold; letter-spacing: 4px;
  color: #f9e076; margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(245, 166, 35, 0.6);
}
.splash-bar {
  width: 160px; height: 4px; background: rgba(255, 255, 255, 0.15);
  border-radius: 4px; overflow: hidden; margin: 0 auto;
}
.splash-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #f5a623, #ff8c00);
  border-radius: 4px;
  animation: splashBarFill 1.8s ease-out forwards;
}
@keyframes splashBarFill {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* 品牌ü图标样式（50星计数标志） */
.star-icon.brand-u {
  vertical-align: -3px; margin: 0 2px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(245, 166, 35, 0.5);
}

/* 设置页底部品牌专利信息 */
.brand-footer {
  flex-shrink: 0; text-align: center; padding: 8px 12px 4px;
  border-top: 1px solid var(--border-divider);
}
.brand-footer-logo {
  width: 100px; max-width: 40vw; height: auto; margin-bottom: 4px;
  opacity: 0.85;
}
.brand-footer-text {
  font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px;
}

body {
  background: var(--bg-body);
  /* Nunito：圆润友好，完整支持德语 ä ö ü ß；Noto Sans SC：中文匹配 */
  font-family: 'Nunito', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
    'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  min-height: 100vh; min-height: 100dvh;
  display: flex; justify-content: center; align-items: center;
  padding: 6px; overflow: hidden;
  color: var(--text-primary);
}

/* ============================================================
   主容器
   ============================================================ */
.game-wrapper {
  position: relative; width: 100%; max-width: 690px;
  height: 90vh; height: 90dvh; max-height: 820px; min-height: 540px;
  background: var(--bg-wrapper); backdrop-filter: blur(20px);
  border: 2px solid var(--bg-wrapper-border); border-radius: 36px;
  box-shadow: var(--bg-wrapper-shadow);
  padding: 10px 12px 12px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; overflow: hidden;
  color: var(--text-primary);
}

/* ============ 不同界面层级轻微染色 ============ */
/* 教材选择 - 淡蓝 */
.game-wrapper[data-screen="series"] {
  background:
    linear-gradient(180deg, var(--screen-tint-series) 0%, var(--bg-wrapper) 60%);
}
/* 大地图 - 淡绿 */
.game-wrapper[data-screen="map"] {
  background:
    linear-gradient(180deg, var(--screen-tint-map) 0%, var(--bg-wrapper) 60%);
}
/* 关卡选择 - 淡橙 */
.game-wrapper[data-screen="levels"] {
  background:
    linear-gradient(180deg, var(--screen-tint-levels) 0%, var(--bg-wrapper) 60%);
}
/* 游戏 - 淡紫 */
.game-wrapper[data-screen="game"] {
  background:
    linear-gradient(180deg, var(--screen-tint-game) 0%, var(--bg-wrapper) 60%);
}
/* 词库浏览 - 淡青 */
.game-wrapper[data-screen="browser"] {
  background:
    linear-gradient(180deg, var(--screen-tint-browser) 0%, var(--bg-wrapper) 60%);
}
/* 设置 - 淡灰蓝 */
.game-wrapper[data-screen="settings"] {
  background:
    linear-gradient(180deg, var(--screen-tint-settings) 0%, var(--bg-wrapper) 60%);
}

/* ============================================================
   顶部导航栏
   ============================================================ */
.top-nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 4px 8px; flex-shrink: 0; z-index: 10;
}
.nav-title {
  font-size: 1.3rem; font-weight: bold; color: var(--text-accent);
}
.nav-actions { display: flex; gap: 6px; }
.nav-btn {
  background: var(--surface-card); border: 1px solid var(--border-default);
  color: var(--text-primary); padding: 5px 12px; border-radius: 16px; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.nav-btn:hover { background: var(--surface-card-hover); border-color: var(--border-accent); }

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  background: var(--surface-card); backdrop-filter: blur(10px);
  border: 1px solid var(--border-default); padding: 8px 22px;
  border-radius: 30px; font-size: 0.9rem; font-weight: bold; color: var(--text-primary);
  letter-spacing: 1px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer; transition: all 0.2s;
}
.btn:hover { background: var(--surface-card-hover); border-color: var(--border-accent); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
.btn-primary { background: linear-gradient(135deg, #f5a623, #ff8c00); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #ffb840, #ffa020); }
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* ============================================================
   底部操作栏（移动友好）
   ============================================================ */
.bottom-bar { flex-shrink: 0; display: flex; gap: 10px; justify-content: center; padding: 8px 12px 6px; width: 100%; border-top: 1px solid var(--border-divider); }
.bottom-bar .btn { flex: 1; max-width: 180px; }
/* 底部按钮：图标+文字一行内显示，对称布局（需求10） */
.bottom-btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; white-space: nowrap; }
.bb-icon { font-size: 1rem; line-height: 1; }
.bb-label { font-size: 0.9rem; }

/* 星级 SVG 图标对齐（需求4） */
.star-icon { vertical-align: -2px; margin: 0 1px; display: inline-block; }

/* 设置页图标含义图例（需求5） */
.setting-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px;
  font-size: 0.78rem; color: var(--text-secondary);
}
.lg-item { display: inline-flex; align-items: center; gap: 4px; }
.lg-star { color: #FFD700; font-weight: bold; text-shadow: 0 0 4px rgba(255, 215, 0, 0.5); }

/* ============================================================
   教材选择界面
   ============================================================ */
.screen { width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen-header { text-align: center; padding: 16px 8px 8px; flex-shrink: 0; }
.screen-header h2 { font-size: 1.6rem; color: var(--text-accent); margin-bottom: 4px; }
.screen-header p { color: var(--text-secondary); font-size: 0.85rem; }

.series-list { display: flex; flex-direction: column; gap: 12px; padding: 8px; }
.series-card {
  background: var(--surface-card); backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent); border-radius: 20px;
  padding: 18px 20px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 16px;
}
.series-card:hover {
  background: var(--surface-card-hover); border-color: var(--brand-orange);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 166, 35, 0.18);
}
.series-icon { font-size: 2.5rem; flex-shrink: 0; }
.series-info { flex: 1; }
.series-name { font-size: 1.2rem; font-weight: bold; color: var(--text-accent); }
.series-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.series-units-count { font-size: 0.75rem; color: var(--text-success); margin-top: 4px; }

/* ============================================================
   大地图界面（单元路径）
   ============================================================ */
.world-map-container { flex: 1 1 auto; overflow-y: auto; padding: 12px; }
.world-map-title { text-align: center; font-size: 1.3rem; color: var(--text-accent); margin-bottom: 12px; }
.map-path { display: flex; flex-direction: column; gap: 0; align-items: center; }
.unit-node-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; }
.unit-node {
  background: var(--surface-card-hover); border: 2px solid var(--border-accent);
  border-radius: 20px; padding: 14px 24px; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 90%;
}
.unit-node:hover { background: rgba(245, 166, 35, 0.2); transform: scale(1.03); }
.unit-node.locked {
  background: var(--surface-input); border-color: var(--border-default);
  cursor: not-allowed; opacity: 0.5;
}
.unit-node.completed {
  background: rgba(92, 184, 92, 0.15); border-color: rgba(92, 184, 92, 0.5);
}
.unit-node.current {
  background: rgba(245, 166, 35, 0.22); border-color: var(--brand-orange);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes nodePulse { 0%,100%{box-shadow: 0 0 20px rgba(245,166,35,0.4)} 50%{box-shadow: 0 0 30px rgba(245,166,35,0.7)} }
.unit-num { font-size: 1.5rem; font-weight: bold; color: var(--text-accent); min-width: 32px; text-align: center; }
.unit-info { flex: 1; }
.unit-name { font-size: 1rem; font-weight: bold; color: var(--text-primary); }
.unit-stars { font-size: 0.8rem; color: var(--text-accent); margin-top: 2px; letter-spacing: 1px; }
.inline-stars { color: #FFD700; font-weight: bold; text-shadow: 0 0 6px rgba(255, 215, 0, 0.5); }
.unit-lock { font-size: 1.2rem; }
.map-connector { width: 2px; height: 24px; background: linear-gradient(180deg, var(--border-accent), var(--border-divider)); }

/* ============================================================
   关卡选择界面
   ============================================================ */
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 8px; }
.level-card {
  background: var(--surface-card); border: 2px solid var(--border-default);
  border-radius: 14px; padding: 10px 8px; cursor: pointer;
  transition: all 0.2s; position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.level-card:hover { background: var(--surface-card-hover); border-color: var(--border-accent); transform: translateY(-2px); }
.level-card.locked { opacity: 0.4; cursor: not-allowed; }
.level-card.completed { border-color: rgba(92, 184, 92, 0.5); background: rgba(92, 184, 92, 0.1); }
.level-card.current { border-color: var(--brand-orange); box-shadow: 0 0 15px rgba(245, 166, 35, 0.3); }
/* 第1行：关卡标签 + 编号（如：第 1 关 2-1）水平排列 */
.level-info-row { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.level-label { font-size: 0.85rem; color: var(--text-secondary); }
.level-num { font-size: 1.2rem; font-weight: bold; color: var(--text-accent); }
.level-stars { font-size: 1rem; text-align: center; letter-spacing: 2px; }
/* 未解锁锁标：右上角绝对定位 */
.level-lock-icon {
  position: absolute; top: 4px; right: 6px; font-size: 1rem;
  opacity: 0.85; pointer-events: none;
}
.star-filled { color: #FFD700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
.star-empty { color: var(--text-muted); }

/* ============================================================
   游戏界面（对对碰网格）
   ============================================================ */
.info-panel {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; z-index: 10;
  flex-wrap: wrap; justify-content: center;
}
.level-badge, .pack-badge {
  font-weight: bold; font-size: 0.85rem; padding: 3px 12px; border-radius: 16px;
}
.level-badge { background: rgba(245, 166, 35, 0.2); color: var(--text-accent); border: 1px solid var(--border-accent); }
.pack-badge { background: rgba(92, 184, 92, 0.2); color: var(--text-success); border: 1px solid rgba(92, 184, 92, 0.4); }
.progress-bar-container {
  width: 160px; height: 10px; background: var(--surface-bar-track); border-radius: 10px;
  border: 1px solid var(--border-default); overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #00E676, #00C853);
  border-radius: 10px;
  transition: width 0.3s linear, background 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}
.progress-bar-container.shake { animation: progressShake 0.3s infinite; }
@keyframes progressShake { 0%{transform:translateX(0)} 25%{transform:translateX(-3px)} 50%{transform:translateX(3px)} 75%{transform:translateX(-2px)} 100%{transform:translateX(0)} }

/* 连击加血视觉：血条短暂脉冲发光（溢出可见以显示外发光） */
.progress-bar-container.heal-pulse {
  overflow: visible;
  animation: healPulse 0.8s ease-out;
}
.progress-bar-container.heal-pulse .progress-fill {
  animation: healFillPulse 0.8s ease-out;
}
@keyframes healPulse {
  0%   { transform: scaleY(1); filter: drop-shadow(0 0 0 rgba(0, 230, 118, 0)); }
  25%  { transform: scaleY(1.4); filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.9)); }
  100% { transform: scaleY(1); filter: drop-shadow(0 0 0 rgba(0, 230, 118, 0)); }
}
@keyframes healFillPulse {
  0%   { box-shadow: 0 0 10px rgba(0, 230, 118, 0.6); }
  25%  { box-shadow: 0 0 20px rgba(0, 230, 118, 1), 0 0 35px rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 0 10px rgba(0, 230, 118, 0.6); }
}
/* 连击加血飘字 "+2 秒" */
.time-heal-float {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  color: #00E676;
  font-size: 0.85rem;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
  pointer-events: none;
  white-space: nowrap;
  animation: healFloat 1s ease-out forwards;
  z-index: 5;
}
@keyframes healFloat {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20%  { opacity: 1; transform: translate(-50%, -8px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(1); }
}

.time-text {
  color: var(--text-accent); font-weight: bold; font-size: 0.85rem;
  min-width: 38px; text-align: center;
  transition: color 0.3s;
}

@keyframes glowExpand {
  0%   { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

.stage {
  flex: 1 1 auto; width: 100%; min-height: 0; display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: visible; z-index: 20;
  touch-action: manipulation;
}
.tile-grid { display: grid; gap: var(--gap); justify-content: center; align-content: center; padding: 4px; }
.cell { width: var(--tile-width); height: var(--tile-height); position: relative; }

/* 麻将牌（游戏牌面，两套主题下保持金色质感） */
.mahjong-tile {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #f9e076 0%, #f5a623 100%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid rgba(0, 0, 0, 0.25); border-radius: 12px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15), 0 10px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.8), inset 0 -3px 8px rgba(0, 0, 0, 0.1);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; cursor: pointer; font-weight: 700; color: #2d1b0e; padding: 2px;
  user-select: none; position: relative; z-index: 1;
  word-break: break-word; overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, filter 0.2s;
}
.mahjong-tile:nth-child(even) { background: linear-gradient(145deg, #ffdab9 0%, #ffe4b5 100%); }
.mahjong-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.12), 0 18px 28px rgba(0, 0, 0, 0.35),
    inset 0 2px 6px rgba(255, 255, 255, 0.85), inset 0 -3px 8px rgba(0, 0, 0, 0.08);
}
.mahjong-tile.selected {
  border-color: #f5a623; border-top: 3px solid #fff; border-left: 3px solid #ffe680;
  border-right: 3px solid #d4891a; border-bottom: 4px solid #b57c2a;
  box-shadow: 0 12px 0 rgba(200, 140, 0, 0.35), 0 16px 30px rgba(245, 166, 35, 0.5),
    0 0 35px rgba(245, 166, 35, 0.6), inset 0 2px 8px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px); filter: brightness(1.08);
}
.mahjong-tile.obstacle {
  background: linear-gradient(145deg, #bdc3c7, #95a5a6) !important;
  border-color: rgba(255, 255, 255, 0.5); color: #fff; cursor: not-allowed;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2), 0 10px 16px rgba(0, 0, 0, 0.3);
}
.tile-de {
  font-size: 0.95rem; line-height: 1.15;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  position: relative; z-index: 1;
  max-height: 2.3em; overflow: hidden;
  width: 100%; padding: 0 1px;
}
/* 长德语单词自动缩小字号 */
.tile-de[data-len="long"]  { font-size: 0.78rem; }
.tile-de[data-len="xlong"] { font-size: 0.65rem; }
.tile-zh {
  font-size: 0.9rem; line-height: 1.15; margin-top: 1px;
  opacity: 0.9; position: relative; z-index: 1;
  word-break: normal; overflow-wrap: break-word;
  width: 100%; padding: 0 1px;
}
.article-dot {
  position: absolute; top: 3px; left: 3px;
  width: 7px; height: 7px; border-radius: 50%; z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.article-dot.der { background: #4A90D9; }
.article-dot.die { background: #E8919D; }
.article-dot.das { background: #5CB85C; }

.path-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.message-area {
  min-height: 20px; font-size: 0.85rem; color: var(--text-primary); font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); flex-shrink: 0; text-align: center; z-index: 10;
}
.score-badge-area {
  position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px; z-index: 50; max-height: 60%; overflow: hidden;
}
.pair-badge {
  background: var(--surface-card); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: 20px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: bold; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); animation: badgePop 0.4s ease-out; flex-shrink: 0;
}
@keyframes badgePop { 0%{transform:scale(0);opacity:0} 70%{transform:scale(1.2)} 100%{transform:scale(1);opacity:1} }
.combo-text {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  font-size: 4rem; font-weight: 900; color: #f5a623;
  text-shadow: 0 0 30px #f5a623, 0 0 60px #f5a623, 0 0 80px white;
  pointer-events: none; z-index: 60; white-space: nowrap;
  animation: comboBoom 0.9s ease-out forwards;
}
@keyframes comboBoom { 0%{transform:translate(-50%,-50%) scale(0.3);opacity:1} 30%{transform:translate(-50%,-50%) scale(1.5);opacity:1} 100%{transform:translate(-50%,-50%) scale(1.8);opacity:0} }
.shatter-particle { position: absolute; pointer-events: none; z-index: 45; width: 12px; height: 12px; background: #f5a623; border-radius: 3px; box-shadow: 0 0 12px #f5a623; animation: particleFly 0.6s ease-out forwards; }
@keyframes particleFly { 0%{transform:translate(0,0) scale(1);opacity:1} 100%{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0} }

/* ============================================================
   词库浏览界面
   ============================================================ */
.browser-controls { display: flex; gap: 8px; padding: 8px 12px; flex-wrap: wrap; justify-content: center; }
.browser-search {
  background: var(--surface-input); border: 1px solid var(--border-default);
  border-radius: 16px; padding: 6px 14px; color: var(--text-primary); font-size: 0.85rem;
  width: 180px; outline: none;
}
.browser-search::placeholder { color: var(--text-muted); }
.browser-search:focus { border-color: var(--border-accent); }
.word-list { flex: 1 1 auto; overflow-y: auto; padding: 4px 12px; }
.word-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 6px;
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: 12px; transition: all 0.15s;
}
.word-item:hover { background: var(--surface-card-hover); border-color: var(--border-accent); }
.word-article { font-size: 0.75rem; font-weight: bold; padding: 2px 8px; border-radius: 8px; flex-shrink: 0; min-width: 40px; text-align: center; }
.word-article.der { background: rgba(74, 144, 217, 0.3); color: #4A90D9; }
.word-article.die { background: rgba(232, 145, 157, 0.3); color: #E8919D; }
.word-article.das { background: rgba(92, 184, 92, 0.3); color: var(--text-success); }
/* 需求3：无冠词条目使用空占位，仅保留宽度，不显示色块 */
.word-article-empty { display: inline-block; flex-shrink: 0; min-width: 40px; }
.word-de { font-size: 1rem; font-weight: bold; color: var(--text-accent); flex: 1; }
/* 需求4：按词性区分字体颜色 */
.word-de.verb { color: var(--word-verb-color); }
.word-de.adjektiv { color: var(--word-adjektiv-color); }
.word-de.other { color: var(--word-other-color); }
.word-zh { font-size: 0.9rem; color: var(--text-secondary); }
.word-audio-btn {
  background: rgba(245, 166, 35, 0.2); border: 1px solid var(--border-accent);
  border-radius: 50%; width: 28px; height: 28px; color: var(--brand-orange);
  cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.word-audio-btn:hover { background: rgba(245, 166, 35, 0.4); transform: scale(1.1); }

/* ============================================================
   配置界面
   ============================================================ */
.settings-list { padding: 12px; display: flex; flex-direction: column; gap: 16px; }
.setting-item {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: 16px; padding: 14px 18px;
}
.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.setting-row .setting-label { margin-bottom: 0; flex-shrink: 0; }
.setting-row .setting-options { flex-shrink: 0; }
.setting-label { font-size: 0.95rem; color: var(--text-accent); font-weight: bold; margin-bottom: 8px; }
.setting-desc { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 10px; }
.setting-options { display: flex; gap: 8px; flex-wrap: wrap; }
.setting-option {
  background: var(--surface-input); border: 1px solid var(--border-default);
  border-radius: 14px; padding: 8px 16px; color: var(--text-primary); cursor: pointer;
  font-size: 0.85rem; transition: all 0.2s;
}
/* 难度按钮：固定宽度保证一行三按钮 */
.diff-options { flex-wrap: nowrap !important; }
.diff-btn { min-width: 56px; padding: 8px 10px !important; font-size: 0.82rem !important; text-align: center; }
/* 星数居中 */
.setting-stars-center { text-align: center; color: var(--text-secondary); margin: 6px 0 2px; }
.setting-option:hover { background: var(--surface-card-hover); border-color: var(--border-accent); }
.setting-option.active {
  background: linear-gradient(135deg, #f5a623, #ff8c00); border-color: rgba(255, 255, 255, 0.4);
  color: #fff; font-weight: bold;
}
.setting-danger { border-color: rgba(231, 76, 60, 0.3) !important; }
.setting-danger .setting-label { color: var(--text-danger); }
.btn-sm-danger { padding: 6px 16px !important; font-size: 0.82rem !important; flex-shrink: 0; }

/* ============================================================
   弹窗/覆盖层
   ============================================================ */
.overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--overlay-bg); backdrop-filter: var(--overlay-blur); border-radius: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 100; color: var(--text-primary); text-align: center; padding: 20px; gap: 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.overlay h2 { font-size: 2rem; margin-bottom: 8px; color: var(--text-accent); }
.overlay p { color: var(--text-secondary); font-size: 0.9rem; }
.overlay-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.result-stars { font-size: 3rem; letter-spacing: 8px; margin: 8px 0; }
.result-star-anim { animation: starPop 0.5s ease-out forwards; opacity: 0; }
@keyframes starPop { 0%{transform:scale(0) rotate(-180deg);opacity:0} 70%{transform:scale(1.3) rotate(10deg);opacity:1} 100%{transform:scale(1) rotate(0);opacity:1} }

/* 记忆时间面板 */
.memorize-panel {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--memorize-bg); backdrop-filter: blur(20px); border-radius: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 100; color: var(--text-primary); padding: 20px; gap: 16px; overflow-y: auto;
}
.memorize-title { font-size: 1.5rem; color: var(--text-accent); }

/* 记忆面板底部操作行：退出 + 加速（居中对齐） */
.memorize-bottom-row {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 4px 6px; flex-shrink: 0;
}
.memorize-quit-btn {
  background: rgba(192, 57, 43, 0.15); border: 1px solid rgba(192, 57, 43, 0.4);
  color: var(--text-danger); font-size: 0.8rem; font-weight: bold;
  padding: 5px 14px; border-radius: 16px; cursor: pointer; transition: all 0.2s;
}
.memorize-quit-btn:hover { background: rgba(192, 57, 43, 0.3); }

/* 加速按钮（需求9·长按快进） */
.memorize-speed-btn {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(162, 155, 254, 0.2));
  border: 2px solid rgba(108, 92, 231, 0.5); color: #6c5ce7;
  font-size: 0.95rem; font-weight: bold; padding: 8px 24px;
  border-radius: 24px; cursor: pointer; user-select: none;
  transition: transform 0.15s, box-shadow 0.15s; touch-action: none;
}
.memorize-speed-btn.charging {
  transform: scale(1.12);
  background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: #fff;
  box-shadow: 0 0 25px rgba(108, 92, 231, 0.8), 0 0 50px rgba(162, 155, 254, 0.5);
  animation: speedCharge 0.5s ease-in-out infinite alternate;
}
@keyframes speedCharge {
  0%   { box-shadow: 0 0 20px rgba(108, 92, 231, 0.6); }
  100% { box-shadow: 0 0 35px rgba(108, 92, 231, 0.95), 0 0 60px rgba(162, 155, 254, 0.6); }
}

/* 记忆/观察阶段：隐藏游戏舞台元素，防止记忆面板出现前闪现牌面（需求3） */
.phase-setup .stage,
.phase-setup .info-panel,
.phase-setup .message-area,
.phase-setup .score-badge-area,
.phase-setup .control-buttons { visibility: hidden; }
.memorize-countdown { font-size: 3rem; font-weight: 900; color: var(--brand-orange); text-shadow: 0 0 30px rgba(245, 166, 35, 0.5); }
.memorize-countdown.reading {
  font-size: 1.4rem; color: var(--text-success);
  text-shadow: 0 0 20px rgba(92, 184, 92, 0.5);
  animation: readingPulse 1.2s ease-in-out infinite;
}
@keyframes readingPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.word-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  width: 100%; max-width: 96%; justify-items: stretch;
}
.word-preview-card {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: 10px; padding: 8px 6px; text-align: center; min-height: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.wpc-de { font-size: 0.9rem; font-weight: bold; color: var(--text-accent); }
.wpc-zh { font-size: 0.75rem; color: var(--text-secondary); }

.word-preview-card.wiggling {
  animation: cardWiggle 0.5s ease-in-out;
  border-color: var(--brand-orange);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.6);
  background: rgba(245, 166, 35, 0.2);
}
@keyframes cardWiggle {
  0%   { transform: translateX(0) scale(1); }
  12%  { transform: translateX(-8px) scale(1.08); }
  25%  { transform: translateX(8px) scale(1.06); }
  37%  { transform: translateX(-6px) scale(1.08); }
  50%  { transform: translateX(6px) scale(1.05); }
  62%  { transform: translateX(-4px) scale(1.04); }
  75%  { transform: translateX(4px) scale(1.02); }
  100% { transform: translateX(0) scale(1); }
}

/* 静态观察阶段蒙版（弱化：仅轻微暗化与模糊，便于玩家观察牌面） */
.observe-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(0.5px);
  border-radius: 36px;
  z-index: 90;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: all;
}
.observe-overlay.show { opacity: 1; }
.observe-overlay.hide { opacity: 0; }
.observe-hint {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: observeHintPulse 1.2s ease-in-out infinite;
}
@keyframes observeHintPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}

/* 程序内退出确认弹窗（替换浏览器 window.confirm） */
.quit-confirm-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);
  border-radius: 36px; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.quit-confirm-overlay.show { opacity: 1; }
.quit-confirm-overlay.hide { opacity: 0; }
.quit-confirm-box {
  background: var(--surface-card); backdrop-filter: blur(16px);
  border: 2px solid var(--border-accent); border-radius: 20px;
  padding: 24px 28px; text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: confirmBoxIn 0.3s ease-out;
}
@keyframes confirmBoxIn {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.quit-confirm-title {
  font-size: 1.2rem; font-weight: bold;
  color: var(--text-primary); margin-bottom: 6px;
}
.quit-confirm-desc {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 18px;
}
.quit-confirm-btns {
  display: flex; gap: 12px; justify-content: center;
}

/* 游戏控制按钮区 */
.control-buttons {
  flex-shrink: 0; display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; position: relative; z-index: 10;
  padding: 4px 0;
}
.control-buttons .btn { padding: 6px 18px; font-size: 0.85rem; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 650px) {
  :root { --tile-width: 64px; --tile-height: 86px; --gap: 3px; }
  .tile-de { font-size: 0.82rem; }
  .tile-de[data-len="long"]  { font-size: 0.68rem; }
  .tile-de[data-len="xlong"] { font-size: 0.58rem; }
  .tile-zh { font-size: 0.78rem; }
  .nav-title { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  :root { --tile-width: 56px; --tile-height: 74px; --gap: 2px; }
  .tile-de { font-size: 0.72rem; }
  .tile-de[data-len="long"]  { font-size: 0.6rem; }
  .tile-de[data-len="xlong"] { font-size: 0.52rem; }
  .tile-zh { font-size: 0.7rem; }
}

/* ============================================================
   鉴权引导界面 (auth.js 注入)
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  box-sizing: border-box;
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: authCardIn 0.3s ease-out;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-icon {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}
.auth-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #1f2937;
}
.auth-card p {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}
.auth-card p strong { color: #d97706; }
.auth-input {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.auth-input:focus {
  outline: none;
  border-color: #667eea;
}
.auth-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  margin: 4px;
}
.auth-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.auth-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
  color: #6b7280;
}
.auth-hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}
