/* Landing menu. MUST stay an external file: blooddah.fr sends `style-src 'self'` (no 'unsafe-inline'),
   so an inline <style> block is silently dropped in prod — the local debug nginx sends no CSP and would
   never reveal it. Same trap as the JS: never inline anything here. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  background: radial-gradient(120% 120% at 50% 0%, #10151f 0%, #0b0e14 60%, #06080c 100%);
  color: #eaf2ff;
  font: 500 16px/1.5 system-ui, -apple-system, sans-serif;
}

/* the particle field sits behind everything and never intercepts a click */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.pieces {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px; padding: 40px 24px;
}

a.piece {
  display: block; width: min(440px, 100%);
  text-decoration: none; color: #eaf2ff;
  background: rgba(14, 19, 30, 0.55);
  border: 1px solid rgba(150, 180, 255, 0.16);
  border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(3px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.piece:hover, a.piece:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(150, 200, 255, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  outline: none;
}

/* the preview: the piece's own screensaver, running live, as the face of the button */
.screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #06080c; }
.screen iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; pointer-events: none;   /* the whole card is the link — the iframe must not swallow the click */
}
/* a faint wash so the label stays readable over whatever the piece is doing */
.veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,12,0.12) 0%, rgba(6,8,12,0.05) 55%, rgba(11,14,20,0.85) 100%);
  transition: background .25s ease;
}
a.piece:hover .veil { background: linear-gradient(180deg, rgba(6,8,12,0) 0%, rgba(6,8,12,0) 55%, rgba(11,14,20,0.78) 100%); }

.label { display: block; padding: 18px 20px 20px; }
.name { display: block; font-size: 26px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.desc { display: block; margin-top: 8px; color: rgba(200, 216, 245, 0.6); font-size: 14px; }
.go {
  display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(200, 216, 245, 0.45);
  transition: color .25s ease, transform .25s ease;
}
a.piece:hover .go { transform: translateX(4px); }

a.piece.grav .name { color: #8fd0ff; }
a.piece.grav:hover .go { color: #8fd0ff; }
a.piece.rev .name { color: #ff8ea6; }
a.piece.rev:hover .go { color: #ff8ea6; }

@media (max-width: 560px) {
  .pieces { gap: 20px; padding: 24px 16px; }
  .name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  a.piece, .veil, .go { transition: none; }
  a.piece:hover, a.piece:focus-visible { transform: none; }
  a.piece:hover .go { transform: none; }
}
