/* =============================================
   FONTS & RESET
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

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

:root {
  /* Hintergrund */
  --bg:           #0a0e1a;
  --bg-2:         #111827;
  --bg-card:      rgba(255,255,255,0.05);
  --bg-card-h:    rgba(255,255,255,0.09);
  --bg-input:     rgba(255,255,255,0.07);
  --bg-panel:     #131927;

  /* Text */
  --text:         #e8eaf6;
  --text-dim:     rgba(232,234,246,0.55);
  --text-muted:   rgba(232,234,246,0.28);

  /* Akzente */
  --gold:      hsl(42,90%,62%);
  --gold-dim:  hsl(42,60%,40%);
  --gold-glow: hsl(42,80%,55%,0.25);
  --blue:         #4d8af0;
  --blue-glow:    rgba(77,138,240,0.3);
  --green:        #3fb950;
  --red:          #f85149;

  /* Rahmen */
  --border:       rgba(255,255,255,0.09);
  --border-h:     rgba(255,255,255,0.2);

  /* Kategorie-Farben */
  --c0: #e63946;
  --c1: #2ec4b6;
  --c2: #4895ef;
  --c3: #f9c74f;
  --c4: #9b5de5;
  --c5: #06d6a0;
  --c6: #f77f00;
  --c7: #ff85a1;

  /* Layout */
  --radius:    12px;
  --radius-lg: 20px;
  --radius-sm:  8px;
  --radius-xs:  5px;
}

html {
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  height: 100dvh;
  overflow: hidden;
  font-family: 'Outfit', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(88,40,200,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 75% 80%, rgba(40,100,200,0.08) 0%, transparent 100%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* =============================================
   SCROLLBARS
   ============================================= */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =============================================
   GLAS-KARTEN
   ============================================= */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.glass-sm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none; user-select: none;
}
.btn:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #f5c842, #e8a600);
  border-color: transparent;
  color: #0a0e1a;
  font-weight: 800;
  box-shadow: 0 0 22px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffd60a, #f5c842);
  box-shadow: 0 0 36px rgba(245,200,66,0.4);
  transform: translateY(-2px);
  color: #0a0e1a;
}

.btn-danger {
  border-color: rgba(248,81,73,0.4);
  color: var(--red);
}
.btn-danger:hover {
  background: rgba(248,81,73,0.1);
  border-color: var(--red);
}

.btn-green {
  border-color: rgba(63,185,80,0.4);
  color: var(--green);
}
.btn-green:hover {
  background: rgba(63,185,80,0.1);
  border-color: var(--green);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: var(--radius-xs); }
.btn-icon {
  padding: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
}
.btn-icon-sm {
  padding: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
}

/* Pulsierender Start-Button */
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 22px var(--gold-glow); }
  50%       { box-shadow: 0 0 44px rgba(245,200,66,0.5), 0 0 80px rgba(245,200,66,0.2); }
}
.btn-start {
  font-size: 18px;
  padding: 14px 40px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  animation: gold-pulse 2.5s ease-in-out infinite;
}

/* =============================================
   EINGABEN
   ============================================= */
input[type="text"],
input[type="number"],
input[type="url"],
select,
textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select option { background: #1a1f2e; color: var(--text); }
textarea { resize: vertical; min-height: 80px; }
input[type="color"] {
  padding: 2px;
  width: 44px; height: 36px;
  cursor: pointer;
  border-radius: var(--radius-xs);
}

/* Toggle-Schalter */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.toggle-wrap label { cursor: pointer; font-size: 14px; font-weight: 600; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.toggle input:checked + .toggle-slider {
  background: rgba(245,200,66,0.2);
  border-color: var(--gold);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* Form-Gruppen */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.form-row { display: flex; gap: 12px; align-items: flex-end; }
.form-row > * { flex: 1; }

/* =============================================
   ABSCHNITTS-TITEL
   ============================================= */
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 3px; height: 20px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* =============================================
   TABS (Config-Seite)
   ============================================= */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  flex: 1;
  min-width: max-content;
  padding: 9px 16px;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-user-select: none; user-select: none;
}
.tab.active {
  background: var(--bg-card-h);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(245,200,66,0.08);
}
.tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* =============================================
   TEAM-KARTEN
   ============================================= */
.team-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--border-h); }
.team-name-input { flex: 1; }

/* =============================================
   FRAGEN-GRID (Konfiguration)
   ============================================= */
.q-grid-wrapper { overflow-x: auto; padding-bottom: 8px; }
.q-grid {
  display: grid;
  gap: 6px;
  min-width: max-content;
}
.q-grid-cat-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  min-height: 68px;
  min-width: 130px;
  max-width: 160px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-word;
}
.q-grid-cat-header:hover { opacity: 0.85; }
.q-pts-label {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
  flex-shrink: 0;
}
.q-grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 130px;
  max-width: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  padding: 8px;
  text-align: center;
  position: relative;
}
.q-grid-cell:hover { background: var(--bg-card-h); border-color: var(--border-h); transform: scale(1.03); }
.q-grid-cell.has-content { border-color: rgba(63,185,80,0.45); }
.q-grid-cell.is-joker    { border-color: var(--gold);  box-shadow: 0 0 10px var(--gold-glow); }
.q-grid-cell.is-estimate { border-color: #4895ef;       box-shadow: 0 0 8px rgba(72,149,239,0.25); }
.q-grid-cell.is-mc       { border-color: #9b5de5;       box-shadow: 0 0 8px rgba(155,93,229,0.25); }
.q-cell-icons { position: absolute; top: 4px; right: 5px; display: flex; gap: 3px; font-size: 10px; }
.q-cell-preview { font-size: 10px; color: var(--text-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  min-width: 130px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 24px;
  transition: all 0.2s;
}
.add-cat-btn:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   DRAG & DROP ZONE
   ============================================= */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(245,200,66,0.04);
  box-shadow: 0 0 24px var(--gold-glow);
}
.drop-zone-icon { font-size: 44px; margin-bottom: 10px; }
.drop-zone-text { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.drop-zone-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: min(720px, 96vw);
  max-height: 90dvh;
  overflow-y: auto;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--gold); }
.modal-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 18px;
}
.modal-tab {
  flex: 1; padding: 7px 12px;
  border: none; border-radius: calc(var(--radius-sm) - 2px);
  background: transparent; color: var(--text-dim);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.modal-tab.active { background: var(--bg-card-h); color: var(--gold); }

/* Bilder-Upload Bereich */
.img-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-thumb {
  position: relative; width: 80px; height: 60px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb-del {
  position: absolute; top: 2px; right: 2px;
  background: rgba(248,81,73,0.85); color: white;
  border: none; border-radius: 50%;
  width: 18px; height: 18px; font-size: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.img-thumb:hover .img-thumb-del { opacity: 1; }
.img-add {
  width: 80px; height: 60px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
}
.img-add:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   HAMBURGER & SIDE PANEL
   ============================================= */
.hamburger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all 0.2s;
  -webkit-user-select: none; user-select: none;
}
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 1px; transition: all 0.3s; }
.hamburger:hover { border-color: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }

.side-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 800; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.side-overlay.active { opacity: 1; pointer-events: all; }

.side-panel {
  position: fixed; top: 0; right: -380px;
  width: 360px; max-width: 96vw; height: 100dvh;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  z-index: 810;
  padding: 24px 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
}
.side-panel.open { right: 0; box-shadow: -24px 0 60px rgba(0,0,0,0.6); }
.side-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.side-panel-title { font-size: 16px; font-weight: 700; color: var(--gold); }

/* =============================================
   SPIELFELD (game.html)
   ============================================= */
.game-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game-page,
.question-overlay,
.history-modal,
.side-panel {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.game-page input,
.game-page textarea,
.side-panel input,
.side-panel textarea {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Score-Leiste */
.score-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
  overflow-x: auto;
}
.game-title-bar {
  font-size: 16px; font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.score-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
  min-width: 90px; flex-shrink: 0;
}
.score-card:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,0.3); }
.score-team-name { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.score-value { font-size: 26px; font-weight: 900; line-height: 1.1; }

/* Spielfeld */
.board-wrap {
  flex: 1;
  padding: 12px;
  overflow: auto;
  display: flex;
  align-items: stretch;
}
.game-board {
  display: grid;
  gap: 8px;
  flex: 1;
}
.game-cat-header {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-weight: 800; text-align: center; padding: 16px 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-size: clamp(12px, 1.5vw, 18px);
  line-height: 1.2;
  border: 2px solid rgba(255,255,255,0.12);
  word-break: break-word;
}
.game-cell {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 44px);
  text-align: center; position: relative;
  border: 2px solid transparent;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  min-height: 100px;
  outline: none;
}
.game-cell::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.game-cell:hover::after { opacity: 1; }
.game-cell:hover,
.game-cell.focused {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 5;
}
.game-cell.answered { opacity: 0.18; cursor: default; pointer-events: none; }
.game-cell.is-joker { border-color: var(--gold); }
.game-cell.is-joker::before {
  content: '⭐';
  position: absolute; top: 4px; right: 6px;
  font-size: 14px; z-index: 1;
  filter: drop-shadow(0 0 4px var(--gold));
}

/* Fragen-Overlay */
.question-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #080c18;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  padding: 24px;
  text-align: center;
  overflow-y: auto;
  cursor: pointer;
}
.question-overlay.active { opacity: 1; pointer-events: all; }

.q-cat-label {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-dim); margin-bottom: 6px;
}
.q-pts-big {
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 900; color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow);
  line-height: 1; margin-bottom: 20px;
}
.q-joker-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  background: rgba(245,200,66,0.15);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
  color: var(--gold); margin-bottom: 16px;
}
.q-text {
  font-size: clamp(22px, 4vw, 56px);
  font-weight: 700; line-height: 1.3;
  max-width: 880px; margin: 0 auto 20px;
}
.q-media {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; max-width: 960px;
  margin: 0 auto 20px;
}
.q-media img {
  max-height: 280px; max-width: min(420px, 90vw);
  border-radius: var(--radius); object-fit: contain;
  border: 1px solid var(--border);
}
.q-media iframe,
.q-media video {
  width: min(640px, 90vw); height: 360px;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.q-hint {
  font-size: 14px; color: var(--text-muted);
  margin-top: 12px;
  animation: blink-hint 2s ease-in-out infinite;
}
@keyframes blink-hint {
  0%,100% { opacity: 0.4; } 50% { opacity: 0.9; }
}

/* Antwort-Bereich */
.answer-block {
  border-top: 1px solid var(--border);
  padding-top: 24px; margin-top: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%;
}
.answer-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-dim);
}
.answer-text {
  font-size: clamp(20px, 3.5vw, 44px);
  font-weight: 800; color: var(--gold);
  text-shadow: 0 0 24px var(--gold-glow);
  max-width: 880px; line-height: 1.3;
}
.spielleiter-blur { filter: blur(12px); transition: filter 0.4s; cursor: pointer; }
.spielleiter-blur.revealed { filter: none; }
.spielleiter-hint {
  font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 14px;
}

/* Punkte-Vergabe */
.award-panel {
  width: min(680px, 96vw);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: default;
  margin-top: 8px;
}
.award-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 14px; text-align: center;
}
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.award-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: transparent; font-family: 'Outfit', sans-serif; color: var(--text);
  cursor: pointer; transition: all 0.2s;
}
.award-btn:hover { background: rgba(255,255,255,0.06); }
.award-btn.selected {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 18px currentColor;
}
.award-btn .a-name { font-size: 13px; font-weight: 700; }
.award-btn .a-score { font-size: 22px; font-weight: 900; }
.award-negative { margin-bottom: 12px; }
.award-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Verlaufs-Modal */
.history-modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.history-modal.active { opacity: 1; pointer-events: all; }
.history-box {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  width: min(600px, 96vw); max-height: 80dvh;
  overflow-y: auto;
  transform: scale(0.92); transition: transform 0.3s;
}
.history-modal.active .history-box { transform: scale(1); }
.history-entry {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 8px;
}
.history-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.history-info { flex: 1; min-width: 0; }
.history-pts { font-size: 18px; font-weight: 900; flex-shrink: 0; }

/* =============================================
   ERGEBNIS-SEITE (results.html)
   ============================================= */
.results-page {
  height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
  padding: 36px 24px;
}
.winner-card {
  text-align: center; padding: 36px;
  background: linear-gradient(135deg, rgba(245,200,66,0.14), rgba(245,200,66,0.04));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  box-shadow: 0 0 44px var(--gold-glow);
}
.winner-trophy { font-size: 68px; margin-bottom: 14px; }
.winner-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); }
.winner-name { font-size: clamp(30px, 6vw, 62px); font-weight: 900; color: var(--gold); text-shadow: 0 0 30px var(--gold-glow); }
.winner-score { font-size: 26px; font-weight: 700; color: var(--text-dim); }

.podium-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; width: 100%; max-width: 800px;
}
.podium-card {
  text-align: center; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.2s;
}
.podium-rank { font-size: 28px; font-weight: 900; }
.podium-name { font-size: 15px; font-weight: 700; margin-top: 4px; }
.podium-score { font-size: 22px; font-weight: 900; color: var(--text-dim); }

.chart-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  width: 100%; max-width: 900px;
}
.chart-title { font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 16px; }

.log-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  width: 100%; max-width: 900px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-in { animation: fadeInUp 0.4s ease forwards; }

/* =============================================
   HILFSKLASSEN
   ============================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-gold   { color: var(--gold); }
.text-dim    { color: var(--text-dim); }
.text-muted  { color: var(--text-muted); }
.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.hidden { display: none !important; }
.divider {
  height: 1px; background: var(--border);
  margin: 20px 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .award-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .score-bar { gap: 7px; padding: 8px 10px; }
  .game-title-bar { font-size: 12px; }
  .board-wrap { padding: 8px; }
}

/* =============================================
   TIMER-ALARM & ANIMATIONEN (Runde 5 & 7)
   ============================================= */
@keyframes alarm-strobe {
  0% { background-color: #080c18; box-shadow: inset 0 0 50px rgba(0,0,0,0.8); }
  50% { background-color: #0b2e14; box-shadow: inset 0 0 200px rgba(46,213,115,0.75); }
  100% { background-color: #080c18; box-shadow: inset 0 0 50px rgba(0,0,0,0.8); }
}

.question-overlay.time-up {
  animation: alarm-strobe 0.5s infinite ease-in-out;
}

@keyframes timer-beat {
  0% { transform: scale(1.15) rotate(-2deg); text-shadow: 0 0 45px var(--gold-glow); }
  15% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1); }
}

.timer-active {
  animation: timer-beat 1s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes shake-and-pulse {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); color: var(--green); }
  10% { transform: scale(1.1) translate(-6px, 3px) rotate(-1.5deg); color: #2ed573; text-shadow: 0 0 60px rgba(46,213,115,1); }
  20% { transform: scale(1.1) translate(6px, -3px) rotate(1.5deg); }
  30% { transform: scale(1.1) translate(-6px, -3px) rotate(-1deg); }
  40% { transform: scale(1.1) translate(6px, 3px) rotate(1deg); }
  50% { transform: scale(1.1) translate(-3px, 3px) rotate(0deg); color: #7bed9f; }
  60% { transform: scale(1.1) translate(3px, -3px) rotate(-1.5deg); }
  70% { transform: scale(1.1) translate(-3px, -2px) rotate(1deg); }
  80% { transform: scale(1.1) translate(3px, 2px) rotate(0deg); }
  90% { transform: scale(1.1) translate(-3px, -3px) rotate(-1deg); }
  100% { transform: scale(1) translate(0, 0) rotate(0deg); color: var(--green); }
}

.timer-clock-expired {
  animation: shake-and-pulse 0.4s infinite linear;
  text-shadow: 0 0 50px rgba(46, 213, 115, 0.9) !important;
}
