/* Vanta Liquid — browser render of the ROM's design language.
   Values mirror design/tokens.json ("liquid" block); the ROM gets the same
   numbers through tools/gen_overlays.py → VantaTokens.kt. */
@font-face { font-family: Plex; font-weight: 100; src: url(fonts/IBMPlexSans-Thin.woff2); }
@font-face { font-family: Plex; font-weight: 200; src: url(fonts/IBMPlexSans-ExtraLight.woff2); }
@font-face { font-family: Plex; font-weight: 300; src: url(fonts/IBMPlexSans-Light.woff2); }
@font-face { font-family: Plex; font-weight: 400; src: url(fonts/IBMPlexSans-Regular.woff2); }
@font-face { font-family: Plex; font-weight: 500; src: url(fonts/IBMPlexSans-Medium.woff2); }
@font-face { font-family: Plex; font-weight: 600; src: url(fonts/IBMPlexSans-SemiBold.woff2); }
@font-face { font-family: PlexMono; src: url(fonts/IBMPlexMono-Regular.woff2); }

:root {
  --bg: #000;
  --cyan: #35E0FF;
  --violet: #7A5CFF;
  --ice: #CFF4FF;
  --text: #EEF8FB;
  --dim: rgba(238, 248, 251, 0.56);
  --faint: rgba(238, 248, 251, 0.32);
  --ok: #5CFFB0;
  --warn: #FFC24D;
  --danger: #FF4D6A;
  --r-chip: 20px;
  --r-card: 30px;
  --r-sheet: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #050607; }
body { font-family: Plex, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }

.phone {
  position: relative; width: 412px; height: 870px; overflow: hidden;
  background: var(--bg); isolation: isolate;
}
/* Device profiles (design/render/devices.js): Flip 5 main panel + cover face */
body[data-dev="flip5-main"] .phone { width: 360px; height: 880px; }
body[data-dev="flip5-cover"] .phone { width: 360px; height: 374px; }
.phone > .wall { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.phone > .wall.dim { filter: blur(34px) brightness(0.55) saturate(1.5); transform: scale(1.15); }
.scrim { position: absolute; inset: 0; z-index: -1; }

/* ——— Status: Vanta Bar ——— */
.bar { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center;
  padding: 0 22px; font-size: 14px; font-weight: 500; letter-spacing: .02em; z-index: 5; }
.bar .t { font-feature-settings: "tnum"; }
.bar .icons { margin-left: auto; margin-right: 104px; display: flex; gap: 9px; align-items: center; color: var(--text); }
.bar .icons svg { width: 15px; height: 15px; }
.cutout { position: absolute; top: 11px; right: 22px; width: 78px; height: 24px; border-radius: 12px; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03); z-index: 6; }
.ring { width: 17px; height: 17px; }

/* ——— Rail ——— */
.rail { position: absolute; bottom: 9px; left: 50%; width: 92px; height: 4px; margin-left: -46px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ice) 22%, #fff 50%, var(--ice) 78%, transparent);
  box-shadow: 0 0 10px 1px rgba(53,224,255,0.75), 0 0 28px 4px rgba(53,224,255,0.28); z-index: 9; }

/* ——— Liquid glass ———
   Four layers, same as Modifier.liquidGlass in VantaCore:
   1. backdrop: lens displacement (per-element SVG map) + blur + saturation lift
   2. body: a thin tint that is lighter at the light side
   3. rim: a 1px lit edge, brightest toward the light, dispersing cyan→violet
   4. specular: a soft sheen across the top, film grain over everything */
.glass {
  position: relative; border-radius: var(--r-card);
  background:
    linear-gradient(168deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.045) 38%, rgba(120,190,255,0.035) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) brightness(1.08);
  backdrop-filter: var(--lens, ) blur(20px) saturate(1.9) brightness(1.08);
  box-shadow:
    inset 0 1px 0.5px rgba(255,255,255,0.42),
    inset 0 -1px 1px rgba(255,255,255,0.06),
    inset 0 0 22px rgba(255,255,255,0.035),
    0 24px 60px -18px rgba(0,0,0,0.8),
    0 2px 6px rgba(0,0,0,0.35);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.1px; pointer-events: none;
  background: conic-gradient(from 200deg at 50% 50%,
    rgba(255,255,255,0.95) 0deg, rgba(53,224,255,0.75) 50deg, rgba(122,92,255,0.45) 100deg,
    rgba(255,255,255,0.05) 160deg, rgba(255,255,255,0.03) 220deg, rgba(53,224,255,0.45) 290deg, rgba(255,255,255,0.95) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(130% 55% at 18% -8%, rgba(255,255,255,0.20), transparent 58%),
    radial-gradient(90% 40% at 100% 110%, rgba(53,224,255,0.10), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.glass > * { position: relative; z-index: 1; }
.glass.lit { box-shadow:
    inset 0 1px 0.5px rgba(255,255,255,0.5), inset 0 0 26px rgba(53,224,255,0.16),
    0 0 26px -4px rgba(53,224,255,0.45), 0 24px 60px -18px rgba(0,0,0,0.8); }
.glass.thick { -webkit-backdrop-filter: blur(34px) saturate(2) brightness(1.02); backdrop-filter: var(--lens, ) blur(34px) saturate(2) brightness(1.02); }
.glass.chip { border-radius: var(--r-chip); }
.glass.pill { border-radius: 999px; }

/* ——— Type ——— */
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.big-thin { font-weight: 100; letter-spacing: -0.03em; line-height: .86; font-feature-settings: "tnum";
  background: linear-gradient(180deg, #fff 10%, var(--ice) 55%, rgba(53,224,255,0.9) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(53,224,255,0.25)); }
.mono { font-family: PlexMono, monospace; }
.dim { color: var(--dim); } .faint { color: var(--faint); }

/* ——— App icons: the Vanta mask, glass-filled ——— */
.ico { display: block; }
.app { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text); }
.app span { opacity: .86; }

/* ——— Orbs ——— */
.orb { border-radius: 50%; position: relative;
  background: radial-gradient(60% 60% at 32% 26%, rgba(255,255,255,0.55), rgba(255,255,255,0.06) 45%, transparent 70%),
              radial-gradient(80% 80% at 70% 85%, rgba(53,224,255,0.35), transparent 70%),
              radial-gradient(circle at 50% 50%, rgba(20,30,40,0.35), rgba(0,0,0,0.55));
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), inset 0 -8px 18px rgba(53,224,255,0.18), 0 14px 36px -10px rgba(0,0,0,0.9);
  display: grid; place-items: center; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 210deg, #fff, rgba(53,224,255,.8), rgba(122,92,255,.4), transparent, rgba(53,224,255,.5), #fff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.orb.hot { box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), inset 0 -10px 24px rgba(53,224,255,0.45), 0 0 34px -2px rgba(53,224,255,0.6); }

/* ——— Light bars ——— */
.lightbar { position: relative; height: 52px; border-radius: 26px; overflow: hidden; }
.lightbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 26px;
  background: linear-gradient(90deg, rgba(53,224,255,0.10), rgba(53,224,255,0.55) 70%, rgba(207,244,255,0.95));
  box-shadow: 0 0 24px rgba(53,224,255,0.55), inset 0 1px 0 rgba(255,255,255,.6); }
.lightbar .fill::after { content: ""; position: absolute; right: 10px; top: 13px; bottom: 13px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; }

.row { display: flex; } .col { display: flex; flex-direction: column; }
.grow { flex: 1; }
