:root {
  --bg: #fbfaf7; --fg: #1d2330; --muted: #5b6475; --line: #e3e0d8;
  --card: #ffffff; --accent: #0b6e69; --accent-fg: #ffffff; --land: #e6efe9; --land-line: #7f9d8f; --land-hi: #bfe0d6;
  --notice: #fff6e0; --notice-line: #ecd9a2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f; --fg: #e8eaee; --muted: #9aa3b2; --line: #2a303b;
    --card: #1b212b; --accent: #4fc3bb; --accent-fg: #0c1a19; --land: #1f2c28; --land-line: #6b8a7c; --land-hi: #2c5a52;
    --notice: #2a2415; --notice-line: #5a4a1d;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.65;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }
a { color: var(--accent); }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.4em 0 0.5em; }
h2 { font-size: 1.4rem; margin: 1.8em 0 0.5em; line-height: 1.25; }
h3 { margin: 0 0 0.3em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--fg); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav a { margin-left: 18px; text-decoration: none; color: var(--fg); }
nav a:hover { color: var(--accent); }
.hero { padding: 20px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--fg); display: block; }
.card.live:hover { border-color: var(--accent); }
.card.pending { opacity: 0.65; }
.price { font-size: 1.7rem; font-weight: 800; margin: 0.1em 0; color: var(--accent); }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price.big { font-size: 2.4rem; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px 4px; }
.guides { padding-left: 1.1em; }
.guides li { margin: 0.4em 0; }
.notice { background: var(--notice); border: 1px solid var(--notice-line); border-radius: 8px; padding: 10px 14px; margin: 14px 0 22px; }
.crumbs { margin: 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th:not(:first-child), td:not(:first-child) { text-align: right; }
thead th { border-bottom: 2px solid var(--line); }
tbody tr:last-child td { font-weight: 600; }
.mapbox { margin: 10px 0 0; text-align: center; }
.map { width: 100%; max-width: 560px; max-height: 80vh; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.map .land { fill: var(--land); stroke: var(--land-line); stroke-width: 1; stroke-linejoin: round; }
.map .pin circle { fill: var(--accent); stroke: var(--card); stroke-width: 3; }
.map .pin:hover circle, .map .pin:focus circle { r: 12; }
.map .pin-name { font-size: 22px; font-weight: 700; fill: var(--fg); paint-order: stroke; stroke: var(--card); stroke-width: 5px; }
.map .pin-cost { font-size: 20px; fill: var(--accent); font-weight: 700; paint-order: stroke; stroke: var(--card); stroke-width: 5px; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; margin-top: 30px; }
.guide ul, .guide ol { padding-left: 1.3em; }
@media (max-width: 560px) { html { font-size: 16px; } h1 { font-size: 1.6rem; } .bar { flex-direction: column; gap: 6px; } nav a { margin: 0 10px; } }

.video-embed { margin: 14px 0 22px; }
.video-load, .video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; }
.video-frame { border: 0; }
.video-load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; text-align: center; cursor: pointer; font: inherit; color: var(--fg);
  background: var(--land); border: 1px solid var(--land-line); }
.video-load:hover { border-color: var(--accent); }
.video-load:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-play { color: var(--accent); }
.video-load-title { font-weight: 600; font-size: 1.05rem; }
.video-load-note { font-size: 0.85rem; color: var(--muted); max-width: 34em; }

/* Homepage world map */
.worldmap-scroll { width: min(1100px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); overflow-x: auto; margin-top: 12px; }
.worldmap { position: relative; min-width: 860px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.worldmap svg { display: block; width: 100%; height: auto; }
.worldmap .wland { fill: none; stroke: var(--land-line); stroke-width: 0.5; stroke-linejoin: round; }
.worldmap .cshape { fill: none; pointer-events: all; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.worldmap .pending .cshape { stroke: var(--land-line); stroke-width: 0.6; }
.worldmap .leader { stroke: var(--muted); stroke-width: 0.8; }
.worldmap .hit { fill: transparent; }
.worldmap .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.worldmap .pending .dot { fill: var(--card); stroke: var(--muted); stroke-width: 1.5; }
.worldmap a.ctry { cursor: pointer; outline: none; }
.worldmap a.ctry:hover .dot, .worldmap a.ctry:focus .dot { r: 7.5; }
.worldmap a.ctry:hover .cshape, .worldmap a.ctry:focus .cshape { fill: var(--accent); fill-opacity: 0.18; }
.worldmap .pending { cursor: default; }
.worldmap .clabel { font: 700 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--fg); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.worldmap .pending .clabel { font-weight: 600; fill: var(--muted); }
.worldmap .ccost { fill: var(--accent); }
.tip { position: absolute; z-index: 5; min-width: 190px; max-width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.18); font-size: 0.9rem; line-height: 1.45; text-align: left; }
.tip[hidden] { display: none; }
.tip ul { list-style: none; margin: 6px 0 4px; padding: 0; }
.tip li { display: flex; justify-content: space-between; gap: 16px; }
.tip li span { font-weight: 700; color: var(--accent); white-space: nowrap; }
.tip .tipnote { margin: 2px 0; color: var(--muted); font-size: 0.85rem; }
.tip .tiplink { display: inline-block; margin-top: 4px; font-weight: 600; }
