/* NightFury v3 — hand-written CSS (no runtime framework). */
:root {
  --bg: #05070d;
  --card: rgba(22, 28, 42, 0.72);
  --card-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #8b97ab;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f43f5e;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --radius: 22px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans Tamil", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 15px/1.4 var(--font);
  color: var(--text);
  background:
    radial-gradient(80% 50% at 10% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(70% 45% at 100% 10%, rgba(244, 63, 94, 0.10), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(167, 139, 250, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { margin: 0; }
.tamil { font-family: "Noto Sans Tamil", var(--font); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--sat) + 10px) calc(var(--sar) + 14px) calc(var(--sab) + 96px) calc(var(--sal) + 14px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ------------------------------------------------------------ header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; color: var(--cyan); filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45)); }
.brand h1 { font-size: 18px; letter-spacing: -0.02em; font-weight: 800; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); margin-top: -2px; }
.badge { font: 700 10px var(--mono); padding: 3px 7px; border-radius: 8px; color: var(--cyan); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.28); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.chip:active, .btn:active, .icon-btn:active, .preset:active, .tab:active { transform: scale(0.96); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px currentColor; color: var(--amber); }
.chip-connect[data-state="connected"] { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.12); }
.chip-connect[data-state="connected"] .dot { background: var(--green); color: var(--green); }
.chip-connect[data-state="connecting"] .dot, .chip-connect[data-state="reconnecting"] .dot, .chip-connect[data-state="requesting"] .dot { animation: pulse 0.9s infinite; background: var(--cyan); color: var(--cyan); }
.chip-connect[data-state="disconnected"] .dot { background: var(--red); color: var(--red); }
#connectLabel { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line-2);
  transition: transform 0.12s, background 0.2s;
}

/* ------------------------------------------------------------ preview */
.panel-card {
  position: sticky; top: calc(var(--sat) + 6px); z-index: 20;
  padding: 12px; border-radius: var(--radius);
  background: rgba(14, 18, 28, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.panel-meta { display: flex; align-items: center; gap: 8px; font: 600 11px var(--mono); color: var(--muted); margin-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.04em; flex: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.scene-label { flex: 1; min-width: 0; text-align: right; color: var(--text); font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { flex: none; padding: 2px 6px; border-radius: 6px; font-size: 10px; background: var(--card-2); border: 1px solid var(--line); }
.tag.synced { color: var(--green); border-color: rgba(52, 211, 153, 0.4); }
.tag.sending { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); }
.bezel {
  position: relative; border-radius: 14px; padding: 8px;
  background: linear-gradient(180deg, #0d121c, #020408);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.matrix { display: block; width: 100%; height: auto; aspect-ratio: 6 / 1; border-radius: 6px; image-rendering: auto; }
.bezel-glare { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), transparent 40%, rgba(0, 0, 0, 0.25)); }
.hold-bar { height: 3px; margin-top: 8px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.hold-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple)); transform-origin: left; }
.sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.slider { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.slider-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.slider-head b { font: 700 12px var(--mono); color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--cyan); height: 26px; margin: 0; }

/* ------------------------------------------------------------ cards */
.views { display: contents; }
.view { display: none; flex-direction: column; gap: 12px; animation: fade 0.22s ease; }
.view.active { display: flex; }
.card {
  padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 12px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.card-head small { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: 14px;
  font-weight: 700; font-size: 14px;
  transition: transform 0.12s, background 0.2s, box-shadow 0.2s;
}
.btn-small { min-height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.btn-glass { background: var(--card-2); border: 1px solid var(--line-2); }
.btn-glass.on { border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.14); color: var(--green); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35); }
.btn-accent { background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.4); color: var(--cyan); }
.btn-danger { background: linear-gradient(135deg, #e11d48, #f97316); box-shadow: 0 8px 22px rgba(225, 29, 72, 0.35); min-width: 112px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------------------ drive */
.cluster-row { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.turn { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); color: var(--green); opacity: 0.28; transition: opacity 0.2s, box-shadow 0.2s; }
.turn svg { width: 30px; height: 30px; }
.turn.on { opacity: 1; box-shadow: 0 0 22px rgba(52, 211, 153, 0.35); border-color: rgba(52, 211, 153, 0.5); animation: blink 0.8s infinite; }
.speedo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.speed-num { display: flex; align-items: baseline; gap: 6px; }
.speed-num span { font: 800 64px/1 var(--mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.speed-num small { font: 700 13px var(--mono); color: var(--muted); }
.speed-num span.nodata, .dm-speed span.nodata { color: var(--muted); opacity: 0.5; }
.speed-num.over span { color: var(--red); text-shadow: 0 0 18px rgba(244, 63, 94, 0.5); }
.pill { font: 700 11px var(--mono); padding: 3px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.04em; }
.tone-muted { color: var(--muted); } .tone-amber { color: var(--amber); } .tone-green { color: var(--green); } .tone-cyan { color: var(--cyan); } .tone-red { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { padding: 8px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); text-align: center; }
.stats span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stats b { font: 700 13px var(--mono); }
#sensorsBtn.on { color: var(--green); border-color: rgba(52, 211, 153, 0.5); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; }
.switch-row small { color: var(--muted); font-size: 12px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(120, 120, 128, 0.36); position: relative; transition: background 0.25s; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.switch:checked { background: #30d158; }
.switch:checked::after { transform: translateX(20px); }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.quick button { min-height: 52px; border-radius: 14px; padding: 6px 10px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--c, var(--cyan)); }

.sim summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sim summary::-webkit-details-marker { display: none; }
.sim summary::after { content: "▾"; color: var(--muted); transition: transform 0.2s; }
.sim[open] summary::after { transform: rotate(180deg); }
.sim summary h2 { font-size: 15px; font-weight: 750; }
.sim summary small { color: var(--muted); font-size: 12px; flex: 1; }
.sim[open] { gap: 12px; }

.seg { display: flex; padding: 3px; gap: 3px; border-radius: 13px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 36px; padding: 0 10px; border-radius: 10px; font-weight: 650; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.seg button.on { background: rgba(255, 255, 255, 0.13); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.seg.small button { min-height: 30px; font-size: 12px; padding: 0 9px; }

/* ------------------------------------------------------------ presets */
.grid { display: grid; gap: 8px; }
.presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preset {
  position: relative; text-align: left; min-height: 74px; padding: 11px 12px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  transition: transform 0.12s, border-color 0.2s, background 0.2s;
}
.preset::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); }
.preset b { font: 700 13.5px/1.3 "Noto Sans Tamil", var(--font); }
.preset small { font: 600 11px var(--mono); color: var(--c, var(--muted)); opacity: 0.9; }
.preset.active { border-color: var(--c, var(--cyan)); background: rgba(255, 255, 255, 0.08); }
.preset .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(0, 0, 0, 0.3); font-size: 14px; }
.empty { color: var(--muted); font-size: 13px; text-align: center; margin: 8px 0; }

.eyes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eye-card { min-height: 0; gap: 8px; }
.eye-card canvas { width: 100%; height: auto; aspect-ratio: 6 / 1; border-radius: 8px; background: #020408; display: block; }

.rotate-controls { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.rotate-toggle-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650;
  color: var(--muted); background: var(--card-2); border: 1px solid var(--line-2);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.rotate-toggle-btn:hover { color: var(--text); border-color: var(--line); }
.rotate-toggle-btn.active {
  background: rgba(16, 185, 129, 0.16); border-color: rgba(52, 211, 153, 0.55);
  color: var(--green); box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}
.rotate-toggle-btn.active .rotate-badge { display: inline-block; animation: rotate-spin 2.5s linear infinite; }
@keyframes rotate-spin { 100% { transform: rotate(360deg); } }
.select-small {
  height: 28px; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  padding: 0 6px; cursor: pointer;
}
.select-small:focus { outline: none; border-color: var(--cyan); color: var(--text); }

/* ------------------------------------------------------------ studio */
.compose { display: flex; gap: 8px; align-items: center; }
.input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); font-size: 16px; outline: none; }
.input:focus { border-color: var(--cyan); }
.input.mono { font-size: 14px; color: var(--amber); }
.mic { width: 50px; height: 50px; border-radius: 14px; }
.mic.listening { color: var(--red); border-color: var(--red); animation: pulse 0.9s infinite; }
.palette { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, 0.15); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); transition: transform 0.12s; }
.swatch.on { border-color: #fff; transform: scale(1.1); }
.swatch-custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
#fitHint.warn { color: var(--amber); }

/* ------------------------------------------------------------ lab */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
select { height: 40px; padding: 0 10px; border-radius: 11px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); font-size: 13px; color: var(--text); }
.console { height: 220px; overflow-y: auto; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); font: 11px/1.5 var(--mono); user-select: text; -webkit-user-select: text; overscroll-behavior: contain; }
.console div { white-space: pre-wrap; word-break: break-all; }
.console .t { color: #5b6577; }
.log-ok { color: var(--green); } .log-error { color: var(--red); } .log-ble { color: var(--cyan); } .log-tx { color: var(--amber); } .log-rx { color: var(--purple); } .log-info { color: #c3cad6; }
.foot { margin: 0; font: 11px var(--mono); color: var(--muted); text-align: center; }

/* ------------------------------------------------------------ tab bar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + 10px); z-index: 40;
  width: min(540px, calc(100% - 20px)); display: flex; padding: 6px; gap: 4px; border-radius: 26px;
  background: rgba(16, 20, 30, 0.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 20px; color: var(--muted); font-size: 10.5px; font-weight: 650; transition: color 0.2s, background 0.2s; }
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--cyan); background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------ drive mode */
.drive-mode {
  position: fixed; inset: 0; z-index: 80; background: #000;
  padding: calc(var(--sat) + 16px) calc(var(--sar) + 16px) calc(var(--sab) + 16px) calc(var(--sal) + 16px);
  display: grid; grid-template-rows: auto auto 1fr; gap: 14px;
}
.drive-exit { position: absolute; z-index: 2; top: calc(var(--sat) + 12px); right: calc(var(--sar) + 12px); }
.dm-top { margin-top: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.dm-turn { color: var(--green); opacity: 0.15; }
.dm-turn svg { width: 72px; height: 72px; }
.dm-turn.on { opacity: 1; animation: blink 0.8s infinite; filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.7)); }
.dm-speed { display: flex; align-items: baseline; gap: 8px; }
.dm-speed span { font: 800 clamp(88px, 26vw, 180px)/1 var(--mono); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.dm-speed small { font: 700 20px var(--mono); color: var(--muted); }
.dm-speed.over span { color: var(--red); }
.dm-scene { text-align: center; font-size: 16px; font-weight: 700; color: var(--muted); min-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-content: end; }
.dm-buttons button { min-height: 84px; border-radius: 22px; font-size: 20px; font-weight: 800; background: #111827; border: 1px solid var(--line-2); border-bottom: 4px solid var(--c, var(--cyan)); }
.dm-buttons button.danger { background: linear-gradient(135deg, #be123c, #ea580c); border: 0; }
@media (orientation: landscape) and (max-height: 520px) {
  .drive-mode { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr auto; }
  .dm-top { grid-row: 1; }
  .dm-scene { grid-column: 1; grid-row: 2; }
  .dm-buttons { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr 1fr; align-content: center; }
  .dm-buttons button { min-height: 64px; }
}

/* ------------------------------------------------------------ sheet + toast */
.sheet { width: min(560px, 100%); max-height: 88dvh; margin: auto auto 0; padding: 0; border: 1px solid var(--line-2); border-radius: 26px 26px 0 0; background: #0e1320; color: var(--text); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.sheet[open] { animation: rise 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet-body { padding: 16px 16px calc(var(--sab) + 18px); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.set-group { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.set-group h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.num { display: inline-flex; align-items: center; gap: 6px; }
.num input { width: 76px; height: 36px; border-radius: 10px; padding: 0 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); font: 600 14px var(--mono); }
.num small { color: var(--muted); }

.toast {
  position: fixed; left: 50%; top: calc(var(--sat) + 12px); z-index: 100;
  transform: translate(-50%, -140%); opacity: 0;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 12, 18, 0.92); border: 1px solid var(--line-2);
  font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes blink { 50% { opacity: 0.45; } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 380px) {
  .speed-num span { font-size: 54px; }
  .cluster-row { grid-template-columns: 54px 1fr 54px; }
  .turn { width: 50px; height: 50px; }
  .sliders { grid-template-columns: 1fr; }
  #connectLabel { max-width: 96px; }
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
