:root {
  --tv-bg: #070a11;
  --tv-bg-2: #0b1020;
  --tv-panel: rgba(14, 20, 34, .82);
  --tv-panel-2: rgba(9, 13, 23, .9);
  --tv-border: rgba(156, 184, 230, .17);
  --tv-text: #edf5ff;
  --tv-muted: #a0afc2;
  --tv-blue: #6fc9ff;
  --tv-purple: #a783ff;
  --tv-magenta: #e66aff;
  --tv-green: #79e6a2;
  --tv-red: #ff7886;
  --tv-gold: #f3c96f;
  --tv-shadow: 0 18px 60px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--tv-bg); }
body {
  min-height: 100%;
  margin: 0;
  color: var(--tv-text);
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    radial-gradient(circle at 18% 4%, rgba(111, 201, 255, .11), transparent 27rem),
    radial-gradient(circle at 82% 10%, rgba(230, 106, 255, .10), transparent 28rem),
    linear-gradient(155deg, #0b1120 0%, #05070c 52%, #0a0710 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: .008em;
}

a { color: inherit; }
button, input, select { font: inherit; }
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #dff7ff;
  background: rgba(111, 201, 255, .08);
  border: 1px solid rgba(111, 201, 255, .16);
  border-radius: 7px;
  padding: .12rem .34rem;
}

.tv-sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.tv-sky i { position: absolute; width: 2px; height: 2px; background: rgba(255,255,255,.56); box-shadow: 31vw 12vh rgba(255,255,255,.35), 68vw 23vh rgba(255,255,255,.25), 47vw 62vh rgba(255,255,255,.18), 82vw 74vh rgba(255,255,255,.28), 11vw 84vh rgba(255,255,255,.17); }
.tv-sky i:nth-child(1) { top: 8vh; left: 7vw; }
.tv-sky i:nth-child(2) { top: 34vh; left: 23vw; opacity: .7; transform: scale(1.5); }
.tv-sky i:nth-child(3) { top: 63vh; left: 4vw; opacity: .55; }
.tv-sky i:nth-child(4) { top: 78vh; left: 39vw; opacity: .45; transform: scale(1.25); }

.tv-header,
.tv-hero,
.tv-page-hero,
.tv-section,
.tv-callout,
.tv-footer {
  width: min(1240px, calc(100% - 28px));
  margin-inline: auto;
}

.tv-header {
  margin-top: 12px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem .78rem;
  background: rgba(7, 10, 17, .78);
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  box-shadow: var(--tv-shadow), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
}

.tv-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; min-width: max-content; }
.tv-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.tv-brand-mark img { width: 36px; height: 36px; display: block; }
.tv-brand-copy { display: grid; line-height: 1.1; }
.tv-brand-copy strong { font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; }
.tv-brand-copy small { color: var(--tv-muted); font-size: .72rem; margin-top: .2rem; }

.tv-nav { display: flex; align-items: center; gap: .2rem; }
.tv-nav a {
  color: var(--tv-muted);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 780;
  padding: .46rem .58rem;
  border-radius: 9px;
}
.tv-nav a:hover, .tv-nav a:focus-visible, .tv-nav a.is-active { color: #fff; background: rgba(255,255,255,.06); outline: none; }
.tv-nav .tv-nav-parent { color: #d7c9ff; margin-left: .3rem; border-left: 1px solid rgba(255,255,255,.09); border-radius: 0 9px 9px 0; padding-left: .85rem; }
.tv-nav-toggle { display: none; border: 1px solid var(--tv-border); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--tv-text); padding: .45rem .62rem; }

.tv-hero {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 1rem;
}
.tv-hero-copy,
.tv-route-card,
.tv-page-hero,
.tv-section,
.tv-callout {
  border: 1px solid var(--tv-border);
  background: linear-gradient(150deg, rgba(15, 23, 39, .88), rgba(6, 9, 16, .80));
  box-shadow: var(--tv-shadow), inset 0 1px 0 rgba(255,255,255,.045);
}
.tv-hero-copy { border-radius: 22px; padding: clamp(1.15rem, 2.6vw, 2rem); position: relative; overflow: hidden; }
.tv-hero-copy::after {
  content: '';
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -10rem;
  top: -12rem;
  border: 1px solid rgba(167, 131, 255, .16);
  transform: rotate(45deg);
  box-shadow: 0 0 80px rgba(167, 131, 255, .08), inset 0 0 80px rgba(111, 201, 255, .04);
  pointer-events: none;
}
.tv-hero-copy > * { position: relative; z-index: 1; }
.tv-eyebrow { margin: 0; color: #bda9ff; text-transform: uppercase; letter-spacing: .145em; font-size: .7rem; font-weight: 900; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.tv-hero h1, .tv-page-hero h1 { margin: .45rem 0 .65rem; line-height: 1.04; letter-spacing: .018em; font-size: clamp(2rem, 4vw, 2.75rem); max-width: 920px; }
.tv-page-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.45rem); }
.tv-lede, .tv-page-hero > p:not(.tv-eyebrow) { color: var(--tv-muted); max-width: 840px; font-size: 1rem; line-height: 1.65; }

.tv-join-box { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem; border: 1px solid rgba(111, 201, 255, .22); background: rgba(5, 10, 18, .66); border-radius: 14px; }
.tv-join-main { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; min-width: 0; }
.tv-join-label { color: var(--tv-muted); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 900; }
.tv-join-main strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: clamp(1rem, 2vw, 1.28rem); color: #fff; }
.tv-port { color: #c7d9ea; font-size: .88rem; }
.tv-join-actions, .tv-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.tv-button { appearance: none; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(181, 201, 234, .21); border-radius: 10px; padding: .58rem .82rem; color: var(--tv-text); background: rgba(255,255,255,.045); font-weight: 850; font-size: .84rem; text-decoration: none; cursor: pointer; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.tv-button:hover, .tv-button:focus-visible { transform: translateY(-1px); outline: none; border-color: rgba(111,201,255,.52); background: rgba(111,201,255,.08); }
.tv-button-primary { background: linear-gradient(135deg, #70d0f7, #9b7ff5); color: #06101a; border-color: transparent; }
.tv-button.is-copied { background: rgba(121,230,162,.13); border-color: rgba(121,230,162,.45); color: #dfffea; }
.tv-chips { margin-top: .85rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.tv-chips span, .tv-tag-row span { color: #c7d2e4; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); border-radius: 999px; padding: .28rem .5rem; font-size: .72rem; font-weight: 750; }

.tv-route-card { border-radius: 22px; padding: 1rem; position: relative; overflow: hidden; }
.tv-route-head { display: grid; gap: .18rem; margin-bottom: .9rem; }
.tv-route-head span { color: var(--tv-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.tv-route-head strong { font-size: 1rem; }
.tv-route-line { position: absolute; top: 5.7rem; bottom: 5.3rem; left: 2.36rem; width: 2px; background: linear-gradient(var(--tv-green), var(--tv-blue), var(--tv-red)); opacity: .55; }
.tv-route-world { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; padding: .55rem 0; }
.tv-route-world > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #071019; font-weight: 950; box-shadow: 0 0 22px currentColor; }
.tv-route-world-normal > span { background: var(--tv-green); }
.tv-route-world-expert > span { background: var(--tv-blue); }
.tv-route-world-master > span { background: var(--tv-red); }
.tv-route-world div { display: grid; }
.tv-route-world small { color: var(--tv-muted); font-family: monospace; }
.tv-route-card > p { color: var(--tv-muted); font-size: .86rem; margin: .8rem 0 0; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.08); }

.tv-page-hero { margin-top: 1rem; border-radius: 20px; padding: clamp(1.1rem, 2.4vw, 1.65rem); }
.tv-section, .tv-callout { margin-top: 1rem; border-radius: 20px; padding: clamp(1rem, 2vw, 1.35rem); }
.tv-section-slim { padding-block: 1rem; }
.tv-section-heading { max-width: 850px; margin-bottom: 1rem; }
.tv-section-heading h2, .tv-section > h2, .tv-callout h2 { margin: .4rem 0 .5rem; font-size: clamp(1.4rem, 2.4vw, 1.78rem); line-height: 1.1; }
.tv-section-heading p:not(.tv-eyebrow), .tv-section p, .tv-callout p { color: var(--tv-muted); line-height: 1.6; }
.tv-section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.tv-text-link { color: #c8bcff; font-weight: 850; text-decoration: none; white-space: nowrap; font-size: .85rem; }
.tv-text-link:hover { color: #fff; }

.tv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.tv-steps article { display: flex; gap: .75rem; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(0,0,0,.18); padding: .85rem; }
.tv-steps article > span, .tv-rule-grid article > span { color: #9f85ff; font-family: monospace; font-weight: 950; }
.tv-steps strong { display: block; margin-bottom: .15rem; }
.tv-steps p { margin: 0; font-size: .88rem; }

.tv-world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.tv-world-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.095); border-radius: 16px; background: rgba(0,0,0,.20); padding: 1rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.tv-world-card::before { content: ''; position: absolute; width: 13rem; height: 13rem; border-radius: 50%; top: -8rem; right: -6rem; opacity: .16; filter: blur(1px); }
.tv-world-green::before { background: var(--tv-green); }
.tv-world-blue::before { background: var(--tv-blue); }
.tv-world-red::before { background: var(--tv-red); }
.tv-world-card > * { position: relative; z-index: 1; }
.tv-world-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.055); font-weight: 950; font-size: 1.08rem; }
.tv-world-green .tv-world-icon { color: var(--tv-green); }
.tv-world-blue .tv-world-icon { color: var(--tv-blue); }
.tv-world-red .tv-world-icon { color: var(--tv-red); }
.tv-world-topline { margin-top: .9rem; min-height: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--tv-muted); text-transform: uppercase; letter-spacing: .095em; font-size: .64rem; font-weight: 850; }
.tv-world-topline b { color: #081018; background: var(--tv-blue); padding: .22rem .4rem; border-radius: 999px; letter-spacing: .04em; }
.tv-world-card h2, .tv-world-card h3 { margin: .32rem 0 .4rem; font-size: 1.35rem; }
.tv-world-card p { min-height: 4.8em; margin: 0; }
.tv-world-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.tv-world-meta span { font-size: .72rem; border-radius: 7px; padding: .28rem .42rem; background: rgba(255,255,255,.045); color: #c2ccda; }
.tv-world-grid-detail .tv-world-card p { min-height: auto; }
.tv-facts { margin: 1rem 0 0; display: grid; gap: .4rem; }
.tv-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .46rem 0; border-top: 1px solid rgba(255,255,255,.07); }
.tv-facts dt { color: var(--tv-muted); }
.tv-facts dd { margin: 0; text-align: right; font-weight: 750; }

.tv-build-section { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1rem; align-items: stretch; }
.tv-build-section > div > p:not(.tv-eyebrow) { max-width: 780px; }
.tv-build-note { border: 1px solid rgba(121,230,162,.18); border-radius: 14px; padding: 1rem; background: rgba(121,230,162,.045); }
.tv-build-note strong { display: block; margin: .45rem 0 .3rem; }
.tv-status-dot { display: inline-block; width: 9px; height: 9px; background: var(--tv-green); border-radius: 50%; box-shadow: 0 0 12px rgba(121,230,162,.75); }

.tv-roadmap-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.tv-roadmap-preview article, .tv-roadmap-card { border: 1px solid rgba(255,255,255,.085); border-radius: 14px; background: rgba(0,0,0,.18); padding: .9rem; }
.tv-roadmap-preview h3 { margin: .6rem 0 .35rem; font-size: 1rem; }
.tv-roadmap-preview p { margin: 0; font-size: .84rem; }
.tv-status { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: .22rem .48rem; font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .075em; border: 1px solid rgba(255,255,255,.1); }
.tv-status-live { color: #caffe0; background: rgba(121,230,162,.08); border-color: rgba(121,230,162,.24); }
.tv-status-in-progress, .tv-status-testing { color: #d8f3ff; background: rgba(111,201,255,.09); border-color: rgba(111,201,255,.25); }
.tv-status-planned { color: #e5ddff; background: rgba(167,131,255,.09); border-color: rgba(167,131,255,.24); }
.tv-status-exploring { color: #fff0c8; background: rgba(243,201,111,.08); border-color: rgba(243,201,111,.23); }
.tv-status-known-issue { color: #ffd6db; background: rgba(255,120,134,.08); border-color: rgba(255,120,134,.24); }
.tv-status-deferred { color: #c6ccd6; background: rgba(160,175,194,.07); border-color: rgba(160,175,194,.18); }

.tv-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.tv-command-list { display: grid; gap: .55rem; }
.tv-command-list > div { display: grid; grid-template-columns: minmax(110px, .32fr) 1fr; gap: .7rem; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(0,0,0,.16); padding: .65rem; }
.tv-command-list span { color: var(--tv-muted); font-size: .88rem; }
.tv-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.tv-callout > div { max-width: 860px; }
.tv-callout-warn { border-color: rgba(255,120,134,.2); background: linear-gradient(145deg, rgba(45,17,27,.48), rgba(8,10,17,.82)); }

.tv-filter-bar { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tv-filter-bar button { appearance: none; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--tv-muted); padding: .42rem .65rem; font-size: .76rem; font-weight: 800; cursor: pointer; }
.tv-filter-bar button:hover, .tv-filter-bar button:focus-visible, .tv-filter-bar button.is-active { color: #fff; border-color: rgba(167,131,255,.4); background: rgba(167,131,255,.11); outline: none; }
.tv-roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.tv-roadmap-card[hidden] { display: none; }
.tv-roadmap-card-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.tv-category { color: var(--tv-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.tv-roadmap-card h2 { font-size: 1.08rem; margin: .68rem 0 .38rem; }
.tv-roadmap-card p { margin: 0; font-size: .88rem; }
.tv-roadmap-card ul { margin: .7rem 0 0; padding: .7rem 0 0 1.05rem; border-top: 1px solid rgba(255,255,255,.07); color: #bdc7d4; font-size: .78rem; }
.tv-roadmap-card li + li { margin-top: .24rem; }
.tv-empty-state { text-align: center; padding: 1rem; }

.tv-update-list { display: grid; gap: .7rem; }
.tv-update-card { display: grid; grid-template-columns: 155px 1fr; gap: 1rem; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(0,0,0,.17); padding: .9rem; }
.tv-update-date { color: #c8bcff; font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; padding-top: .18rem; }
.tv-update-card h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.tv-update-card p { margin: 0; }
.tv-tag-row { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }

.tv-info-table { display: grid; gap: .35rem; margin: .8rem 0; }
.tv-info-table > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.07); padding: .48rem 0; }
.tv-info-table span { color: var(--tv-muted); }
.tv-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tv-rule-grid article { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(0,0,0,.16); padding: .9rem; }
.tv-rule-grid h3 { margin: .3rem 0 .2rem; font-size: 1rem; }
.tv-rule-grid p { margin: 0; font-size: .85rem; }

.tv-error-card .tv-actions { margin-top: 1rem; }
.tv-footer { margin-top: 1rem; margin-bottom: 2rem; display: grid; grid-template-columns: auto auto; align-items: center; gap: .6rem 1rem; padding: 1rem .25rem 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--tv-muted); font-size: .78rem; }
.tv-footer > div:first-child { display: flex; align-items: baseline; gap: .5rem; }
.tv-footer strong { color: #e7edf5; }
.tv-footer-links { display: flex; justify-content: flex-end; gap: .8rem; }
.tv-footer-links a { text-decoration: none; }
.tv-footer-links a:hover { color: #fff; }
.tv-footer p { grid-column: 1 / -1; margin: 0; font-size: .7rem; opacity: .75; }

@media (max-width: 980px) {
  .tv-hero { grid-template-columns: 1fr; }
  .tv-route-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem .75rem; }
  .tv-route-head, .tv-route-card > p { grid-column: 1 / -1; }
  .tv-route-line { display: none; }
  .tv-route-world { padding: .25rem 0; }
  .tv-roadmap-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-build-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tv-header { min-height: 54px; }
  .tv-nav-toggle { display: inline-flex; }
  .tv-nav { display: none; position: absolute; top: calc(100% + .45rem); right: 0; width: min(280px, calc(100vw - 28px)); padding: .5rem; flex-direction: column; align-items: stretch; border: 1px solid var(--tv-border); border-radius: 12px; background: rgba(7,10,17,.97); box-shadow: var(--tv-shadow); }
  .tv-nav.is-open { display: flex; }
  .tv-nav a { padding: .62rem .7rem; }
  .tv-nav .tv-nav-parent { margin: .2rem 0 0; padding-left: .7rem; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .tv-join-box { align-items: stretch; flex-direction: column; }
  .tv-join-actions .tv-button { flex: 1; }
  .tv-steps, .tv-world-grid, .tv-roadmap-grid, .tv-two-col, .tv-rule-grid { grid-template-columns: 1fr; }
  .tv-world-card p { min-height: auto; }
  .tv-section-heading-row, .tv-callout { align-items: flex-start; flex-direction: column; }
  .tv-update-card { grid-template-columns: 1fr; gap: .35rem; }
  .tv-route-card { grid-template-columns: 1fr; }
  .tv-route-world { padding: .35rem 0; }
  .tv-footer { grid-template-columns: 1fr; }
  .tv-footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .tv-footer p { grid-column: auto; }
}

@media (max-width: 520px) {
  .tv-header, .tv-hero, .tv-page-hero, .tv-section, .tv-callout, .tv-footer { width: min(100% - 18px, 1240px); }
  .tv-hero h1, .tv-page-hero h1 { font-size: 1.85rem; }
  .tv-roadmap-preview { grid-template-columns: 1fr; }
  .tv-command-list > div { grid-template-columns: 1fr; gap: .35rem; }
  .tv-facts div, .tv-info-table > div { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .tv-facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
