/* base.css — variables, fondations et écrans */

:root {
  --bg-deep: #0d0b1e;
  --bg-mid: #141229;
  --bg-panel: #1c1936;
  --bg-card: #242046;
  --border: #3a3567;
  --gold: #e8c257;
  --gold-dark: #b8933a;
  --marble: #f0ead6;
  --text: #e8e6f0;
  --text-dim: #9a95b8;
  --danger: #e05555;
  --success: #4ade80;
  --shield: #5aa9e6;
  --radius: 12px;
  --font-title: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #2b2454 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-title);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Écrans ── */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
  flex-direction: column;
  animation: screen-in 0.35s ease;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ── Barres de défilement discrètes ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
