@font-face { font-family: Inter; src: url("fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #070b10; --panel: #0f161e; --ink: #e8eef3; --muted: #93a2af; --line: #1f2b37; --teal: #2dd4bf; --teal-ink: #062521; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1100px 700px at 72% 40%, #0d1b26 0%, var(--bg) 62%); }
a { color: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 28px 8px; display: grid; gap: 18px 40px;
  grid-template-columns: minmax(300px, 400px) 1fr; grid-template-rows: auto auto 1fr;
  grid-template-areas: "intro stage" "card stage" "lists stage"; }
.intro { grid-area: intro; } .stage { grid-area: stage; } .card { grid-area: card; } .lists { grid-area: lists; }
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "stage" "card" "lists"; padding: 20px 16px 8px; gap: 14px; }
}

.eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; color: var(--teal); }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 800; }
.lede { margin: 0 0 18px; color: #c6d1da; font-size: 1.05rem; }
#stats { display: block; margin-top: 6px; color: var(--muted); font-size: .95rem; }

.search { position: relative; }
#q { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
#q::placeholder { color: var(--muted); }
#q:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
#results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #121b25; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); max-height: 320px; overflow: auto; }
#results li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
#results li[aria-selected="true"], #results li:hover { background: #1b2835; }
#results .has { color: var(--teal); font-size: .85rem; white-space: nowrap; }
#results .none { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; }
#globe { display: block; width: 100%; max-width: min(760px, calc(100vh - 190px)); min-width: 280px; aspect-ratio: 1; touch-action: none; cursor: grab; border-radius: 50%; }
#globe:active { cursor: grabbing; }
#globe:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.tip { position: absolute; z-index: 4; pointer-events: none; background: rgba(10, 16, 22, .94); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: .88rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.tip b { font-weight: 700; } .tip span { color: var(--muted); } .tip .has { color: var(--teal); }
.controls { position: absolute; right: 6px; bottom: 44px; display: flex; flex-direction: column; gap: 6px; }
.controls button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 1.1rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.controls button:hover { border-color: var(--teal); }
.hint { margin: 8px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 132px; }
.card-idle { margin: 0; color: #c6d1da; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--teal); vertical-align: -1px; }
.card h2 { margin: 0 0 2px; font-size: 1.45rem; letter-spacing: -.01em; }
.card .sub { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.card .topics { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card .topics li { font-size: .8rem; color: #c6d1da; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 10px 16px; }
.btn.primary { background: var(--teal); color: var(--teal-ink); }
.btn.primary:hover { background: #5eead4; }
.btn.ghost { border: 1px solid var(--teal); color: var(--teal); }
.btn.ghost:hover { background: rgba(45, 212, 191, .1); }
.card .also { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }

.lists h2 { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.chips a:hover, .chips a:focus-visible { border-color: var(--teal); outline: none; }
.chips a span { color: var(--teal); font-weight: 500; font-size: .85rem; }
.more { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }

footer { max-width: 1280px; width: 100%; margin: 0 auto; padding: 14px 28px 22px; color: var(--muted); font-size: .9rem; }
footer p { margin: 4px 0; } .fine { font-size: .8rem; max-width: 900px; }
@media (max-width: 900px) { footer { padding: 12px 16px 20px; } }
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }
@media (max-width: 900px) { #globe { max-width: min(760px, 92vw); } }
