/* Initial document only. Reuses the application's palette before MuiBlazor loads. */
#daytrader-splash {
  --boot-bg: #f5f7fb; --boot-text: #172033; --boot-muted: #53637a;
  --boot-primary: #2563eb; --boot-track: #d7dee8; --boot-grid: #2563eb08;
  position: fixed; inset: 0; z-index: 9000; min-height: 100dvh;
  display: flex; flex-direction: column; box-sizing: border-box;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.75rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.75rem, env(safe-area-inset-left));
  background-color: var(--boot-bg); color: var(--boot-text);
  background-image: linear-gradient(var(--boot-grid) 1px, transparent 1px), linear-gradient(90deg, var(--boot-grid) 1px, transparent 1px);
  background-size: 54px 54px;
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", Arial, sans-serif;
}
html[data-daytrader-appearance="dark"] #daytrader-splash {
  --boot-bg: #0b1120; --boot-text: #e5e7eb; --boot-muted: #a0afc6;
  --boot-primary: #60a5fa; --boot-track: #334155; --boot-grid: #93c5fd08;
}
@media (prefers-color-scheme: dark) {
  html:not([data-daytrader-appearance="light"]) #daytrader-splash {
    --boot-bg: #0b1120; --boot-text: #e5e7eb; --boot-muted: #a0afc6;
    --boot-primary: #60a5fa; --boot-track: #334155; --boot-grid: #93c5fd08;
  }
}
.boot-header, .boot-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.boot-brand { display: inline-flex; gap: .625rem; align-items: center; font-size: 1rem; font-weight: 650; }
.boot-brand img { width: 28px; height: 28px; }
.boot-start-label { font-size: .6875rem; letter-spacing: .16em; color: var(--boot-muted); }
.boot-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-block: 2rem; }
.boot-logo-halo { display: grid; place-items: center; width: 148px; height: 148px; margin-bottom: 1rem; border-radius: 50%; background: radial-gradient(circle, #60a5fa20, transparent 69%); }
.boot-logo { width: 96px; height: 96px; }
.boot-eyebrow { color: var(--boot-primary); font-size: .6875rem; letter-spacing: .2em; }
#daytrader-boot-title { font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.2; margin: .5rem 0 .75rem; }
.boot-copy { color: var(--boot-muted); font-size: 1rem; line-height: 1.7; margin: 0; }
.boot-progress { width: min(216px, 75%); height: 3px; margin-top: 2rem; border-radius: 2px; background: var(--boot-track); clip-path: inset(0 round 2px); }
.boot-progress span { display: block; height: 100%; width: 38%; background: var(--boot-primary); animation: daytrader-boot-progress 2s ease-in-out infinite; }
.boot-message { color: var(--boot-muted); font-size: .8125rem; padding: 0; margin: .875rem 0 0; }
.boot-footer { font-size: .75rem; color: var(--boot-muted); }
#daytrader-splash[data-failed="true"] .boot-progress { display: none; }
@keyframes daytrader-boot-progress { from { transform: translateX(-110%); } to { transform: translateX(365%); } }
@media (max-width: 480px) { .boot-footer { justify-content: center; text-align: center; } .boot-footer span { width: 100%; } }
@media (max-height: 500px) {
  #daytrader-splash { padding: 1rem; }
  .boot-center { padding-block: .75rem; }
  .boot-logo-halo { width: 76px; height: 76px; margin-bottom: 0; }
  .boot-logo { width: 64px; height: 64px; }
  .boot-eyebrow, .boot-copy { display: none; }
  #daytrader-boot-title { font-size: 2rem; margin: .25rem 0 .5rem; }
  .boot-progress { margin-top: 1rem; }
  .boot-message { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .boot-progress span { animation: none; transform: translateX(80%); } }
@media (forced-colors: active) {
  #daytrader-splash { background: Canvas; color: CanvasText; }
  .boot-copy, .boot-message, .boot-footer, .boot-start-label, .boot-eyebrow { color: CanvasText; }
  .boot-progress { background: GrayText; } .boot-progress span { background: Highlight; }
}
