:root {
  --paper: #f3ecdf;
  --paper-deep: #e7dccb;
  --ink: #1c1712;
  --ink-soft: #5c5348;
  --line: #ddcfc0;
  --card: #fffaf3;
  --stamp: #8f2d2a;
  --sea: #1d4a45;
  --gold: #8d6430;
  --star: #1d4e89;
  --oneworld: #8a2e2e;
  --skyteam: #1f6a45;
  --none: #6a5436;
  --shadow: 0 16px 40px rgba(48, 28, 8, 0.08);
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --num: "Outfit", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #f8e7c8 0%, transparent 55%),
    radial-gradient(900px 480px at 110% 8%, #d9ebe4 0%, transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(28, 23, 18, 0.03) 1px, transparent 1px);
  background-size: 100% 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 28%);
}
a { color: var(--sea); }
button, input { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 0 8px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  position: relative;
}
.mark span {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--stamp);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.brand strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em; }
.brand small { color: var(--ink-soft); letter-spacing: 0.14em; font-size: 11px; }
.topnav { display: flex; gap: 18px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.topnav a:hover { color: var(--stamp); }

.hero { padding: 28px 0 12px; display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; align-items: end; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  font-family: var(--num);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  margin: 10px 0 12px;
  letter-spacing: -0.03em;
}
.lede { font-size: 18px; max-width: 40rem; margin: 0; color: var(--ink-soft); }
.hero-card {
  background: var(--ink);
  color: #f6efe4;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
.hero-card ol { margin: 8px 0 0; padding-left: 1.1em; }
.hero-card li { margin: 8px 0; }
.hero-card strong { font-family: var(--serif); font-weight: 600; }

.rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}
.rule {
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
}
.rule em {
  font-family: var(--num);
  font-style: normal;
  font-weight: 600;
  color: var(--stamp);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.rule p { margin: 6px 0 0; font-size: 14px; }

.section { padding: 34px 0 8px; }
.section h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.section .sub { margin: 0 0 18px; color: var(--ink-soft); max-width: 42rem; }

.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scene {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.scene:hover { transform: translateY(-2px); border-color: #c9b59a; }
.scene.active { border-color: var(--ink); background: #fff6ea; }
.scene .route { font-family: var(--num); font-size: 12px; letter-spacing: 0.08em; color: var(--gold); }
.scene strong { display: block; font-family: var(--serif); font-size: 22px; margin: 4px 0; }
.scene p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 168px;
}
.pick .idx { font-family: var(--num); color: var(--stamp); font-size: 13px; letter-spacing: 0.12em; }
.pick h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 8px; }
.pick p { margin: 0 0 8px; font-size: 14.5px; }
.pick .cards { color: var(--ink-soft); font-size: 13.5px; }

.filters {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  background: rgba(243, 236, 223, 0.9);
  backdrop-filter: blur(12px);
}
.filters input {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}
.filters input:focus { border-color: var(--sea); }
.chip, .textbtn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.chip.active { background: var(--ink); color: #f6efe4; border-color: var(--ink); }
.count { margin-left: auto; color: var(--ink-soft); font-family: var(--num); font-size: 13px; }
.banner {
  grid-column: 1 / -1;
  background: #1d4a45;
  color: #f4efe6;
  border-radius: 16px;
  padding: 14px 16px;
}
.banner strong { font-family: var(--serif); }
.banner button { margin-left: 8px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  display: grid;
  grid-template-columns: 86px 1fr;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 220px;
}
.rail {
  color: #f7f1e6;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.rail::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 10px;
  bottom: 10px;
  width: 14px;
  background: radial-gradient(circle at 7px 7px, var(--paper) 6px, transparent 6.5px);
  background-size: 14px 20px;
}
.rail .code { font-family: var(--num); font-weight: 600; font-size: 20px; letter-spacing: 0.04em; }
#banks { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-label { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); padding: 0 2px; }
.rail .alliance { font-size: 12px; line-height: 1.35; opacity: 0.9; }
.rail.star { background: var(--star); }
.rail.oneworld { background: var(--oneworld); }
.rail.skyteam { background: var(--skyteam); }
.rail.none { background: var(--none); }
.body { padding: 14px 16px 14px 22px; position: relative; z-index: 1; }
.body h3 { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.program { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.verdict { margin: 8px 0; font-size: 14.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag, .pill {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--paper-deep);
}
.tag.hot { background: #f3d7c8; color: #6d2c16; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill b { font-family: var(--num); font-weight: 600; }
.pill small { color: var(--ink-soft); }
.pill.mid { background: #f3e2c4; color: #6a4314; }
.pill.mid small { color: #6a4314; }
.more {
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--sea);
  cursor: pointer;
  font-size: 13.5px;
}
.details { display: none; margin-top: 8px; }
.card.open .details { display: block; }
.details h4 { margin: 8px 0 4px; font-size: 13px; letter-spacing: 0.08em; color: var(--gold); }
.details ul { margin: 0; padding-left: 1.1em; }
.details li { margin: 3px 0; font-size: 14px; }
.empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13.5px; }
th, td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--ink-soft); position: sticky; top: 0; background: #fff6ea; }
td.name, th.name { text-align: left; position: sticky; left: 0; background: var(--card); min-width: 148px; }
th.name { background: #fff6ea; }
tr:last-child td { border-bottom: 0; }
.ratio { font-family: var(--num); font-weight: 600; white-space: nowrap; }
.ratio.good { color: var(--sea); }
.ratio.mid { color: var(--gold); }
.ratio.none { color: #c3b6a6; font-weight: 500; }
.footnotes { color: var(--ink-soft); font-size: 13.5px; }
.footnotes li { margin: 4px 0; }

.changes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.changes li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  background: rgba(255,250,243,0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.changes time { font-family: var(--num); color: var(--stamp); font-weight: 600; }

.foot {
  margin-top: 28px;
  padding: 22px 0 40px;
  color: var(--ink-soft);
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.foot p { margin: 6px 0; }

@media (max-width: 900px) {
  .hero, .rules, .scenes, .picks, .grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .count { width: 100%; margin-left: 0; }
  .card { grid-template-columns: 72px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { transition: none; }
}
