:root {
  --bg:#0a0e1a;
  --panel:#141a28;
  --panel-2:#1b2336;
  --line:#2a3346;
  --text:#eef1f8;
  --text-dim:#9aa6c0;
  --accent:#F5B945;
  --accent-2:#FBD27A;
  --c-summer:#FB8C3C;
  --c-winter:#4FC3F7;
  --c-worldcup:#44D07B;
  --c-halftime:#B07CFB;
  --c-games:#F2649A;
  --r:14px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  background:
    radial-gradient(
      1100px 560px at 84% -12%,
      #3a2c12 0%,
      transparent 56%),
    radial-gradient(
      900px 520px at -4% 112%,
      #122440 0%,
      transparent 55%),
    var(--bg);
  color: var(--text);
  font-family:
    "PingFang TC",
    "Noto Sans TC",
    "Microsoft JhengHei",
    ui-sans-serif,
    system-ui,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(20, 26, 40, .7),
      transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: #0b0f1a;
  border-radius: 13px;
  padding: 3px;
  border: 1px solid #2c3650;
  box-shadow: 0 6px 22px rgba(245, 185, 69, .22);
}
.brand-text {
  min-width: 0;
}
.brand h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.brand h1 .brand-sub {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 15px;
}
.brand-dot {
  color: var(--text-dim);
  font-weight: 400;
}
.tagline {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: 3px;
}
.btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: .16s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #241a05;
}
.btn-accent:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 24px rgba(245, 185, 69, .32);
}
.btn-ghost {
  background: transparent;
}
.btn.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #241a05;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 26px 4px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: transparent;
  transition: .15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chip:hover {
  color: var(--text);
}
.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.chip.is-off {
  opacity: .4;
}
.chip.is-off .dot {
  filter: grayscale(1);
}
.player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count {
  color: var(--text-dim);
  font-size: 13px;
}
.count strong {
  color: var(--text);
  font-size: 16px;
}
.stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 18px;
  padding: 16px 26px;
  align-items: stretch;
}
.map-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
#map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.map-note {
  color: var(--text-dim);
  font-size: 11px;
  text-align: right;
  opacity: .7;
}
.graticule-line {
  stroke: #3a456e;
  stroke-width: .5;
  opacity: .26;
}
.land path {
  fill: rgba(38, 49, 78, .8);
  stroke: #41507e;
  stroke-width: .8;
}
.fan-link {
  stroke-width: .7;
  opacity: .32;
  stroke-dasharray: 2 2;
  pointer-events: none;
}
.marker {
  cursor: pointer;
}
.marker .hit {
  cursor: pointer;
}
.marker .halo {
  opacity: 0;
  transition: .2s;
}
.marker .core {
  transition: transform .15s ease, opacity .2s;
}
.marker:hover .core,
.marker.is-active .core {
  transform: scale(1.7);
}
.marker:hover .halo,
.marker.is-active .halo {
  opacity: .5;
}
.marker.dim {
  opacity: .12;
  pointer-events: none;
}
.marker.is-active .pulse {
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    r: 5;
    opacity: .55;
  }
  100% {
    r: 22;
    opacity: 0;
  }
}
.detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.detail-empty {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
  margin: auto 0;
}
.d-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.d-cat .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.d-year {
  font-size: 34px;
  font-weight: 800;
  margin: 14px 0 2px;
  letter-spacing: 1px;
}
.d-date {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-bottom: 14px;
}
.d-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}
.d-place {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.d-place::before {
  content: "◎";
  font-size: 14px;
}
.d-venue {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-bottom: 16px;
  padding-left: 21px;
}
.d-cluster {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--accent-2);
  border: 1px dashed rgba(251, 210, 122, .45);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(245, 185, 69, .08);
}
.d-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.85;
  flex: 1;
}
.d-sources {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.d-sources-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.d-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.d-sources a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 12.5px;
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px dotted transparent;
  transition: .15s;
}
.d-sources a::before {
  content: "↗ ";
  opacity: .7;
}
.d-sources a:hover {
  color: #fff;
  border-bottom-color: var(--accent-2);
}
.d-nav {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.d-nav button {
  flex: 1;
}
.d-nav button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.timeline-wrap {
  padding: 6px 26px 22px;
}
.timeline-hint {
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 10px;
  text-align: center;
}
.timeline {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 22px 40px;
  overflow-x: auto;
}
.timeline-inner {
  position: relative;
  width: 2600px;
}
.timeline-axis {
  position: relative;
  height: 2px;
  background: var(--line);
}
.tick-decade {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.tick-decade .bar {
  width: 1px;
  height: 9px;
  background: var(--line);
  margin: 0 auto;
}
.tick-decade .yr {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.timeline-track {
  position: relative;
  height: 48px;
  margin-top: 6px;
}
.tl-node {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: .15s;
}
.tl-node .stem {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.tl-node .bead {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  transition: transform .15s, box-shadow .15s;
}
.tl-node .ylab {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 5px;
  opacity: 0;
  transition: .15s;
  white-space: nowrap;
}
.tl-node:hover .bead,
.tl-node.is-active .bead {
  transform: scale(1.5);
}
.tl-node:hover .ylab,
.tl-node.is-active .ylab {
  opacity: 1;
  color: var(--text);
}
.tl-node.is-active .bead {
  box-shadow: 0 0 0 5px rgba(245, 185, 69, .25);
}
.tl-node.dim {
  opacity: .18;
  pointer-events: none;
}
.sitefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 11.5px;
  flex-wrap: wrap;
}
.ver {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 11px;
  color: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
@media (max-width:920px) {
  .stage {
    grid-template-columns: 1fr;
  }
  .detail {
    order: 2;
  }
}
@media (max-width:620px) {
  .topbar {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .brand h1 {
    font-size: 17px;
  }
  .brand h1 .brand-sub {
    font-size: 13px;
  }
  .controls,
  .stage,
  .timeline-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .player {
    width: 100%;
    justify-content: space-between;
  }
  .d-year {
    font-size: 28px;
  }
}
