:root {
  --bg: #0d1117;
  --panel: #111820;
  --fg: #c9d1d9;
  --dim: #6e7681;
  --border: #30363d;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, #16202c 0%, var(--bg) 60%) fixed;
  color: var(--fg);
  font: 15px/1.6 var(--mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 1.5rem;
}

/* Lignes de balayage façon vieux moniteur */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}

.term {
  width: min(980px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(63,185,80,.05);
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .9rem;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.bar-title { margin-left: auto; margin-right: auto; color: var(--dim); font-size: .85rem; }

.screen { padding: 1.5rem 1.75rem 2rem; }

.prompt { margin: 1.6rem 0 .6rem; color: var(--fg); }
.prompt:first-child { margin-top: 0; }
.ps1 { color: var(--accent); }

.banner {
  color: var(--accent);
  text-shadow: 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent);
  margin: 0 0 1rem;
  font-size: clamp(.55rem, 1.6vw, .95rem);
  line-height: 1.15;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

h1 { margin: 0; font-size: 1.6rem; color: #fff; letter-spacing: .02em; }

.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; margin-left: .15em; }
@keyframes blink { 50% { opacity: 0; } }

.gods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.god {
  color: var(--c);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,.015);
  transition: transform .15s ease, box-shadow .15s ease;
}
.god.featured {
  background: color-mix(in srgb, var(--c) 8%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 22%, transparent);
}
.god.featured h2::after { content: " ●"; font-size: .7em; vertical-align: middle; }

.god:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 24px color-mix(in srgb, var(--c) 30%, transparent);
}

.art { width: 96px; height: 96px; margin: 0 auto .5rem; }
.art svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 50%, transparent)); }
.flies { animation: buzz 2.4s ease-in-out infinite alternate; transform-origin: center; }
@keyframes buzz { to { transform: rotate(12deg) scale(1.04); } }

.god h2 { margin: 0; font-size: 1.1rem; text-align: center; }

footer { margin-top: 1.5rem; color: var(--dim); font-size: .75rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .cursor, .flies { animation: none; }
  .god { transition: none; }
}
