/* =========================================================
   Indie Fire Texas — dark dashboard theme
   Built on Bootstrap 5.3 (data-bs-theme="dark")
   ========================================================= */

:root {
  --if-bg: #07060d;
  --if-bg-2: #0b0915;
  --if-surface: #100e1c;
  --if-surface-2: #161329;
  --if-surface-3: #1d1936;
  --if-border: rgba(150, 120, 255, 0.13);
  --if-border-strong: rgba(150, 120, 255, 0.28);
  --if-text: #e9e6f7;
  --if-muted: #9a95b4;
  --if-dim: #6c6789;
  --if-pink: #ff3ad4;
  --if-cyan: #35c2ff;
  --if-violet: #8f6bff;
  --if-green: #4fd27a;
  --if-amber: #ffc24b;
  --if-red: #ff5470;
  --if-grad: linear-gradient(135deg, var(--if-pink) 0%, var(--if-violet) 50%, var(--if-cyan) 100%);
  --if-radius: 16px;
  --if-radius-sm: 10px;
  --if-sidebar-w: 264px;
  --if-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);

  /* Bootstrap overrides */
  --bs-body-bg: var(--if-bg);
  --bs-body-color: var(--if-text);
  --bs-secondary-color: var(--if-muted);
  --bs-border-color: var(--if-border);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-link-color: var(--if-cyan);
  --bs-link-color-rgb: 53, 194, 255;
  --bs-link-hover-color: #7fd8ff;
  --bs-link-hover-color-rgb: 127, 216, 255;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--if-bg);
  --bs-body-color: var(--if-text);
  --bs-border-color: var(--if-border);
  --bs-secondary-bg: var(--if-surface-2);
  --bs-tertiary-bg: var(--if-surface);
  --bs-emphasis-color: #fff;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(143, 107, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 58, 212, 0.06), transparent 60%),
    var(--if-bg);
  background-attachment: fixed;
  color: var(--if-text);
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 58, 212, 0.35); color: #fff; }

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Orbitron", "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
}

.text-muted, .text-secondary { color: var(--if-muted) !important; }
.text-dim { color: var(--if-dim) !important; }
.text-pink { color: var(--if-pink) !important; }
.text-cyan { color: var(--if-cyan) !important; }
.text-violet { color: var(--if-violet) !important; }
.text-green { color: var(--if-green) !important; }
.text-amber { color: var(--if-amber) !important; }

.text-gradient {
  background: var(--if-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--if-muted);
}

/* ---------- Layout shell ---------- */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--if-sidebar-w);
  background: linear-gradient(180deg, var(--if-bg-2), #08070f);
  border-right: 1px solid var(--if-border);
}

@media (min-width: 992px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
  }
  .app-main { margin-left: var(--if-sidebar-w); }
}

.sidebar.offcanvas-lg { --bs-offcanvas-width: var(--if-sidebar-w); --bs-offcanvas-bg: var(--if-bg-2); }

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1rem;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 1.25rem;
  text-decoration: none;
  color: #fff;
}
.brand:hover { color: #fff; }

.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--if-grad);
  box-shadow: 0 0 22px rgba(255, 58, 212, 0.35);
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.brand-name { font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.1; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.3em; color: var(--if-muted); }

.nav-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--if-dim);
  padding: 1rem 0.75rem 0.4rem;
}

.side-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--if-muted);
  padding: 0.6rem 0.75rem;
  border-radius: var(--if-radius-sm);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.side-nav .nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.side-nav .nav-link:hover { color: #fff; background: rgba(150, 120, 255, 0.08); }
.side-nav .nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 58, 212, 0.16), rgba(53, 194, 255, 0.06));
}
.side-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: -1rem; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--if-pink);
  box-shadow: 0 0 10px var(--if-pink);
}
.side-nav .nav-link.sub { padding-left: 2.6rem; font-size: 0.88rem; }
.side-nav .nav-link .badge { margin-left: auto; }

.sidebar-card {
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--if-radius);
  background:
    linear-gradient(160deg, rgba(255, 58, 212, 0.14), rgba(53, 194, 255, 0.08)),
    var(--if-surface);
  border: 1px solid var(--if-border-strong);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(7, 6, 13, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--if-border);
}
.topbar .breadcrumb { margin: 0; font-size: 0.85rem; }
.topbar .breadcrumb-item a { color: var(--if-muted); text-decoration: none; }
.topbar .breadcrumb-item a:hover { color: #fff; }
.topbar .breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--if-dim); }

.btn-icon {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--if-border);
  background: var(--if-surface);
  color: var(--if-text);
}
.btn-icon:hover { border-color: var(--if-border-strong); color: #fff; }

.content { padding: 1.5rem; }
@media (min-width: 1200px) { .content { padding: 2rem 2.25rem; } }

/* ---------- Cards / panels ---------- */

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--if-surface-2), var(--if-surface));
  border: 1px solid var(--if-border);
  border-radius: var(--if-radius);
  box-shadow: var(--if-shadow);
}
/* Equal-height panels only when they sit inside a grid column */
.row > [class*="col"] > .panel,
.row > [class*="col"] > a > .panel { height: 100%; }
.row > [class*="col"] > .panel.h-auto { height: auto; }
.panel-body { padding: 1.35rem; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--if-border);
}
.panel-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  display: flex; align-items: center; gap: 0.55rem;
}
.panel-title i { color: var(--if-pink); }

.panel-hover { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.panel-hover:hover {
  transform: translateY(-3px);
  border-color: var(--if-border-strong);
  box-shadow: 0 18px 40px -16px rgba(143, 107, 255, 0.35);
}

/* Glow edge */
.glow-edge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--if-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Stat tiles ---------- */

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.pink { background: rgba(255, 58, 212, 0.13); color: var(--if-pink); }
.stat-icon.cyan { background: rgba(53, 194, 255, 0.13); color: var(--if-cyan); }
.stat-icon.violet { background: rgba(143, 107, 255, 0.15); color: var(--if-violet); }
.stat-icon.green { background: rgba(79, 210, 122, 0.13); color: var(--if-green); }
.stat-icon.amber { background: rgba(255, 194, 75, 0.13); color: var(--if-amber); }
.stat-value { font-family: "Orbitron", sans-serif; font-size: 1.45rem; font-weight: 700; color: #fff; line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--if-muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--if-radius) + 4px);
  border: 1px solid var(--if-border-strong);
  background: var(--if-surface);
  min-height: 320px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 13, 0.97) 0%, rgba(7, 6, 13, 0.82) 45%, rgba(7, 6, 13, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 6, 13, 0.9), transparent 50%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 2.5rem 2rem; }
@media (min-width: 992px) { .hero-content { padding: 3.25rem 3rem; } }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.1; }
.hero .lead { color: #cfcbe4; max-width: 46ch; font-size: 1.05rem; }

.studio-hero {
  background:
    radial-gradient(600px 300px at 90% 20%, rgba(255, 58, 212, 0.22), transparent 70%),
    radial-gradient(500px 300px at 70% 100%, rgba(53, 194, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--if-surface-2), var(--if-surface));
}
.studio-hero::before { display: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(150, 120, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 120, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-flame {
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 13rem;
  line-height: 1;
  background: var(--if-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 58, 212, 0.45));
  opacity: 0.9;
  z-index: 1;
  animation: flicker 4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: translateY(-50%) scale(1); filter: drop-shadow(0 0 40px rgba(255, 58, 212, 0.45)); }
  50% { transform: translateY(-52%) scale(1.03); filter: drop-shadow(0 0 60px rgba(53, 194, 255, 0.45)); }
}

/* ---------- Buttons ---------- */

.btn { border-radius: 10px; font-weight: 600; padding: 0.6rem 1.15rem; }
.btn-sm { padding: 0.4rem 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.8rem 1.5rem; border-radius: 12px; }

.btn-neon {
  color: #fff;
  border: 0;
  background: var(--if-grad);
  background-size: 160% 100%;
  box-shadow: 0 8px 24px -8px rgba(255, 58, 212, 0.6);
  transition: background-position 0.4s, box-shadow 0.2s, transform 0.15s;
}
.btn-neon:hover, .btn-neon:focus-visible {
  color: #fff;
  background-position: 100% 0;
  box-shadow: 0 10px 30px -6px rgba(53, 194, 255, 0.6);
  transform: translateY(-1px);
}

.btn-steam {
  color: #fff;
  border: 1px solid rgba(102, 192, 244, 0.45);
  background: linear-gradient(135deg, #1b2838, #2a475e);
  box-shadow: 0 8px 22px -10px rgba(102, 192, 244, 0.6);
}
.btn-steam:hover, .btn-steam:focus-visible {
  color: #fff;
  border-color: #66c0f4;
  background: linear-gradient(135deg, #22344a, #356086);
}

.btn-ghost {
  color: var(--if-text);
  border: 1px solid var(--if-border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { color: #fff; border-color: var(--if-violet); background: rgba(143, 107, 255, 0.1); }

/* ---------- Chips / badges ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #d6d2ee;
  background: rgba(150, 120, 255, 0.1);
  border: 1px solid var(--if-border);
}
.chip.pink { color: #ffb3ef; background: rgba(255, 58, 212, 0.12); border-color: rgba(255, 58, 212, 0.25); }
.chip.cyan { color: #a8e4ff; background: rgba(53, 194, 255, 0.12); border-color: rgba(53, 194, 255, 0.25); }
.chip.green { color: #a7f0c0; background: rgba(79, 210, 122, 0.12); border-color: rgba(79, 210, 122, 0.25); }
.chip.amber { color: #ffe0a3; background: rgba(255, 194, 75, 0.12); border-color: rgba(255, 194, 75, 0.25); }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--if-green);
  box-shadow: 0 0 0 3px rgba(79, 210, 122, 0.2);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 210, 122, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(79, 210, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 210, 122, 0); }
}

/* ---------- Game cards ---------- */

.game-card { overflow: hidden; display: flex; flex-direction: column; }
.game-card .cover { position: relative; aspect-ratio: 920 / 430; overflow: hidden; border-bottom: 1px solid var(--if-border); }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .cover img { transform: scale(1.05); }
.game-card .cover .chip { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); }

.placeholder-cover {
  aspect-ratio: 920 / 430;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(150, 120, 255, 0.05) 0 12px, transparent 12px 24px),
    var(--if-surface);
  border-bottom: 1px solid var(--if-border);
  color: var(--if-dim);
  font-size: 2.5rem;
}

/* ---------- Lists / timeline ---------- */

.feed { list-style: none; margin: 0; padding: 0; }
.feed li {
  position: relative;
  padding: 0 0 1.25rem 1.75rem;
  border-left: 1px dashed var(--if-border-strong);
  margin-left: 0.4rem;
}
.feed li:last-child { padding-bottom: 0; border-left-color: transparent; }
.feed li::before {
  content: "";
  position: absolute;
  left: -6px; top: 3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--if-bg);
  border: 2px solid var(--if-violet);
}
.feed li.hot::before { border-color: var(--if-pink); box-shadow: 0 0 10px var(--if-pink); }
.feed li.cool::before { border-color: var(--if-cyan); }
.feed time { font-size: 0.75rem; color: var(--if-dim); display: block; margin-bottom: 0.15rem; }
.feed h6 { font-family: "Inter", sans-serif; font-weight: 600; margin-bottom: 0.2rem; letter-spacing: 0; }
.feed p { color: var(--if-muted); margin: 0; font-size: 0.88rem; }

.kv { list-style: none; padding: 0; margin: 0; }
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--if-border);
  font-size: 0.88rem;
}
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--if-muted); }
.kv .v { color: #fff; text-align: right; font-weight: 500; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 0.65rem; padding: 0.4rem 0; color: #d8d4ec; }
.check-list li i { color: var(--if-green); margin-top: 0.1rem; }

/* ---------- Feature tiles ---------- */

.feature { padding: 1.35rem; }
.feature .stat-icon { margin-bottom: 1rem; }
.feature h5 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.feature p { color: var(--if-muted); margin: 0; font-size: 0.88rem; }

/* ---------- Media ---------- */

.video-frame {
  position: relative;
  border-radius: var(--if-radius-sm);
  overflow: hidden;
  border: 1px solid var(--if-border);
  background: #000;
}
.video-frame video { width: 100%; display: block; aspect-ratio: 16 / 9; }

.shot {
  display: block;
  position: relative;
  border-radius: var(--if-radius-sm);
  overflow: hidden;
  border: 1px solid var(--if-border);
  cursor: zoom-in;
  background: #000;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s, opacity 0.3s; opacity: 0.9; }
.shot:hover img { transform: scale(1.06); opacity: 1; }
.shot .shot-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.75rem 0.55rem;
  font-size: 0.75rem; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.shot:hover .shot-label, .shot:focus-visible .shot-label { opacity: 1; transform: none; }

.modal-content { background: var(--if-bg-2); border: 1px solid var(--if-border-strong); border-radius: var(--if-radius); }
.modal-backdrop.show { opacity: 0.85; }
.carousel-caption-bar { padding: 0.75rem 1.25rem; color: var(--if-muted); font-size: 0.85rem; border-top: 1px solid var(--if-border); }

/* ---------- Mode cards ---------- */

.mode-card { overflow: hidden; }
.mode-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-bottom: 1px solid var(--if-border); }

/* ---------- Steps ---------- */

.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(143, 107, 255, 0.15);
  color: var(--if-violet);
  border: 1px solid rgba(143, 107, 255, 0.3);
  flex-shrink: 0;
}

/* ---------- Progress / meters ---------- */

.progress { background: rgba(150, 120, 255, 0.1); height: 8px; border-radius: 99px; }
.progress-bar { background: var(--if-grad); border-radius: 99px; }

.color-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.virus-dot { width: 22px; height: 22px; border-radius: 6px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }

/* ---------- Tables ---------- */

.table-dark-soft {
  --bs-table-bg: transparent;
  --bs-table-color: var(--if-text);
  --bs-table-border-color: var(--if-border);
  margin: 0;
  font-size: 0.88rem;
}
.table-dark-soft th { color: var(--if-muted); font-weight: 500; width: 38%; }

/* ---------- Forms ---------- */

.form-control, .form-select {
  background-color: var(--if-bg-2);
  border: 1px solid var(--if-border-strong);
  color: var(--if-text);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}
.form-control::placeholder { color: var(--if-dim); }
.form-control:focus, .form-select:focus {
  background-color: var(--if-bg-2);
  color: #fff;
  border-color: var(--if-pink);
  box-shadow: 0 0 0 0.2rem rgba(255, 58, 212, 0.18);
}
.form-label { font-size: 0.82rem; color: var(--if-muted); font-weight: 500; }

/* ---------- Accordion ---------- */

.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--if-border);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: rgba(255, 58, 212, 0.07);
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-color: var(--if-muted);
}
.accordion-button { color: #fff; font-weight: 500; }

/* ---------- Avatar ---------- */

.avatar {
  width: 88px; height: 88px;
  border-radius: 22px;
  display: grid; place-items: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  background: var(--if-grad);
  box-shadow: 0 0 30px rgba(255, 58, 212, 0.3);
  flex-shrink: 0;
}
.avatar.sm { width: 52px; height: 52px; border-radius: 14px; font-size: 1.05rem; }
.avatar.ghost { background: var(--if-surface-3); color: var(--if-dim); box-shadow: none; border: 1px dashed var(--if-border-strong); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--if-border);
  padding: 1.5rem;
  color: var(--if-dim);
  font-size: 0.82rem;
}
.site-footer a { color: var(--if-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Toast ---------- */

.toast { background: var(--if-surface-3); border: 1px solid var(--if-border-strong); color: #fff; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-flame, .status-dot { animation: none; }
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 1040;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--if-bg); }
::-webkit-scrollbar-thumb { background: var(--if-surface-3); border-radius: 10px; border: 2px solid var(--if-bg); }
::-webkit-scrollbar-thumb:hover { background: #2a2550; }

/* ---------- Coming-soon chip & countdown ---------- */
.game-card .cover .chip.chip-bottom { top: auto; bottom: 12px; }
.countdown {
  padding: 1rem 1.15rem;
  border-radius: var(--if-radius);
  border: 1px solid rgba(255, 194, 75, 0.22);
  background: linear-gradient(120deg, rgba(255, 194, 75, 0.08), rgba(143, 107, 255, 0.06)), var(--if-bg-2);
}
.cd-box {
  min-width: 62px;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  text-align: center;
  background: var(--if-surface-2);
  border: 1px solid var(--if-border);
}
.cd-box span { display: block; font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.1; }
.cd-box small { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--if-muted); }

.app-main { min-width: 0; }
.game-card .cover .chip.chip-bottom { background: rgba(7, 6, 13, 0.8); color: #ffd685; }
