/* rank.css — 解谜琅琊榜（复用 style.css 令牌与 .game-ab 三栏布局） */

/* 中栏标题 */
.ly-title {
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0 2px;
  letter-spacing: .5px;
}

/* 通用面板（与 A区 玩法/难度卡同风格） */
.ly-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.ly-panel-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ly-head-sub { font-size: 11px; font-weight: 500; color: var(--text-3); }

/* 左：数谜选择列表（小号：图标+名字，点得到即可） */
.ly-gamelist { display: flex; flex-direction: column; gap: 4px; }
.ly-game {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .12s, border-color .12s, color .12s;
}
.ly-game:hover { background: var(--surface-3); color: var(--text); }
.ly-game.active { background: var(--accent-deep); border-color: var(--accent); color: var(--accent); }
.ly-game .ly-gicon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.ly-game.active .ly-gicon { background: rgba(62, 139, 255, .2); }

/* 中：难度 pills（横向小号） */
.ly-diff-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ly-diff {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1.5px solid transparent;
  font-size: 12.5px;
  color: var(--text-2);
  transition: all .15s;
}
.ly-diff:hover { color: var(--text); border-color: var(--line); }
.ly-diff.active { background: var(--accent); color: #fff; font-weight: 600; }

/* 三栏并排（今日|本周|本月、AO3|AO5|AO10） */
.ly-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ly-cols3 .ly-panel { min-width: 0; }

/* 总排名：表格形式 */
.ly-table { width: 100%; }
.ly-thead, .ly-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 8px;
  align-items: center;
}
.ly-thead {
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.ly-th { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .5px; }
.ly-th-rank { text-align: center; }
.ly-th-score { text-align: right; }

/* 榜单行：名次 | 名字 | 成绩 */
.ly-rows { display: flex; flex-direction: column; gap: 5px; }
.ly-row {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px;
}
.ly-row.me { background: var(--accent-deep); border: 1px solid #2A4A7A; }
.ly-rank { color: var(--accent); font-weight: 700; font-family: var(--mono); text-align: center; }
.ly-rank.r1 { color: #D4A855; }
.ly-rank.r2 { color: #A8B2BD; }
.ly-rank.r3 { color: #B87A4A; }
.ly-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-name .me-tag { font-size: 10px; color: var(--accent); margin-left: 4px; }
.ly-score { color: var(--text-2); font-family: var(--mono); font-weight: 600; text-align: right; }
.ly-empty { font-size: 12px; color: var(--text-3); text-align: center; padding: 14px 0; }
.ly-note { font-size: 11px; color: var(--text-3); padding: 2px 4px 6px; }

/* 窄屏：三栏堆叠为单列 */
@media (max-width: 1000px) {
  .ly-cols3 { grid-template-columns: 1fr; }
}

/* 响应式：窄屏沿用 .game-ab 的竖向堆叠 */
@media (max-width: 1100px) {
  .ly-gamelist { display: grid; grid-template-columns: repeat(4, 1fr); }
}
