/* ═══════════════════════════════════════════════════════════
   IGNITE OS styles — neon browser engine
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg0: #030713; --bg1: #07111f; --bg2: #0e1d2d;
  --panel: rgba(6, 13, 27, 0.62);
  --panel-solid: #081321;
  --panel-2: rgba(9, 18, 34, 0.88);
  --line: rgba(150, 220, 255, 0.12);
  --line-2: rgba(180, 255, 230, 0.24);
  --text: #eef7ff; --muted: #9ab0c2; --dim: #5e7384;
  --accent: #00e5ff; --accent2: #a3ff12;
  --on-accent: #001016;
  --glow: 0.82; --blur: 14px; --radius: 12px; --saturate: 1.1;
  --font: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --hero-size: clamp(2.6rem, 6.4vw, 5rem);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg0); color: var(--text);
  font-family: var(--font); font-weight: 400;
  min-height: 100vh; overflow-x: hidden; line-height: 1.55;
  color-scheme: dark;
}
body[data-font='grotesk'] { --font: 'Space Grotesk', 'Outfit', sans-serif; }
body[data-font='mono']   { --font: 'JetBrains Mono', 'Consolas', monospace; }
body[data-font='system'] { --font: 'Segoe UI', system-ui, sans-serif; }

::selection { background: var(--accent); color: var(--on-accent); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0b0706; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent2));
  border-radius: 9px; border: 3px solid #0b0706;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; color: inherit; }
.hidden { display: none !important; }

code, kbd {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line); padding: 1px 6px;
  border-radius: 6px; font-size: 0.85em; color: var(--accent2);
}

/* ─────────── background engine ─────────── */

.bg-wrap {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(122deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    linear-gradient(300deg, color-mix(in srgb, var(--accent2) 10%, transparent), transparent 42%),
    linear-gradient(90deg, rgba(255, 63, 164, 0.08), transparent 28%, rgba(0, 229, 255, 0.08) 74%, transparent),
    linear-gradient(180deg, var(--bg1), var(--bg0) 60%, var(--bg0));
  filter: saturate(var(--saturate));
  transition: background 0.8s var(--ease);
}
body[data-bg='custom'] .bg-wrap {
  background: var(--bgimg, none) center / cover no-repeat fixed, var(--bg0);
}

.blob {
  position: absolute;
  filter: blur(42px); opacity: calc(var(--glow) * 0.58);
  mix-blend-mode: screen; pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.blob-a {
  width: 120vw; height: 22vh; left: -12vw; top: -8vh;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation-duration: 30s;
}
.blob-b {
  width: 118vw; height: 18vh; right: -14vw; top: 44vh;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 46%, #ff3fa4 54%), transparent);
  animation-duration: 24s; animation-delay: -6s;
}
.blob-c {
  width: 116vw; height: 16vh; left: -8vw; bottom: -8vh;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  animation-duration: 38s; animation-delay: -14s;
}
body[data-bg='grid'] .blob { opacity: calc(var(--glow) * 0.5); }
body[data-bg='stars'] .blob, body[data-bg='stars'] .bg-grid { display: none; }
body[data-bg='mesh'] .blob { animation: none; opacity: calc(var(--glow) * 0.55); }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, -5vh, 0) scale(1.18); }
  100% { transform: translate3d(-5vw, 4vh, 0) scale(0.94); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  animation: gridPan 42s linear infinite alternate; opacity: 0.85;
}
body[data-bg='grid'] .bg-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
  opacity: 1;
}
@keyframes gridPan { from { background-position: 0 0; } to { background-position: 56px 112px; } }

.bg-noise {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ─────────── nav ─────────── */
/* ─────────── nav ─────────── */

.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(3, 7, 19, 0.78);
  backdrop-filter: blur(calc(var(--blur) * 1.4)) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1220px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent); font-size: 15px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
}
.brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: 0.4px; }
.accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-ver {
  font-size: 0.62rem; color: var(--muted); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 99px; letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.nav-link {
  padding: 7px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 600;
  color: var(--muted); transition: 0.25s var(--ease); background: none; border: none;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-link { font: inherit; }
.btn-link:focus-visible { outline: 2px solid var(--accent); }
.nav-side { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-clock {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--muted); letter-spacing: 1px;
}
.profile-pill {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 74%, #000), color-mix(in srgb, var(--accent2) 62%, #000));
  color: var(--on-accent); padding: 6px 14px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; cursor: pointer;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: 0.25s var(--ease);
}
.profile-pill:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ─────────── layout & hero ─────────── */

main { max-width: 1220px; margin: 0 auto; padding: 0 22px 60px; display: grid; gap: 22px; }
.hero { padding: 76px 8px 10px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }

.hero-title {
  font-size: var(--hero-size); font-weight: 800; line-height: 1.04;
  letter-spacing: -1.5px; max-width: 20ch;
}
.gradient-text {
  background: linear-gradient(92deg, var(--accent), var(--accent2) 55%, color-mix(in srgb, var(--accent) 40%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 35%, transparent));
}
.hero-sub { margin-top: 20px; max-width: 62ch; color: var(--muted); font-size: 1.04rem; }

.stat-strip { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 22px; min-width: 130px;
  backdrop-filter: blur(var(--blur));
  display: flex; flex-direction: column; transition: 0.3s var(--ease);
}
.stat b {
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
/* ─────────── panels & buttons ─────────── */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 26px;
  backdrop-filter: blur(var(--blur)) saturate(1.3);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  scroll-margin-top: 90px;
}
.panel:hover { border-color: var(--line-2); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-title { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.3px; }
.panel-sub { color: var(--muted); font-size: 0.92rem; margin-top: 4px; max-width: 66ch; }

.badge {
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 14px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
  transition: 0.2s var(--ease);
}
.badge:hover { border-color: var(--accent); color: var(--accent2); }
.badge-hot {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent2);
}

.btn {
  border: none; border-radius: 10px; padding: 11px 20px;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.2px;
  transition: 0.22s var(--ease);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.045); color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent2); }
.btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text); width: 36px; height: 36px; border-radius: 9px;
  display: inline-grid; place-items: center; font-size: 0.85rem;
  transition: 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent2); }

/* ─────────── tunnel ─────────── */

.tunnel-form { display: flex; gap: 10px; flex-wrap: wrap; }
.tunnel-input, .search-input {
  flex: 1 1 320px; min-width: 220px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; font-size: 0.95rem;
  outline: none; transition: 0.25s var(--ease);
}
.tunnel-input:focus, .search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  color: var(--muted); border-radius: 99px; padding: 7px 15px;
  font-size: 0.82rem; font-weight: 600; transition: 0.22s var(--ease);
}
.chip:hover {
  color: var(--text); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}
.tunnel-tip { margin-top: 16px; font-size: 0.78rem; color: var(--dim); }

.local-hint {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px dashed var(--line-2); border-radius: 12px;
  padding: 12px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px;
}
/* ─────────── game cards ─────────── */

.game-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: 0.3s var(--ease); cursor: pointer;
}
.game-card:hover {
  transform: translateY(-5px); border-color: var(--accent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent);
}
.game-cover {
  position: relative; height: 130px; overflow: hidden;
  background:
    radial-gradient(120% 130% at 12% 8%, color-mix(in srgb, var(--gcolor) 45%, transparent), transparent 55%),
    radial-gradient(120% 130% at 90% 95%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent 60%),
    linear-gradient(150deg, #241a12, #120a06 70%);
}
.game-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.1); transition: 0.5s var(--ease);
}
.game-card:hover .game-cover img { transform: scale(1.06); }
.cover-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; font-weight: 900;
  color: color-mix(in srgb, var(--gcolor) 70%, #fff);
  text-shadow: 0 0 30px color-mix(in srgb, var(--gcolor) 60%, transparent);
}
.game-play {
  position: absolute; right: 12px; bottom: -18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent); display: grid; place-items: center;
  font-size: 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: 0.25s var(--ease); border: none;
}
.game-card:hover .game-play { bottom: 14px; }
.game-body { padding: 16px 16px 18px; }
.game-name { font-weight: 800; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.game-tag {
  font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.game-desc {
  color: var(--muted); font-size: 0.82rem; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-tools {
  position: absolute; top: 10px; left: 10px; display: flex; gap: 6px;
  opacity: 0; transition: 0.2s var(--ease); z-index: 3;
}
.game-card:hover .game-tools { opacity: 1; }
.game-tools .icon-btn { width: 30px; height: 30px; font-size: 0.72rem; background: rgba(0, 0, 0, 0.55); }
.local-dot {
  position: absolute; top: 10px; right: 10px;
  background: color-mix(in srgb, var(--gcolor) 85%, #000); color: #fff;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 99px;
}
/* ─────────── movies ─────────── */

.movie-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.movie-toolbar .search-input { flex: 0 1 300px; }
.genre-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.genre-chip {
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  color: var(--muted); border-radius: 99px; padding: 5px 12px;
  font-size: 0.74rem; font-weight: 700; transition: 0.2s var(--ease);
}
.genre-chip.active, .genre-chip:hover {
  color: var(--text); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.select-mini {
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 9px 12px;
  font-size: 0.82rem; outline: none;
}
.select-mini:focus { border-color: var(--accent); }

.movie-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.movie-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: 0.3s var(--ease); cursor: pointer;
}
.movie-card:hover {
  transform: translateY(-5px); border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 26px color-mix(in srgb, var(--accent) 15%, transparent);
}
.movie-poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  background:
    radial-gradient(100% 120% at 50% 0%, color-mix(in srgb, var(--mcolor) 38%, transparent), transparent 60%),
    linear-gradient(160deg, #241a12, #100a07);
  display: grid; place-items: center;
}
.movie-poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: 0.5s var(--ease);
}
.movie-card:hover .movie-poster img { transform: scale(1.06); }
.movie-fallback {
  font-size: 2.6rem; font-weight: 900;
  color: color-mix(in srgb, var(--mcolor) 75%, #fff);
  text-shadow: 0 0 28px color-mix(in srgb, var(--mcolor) 55%, transparent);
}
.movie-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.25); opacity: 0; transition: 0.25s var(--ease);
}
.movie-play i {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent); display: grid; place-items: center;
  font-style: normal; font-size: 1.1rem;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: scale(0.7); transition: 0.25s var(--ease);
}
.movie-card:hover .movie-play { opacity: 1; }
.movie-card:hover .movie-play i { transform: scale(1); }
.movie-info { padding: 12px 13px 14px; }
.movie-title { font-weight: 800; font-size: 0.92rem; line-height: 1.25; }
.movie-genre { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.6px; margin-top: 3px; text-transform: uppercase; }
.movie-status { position: absolute; top: 9px; left: 9px; display: flex; gap: 5px; z-index: 2; }
.movie-status span {
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.8px;
  padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(6px);
}
.movie-status .fav {
  background: color-mix(in srgb, var(--accent) 75%, #000); border-color: transparent;
}
.movie-tools {
  position: absolute; top: 9px; right: 9px; display: flex; gap: 5px;
  opacity: 0; transition: 0.2s var(--ease); z-index: 3;
}
.movie-card:hover .movie-tools { opacity: 1; }
.movie-tools .icon-btn { width: 28px; height: 28px; font-size: 0.68rem; background: rgba(0, 0, 0, 0.55); }
.movie-cont-pct {
  display: inline-block; margin-top: 6px; padding: 2px 7px;
  font-size: 0.66rem; font-weight: 800; color: var(--accent2);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 99px;
}

.empty-state {
  text-align: center; padding: 46px 20px;
  background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--line-2);
  border-radius: var(--radius); margin-top: 8px;
}
.empty-art { font-size: 3rem; margin-bottom: 10px; }
.empty-state h4 { font-size: 1.15rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 0 auto 18px; font-size: 0.92rem; }
/* ─────────── boot splash ─────────── */

.boot {
  position: fixed; inset: 0; z-index: 200;
  background:
    linear-gradient(122deg, rgba(0, 229, 255, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(163, 255, 18, 0.12), transparent 46%),
    #030713;
  display: grid; place-items: center; transition: opacity 0.55s var(--ease);
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; padding: 20px; }
.boot-logo {
  width: 84px; height: 84px; margin: 0 auto 22px;
  border-radius: 22px; display: grid; place-items: center; font-size: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--on-accent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: bootPulse 1.6s ease-in-out infinite;
}
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.boot-title { font-size: 2rem; letter-spacing: 8px; margin-bottom: 16px; }
.boot-type {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--accent2); min-height: 1.3em; margin-bottom: 22px;
}
.boot-bar {
  width: 260px; height: 5px; border-radius: 99px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.boot-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px; transition: width 0.25s ease;
  box-shadow: 0 0 14px var(--accent);
}
#boot-skip { margin-top: 26px; }

/* ─────────── footer ─────────── */

.foot {
  max-width: 1220px; margin: 0 auto; padding: 26px 22px 46px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap; color: var(--dim); font-size: 0.78rem;
  border-top: 1px solid var(--line); letter-spacing: 0.6px;
}
.foot-hint kbd {
  color: var(--accent2); border-color: var(--line-2); font-size: 0.72rem;
}

/* ─────────── customizer ─────────── */

.customizer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(340px, 92vw);
  background: rgba(5, 12, 24, 0.93);
  backdrop-filter: blur(22px) saturate(1.4);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}
.customizer.open { transform: translateX(0); }
.customizer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.customizer-head h4 { font-size: 1.05rem; letter-spacing: 0.4px; }
.cz-scroll { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cz-label {
  font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent;
  background: var(--sw); box-shadow: 0 0 18px color-mix(in srgb, var(--sw) 45%, transparent);
  transition: 0.2s var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: #fff; transform: scale(1.12); }
.cz-row { display: flex; align-items: center; gap: 12px; }
input[type='color'] {
  width: 46px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
  background: transparent; padding: 2px; cursor: pointer;
}
.cz-hex {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--accent2);
}
input[type='range'] {
  width: 100%; accent-color: var(--accent); cursor: pointer;
}
.cz-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.cz-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.cz-toggle input { accent-color: var(--accent); width: 15px; height: 15px; }
.cz-note { font-size: 0.72rem; color: var(--dim); text-align: center; }
/* ─────────── modals ─────────── */

.modal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(3, 7, 19, 0.86);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.launcher-frame-wrap, .player-stage {
  width: 100%; height: 100vh; overflow: hidden;
}
.launcher-bar, .player-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(3, 7, 19, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.launcher-title, .player-title {
  font-weight: 700; font-size: 0.88rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 20vw;
  color: var(--accent2);
}
.launcher-actions { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.launcher-actions .launcher-title { max-width: 30vw; }
.launcher-address-form {
  flex: 1 1 360px; min-width: 180px;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.launcher-address-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.address-lock {
  flex: none; color: var(--accent2); font-size: 0.7rem;
}
.launcher-address {
  width: 100%; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font: inherit; font-size: 0.84rem;
}
.launcher-address::placeholder { color: var(--dim); }
.launcher-link {
  font-size: 0.7rem; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 32vw;
  padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
#launcher-modal .modal-inner { width: 100%; }
#launcher-modal { display: flex; flex-direction: column; }
#launcher-modal .launcher-bar { position: relative; }
.launcher-tabs {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; overflow-x: auto;
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.launcher-tab {
  display: inline-flex; align-items: center; gap: 7px;
  max-width: 240px; min-width: 124px; height: 34px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line); border-radius: 11px 11px 6px 6px;
  background: rgba(255, 255, 255, 0.045); color: var(--muted);
  font: inherit; font-size: 0.74rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: 0.18s var(--ease);
}
.launcher-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.075); }
.launcher-tab .tab-name { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.launcher-tab .tab-x { opacity: 0.6; font-size: 0.78rem; }
.launcher-tab .tab-x:hover { opacity: 1; }
.launcher-tab.active {
  color: var(--on-accent); border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.launcher-tab.active .tab-x { opacity: 0.85; }
.launcher-tab.empty .tab-name { font-style: italic; }
.launcher-tab-add {
  min-width: 36px; max-width: 36px; width: 36px;
  justify-content: center; padding: 0;
  border-radius: 10px;
  font-size: 1.05rem; color: var(--text);
}
#launcher-modal .launcher-frames {
  flex: 1 1 auto; min-height: 0; position: relative;
  margin-top: 0; background: #000;
}
.launcher-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; background: #000; display: none;
}
.launcher-frame.active { display: block; }
.tunnel-status {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 0.72rem; color: var(--muted); cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 10px; background: rgba(255, 255, 255, 0.03);
}
.tunnel-status .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
}
.tunnel-status.bad .dot { background: #ff5c5c; box-shadow: 0 0 8px #ff5c5c; }
.tunnel-status.bad { color: #ffb4b4; border-color: rgba(255, 92, 92, 0.4); }

#player-modal { display: flex; }
.player-bar { position: absolute; }
.player-stage {
  width: 100%; display: grid; place-items: center;
  padding-top: 58px;
}
.player-stage video {
  max-width: 84vw; max-height: calc(100vh - 80px); border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); outline: none;
}
.player-stage iframe {
  width: 84vw; height: calc(84vw * 0.5625);
  max-height: calc(100vh - 90px); border: none; border-radius: var(--radius);
  background: #000;
}
@media (max-height: 720px) {
  .player-stage iframe { height: calc(100vh - 90px); }
}
.player-error {
  max-width: 46ch; text-align: center; color: var(--muted);
  padding: 30px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px dashed var(--line-2);
}
.player-error a { color: var(--accent2); text-decoration: underline; }

.form-card {
  width: min(440px, 92vw); background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 26px; display: grid; gap: 15px;
  max-height: 90vh; overflow-y: auto;
}
.form-card h4 { font-size: 1.2rem; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.form-field input {
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; font-size: 0.92rem; outline: none;
  transition: 0.22s var(--ease);
}
.form-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.form-row { display: flex; justify-content: flex-end; gap: 10px; }

/* ─────────── toasts ─────────── */

#toast-zone {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: rgba(7, 14, 27, 0.94);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left: 3px solid var(--accent);
  color: var(--text); padding: 12px 18px; border-radius: 12px;
  font-size: 0.85rem; max-width: 340px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
  backdrop-filter: blur(12px);
  animation: toastIn 0.35s var(--ease);
}
.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ─────────── turbo / confetti ─────────── */

.turbo { animation: turboBg 0.5s ease infinite alternate; }
@keyframes turboBg {
  to { filter: hue-rotate(32deg) saturate(1.6); }
}
.confetti-piece {
  position: fixed; width: 9px; height: 14px; z-index: 400;
  border-radius: 2px; pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.4; }
}

/* ─────────── work mode ─────────── */

body[data-work='on'] .hero,
body[data-work='on'] #tunnel,
body[data-work='on'] #games,
body[data-work='on'] #movies,
body[data-work='on'] #continue-panel,
body[data-work='on'] .foot-hint,
body[data-work='on'] a[href='#tunnel'],
body[data-work='on'] a[href='#games'],
body[data-work='on'] a[href='#movies'] { display: none; }
body[data-work='on'] #work-view { display: block; }

#work-view { scroll-margin-top: 90px; }
.work-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.work-card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.work-card h4 { font-size: 0.95rem; margin: 0 0 12px; color: var(--muted); }
.focus-timer {
  font-family: 'JetBrains Mono', monospace; font-size: 1.9rem; font-weight: 700;
  color: var(--accent2); letter-spacing: 1px;
}
.timer-controls { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.todo-list { list-style: none; padding: 0; margin-top: 14px; max-height: 220px; overflow-y: auto; }
.todo-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.045); margin-bottom: 6px;
}
.todo-list li.done span { text-decoration: line-through; opacity: 0.55; }
.todo-list input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.todo-list .icon-btn { width: 26px; height: 26px; font-size: 0.66rem; }

/* ─────────── responsive ─────────── */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 46px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .panel { padding: 18px; }
  .launcher-bar { flex-wrap: wrap; padding: 8px; gap: 7px; }
  .launcher-title { max-width: calc(100vw - 110px); order: 2; }
  .launcher-address-form { order: 4; flex-basis: 100%; height: 36px; }
  .launcher-actions { order: 3; width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .launcher-tabs { padding: 6px 8px; }
  .launcher-tab { min-width: 112px; max-width: 176px; }
  .launcher-tab-add { min-width: 36px; }
  .player-stage video { max-width: 96vw; }
  .player-stage iframe { width: 96vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body[data-anim='off'] *, body[data-anim='off'] *::before, body[data-anim='off'] *::after {
  animation: none !important;
  scroll-behavior: auto;
}
