:root {
  --bg: #0b0b0d;
  --panel: #131316;
  --card: #18181c;
  --card-2: #1e1e23;
  --ink: #f1f1f3;
  --ink-2: #cfcfd6;
  --muted: #a2a2ac;
  --faint: #6d6d78;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --live: #1df08c;
  --live-dim: rgba(29, 240, 140, .14);
  --violet: #b9a7ff;
  --amber: #ffd36e;
  --sans: "Pretendard Variable", Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
  --side-w: 232px;
  --rail-w: 64px;
  --top-h: 64px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  /* layered elevation: inner top highlight + ambient + key shadow */
  --elev-1: inset 0 1px 0 rgba(255, 255, 255, .045), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28);
  --elev-2: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .42);
  --ring: 0 0 0 2px rgba(29, 240, 140, .55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* app-like cross-page transitions: the shell markup is identical on
   every page, so only the content area appears to change */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .18s;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: #0b0b0d;
  background: var(--live);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* slim dark scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--live);
}

.live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(29, 240, 140, .55);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(29, 240, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 240, 140, 0); }
}

/* ================= sidebar ================= */
.sidebar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  background: linear-gradient(180deg, var(--panel), #101013);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(0, 0, 0, .4);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .22s ease;
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.rail-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.rail-toggle:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* collapsible groups */
.side-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 6px;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.side-group summary::-webkit-details-marker { display: none; }

.side-group summary:hover { color: var(--muted); }

.side-group .chev {
  font-size: 10px;
  transition: transform .2s ease;
}

.side-group:not([open]) .chev {
  transform: rotate(-90deg);
}

.side-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.side-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .05);
}

.side-link.active {
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
}

/* active indicator bar */
.side-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--live);
}

.side-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  color: var(--live);
  font-family: var(--mono);
  font-size: 13px;
}

.side-txt {
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-live {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--live);
  color: #0b0b0d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.side-soon {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.side-foot {
  margin: auto 8px 2px;
  padding-top: 14px;
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

/* rail (collapsed) mode */
html.rail .sidebar { width: var(--rail-w); padding-inline: 10px; }
html.rail .sidebar .brand,
html.rail .side-txt,
html.rail .side-live,
html.rail .side-soon,
html.rail .side-group summary,
html.rail .side-foot { display: none; }
html.rail .side-top { justify-content: center; }
html.rail .side-link { justify-content: center; padding-inline: 0; }
html.rail .side-link.active::before { left: -10px; }
html.rail .side-group[open] .side-items,
html.rail .side-group:not([open]) .side-items { display: flex; }
html.rail .topbar { left: var(--rail-w); }
html.rail .content { margin-left: var(--rail-w); }

/* ================= topbar ================= */
.topbar {
  position: fixed;
  z-index: 25;
  top: 0;
  left: var(--side-w);
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--top-h);
  padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  transition: left .22s ease;
}

.topbar-brand { display: none; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 440px;
}

.search-ico {
  position: absolute;
  left: 14px;
  color: var(--faint);
  font-size: 15px;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  transition: border-color .15s, background .15s;
}

.search input::placeholder { color: var(--faint); }

.search input:hover { background: rgba(255, 255, 255, .06); }

.search input:focus {
  outline: none;
  border-color: rgba(29, 240, 140, .5);
  box-shadow: 0 0 0 3px rgba(29, 240, 140, .12);
}

.search-kbd {
  position: absolute;
  right: 12px;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  pointer-events: none;
}

.live-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--live);
  color: #0b0b0d;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 4px 16px rgba(29, 240, 140, .25);
  transition: transform .15s, filter .15s, box-shadow .15s;
}

.live-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(29, 240, 140, .35);
}

.live-cta .live-dot {
  background: #0b0b0d;
  animation: none;
}

/* ================= content ================= */
.content {
  margin-left: var(--side-w);
  padding: calc(var(--top-h) + 24px) clamp(16px, 3vw, 32px) 48px;
  max-width: 1280px;
  transition: margin-left .22s ease;
}

/* row headers: title left, context right */
.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 40px 0 16px;
  scroll-margin-top: calc(var(--top-h) + 16px);
}

.row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.row-sub {
  color: var(--faint);
  font-size: 12.5px;
}

/* ================= hero banner ================= */
.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 16px;
  align-items: center;
  min-height: 400px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--elev-2);
}

.hb-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(1.05);
}

/* layered scrims: left copy protection + bottom grounding + top vignette */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, .97) 0%, rgba(11, 11, 13, .9) 36%, rgba(11, 11, 13, .52) 66%, rgba(11, 11, 13, .28) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, .3), rgba(11, 11, 13, .12) 40%, rgba(11, 11, 13, .72) 100%);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(52% 60% at 74% 46%, rgba(185, 167, 255, .1), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 6px 13px;
  border: 1px solid rgba(29, 240, 140, .35);
  border-radius: 999px;
  background: rgba(11, 11, 13, .5);
  color: var(--live);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
}

.hero-banner h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.04;
  text-shadow: 0 2px 18px rgba(11, 11, 13, .6);
}

.hero-statement {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(11, 11, 13, .85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s, filter .15s, background .15s, border-color .15s, box-shadow .15s;
}

.button.primary {
  color: #0b0b0d;
  background: var(--live);
  box-shadow: 0 4px 16px rgba(29, 240, 140, .28);
}

.button.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(29, 240, 140, .4);
}

.button.ghost {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .32);
}

/* master ball inside the banner */
.hb-ball {
  display: flex;
  justify-content: center;
}

.ball-stage {
  position: relative;
  padding: 16px 22px 10px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.ball-stage:active { cursor: grabbing; }

.ball-stage::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side,
      rgba(6, 6, 10, .95) 0%,
      rgba(7, 7, 14, .9) 40%,
      rgba(12, 10, 26, .68) 62%,
      rgba(24, 18, 52, .34) 78%,
      rgba(44, 32, 92, .12) 90%,
      transparent 100%);
}

#ball {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(5.5px, .62vw, 8.5px);
  line-height: 1.05;
  letter-spacing: 0;
  filter:
    drop-shadow(0 0 18px rgba(185, 167, 255, .18))
    drop-shadow(0 14px 36px rgba(0, 0, 0, .5));
}

.ball-spec {
  margin: 8px 0 0;
  color: rgba(201, 201, 210, .55);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-align: center;
}

/* ball shading palette — purple dome, 6-step natural falloff */
#ball .p0 { color: #4a4380; }
#ball .p1 { color: #665aa4; }
#ball .p2 { color: #8375c8; }
#ball .p3 { color: #a191e5; }
#ball .p4 { color: #c2b4f8; }
#ball .p5 { color: #e9e2ff; }
#ball .m0 { color: #7d4a6b; }
#ball .m1 { color: #9d5d87; }
#ball .m2 { color: #bd71a3; }
#ball .m3 { color: #dc88bf; }
#ball .m4 { color: #f4a3d5; }
#ball .m5 { color: #ffc9e6; }
#ball .w0 { color: #575d67; }
#ball .w1 { color: #6f7681; }
#ball .w2 { color: #8b929d; }
#ball .w3 { color: #aab1bc; }
#ball .w4 { color: #ced5de; }
#ball .w5 { color: #f7f9fc; }
#ball .k0 { color: #101318; }
#ball .k1 { color: #1a1e25; }
#ball .k2 { color: #272c36; }
#ball .k3 { color: #383f4c; }
#ball .k4 { color: #4e5765; }
#ball .k5 { color: #6a7484; }
#ball .c0 { color: #d5dae2; }
#ball .c1 { color: #ffffff; }

/* ================= live cards ================= */
.live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--elev-1);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 240, 140, .32);
  box-shadow: var(--elev-2);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.badge-live,
.badge-ok {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.badge-live {
  background: var(--live);
  color: #0b0b0d;
  box-shadow: 0 2px 10px rgba(29, 240, 140, .3);
}

.badge-ok {
  border: 1px solid rgba(29, 240, 140, .4);
  background: var(--live-dim);
  color: var(--live);
}

.card-cta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--live);
  font-size: 13px;
  font-weight: 700;
  transition: filter .15s;
}

.card-cta:hover { filter: brightness(1.15); }

.card-foot-note {
  margin-top: auto;
  padding-top: 12px;
  color: var(--faint);
  font-size: 11px;
}

/* dive talk preview */
.talk-preview {
  display: grid;
  gap: 8px;
  padding: 14px 0 4px;
}

.tp-row {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.tp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.tp-head b {
  overflow: hidden;
  color: var(--violet);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-head span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 11px;
}

.tp-row p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.talk-empty {
  margin: 14px 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* pokedex stream card */
#dex {
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
}

.dex-row {
  display: grid;
  grid-template-columns: 40px 1fr 92px;
  gap: 10px;
  align-items: baseline;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background .25s;
}

.dex-row .dx-no { color: var(--faint); }

.dex-row .dx-name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.dx-tot {
  color: var(--violet);
  white-space: pre;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dex-hot { background: rgba(185, 167, 255, .08); }
.dex-hot .dx-name { color: var(--violet); }
.dx-flick { color: var(--live); }

/* system status card */
.syslog {
  margin: 0;
  padding: 14px 4px 0;
  list-style: none;
  display: grid;
  gap: 11px;
  font-family: var(--mono);
  font-size: 12px;
}

.syslog li {
  display: grid;
  grid-template-columns: 52px 78px 1fr;
  gap: 10px;
  align-items: baseline;
}

.syslog .ok { color: var(--live); }

.syslog .run {
  color: var(--amber);
  animation: blink 1.6s step-end infinite;
}

@keyframes blink {
  50% { opacity: .35; }
}

.syslog .log-key { color: var(--ink); font-weight: 700; }
.syslog .log-val { color: var(--muted); }

/* ================= game hub tiles ================= */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  aspect-ratio: 16 / 9;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.hub-tile:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(29, 240, 140, .45);
  box-shadow: var(--elev-2);
}

/* bottom scrim keeps tile text readable over any gradient */
.hub-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, .78));
}

.hub-glyph {
  position: absolute;
  top: 2px;
  right: 14px;
  font-family: var(--mono);
  font-size: 78px;
  line-height: 1.25;
  opacity: .16;
  transition: opacity .2s, transform .2s;
}

.hub-tile:hover .hub-glyph {
  opacity: .28;
  transform: scale(1.06);
}

.hub-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hub-name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hub-desc {
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
}

.hub-tag {
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: rgba(255, 255, 255, .88);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
}

.hub-go { background: linear-gradient(140deg, #123a4e, #0d6b8f 55%, #14a0b8); }
.hub-sv { background: linear-gradient(140deg, #4e1230, #8f0d3e 52%, #5b2a9e); }
.hub-tcg { background: linear-gradient(140deg, #4e3a12, #8f6a0d 55%, #c99417); }
.hub-unite { background: linear-gradient(140deg, #2a1a56, #4d2ba0 55%, #7a4dd8); }
.hub-legends { background: linear-gradient(140deg, #1c4023, #2e7a3c 55%, #57a25e); }
.hub-classic { background: linear-gradient(140deg, #3e1a1a, #8f2b2b 55%, #2b4f8f); }

/* ================= roadmap ================= */
.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--elev-1);
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.tag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.tag.done { color: var(--live); }
.tag.next { color: var(--violet); }
.tag.then { color: var(--faint); }
.tag::before { content: "["; color: var(--faint); }
.tag::after { content: "]"; color: var(--faint); }

/* ================= faq accordion ================= */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--elev-1);
  transition: border-color .18s;
}

.faq-item[open] {
  border-color: rgba(29, 240, 140, .28);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--live); }

.faq-chev {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  transition: transform .2s, color .2s, border-color .2s;
}

.faq-item[open] .faq-chev {
  transform: rotate(45deg);
  color: var(--live);
  border-color: rgba(29, 240, 140, .4);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ================= footer ================= */
.site-footer {
  margin-top: 48px;
  padding: 22px 2px 6px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
}

.footer-note {
  display: block;
  max-width: 640px;
  line-height: 1.7;
}

/* ================= motion & responsive ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .syslog .run { animation: none; }
  .button, .card, .hub-tile, .live-cta, .sidebar, .topbar, .content { transition: none; }
}

@media (max-width: 1100px) {
  .live-grid { grid-template-columns: 1fr 1fr; }
  .hero-banner { grid-template-columns: 1fr; min-height: 0; }
  .hb-ball { order: -1; }
}

@media (max-width: 960px) {
  .sidebar { display: none; }
  .topbar { left: 0 !important; }
  .topbar-brand { display: inline-flex; }
  .search { max-width: none; }
  .content { margin-left: 0 !important; }
}

@media (max-width: 700px) {
  .topbar {
    gap: 10px;
    padding: 0 12px;
  }

  .live-cta {
    margin-left: auto;
    min-height: 36px;
    padding: 0 14px;
    font-size: 11.5px;
  }

  .search { display: none; }

  .content { padding-inline: 14px; }

  .live-grid,
  .faq-list { grid-template-columns: 1fr; }

  .hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .hub-desc { display: none; }

  .hub-name { font-size: 14px; }

  .timeline li { grid-template-columns: 1fr; gap: 8px; }

  .row-head { margin-top: 32px; }

  /* keep the 74-char ball narrower than any phone viewport */
  .hero-banner { padding: 18px 16px; }

  .ball-stage { padding: 10px 10px 6px; }

  #ball { font-size: clamp(4.2px, 1.55vw, 6.4px); }

  .syslog li {
    grid-template-columns: 52px 1fr;
  }

  .syslog .log-val {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .topbar-brand .brand-name { display: none; }

  .hero-actions .button { flex: 1 1 100%; }
}
