:root {
  /* Color System - Young & Minimalist (Fog Blue, Mint Green, Warm Coral) */
  --primary: #6B8EAD;        /* Fog Blue */
  --primary-light: #8EACC3;
  --success: #A8D5BA;        /* Mint Green */
  --danger: #E9967A;         /* Warm Coral */
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --border: #E0E4E8;
  --text-title: #1A1A1A;
  --text-body: #4A4A4A;
  --text-helper: #7A7A7A;
  --shadow: rgba(0, 0, 0, 0.05);
  
  /* Grid & Spacing */
  --grid: 8px;
  --radius: 12px;
  --spacing-lg: 24px;
  --touch-target: 48px;

  /* Motion */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px; /* 增加内边距 */
  background: rgba(255, 255, 255, 1); /* 提升背景不透明度 */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}

.headline-ticker {
  flex: 1;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  align-self: center;
  position: relative;
}

.headline-line {
  height: 44px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(107, 142, 173, 0.12);
  border: 1px solid rgba(107, 142, 173, 0.35);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
}

.headline-line.animating-out {
  transform: translateY(-44px);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1), opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.headline-line.animating-in {
  transform: translateY(0);
  opacity: 1;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1), opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.headline-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 22px;
  text-align: center;
}

.logo {
  font-size: 20px; font-weight: 800; /* 提升 Logo 存在感 */
  color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--text-title); font-weight: 400; }

.header-meta { display: flex; gap: 12px; align-items: center; }

.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 16px; font-weight: 600; color: var(--text-title);
  min-width: 50px; text-align: center;
}

/* ── EASTER EGG MODE ── */
body.easter-egg-mode .btn,
body.easter-egg-mode .news-card-actions,
body.easter-egg-mode .header-meta .btn,
body.easter-egg-mode .diff-card,
body.easter-egg-mode .difficulty-grid {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

/* 强制彩蛋模式下 UI 层彻底消失，确保背景交互优先 */
body.easter-egg-mode .home-inner,
body.easter-egg-mode header,
body.easter-egg-mode .scroll-hint {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transform: scale(1.1); /* 产生一种向背景深处钻入的视觉感 */
}

/* 按钮通用过渡样式 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 20px; /* 增加按钮高度和内边距 */
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600; /* 提升字号 */
  cursor: pointer; transition: var(--transition), opacity 0.5s ease, visibility 0.5s ease;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  position: relative; overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  opacity: 0; transition: var(--transition);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.96); }

.btn-gold { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(107, 142, 173, 0.3); }
.btn-gold:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(107, 142, 173, 0.4); }
.btn-outline { border-color: var(--border); color: var(--text-body); background: var(--surface); }
.btn-outline:hover { background: var(--background); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-red { background: var(--danger); color: white; }
.btn-red:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-lg { min-height: var(--touch-target); font-size: 16px; padding: 0 32px; }

/* ── SCREENS ── */
.screen { display: none; min-height: calc(100vh - 73px); padding: 40px 20px; }
.screen.active { display: flex; flex-direction: column; }

/* ── HOME SCREEN ── */
#home-screen { 
  align-items: center; justify-content: center; text-align: center; 
  position: relative; overflow: hidden;
}

/* ── UI HIDING ── */
header, 
.home-inner,
.scroll-hint {
  will-change: opacity, filter, transform;
}

header.ui-hidden {
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

#home-screen.ui-hidden .home-inner {
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  pointer-events: none;
}

#home-screen.ui-hidden .scroll-hint {
  opacity: 0;
  visibility: hidden;
}

/* ── BACKGROUND INTERACTION ── */
.scroll-bg-container {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; padding: 12px;
  z-index: 0;
  opacity: 0.4; /* 提升初始透明度，使背景图片更清晰 */
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.easter-egg-mode #home-screen {
  position: fixed;
  inset: 0;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
}

body.easter-egg-mode #scrollBgContainer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  gap: 4px !important;
  opacity: 1 !important;
  background: #000 !important;
  z-index: 9999 !important;
}

/* 彩蛋激活态：全屏背景沉浸模式 */
.scroll-bg-container.easter-egg-active {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  gap: 4px;
  opacity: 1;
  background: #000;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-bg-container.easter-egg-active .scroll-row {
  gap: 4px;
}

.scroll-bg-container.easter-egg-active .bg-photo-card {
  border-radius: 0; /* 移除圆角以实现拼接感 */
  opacity: 1;
}

.scroll-bg-container.at-bottom {
  opacity: 0.8;
}

.scroll-row {
  display: flex; flex-direction: column; gap: 12px;
  will-change: transform, filter;
  transform: translateZ(0); /* 开启 3D 加速 */
  pointer-events: none; /* 默认不响应交互，由 JS 动态开启 */
}

.scroll-row.row-interactable {
  pointer-events: auto;
}

.bg-photo-card {
  width: 100%; aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  border-radius: 8px;
  background-color: var(--border);
  position: relative;
  overflow: hidden;
  opacity: 0.6; /* 初始可见，但保持柔和 */
  transform: scale(1);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s ease, 
              opacity 0.6s ease-out;
}

/* 触底时完全聚焦显示 */
.at-bottom .bg-photo-card {
  opacity: 1;
  transform: scale(1.02);
}

/* 悬停效果 */
.row-interactable .bg-photo-card:hover,
.bg-photo-card:focus {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  z-index: 10;
}

.bg-photo-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light), 0 12px 24px rgba(0,0,0,0.3);
}

.img-error-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.1);
  font-size: 12px; color: var(--text-helper);
  text-align: center; padding: 10px;
}

/* 点击反馈 */
.bg-photo-card:active {
  transform: translateY(-4px) scale(0.96);
  transition: transform 0.1s ease;
}

/* 焦点卡片（弹窗打开时） */
.bg-photo-card.focused-card {
  transform: scale(1.15) !important;
  z-index: 100 !important;
  box-shadow: 0 0 0 4px var(--primary), 0 20px 40px rgba(0,0,0,0.4);
}

/* ── NEWS POPUP ── */
.news-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.news-popup-overlay.active {
  opacity: 1; visibility: visible;
}

.news-popup-content {
  background: var(--surface);
  width: 100%; max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}

.news-popup-overlay.active .news-popup-content {
  transform: scale(1);
}

.news-popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.3); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 10;
  transition: transform 0.3s ease, background 0.3s ease;
}

.news-popup-close:hover {
  transform: rotate(90deg);
  background: rgba(0,0,0,0.5);
}

.news-popup-image {
  width: 100%; height: 260px;
  background-size: cover; background-position: center;
}

.news-popup-body {
  padding: 24px 32px 32px;
}

.news-popup-category {
  display: inline-block;
  padding: 4px 12px; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700;
  margin-bottom: 12px;
}

.news-popup-title {
  font-size: 24px; font-weight: 800; color: var(--text-title);
  margin-bottom: 8px; line-height: 1.3;
}

.news-popup-date {
  font-size: 13px; color: var(--text-helper);
  margin-bottom: 16px; font-weight: 600;
}

.news-popup-desc {
  font-size: 15px; color: var(--text-body);
  line-height: 1.6;
}

/* ── SKELETON ANIMATION ── */
@keyframes skeleton-loading {
  0% { background-color: var(--border); }
  50% { background-color: var(--surface); }
  100% { background-color: var(--border); }
}

.skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.bg-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.bg-desc { font-size: 12px; opacity: 0.85; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.bg-meta { font-size: 11px; font-weight: 600; color: var(--primary-light); }

.home-inner { max-width: 800px; width: 100%; position: relative; z-index: 1; pointer-events: none; }
.home-inner > * { pointer-events: auto; }

.home-eyebrow {
  font-size: 12px; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.home-title {
  font-size: 48px; font-weight: 800; color: var(--text-title); /* 显著提升标题大小 */
  line-height: 1.1; margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.home-subtitle {
  font-size: 18px; color: var(--text-body); /* 增加字号并加深颜色提升对比度 */
  max-width: 600px; margin: 0 auto 48px;
  line-height: 1.6;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; color: var(--text-helper);
  font-size: 12px; font-weight: 600;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2;
}

.scroll-hint.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

.mouse {
  width: 24px; height: 40px;
  border: 2px solid var(--text-helper);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 4px; background: var(--primary);
  border-radius: 50%; transform: translateX(-50%);
  animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

.difficulty-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 40px;
}

.difficulty-grid.drag-sorting {
  -webkit-user-select: none;
  user-select: none;
  cursor: grabbing;
  touch-action: none;
}

/* ── CATEGORY SELECTOR ── */
.category-panel {
  width: min(760px, 92vw);
  margin: 0 auto 26px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.category-title {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-chip {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.cat-chip.selected {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.cat-chip:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.category-status {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.66);
}

/* ── OPTION HOVER PREVIEWS ── */
.diff-card {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 32px 24px; border-radius: 16px;
  cursor: pointer; transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.diff-card.dragging-sort {
  cursor: grabbing;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.diff-card.diff-placeholder {
  background: rgba(107, 142, 173, 0.08);
  border-style: dashed;
  box-shadow: none;
}

.option-preview-icon {
  position: absolute;
  top: -10px; right: -10px;
  font-size: 48px;
  opacity: 0.05;
  transform: rotate(15deg);
  transition: var(--transition);
  pointer-events: none;
}

.diff-card:hover .option-preview-icon {
  opacity: 0.15;
  transform: scale(1.2) rotate(0deg);
  right: 10px; top: 10px;
}
.diff-card:hover, .diff-card.selected {
  border-color: var(--primary);
  box-shadow: 0 12px 24px var(--shadow);
}
.diff-card.selected { background: rgba(107, 142, 173, 0.05); }

.diff-label { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.diff-name { font-size: 20px; font-weight: 700; color: var(--text-title); margin-bottom: 8px; }
.diff-desc { font-size: 14px; color: var(--text-helper); }

.home-actions { display: flex; gap: 16px; justify-content: center; }

/* ── GAME SCREEN ── */
#game-screen { max-width: 900px; margin: 0 auto; }

.game-info-bar {
  display: flex; justify-content: space-around;
  padding: 12px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 20px;
}

.game-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.game-stat-label { font-size: 11px; font-weight: 300; color: var(--text-helper); }
.game-stat-value { font-size: 16px; font-weight: 700; color: var(--text-title); }

.instruction-banner {
  font-size: 13px; color: var(--text-helper);
  text-align: center; margin-bottom: 20px;
}

/* ── TIMELINE ── */
.timeline-container { position: relative; width: 100%; padding: 0 40px 0 80px; }

.timeline-indicators {
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  pointer-events: none;
}

.indicator-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--text-helper);
  transition: var(--transition);
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px;
}

.indicator-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

.indicator-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.indicator-arrow:hover {
  color: var(--primary);
}
.indicator-arrow.up:hover { transform: translateY(-2px); }
.indicator-arrow.down:hover { transform: translateY(2px); }

.indicator-arrow.active {
  color: var(--primary);
}
.indicator-arrow.active .indicator-label {
  color: var(--primary);
}

.indicator-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), var(--primary), var(--border));
  margin: 8px 0;
  opacity: 0.3;
}

.timeline-axis {
  position: absolute; left: 80px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

.timeline-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}

.news-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px 10px 44px;
  cursor: grab; transition: var(--transition);
  -webkit-user-select: none; user-select: none;
  min-height: 64px;
}

.card-hover-preview {
  position: absolute;
  left: -110px; top: 50%;
  width: 100px; height: 100px;
  border-radius: 8px;
  background-size: cover; background-position: center;
  transform: translateY(-50%) scale(0.8);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border: 2px solid white;
  z-index: 100;
}

.news-card:hover .card-hover-preview {
  opacity: 1; transform: translateY(-50%) scale(1);
  left: -120px;
}
.news-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateX(2px);
}
.news-card.dragging { opacity: 0.5; cursor: grabbing; scale: 0.98; }
.news-card.drag-over { border-color: var(--primary); background: rgba(107, 142, 173, 0.05); }

.news-card.correct { border-color: var(--success); background: rgba(168, 213, 186, 0.1); }
.news-card.wrong { border-color: var(--danger); background: rgba(233, 150, 122, 0.1); }

.card-number {
  position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; background: var(--surface);
  border: 2px solid var(--primary); color: var(--primary);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; z-index: 2;
}

.card-drag-handle {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-helper);
  cursor: grab;
  transition: color var(--transition);
  z-index: 3;
}
.card-drag-handle:hover { color: var(--primary); }
.card-drag-handle svg { width: 18px; height: 18px; }

.card-category {
  font-size: 10px; font-weight: 700; color: var(--primary);
  margin-bottom: 1px; display: block;
  line-height: 1.2;
}

.card-title {
  font-size: 14px; font-weight: 700; color: var(--text-title);
  margin-bottom: 1px;
  line-height: 1.2;
}

.card-desc { 
  font-size: 12px; color: var(--text-body); 
  line-height: 1.3;
}

.card-status-icon { position: absolute; right: 10px; top: 10px; font-size: 14px; }

.card-date-hint {
  display: none; margin-top: 4px; padding-top: 4px;
  border-top: 1px dashed var(--border);
  font-size: 10px; font-weight: 300; color: var(--primary);
}
.card-date-hint.show { display: block; }

/* ── ACTIONS ── */
.game-actions {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 40px;
}

.result-bar {
  background: var(--surface); border: 1px solid var(--border);
  padding: 24px; border-radius: var(--radius);
  margin-top: 32px; display: none;
  align-items: center; justify-content: space-between;
}
.result-bar.show { display: flex; }
.result-score { font-size: 24px; font-weight: 800; color: var(--primary); }
.result-msg { font-size: 14px; color: var(--text-helper); }

/* ── LEADERBOARD ── */
.lb-inner { max-width: 700px; width: 100%; margin: 0 auto; }
.lb-title { font-size: 34px; font-weight: 800; color: var(--text-title); margin-bottom: 32px; text-align: center; }

.lb-tabs {
  display: flex; background: var(--surface);
  padding: 4px; border-radius: 12px;
  border: 1px solid var(--border); margin-bottom: 24px;
}
.lb-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--text-helper);
  border-radius: 8px; cursor: pointer; transition: var(--transition);
}
.lb-tab.active { background: var(--primary); color: white; }

.lb-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lb-table th { padding: 16px; text-align: left; font-size: 12px; color: var(--text-helper); border-bottom: 1px solid var(--border); }
.lb-table td { padding: 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.lb-cat-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text-body);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-cat-btn:hover { border-color: rgba(59, 130, 246, 0.35); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  display: none; align-items: center; justify-content: center; z-index: 200;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--surface); border-radius: 24px;
  width: 90%; max-width: 440px; padding: 40px;
  text-align: center; box-shadow: 0 24px 48px rgba(0,0,0,0.1);
}

.modal-icon { font-size: 64px; margin-bottom: 24px; }
.modal-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.modal-subtitle { font-size: 14px; color: var(--text-helper); margin-bottom: 32px; }

.modal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.modal-stat { background: var(--background); padding: 16px; border-radius: 16px; }
.modal-stat-label { font-size: 11px; font-weight: 600; color: var(--text-helper); margin-bottom: 4px; }
.modal-stat-value { font-size: 20px; font-weight: 800; color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header { padding: 12px 20px; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .timeline-container { padding: 0 16px 0 60px; }
  .timeline-axis { left: 60px; }
  .timeline-indicators { left: 4px; width: 50px; }
  .indicator-label { font-size: 10px; }
  .news-card { padding: 8px 12px 8px 40px; }
  .home-actions { flex-direction: column; }
}

/* ── UTILS ── */
.lb-score { color: var(--primary); font-weight: 700; }
.lb-mono { font-family: monospace; }
.lb-date { color: var(--text-helper); }

/* ── DROPDOWN ── */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none; position: absolute; bottom: 100%; right: 0;
  background: var(--surface); min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-radius: var(--radius); border: 1px solid var(--border);
  z-index: 10; margin-bottom: 8px; overflow: hidden;
}
.dropdown-content.show { display: block; }
.dropdown-content button {
  width: 100%; padding: 12px 16px; border: none; background: none;
  text-align: left; font-size: 14px; font-weight: 500; color: var(--text-body);
  cursor: pointer; transition: var(--transition);
}
.dropdown-content button:hover { background: var(--background); color: var(--primary); }

#drag-ghost {
  position: fixed; pointer-events: none; z-index: 999;
  display: none; background: var(--surface);
  border: 2px solid var(--primary); padding: 12px 16px;
  border-radius: var(--radius); box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.ghost-cat { font-size: 11px; font-weight: 700; color: var(--primary); }
.ghost-title { font-size: 14px; font-weight: 700; color: var(--text-title); }
