/* ═══════════════════════════════════════════════════════════════════
   REVERSE // CRIMSON TERMINAL — AAA HUD overlay
   Loads AFTER style.css. Aggressive override layer.

   Direction: cinematic tactical HUD. Cyberpunk 2077 / Destiny 2 /
   Tarkov terminal vibe — not a SaaS dashboard, not glassmorphism.
   Asymmetric, edge-aligned, mechanically reactive.

   Type:   Chakra Petch (display) + JetBrains Mono (HUD numerics).
   Color:  black-violet ground, signal red dominant, amber tertiary.
   Atmos:  radar sweep, drifting scanline, grid, noise grain, vignette.
   Motion: orchestrated entry; mechanical press; holographic shimmer.
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
  --bg:           #06060A;
  --bg-app:       #0A0A10;
  --bg-card:      #101016;
  --bg-card-2:    #15151D;
  --bg-hover:     #1F1F28;
  --accent:       #FF2E3D;
  --accent-hi:    #FF5A66;
  --accent-2:     #FFB020;
  --accent-cool:  #2BD4D9;
  --accent-soft:  rgba(255, 46, 61, 0.18);
  --accent-dim:   rgba(255, 46, 61, 0.07);
  --text:         #F2F2F6;
  --text-sub:     #6E6E7A;
  --text-mute:    #4A4A55;
  --border:       rgba(255, 255, 255, 0.06);
  --border-hot:   rgba(255, 46, 61, 0.35);
  --border-warm:  rgba(255, 176, 32, 0.30);
  --hairline:     rgba(255, 46, 61, 0.6);
  --shadow:       0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-deep:  0 20px 60px rgba(0, 0, 0, 0.85);
  --glow:         0 0 24px rgba(255, 46, 61, 0.45);
  --glow-amber:   0 0 24px rgba(255, 176, 32, 0.35);

  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body:    'Chakra Petch', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Corner-cut HUD frame (clip-path). 12px diagonal cuts on TL+BR. */
  --hud-clip: polygon(
    12px 0, 100% 0, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 0 100%, 0 12px
  );
  --hud-clip-sm: polygon(
    8px 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%, 0 8px
  );
}

/* ─────────────────────────────────────────────────────────────────
   BASE
─────────────────────────────────────────────────────────────────── */
html, body {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6,
.section-heading,
.login-title, .slot-name, .task-title,
.action-pill, .filter-pill, .login-btn, .page-btn,
.action-btn-large, .task-claim, .tab-btn {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bet-input, .slot-stats, .task-progress-text,
.stat-value, .hero-bal, .vgc-line,
[id*="balance"], [id*="coins"], [id*="score"],
[id*="trophy"], [id*="cooldown"], [class*="-stats"],
.casino-panel-header {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum', 'zero', 'ss03';
  letter-spacing: 0.02em;
}

.stat-label,
.login-sub,
.login-input::placeholder {
  font-family: var(--font-mono);
  letter-spacing: 0.18em !important;
  font-weight: 500;
  color: var(--text-sub);
}

::selection { background: var(--accent); color: #000; text-shadow: none; }

/* ─────────────────────────────────────────────────────────────────
   ATMOSPHERE — radar sweep, scanline, grid, grain, vignette
─────────────────────────────────────────────────────────────────── */
body {
  background:
    radial-gradient(ellipse 70% 45% at 88% -8%,
        rgba(255, 46, 61, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 108%,
        rgba(255, 176, 32, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, #08080F 0%, #06060A 60%, #050508 100%);
  background-attachment: fixed;
}

/* Layer 1: scanlines + tactical grid */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.02) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 100% 3px, 56px 56px, 56px 56px;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* Layer 2: SVG noise grain */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.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 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* Layer 3: Slow drifting horizontal scanline (added once via :root pseudo)
   Attached to #app so it sits above bg layers but below content. */
#app {
  position: relative; z-index: 1;
}
#app::before {
  content: '';
  position: fixed;
  left: 0; right: 0; top: -10%;
  height: 110px;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 46, 61, 0.045) 45%,
      rgba(255, 46, 61, 0.09)  50%,
      rgba(255, 46, 61, 0.045) 55%,
      transparent 100%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  animation: hudSweep 11s linear infinite;
  mix-blend-mode: screen;
}
@keyframes hudSweep {
  0%   { transform: translateY(0); opacity: 0.0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.9; }
  100% { transform: translateY(110vh); opacity: 0.0; }
}

/* Keep app content above ambient layers */
.main-content, .top-bar, .nav-bar, #login-screen,
.modal, .toast, [class*="screen"] { position: relative; z-index: 3; }

/* ─────────────────────────────────────────────────────────────────
   LOGIN SCREEN — cinematic terminal access
─────────────────────────────────────────────────────────────────── */
#login-screen {
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%,
        rgba(255, 46, 61, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 100% 60% at 50% 110%,
        rgba(255, 176, 32, 0.06) 0%, transparent 70%),
    #04040A;
}

/* Rotating radar conic behind the login box */
#login-screen::before {
  content: '';
  position: absolute;
  width: 720px; height: 720px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 290deg,
    rgba(255, 46, 61, 0.22) 340deg,
    rgba(255, 46, 61, 0.55) 358deg,
    transparent 360deg
  );
  border-radius: 50%;
  filter: blur(2px);
  animation: radarSpin 6s linear infinite;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}
#login-screen::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 46, 61, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 80px rgba(255, 46, 61, 0.02),
    inset 0 0 0 1px rgba(255, 46, 61, 0.12);
  pointer-events: none;
  z-index: 0;
}
@keyframes radarSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-box {
  background: linear-gradient(180deg,
    rgba(20, 20, 28, 0.92) 0%,
    rgba(12, 12, 18, 0.96) 100%);
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-clip);
  padding: 48px 36px 40px !important;
  box-shadow:
    0 0 0 1px rgba(255, 46, 61, 0.18),
    var(--shadow-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  position: relative;
  overflow: hidden;
}
/* Inner corner brackets */
.login-box::before,
.login-box::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 46, 61, 0.6));
}
.login-box::before {
  top: 14px; left: 14px;
  border-right: none; border-bottom: none;
}
.login-box::after {
  bottom: 14px; right: 14px;
  border-left: none; border-top: none;
}

.login-title {
  font-family: var(--font-display) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  margin-bottom: 6px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8B8C0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
}
.login-title::before {
  content: '⟁ ';
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 46, 61, 0.7);
}
.login-sub {
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.4em !important;
  margin-bottom: 32px !important;
}
.login-sub::before { content: '// '; color: var(--accent); }
.login-sub::after  { content: ' //'; color: var(--accent); }

.login-input {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-clip-sm);
  font-family: var(--font-mono) !important;
  letter-spacing: 0.15em !important;
  font-size: 15px !important;
}
.login-input:focus {
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 24px rgba(255, 46, 61, 0.35) !important;
}

.login-btn {
  border-radius: 0 !important;
  clip-path: var(--hud-clip-sm);
  font-family: var(--font-display) !important;
  letter-spacing: 0.18em !important;
  position: relative;
  overflow: hidden;
}
.login-btn.primary {
  background: linear-gradient(180deg, #FF3B4B 0%, #C9162A 100%) !important;
  box-shadow:
    0 4px 18px rgba(255, 46, 61, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4) !important;
  border: none !important;
}
.login-btn.primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.login-btn.primary:hover::before { transform: translateX(100%); }
.login-btn.secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border) !important;
  letter-spacing: 0.18em !important;
}

/* ─────────────────────────────────────────────────────────────────
   TOP BAR — tactical header strip
─────────────────────────────────────────────────────────────────── */
.top-bar {
  position: relative;
  border-bottom: 1px solid var(--border) !important;
  background: linear-gradient(180deg,
    rgba(10, 10, 16, 0.85) 0%,
    rgba(8, 8, 12, 0.65) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.top-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 18%,
    var(--accent) 82%,
    transparent 100%);
  opacity: 0.55;
  filter: blur(0.4px);
}

/* ─────────────────────────────────────────────────────────────────
   STAT TILES — corner-cut HUD modules with bracket accents
─────────────────────────────────────────────────────────────────── */
.stat-tile {
  background: linear-gradient(180deg,
    rgba(20, 20, 28, 0.96) 0%,
    rgba(14, 14, 20, 0.96) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-clip-sm);
  padding: 18px 12px !important;
  position: relative;
  overflow: hidden;
}
.stat-tile::before {
  /* Top hairline tactical accent */
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 8px !important;
  width: 28px !important; height: 2px !important;
  background: var(--accent) !important;
  transform: none !important;
  box-shadow: 0 0 8px rgba(255, 46, 61, 0.7) !important;
  border-radius: 0 !important;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.stat-tile:hover::before {
  width: 64px !important;
}
.stat-tile::after {
  /* Bottom-right corner tick */
  content: '';
  position: absolute;
  right: 6px; bottom: 6px;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  opacity: 0.5;
}
.stat-tile:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 46, 61, 0.25) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 46, 61, 0.18) !important;
}

.accent-tile {
  background: linear-gradient(180deg,
    rgba(255, 46, 61, 0.18) 0%,
    rgba(255, 46, 61, 0.04) 100%) !important;
  border-color: var(--border-hot) !important;
}
.accent-tile::before { width: 64px !important; }

.stat-label {
  font-size: 9px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}
.stat-value {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}
.accent-text {
  color: var(--accent) !important;
  text-shadow: 0 0 14px rgba(255, 46, 61, 0.55) !important;
}

/* ─────────────────────────────────────────────────────────────────
   SECTION HEADINGS — oversized tactical labels
─────────────────────────────────────────────────────────────────── */
.section-heading {
  position: relative;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  padding-left: 18px !important;
  margin-bottom: 14px !important;
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 46, 61, 0.7);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ─────────────────────────────────────────────────────────────────
   ACTION PILLS / BUTTONS — mechanical
─────────────────────────────────────────────────────────────────── */
.action-pill, .filter-pill, .page-btn {
  border-radius: 2px !important;
  clip-path: var(--hud-clip-sm);
  border: 1px solid var(--border) !important;
  background: linear-gradient(180deg,
    rgba(28, 28, 36, 0.95) 0%,
    rgba(18, 18, 24, 0.95) 100%) !important;
  letter-spacing: 0.14em !important;
  position: relative;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.2s, box-shadow 0.2s !important;
}
.action-pill:hover, .filter-pill:hover, .page-btn:hover {
  border-color: var(--border-hot) !important;
  box-shadow: 0 0 0 1px var(--border-hot), 0 6px 20px rgba(0,0,0,0.6) !important;
}
.action-pill:active, .filter-pill:active, .page-btn:active,
.action-btn-large:active, .task-claim:active {
  transform: translateY(1px) scale(0.985) !important;
  filter: brightness(1.15);
}

.filter-pill.active {
  background: linear-gradient(180deg,
    rgba(255, 46, 61, 0.22) 0%,
    rgba(255, 46, 61, 0.08) 100%) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 24px rgba(255, 46, 61, 0.35) !important;
  text-shadow: 0 0 12px rgba(255, 46, 61, 0.6);
}

.action-btn-large {
  border-radius: 0 !important;
  clip-path: var(--hud-clip);
  border: 1px solid var(--border) !important;
  background: linear-gradient(180deg,
    rgba(26, 26, 34, 0.98) 0%,
    rgba(14, 14, 20, 0.98) 100%) !important;
  letter-spacing: 0.18em !important;
  position: relative;
  overflow: hidden;
}
.action-btn-large::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 46, 61, 0.6);
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.action-btn-large:hover::before { width: 8px; }
.action-btn-large::after {
  /* Holographic shimmer on hover */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 30%, rgba(255,255,255,0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.action-btn-large:hover::after { transform: translateX(100%); }

.task-claim {
  border-radius: 2px !important;
  clip-path: var(--hud-clip-sm);
  background: linear-gradient(180deg, #FF3B4B 0%, #C9162A 100%) !important;
  letter-spacing: 0.18em !important;
  border: none !important;
  box-shadow:
    0 4px 14px rgba(255, 46, 61, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
}

/* ─────────────────────────────────────────────────────────────────
   NAV BAR — bottom tactical strip
─────────────────────────────────────────────────────────────────── */
.nav-bar {
  background: linear-gradient(180deg,
    rgba(8, 8, 12, 0.88) 0%,
    rgba(4, 4, 8, 0.96) 100%) !important;
  border-top: 1px solid var(--border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
.nav-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent 100%);
  opacity: 0.5;
}

.tab-btn {
  font-family: var(--font-display) !important;
  letter-spacing: 0.14em !important;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.tab-btn.active {
  color: var(--accent) !important;
  text-shadow: 0 0 14px rgba(255, 46, 61, 0.6);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 46, 61, 0.8);
}

/* ─────────────────────────────────────────────────────────────────
   CARDS / BENTO PANELS — corner-cut HUD modules
─────────────────────────────────────────────────────────────────── */
.bento-card, .clan-panel {
  background: linear-gradient(180deg,
    rgba(20, 20, 28, 0.94) 0%,
    rgba(12, 12, 18, 0.96) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-clip);
  position: relative;
}
.bento-card::after {
  content: '';
  position: absolute;
  right: 8px; top: 8px;
  width: 6px; height: 6px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  opacity: 0.45;
}

/* ─────────────────────────────────────────────────────────────────
   LOADER — terminal boot
─────────────────────────────────────────────────────────────────── */
#loader {
  background:
    radial-gradient(circle at 50% 40%,
      rgba(255, 46, 61, 0.14) 0%, transparent 55%),
    var(--bg);
}
#loader::after {
  content: '⟁ REVERSE / BOOTING';
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--accent);
  opacity: 0.7;
  animation: termBlink 1.4s steps(2, end) infinite;
}
@keyframes termBlink { 50% { opacity: 0.18; } }

/* ─────────────────────────────────────────────────────────────────
   ENTRY CHOREOGRAPHY — staggered cinematic reveal
─────────────────────────────────────────────────────────────────── */
@keyframes rvFadeUp {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes rvSlideRight {
  from { opacity: 0; transform: translate3d(-16px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes rvFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.top-bar { animation: rvFadeIn 0.5s ease-out 0.05s both; }
.main-content > *:nth-child(1) { animation: rvFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.10s both; }
.main-content > *:nth-child(2) { animation: rvFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both; }
.main-content > *:nth-child(3) { animation: rvFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s both; }
.main-content > *:nth-child(4) { animation: rvFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s both; }
.main-content > *:nth-child(5) { animation: rvFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both; }
.main-content > *:nth-child(n+6) { animation: rvFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.50s both; }
.nav-bar { animation: rvFadeIn 0.6s ease-out 0.45s both; }

/* Stagger inside stats bento */
.stats-bento .stat-tile:nth-child(1) { animation: rvFadeUp 0.5s ease-out 0.20s both; }
.stats-bento .stat-tile:nth-child(2) { animation: rvFadeUp 0.5s ease-out 0.26s both; }
.stats-bento .stat-tile:nth-child(3) { animation: rvFadeUp 0.5s ease-out 0.32s both; }
.stats-bento .stat-tile:nth-child(4) { animation: rvFadeUp 0.5s ease-out 0.38s both; }
.stats-bento .stat-tile:nth-child(5) { animation: rvFadeUp 0.5s ease-out 0.44s both; }
.stats-bento .stat-tile:nth-child(6) { animation: rvFadeUp 0.5s ease-out 0.50s both; }

/* Login fade choreography */
#login-screen .login-box { animation: rvFadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.10s both; }

/* ─────────────────────────────────────────────────────────────────
   SCROLLBARS
─────────────────────────────────────────────────────────────────── */
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 0;
}
*::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─────────────────────────────────────────────────────────────────
   MODAL — cinematic frame
─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  background: rgba(2, 2, 6, 0.78) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-sheet {
  background: linear-gradient(180deg,
    rgba(20, 20, 28, 0.98) 0%,
    rgba(10, 10, 16, 0.98) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-clip);
  box-shadow:
    0 0 0 1px rgba(255, 46, 61, 0.2),
    var(--shadow-deep) !important;
}

/* ─────────────────────────────────────────────────────────────────
   TOAST — tactical notification
─────────────────────────────────────────────────────────────────── */
#toast {
  background: linear-gradient(180deg,
    rgba(20, 20, 28, 0.98) 0%,
    rgba(10, 10, 16, 0.98) 100%) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-clip-sm);
  font-family: var(--font-mono) !important;
  letter-spacing: 0.08em !important;
  box-shadow:
    0 0 0 1px rgba(255, 46, 61, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(255, 46, 61, 0.3) !important;
}

/* ─────────────────────────────────────────────────────────────────
   REDUCED MOTION
─────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #app::before, #login-screen::before { display: none; }
}
