/* Leonida Trophy Guide — original sunset-noir styling, CSS only, no images. */
:root {
  --ink: #17122b;
  --ink-soft: #2a2145;
  --paper: #faf5ec;
  --card: #ffffff;
  --coral: #ff6b4a;
  --amber: #ffb340;
  --teal: #0e7c7b;
  --platinum: #7d6fd1;
  --gold: #b8860b;
  --silver: #6e7a8a;
  --bronze: #a05c2c;
  --danger: #b3261e;
  --line: #e3d9c8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 32px 20px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 55%, #4a2b4d 100%);
  color: #fdf8ee;
  border-bottom: 6px solid var(--coral);
}
.kicker {
  margin: 0 0 4px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--amber);
}
.site-header h1 { margin: 0 0 8px; font-size: 34px; }
.sub { margin: 0; max-width: 640px; line-height: 1.45; color: #e9e0cd; }
.header-progress { min-width: 240px; text-align: right; }
#earned-count { margin: 0; font-size: 22px; font-weight: bold; }
#percent { margin: 2px 0 8px; font-size: 15px; color: var(--amber); }
.bar { height: 12px; background: #453a63; border-radius: 6px; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--amber)); transition: width 0.3s ease; }
.bar-label { margin: 4px 0 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #cfc4a8; }
#grade-counts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.grade-count { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #322a52; color: #f2ead6; text-transform: capitalize; }
.tabs { display: flex; gap: 8px; padding: 14px 32px 0; }
.tab {
  font: inherit; font-size: 15px; cursor: pointer;
  padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
}
.tab-active { background: var(--ink); color: #fdf8ee; }
main { padding: 16px 32px 8px; }
.hidden-view { display: none; }
.controls {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.controls label { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.controls select, .controls input[type='search'] {
  font: inherit; font-size: 14px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fffdf8;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--teal); color: var(--teal); background: transparent;
}
.chip-active { background: var(--teal); color: #fff; }
.spoiler-label { font-weight: bold; }
.io-buttons { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.io-buttons button, .import-label {
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--ink);
  background: var(--ink); color: #fdf8ee;
}
.import-label input { display: none; }
#reset-btn { background: transparent; color: var(--danger); border-color: var(--danger); }
.list-note { font-size: 13px; color: #6b6250; margin: 10px 2px; }
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
}
.card:hover { border-color: var(--coral); }
.card-selected { outline: 3px solid var(--amber); }
.card-earned { background: #f3efe4; }
.card-earned h3 { text-decoration: line-through; text-decoration-color: var(--teal); }
.card-top { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.card-top input { width: 18px; height: 18px; accent-color: var(--teal); }
.card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; }
.card-desc { margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; color: #463d2b; }
.card-meta { margin: 0; font-size: 12px; letter-spacing: 0.04em; color: #7a6f57; text-transform: uppercase; }
.badge {
  display: inline-block; font-size: 11px; font-weight: bold; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #fff;
}
.grade-platinum { background: var(--platinum); }
.grade-gold { background: var(--gold); }
.grade-silver { background: var(--silver); }
.grade-bronze { background: var(--bronze); }
.missable-flag { font-size: 11px; font-weight: bold; color: #fff; background: var(--danger); padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em; }
.hidden-flag { font-size: 11px; font-weight: bold; color: var(--ink); background: var(--amber); padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em; }
.detail {
  position: sticky; top: 16px;
  background: var(--ink); color: #f5eedd; border-radius: 14px; padding: 20px 22px;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.detail h2 { margin: 10px 0 6px; font-size: 24px; line-height: 1.2; }
.detail h3 { margin: 16px 0 6px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.detail-desc { margin: 0; font-style: italic; color: #ddd2b8; line-height: 1.45; }
.detail-meta { font-size: 13px; color: #bdb096; line-height: 1.5; }
.detail-guide { line-height: 1.55; font-size: 14.5px; margin: 0; }
.detail-steps, .detail-sources { margin: 0; padding-left: 20px; line-height: 1.5; font-size: 14px; }
.detail-sources { color: #cfc4a8; font-size: 13px; }
.missable-warning {
  background: #5a1712; border: 1px solid var(--coral); color: #ffd9cf;
  padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45;
}
.detail-check { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 15px; cursor: pointer; }
.detail-check input { width: 18px; height: 18px; accent-color: var(--amber); }
.roadmap-intro { max-width: 760px; }
.stage {
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--coral);
  border-radius: 12px; padding: 16px 20px; margin: 0 0 16px; max-width: 980px;
}
.stage h3 { margin: 0 0 4px; font-size: 20px; }
.stage-focus { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.stage p { line-height: 1.55; }
.stage-list { columns: 2; line-height: 1.6; font-size: 14.5px; padding-left: 20px; }
.stage-list li { cursor: pointer; break-inside: avoid; }
.stage-list li:hover { color: var(--coral); }
.stage-missable { color: var(--danger); font-weight: bold; }
.site-footer { padding: 18px 32px 28px; font-size: 13px; color: #6b6250; line-height: 1.5; max-width: 900px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .detail { position: static; max-height: none; }
  .stage-list { columns: 1; }
  .header-progress { text-align: left; }
  #grade-counts { justify-content: flex-start; }
}
