/* Bad to the Bone – in de stijl van het spel: blauwe lucht, paarse kaarten, gele koppen, dikke knoppen.
   Het lettertype is Bungee (SIL Open Font License), hetzelfde als in het spel, en staat lokaal: geen Google Fonts. */
@font-face {
  font-family: "Bungee";
  src: url("game-font.ttf") format("truetype");
  font-display: swap;
}

:root {
  --plum: #543db8;
  --plum-dark: #3a2a85;
  --plum-deep: #2a1d66;
  --plum-light: #8c6bf2;
  --gold: #ffcc29;
  --orange: #ff8c24;
  --mint: #4dd973;
  --coral: #ff5454;
  --sky: #4d99ff;
  --text: #ffffff;
  --muted: #ddd5ff;
  --line: rgba(255, 255, 255, 0.14);
  --display: "Bungee", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #6fb6ff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.13' transform='rotate(-25 60 60)'%3E%3Crect x='40' y='54' width='40' height='12' rx='6'/%3E%3Ccircle cx='40' cy='54' r='8'/%3E%3Ccircle cx='40' cy='66' r='8'/%3E%3Ccircle cx='80' cy='54' r='8'/%3E%3Ccircle cx='80' cy='66' r='8'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #4d99ff 0%, #8cc8ff 55%, #bfe3ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }

/* --- kop --------------------------------------------------------------------------------- */
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
header.site .brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--display); font-size: 22px; color: #fff; letter-spacing: 0.5px;
  text-shadow: 0 3px 0 var(--plum-dark), 0 0 14px rgba(42, 29, 102, 0.35);
}
header.site .brand img {
  width: 52px; height: 52px; border-radius: 14px;
  border: 3px solid #fff; box-shadow: 0 4px 0 var(--plum-dark);
}
header.site nav { display: flex; gap: 8px; flex-wrap: wrap; }
header.site nav a {
  font-family: var(--display); font-size: 13px; text-decoration: none; color: #fff;
  background: var(--plum); padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 4px 0 var(--plum-deep);
  transition: transform 0.08s, box-shadow 0.08s;
}
header.site nav a:hover { background: var(--plum-light); }
header.site nav a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--plum-deep); }

/* --- de grote paarse kaart --------------------------------------------------------------- */
main {
  background: var(--plum);
  border-radius: 28px;
  padding: 32px clamp(18px, 5vw, 44px) 36px;
  box-shadow: 0 10px 0 var(--plum-deep), 0 24px 48px rgba(20, 10, 60, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.18);
}

h1, h2, h3, summary { font-family: var(--display); font-weight: 400; letter-spacing: 0.3px; }
h1 {
  font-size: clamp(26px, 6vw, 42px); line-height: 1.15; margin: 0 0 14px; color: var(--gold);
  text-shadow: 0 4px 0 var(--plum-deep);
}
h1 .accent { color: #fff; }
h2 {
  font-size: clamp(19px, 4vw, 24px); line-height: 1.2; margin: 40px 0 10px; color: var(--gold);
  text-shadow: 0 3px 0 var(--plum-deep);
}
h3 { font-size: 16px; line-height: 1.3; margin: 22px 0 6px; color: #fff; }

p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--gold); }
strong { color: #fff; }
em { font-style: normal; font-weight: 700; color: var(--gold); }

.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.muted { color: var(--muted); font-size: 15px; }

/* --- knoppen zoals in het spel ------------------------------------------------------------ */
.button {
  display: inline-block; font-family: var(--display); font-size: 17px; color: #fff; text-decoration: none;
  background: var(--mint); padding: 14px 26px; border-radius: 18px;
  box-shadow: 0 6px 0 #2f9a4c; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.08s, box-shadow 0.08s;
}
.button:hover { color: #fff; filter: brightness(1.07); }
.button:active { transform: translateY(4px); box-shadow: 0 2px 0 #2f9a4c; }

/* --- startpagina -------------------------------------------------------------------------- */
.hero {
  display: block; width: 100%; height: auto; border-radius: 20px; margin: 0 0 24px;
  border: 3px solid rgba(255, 255, 255, 0.25); box-shadow: 0 6px 0 var(--plum-deep);
}
.shots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 8px;
}
.shots img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.2); box-shadow: 0 5px 0 var(--plum-deep);
}

/* trailer: eerst een plaatje met playknop, YouTube laadt pas na een klik (privacy) */
.video {
  position: relative; display: block; aspect-ratio: 16 / 9; margin: 26px 0 6px; overflow: hidden;
  border-radius: 20px; border: 3px solid rgba(255, 255, 255, 0.25); box-shadow: 0 6px 0 var(--plum-deep);
  background: var(--plum-deep);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; filter: brightness(0.75); transition: filter 0.15s, transform 0.3s; }
a.video:hover img { filter: brightness(0.9); transform: scale(1.02); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--coral); box-shadow: 0 6px 0 #b83232; border: 4px solid #fff;
}
.video-play::after {
  content: ""; position: absolute; left: 36px; top: 26px;
  border-style: solid; border-width: 20px 0 20px 32px; border-color: transparent transparent transparent #fff;
}
a.video:active .video-play { transform: translate(-50%, calc(-50% + 4px)); box-shadow: 0 2px 0 #b83232; }
.video-label {
  position: absolute; left: 0; right: 0; bottom: 16px; text-align: center;
  font-family: var(--display); font-size: clamp(16px, 3.5vw, 24px); color: var(--gold);
  text-shadow: 0 3px 0 var(--plum-deep);
}
.video-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 20px 0; }
.card {
  background: var(--plum-dark); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 5px 0 var(--plum-deep);
}
.card:nth-child(4n+1) { border-top: 6px solid var(--orange); }
.card:nth-child(4n+2) { border-top: 6px solid var(--gold); }
.card:nth-child(4n+3) { border-top: 6px solid var(--sky); }
.card:nth-child(4n+4) { border-top: 6px solid var(--mint); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

/* --- tabellen ----------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 14px 0; border-radius: 16px; box-shadow: 0 5px 0 var(--plum-deep); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--plum-dark); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; }
th { background: var(--plum-deep); color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: 0.3px; }
tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.05); }

/* --- vragen ------------------------------------------------------------------------------- */
details {
  background: var(--plum-dark); border-radius: 16px; padding: 0; margin: 10px 0;
  box-shadow: 0 4px 0 var(--plum-deep);
}
summary {
  cursor: pointer; font-size: 15px; padding: 14px 18px; list-style: none; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* --- voet --------------------------------------------------------------------------------- */
footer.site {
  margin-top: 26px; padding: 16px 20px; border-radius: 18px; font-size: 14px; text-align: center;
  background: rgba(42, 29, 102, 0.75); color: var(--muted);
}
footer.site a { color: #fff; }

@media (max-width: 520px) {
  header.site { justify-content: center; }
  .shots { grid-template-columns: 1fr; }
  main { border-radius: 22px; }
}
