:root {
  --bg: #050506;
  --bg2: #0b0b0d;
  --panel: #0e0e11;
  --line: #26262b;
  --line2: #3a3a41;
  --text: #f2f2f3;
  --muted: #a1a1aa;
  --dim: #6b6b74;
  --px: 3px;
  --pixel: 'Silkscreen', 'Press Start 2P', monospace;
  --pixel2: 'Press Start 2P', 'Silkscreen', monospace;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
strong { color: #fff; font-weight: 600; }
.dim { color: var(--dim); }
::selection { background: #fff; color: #000; }

/* ---------- background layers ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; image-rendering: pixelated; }
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- pixel primitives ---------- */
.px-box, .card, .btn, .player {
  position: relative;
  background: var(--panel);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--line),
    0 var(--px) 0 0 var(--line),
    calc(var(--px) * -1) 0 0 0 var(--line),
    var(--px) 0 0 0 var(--line);
}
.av svg, .logo-av svg, .player-av svg, .mini-av svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.av { display: inline-block; width: 64px; height: 64px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(5,5,6,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 18px; letter-spacing: .02em; }
.logo-av { width: 28px; height: 28px; display: inline-block; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nav nav a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 14px; letter-spacing: .04em;
  padding: 12px 20px; margin: var(--px);
  color: var(--text);
  transition: transform .15s steps(3), background .15s;
}
.btn:hover { transform: translate(-2px, -2px); background: #17171b; }
.btn-primary { background: #f2f2f3; color: #050506; box-shadow: 0 -3px 0 0 #f2f2f3, 0 3px 0 0 #f2f2f3, -3px 0 0 0 #f2f2f3, 3px 0 0 0 #f2f2f3, 6px 6px 0 0 #3a3a41; }
.btn-primary:hover { background: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}
.glow {
  position: absolute; z-index: -1; left: 50%; top: 42%;
  width: min(900px, 120vw); height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.10), rgba(120,140,255,.05) 40%, transparent 70%);
  filter: blur(10px);
}
.kicker {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px;
  background: rgba(255,255,255,.02);
}
.kicker .dot { width: 8px; height: 8px; background: #3df58a; box-shadow: 0 0 10px #3df58a; animation: blink 1.6s steps(2) infinite; }
.hero-title { font-family: var(--pixel); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; font-size: clamp(40px, 8.4vw, 112px); }
.hero-title .line { display: block; }
.hero-title .dimmer {
  background: linear-gradient(180deg, #ffffff 0%, #8a8a94 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.typer { font-family: var(--mono); font-size: clamp(14px, 2vw, 18px); color: #d4d4d8; margin-top: 28px; min-height: 1.7em; }
.typer .prompt { color: #3df58a; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: #f2f2f3; vertical-align: -0.18em; margin-left: 4px; animation: blink 1s steps(2) infinite; }
.hero-sub { max-width: 620px; color: var(--muted); margin-top: 18px; font-size: clamp(15px, 1.6vw, 17px); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.parade { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 22px); margin-top: 64px; max-width: 900px; }
.p-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p-item .av { width: clamp(44px, 6vw, 60px); height: clamp(44px, 6vw, 60px); animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c, #fff) 35%, transparent)); }
.p-item small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.p-item:nth-child(2) .av { animation-delay: -.2s } .p-item:nth-child(3) .av { animation-delay: -.4s }
.p-item:nth-child(4) .av { animation-delay: -.6s } .p-item:nth-child(5) .av { animation-delay: -.8s }
.p-item:nth-child(6) .av { animation-delay: -1s } .p-item:nth-child(7) .av { animation-delay: -1.2s }
.p-item:nth-child(8) .av { animation-delay: -1.4s } .p-item:nth-child(9) .av { animation-delay: -1.6s }
.p-item:nth-child(10) .av { animation-delay: -1.8s }
.p-item.is-human { margin-right: clamp(6px, 2vw, 20px); }
.p-item.is-human small { color: #fff; }
.bubble {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  font-family: var(--pixel2); font-size: 9px; color: #000; background: #fff; padding: 5px 7px;
  box-shadow: 0 -2px 0 0 #fff, 0 2px 0 0 #fff, -2px 0 0 0 #fff, 2px 0 0 0 #fff;
  animation: blink 2.4s steps(2) infinite;
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; background: #fff; transform: translateX(-50%); }
.scroll-hint { margin-top: 56px; font-family: var(--pixel2); font-size: 10px; color: var(--dim); letter-spacing: .1em; animation: blink 1.4s steps(2) infinite; }
.scroll-hint:hover { color: #fff; }

/* ---------- sections ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 40px); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.sec-num { font-family: var(--pixel2); font-size: 12px; color: var(--dim); }
.sec-head h2 { font-family: var(--pixel); font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.1; }
.sec-sub { color: var(--muted); max-width: 620px; margin-bottom: 56px; }
.label { font-family: var(--pixel2); font-size: 9px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; margin-top: 40px; }
.player { padding: 26px; margin: var(--px); }
.player::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.06); pointer-events: none; }
.player-top { display: flex; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line2); }
.player-av { width: 88px; height: 88px; flex: none; background: #141418; padding: 8px; box-shadow: 0 -3px 0 0 var(--line2), 0 3px 0 0 var(--line2), -3px 0 0 0 var(--line2), 3px 0 0 0 var(--line2); }
.player-name { font-family: var(--pixel); font-size: 24px; line-height: 1.2; margin-top: 6px; }
.player-alias { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stats { display: grid; gap: 12px; padding: 20px 0; }
.stats div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.stats dt { font-family: var(--pixel2); font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.stats dd { font-family: var(--mono); font-size: 14px; color: var(--text); }
.xp { display: flex; align-items: center; gap: 10px; font-family: var(--pixel2); font-size: 9px; color: var(--muted); }
.xp .bar { flex: 1; height: 12px; background: #17171b; box-shadow: 0 -2px 0 0 var(--line2), 0 2px 0 0 var(--line2), -2px 0 0 0 var(--line2), 2px 0 0 0 var(--line2); padding: 2px; }
.xp .bar i { display: block; height: 100%; width: 86%; background: repeating-linear-gradient(90deg, #3df58a 0 8px, transparent 8px 10px); }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 17px; max-width: 620px; }
.about-text .lead { font-family: var(--sans); font-size: clamp(22px, 3vw, 30px); line-height: 1.35; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.about-text .btn { margin-top: 8px; }

/* ---------- org chart ---------- */
.org { display: flex; flex-direction: column; align-items: stretch; }
.tier { display: flex; flex-direction: column; align-items: center; }
.tier-label { font-family: var(--pixel2); font-size: 9px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-bottom: 16px; }
.link { width: 3px; height: 44px; margin: 10px auto; background: repeating-linear-gradient(to bottom, var(--line2) 0 6px, transparent 6px 12px); }
.row { display: grid; gap: 22px; width: 100%; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  --c: #fff;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; margin: var(--px);
  transition: transform .18s steps(3), box-shadow .18s steps(3), background .18s;
  box-shadow:
    0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line),
    0 0 0 0 transparent;
}
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .85; }
.card:hover {
  transform: translate(-4px, -4px);
  background: #121216;
  box-shadow:
    0 -3px 0 0 var(--c), 0 3px 0 0 var(--c), -3px 0 0 0 var(--c), 3px 0 0 0 var(--c),
    8px 8px 0 0 color-mix(in srgb, var(--c) 35%, transparent);
}
.card .av { width: 64px; height: 64px; flex: none; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c) 30%, transparent)); }
.card:nth-child(2) .av { animation-delay: -.7s } .card:nth-child(3) .av { animation-delay: -1.4s } .card:nth-child(4) .av { animation-delay: -2.1s }
.card h3 { font-family: var(--pixel); font-size: 22px; font-weight: 400; line-height: 1.1; }
.card .role { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--c); margin: 6px 0 10px; letter-spacing: .02em; text-transform: uppercase; }
.card-body > p:not(.role) { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-family: var(--mono); font-size: 11px; color: #cfcfd4; padding: 2px 8px; background: #17171b; border: 1px solid #2a2a30; }
.card-ceo { max-width: 460px; width: 100%; background: linear-gradient(180deg, #141418, #0e0e11); }
.card-wide { max-width: 640px; width: 100%; }

.divisions { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.division { padding: 22px; margin: var(--px); background: rgba(14,14,17,.6); }
.division::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%); }
.div-label { display: flex; align-items: center; gap: 10px; font-family: var(--pixel2); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; color: var(--c); flex-wrap: wrap; }
.div-label .dim { color: var(--dim); }
.mini-av { width: 24px; height: 24px; display: inline-block; }
.division .card { background: #0b0b0e; }
.division .card .av { width: 56px; height: 56px; }

.routine { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line2); }
.routine ol { list-style: none; margin-top: 14px; display: grid; gap: 12px; }
.routine li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; font-size: 14px; color: var(--muted); align-items: baseline; }
.routine time { font-family: var(--mono); font-size: 12px; color: #3df58a; }

/* ---------- footer ---------- */
.footer {
  position: relative; text-align: center;
  padding: clamp(72px, 10vw, 120px) 20px 48px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255,255,255,.06), transparent 70%);
}
.collab { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 32px); flex-wrap: wrap; }
.collab small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 10px; width: 100%; }
.collab-human { display: flex; flex-direction: column; align-items: center; }
.collab-human .av { width: 76px; height: 76px; }
.times { font-family: var(--pixel2); font-size: 28px; color: var(--dim); animation: blink 1.2s steps(2) infinite; }
.collab-bots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; }
.collab-bots .av { width: 46px; height: 46px; transition: transform .15s steps(2); }
.collab-bots .av:hover { transform: translateY(-6px); }
.built { font-family: var(--pixel); font-size: clamp(20px, 3.6vw, 36px); margin-top: 44px; line-height: 1.3; }
.built .x { color: var(--dim); }
.foot-sub { color: var(--muted); margin-top: 12px; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: #fff; }
.copy { margin-top: 36px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ---------- motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .row-3 { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .divisions { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .player { max-width: 460px; }
}
@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
  .card { padding: 18px; gap: 14px; }
  .card .av, .division .card .av { width: 48px; height: 48px; }
  .card h3 { font-size: 19px; }
  .division { padding: 16px 12px; }
  .hero { padding-top: 56px; min-height: auto; }
  .parade { margin-top: 48px; gap: 14px 12px; }
  .p-item.is-human { margin-right: 0; }
  .stats div { grid-template-columns: 64px 1fr; }
  .player { padding: 20px; }
  .player-av { width: 72px; height: 72px; }
}
.div-label .dim { white-space: nowrap; }
.div-label .dim::before { content: '/ '; }

/* ---------- shared bits ---------- */
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.about-text .about-actions .btn { margin-top: 0; }
.nav nav a.active { color: #fff; }
.nav nav a.active::before { content: '> '; color: #3df58a; }

/* ---------- about page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel2); font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.back-link:hover { color: #fff; }
.me-hero { max-width: 1160px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(18px, 4vw, 40px) clamp(40px, 6vw, 72px); position: relative; }
.me-hero .glow { top: 50%; width: min(900px, 100%); }
.me-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 36px; }
.me-avatar { width: clamp(160px, 22vw, 240px); aspect-ratio: 1; padding: 18px; background: radial-gradient(circle at 50% 40%, #1b1b21, #0e0e11 70%); }
.me-avatar .av { width: 100%; height: 100%; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255,255,255,.12)); }
.me-cmd { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.me-cmd span { color: #3df58a; }
.me-title { font-family: var(--pixel); font-weight: 400; font-size: clamp(38px, 7vw, 84px); line-height: 1.05; }
.me-role { font-family: var(--mono); font-size: clamp(14px, 1.8vw, 17px); color: #d4d4d8; margin-top: 18px; }
.me-role .sep { color: var(--dim); margin: 0 8px; }
.me-sub { color: var(--muted); margin-top: 10px; max-width: 560px; }
.me-hero .cta { justify-content: flex-start; margin-top: 26px; }

.me-section { max-width: 1160px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 40px); }
.me-two { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; margin-top: 36px; }
.sheet { padding: 26px; margin: var(--px); }
.sheet::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.06); pointer-events: none; }
.sheet-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line2); margin-bottom: 6px; }
.sheet-title .label:last-child { color: #3df58a; }
.sheet .stats div { grid-template-columns: 84px 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--mono); font-size: 12px; color: #e4e4e7; padding: 2px 9px; background: #17171b; border: 1px solid #2a2a30; }
.bio p { color: var(--muted); font-size: 17px; margin-bottom: 18px; max-width: 620px; }
.bio .lead { font-size: clamp(22px, 3vw, 30px); line-height: 1.35; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.bio a { color: #fff; border-bottom: 1px dashed var(--line2); }
.bio a:hover { border-color: #fff; }


.crew-cta { text-align: center; padding: clamp(36px, 5vw, 56px) 22px; margin: 36px var(--px) var(--px); }
.crew-cta .parade { margin: 0 auto 28px; }
.crew-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.me-back { max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) clamp(48px, 7vw, 80px); text-align: center; }

@media (max-width: 860px) {
  .me-hero-grid { grid-template-columns: 1fr; justify-items: start; }
  .me-two { grid-template-columns: 1fr; }
  .sheet { max-width: 520px; }
}
@media (max-width: 640px) {
  .me-avatar { width: 140px; }
  .sheet { padding: 20px; }
  .sheet .stats div { grid-template-columns: 70px 1fr; }
  .nav nav { gap: 14px; font-size: 12px; }
}
.built strong { font-weight: 400; }

/* ---------- home: use case links ---------- */
.sec-sub-tight { margin-bottom: 24px; }
.crew-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-bottom: 56px; }
.crew-actions .hint { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.uc-link { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--c); opacity: .85; border-bottom: 1px dashed transparent; }
.uc-link:hover { opacity: 1; border-bottom-color: var(--c); }

/* ---------- use cases page ---------- */
.uc-hero { padding-bottom: 8px; }
.uc-lead { font-size: clamp(16px, 1.8vw, 19px); max-width: 640px; }
.flow { padding: clamp(22px, 3vw, 36px) clamp(14px, 3vw, 36px); margin: var(--px); display: flex; flex-direction: column; align-items: center; }
.flow-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.flow-link { width: 3px; height: 26px; margin: 8px 0; background: repeating-linear-gradient(to bottom, var(--line2) 0 6px, transparent 6px 12px); }
.flow-label { font-family: var(--pixel2); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; text-align: center; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; padding: 10px 10px 8px; background: #121216; border: 1px solid #26262b; border-top: 3px solid var(--c); transition: transform .15s steps(3), background .15s; }
.node:hover { transform: translateY(-3px); background: #17171c; }
.node .av { width: 40px; height: 40px; }
.node b { font-family: var(--pixel); font-weight: 400; font-size: 14px; }
.node small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.flow-divs { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; width: 100%; max-width: 820px; }
.flow-div { padding: 14px 10px; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 4%, transparent); }
.flow-div .flow-label { color: var(--c); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.step { padding: 22px; margin: var(--px); }
.step-n { font-family: var(--pixel2); font-size: 11px; color: #050506; background: #3df58a; display: inline-block; padding: 5px 8px; }
.step h3 { font-family: var(--pixel); font-weight: 400; font-size: 20px; margin: 12px 0 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
.uc-routine { margin: 32px var(--px) var(--px); padding: 22px; border-top: none; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.j-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 10px 8px; min-width: 76px; background: #0e0e11; border: 1px solid #26262b; border-bottom: 3px solid var(--c); transition: transform .15s steps(3); }
.j-item:hover { transform: translateY(-3px); }
.j-item .av { width: 40px; height: 40px; }
.j-item small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.uc-stack { display: grid; gap: 34px; }
.uc { padding: clamp(20px, 3vw, 34px); margin: var(--px); scroll-margin-top: 84px; }
.uc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .85; }
.uc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 0% 0%, color-mix(in srgb, var(--c) 8%, transparent), transparent 70%); }
.uc:target { box-shadow: 0 -3px 0 0 var(--c), 0 3px 0 0 var(--c), -3px 0 0 0 var(--c), 3px 0 0 0 var(--c); }
.uc-head { display: flex; gap: 22px; align-items: center; }
.uc-av { width: 104px; height: 104px; flex: none; padding: 12px; background: #141418; box-shadow: 0 -3px 0 0 var(--line2), 0 3px 0 0 var(--line2), -3px 0 0 0 var(--line2), 3px 0 0 0 var(--line2); }
.uc-av .av { width: 100%; height: 100%; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 35%, transparent)); }
.uc-name { font-family: var(--pixel); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; margin-top: 6px; }
.uc-title { font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--c); margin-top: 6px; }
.uc-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.uc-meta div { display: flex; gap: 8px; align-items: baseline; }
.uc-meta dt { font-family: var(--pixel2); font-size: 8px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.uc-meta dd { font-family: var(--mono); font-size: 12.5px; color: #d4d4d8; }
.uc-intro { color: #d4d4d8; font-size: 17px; margin: 22px 0 6px; max-width: 760px; }
.uc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin-top: 18px; }
.uc-side { display: grid; gap: 22px; align-content: start; }
.uc-block h3 { font-family: var(--pixel2); font-size: 9px; font-weight: 400; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.uc-block p { color: var(--muted); font-size: 15px; }
.uc-list { list-style: none; display: grid; gap: 10px; }
.uc-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.uc-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--c); }
.chips-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list li { font-family: var(--mono); font-size: 12px; color: #e4e4e7; padding: 3px 9px; background: #17171b; border: 1px solid #2a2a30; }
.uc-asks { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line2); }
.uc-asks .ex { font-family: var(--mono); font-size: 10px; letter-spacing: 0; text-transform: none; color: var(--muted); border: 1px solid var(--line2); padding: 1px 6px; }
.uc-asks ul { list-style: none; display: grid; gap: 8px; }
.uc-asks li { font-family: var(--mono); font-size: 13.5px; color: #e4e4e7; background: #0a0a0d; border: 1px solid #222228; border-left: 3px solid var(--c); padding: 10px 14px; }
.uc-asks .pr { color: #3df58a; }
.uc-top { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.uc-top:hover { color: #fff; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .flow-divs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo > span:last-child { display: none; }
  .nav nav { gap: 12px; font-size: 12px; }
  .uc-head { gap: 16px; align-items: flex-start; }
  .uc-av { width: 72px; height: 72px; padding: 8px; }
  .uc-meta { flex-direction: column; }
  .node { min-width: 72px; padding: 8px 6px 6px; }
  .node .av { width: 32px; height: 32px; }
  .j-item { min-width: 0; flex: 1 0 calc(20% - 10px); padding: 8px 4px 6px; }
  .j-item .av { width: 32px; height: 32px; }
  .crew-actions .hint { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .flow { padding-left: 10px; padding-right: 10px; }
  .flow-div { padding: 12px 4px; }
  .flow-div .flow-row { gap: 6px; flex-wrap: nowrap; }
  .flow-div .node { min-width: 0; flex: 0 1 66px; }
  .flow-div .node b { font-size: 12px; }
}

/* ---------- use cases: deck / stacking cards ---------- */
.uc-side .uc-asks { margin-top: 0; padding-top: 0; border-top: none; }
.uc-shade { display: none; }
.uc-progress { display: none; }

html.stack-on { scroll-behavior: auto; }
.stack-on .uc-stage {
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--navh, 60px) + 10px) 6px 14px;
  margin: 0 -6px;
  overflow: hidden;
}
.stack-on .uc-progress { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.uc-count { font-family: var(--pixel2); font-size: 10px; color: var(--dim); letter-spacing: .08em; min-width: 72px; }
.uc-count b { color: #fff; font-weight: 400; }
.uc-dots { display: flex; gap: 6px; flex-wrap: nowrap; }
.uc-dot { width: 12px; height: 12px; background: #1c1c21; box-shadow: inset 0 0 0 2px #2e2e35; transition: background .2s, box-shadow .2s, transform .2s; }
.uc-dot.is-seen { background: color-mix(in srgb, var(--c) 45%, #111); box-shadow: none; }
.uc-dot.is-active { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); }
.uc-hint { font-family: var(--pixel2); font-size: 9px; color: var(--dim); letter-spacing: .1em; min-width: 72px; text-align: right; animation: blink 1.4s steps(2) infinite; }
.stack-on .uc-stack { position: relative; display: block; flex: none; margin-top: var(--peek, 36px); }
.stack-on .uc {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--deckh, 600px);
  margin: 0; overflow: hidden; scroll-margin-top: 0;
  background: #0e0e11;
  transform-origin: 50% 0%;
  will-change: transform;
}
.stack-on .uc:target { box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.stack-on .uc-shade { display: block; position: absolute; inset: 0; background: #050506; opacity: 0; pointer-events: none; z-index: 3; }
.stack-on .uc-inner { transform-origin: 0 0; }
.stack-on .uc-top, .stack-on .uc .label { display: none; }
.stack-on .uc-intro { margin: 14px 0 0; font-size: 16px; }
.stack-on .uc-grid { margin-top: 14px; gap: 26px; grid-template-columns: 1.25fr 1fr; }
.stack-on .uc-side { gap: 16px; }
.stack-on .uc-block h3 { margin-bottom: 8px; }
.stack-on .uc-list { gap: 7px; }
.stack-on .uc-list li { font-size: 14.5px; line-height: 1.5; }
.stack-on .uc-block p { font-size: 14px; line-height: 1.5; }
.stack-on .uc-asks ul { gap: 6px; }
.stack-on .uc-asks li { font-size: 12.5px; padding: 7px 11px; line-height: 1.45; }
.stack-on .uc-av { width: 88px; height: 88px; padding: 10px; }
.stack-on .uc-name { margin-top: 0; }

/* compact variant (applied by JS when a card doesn't fit) */
.stack-on .uc.tight { padding: 16px 16px 14px; }
.stack-on .uc.tight .uc-head { gap: 14px; align-items: center; }
.stack-on .uc.tight .uc-av { width: 56px; height: 56px; padding: 6px; }
.stack-on .uc.tight .uc-name { font-size: 24px; }
.stack-on .uc.tight .uc-title { font-size: 11px; margin-top: 3px; }
.stack-on .uc.tight .uc-meta { margin-top: 5px; gap: 2px 14px; }
.stack-on .uc.tight .uc-meta dd { font-size: 11px; }
.stack-on .uc.tight .uc-intro { font-size: 13.5px; line-height: 1.45; margin-top: 10px; }
.stack-on .uc.tight .uc-grid { margin-top: 10px; gap: 12px; }
.stack-on .uc.tight .uc-side { gap: 10px; }
.stack-on .uc.tight .uc-block h3 { font-size: 8px; margin-bottom: 6px; }
.stack-on .uc.tight .uc-list { gap: 4px; }
.stack-on .uc.tight .uc-list li { font-size: 13px; line-height: 1.42; padding-left: 16px; }
.stack-on .uc.tight .uc-list li::before { width: 6px; height: 6px; top: .6em; }
.stack-on .uc.tight .uc-block p { font-size: 13px; line-height: 1.42; }
.stack-on .uc.tight .chips-list li { font-size: 11px; padding: 1px 7px; }
.stack-on .uc.tight .uc-asks ul { gap: 4px; }
.stack-on .uc.tight .uc-asks li { font-size: 11.5px; padding: 5px 9px; line-height: 1.4; }

@media (max-width: 860px) {
  .stack-on .uc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .uc-dots { gap: 4px; }
  .uc-dot { width: 10px; height: 10px; }
  .uc-count, .uc-hint { min-width: 0; font-size: 8px; }
  .stack-on .uc-meta { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- live office ---------- */
.btn-live { gap: 10px; }
.live-dot, .lo-dot { width: 8px; height: 8px; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; display: inline-block; animation: blink 1.4s steps(2) infinite; flex: none; }
.lo-hero { padding-bottom: 6px; }
.lo-section { max-width: 1280px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 40px) clamp(56px, 8vw, 96px); }
.lo-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: stretch; }
.lo-stage {
  position: relative; height: clamp(480px, 70vh, 720px); margin: var(--px); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #15151c 0%, #0a0a0d 70%);
}
.lo-canvas-wrap { position: absolute; inset: 0; }
.lo-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: grab; }
.lo-canvas:active { cursor: grabbing; }
.lo-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lo-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; will-change: transform; }
.lo-name {
  position: absolute; left: 0; bottom: 0; transform: translateX(-50%); white-space: nowrap; pointer-events: auto; cursor: pointer;
  font-family: var(--pixel); font-size: 11px; line-height: 1; color: #fff; padding: 3px 5px 2px;
  background: rgba(8, 8, 11, .82); border-bottom: 2px solid var(--c);
}
.lo-tag.is-fiqq .lo-name { cursor: default; color: #d4d4d8; }
.lo-tag.is-sel .lo-name { background: var(--c); color: #050506; }
.lo-bubble {
  position: absolute; left: 0; bottom: 22px; transform: translateX(-50%); width: 22px; height: 22px; padding: 4px; pointer-events: auto; cursor: pointer;
  background: #f2f2f3; box-shadow: 0 -2px 0 0 #f2f2f3, 0 2px 0 0 #f2f2f3, -2px 0 0 0 #f2f2f3, 2px 0 0 0 #f2f2f3;
  animation: lo-float 2.6s ease-in-out infinite;
}
.lo-bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; background: #f2f2f3; }
.lo-bubble svg { width: 100%; height: 100%; display: block; }
.lo-tag.is-sleep .lo-bubble { background: #c9d4ff; box-shadow: 0 -2px 0 0 #c9d4ff, 0 2px 0 0 #c9d4ff, -2px 0 0 0 #c9d4ff, 2px 0 0 0 #c9d4ff; }
.lo-tag.is-sleep .lo-bubble::after { background: #c9d4ff; }
.lo-tag.is-walking .lo-bubble { opacity: .35; }
@keyframes lo-float { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 3px; } }
.lo-roomlabel { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--pixel2); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); opacity: .75; margin: -6px 0 0; translate: -50% 0; text-shadow: 0 0 8px color-mix(in srgb, var(--rc) 50%, transparent); pointer-events: none; }

.lo-hud { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; pointer-events: none; z-index: 2000; }
.lo-clock { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; background: rgba(8, 8, 11, .85); border: 1px solid #26262b; pointer-events: auto; }
.lo-clock .lo-dot { align-self: center; background: #3df58a; box-shadow: 0 0 10px #3df58a; }
.lo-clock #lo-mode { font-family: var(--pixel2); font-size: 9px; color: #3df58a; text-transform: uppercase; letter-spacing: .1em; }
.lo-clock b { font-family: var(--pixel); font-weight: 400; font-size: 22px; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.lo-clock small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lo-clock.is-preview { border-color: #ffcf6b; }
.lo-clock.is-preview .lo-dot { background: #ffcf6b; box-shadow: 0 0 10px #ffcf6b; }
.lo-clock.is-preview #lo-mode { color: #ffcf6b; }
.lo-back { pointer-events: auto; font-family: var(--pixel); font-size: 12px; color: #050506; background: #ffcf6b; border: 0; padding: 9px 12px; cursor: pointer; box-shadow: 4px 4px 0 0 #7a5a1a; }
.lo-back:hover { background: #ffe09a; }
.lo-hint { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); pointer-events: none; z-index: 2000; }

.lo-card { position: absolute; z-index: 3000; width: 236px; padding: 14px 14px 12px; background: #0e0e11; border: 1px solid #2a2a30; border-top: 3px solid var(--c); box-shadow: 6px 6px 0 0 rgba(0,0,0,.6); }
.lo-card-x { position: absolute; right: 6px; top: 4px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; }
.lo-card-head { display: flex; gap: 10px; align-items: center; }
.lo-card-head b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 18px; line-height: 1.1; }
.lo-card-head small { font-family: var(--mono); font-size: 11px; color: var(--c); text-transform: uppercase; }
.lo-av { width: 36px; height: 36px; flex: none; display: inline-block; }
.lo-av svg { width: 100%; height: 100%; display: block; }
.lo-card-room { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--pixel2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: var(--rc); }
.lo-card-room svg { width: 12px; height: 12px; }
.lo-card-status { color: #e4e4e7; font-size: 14px; margin-top: 4px; }
.lo-card-link { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--c); border-bottom: 1px dashed var(--c); }

.lo-panel { margin: var(--px); padding: 16px; display: flex; flex-direction: column; min-height: 0; max-height: clamp(480px, 70vh, 720px); }
.lo-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lo-summary { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lo-list { list-style: none; display: grid; gap: 3px; align-content: start; overflow-y: auto; min-height: 0; flex: 1; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
.lo-bot { width: 100%; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 5px 8px; background: #101014; border: 1px solid #1f1f25; border-left: 3px solid var(--c); color: inherit; font: inherit; cursor: pointer; }
.lo-bot:hover, .lo-bot.is-sel { background: #17171c; border-color: #33333b; border-left-color: var(--c); }
.lo-bot .lo-av { width: 28px; height: 28px; grid-row: 1 / 3; }
.lo-txt { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lo-txt b { font-family: var(--pixel); font-weight: 400; font-size: 13px; line-height: 1.2; color: #fff; }
.lo-txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lo-room { display: flex; align-items: center; gap: 6px; font-family: var(--pixel2); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); margin-top: 3px; }
.lo-room svg { width: 10px; height: 10px; flex: none; }
.lo-room i { font-style: normal; }
.lo-legend-title { margin-top: 14px; }
.lo-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.lo-legend li { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lo-legend i { width: 9px; height: 9px; background: var(--rc); display: inline-block; }

.lo-time { margin: 22px var(--px) var(--px); padding: 16px 18px; }
.lo-time-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.lo-tag-preview { font-family: var(--mono); font-size: 10px; letter-spacing: 0; text-transform: none; color: #ffcf6b; border: 1px solid #5a4a20; padding: 1px 6px; margin-left: 6px; }
.lo-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lo-slider-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; margin-top: 14px; }
.lo-sl-l { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.lo-slider-val { font-family: var(--pixel); font-size: 18px; color: #fff; min-width: 64px; text-align: right; }
#lo-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; background: repeating-linear-gradient(90deg, #1c1c21 0 calc(100% / 24 - 2px), #2a2a31 calc(100% / 24 - 2px) calc(100% / 24)); outline: none; cursor: pointer; }
#lo-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 22px; background: #ffcf6b; box-shadow: 3px 3px 0 0 #7a5a1a; border: 0; }
#lo-slider::-moz-range-thumb { width: 18px; height: 22px; background: #ffcf6b; border: 0; border-radius: 0; box-shadow: 3px 3px 0 0 #7a5a1a; }
#lo-slider:focus-visible { outline: 2px dashed #ffcf6b; outline-offset: 4px; }
.lo-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lo-preset { font-family: var(--pixel); font-size: 12px; color: var(--text); background: #141418; border: 1px solid #2a2a30; padding: 7px 11px; cursor: pointer; }
.lo-preset:hover { background: #1c1c22; }
.lo-preset.is-on { background: #f2f2f3; color: #050506; border-color: #f2f2f3; }
.lo-preset[data-t="now"].is-on { background: #3df58a; border-color: #3df58a; }
.lo-rules { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 860px; }
.lo-rules a { color: #fff; border-bottom: 1px dashed var(--line2); }

/* 2D fallback plan */
.lo-plan { position: absolute; inset: 70px 16px 34px; }
.lo-plan-room { position: absolute; border: 2px dashed color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 6%, #0c0c10); padding: 6px; display: flex; flex-direction: column; }
.lo-plan-name { font-family: var(--pixel2); font-size: 8px; color: var(--rc); text-transform: uppercase; letter-spacing: .08em; }
.lo-plan-bots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-content: flex-start; }
.lo-plan-bot { position: relative; display: flex; flex-direction: column; align-items: center; background: none; border: 0; color: inherit; cursor: pointer; padding: 10px 0 0; width: 46px; }
.lo-plan-bot svg { width: 34px; height: 34px; }
.lo-plan-bot small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.lo-plan-bot.is-sleep > svg { opacity: .6; }
.lo-plan-bot .lo-bub { position: absolute; top: -2px; right: 2px; width: 16px; height: 16px; padding: 3px; background: #f2f2f3; }
.lo-plan-bot .lo-bub svg { width: 100%; height: 100%; }
.lo-plan-hall { position: absolute; left: 0; right: 0; top: 35%; text-align: center; font-family: var(--pixel2); font-size: 8px; color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 900px) {
  .lo-wrap { grid-template-columns: 1fr; }
  .lo-stage { height: clamp(380px, 62vh, 560px); }
  .lo-panel { max-height: none; }
  .lo-list { overflow: visible; }
}
.lo-tag.is-lifted .lo-name::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 6px; background: var(--c); opacity: .6; }
@media (max-width: 640px) {
  .lo-stage { height: 96vw !important; min-height: 340px !important; }
  .lo-name { display: none; }
  .lo-tag.is-sel .lo-name { display: block; bottom: -14px; }
  .lo-bubble { bottom: 4px; outline: 2px solid var(--c); outline-offset: 2px; }
  .lo-section { padding-left: 12px; padding-right: 12px; }
  .lo-clock { padding: 6px 9px; gap: 7px; }
  .lo-clock b { font-size: 17px; }
  .lo-hud { left: 10px; top: 10px; }
  .lo-name { font-size: 9px; padding: 2px 4px 1px; }
  .lo-bubble { width: 16px; height: 16px; padding: 2px; }
  .lo-roomlabel { font-size: 6px; }
  .lo-hint { display: none; }
  .lo-slider-row { grid-template-columns: 1fr auto; }
  .lo-sl-l { display: none; }
  .lo-plan { inset: 60px 8px 10px; }
  .lo-plan-bot { width: 38px; }
  .lo-plan-bot svg { width: 26px; height: 26px; }
  .lo-plan-name { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) { .lo-bubble { animation: none; } }

/* ---------- nav: pixel icon buttons ---------- */
.nav { padding-top: 8px; padding-bottom: 8px; }
.nav .nav-icons { display: flex; align-items: center; gap: 8px; font-size: 0; }
.nav-ic {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  color: var(--muted); background: #0e0e11;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
  transition: color .15s, background .15s, box-shadow .15s;
}
.nav-ic svg { width: 32px; height: 32px; display: block; }
.nav-ic:hover { color: #fff; background: #17171c; box-shadow: 0 -2px 0 0 var(--line2), 0 2px 0 0 var(--line2), -2px 0 0 0 var(--line2), 2px 0 0 0 var(--line2); }
.nav-ic.is-active { color: #3df58a; background: #0c1a12;
  box-shadow: 0 -2px 0 0 #3df58a, 0 2px 0 0 #3df58a, -2px 0 0 0 #3df58a, 2px 0 0 0 #3df58a, 0 0 14px 0 rgba(61,245,138,.35); }
.nav-ic:focus { outline: none; }
.nav-ic:focus-visible { outline: 2px dashed #fff; outline-offset: 5px; color: #fff; }
.nav-ic::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -4px);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s;
  font-family: var(--pixel2); font-size: 8px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: #050506; background: #f2f2f3; padding: 6px 7px 5px;
  box-shadow: 0 -2px 0 0 #f2f2f3, 0 2px 0 0 #f2f2f3, -2px 0 0 0 #f2f2f3, 2px 0 0 0 #f2f2f3, 4px 4px 0 0 rgba(0,0,0,.6);
  z-index: 60;
}
.nav-ic:nth-last-child(-n+2)::after { left: auto; right: -2px; transform: translate(0, -4px); }
@media (hover: hover) { .nav-ic:hover::after { opacity: 1; transform: translate(-50%, 0); } .nav-ic:nth-last-child(-n+2):hover::after { transform: none; } }
.nav-ic:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.nav-ic:nth-last-child(-n+2):focus-visible::after { transform: none; }
@media (max-width: 640px) {
  .nav { padding: 8px 12px; gap: 10px; }
  .nav .nav-icons { flex: 1; justify-content: space-between; max-width: 300px; margin-left: auto; gap: 4px; }
  .nav-ic { width: 40px; height: 40px; }
  .nav-ic svg { width: 24px; height: 24px; }
}
@media (max-width: 370px) {
  .nav { padding: 8px 8px; gap: 6px; }
  .nav-ic { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .nav-ic, .nav-ic::after { transition: none; } }
