/* The loading screen in index.html, shown until the app renders over #app. A file of its own (not in the bundle) so it
   paints as soon as the HTML arrives. Colours fall back to the light tokens when the bundle's tokens have not loaded.
   It waits 180 ms before showing, so a fast load never flashes it. */
.gd-splash {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--surface-bg, #f5f4f0); color: var(--accent, #0d6b5f);
  opacity: 0; animation: gd-splash-in 0.24s ease-out 0.18s forwards;
}
.gd-splash-mark { height: 52px; width: auto; overflow: visible; }
/* The mark draws in as court lines, then fills to the locked one-colour mark. */
.gd-splash-mark path {
  fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 9; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: gd-splash-draw 1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards, gd-splash-fill 0.4s ease-out 1.05s forwards;
}
.gd-splash-mark path + path { animation-delay: 0.36s, 1.2s; }
.gd-splash-name { font: 600 15px/1 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: -0.01em; color: var(--ink-strong, #0f1416); }
.gd-splash-bar { position: relative; width: 104px; height: 2px; margin-top: 10px; border-radius: 2px; overflow: hidden; background: var(--line-strong, rgba(17, 23, 25, 0.17)); }
.gd-splash-bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: currentColor; animation: gd-splash-slide 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.gd-splash-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:root[data-surface="customer"] .gd-splash-mark, :root[data-surface="customer"] .gd-splash-name { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gd-splash { background: var(--surface-bg, #0b1012); color: var(--accent, #4fc7b4); }
  :root:not([data-theme="light"]) .gd-splash-name { color: var(--ink-strong, #f2f5f4); }
  :root:not([data-theme="light"]) .gd-splash-bar { background: var(--line-strong, rgba(214, 239, 234, 0.17)); }
}
:root[data-theme="dark"] .gd-splash { background: var(--surface-bg, #0b1012); color: var(--accent, #4fc7b4); }
:root[data-theme="dark"] .gd-splash-name { color: var(--ink-strong, #f2f5f4); }
:root[data-theme="dark"] .gd-splash-bar { background: var(--line-strong, rgba(214, 239, 234, 0.17)); }

@keyframes gd-splash-in { to { opacity: 1; } }
@keyframes gd-splash-draw { to { stroke-dashoffset: 0; } }
@keyframes gd-splash-fill { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes gd-splash-slide { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

@media (prefers-reduced-motion: reduce) {
  .gd-splash { animation: none; opacity: 1; }
  .gd-splash-mark path { animation: none; fill-opacity: 1; stroke-width: 0; stroke-dashoffset: 0; }
  .gd-splash-bar::after { animation: none; width: 100%; opacity: 0.45; }
}
