/* ==========================================================================
   Indodyl.nl — gedeelde stylesheet
   ========================================================================== */

:root {
  --bg-primary: #060b18;
  --bg-secondary: #0a1428;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-color-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #eef4ff;
  --text-secondary: #a9bcdd;
  --text-muted: #6d80a3;

  --accent-cyan: #3fe0d6;
  --accent-blue: #2f7cf6;
  --accent-blue-deep: #1240a8;
  --accent-gradient: linear-gradient(120deg, var(--accent-cyan) 0%, var(--accent-blue) 55%, var(--accent-blue-deep) 100%);
  --accent-gradient-soft: linear-gradient(120deg, rgba(63, 224, 214, 0.16), rgba(47, 124, 246, 0.12));

  --brand-gradient: linear-gradient(120deg, #3fe0d6 0%, #2f7cf6 55%, #1240a8 100%);
  --gold: #f4c430;
  --select-bg: #0c1328;

  --discord: #5865f2;
  --discord-hover: #6d78f7;
  --twitch: #9146ff;
  --tiktok: #25f4ee;
  --youtube: #ff3b3b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --header-height: 76px;

  --shadow-glow: 0 0 60px rgba(47, 124, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Achtergrond: donker met subtiele blauw/cyaan gloed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(63, 224, 214, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 600px at 90% 10%, rgba(47, 124, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(18, 64, 168, 0.18), transparent 60%),
    var(--bg-primary);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Showdown Series pagina — eigen koninklijk blauw/goud thema
   Zelfde opzet/nav/logo als de rest van de site (gekoppeld aan Indodyl),
   maar met een eigen kleurpalet en subtiel wapen-patroon (eigen identiteit).
   ========================================================================== */

body.showdown-theme {
  --accent-cyan: #f4c430;
  --accent-blue: #3452e0;
  --accent-blue-deep: #0c1660;
  --accent-gradient: linear-gradient(120deg, #f4c430 0%, #4d6bf0 55%, #0c1660 100%);
  --accent-gradient-soft: linear-gradient(120deg, rgba(244, 196, 48, 0.14), rgba(52, 82, 224, 0.14));
  --bg-primary: #050a1f;
}

body.showdown-theme::before {
  background-color: #050a1f;
  background-image:
    url("../images/pattern-mc-icons.svg"),
    radial-gradient(ellipse 900px 550px at 12% -10%, rgba(52, 82, 224, 0.22), transparent 55%),
    radial-gradient(ellipse 900px 600px at 92% 10%, rgba(244, 196, 48, 0.08), transparent 55%),
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(12, 22, 96, 0.4), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 640px 640px, auto, auto, auto;
}

body.showdown-theme .btn-primary {
  background: var(--gold);
  color: #1a1206;
}

body .promo-card .btn-primary {
  background: var(--gold);
  color: #1a1206;
}

/* ==========================================================================
   Halloween-editie (Spooky Showdown) — bovenop het standaard Showdown-thema.
   Aan/uit: voeg `theme-halloween` toe aan of verwijder het van <body class="...">
   in showdown-series.html (en wissel het logo + eyebrow-tekst, zie README).
   ========================================================================== */

body.showdown-theme.theme-halloween {
  --accent-cyan: #ff8a1f;
  --gold: #ff8a1f;
  --accent-blue: #8b3dff;
  --accent-blue-deep: #2a0f5c;
  --accent-gradient: linear-gradient(120deg, #ff8a1f 0%, #b44cff 55%, #2a0f5c 100%);
  --accent-gradient-soft: linear-gradient(120deg, rgba(255, 138, 31, 0.16), rgba(139, 61, 255, 0.16));
  --bg-primary: #0a0612;
  --text-secondary: #c6b8de;
  --text-muted: #8472a4;
  --select-bg: #170b2b;
}

body.showdown-theme.theme-halloween::before {
  background-color: #0a0612;
  background-image:
    url("../images/pattern-halloween.svg"),
    radial-gradient(ellipse 900px 550px at 10% -10%, rgba(139, 61, 255, 0.26), transparent 55%),
    radial-gradient(ellipse 900px 600px at 92% 8%, rgba(255, 138, 31, 0.11), transparent 55%),
    radial-gradient(ellipse 900px 600px at 50% 105%, rgba(70, 14, 130, 0.45), transparent 60%);
}

/* Halloween-variant van de Showdown-banner op de homepage.
   De achtergrondfoto zelf staat in .promo-card (url("../images/showdown-series-bg.webp"));
   vervang het bestand of die url om later een andere afbeelding te gebruiken. */
.promo-card.promo-halloween {
  --accent-cyan: #ff8a1f;
  --gold: #ff8a1f;
  box-shadow: 0 0 46px rgba(255, 138, 31, 0.12), 0 0 70px rgba(139, 61, 255, 0.14);
  background-image: url("../images/spooky-showdown-bg.webp");
  background-position: center 62%;
}

.promo-card.promo-halloween::before {
  background:
    linear-gradient(100deg, rgba(14, 6, 28, 0.88) 8%, rgba(40, 14, 80, 0.5) 55%, rgba(255, 138, 31, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 6, 18, 0.12), rgba(10, 6, 18, 0.12));
}

/* Toernooi-info-kaart en inschrijfkaart op de Showdown-pagina met dezelfde achtergrondfoto */
body.theme-halloween .info-side,
body.theme-halloween .register-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../images/spooky-showdown-bg.webp");
  background-size: cover;
  background-position: 54% 62%;
}

body.theme-halloween .info-side::before,
body.theme-halloween .register-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 6, 24, 0.5) 0%, rgba(12, 6, 24, 0.84) 100%);
}

body.theme-halloween .register-card::before {
  background: linear-gradient(180deg, rgba(12, 6, 24, 0.62) 0%, rgba(12, 6, 24, 0.88) 55%, rgba(12, 6, 24, 0.92) 100%);
}

body.theme-halloween .info-side dt {
  color: var(--text-secondary);
}

.promo-card.promo-halloween .promo-text h3 img {
  width: 46px;
  height: 46px;
}

.promo-card.promo-halloween::after {
  border-color: rgba(180, 76, 255, 0.4);
}

body.theme-halloween .site-header {
  background: rgba(10, 6, 18, 0.74);
}

body.theme-halloween .tournament-logo {
  filter: drop-shadow(0 14px 46px rgba(255, 138, 31, 0.32)) drop-shadow(0 0 60px rgba(139, 61, 255, 0.35));
}

body.theme-halloween .video-frame {
  background: linear-gradient(160deg, #1a0d33, #0a0612 70%);
}

@media (max-width: 760px) {
  body.theme-halloween .main-nav {
    background: rgba(10, 6, 18, 0.98);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 2400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 110px);
}

/* ==========================================================================
   Header / navigatie
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(6, 11, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--accent-gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.brand-logo-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 2px;
  background: var(--accent-gradient);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-name {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.main-nav a.active {
  color: var(--accent-cyan);
  background: var(--bg-card);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--discord);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-discord:hover {
  background: var(--discord-hover);
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.btn-discord:active {
  transform: translateY(3px);
  box-shadow: 0 1px 4px rgba(88, 101, 242, 0.3);
}

.btn-discord svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Algemene secties / typografie
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-subtitle {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.section {
  padding: 70px 0;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border-color-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(2px);
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #04101f;
}

.btn-primary:hover {
  filter: brightness(0.94);
  border-color: transparent;
}

.btn-primary:active {
  filter: brightness(0.88);
}

/* ==========================================================================
   Homepagina — hero
   ========================================================================== */

.hero {
  padding: 90px 0 60px;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-portrait {
  flex-shrink: 0;
  position: relative;
  width: clamp(240px, 20vw, 400px);
  height: clamp(240px, 20vw, 400px);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(28px);
  opacity: 0.55;
  z-index: 0;
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glow);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-tagline {
  margin-top: 8px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-bio {
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 820px;
}

/* Social buttons */
.social-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
}

.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  color: #fff;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.social-btn .icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.social-btn .label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-btn .platform {
  font-weight: 800;
  font-size: 1.02rem;
}

.social-btn .handle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-btn.twitch {
  background: linear-gradient(135deg, #a970ff 0%, #7a35f0 55%, #5a22c4 100%);
  box-shadow: 0 10px 28px rgba(145, 70, 255, 0.38);
}

.social-btn.youtube {
  background: linear-gradient(135deg, #ff4d4d 0%, #e60023 55%, #b3001b 100%);
  box-shadow: 0 10px 28px rgba(255, 40, 60, 0.34);
}

.social-btn.tiktok {
  background: linear-gradient(135deg, #1d1d26 0%, #08080c 100%);
  box-shadow: inset 3px 0 0 #25f4ee, inset -3px 0 0 #fe2c55, 0 10px 28px rgba(0, 0, 0, 0.45);
}

.social-btn:hover {
  transform: translateY(2px);
  filter: brightness(0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.social-btn.tiktok:hover {
  box-shadow: inset 3px 0 0 #25f4ee, inset -3px 0 0 #fe2c55, 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-btn:active {
  transform: translateY(3px);
  filter: brightness(0.88);
}

/* ==========================================================================
   Homepagina — extra secties
   ========================================================================== */

.promo-banner {
  margin-top: 0;
}

.promo-card {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../images/showdown-series-bg.webp");
  background-size: cover;
  background-position: center 60%;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 11, 24, 0.82) 8%, rgba(6, 11, 24, 0.42) 50%, rgba(6, 11, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 11, 24, 0.25), rgba(6, 11, 24, 0.25));
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  pointer-events: none;
}

.promo-text h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.promo-text h3 img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.promo-text p {
  color: var(--text-secondary);
  max-width: 480px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about-grid .card {
  padding: 26px;
}

.about-grid .card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--accent-cyan);
}

.about-grid .card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-grid .card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Showdown Series pagina
   ========================================================================== */

.tournament-hero {
  padding: 70px 0 30px;
  text-align: center;
}

.tournament-hero .eyebrow {
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 600;
}

.tournament-logo {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 8px auto 0;
  filter: drop-shadow(0 16px 50px rgba(47, 124, 246, 0.35));
}

.tournament-hero .page-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.tournament-meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.video-section {
  padding: 40px 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: linear-gradient(160deg, #0c1730, #060b18 70%);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 20px;
}

.video-placeholder .play-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--accent-gradient-soft);
  border: 1px solid var(--border-color-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder .play-icon svg {
  width: 30px;
  height: 30px;
  color: var(--accent-cyan);
  margin-left: 3px;
}

.video-placeholder h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.video-placeholder p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
}

.info-section {
  padding: 40px 0;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 64px);
}

.info-col p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.info-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-col ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-gradient);
}

.info-side {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.info-side h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.info-side dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.info-side .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.info-side .row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-side dt {
  color: var(--text-muted);
}

.info-side dd {
  font-weight: 700;
  text-align: right;
}

.info-side .btn {
  width: 100%;
  margin-top: auto;
}

/* Inschrijvingsformulier */

.register-section {
  padding: 50px 0 100px;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: start;
}

.register-card {
  padding: 44px;
}

.community-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.community-panel p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.community-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.community-btn svg {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.community-btn strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.community-btn small {
  display: block;
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0.88;
}

.community-btn.discord {
  background: var(--discord);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.38);
}

.community-btn.twitch {
  background: #9146ff;
  box-shadow: 0 12px 32px rgba(145, 70, 255, 0.34);
}

.community-btn:hover {
  transform: translateY(3px);
  filter: brightness(0.94);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
}

.community-btn:active {
  transform: translateY(4px);
  filter: brightness(0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.register-card > p {
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-field label .req {
  color: var(--accent-cyan);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color-strong);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
}

.form-field input,
.form-field select,
.form-field textarea {
  color-scheme: dark;
}

.form-field select option {
  background-color: var(--select-bg);
  color: var(--text-primary);
}

.form-field select option:checked {
  background: linear-gradient(var(--accent-blue), var(--accent-blue));
  color: #fff;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a9bcdd' stroke-width='2' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent-blue);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-message {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: var(--accent-gradient-soft);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
}

.form-message.success a {
  color: var(--accent-cyan);
}

.form-message.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8080;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 26px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Responsief
   ========================================================================== */

@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 34px;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .social-grid {
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .video-layout,
  .info-columns,
  .register-layout {
    grid-template-columns: 1fr;
  }

  .community-panel {
    position: static;
  }

  .promo-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 11, 24, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px 20px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a {
    text-align: center;
    padding: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-discord span {
    display: none;
  }

  .btn-discord {
    padding: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-portrait {
    width: 200px;
    height: 200px;
  }

  .register-card {
    padding: 28px 20px;
  }

  .promo-card {
    padding: 28px 22px;
  }
}


/* ==========================================================================
   Showdown Series - subpagina's (regels, deelnemers, winnaars, faq)
   ========================================================================== */

[hidden] {
  display: none !important;
}

.sub-nav {
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.sub-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav .container::-webkit-scrollbar {
  display: none;
}

.sub-nav a {
  flex-shrink: 0;
  padding: 15px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sub-nav a:first-child {
  margin-left: auto;
}

.sub-nav a:last-child {
  margin-right: auto;
}

.sub-nav a:hover {
  color: var(--text-primary);
}

.sub-nav a.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-cyan);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.page-hero {
  padding: 64px 0 24px;
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 600;
}

.page-hero .page-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  padding: 30px 0 90px;
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient-soft);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-cyan);
}

.page-cta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Regels */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 22px;
}

.rule-card {
  padding: 28px 30px;
}

.rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-gradient-soft);
  border: 1px solid var(--border-color-strong);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.rule-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.rule-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rule-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-gradient);
}

.rule-card.pending {
  border-style: dashed;
}

.rule-card.pending p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Deelnemers */

.participants-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.player-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-cyan);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 65%, transparent);
  background:
    linear-gradient(135deg, rgba(255, 138, 31, 0.12) 0%, rgba(139, 61, 255, 0.08) 55%, rgba(0, 0, 0, 0.22) 100%),
    var(--bg-card);
  box-shadow: 0 0 0 1px rgba(255, 138, 31, 0.08), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 32px rgba(255, 138, 31, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(255, 138, 31, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 44px rgba(255, 138, 31, 0.24);
}

.player-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 22px rgba(255, 138, 31, 0.32);
  font-size: 2rem;
}

.player-card .player-info strong {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.2;
}

.player-card .player-info span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
}

.avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--accent-gradient-soft);
  border: 1px solid var(--border-color-strong);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 1.3rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.player-info {
  min-width: 0;
}

.player-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.player-info span,
.player-info a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-info a:hover {
  color: var(--accent-cyan);
}

.empty-state {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
}

.empty-state img {
  width: 96px;
  margin: 0 auto 18px;
}

.empty-state h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 22px;
}

/* Winnaars */

.winners-edition {
  margin-bottom: 60px;
}

.winners-edition h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 900;
}

.winners-edition .edition-date {
  text-align: center;
  color: var(--text-muted);
  margin: 6px 0 28px;
}

.podium {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
}

.podium-slot {
  flex: 1 1 200px;
  max-width: 260px;
  padding: 26px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
}

.podium-slot .avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 14px;
}

.podium-slot strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-weight: 900;
  color: #1a1206;
  background: #cfd6e6;
}

.podium-slot.place-1 {
  order: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 44px rgba(255, 138, 31, 0.2);
}

.podium-slot.place-1 .place-badge {
  background: var(--gold);
}

.podium-slot.place-2 {
  order: 1;
}

.podium-slot.place-3 {
  order: 3;
}

.podium-slot.place-3 .place-badge {
  background: #cd7f32;
}

/* FAQ */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--accent-cyan);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-cyan);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list .faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.75;
}

@media (max-width: 1280px) {
  .participants-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .participants-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .participants-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .player-card {
    padding: 20px 22px;
    gap: 18px;
  }

  .player-card .avatar {
    width: 72px;
    height: 72px;
  }

  .player-card .player-info strong {
    font-size: 1.2rem;
  }

  .page-hero {
    padding-top: 44px;
  }

  .rule-card {
    padding: 22px;
  }

  .podium-slot {
    flex-basis: 100%;
    max-width: none;
  }

  .podium-slot.place-1 {
    order: 1;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .podium-slot.place-2 {
    order: 2;
  }

  .podium-slot.place-3 {
    order: 3;
  }
}

/* Lettertype voor spelersnamen (Minecraft Ten, zie fonts/ en README voor de licentie) */
@font-face {
  font-family: "Minecraft Ten";
  src: url("../fonts/MinecraftTen.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.player-card .player-info strong,
.podium-slot strong {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.player-card .player-info strong {
  font-size: 1.65rem;
}

.podium-slot strong {
  font-size: 1.4rem;
}

@media (min-width: 1281px) and (max-width: 1699px) {
  .player-card {
    gap: 18px;
    padding: 22px 24px;
  }

  .player-card .avatar {
    width: 76px;
    height: 76px;
  }

  .player-card .player-info strong {
    font-size: 1.3rem;
  }
}

@media (max-width: 700px) {
  .player-card .player-info strong {
    font-size: 1.4rem;
  }
}

/* Social-icoontjes achter spelersnamen */
.player-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.player-name-row strong {
  flex: 0 1 auto;
  max-width: 100%;
}

.social-icons {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.social-icon.twitch {
  background: #9146ff;
}

.social-icon.youtube {
  background: #ff1a1a;
}

.social-icon.tiktok {
  background: #0b0b0f;
  box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55;
}

.social-icon:hover {
  transform: translateY(1px);
  filter: brightness(0.9);
}

.social-icon:active {
  transform: translateY(2px);
}

/* ==========================================================================
   Tierlist (tierlist.html)
   ========================================================================== */

.tierlist {
  --head: 64px;
}

.tierlist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 22px;
}

.tierlist-hint {
  flex: 1 1 320px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tierlist-hint strong {
  color: var(--accent-cyan);
}

.tierlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tierlist-actions .btn {
  padding: 11px 20px;
  font-size: 0.9rem;
}

.tier-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-row {
  display: flex;
  min-height: calc(var(--head) + 20px);
  border: 1px solid var(--border-color-strong);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tier-row.is-over,
.tier-pool-wrap.is-over .tier-pool {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 0 26px rgba(255, 138, 31, 0.25);
}

.tier-label {
  flex: 0 0 clamp(92px, 13vw, 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 0;
  border-radius: 13px 0 0 13px;
  background: var(--tier);
  color: var(--tier-ink, #0a0612);
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.45rem);
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  cursor: default;
  transition: filter 0.15s ease;
}

.tierlist.has-selection .tier-label {
  cursor: pointer;
}

.tierlist.has-selection .tier-label:hover {
  filter: brightness(1.12);
}

.tier-drop {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 10px;
}

.tierlist.has-selection .tier-drop {
  cursor: pointer;
}

.tier-pool-wrap {
  margin-top: 34px;
}

.tier-pool-title {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.tier-pool-title span {
  color: var(--text-muted);
  font-weight: 600;
}

.tier-pool {
  min-height: calc(var(--head) + 28px);
  padding: 14px;
  border: 1px dashed var(--border-color-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tier-pool:empty::before {
  content: "Alle spelers zijn ingedeeld. Download of deel je lijst!";
  align-self: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tierlist-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.tl-head {
  position: relative;
  flex: 0 0 var(--head);
  width: var(--head);
  height: var(--head);
  padding: 0;
  border: 0;
  background: none;
  border-radius: 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.12s ease;
}

.tl-head .avatar {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.tl-head .avatar img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.tl-head:hover,
.tl-head:focus-visible {
  transform: translateY(-3px);
}

.tl-head:hover .avatar,
.tl-head:focus-visible .avatar {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(255, 138, 31, 0.5);
}

.tl-head:focus-visible {
  outline: none;
}

.tl-head.is-selected .avatar {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent-cyan), 0 0 22px rgba(255, 138, 31, 0.7);
}

.tl-head.is-dragging {
  opacity: 0.3;
}

.tierlist.is-dragging,
.tierlist.is-dragging .tl-head {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.tierlist.is-dragging .tl-head:hover {
  transform: none;
}

.tl-ghost {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.tl-ghost .avatar {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 2px solid var(--accent-cyan);
}

.tl-tooltip {
  position: fixed;
  z-index: 900;
  left: 0;
  top: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--accent-cyan);
  background: #150a26;
  color: #fff;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.tl-tooltip.show {
  opacity: 1;
}

@media (min-width: 1700px) {
  .tierlist {
    --head: 72px;
  }
}

@media (max-width: 700px) {
  .tierlist {
    --head: 52px;
  }

  .tier-drop {
    gap: 6px;
    padding: 8px;
  }

  .tierlist-actions {
    width: 100%;
  }

  .tierlist-actions .btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Feedbackformulier (feedback.html)
   ========================================================================== */

.fbk-wrap {
  max-width: 900px;
}

.fbk-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fbk-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 30px;
}

.fbk-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.fbk-intro {
  margin: -8px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fbk-question {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fbk-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.fbk-label .req {
  color: var(--accent-cyan);
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.rating-stars {
  position: relative;
  display: inline-flex;
  gap: 2px;
}

.rating-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rating-stars label {
  display: inline-flex;
  padding: 0 3px;
  border-radius: 6px;
  font-size: 2.3rem;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
}

.rating-stars label.on {
  color: #ffc233;
  text-shadow: 0 0 14px rgba(255, 194, 51, 0.45);
}

.rating-stars label:hover {
  transform: translateY(-2px);
}

.rating-stars input:focus-visible + label {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 1px;
}

.rating-text {
  min-width: 9ch;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rating-clear {
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.rating-clear:hover {
  color: var(--text-primary);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fbk-kits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.fbk-kit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-strong);
  background: rgba(0, 0, 0, 0.22);
}

.fbk-kit h3 {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--accent-cyan);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-block;
  min-width: 96px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color-strong);
  background: var(--bg-card);
  font-weight: 700;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.choice:hover span {
  border-color: var(--accent-cyan);
}

.choice input:checked + span {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #1a0d00;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.fbk-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 52px 28px;
  text-align: center;
}

.fbk-thanks img {
  width: 76px;
  height: auto;
}

.fbk-thanks p {
  max-width: 46ch;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .fbk-card {
    padding: 22px 18px;
  }

  .rating-stars label {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   Showdown Series hoofdpagina: de troonzaal (thema "theme-castle")
   Koninklijk Minecraft-kasteel in blauw, goud en rood. Minecraft Ten voor titels.
   Terug naar de Halloween-versie: kopieer _backups/spooky-edition-page/showdown-series.html terug.
   ========================================================================== */

body.theme-castle {
  --gold: #f4c430;
  --red: #c8283a;
  --red-deep: #84192a;
  --royal: #3452e0;
  --text-secondary: #b4c2e6;
  --text-muted: #7587b3;
  font-family: "Montserrat", "Inter", "Segoe UI", system-ui, sans-serif;
}

body.theme-castle .site-header {
  background: rgba(5, 10, 31, 0.8);
  border-bottom-color: rgba(244, 196, 48, 0.22);
}

.castle-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(660px, calc(100vh - var(--header-height) - 49px), 980px);
  padding: 36px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 42% 40% at 50% 36%, rgba(5, 10, 31, 0.6), transparent 72%),
    linear-gradient(180deg, rgba(5, 10, 31, 0.5) 0%, rgba(5, 10, 31, 0.04) 26%, rgba(5, 10, 31, 0.12) 52%, rgba(5, 10, 31, 0.84) 88%, #050a1f 100%),
    url("../images/showdown-hall-bg.webp") center 28% / cover no-repeat;
}

.castle-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.castle-eyebrow,
.castle-kicker {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.castle-eyebrow {
  font-size: 0.95rem;
}

.castle-logo {
  width: clamp(290px, 34vw, 480px);
  height: auto;
  margin: -44px auto -40px;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.65));
}

.castle-lead {
  max-width: 640px;
  margin: 6px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: #e8edff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.castle-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.castle-cta .btn:not(.btn-primary) {
  background: rgba(5, 10, 31, 0.72);
  border-color: rgba(244, 196, 48, 0.4);
}

.castle-cta .btn:not(.btn-primary):hover {
  background: rgba(20, 32, 90, 0.9);
  border-color: var(--gold);
}

.castle-hero .meta-pill {
  background: rgba(5, 10, 31, 0.72);
  border-color: rgba(244, 196, 48, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #dfe6ff;
}

/* Secties */

.castle-section {
  padding: clamp(56px, 8vw, 110px) 0 0;
}

.castle-section.last {
  padding-bottom: 40px;
}

.castle-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.castle-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.castle-title {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.carpet {
  width: min(260px, 60%);
  height: 14px;
  margin: 22px auto 0;
  background: var(--red);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 0 22px rgba(200, 40, 58, 0.4);
}

.castle-head p {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.castle-grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 32px);
}

.castle-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.castle-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Kaarten met hangende banner */

.castle-card {
  position: relative;
  padding: 0 28px 30px;
  border-radius: 16px;
  border: 1px solid rgba(244, 196, 48, 0.28);
  background: linear-gradient(180deg, rgba(30, 46, 120, 0.42), rgba(8, 14, 46, 0.8));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.castle-card h3 {
  margin-bottom: 10px;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.castle-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.banner,
.ribbon {
  display: flex;
  justify-content: center;
  margin: -1px 0 20px;
  color: var(--gold);
  background: linear-gradient(180deg, #d42d41, var(--red-deep));
  border-top: 3px solid var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.banner {
  width: 46px;
  height: 66px;
  padding-top: 13px;
}

.banner svg {
  width: 22px;
  height: 22px;
}

.ribbon {
  display: inline-flex;
  min-width: 150px;
  padding: 10px 24px 26px;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.ribbon.blue {
  background: linear-gradient(180deg, #4766f0, #1a2a8a);
}

.inline-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Edities */

.edition-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.edition-top img {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(244, 196, 48, 0.3));
}

.edition-date {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold) !important;
}

.edition-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.35);
}

.edition-winner img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.edition-winner span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.edition-winner strong {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.edition-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.edition-links .btn {
  padding: 11px 18px;
  font-size: 0.85rem;
}

.castle-card.upcoming {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(30, 46, 120, 0.2), rgba(8, 14, 46, 0.5));
}

.castle-card.upcoming .edition-top img {
  opacity: 0.55;
  filter: grayscale(0.35);
}

/* Regerend koning */

.castle-throne {
  padding: clamp(56px, 8vw, 110px) 0 0;
}

.throne-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 24px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(244, 196, 48, 0.45);
  background:
    linear-gradient(180deg, rgba(5, 10, 31, 0.7), rgba(5, 10, 31, 0.86)),
    url("../images/showdown-hall-bg.webp") center 72% / cover no-repeat;
  box-shadow: 0 0 60px rgba(244, 196, 48, 0.12);
}

.king-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.king-crown {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(244, 196, 48, 0.55));
}

.king-card .avatar {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 40, 58, 0.55), 0 0 46px rgba(244, 196, 48, 0.4);
  font-size: 3rem;
}

.king-name {
  margin-top: 8px;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}

.king-sub {
  color: var(--text-secondary);
  line-height: 1.6;
}

.king-card .btn {
  margin-top: 10px;
}

/* Uitleg en community */

.castle-section .video-frame {
  border-color: rgba(244, 196, 48, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.castle-info {
  border-color: rgba(244, 196, 48, 0.28);
  background: linear-gradient(180deg, rgba(30, 46, 120, 0.42), rgba(8, 14, 46, 0.8));
}

.castle-info h3 {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.castle-info dt {
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .castle-grid.three,
  .castle-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .castle-hero {
    min-height: 0;
    padding: 28px 0 64px;
    background-position: center top, center, 50% 20%;
  }

  .castle-logo {
    width: min(86vw, 420px);
    margin: -34px auto -30px;
  }

  .castle-card {
    padding: 0 22px 26px;
  }

  .edition-top img {
    width: 64px;
    height: 64px;
  }
}
/* ==========================================================================
   Thema "castle" op de subpagina's (regels, deelnemers, tierlist, winnaars, faq, feedback)
   en op de homepage-banner. Zelfde koninklijke blauw/goud/rood als de hoofdpagina.
   ========================================================================== */

body.theme-castle .sub-nav {
  background: rgba(5, 10, 31, 0.78);
  border-bottom-color: rgba(244, 196, 48, 0.22);
}

body.theme-castle .sub-nav a {
  letter-spacing: 0.06em;
}

/* Hero van een subpagina: de troonzaal, met de rode loper als afsluiting */
body.theme-castle .page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(54px, 8vw, 92px) 0 clamp(46px, 7vw, 76px);
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(5, 10, 31, 0.62), transparent 80%),
    linear-gradient(180deg, rgba(5, 10, 31, 0.55) 0%, rgba(5, 10, 31, 0.3) 45%, rgba(5, 10, 31, 0.9) 100%),
    url("../images/showdown-hall-bg.webp") center 24% / cover no-repeat;
}

body.theme-castle .page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: var(--red);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 0 26px rgba(200, 40, 58, 0.4);
}

body.theme-castle .page-hero .eyebrow {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

body.theme-castle .page-title {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.12;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}

body.theme-castle .page-hero .page-subtitle {
  color: #e2e9ff;
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

body.theme-castle .content-section {
  padding-top: 52px;
}

/* Kaarten en koppen */
body.theme-castle .card {
  border-color: rgba(244, 196, 48, 0.28);
  background: linear-gradient(180deg, rgba(30, 46, 120, 0.42), rgba(8, 14, 46, 0.8));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-castle .rule-card h2,
body.theme-castle .empty-state h2,
body.theme-castle .winners-edition h2,
body.theme-castle .fbk-card h2,
body.theme-castle .fbk-kit h3,
body.theme-castle .tier-pool-title {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

body.theme-castle .rule-num {
  color: var(--gold);
  background: linear-gradient(180deg, #d42d41, var(--red-deep));
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(200, 40, 58, 0.35);
}

body.theme-castle .rule-card li::before {
  background: var(--gold);
}

body.theme-castle .notice {
  background: rgba(244, 196, 48, 0.08);
  border-color: rgba(244, 196, 48, 0.5);
}

/* Deelnemers */
body.theme-castle .player-card {
  border-color: rgba(244, 196, 48, 0.4);
  background: linear-gradient(135deg, rgba(52, 82, 224, 0.2) 0%, rgba(30, 46, 120, 0.2) 55%, rgba(0, 0, 0, 0.26) 100%), var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-castle .player-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 36px rgba(244, 196, 48, 0.22);
}

body.theme-castle .player-card .avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 40, 58, 0.45), 0 0 22px rgba(244, 196, 48, 0.25);
}

/* Winnaars */
body.theme-castle .podium-slot.place-1 {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 40, 58, 0.5), 0 0 54px rgba(244, 196, 48, 0.28);
}

body.theme-castle .podium-slot .avatar {
  border: 2px solid rgba(244, 196, 48, 0.6);
}

body.theme-castle .podium-slot.place-1 .avatar {
  border-color: var(--gold);
}

/* FAQ */
body.theme-castle .faq-list details {
  border-color: rgba(244, 196, 48, 0.24);
  background: linear-gradient(180deg, rgba(30, 46, 120, 0.34), rgba(8, 14, 46, 0.7));
}

body.theme-castle .faq-list details[open] {
  border-color: var(--gold);
}

/* Homepage-banner */
.promo-card.promo-castle {
  --accent-cyan: #f4c430;
  --gold: #f4c430;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4), 0 0 46px rgba(52, 82, 224, 0.16);
  background-image: url("../images/showdown-hall-bg.webp");
  background-position: center 30%;
}

.promo-card.promo-castle::before {
  background:
    linear-gradient(100deg, rgba(5, 10, 31, 0.92) 6%, rgba(5, 10, 31, 0.62) 52%, rgba(5, 10, 31, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 10, 31, 0.2), rgba(5, 10, 31, 0.2));
}

.promo-card.promo-castle::after {
  border-color: rgba(244, 196, 48, 0.5);
}

.promo-card.promo-castle .eyebrow {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.promo-card.promo-castle .promo-text h3 {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.promo-card.promo-castle .promo-text h3 img {
  width: 46px;
  height: 46px;
}

.promo-card.promo-castle .promo-text p {
  color: #dbe3ff;
  line-height: 1.65;
}

.promo-card.promo-castle .btn-primary {
  background: var(--gold);
  color: #1a1206;
}
/* ==========================================================================
   Editie-pagina's (uitslagen, deelnemers, regels, feedback): editie-navigatie en leaderboard
   ========================================================================== */

.edition-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.edition-nav a {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(244, 196, 48, 0.35);
  background: rgba(5, 10, 31, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2e9ff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.edition-nav a:hover {
  border-color: var(--gold);
  background: rgba(20, 32, 90, 0.9);
}

.edition-nav a.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
}

.edition-nav a.edition-back {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text-secondary);
}

.edition-nav a.edition-back:hover {
  color: var(--gold);
  background: transparent;
}

/* Winnaarsblok op de uitslagenpagina */
.results-winner {
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vw, 90px);
}

.results-winner .castle-kicker {
  margin-bottom: 0;
}

/* Leaderboard */
.lb-head-title {
  margin-bottom: 34px;
}

.leaderboard {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-head,
.lb-row {
  display: grid;
  grid-template-columns: 52px 60px minmax(0, 1fr) repeat(5, 86px);
  align-items: center;
  gap: 0 14px;
}

.lb-head {
  padding: 0 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lb-head span {
  text-align: center;
}

.lb-head .lb-h-name {
  text-align: left;
}

.lb-row {
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(244, 196, 48, 0.22);
  background: linear-gradient(135deg, rgba(52, 82, 224, 0.16), rgba(8, 14, 46, 0.72));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lb-row .avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid rgba(244, 196, 48, 0.45);
}

.lb-rank {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 50%;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.07);
}

.lb-row.top-1 .lb-rank,
.lb-row.top-2 .lb-rank,
.lb-row.top-3 .lb-rank {
  color: #1a1206;
}

.lb-row.top-1 .lb-rank { background: var(--gold); }
.lb-row.top-2 .lb-rank { background: #cfd6e6; }
.lb-row.top-3 .lb-rank { background: #cd7f32; }

.lb-row.top-1 {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 40, 58, 0.45), 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 36px rgba(244, 196, 48, 0.18);
}

.lb-row.top-1 .avatar {
  border-color: var(--gold);
}

.lb-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.lb-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.lb-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1206;
  background: var(--gold);
}

.lb-row.is-champion {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(244, 196, 48, 0.16), rgba(8, 14, 46, 0.76));
}

.lb-stats {
  display: contents;
}

.lb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.lb-stat b {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lb-stat small {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lb-stat.lb-points b {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
}

@media (max-width: 760px) {
  .lb-head {
    display: none;
  }

  .lb-row {
    grid-template-columns: 40px 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank avatar name points"
      "stats stats stats stats";
    gap: 10px 12px;
    padding: 14px 14px;
  }

  .lb-rank { grid-area: rank; min-width: 32px; height: 32px; font-size: 0.9rem; }
  .lb-row .avatar { grid-area: avatar; width: 48px; height: 48px; }
  .lb-name { grid-area: name; }
  .lb-name strong { font-size: 1.1rem; }
  .lb-stat.lb-points { grid-area: points; }

  .lb-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lb-stats .lb-stat small {
    display: block;
    margin-top: 2px;
  }

  .lb-stat.lb-points small {
    display: block;
  }
}
/* ==========================================================================
   Spooky Showdown (editie 1): de editie-pagina's behouden de Halloween-stijl (body class "theme-halloween").
   Alleen voor die pagina's; de hoofdpagina en latere edities gebruiken "theme-castle" of een eigen thema.
   ========================================================================== */

body.showdown-theme.theme-halloween {
  --red: #6d2bd1;
  --red-deep: #2a0f5c;
}

body.theme-halloween .edition-nav a {
  border-color: rgba(255, 138, 31, 0.4);
  background: rgba(14, 6, 28, 0.7);
  color: var(--text-primary);
}

body.theme-halloween .edition-nav a:hover {
  border-color: var(--gold);
  background: rgba(60, 24, 110, 0.7);
}

body.theme-halloween .edition-nav a.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
}

body.theme-halloween .edition-nav a.edition-back {
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary);
}

body.theme-halloween .edition-nav a.edition-back:hover {
  color: var(--gold);
  background: transparent;
}

body.theme-halloween .throne-panel {
  border-color: rgba(255, 138, 31, 0.5);
  background:
    linear-gradient(180deg, rgba(12, 6, 24, 0.62), rgba(12, 6, 24, 0.9)),
    url("../images/spooky-showdown-bg.webp") center 62% / cover no-repeat;
  box-shadow: 0 0 46px rgba(255, 138, 31, 0.14), 0 0 70px rgba(139, 61, 255, 0.16);
}

body.theme-halloween .king-crown {
  filter: drop-shadow(0 0 22px rgba(255, 138, 31, 0.55));
}

body.theme-halloween .king-card .avatar {
  box-shadow: 0 0 0 4px rgba(139, 61, 255, 0.55), 0 0 46px rgba(255, 138, 31, 0.4);
}

body.theme-halloween .lb-row {
  border-color: rgba(255, 138, 31, 0.26);
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.16), rgba(14, 6, 28, 0.78));
}

body.theme-halloween .lb-row .avatar {
  border-color: rgba(255, 138, 31, 0.5);
}

body.theme-halloween .lb-row.top-1,
body.theme-halloween .lb-row.is-champion {
  border-color: var(--gold);
}

body.theme-halloween .lb-row.top-1 {
  box-shadow: 0 0 0 2px rgba(139, 61, 255, 0.5), 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 36px rgba(255, 138, 31, 0.18);
}

body.theme-halloween .lb-row.is-champion {
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.18), rgba(14, 6, 28, 0.8));
}
/* Inschrijfformulier: hints en subtitel */
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.social-intro {
  margin-top: 8px;
}

.form-subtitle {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.social-intro .form-hint {
  margin-top: 4px;
}

#mcHint {
  color: var(--gold);
}
/* Social-icoontjes in de spelerskaart: aaneengesloten, rechts uitgelijnd met overal dezelfde ruimte tot de rand */
.player-card .player-info {
  flex: 1 1 auto;
}

.player-card .social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.player-card .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
}

.player-card .social-icon svg {
  width: 22px;
  height: 22px;
}

.player-card .social-icon.youtube {
  background: #ff0000;
}

@media (max-width: 700px) {
  /* Op smalle schermen op een eigen regel, wel rechts uitgelijnd */
  .player-card {
    flex-wrap: wrap;
  }

  .player-card .social-icons {
    flex: 0 0 100%;
    margin-left: 0;
  }
}
/* Winnaarspagina: regerend koning bovenaan, en de kits op de regelspagina */
.castle-throne.winners-king {
  padding-top: 0;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.kit-head {
  margin-bottom: 34px;
}

.kit-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0 auto clamp(48px, 7vw, 80px);
}

.kit-card {
  flex: 0 1 190px;
  min-width: 140px;
  padding: 24px 14px 22px;
  text-align: center;
}

.kit-slot {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a2f4d, #14172e);
  border: 2px solid rgba(244, 196, 48, 0.4);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.3);
}

.kit-slot img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.kit-card h3 {
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .kit-grid {
    gap: 12px;
  }

  .kit-card {
    flex-basis: calc(50% - 6px);
    min-width: 0;
    padding: 18px 10px;
  }

  .kit-slot {
    width: 88px;
    height: 88px;
  }

  .kit-slot img {
    width: 60px;
    height: 60px;
  }
}
/* Regelspagina: hoofdlijnen van het rulebook */
.rules-head {
  margin-top: clamp(56px, 8vw, 96px);
  margin-bottom: 34px;
  scroll-margin-top: calc(var(--header-height) + 60px);
}

.kit-head {
  scroll-margin-top: calc(var(--header-height) + 60px);
}

.notice + .rules-head {
  margin-top: 40px;
}

.rule-card h3.rule-title {
  margin-bottom: 12px;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.rules-grid + .rules-grid {
  margin-top: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat-tile {
  padding: 24px 14px;
  text-align: center;
}

.stat-tile b {
  display: block;
  font-family: "Minecraft Ten", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.stat-tile span {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-row .meta-pill {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.series-wrap {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 8px 24px;
  overflow-x: auto;
}

.series-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.series-table th,
.series-table td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.series-table th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.series-table td:first-child {
  font-weight: 700;
}

.series-table td:last-child {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.series-table tr:last-child td {
  border-bottom: 0;
}

.series-table tr.final td {
  font-weight: 800;
  background: rgba(244, 196, 48, 0.08);
}

.kit-card p {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.kit-card {
  flex-basis: 210px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kit-card p {
    font-size: 0.78rem;
  }
}
.rules-grid.single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

@media (max-width: 640px) {
  .series-wrap {
    padding: 6px 10px;
  }

  .series-table {
    font-size: 0.82rem;
  }

  .series-table th,
  .series-table td {
    padding: 10px 6px;
  }
}

/* ==========================================================================
   Achtergrond kasteelpagina's: blauwe bakstenen muur (zoals de poorten in de Showdown-transition)
   in plaats van het patroon met Minecraft-icoontjes. Alleen voor theme-castle;
   Halloween-pagina's (uitslagen/feedback) houden hun eigen patroon.
   Tegel: images/pattern-castle-bricks.svg (384x288, naadloos). Terug naar de iconen: verwijder dit blok.
   ========================================================================== */
body.showdown-theme.theme-castle::before {
  background-color: #050a22;
  background-image:
    radial-gradient(ellipse 1100px 650px at 50% 0%, rgba(52, 82, 224, 0.22), transparent 62%),
    radial-gradient(ellipse 900px 520px at 88% 8%, rgba(244, 196, 48, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(5, 10, 31, 0.15) 0%, rgba(5, 10, 31, 0.55) 100%),
    url("../images/pattern-castle-bricks.svg");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, 100% 100%, 384px 288px;
  background-position: 0 0, 0 0, 0 0, center top;
}

@media (max-width: 700px) {
  body.showdown-theme.theme-castle::before { background-size: auto, auto, 100% 100%, 288px 216px; }
}