@font-face {
  font-family: LocalMono;
  src: local("JetBrains Mono"), local("DejaVu Sans Mono"), local("Consolas");
}
:root {
  --bg: #fafaf7;
  --surface: #fff;
  --soft: #f0f2ef;
  --ink: #252c2b;
  --muted: #78817d;
  --line: #e2e7e2;
  --accent: #2782a4;
  --tint: #eaf4f7;
  --green: #398462;
  --danger: #bd5265;
  --mono: LocalMono, "Courier New", monospace;
  --sans: Arial, Helvetica, sans-serif;
  --sky: #dceef3;
  --shade: #fafaf7f2;
  --shadow: 0 12px 40px #1b393407;
}
:root[data-character="astolfo"] {
  --accent: #b55888;
  --tint: #fbecf3;
  --sky: #f0e4f2;
}
:root[data-character="felix"] {
  --accent: #318f83;
  --tint: #e8f5ee;
  --sky: #e0f2e6;
}
:root[data-character="venti"] {
  --accent: #338975;
  --tint: #e9f5ef;
  --sky: #e3f0ec;
}
:root[data-character="aether"] {
  --accent: #a77b32;
  --tint: #f9f1df;
  --sky: #f5eed6;
}
:root[data-theme="dark"] {
  --bg: #161c20;
  --surface: #1e262c;
  --soft: #27323a;
  --ink: #edf2f1;
  --muted: #a0afb4;
  --line: #34434a;
  --accent: #8bcce5;
  --tint: #243a47;
  --sky: #222c46;
  --shade: #161c20ed;
  --green: #8bd5b2;
  --danger: #f0a3b0;
  --shadow: 0 15px 45px #0001;
}
:root[data-theme="dark"][data-character="astolfo"] {
  --accent: #efa5cb;
  --tint: #392b3c;
  --sky: #30233d;
}
:root[data-theme="dark"][data-character="felix"] {
  --accent: #98dcc6;
  --tint: #243e39;
  --sky: #203b40;
}
:root[data-theme="dark"][data-character="venti"] {
  --accent: #8bdbbd;
  --tint: #233d38;
  --sky: #1e3240;
}
:root[data-theme="dark"][data-character="aether"] {
  --accent: #e7ca87;
  --tint: #3b3528;
  --sky: #282c42;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 27px;
  font-weight: 500;
}
h3 {
  font-weight: 600;
  font-size: 17px;
}
p {
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
}
.eyebrow,
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow {
  display: block;
  color: var(--accent);
  margin-bottom: 14px;
}
.label {
  color: var(--muted);
}
.brand-dot {
  color: var(--accent);
}
.topbar {
  height: 90px;
  max-width: 1320px;
  margin: auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  height: 30px;
  width: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--bg);
  font: 700 26px var(--mono);
  display: grid;
  place-items: center;
  line-height: 1;
}
.brand-dot {
  margin-left: -5px;
}
.header-context {
  font: 9px var(--mono);
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 25px;
  letter-spacing: 0.09em;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.theme-switch {
  display: flex;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 30px;
  padding: 4px;
  gap: 3px;
}
.theme-switch button {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}
.theme-switch button.active {
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 2px 7px #0001;
}
.demo-tag {
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.landing {
  max-width: 1320px;
  margin: auto;
  padding: 0 44px;
}
.landing-intro {
  text-align: center;
  padding: 58px 20px 45px;
}
.landing-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 26px;
}
.landing-intro h1 {
  font-size: clamp(47px, 6.2vw, 83px);
  font-weight: 500;
  letter-spacing: -0.065em;
  margin-bottom: 23px;
}
.landing-intro h1 em {
  font-style: normal;
  color: var(--accent);
}
.landing-intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.atmosphere-control {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.atmosphere-control > .label {
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
}
.character-picker {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.character-picker button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 25px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  transition: 0.2s;
}
.character-picker button:hover {
  background: var(--soft);
}
.character-picker button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 5px #00000004;
}
.character-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #77bcd7;
}
.character-dot.astolfo {
  background: #dc8ebc;
}
.character-dot.felix {
  background: #83cbb8;
}
.character-dot.venti {
  background: #66baa1;
}
.character-dot.aether {
  background: #d2ac63;
}
.landing-stage {
  height: 435px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: var(--sky);
  border: 1px solid var(--line);
}
.lore-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  image-rendering: pixelated;
  z-index: -2;
}
.world-night {
  display: none;
}
:root[data-theme="dark"] .world-day {
  display: none;
}
:root[data-theme="dark"] .world-night {
  display: block;
}
.landing-stage:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, #14221c66);
  pointer-events: none;
  z-index: 0;
}
.sprite {
  --sprite-h: 260px;
  height: var(--sprite-h);
  width: calc(var(--sprite-h) * 0.54);
  background-image: url("/assets/characters.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left bottom;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.sprite.astolfo {
  width: calc(var(--sprite-h) * 0.495);
  background-position: 54.5% bottom;
}
.sprite.felix {
  width: calc(var(--sprite-h) * 0.44);
  background-position: right bottom;
}
.sprite.venti,
.sprite.aether {
  width: calc(var(--sprite-h) * 0.667);
  background-size: contain;
  background-position: center bottom;
}
.sprite.venti {
  background-image: url("/assets/venti.png");
}
.sprite.aether {
  background-image: url("/assets/aether.png");
}
.landing-character {
  --sprite-h: 335px;
  position: absolute;
  bottom: 44px;
  right: 18%;
  z-index: 3;
  animation: idle 5s steps(2, end) infinite;
  filter: drop-shadow(0 8px 0 #17252118);
}
.little-party {
  position: absolute;
  left: 7%;
  bottom: 42px;
  display: flex;
  align-items: flex-end;
  gap: 19px;
  z-index: 2;
}
.little-figure {
  --sprite-h: 80px;
  animation: idle 4s steps(2, end) infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 3px 0 #17252118);
}
.world-caption {
  position: absolute;
  left: 27px;
  right: 27px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 3px #0008;
  z-index: 5;
}
.night-label {
  display: none;
}
:root[data-theme="dark"] .morning-label {
  display: none;
}
:root[data-theme="dark"] .night-label {
  display: inline;
}
.scene-stars {
  display: none;
  position: absolute;
  top: 25px;
  left: 15%;
  right: 16%;
  color: #fff8;
  z-index: 1;
  justify-content: space-between;
  font-size: 13px;
  animation: twinkle 4s ease-in-out infinite;
}
.scene-stars span {
  margin-top: 30px;
}
:root[data-theme="dark"] .scene-stars {
  display: flex;
}
.scene-wind {
  position: absolute;
  left: -20%;
  top: 20%;
  width: 65px;
  height: 8px;
  background: #fff8;
  clip-path: polygon(0 0, 75% 0, 75% 40%, 100% 40%, 100% 100%, 0 100%);
  animation: drift 26s linear infinite;
  z-index: 1;
}
.landing-meta {
  padding: 24px 3px 32px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font: 9px var(--mono);
}
.landing-meta a:hover {
  color: var(--accent);
}
.content,
.sub-layout {
  max-width: 1232px;
  margin: 0 auto;
  padding: 10px 32px 0;
  min-width: 0;
}
.world-banner {
  min-height: 245px;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  isolation: isolate;
  background: var(--sky);
  border: 1px solid var(--line);
}
.banner-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--shade),
    var(--shade) 38%,
    transparent 85%
  );
  z-index: -1;
}
.banner-copy {
  position: relative;
  z-index: 3;
  padding: 43px;
  max-width: 75%;
}
.banner-copy h1 {
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -0.055em;
  margin-bottom: 12px;
}
.banner-copy p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.banner-location {
  font: 9px var(--mono);
  color: var(--muted);
}
.banner-character {
  --sprite-h: 225px;
  position: absolute;
  right: 10%;
  bottom: 5px;
  z-index: 2;
}
.world-footer {
  max-width: 1168px;
  margin: 58px auto 0;
  height: 255px;
  border-radius: 25px 25px 0 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sky);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.world-footer:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(transparent, #12251d66);
  pointer-events: none;
}
.footer-figure {
  --sprite-h: 113px;
  position: absolute;
  bottom: 35px;
  left: calc(50% - 30px);
  z-index: 2;
  animation: idle 5s steps(2, end) infinite;
}
.world-footer .world-caption {
  font-size: 8px;
}
.breadcrumbs {
  font: 10px var(--mono);
  color: var(--muted);
  margin: 15px 0;
}
.section {
  margin-top: 35px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head .eyebrow {
  margin-bottom: 8px;
}
.telemetry-controls {
  margin-top: 25px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.unknown {
  background: var(--muted);
}
.dot.down {
  background: var(--danger);
}
.dot.demo {
  background: var(--accent);
}
.updated {
  font: 9px var(--mono);
  color: var(--muted);
}
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.segmented {
  display: flex;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.segmented button {
  font: 10px var(--mono);
  padding: 6px 12px;
  border: 0;
  background: transparent;
  border-radius: 20px;
  color: var(--muted);
}
.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 5px #0001;
}
.icon-btn {
  border: 0;
  background: transparent;
  font-size: 19px;
  color: var(--muted);
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
}
.icon-btn:hover {
  background: var(--soft);
}
.refresh {
  border: 1px solid var(--line);
  border-radius: 50%;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.metric {
  background: var(--surface);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--shadow);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 10px var(--mono);
}
.metric-value {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.055em;
  margin-top: 14px;
  line-height: 1.2;
}
.metric-value small {
  font-size: 16px;
  margin-left: 4px;
  color: var(--muted);
}
.metric-sub {
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: 9px;
}
.metric svg {
  display: block;
  width: 100%;
  height: 35px;
  margin-top: 19px;
  color: var(--accent);
}
.chart-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.chart-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.chart-title h3 {
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.02em;
}
.legend {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font: 9px var(--mono);
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 2px;
  background: var(--accent);
  margin-right: 5px;
  vertical-align: middle;
}
.legend span + span:before {
  background: var(--muted);
}
.chart {
  padding: 8px 0 18px;
  position: relative;
}
.chart svg {
  display: block;
  width: 100%;
  height: 170px;
  color: var(--accent);
  overflow: visible;
}
.chart-times {
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  color: var(--muted);
  margin-top: 12px;
}
.chart-tooltip {
  position: absolute;
  right: 0;
  top: 0;
  font: 10px var(--mono);
  background: var(--ink);
  color: var(--bg);
  padding: 6px 9px;
  border-radius: 8px;
  pointer-events: none;
  display: none;
}
.chart:hover .chart-tooltip {
  display: block;
}
.chart-summary {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.chart-summary span {
  font: 9px var(--mono);
  color: var(--muted);
}
.chart-summary b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 7px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.service {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.service strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}
.service .status-line {
  font-size: 11px;
}
.local-speedtest {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 27px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.local-speedtest .eyebrow {
  margin-bottom: 10px;
  font-size: 9px;
}
.local-speedtest h3 {
  margin-bottom: 8px;
}
.local-speedtest p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 11px 18px;
  min-height: 42px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 12px;
  font-weight: 500;
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.btn:hover {
  background: var(--soft);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px #00000007;
}
.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn.primary:hover {
  filter: brightness(1.07);
}
.badge {
  font: 10px var(--mono);
  padding: 7px 11px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.badge.ok {
  color: var(--green);
}
.notice {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
  color: var(--muted);
  font-size: 11px;
  margin: 20px 0;
}
.empty-panel,
.error-card {
  text-align: center;
  padding: 65px 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  margin-top: 30px;
}
.empty-panel p,
.error-card p {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 23px;
}
.metric-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.sub-layout {
  max-width: 1120px;
}
.sub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 4px 0 20px;
}
.sub-top .eyebrow {
  margin: 0;
  font-size: 9px;
}
.sub-hero {
  min-height: 235px;
}
.sub-hero .banner-copy {
  padding: 48px 37px;
}
.sub-hero .banner-copy h1 {
  font-size: 37px;
}
.sub-hero .banner-character {
  --sprite-h: 215px;
  right: 9%;
}
.sub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  margin-top: 17px;
}
.sub-stat {
  padding: 22px 25px;
  min-width: 0;
}
.sub-stat + .sub-stat {
  border-left: 1px solid var(--line);
}
.sub-stat b {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-top: 8px;
}
.sub-stat .label {
  font-size: 9px;
}
.progress {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin-top: 13px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.sub-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 40px;
  margin-top: 32px;
}
.platform-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 30px;
  overflow-x: auto;
  justify-content: space-between;
}
.platform-tabs button {
  padding: 8px 14px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  flex: 1;
}
.platform-tabs button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 6px #0001;
}
.app-chooser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.app-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-icon {
  height: 44px;
  width: 44px;
  border-radius: 14px;
  background: var(--tint);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  font: 600 25px var(--mono);
}
.app-identity strong {
  display: block;
  font-size: 14px;
}
.app-identity small {
  font-size: 10px;
  color: var(--muted);
}
select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  padding: 8px 28px 8px 12px;
  font-size: 11px;
  max-width: 160px;
}
.steps {
  padding-top: 26px;
}
.step {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 28px;
}
.step-number {
  height: 27px;
  width: 27px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font: 9px var(--mono);
  color: var(--muted);
}
.step h3 {
  font-size: 14px;
  letter-spacing: -0.01em;
  margin: 4px 0 9px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.step .btn {
  min-height: 39px;
  padding: 9px 15px;
  font-size: 11px;
}
.link-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 13px;
}
.link-input code {
  font: 10px var(--mono);
  color: var(--muted);
  padding: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.link-input .icon-btn {
  border-left: 1px solid var(--line);
  border-radius: 0;
  width: 40px;
}
.qr-panel {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
  align-self: start;
  position: sticky;
  top: 25px;
}
.qr-panel .eyebrow {
  font-size: 8px;
  margin-bottom: 15px;
}
.qr-panel h3 {
  font-size: 17px;
  margin-bottom: 18px;
}
.qr {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  aspect-ratio: 1;
  max-width: 190px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr-panel p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.qr-panel .btn {
  width: 100%;
  font-size: 11px;
}
.sub-footer {
  margin-top: 35px;
  padding: 25px 10px 0;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  border-top: 1px solid var(--line);
}
details {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
summary:after {
  content: "+";
  font: 19px var(--mono);
  color: var(--muted);
}
details[open] > summary:after {
  content: "−";
}
details p {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 0;
  line-height: 1.8;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.connection-row:last-child {
  border-bottom: 0;
}
.connection-row strong {
  font: 11px var(--mono);
}
.connection-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.connection-row .btn {
  padding: 6px 12px;
  min-height: 33px;
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  padding: 12px 20px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 5px 30px #0002;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  max-width: 360px;
  width: 90%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 15px 60px #0003;
}
dialog::backdrop {
  background: #111e2680;
  backdrop-filter: blur(5px);
}
dialog .close-dialog.icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}
#qr-code {
  width: 230px;
  max-width: 100%;
  margin: 23px auto;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
}
#qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}
.skip {
  position: fixed;
  left: 10px;
  top: -60px;
  border-radius: 10px;
  padding: 10px;
  background: var(--ink);
  color: var(--bg);
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
@keyframes idle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}
@keyframes twinkle {
  50% {
    opacity: 0.35;
  }
}
@keyframes drift {
  to {
    left: 110%;
  }
}
@media (min-width: 1500px) {
  .landing-stage {
    height: 470px;
  }
  .landing-intro {
    padding-top: 65px;
  }
  .landing-character {
    --sprite-h: 365px;
  }
  .little-figure {
    --sprite-h: 90px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 30px;
  }
  .landing {
    padding: 0 30px;
  }
  .content,
  .sub-layout {
    padding: 10px 27px 0;
  }
  .landing-stage {
    height: 380px;
  }
  .landing-character {
    --sprite-h: 300px;
    right: 15%;
    bottom: 36px;
  }
  .little-party {
    gap: 10px;
    left: 6%;
  }
  .little-figure {
    --sprite-h: 67px;
  }
  .banner-copy {
    padding: 37px;
    max-width: 75%;
  }
  .banner-copy h1 {
    font-size: 36px;
  }
  .banner-character {
    right: 7%;
  }
  .world-footer {
    margin-left: 27px;
    margin-right: 27px;
  }
  .metric {
    padding: 18px;
  }
  .metric-value {
    font-size: 33px;
  }
  .metric-grid {
    gap: 12px;
  }
  .chart-grid {
    gap: 15px;
  }
  .chart-panel {
    padding: 20px;
  }
  .sub-columns {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 25px;
  }
  .platform-tabs {
    gap: 0;
  }
  .platform-tabs button {
    padding-left: 10px;
    padding-right: 10px;
  }
  .sub-hero .banner-copy h1 {
    font-size: 33px;
  }
  .sub-hero .banner-character {
    right: 7%;
  }
  .sub-hero .banner-copy {
    max-width: 74%;
    padding-left: 32px;
  }
}
@media (max-width: 760px) {
  .landing-intro {
    padding: 45px 0 32px;
  }
  .landing-intro h1 {
    font-size: 59px;
  }
  .landing-intro p {
    font-size: 13px;
  }
  .atmosphere-control {
    margin-top: 25px;
    gap: 10px;
  }
  .landing-stage {
    height: 350px;
  }
  .landing-character {
    --sprite-h: 285px;
    right: 14%;
  }
  .little-party {
    gap: 7px;
    left: 5%;
  }
  .little-figure {
    --sprite-h: 55px;
  }
  .landing-meta {
    font-size: 8px;
    flex-wrap: wrap;
  }
  .header-context {
    font-size: 8px;
    padding-left: 18px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .banner-copy {
    padding: 32px;
    max-width: 75%;
  }
  .banner-copy h1 {
    font-size: 33px;
  }
  .banner-character {
    --sprite-h: 210px;
    right: 7%;
  }
  .world-banner {
    min-height: 230px;
  }
  .sub-hero .banner-copy {
    max-width: 72%;
    padding: 37px 28px;
  }
  .sub-hero .banner-copy h1 {
    font-size: 30px;
  }
  .sub-hero .banner-character {
    --sprite-h: 195px;
    right: 5%;
  }
  .sub-columns {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 22px;
  }
  .qr-panel {
    padding: 18px;
  }
  .sub-stat {
    padding: 19px 17px;
  }
  .sub-stat b {
    font-size: 17px;
  }
  .platform-tabs button {
    font-size: 10px;
    padding: 8px;
  }
  .sub-top .eyebrow {
    font-size: 8px;
  }
  .world-footer {
    height: 225px;
  }
  .local-speedtest {
    padding-top: 25px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 76px;
    padding: 0 20px;
    gap: 12px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand-mark {
    height: 27px;
    width: 27px;
    font-size: 23px;
    border-radius: 8px;
  }
  .header-context {
    display: none;
  }
  .header-right {
    gap: 9px;
  }
  .theme-switch {
    padding: 3px;
    gap: 2px;
  }
  .theme-switch button {
    height: 28px;
    width: 29px;
    font-size: 17px;
  }
  .demo-tag {
    font-size: 8px;
    padding: 3px 6px;
  }
  .landing {
    padding: 0 17px;
  }
  .landing-intro {
    padding: 35px 5px 27px;
  }
  .landing-intro .eyebrow {
    font-size: 8px;
    margin-bottom: 22px;
    letter-spacing: 0.1em;
  }
  .landing-intro h1 {
    font-size: 47px;
    line-height: 1.05;
    max-width: 350px;
    margin: 0 auto 20px;
    letter-spacing: -0.06em;
  }
  .landing-intro p {
    font-size: 12px;
    line-height: 1.85;
  }
  .atmosphere-control {
    gap: 11px;
    margin-top: 24px;
  }
  .atmosphere-control > .label {
    width: 100%;
    font-size: 9px;
  }
  .character-picker {
    gap: 1px;
  }
  .character-picker button {
    padding: 7px 9px;
    gap: 5px;
    font-size: 10px;
  }
  .character-dot {
    height: 5px;
    width: 5px;
  }
  .landing-stage {
    height: 380px;
    border-radius: 23px;
  }
  .landing-character {
    --sprite-h: 275px;
    bottom: 40px;
    right: calc(50% - 70px);
  }
  .little-party {
    left: 9%;
    right: 9%;
    justify-content: space-between;
    bottom: 26px;
    gap: 0;
  }
  .little-figure {
    --sprite-h: 48px;
    z-index: 4;
  }
  .little-party .sprite:nth-child(2),
  .little-party .sprite:nth-child(3) {
    visibility: hidden;
  }
  .world-caption {
    left: 17px;
    right: 17px;
    bottom: 12px;
    font-size: 7px;
    letter-spacing: 0;
  }
  .landing-meta {
    padding: 20px 2px 25px;
    gap: 13px;
  }
  .landing-meta > span:last-child {
    display: none;
  }
  .scene-stars {
    top: 30px;
    left: 9%;
    right: 10%;
  }
  .content,
  .sub-layout {
    padding: 5px 18px 0;
  }
  .world-banner {
    min-height: 225px;
    border-radius: 22px;
  }
  .banner-copy {
    padding: 28px 23px;
    max-width: 74%;
  }
  .banner-copy h1 {
    font-size: 30px;
    line-height: 1.2;
    max-width: 210px;
  }
  .banner-copy .eyebrow {
    font-size: 8px;
  }
  .banner-copy p {
    font-size: 10px;
    max-width: 170px;
    overflow-wrap: anywhere;
  }
  .banner-location {
    font-size: 8px;
    line-height: 1.5;
    display: block;
    max-width: 160px;
  }
  .banner-character {
    --sprite-h: 190px;
    right: 4%;
    bottom: 9px;
  }
  .banner-wash {
    background: linear-gradient(
      90deg,
      var(--shade),
      var(--shade) 25%,
      transparent 95%
    );
  }
  .telemetry-controls {
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 16px;
  }
  .status-line {
    font-size: 10px;
  }
  .updated {
    font-size: 8px;
  }
  .controls {
    margin-left: auto;
  }
  .segmented button {
    font-size: 9px;
    padding: 6px 10px;
  }
  .metric-grid {
    gap: 11px;
  }
  .metric {
    padding: 18px 15px;
    border-radius: 17px;
  }
  .metric-value {
    font-size: 33px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric-sub {
    font-size: 8px;
  }
  .metric-value small {
    font-size: 13px;
  }
  .chart-panel {
    padding: 20px 18px;
    border-radius: 19px;
  }
  .chart-title {
    flex-wrap: wrap;
    gap: 13px;
  }
  .chart-title h3 {
    font-size: 14px;
  }
  .legend {
    font-size: 8px;
  }
  .chart-summary span {
    font-size: 8px;
  }
  .chart-summary b {
    font-size: 11px;
  }
  .chart-times {
    font-size: 7px;
  }
  .section {
    margin-top: 29px;
  }
  .section-head h2 {
    font-size: 23px;
  }
  .service {
    padding: 16px;
    border-radius: 15px;
  }
  .service strong {
    font-size: 12px;
  }
  .service .status-line {
    font-size: 10px;
  }
  .local-speedtest {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 27px;
  }
  .local-speedtest h3 {
    font-size: 17px;
  }
  .local-speedtest p {
    font-size: 11px;
  }
  .local-speedtest > .btn {
    font-size: 11px;
  }
  .world-footer {
    margin: 35px 18px 0;
    height: 205px;
    border-radius: 22px 22px 0 0;
  }
  .footer-figure {
    --sprite-h: 90px;
    bottom: 28px;
  }
  .world-footer .world-caption {
    font-size: 7px;
  }
  .sub-top {
    margin-bottom: 17px;
    align-items: center;
  }
  .sub-top .eyebrow {
    font-size: 7px;
    max-width: 145px;
    line-height: 1.7;
  }
  .badge {
    font-size: 8px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .sub-hero {
    min-height: 220px;
  }
  .sub-hero .banner-copy {
    padding: 35px 22px;
    max-width: 74%;
  }
  .sub-hero .banner-copy h1 {
    font-size: 29px;
    max-width: 180px;
  }
  .sub-hero .banner-copy p {
    font-size: 10px;
    max-width: 175px;
  }
  .sub-hero .banner-character {
    --sprite-h: 185px;
    right: 5%;
    bottom: 10px;
  }
  .sub-stats {
    margin-top: 13px;
    border-radius: 17px;
  }
  .sub-stat {
    padding: 16px 10px;
  }
  .sub-stat .label {
    font-size: 7px;
    letter-spacing: 0.03em;
  }
  .sub-stat b {
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: -0.05em;
  }
  .sub-stat b span {
    font-size: 9px !important;
  }
  .notice {
    font-size: 10px;
    padding: 12px 13px;
    margin: 17px 0;
  }
  .sub-columns {
    display: block;
    margin-top: 25px;
  }
  .qr-panel {
    display: none;
  }
  .platform-tabs {
    gap: 0;
    padding: 4px;
  }
  .platform-tabs button {
    font-size: 10px;
    padding: 8px 7px;
    flex: 1;
  }
  .app-chooser {
    padding: 20px 0;
  }
  .app-icon {
    height: 40px;
    width: 40px;
    border-radius: 13px;
    font-size: 23px;
  }
  .app-identity strong {
    font-size: 13px;
  }
  .app-identity small {
    font-size: 9px;
  }
  .app-identity {
    gap: 10px;
  }
  select {
    font-size: 10px;
    max-width: 145px;
    padding: 8px 22px 8px 10px;
  }
  .steps {
    padding-top: 23px;
  }
  .step {
    gap: 12px;
    margin-bottom: 27px;
  }
  .step p {
    font-size: 11px;
  }
  .step h3 {
    font-size: 13px;
  }
  .step .btn {
    font-size: 10px;
    padding: 9px 13px;
    gap: 10px;
  }
  .qr-mobile {
    display: inline-flex !important;
  }
  .step-number {
    width: 25px;
    height: 25px;
    font-size: 8px;
    border-radius: 8px;
  }
  .link-input code {
    font-size: 9px;
    padding: 11px;
  }
  .sub-footer {
    font-size: 9px;
    padding-top: 20px;
    line-height: 1.8;
  }
  .empty-panel,
  .error-card {
    padding: 45px 20px;
  }
  .empty-panel h2,
  .error-card h2 {
    font-size: 24px;
  }
  dialog {
    padding: 30px 24px;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding: 0 17px;
  }
  .brand {
    font-size: 18px;
    gap: 7px;
  }
  .topbar .demo-tag {
    display: none;
  }
  .landing-intro h1 {
    font-size: 40px;
  }
  .character-picker button {
    padding: 7px;
    font-size: 9px;
  }
  .landing-character {
    --sprite-h: 255px;
    right: calc(50% - 66px);
  }
  .landing-stage {
    height: 345px;
  }
  .banner-copy h1 {
    font-size: 27px;
    max-width: 155px;
  }
  .banner-copy {
    padding: 25px 18px;
    max-width: 75%;
  }
  .banner-character {
    --sprite-h: 165px;
    right: 2%;
  }
  .banner-copy p {
    font-size: 9px;
  }
  .banner-location {
    max-width: 135px;
    font-size: 7px;
  }
  .sub-hero .banner-copy h1 {
    font-size: 26px;
    max-width: 150px;
  }
  .sub-hero .banner-copy {
    padding-left: 19px;
  }
  .sub-hero .banner-character {
    --sprite-h: 165px;
    right: 3%;
  }
  .sub-stat {
    padding: 15px 8px;
  }
  .sub-stat b {
    font-size: 12px;
  }
  .sub-stat b span {
    font-size: 8px !important;
  }
  .sub-stat .label {
    font-size: 6px;
  }
  .platform-tabs button {
    font-size: 9px;
    padding: 8px 6px;
  }
  .app-chooser select {
    max-width: 125px;
  }
  .metric {
    padding: 16px 12px;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-sub {
    font-size: 7px;
  }
  .service-grid {
    gap: 9px;
  }
  .service {
    padding: 14px;
  }
  .service strong {
    font-size: 11px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .world-footer .world-caption span:first-child {
    max-width: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Feet sit on the foreground path; transparency margins stay intact. */
.landing-character,
.banner-character,
.sub-hero .banner-character {
  bottom: 0;
}
.little-party {
  bottom: 3px;
}
.footer-figure {
  bottom: 1px;
}
.world-caption {
  top: 18px;
  bottom: auto;
}
@media (max-width: 600px) {
  .world-caption {
    top: 14px;
    bottom: auto;
  }
  .little-party {
    bottom: 3px;
  }
  .landing-character {
    bottom: 0;
  }
  .footer-figure {
    bottom: 1px;
  }
}
