/*
 * First paint before the bundle runs (QA 2026-09-26 O-27): on a slow connection index.html used to
 * be an empty <div id="root">, so the screen stayed white for 5+ seconds — white even for a dark
 * theme visitor. This is a static shell in the document itself: the map's own background, the
 * brand mark and a "yükleniyor" line. It lives inside #root, so React's first render replaces it.
 *
 * Standalone from src/styles: those load with the bundle. Colours mirror theme.css (--map-bg,
 * --solid, --acc), keyed off the data-theme /theme-init.js sets before paint. No inline style, so
 * the CSP can stay at style-src 'self'.
 */
.app-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #dde3df;
  color: #101613;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: center;
  padding: 24px;
}
:root[data-theme='dark'] .app-shell {
  background: #10140f;
  color: #e7efe9;
}
.app-shell__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #00c566;
  color: #04160c;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.app-shell__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app-shell__name small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}
.app-shell__hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}
/* A quiet progress line instead of a spinner: no layout, no reflow, stops when the app takes over. */
.app-shell__bar {
  width: min(200px, 60%);
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
:root[data-theme='dark'] .app-shell__bar {
  background: rgba(255, 255, 255, 0.14);
}
.app-shell__bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: #00c566;
  animation: app-shell-slide 1.1s ease-in-out infinite;
}
@keyframes app-shell-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell__bar::after {
    animation: none;
    width: 100%;
    opacity: 0.6;
  }
}
