/* =========================
   Fonts
   ========================= */
@import url("https://fonts.googleapis.com/css2?family=Chewy&family=Quicksand:wght@300..700&display=swap");

/* =========================
   Design Tokens
   ========================= */
:root {
  /* Colors */
  --bg: #050516;
  --bg-dark: #05030d;
  --card: #081331;
  --border: rgba(255, 255, 255, 0.12);

  --blue: #0b8cff;
  --cyan: #1be7ff;
  --pink: #ff2bc2;
  --pink-soft: #ff8ee4;
  --gold: #ff9d00;
  --yellow: #ffcf33;
  --green: #37d67a;

  --text-main: #ffffff;
  --muted: #a6a6b8;

  /* Typography */
  --font-title: "Chewy", cursive;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 16px;

  /* Layout */
  --radius: 16px;
  --space-4: 4vw;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Effects */
  --shadow-cyan:
    0 0 20px rgba(27, 231, 255, 0.85),
    inset 0 0 20px rgba(27, 231, 255, 0.12);

  --shadow-pink:
    0 0 20px rgba(255, 43, 194, 0.75),
    inset 0 0 18px rgba(255, 43, 194, 0.12);

  --text-shadow-title:
    0 3px 0 rgba(0, 0, 0, 0.28),
    0 0 12px rgba(255, 255, 255, 0.55);
}

/* =========================
   CSS Reset
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  background:
    linear-gradient(rgba(5, 3, 13, 0.878), rgba(5, 3, 13, 0.878)),
    url("/assets/images/achtergrond.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;

  overflow-x: hidden;
}

/* =========================
   Media
   ========================= */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* =========================
   Typography
   ========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--text-main);
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* =========================
   Forms / Buttons / Links
   ========================= */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* =========================
   App Layout
   ========================= */
.app {
  width: 100vw;
  min-height: 100dvh;
  padding: 4vw;
  box-sizing: border-box;
  position: relative;
}

.container {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

/* =========================
   General Card
   ========================= */
.card {
  background-color: var(--bg-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* =========================
   Shared Title Pill
   Gebruik:
   .title-pill
   .imposter-game-title-pill
   ========================= */
.title-pill,
.imposter-game-title-pill {
  height: 70px;
  border: 2px solid rgba(27, 231, 255, 0.95);
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(180deg, rgba(13, 85, 173, 0.86), rgba(7, 45, 103, 0.92));

  box-shadow: var(--shadow-cyan);
}

.title-pill h1,
.imposter-game-title-pill h1 {
  margin: 0;
  font-family: var(--font-title);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-shadow: var(--text-shadow-title);
}

/* Alleen voor Imposter topbar */
.imposter-game-title-pill {
  justify-self: center;
  min-width: min(270px, 100%);
  padding: 0 24px;
}


/* =========================
   Small Screens
   ========================= */
@media (max-width: 380px) {
  .title-pill,
  .imposter-game-title-pill {
    height: 58px;
    border-radius: 21px;
  }

  .title-pill h1,
  .imposter-game-title-pill h1 {
    font-size: 30px;
  }
}

/* =========================
   Accessibility
   ========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}.challenges-icon-btn {
  width: clamp(52px, 14vw, 64px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 44, 175, 0.9);
  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 44, 175, 0.07);
  color: white;
  font-size: 42px;
  line-height: 1;
  text-decoration: none;

  box-shadow:
    0 0 18px rgba(255, 44, 175, 0.75),
    inset 0 0 18px rgba(255, 44, 175, 0.13);
}

.challenges-icon-btn {
  transform: translateY(-1px);
}.challenges-icon-btn span {
  display: block;
  transform: translateY(-2px);
}.challenges-topbar {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 14px;
}

.challenges-topbar,
.challenges-section-title {
  flex-shrink: 0;
}
@media (max-width: 380px) {

  .challenges-topbar {
    grid-template-columns: 54px 1fr 54px;
    gap: 10px;
  }

}/* Header */
.challenges-header {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

/* Info knop */
.bussen-info-button {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  justify-self: center;

  border: 2px solid rgba(0, 238, 255, 0.85);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(12, 37, 85, 0.9),
      rgba(6, 20, 52, 0.92)
    );

  color: white;
  text-decoration: none;

  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;

  box-shadow:
    0 0 8px rgba(0, 238, 255, 0.45),
    inset 0 0 10px rgba(0, 238, 255, 0.08);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.bussen-info-button:hover {
  transform: scale(1.06);

  box-shadow:
    0 0 13px rgba(0, 238, 255, 0.7),
    inset 0 0 12px rgba(0, 238, 255, 0.12);
}

.bussen-info-button:active {
  transform: scale(0.94);
}