/* ─── La Forge Design Tokens ─────────────────────────── */
:root {
  --black:      #0F0F0F;
  --charcoal:   #1A1A1A;
  --surface:    #242424;
  --border:     #333333;
  --gold:       #C9A84C;
  --gold-light: #E8CC7A;
  --cream:      #F5F0E8;
  --muted:      #888888;
  --danger:     #C0392B;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;
  --radius:     8px;
  --safe-top:   env(safe-area-inset-top);
  --safe-bot:   env(safe-area-inset-bottom);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.6s ease;
}

.splash-mark {
  font-size: 64px;
  color: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.splash-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.splash-sub {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.splash-loader {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  animation: load 1.6s ease forwards;
}

#install-banner {
  position: fixed;
  bottom: calc(16px + var(--safe-bot));
  left: 16px;
  right: 16px;
  background: var(--charcoal);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--cream);
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

#install-banner.hidden { display: none; }
#install-banner span { flex: 1; }

#install-btn {
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
}

#install-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

.hidden { display: none !important; }
