:root {
  /* Outdoor Tactical Theme — Day */
  --forest: #3d5a1e;
  --forest-light: #5a7d2e;
  --forest-dark: #1c2e0a;
  --bark: #5c4a3a;
  --bark-light: #8b7355;
  --cream: #e8e0d0;
  --cream-dark: #d4cabA;
  --fire: #d4622a;
  --fire-glow: #e89040;
  --ember: #b83220;
  --sky: #87ceeb;
  --night: #0d0d0d;
  --text: #1a1a1a;
  --text-light: #5a5a52;
  --shadow: rgba(0,0,0,0.2);
  --radius: 8px;
  --card-bg: #f2ece2;
  --card-border: #c4b89a;
  --accent: #d4622a;
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  overscroll-behavior: none;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  background: var(--cream);
  color: var(--text);
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* Subtle topographic map pattern */
  background-image:
    radial-gradient(ellipse at 30% 70%, rgba(61,90,30,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(212,98,42,0.03) 0%, transparent 60%);
}

/* Einheitliche Schrift überall — erzwingen für alle Elemente */
button, input, select, textarea, .btn-add, .game-next-btn, .challenge-draw-btn,
.lf-next-btn, .nav-btn, .nav-toggle, .spiele-btn, .night-game-btn, .lf-cat-btn {
  font-family: inherit;
}
#app { overflow-x: hidden; }

/* iOS Safe Area */
header { padding-top: env(safe-area-inset-top, 0px); }
.nav-grid { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.chat-input, .alarm-create, .inline-add { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* iOS Auto-Zoom Prevention */
input, select, textarea { font-size: 16px !important; }

/* Touch UX */
button, .nav-btn, .nav-toggle, .badge, .bingo-cell, .lf-cat-btn, .spiele-btn, .night-game-btn {
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}

/* Minimum tap targets */
button { min-height: 38px; }
.item-delete, .sched-delete { min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; }

/* --- Login --- */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f08;
  overflow: hidden;
  z-index: 99999;
}
.login-screen[hidden] { display: none; }

.login-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(61,90,30,0.15) 0%, transparent 70%);
}

.login-card {
  background: #1a1e14;
  border: 2px solid #3d5a1e;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(61,90,30,0.15);
  position: relative;
  width: min(380px, 90vw);
}

.login-logo-img { width: 140px; height: 140px; border-radius: var(--radius); margin-bottom: 0.75rem; box-shadow: 0 4px 20px rgba(0,0,0,0.4); border: 2px solid #3d5a1e; }
.login-card h1 { font-size: 1.5rem; color: #c4c4a0; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 2px; }
.login-subtitle { color: #7a7a60; margin-bottom: 2rem; font-size: 0.9rem; letter-spacing: 1px; }

.login-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #3d5a1e;
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
  background: #0d0f08;
  color: #c4c4a0;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card input::placeholder { color: #5a5a42; }

.login-card button {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: white;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.15s;
}
.login-card button:hover { background: var(--fire-glow); }

.error { color: var(--ember); margin-top: 0.5rem; font-size: 0.9rem; }

/* --- Header — Tactical Device Top Bar --- */
header {
  background: var(--forest-dark);
  border-bottom: 3px solid var(--accent);
  color: #c4c4a0;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 0.5rem; }
.header-logo { width: 36px; height: 36px; border-radius: 8px; }
.header-left h1 { font-size: 1.3rem; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.countdown { font-size: 0.9rem; opacity: 0.9; background: rgba(255,255,255,0.15); padding: 0.3rem 0.7rem; border-radius: 20px; }
.user-badge { font-size: 0.95rem; font-weight: 500; }
.btn-icon { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; opacity: 0.8; transition: opacity 0.2s; }
.btn-icon:hover { opacity: 1; }
.hymne-player { background: linear-gradient(135deg, #1c2e0a, #2a4a10); border-radius: 12px; padding: 20px; margin-bottom: 16px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.hymne-header { font-size: 1.2rem; font-weight: bold; color: #e8d5a3; margin-bottom: 4px; }
.hymne-subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-style: italic; }
.hymne-player audio { width: 100%; max-width: 400px; border-radius: 8px; }
.soundboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 4px; }
.soundboard-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: linear-gradient(135deg, #2a3a1a, #1c2e0a); color: #e8d5a3; font-size: 2rem; cursor: pointer; transition: transform 0.1s, background 0.2s; -webkit-tap-highlight-color: transparent; }
.soundboard-btn span { font-size: 0.65rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.soundboard-btn:active { transform: scale(0.92); background: linear-gradient(135deg, #3a4a2a, #2c3e1a); }
.compliment-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(30,50,15,0.6); border-top: 1px solid rgba(232,213,163,0.15); flex-wrap: wrap; }
.compliment-bar button { padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(232,213,163,0.3); background: rgba(232,213,163,0.1); color: #e8d5a3; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; }
.compliment-bar button:active { background: rgba(230,180,80,0.25); transform: scale(0.95); }
.compliment-bar button.sent { background: rgba(46,160,67,0.15); border-color: rgba(46,160,67,0.3); color: #2ea043; }

/* --- Nav (Grid) --- */
.nav-grid {
  background: var(--forest-dark);
  border-bottom: none;
  border-top: 2px solid var(--accent);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* Content braucht unten Platz für die fixed Nav */
.tab-content { padding-bottom: 120px !important; }

.nav-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.nav-row-more {
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #2a2a20;
  background: #1a1e10;
}
/* Mehr-Reihe umkehren: erst Mehr-Row, dann Haupt-Row (CSS order) */
.nav-row-main { order: 2; }
.nav-row-more { order: 1; }
.nav-row-more[hidden] { display: none; }

.nav-btn, .nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.7rem 0.3rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  color: #7a7a60;
  border-top: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  min-height: 52px;
}
.nav-btn span, .nav-toggle span {
  font-size: 0.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-btn.active { color: var(--accent); border-top-color: var(--accent); background: rgba(212,98,42,0.1); }
.nav-btn:hover { color: #c4c4a0; }
.nav-toggle { color: #7a7a60; font-size: 1.2rem; letter-spacing: 2px; }
.nav-toggle.open { color: var(--accent); background: rgba(212,98,42,0.1); }

@media (max-width: 420px) {
  .nav-row { grid-template-columns: repeat(5, 1fr); }
  .nav-row-more { grid-template-columns: repeat(4, 1fr); }
  .nav-btn span, .nav-toggle span { font-size: 0.6rem; }
  .nav-btn, .nav-toggle { padding: 0.5rem 0.2rem; font-size: 1.15rem; }
}

/* --- Tabs --- */
.tab-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 50px);
  overflow-x: hidden;
  width: 100%;
}
.tab-content[hidden] { display: none !important; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: 1.25rem; color: var(--forest-dark);
  text-transform: uppercase; letter-spacing: 1px;
}

.btn-add {
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: white;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s;
}
.btn-add:hover { background: var(--fire-glow); }

/* --- Chat --- */
#tab-chat {
  padding: 0 0.5rem !important; padding-bottom: 0 !important;
  display: flex !important; flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#tab-chat[hidden] { display: none !important; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.chat-msg {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}
.chat-msg.own {
  align-self: flex-end;
  background: var(--forest);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg.other {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--cream-dark);
  border-bottom-left-radius: 4px;
}

.chat-msg .msg-author {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  opacity: 0.8;
}
.chat-msg.own .msg-author { color: rgba(255,255,255,0.8); }
.chat-msg.other .msg-author { color: var(--forest); }

/* Spielleitung-Nachrichten */
.chat-msg.system-msg {
  align-self: center;
  background: linear-gradient(135deg, #2a1a08, #1a1208);
  border: 1px solid var(--accent);
  color: #c4b060;
  border-radius: var(--radius);
  max-width: 95%;
  text-align: center;
}
.chat-msg.system-msg .msg-author {
  color: var(--accent); font-weight: 800; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.chat-msg.system-msg .msg-text { color: #c4c4a0; font-size: 0.95rem; }
.chat-msg.system-msg .msg-time { color: #7a7a60; }
.chat-msg .msg-time {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 0.2rem;
  text-align: right;
}

.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
  flex-shrink: 0;
}
.chat-input input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: 24px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s;
}
.chat-input input:focus { outline: none; border-color: var(--forest); }
.chat-input button {
  padding: 0.7rem 1.2rem;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.chat-input button:hover { background: var(--forest-light); }

/* --- Schedule --- */
.schedule-day {
  margin-bottom: 1.5rem;
}
.schedule-day h3 {
  color: var(--forest);
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--forest-light);
  margin-bottom: 0.75rem;
}
.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px var(--shadow);
  transition: transform 0.15s;
}
.schedule-item:hover { transform: translateX(4px); }
.sched-time {
  font-weight: 700;
  color: var(--fire);
  min-width: 50px;
  font-size: 0.95rem;
  cursor: pointer;
}
.sched-time:hover { text-decoration: underline dotted; }
.sched-info { flex: 1; }
.sched-title { font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.sched-title:hover { text-decoration: underline dotted; }
.sched-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 0.15rem; cursor: pointer; }
.sched-desc:hover { text-decoration: underline dotted; }
.sched-delete {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; opacity: 0.4; transition: opacity 0.2s;
}
.sched-delete:hover { opacity: 1; }

/* --- Packing & Shopping Lists --- */
.packing-category {
  margin-bottom: 1.5rem;
}
.packing-category h3 {
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 3px var(--shadow);
  transition: opacity 0.2s;
}
.list-item.checked { opacity: 0.5; }
.list-item.checked .item-name { text-decoration: line-through; }

.list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--forest);
  cursor: pointer;
  flex-shrink: 0;
}

.item-name { flex: 1; font-size: 0.95rem; }
.item-assigned {
  font-size: 0.8rem;
  color: white;
  background: var(--forest-light);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  white-space: nowrap;
}
.item-qty {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}
.item-added-by {
  font-size: 0.75rem;
  color: var(--text-light);
}
.item-edit {
  background: none; border: none; cursor: pointer;
  font-size: 0.8rem; opacity: 0.3; transition: opacity 0.2s; flex-shrink: 0;
}
.item-edit:hover { opacity: 1; }
.item-delete {
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; opacity: 0.3; transition: opacity 0.2s; flex-shrink: 0;
}
.item-delete:hover { opacity: 1; }

.item-unassigned {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--cream-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px dashed var(--text-light);
}
.pack-assign-select {
  padding: 0.2rem 0.3rem;
  border: 2px solid var(--forest);
  border-radius: 6px;
  font-size: 0.82rem;
  background: white;
  color: var(--forest);
  flex-shrink: 0;
}

.inline-edit-input {
  flex: 1;
  padding: 0.2rem 0.4rem;
  border: 2px solid var(--forest);
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.item-name, .item-qty { cursor: pointer; }
.item-name:hover, .item-qty:hover { text-decoration: underline dotted; }

.inline-add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.inline-add input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: white;
}
.inline-add input:focus { outline: none; border-color: var(--forest); }
.inline-add .small-input { flex: 0 0 80px; }
.inline-add button {
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- Music --- */
.music-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px var(--shadow);
}

.music-info { flex: 1; }
.music-title { font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.music-title:hover { text-decoration: underline dotted; }
.music-artist { font-size: 0.85rem; color: var(--text-light); cursor: pointer; }
.music-artist:hover { text-decoration: underline dotted; }
.music-by { font-size: 0.75rem; color: var(--text-light); margin-top: 0.15rem; }
.music-links { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.music-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fire);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--fire);
  border-radius: 6px;
}
.music-link:hover { text-decoration: underline; }

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
}
.vote-btn.voted { border-color: var(--fire); background: rgba(232,114,28,0.08); }
.vote-btn .vote-icon { font-size: 1.2rem; }
.vote-btn .vote-count { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* --- Polls --- */
.poll-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.poll-question {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--forest-dark);
}
.poll-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.poll-option:hover { border-color: var(--forest-light); }
.poll-option.selected { border-color: var(--forest); background: rgba(45,80,22,0.05); }

.poll-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(45,80,22,0.1);
  transition: width 0.4s ease;
  border-radius: var(--radius);
}
.poll-option-text { flex: 1; font-size: 0.95rem; position: relative; z-index: 1; }
.poll-option-count { font-size: 0.85rem; font-weight: 600; color: var(--forest); position: relative; z-index: 1; }

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal[hidden] { display: none; }

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  width: min(450px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content h3 { color: var(--forest); margin-bottom: 1rem; }
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  background: var(--cream);
}
.modal-content input:focus,
.modal-content select:focus { outline: none; border-color: var(--forest); }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.modal-actions button {
  flex: 1;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.modal-actions button[type="submit"] { background: var(--forest); color: white; }
.modal-actions button[type="submit"]:hover { background: var(--forest-light); }
.btn-cancel { background: var(--cream-dark) !important; color: var(--text) !important; }
.btn-secondary {
  padding: 0.5rem 1rem;
  background: var(--cream-dark);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  header { padding: 0.5rem 0.75rem; }
  .header-left h1 { font-size: 1.1rem; }
  .countdown { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
  .user-badge { font-size: 0.8rem; }
  .tab-content { padding: 0.6rem; padding-bottom: 120px !important; }
  .chat-msg { max-width: 90%; }
  .section-header { flex-wrap: wrap; gap: 0.5rem; }
  .section-header h2 { font-size: 1.1rem; }
  .challenge-draw-btn { padding: 0.8rem 1.5rem; font-size: 1rem; }
  .tz-shop-icon { font-size: 1.2rem; }
  .trip-details { gap: 0.3rem; font-size: 0.7rem; }
  .expense-paid { display: none; }
  .poll-card { padding: 1rem; }
  .alarm-popup { padding: 2rem 1.5rem; }
  .alarm-popup-icon { font-size: 3rem; }
  .wl-ruf-card { padding: 2rem 1.5rem; }
  .wl-ruf-text { font-size: 1rem; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* --- Location Banner --- */
.location-banner {
  background: white;
  border-bottom: 1px solid var(--cream-dark);
  cursor: pointer;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.loc-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.loc-icon { font-size: 1rem; }
.loc-name { flex: 1; font-weight: 500; }
.loc-arrow { transition: transform 0.3s; font-size: 0.7rem; }
.location-banner.expanded .loc-arrow { transform: rotate(180deg); }
.loc-details {
  display: none;
  padding: 0 1rem 0.75rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
.loc-details p { margin-bottom: 0.4rem; }
.location-banner.expanded .loc-details { display: block; }
.weather-widget { margin-top: 0.4rem; }
.weather-days {
  display: flex;
  gap: 0.5rem;
}
.weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background: var(--cream);
  border-radius: 8px;
  font-size: 0.75rem;
  min-width: 55px;
}
.wd-name { font-weight: 600; font-size: 0.7rem; color: var(--text-light); }
.wd-icon { font-size: 1.2rem; margin: 0.1rem 0; }
.wd-temp { font-weight: 500; white-space: nowrap; }
.wd-rain { font-size: 0.65rem; color: var(--sky); }

/* Regenwarnung */
.weather-rain-warn {
  background: rgba(192, 57, 43, 0.15); border: 1px solid var(--ember);
  border-radius: var(--radius); padding: 0.4rem 0.6rem;
  font-size: 0.8rem; font-weight: 700; color: var(--ember);
  margin-bottom: 0.4rem; text-align: center;
}
/* Stündliche Vorhersage */
.weather-hourly {
  display: flex; gap: 0.3rem; overflow-x: auto; margin-top: 0.4rem;
  padding-bottom: 0.3rem; -webkit-overflow-scrolling: touch;
}
.wh-item {
  display: flex; flex-direction: column; align-items: center;
  min-width: 40px; font-size: 0.7rem; gap: 0.1rem;
}
.wh-time { font-weight: 600; color: var(--text-light); }
.wh-icon { font-size: 0.9rem; }
.wh-temp { font-weight: 600; }
.wh-rain { font-size: 0.6rem; color: var(--sky); }

.loc-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
}
.loc-link:hover { text-decoration: underline; }

/* --- Bring Banner --- */
.bring-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid var(--forest-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.bring-banner:hover { border-color: var(--forest); background: rgba(45,80,22,0.03); }
.bring-icon { font-size: 1.5rem; }
.bring-text { flex: 1; font-size: 0.9rem; line-height: 1.3; }
.bring-arrow { color: var(--forest); font-weight: 700; font-size: 1.2rem; }

/* --- Challenges --- */
.challenge-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px var(--shadow);
}
.lb-entry {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: var(--cream);
  font-size: 0.85rem;
}
.lb-leader { background: rgba(45, 80, 22, 0.12); font-weight: 700; }
.lb-medal { font-size: 1rem; }
.lb-name { flex: 1; font-weight: 500; }
.lb-score { font-weight: 700; color: var(--forest); white-space: nowrap; }

.challenge-draw-area {
  text-align: center;
  padding: 1.25rem 0;
  margin-bottom: 1rem;
}

.challenge-draw-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(45, 80, 22, 0.35);
  transition: all 0.3s;
}
.challenge-draw-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(45, 80, 22, 0.45);
  background: linear-gradient(135deg, var(--forest-light), var(--forest));
}
.challenge-draw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.challenge-target {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.challenge-target select {
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  background: white;
  font-size: 0.9rem;
}

.challenge-slot {
  background: var(--forest-dark);
  color: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.challenge-slot.spinning {
  animation: slotGlow 0.3s ease-in-out infinite alternate;
}
.challenge-slot.revealed {
  animation: slotReveal 0.5s ease;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
}

.challenge-slot-text {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  max-width: 100%;
}

.slot-result { animation: fadeIn 0.5s ease; }
.slot-victim {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--fire-glow);
}
.slot-challenge {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.slot-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
  flex-wrap: wrap;
}

@keyframes slotGlow {
  from { box-shadow: 0 0 20px rgba(45, 80, 22, 0.3); }
  to { box-shadow: 0 0 40px rgba(45, 80, 22, 0.6); }
}
@keyframes slotReveal {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.challenge-section { margin-bottom: 1.5rem; }
.challenge-section h3 {
  font-size: 1rem;
  color: var(--forest-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--forest-light);
}

.challenge-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 6px var(--shadow);
  animation: fadeIn 0.3s ease;
}
.active-challenge {
  background: white;
  border-left: 4px solid var(--forest);
}
.active-challenge.cat-peinlich { border-left-color: #e056a0; }
.active-challenge.cat-ekel { border-left-color: #8e7cc3; }
.active-challenge.cat-sportlich { border-left-color: var(--forest); }
.active-challenge.cat-kreativ { border-left-color: var(--bark-light); }
.active-challenge.cat-ausdauer { border-left-color: var(--forest-light); }
.active-challenge.cat-regel { border-left-color: var(--forest-dark); }

.completed-challenge, .expired-challenge {
  background: var(--cream);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  box-shadow: none;
  border: 1px solid var(--cream-dark);
}
.expired-challenge { opacity: 0.5; }
.challenge-result-icon { margin-right: 0.25rem; }
.challenge-victim-sm { font-weight: 600; font-size: 0.85rem; color: var(--forest); margin-right: 0.35rem; }
.challenge-text-sm { font-size: 0.83rem; color: var(--text-light); flex: 1; }
.challenge-pts-sm { font-weight: 700; font-size: 0.8rem; color: var(--forest); white-space: nowrap; margin-left: 0.5rem; }
.challenge-pts-sm.fail { color: var(--ember); }

.challenge-cat {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.challenge-body { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.challenge-victim {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
  margin-bottom: 0.2rem;
}
.challenge-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.challenge-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
  flex-wrap: wrap;
  overflow: hidden;
}
.challenge-diff {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.diff-leicht { background: rgba(45,80,22,0.1); color: var(--forest-light); }
.diff-mittel { background: rgba(232,114,28,0.1); color: var(--fire); }
.diff-hart { background: rgba(192,57,43,0.1); color: var(--ember); }
.diff-wahnsinn { background: rgba(192,57,43,0.2); color: var(--ember); font-weight: 800; }

.slot-diff {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
}
.slot-diff.diff-leicht { background: rgba(255,255,255,0.15); }
.slot-diff.diff-mittel { background: rgba(255,180,71,0.25); color: var(--fire-glow); }
.slot-diff.diff-hart { background: rgba(192,57,43,0.3); color: #ff6b6b; }
.slot-diff.diff-wahnsinn { background: rgba(192,57,43,0.4); color: #ff4757; animation: pulse 0.5s ease infinite alternate; }
@keyframes pulse { from { opacity: 0.8; } to { opacity: 1; } }

.challenge-pts {
  color: var(--forest);
  font-weight: 700;
  background: rgba(45, 80, 22, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

.challenge-timer {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  background: rgba(45, 80, 22, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}
.challenge-timer.timer-low { color: var(--ember); background: rgba(192, 57, 43, 0.08); }
.challenge-timer.timer-expired { color: var(--text-light); }

.challenge-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.done-btn-sm, .fail-btn, .catch-btn {
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.done-btn-sm {
  background: rgba(45, 80, 22, 0.12);
  color: var(--forest);
}
.done-btn-sm:hover { background: rgba(45, 80, 22, 0.25); }
.fail-btn {
  background: rgba(192, 57, 43, 0.08);
  color: var(--ember);
}
.fail-btn:hover { background: rgba(192, 57, 43, 0.18); }
.catch-btn {
  background: var(--fire);
  color: white;
}

/* Bonus Section */
.challenge-bonus {
  margin-top: 0.5rem;
  padding: 0.6rem;
  background: linear-gradient(135deg, rgba(232, 114, 28, 0.08), rgba(255, 179, 71, 0.08));
  border: 2px dashed var(--fire);
  border-radius: var(--radius);
}
.challenge-bonus.done {
  border-style: solid;
  background: rgba(45, 80, 22, 0.1);
  border-color: var(--forest-light);
  color: var(--forest);
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
}
.bonus-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fire);
  margin-bottom: 0.25rem;
}
.bonus-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.bonus-btn {
  padding: 0.35rem 0.8rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fire), var(--fire-glow));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.bonus-btn:hover { transform: scale(1.02); filter: brightness(1.1); }

/* Nightmode bonus */
body.nightmode .challenge-bonus { background: rgba(232, 114, 28, 0.1); border-color: #e8721c; }
body.nightmode .challenge-bonus.done { background: rgba(139, 126, 200, 0.15); border-color: #a09030; color: #c4b060; }
body.nightmode .bonus-text { color: #ccc; }
.catch-btn:hover { background: var(--ember); }
.catch-select {
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-size: 0.8rem;
  background: white;
}

.catch-log {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.3rem;
}
.catch-entry {
  font-size: 0.75rem;
  color: var(--ember);
  font-weight: 500;
}

.points-pop {
  animation: pointsPop 0.6s ease;
}
.history-completed { background: var(--cream); border: 1px solid var(--cream-dark); }
.history-expired, .history-failed { background: var(--cream); border: 1px solid var(--cream-dark); opacity: 0.6; }

.challenge-reset {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.reset-btn {
  padding: 0.5rem 1.2rem;
  background: none;
  border: 1px solid var(--ember);
  color: var(--ember);
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.reset-btn:hover { background: rgba(192,57,43,0.08); }
@keyframes pointsPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.challenge-empty {
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
}

/* --- Install Banner --- */
.install-banner {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: white;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.install-banner-action {
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  min-height: 30px;
}
.install-banner-action[hidden] { display: none; }
.install-banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
}
.install-banner-close:hover { opacity: 1; }

/* --- Drinks Ticker --- */
.drinks-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.drink-user-card {
  background: white;
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: 0 1px 4px var(--shadow);
}
.drink-leader { border: 2px solid var(--forest-light); }
.drink-user-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.drink-medal { font-size: 1.1rem; }
.drink-user-name { flex: 1; font-weight: 600; font-size: 1rem; }
.drink-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--forest);
}
.drink-counts {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.drink-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.drink-buttons button {
  flex: 1;
  padding: 0.5rem;
  font-size: 1.3rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.15s;
}
.drink-buttons button:active {
  transform: scale(0.92);
  background: var(--forest-light);
  border-color: var(--forest);
}
.drink-undo {
  flex: 0 0 auto !important;
  font-size: 0.9rem !important;
  color: var(--text-light);
  max-width: 40px;
}

/* --- Quotes Wall --- */
.quote-add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.quote-add input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: white;
}
.quote-add input:focus { outline: none; border-color: var(--forest); }
.quote-add button {
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
}

.quote-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 4px var(--shadow);
  position: relative;
  border-left: 4px solid var(--bark-light);
}
.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.3rem;
  cursor: pointer;
}
.quote-text:hover { text-decoration: underline dotted; }
.quote-author {
  font-size: 0.85rem;
  color: var(--forest);
  font-weight: 600;
  cursor: pointer;
}
.quote-author:hover { text-decoration: underline dotted; }
.quote-card .item-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* --- Trink-Bingo --- */
.bingo-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  max-width: 500px;
  margin: 0 auto;
}
.bingo-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem;
  font-size: 0.6rem;
  line-height: 1.2;
  background: white;
  border: 2px solid var(--cream-dark);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  word-break: break-word;
  overflow: hidden;
}
.bingo-cell:hover { border-color: var(--forest-light); }
.bingo-cell.marked {
  background: var(--forest);
  color: white;
  border-color: var(--forest-dark);
  font-weight: 600;
}
.bingo-cell.free {
  background: var(--forest-light);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: default;
}

/* --- Expenses Splitter --- */
.expense-total-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest);
}
.expense-balances {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.expense-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px var(--shadow);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.expense-name { flex: 1; font-weight: 600; }
.expense-paid { color: var(--text-light); font-size: 0.82rem; }
.expense-diff { font-weight: 700; min-width: 70px; text-align: right; }
.expense-balance.positive .expense-diff { color: var(--forest); }
.expense-balance.negative .expense-diff { color: var(--ember); }

.expense-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 3px var(--shadow);
}
.expense-info { flex: 1; }
.expense-desc { font-size: 0.9rem; font-weight: 500; display: block; cursor: pointer; }
.expense-desc:hover { text-decoration: underline dotted; }
.expense-by { font-size: 0.78rem; color: var(--text-light); }
.expense-amount { font-weight: 700; color: var(--forest); font-size: 0.95rem; white-space: nowrap; cursor: pointer; }
.expense-amount:hover { text-decoration: underline dotted; }

/* --- Game Cards (NHIE, WYR, Hot Seat) --- */
.game-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  text-align: center;
}
.game-title {
  font-size: 1.3rem;
  color: var(--forest-dark);
  margin-bottom: 1rem;
}
.game-statement {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 1.5rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-waiting { color: var(--text-light); font-style: italic; font-size: 0.9rem; }
.game-responses { margin-bottom: 1rem; }
.game-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.game-btn-yes, .game-btn-no {
  flex: 1;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.game-btn-yes { background: var(--fire); color: white; }
.game-btn-yes:hover:not(:disabled) { background: var(--ember); }
.game-btn-no { background: var(--forest); color: white; }
.game-btn-no:hover:not(:disabled) { background: var(--forest-light); }
.game-btn-yes:disabled, .game-btn-no:disabled { opacity: 0.5; cursor: default; }
.game-next-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.game-next-btn:hover { background: var(--fire-glow); }

/* NHIE Responses */
.nhie-resp {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.2rem;
}
.nhie-resp.did-it { background: rgba(232,114,28,0.15); color: var(--fire); }
.nhie-resp.safe { background: rgba(45,80,22,0.1); color: var(--forest); }

/* WYR */
.wyr-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.wyr-btn {
  width: 100%;
  padding: 1rem;
  background: var(--cream);
  border: 3px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wyr-btn:hover:not(:disabled) { border-color: var(--forest); }
.wyr-btn.selected { border-color: var(--forest); background: rgba(45,80,22,0.08); }
.wyr-btn:disabled { cursor: default; }
.wyr-label {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--forest);
  min-width: 24px;
}
.wyr-text { flex: 1; word-break: break-word; }
.wyr-count { font-size: 0.85rem; color: var(--forest); font-weight: 700; }
.wyr-or {
  font-weight: 800;
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.2rem 0;
}
.wyr-result {
  padding: 0.75rem;
  background: rgba(232,114,28,0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Hot Seat */
.hotseat-victim {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.hotseat-name {
  font-weight: 800;
  color: var(--fire);
  font-size: 1.3rem;
}
.hotseat-ratings { margin-bottom: 1rem; }
.hotseat-info { color: var(--text-light); font-style: italic; margin-bottom: 0.5rem; }
.hotseat-avg { font-size: 1.1rem; font-weight: 700; margin: 0.5rem 0; }
.hotseat-stars { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.star-btn {
  padding: 0.5rem 1rem;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  width: 100%;
  max-width: 250px;
}
.star-btn:hover { border-color: var(--fire); background: rgba(232,114,28,0.05); }
.hotseat-rate-entry {
  display: inline-block;
  font-size: 0.82rem;
  margin: 0.2rem 0.3rem;
  color: var(--text-light);
}

/* --- Profile / Achievements --- */
.profile-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 6px var(--shadow);
}
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--forest-light);
}
.profile-name { font-weight: 700; font-size: 1.1rem; color: var(--forest-dark); }
.profile-count { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.3rem;
  border-radius: 8px;
  text-align: center;
}
.badge.unlocked { background: rgba(45,80,22,0.08); }
.badge.locked { opacity: 0.35; }
.badge-icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.badge-name { font-size: 0.7rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.badge-desc {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.3;
  margin-top: 0.15rem;
}

/* --- Gianluca Popup --- */
.gianluca-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 1rem;
}
.gianluca-popup[hidden] { display: none; }
.gianluca-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 340px;
  width: 100%;
  position: relative;
  animation: fadeIn 0.4s ease;
}
.gianluca-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
}
.gianluca-img {
  width: 100%;
  display: block;
}
.gianluca-text {
  padding: 1.25rem;
  text-align: center;
}
.gianluca-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
}
.gianluca-countdown {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest);
}

/* --- Sunset Widget --- */
.sunset-widget { margin: 0.4rem 0; }
.sun-times {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.sun-item {
  font-size: 0.82rem;
  color: var(--text);
  background: var(--cream);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* --- Happy Hour Banner --- */
.happy-hour-banner {
  background: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b35);
  background-size: 200% auto;
  animation: happyHourGlow 3s ease infinite;
  color: white;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
}
.happy-hour-banner[hidden] { display: none; }
.hh-icon { font-size: 1.2rem; }
@keyframes happyHourGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Tannenzapfen --- */
.tz-balance-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bark);
  background: rgba(139, 105, 20, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.tz-info {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.tz-section-title {
  font-size: 1rem;
  color: var(--forest-dark);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--forest-light);
}
.tz-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.tz-lb-entry {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 3px var(--shadow);
  font-size: 0.85rem;
}
.tz-leader { background: rgba(139, 105, 20, 0.1); font-weight: 700; }
.tz-lb-score { font-weight: 700; color: var(--bark); white-space: nowrap; }

.tz-shop {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tz-shop-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px var(--shadow);
  transition: opacity 0.2s;
  flex-wrap: wrap;
}
.tz-shop-item.too-expensive { opacity: 0.5; }
.tz-fernleiter-banner {
  background: linear-gradient(135deg, #1b3a4b, #2c5a72);
  color: #e8f4ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  border: 1px solid #3d6e8a;
}
.tz-shop-item.tz-fernleiter { border: 1px solid #3d6e8a; background: rgba(44, 90, 114, 0.08); }
.tz-shop-item.tz-fernleiter .tz-buy-btn { background: #2c5a72; color: #e8f4ff; }
.tz-shop-item.tz-fernleiter .tz-buy-btn:hover:not(:disabled) { background: #3d6e8a; }
.tz-shop-icon { font-size: 1.5rem; flex-shrink: 0; }
.tz-shop-info { flex: 1; min-width: 0; }
.tz-shop-name { font-weight: 600; font-size: 0.9rem; }
.tz-shop-desc { font-size: 0.78rem; color: var(--text-light); word-break: break-word; }
.tz-shop-action { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.tz-shop-action .catch-select { max-width: 100px; font-size: 0.75rem; }
.tz-buy-btn {
  padding: 0.4rem 0.8rem;
  background: var(--bark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tz-buy-btn:hover:not(:disabled) { background: var(--bark-light); }
.tz-buy-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.tz-log {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tz-log-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.tz-plus { background: rgba(45, 80, 22, 0.06); }
.tz-minus { background: rgba(192, 57, 43, 0.06); }
.tz-log-amount { font-weight: 700; min-width: 55px; }
.tz-plus .tz-log-amount { color: var(--forest); }
.tz-minus .tz-log-amount { color: var(--ember); }
.tz-log-reason { flex: 1; color: var(--text); }
.tz-log-time { color: var(--text-light); font-size: 0.75rem; }

/* --- Gruppen-Alarm --- */
.alarm-info {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.alarm-create {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.alarm-create .btn-add { width: 100%; }
.alarm-input {
  width: 80px;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: white;
}
.alarm-input:focus { outline: none; border-color: var(--forest); }
.alarm-msg-input {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: white;
}
.alarm-msg-input:focus { outline: none; border-color: var(--forest); }

.alarm-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px var(--shadow);
  border-left: 4px solid var(--fire);
}
.alarm-icon { font-size: 1.5rem; }
.alarm-body { flex: 1; }
.alarm-msg { font-weight: 600; font-size: 0.95rem; }
.alarm-meta { font-size: 0.78rem; color: var(--text-light); }

.alarm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9600;
  animation: fadeIn 0.3s ease;
}
.alarm-popup {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 320px;
  width: 90%;
  animation: alarmPulse 0.5s ease infinite alternate;
}
.alarm-popup-icon { font-size: 4rem; margin-bottom: 1rem; }
.alarm-popup-msg { font-size: 1.3rem; font-weight: 700; color: var(--forest-dark); margin-bottom: 0.5rem; }
.alarm-popup-by { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.5rem; }
@keyframes alarmPulse {
  from { transform: scale(1); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
  to { transform: scale(1.02); box-shadow: 0 20px 80px rgba(232,114,28,0.4); }
}

.alarm-notify-prompt {
  text-align: center;
  padding: 1rem;
  margin-top: 0.5rem;
}
.alarm-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; }

/* --- Trip Scores --- */
.profile-section-title {
  font-size: 1rem;
  color: var(--forest-dark);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--forest-light);
}
.trip-scores {
  margin-bottom: 1rem;
}
.trip-header {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.trip-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 3px var(--shadow);
  flex-wrap: wrap;
}
.trip-leader { border: 2px solid var(--forest-light); }
.trip-medal { font-size: 1.1rem; }
.trip-name { flex: 1; font-weight: 600; }
.trip-details {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
}
.trip-total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest);
  min-width: 55px;
  text-align: right;
}

/* --- Claimable Badge --- */
.badge.claimable {
  background: rgba(232, 114, 28, 0.1);
  border: 2px dashed var(--fire);
  cursor: pointer;
  transition: all 0.2s;
}
.badge.claimable:hover {
  background: rgba(232, 114, 28, 0.2);
  transform: scale(1.05);
}
.badge-claim {
  font-size: 0.6rem;
  color: var(--fire);
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Export --- */
.export-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.export-info {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.export-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.export-btn:hover { background: var(--forest-light); }

/* --- Editable Drink Counts --- */
.drink-count-edit {
  cursor: pointer;
  transition: background 0.2s;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}
.drink-count-edit:hover {
  background: rgba(45, 80, 22, 0.1);
  text-decoration: underline dotted;
}

/* --- Lagerfeuer --- */
.lagerfeuer-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
.lagerfeuer-card h2 { color: var(--forest-dark); margin-bottom: 0.5rem; }

.lf-category-select {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.lf-cat-btn {
  padding: 0.35rem 0.7rem;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: 20px;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.lf-cat-btn.active {
  background: rgba(45, 80, 22, 0.08);
  border-color: var(--forest);
  color: var(--forest);
}

.lf-who {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fire);
  margin-bottom: 0.5rem;
  min-height: 1.5em;
}

.lf-question {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  padding: 2rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  color: var(--text);
  word-break: break-word;
  margin-bottom: 1rem;
}

.lf-next-btn {
  padding: 0.75rem 1.5rem;
  background: var(--cream-dark);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  width: 100%;
}
.lf-next-btn:hover { background: var(--forest-light); color: white; }

/* --- Game How-To --- */
.game-howto {
  background: rgba(45, 80, 22, 0.06);
  border: 1px solid rgba(45, 80, 22, 0.15);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
}
.howto-label {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
}
.howto-text {
  display: none;
  padding: 0 0.75rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
}
.howto-text p { margin-bottom: 0.3rem; }
.game-howto.open .howto-text { display: block; }
.game-howto.open .howto-label::after { content: ''; }

/* --- Waldeslust-Ruf (Running Gag) --- */
.waldeslust-ruf {
  position: fixed;
  inset: 0;
  background: rgba(26, 48, 9, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}
.wl-ruf-card {
  background: linear-gradient(135deg, #1a3009, #2d5016, #4a7c28);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: rufBounce 0.5s ease;
}
.wl-ruf-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.wl-ruf-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fire-glow);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.wl-ruf-card .btn-add {
  background: var(--fire);
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
}
@keyframes rufBounce {
  0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

/* --- Achievement Celebration --- */
.achievement-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.confetti-container {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 10001;
}
.confetti-piece {
  position: absolute; top: -10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { top: -10px; opacity: 1; transform: rotate(0deg) translateX(0); }
  25% { opacity: 1; }
  100% { top: 110vh; opacity: 0; transform: rotate(720deg) translateX(80px); }
}
.achievement-popup {
  position: relative; z-index: 10002;
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 320px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: achievementBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes achievementBounce {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(2deg); }
  70% { transform: scale(0.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.achievement-glow {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,71,0.4) 0%, transparent 70%);
  animation: glowPulse 1.5s ease infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}
.achievement-badge-big {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: badgeSpin 0.8s ease;
  position: relative; z-index: 1;
}
@keyframes badgeSpin {
  0% { transform: rotateY(0deg) scale(0); }
  50% { transform: rotateY(180deg) scale(1.2); }
  100% { transform: rotateY(360deg) scale(1); }
}
.achievement-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.achievement-name-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 0.3rem;
}
.achievement-desc-big {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.achievement-reward {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fire);
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(232, 114, 28, 0.1);
  border-radius: 20px;
  display: inline-block;
}
.achievement-popup .btn-add {
  font-size: 1rem;
  padding: 0.6rem 2rem;
  border-radius: 12px;
}

/* Achievement celebration in nightmode */
body.nightmode .achievement-popup {
  background: #141410 !important;
}
body.nightmode .achievement-name-big { color: #c4b060; }
body.nightmode .achievement-desc-big { color: #999; }
body.nightmode .achievement-title { color: #777; }
body.nightmode .achievement-popup .btn-add { background: #3a3a1a; }

/* --- Spiele / Orga Tab Selector --- */
.spiele-select {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.75rem;
}
.spiele-btn {
  padding: 0.5rem 0.75rem; border: 2px solid var(--cream-dark); border-radius: var(--radius);
  background: white; color: var(--text-light); font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s; flex: 1; min-width: 70px; text-align: center;
}
.spiele-btn.active {
  background: var(--forest); border-color: var(--forest); color: white; font-weight: 700;
}
.spiele-btn:hover { background: var(--cream-dark); }
.spiele-btn.active:hover { background: var(--forest-light); }
body.nightmode .spiele-btn { background: #1a1a10; color: #999; border-color: #2a2a1a; }
body.nightmode .spiele-btn.active { background: #3a3a1a; border-color: #a09030; color: white; }

/* --- Schnapszahl --- */
.schnapszahl-overlay {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.schnapszahl-card {
  background: linear-gradient(135deg, #0d0d08 0%, #0a0a06 50%, #0d0d08 100%);
  border: 3px solid #ffb347;
  border-radius: 24px; padding: 2rem 1.5rem;
  text-align: center; max-width: 340px; width: 90%;
  box-shadow: 0 0 40px rgba(255, 179, 71, 0.3);
  animation: achievementBounce 0.5s ease;
}
.schnapszahl-time {
  font-size: 3.5rem; font-weight: 900; color: #ffb347;
  text-shadow: 0 0 20px rgba(255, 179, 71, 0.6);
  letter-spacing: 0.15em;
  animation: szPulse 1s ease infinite;
}
@keyframes szPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); text-shadow: 0 0 30px rgba(255, 179, 71, 0.8); }
}
.schnapszahl-title {
  font-size: 1.5rem; font-weight: 800; color: white;
  text-transform: uppercase; letter-spacing: 3px;
  margin: 0.3rem 0;
}
.schnapszahl-text {
  font-size: 0.95rem; color: #ccc; margin-bottom: 1.2rem;
}
.schnapszahl-buttons {
  display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}
.sz-btn {
  flex: 1; padding: 0.8rem 0.5rem; border: 2px solid #ffb347;
  border-radius: 14px; background: rgba(255, 179, 71, 0.1);
  color: white; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
}
.sz-btn:hover { background: rgba(255, 179, 71, 0.25); transform: scale(1.05); }
.sz-btn:disabled { opacity: 0.4; transform: none; cursor: default; }
.sz-pts { font-size: 0.7rem; color: #ffb347; }
.sz-skip {
  background: none; border: none; color: #888;
  font-size: 0.8rem; cursor: pointer; padding: 0.5rem;
  text-decoration: underline;
}
.sz-skip:hover { color: #aaa; }
.sz-skip:disabled { opacity: 0.3; cursor: default; }
.schnapszahl-status {
  margin-top: 0.75rem; font-size: 1.1rem; font-weight: 700; color: #ffb347;
  min-height: 1.5rem;
}

/* --- Ereigniskarten --- */
.event-card-overlay {
  position: fixed; inset: 0; z-index: 9800;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.event-card-popup {
  background: #1a1a10; border: 3px solid var(--accent);
  border-radius: 16px; padding: 1.5rem; text-align: center;
  max-width: 320px; width: 90%;
  box-shadow: 0 0 40px rgba(212,98,42,0.3);
  animation: achievementBounce 0.5s ease;
}
.event-card-icon { font-size: 3rem; margin-bottom: 0.3rem; }
.event-card-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); font-weight: 700; margin-bottom: 0.5rem;
}
.event-card-text { font-size: 1rem; color: #c4c4a0; line-height: 1.5; margin-bottom: 0.75rem; }
.event-card-amount { font-size: 1.3rem; font-weight: 900; margin-bottom: 0.75rem; }
.event-gain { color: #5a7d2e; }
.event-loss { color: var(--ember); }
.event-neutral { color: var(--text-light); }

/* --- Feuerwächter --- */
.firewatch-card {
  background: var(--card-bg, white); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 1rem; text-align: center;
  margin-bottom: 1rem; position: relative; overflow: hidden;
}
.firewatch-card.state-roaring { border-color: #e8721c; background: linear-gradient(135deg, rgba(232,114,28,0.08), transparent); }
.firewatch-card.state-burning { border-color: #d4622a; }
.firewatch-card.state-embers { border-color: #8b4513; }
.firewatch-card.state-almost_out { border-color: var(--ember); animation: pulse 1s ease infinite; }
.firewatch-card.state-out { border-color: #555; background: rgba(0,0,0,0.05); }
.firewatch-fire { font-size: 2.5rem; margin-bottom: 0.3rem; }
.firewatch-status { font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 0.3rem; }
.firewatch-guardian { font-size: 0.85rem; color: var(--text-light); }
.firewatch-timer { font-size: 0.85rem; color: var(--text); margin: 0.3rem 0; }
.firewatch-feed-btn { margin-top: 0.5rem; width: 100%; }
.firewatch-out { color: var(--ember); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }
.firewatch-ok { color: var(--forest); font-size: 0.8rem; margin-top: 0.5rem; }
body.nightmode .firewatch-card { background: var(--night-card); }

/* --- Wetten --- */
.bet-create {
  padding: 0.75rem; background: var(--card-bg, var(--cream-dark));
  border-radius: var(--radius); margin-bottom: 1rem;
  border: 1px solid var(--card-border, var(--cream-dark));
}
.bet-input { width: 100%; margin-bottom: 0.5rem; }
.bet-amount-row { display: flex; gap: 0.5rem; align-items: center; }
.bet-amount-row label { font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.bet-card {
  background: var(--card-bg, white); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 0.75rem; margin-bottom: 0.5rem;
}
.bet-desc { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.bet-sides { display: flex; gap: 0.5rem; font-size: 0.8rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.bet-side-for { color: var(--forest); font-weight: 600; }
.bet-side-against { color: var(--ember); font-weight: 600; }
.bet-pot { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.bet-status { font-size: 0.75rem; color: var(--text-light); margin: 0.3rem 0; }
.bet-resolve { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.bet-history-item {
  font-size: 0.8rem; padding: 0.3rem 0; border-bottom: 1px solid var(--cream-dark);
  color: var(--text-light);
}
body.nightmode .bet-card { background: var(--night-card); border-color: var(--accent); }
body.nightmode .bet-create { background: var(--night-card); border-color: var(--night-card-border); }

/* Transfer */
.tz-transfer {
  display: flex; gap: 0.4rem; align-items: center; margin: 0.5rem 0 1rem;
  padding: 0.5rem; background: var(--card-bg, var(--cream-dark));
  border-radius: var(--radius); border: 1px dashed var(--accent);
}
.tz-transfer select { flex: 1; }
.tz-transfer input { width: 60px; }
.tz-transfer .btn-add { white-space: nowrap; }

/* --- Foto-Wall --- */
.photo-upload {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem;
  padding: 0.75rem; background: var(--card-bg, var(--cream-dark)); border-radius: var(--radius);
  border: 2px dashed var(--card-border, var(--cream-dark));
}
.photo-upload-btn {
  display: block; text-align: center; padding: 0.8rem;
  background: var(--accent); color: white; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.photo-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.photo-day-header {
  font-size: 1rem; font-weight: 800; color: var(--accent);
  padding: 0.5rem 0 0.2rem; margin-top: 0.5rem;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.photo-day-count { font-weight: 400; font-size: 0.8rem; color: var(--text-light); text-transform: none; }
.photo-card {
  background: var(--card-bg, white); border: 1px solid var(--card-border, var(--cream-dark));
  border-radius: var(--radius); overflow: hidden;
}
.photo-img {
  width: 100%; max-height: 250px; object-fit: cover; cursor: pointer;
  transition: max-height 0.3s;
}
.photo-img.expanded { max-height: none; }
.photo-info { padding: 0.6rem; }
.photo-caption { font-weight: 600; font-size: 0.9rem; }
.photo-challenge-tag {
  font-size: 0.7rem; background: var(--accent); color: white;
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}
.photo-meta { font-size: 0.78rem; color: var(--text-light); margin: 0.2rem 0; }
.photo-stars { font-size: 1.3rem; }
.photo-star { color: var(--cream-dark); cursor: pointer; transition: color 0.1s; }
.photo-star.rated { color: #e8a030; }
.photo-star:hover { color: #e8a030; }
.photo-own { font-size: 0.75rem; color: var(--text-light); font-style: italic; }
body.nightmode .photo-card { background: var(--night-card); border-color: var(--night-card-border); }

/* --- Kompass --- */
.compass-container {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 2rem 1rem; min-height: 50vh;
}
.compass-ring {
  width: 220px; height: 220px; border-radius: 50%;
  border: 4px solid var(--accent); position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease-out;
  background: radial-gradient(circle, rgba(212,98,42,0.05) 0%, transparent 70%);
}
.compass-n {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 1.2rem; font-weight: 900; color: var(--accent);
}
.compass-arrow {
  font-size: 2rem; color: var(--accent); font-weight: 900;
  transform: translateY(-10px);
}
.compass-camp-arrow {
  position: absolute; font-size: 1.5rem;
  transition: transform 0.15s ease-out;
}
.compass-heading {
  font-size: 2.5rem; font-weight: 900; color: var(--text); margin: 1rem 0 0.5rem;
}
.compass-camp-info {
  font-size: 1.1rem; color: var(--text-light); margin-bottom: 1rem;
}
#compass-distance { font-weight: 700; color: var(--accent); font-size: 1.3rem; }

/* --- Timer --- */
.timer-create {
  padding: 0.75rem; background: var(--card-bg, var(--cream-dark));
  border-radius: var(--radius); margin-bottom: 1rem;
  border: 1px solid var(--card-border, var(--cream-dark));
}
.timer-input { width: 100%; margin-bottom: 0.5rem; }
.timer-presets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.5rem;
}
.timer-preset {
  padding: 0.6rem; border: 2px solid var(--accent); border-radius: var(--radius);
  background: transparent; color: var(--accent); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; min-height: 44px;
}
.timer-preset:active { background: var(--accent); color: white; }
.timer-custom {
  display: flex; gap: 0.4rem; align-items: center;
}
.timer-num-input { width: 60px; text-align: center; }
.timer-custom span { font-size: 1.2rem; font-weight: 700; }
.active-timers { display: flex; flex-direction: column; gap: 0.5rem; }
.timer-card {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem;
  background: var(--card-bg, white); border: 2px solid var(--accent);
  border-radius: var(--radius); position: relative;
}
.timer-label-display { flex: 1; font-weight: 600; font-size: 0.95rem; }
.timer-countdown {
  font-size: 1.5rem; font-weight: 900; color: var(--accent);
  min-width: 70px; text-align: right;
}
.timer-countdown.timer-urgent { color: var(--ember); animation: pulse 0.5s ease infinite; }
.timer-by { font-size: 0.7rem; color: var(--text-light); }
body.nightmode .timer-card { background: var(--night-card); border-color: var(--accent); }
body.nightmode .timer-create { background: var(--night-card); border-color: var(--night-card-border); }
body.nightmode .timer-preset { border-color: var(--accent); color: var(--accent); }

/* --- Karte --- */
#tab-karte {
  padding: 0 !important; padding-bottom: 0 !important; min-height: 0 !important;
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 50px);
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 58px);
  z-index: 50; overflow: hidden;
}
#tab-karte[hidden] { display: none !important; }
/* Location-Banner ausblenden wenn Karte aktiv */
body.map-active #location-banner { display: none !important; }
.map-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
#map { width: 100%; height: 100%; z-index: 1; }
.map-actions {
  position: absolute;
  bottom: 1.5rem;
  right: 1rem; z-index: 500;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.map-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(13,15,8,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: transform 0.15s;
}
.map-btn:active { transform: scale(0.9); }

.map-info-btn {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 500;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(13,15,8,0.85); backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.15);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.map-info-panel {
  position: absolute; top: 0.75rem; left: 0.75rem; right: 0.75rem; z-index: 600;
  background: rgba(13,15,8,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 1rem 1.2rem; color: #c4c4a0; font-size: 0.85rem; line-height: 1.5;
  max-height: 70vh; overflow-y: auto;
}
.map-info-panel[hidden] { display: none; }
.map-info-panel h3 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.map-info-panel p { margin-bottom: 0.5rem; }
.map-info-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: none; border: none; color: #888; font-size: 1.2rem; cursor: pointer;
  min-height: 30px;
}
.legend-item { white-space: nowrap; }

/* Map markers */
.map-emoji-icon { background: none !important; border: none !important; }
.map-user-icon { background: none !important; border: none !important; }
.map-user-marker {
  position: relative; width: 16px; height: 16px;
  border: 3px solid #d4622a; border-radius: 50%;
  background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.map-user-dot {
  position: absolute; top: 2px; left: 2px; width: 8px; height: 8px;
  border-radius: 50%; background: #d4622a;
  animation: gpsPulse 2s ease infinite;
}
@keyframes gpsPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.map-user-label {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); color: white; font-size: 0.6rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.map-user-ago { font-weight: 400; opacity: 0.8; margin-left: 2px; }
.map-user-dot.stale { animation: none; opacity: 0.6; }
.map-user-dot.stale-very { animation: none; opacity: 0.3; }

/* Nightmode map */
body.nightmode .map-container { filter: brightness(0.8) contrast(1.1); }
body.nightmode .map-actions { background: var(--night-card, #141410); }

/* Leaflet popup override */
.leaflet-popup-content { font-family: inherit !important; font-size: 0.85rem; }
.leaflet-popup-content b { color: var(--forest-dark); }

/* --- Offline Banner + Pending Messages --- */
.offline-banner {
  background: #8b4513;
  color: #ffd;
  text-align: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: offlinePulse 2s ease infinite;
}
.offline-banner[hidden] { display: none; }
@keyframes offlinePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.chat-msg.pending {
  opacity: 0.5;
}
.chat-msg.pending .msg-time {
  color: var(--accent);
  font-style: italic;
}
body.nightmode .offline-banner { background: #4a2a0a; }

/* --- Frauen-Reminder --- */
.frauen-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.4s ease;
}
.frauen-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 320px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: achievementBounce 0.5s ease;
}
.frauen-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.frauen-title {
  font-size: 1.3rem; font-weight: 800; color: #c0392b;
  margin-bottom: 0.5rem;
}
.frauen-text {
  font-size: 0.92rem; line-height: 1.5; color: #444;
  margin-bottom: 1.2rem;
}
.frauen-card .btn-add {
  background: linear-gradient(135deg, #e8721c, #c0392b);
  font-size: 1rem; padding: 0.7rem 2rem;
}
body.nightmode .frauen-card { background: #141410 !important; }
body.nightmode .frauen-title { color: #e88; }
body.nightmode .frauen-text { color: #bbb; }

/* --- Zufall / Münzwurf --- */
.zufall-section-title {
  font-size: 1rem; font-weight: 700; color: var(--forest); margin: 0.75rem 0 0.5rem;
}
.zufall-result {
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.3rem;
  margin: 0.5rem 0; padding: 0.75rem; border-radius: var(--radius);
  background: var(--cream-dark); text-align: center; transition: all 0.3s;
}
.zufall-result.spinning { animation: zufallSpin 0.1s ease infinite; }
@keyframes zufallSpin {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.zufall-result.revealed { animation: revealBounce 0.4s ease; background: rgba(45, 80, 22, 0.08); }
.zufall-name { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.zufall-winner { font-size: 1.5rem; font-weight: 800; color: var(--forest); }
.zufall-loser { font-size: 0.9rem; color: var(--text-light); }
.zufall-options-list {
  display: flex; flex-direction: column; gap: 0.4rem; margin: 0.5rem 0;
}
.zufall-option-input {
  padding: 0.6rem; border: 2px solid var(--cream-dark); border-radius: var(--radius);
  font-size: 0.95rem; width: 100%;
}
.zufall-add-btn {
  font-size: 0.8rem; padding: 0.3rem 0.8rem; margin-bottom: 0.5rem;
  border: 1px dashed var(--text-light); background: transparent; color: var(--text-light);
  border-radius: var(--radius); cursor: pointer;
}
.zufall-vs-area {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0;
}
.zufall-vs-select {
  flex: 1; padding: 0.6rem; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: 0.95rem;
}
.zufall-vs-text { font-weight: 800; color: var(--fire); font-size: 1.1rem; }

/* Nightmode zufall */
body.nightmode .zufall-section-title { color: #c4b060; }
body.nightmode .zufall-result { background: #141410; }
body.nightmode .zufall-result.revealed { background: rgba(139, 126, 200, 0.1); }
body.nightmode .zufall-name { color: #ddd; }
body.nightmode .zufall-winner { color: #c4b060; }
body.nightmode .zufall-option-input { background: #0d0d08; color: #ddd; border-color: #2a2a1a; }
body.nightmode .zufall-add-btn { color: #888; border-color: #2a2a1a; }
body.nightmode .zufall-vs-select { background: #0d0d08; color: #ddd; border-color: #2a2a1a; }

/* Night Divider in Lagerfeuer */
.night-divider {
  text-align: center; margin: 1.5rem 0 0.75rem; position: relative;
}
.night-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: #2a2a1a;
}
.night-divider-text {
  position: relative; background: var(--cream); padding: 0 1rem;
  font-size: 0.9rem; font-weight: 700; color: #a09030;
}
body.nightmode .night-divider-text { background: #0d0d08; }

/* --- Nachtmodus --- */
.night-header h2 { color: #a09030; }
.night-lock-msg {
  text-align: center; padding: 2rem 1rem; color: var(--text-light);
  font-size: 1.1rem; animation: pulseSlow 2s ease infinite;
}
@keyframes pulseSlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.night-game-select {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0;
}
.night-game-btn {
  padding: 0.5rem 0.75rem; border: 2px solid #2a2a1a; border-radius: var(--radius);
  background: #1a1a10; color: #ccc; font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s; flex: 1; min-width: 80px; text-align: center;
}
.night-game-btn.active {
  background: #3a3a1a; border-color: #a09030; color: white; font-weight: 700;
}
.night-game-btn:hover { background: #3a3a6a; }

.night-card {
  background: #141410 !important;
  border: 2px solid #2a2a1a !important; color: #c4c4a0 !important;
}
.night-card h3 { color: #c4b060; margin-bottom: 0.5rem; }
.night-game-desc { font-size: 0.82rem; color: #999; margin-bottom: 1rem; }
.night-victim { font-size: 1.1rem; margin: 0.75rem 0; }
.night-name { font-weight: 700; color: #e8a030; }
.night-prompt {
  font-size: 1.15rem; font-weight: 600; color: white; line-height: 1.5;
  padding: 1rem; background: rgba(255,255,255,0.05); border-radius: var(--radius);
  margin: 0.75rem 0;
}
.night-info { color: #aaa; font-style: italic; }
.night-hint { font-size: 0.78rem; color: #888; margin-top: 0.5rem; }
.night-result {
  font-size: 1.1rem; font-weight: 700; padding: 0.75rem; border-radius: var(--radius);
  background: rgba(232, 114, 28, 0.15); color: #ffb347; text-align: center;
  margin: 0.75rem 0;
}
.night-rate-entry {
  display: inline-block; padding: 0.2rem 0.6rem; margin: 0.2rem;
  background: rgba(255,255,255,0.05); border-radius: 6px; font-size: 0.82rem; color: #bbb;
}
.night-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.night-actions .game-next-btn { flex: 1; }

/* Geständnis Rating Grid */
.gestaendnis-rate-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin: 0.75rem 0;
}
.rate-btn {
  padding: 0.7rem; border: 2px solid #3a3a1a; border-radius: var(--radius);
  background: #1a1a10; color: white; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.rate-btn:hover { background: #3a3a1a; transform: scale(1.1); }
.rate-btn:active { transform: scale(0.95); }

/* Paranoia */
.paranoia-phase { padding: 0.5rem 0; }
.paranoia-secret {
  background: rgba(139, 126, 200, 0.2); border: 1px dashed #a09030;
  padding: 0.75rem; border-radius: var(--radius); margin: 0.75rem 0;
  color: #c4b060; font-size: 0.9rem;
}
.paranoia-names {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0;
}
.paranoia-name-btn {
  flex: 1; min-width: 80px; padding: 0.8rem; border: 2px solid #3a3a1a;
  border-radius: var(--radius); background: #1a1a10; color: white;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.paranoia-name-btn:hover { background: #3a3a1a; transform: scale(1.05); }
.paranoia-answer {
  font-size: 1.5rem; font-weight: 800; color: #e8a030; text-align: center;
  padding: 1rem; animation: revealBounce 0.4s ease;
}
.paranoia-choice { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0; }
.paranoia-choice button { flex: 1; min-width: 120px; }
.paranoia-revealed {
  font-size: 1.1rem; font-weight: 700; color: #c4b060; text-align: center;
  padding: 1rem; background: rgba(139, 126, 200, 0.15); border-radius: var(--radius);
}
@keyframes revealBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Wer am ehesten */
.wer-votes-detail {
  display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; justify-content: center;
}

/* Klingelstreich */
.klingelstreich-card {
  text-align: center; padding: 1rem;
}
.klingelstreich-text {
  font-size: 1rem; line-height: 1.5; margin: 0.75rem 0; color: #ddd;
}

/* Night mode nav button glow */
#nav-nacht-btn.night-active {
  animation: nightGlow 2s ease infinite;
  color: var(--accent);
}
@keyframes nightGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(212, 98, 42, 0.4); }
  50% { text-shadow: 0 0 12px rgba(212, 98, 42, 0.8), 0 0 25px rgba(212, 98, 42, 0.3); }
}

/* Body nightmode class - FULL dark mode — Tactical Night Vision / Amber LCD */
body.nightmode {
  --cream: #0d0d08;
  --cream-dark: #1a1a12;
  --forest: #5a7a30;
  --forest-light: #6a8a40;
  --forest-dark: #2a3a15;
  --bark: #6a5a40;
  --bark-light: #8a7a55;
  --card-bg: #141410;
  --card-border: #2a2a1a;
  --accent: #d4622a;
  --text: #c4c4a0;
  --text-light: #7a7a60;
  --shadow: rgba(0,0,0,0.6);
  --night-card: #141410;
  --night-card-border: #2a2a1a;
  --night-input: #0d0d08;
  background-image: none;
}

/* All white backgrounds → dark */
body.nightmode header { background: #0a0a06; border-bottom-color: #d4622a; }
body.nightmode .nav-grid { background: #0a0a06; border-top-color: var(--accent); }
body.nightmode .nav-btn { color: #5a5a40; }
body.nightmode .nav-btn.active { color: var(--accent); border-top-color: var(--accent); }
body.nightmode .nav-row-more { background: #0a0a06; }

/* Cards, items, containers — everything that was white */
body.nightmode .chat-msg,
body.nightmode .schedule-item,
body.nightmode .list-item,
body.nightmode .music-item,
body.nightmode .poll-card,
body.nightmode .poll-option,
body.nightmode .challenge-card,
body.nightmode .active-challenge,
body.nightmode .quote-card,
body.nightmode .bingo-cell,
body.nightmode .expense-item,
body.nightmode .expense-balance,
body.nightmode .game-card,
body.nightmode .lagerfeuer-card,
body.nightmode .profile-card,
body.nightmode .badge,
body.nightmode .trip-entry,
body.nightmode .alarm-card,
body.nightmode .tz-shop-item,
body.nightmode .tz-log-entry,
body.nightmode .tz-lb-entry,
body.nightmode .lb-entry,
body.nightmode .drink-user-card,
body.nightmode .install-banner,
body.nightmode .bring-banner,
body.nightmode .gianluca-card,
body.nightmode .wl-ruf-card,
body.nightmode .alarm-popup {
  background: var(--night-card) !important;
  border-color: var(--night-card-border) !important;
  color: var(--text) !important;
}

/* Chat-specific */
body.nightmode .chat-msg.own { background: #1a1a08 !important; }
body.nightmode .chat-msg.other { background: var(--night-card) !important; }
body.nightmode .msg-author { color: #c4b060; }
body.nightmode .msg-text { color: #ddd; }
body.nightmode .msg-time { color: #777; }
body.nightmode .chat-input { background: #0a0a06; border-color: #1a1a10; }
body.nightmode .chat-input input { background: var(--night-input); color: #ddd; border-color: #1a1a10; }

/* Inputs, selects, textareas */
body.nightmode input,
body.nightmode select,
body.nightmode textarea {
  background: var(--night-input) !important;
  color: #ddd !important;
  border-color: #2a2a1a !important;
}
body.nightmode input::placeholder { color: #666 !important; }

/* Buttons */
body.nightmode .btn-add,
body.nightmode .game-next-btn,
body.nightmode .challenge-draw-btn,
body.nightmode .lf-next-btn { background: #3a3a1a; color: white; }
body.nightmode .btn-add:hover,
body.nightmode .game-next-btn:hover { background: #5a4a9a; }
body.nightmode .btn-cancel { background: #1a1a10 !important; color: #999 !important; }
body.nightmode .btn-secondary { background: #1a1a10; color: #bbb; border-color: #2a2a1a; }

/* Modal */
body.nightmode .modal-content {
  background: #141410 !important;
  color: #ddd !important;
  border: 1px solid #2a2a1a;
}

/* Location banner */
body.nightmode .location-banner { background: #1e1e3a !important; border-color: #1a1a10 !important; }
body.nightmode .loc-details { color: #bbb; }
body.nightmode .loc-name { color: #ddd; }

/* Happy Hour Banner */
body.nightmode .happy-hour-banner {
  background: linear-gradient(135deg, #3a3a1a, #2a1a6a, #3a3a1a) !important;
  background-size: 200% auto !important;
}

/* Challenge specifics */
body.nightmode .challenge-leaderboard { background: var(--night-card); border-color: var(--night-card-border); }
body.nightmode .challenge-slot { background: #0d0d08; }
body.nightmode .challenge-slot-text { color: #ddd; }
body.nightmode .slot-result { color: #ddd; }
body.nightmode .challenge-text { color: #ccc; }
body.nightmode .challenge-meta { color: #888; }
body.nightmode .challenge-section h3 { color: #c4b060; }
body.nightmode .challenge-draw-area { background: var(--night-card); border-color: var(--night-card-border); }
body.nightmode .catch-select { background: var(--night-input); color: #ddd; border-color: #2a2a1a; }

/* Game cards (NHIE, WYR, Hot Seat) */
body.nightmode .game-statement { color: #ddd; }
body.nightmode .game-waiting { color: #888; }
body.nightmode .game-btn-yes { background: #3a6a2a; }
body.nightmode .game-btn-no { background: #3a3a1a; }
body.nightmode .wyr-btn { background: var(--night-card) !important; color: #ddd !important; border-color: #2a2a1a !important; }
body.nightmode .wyr-btn.selected { border-color: #a09030 !important; background: #1a1a08 !important; }
body.nightmode .nhie-resp { background: var(--night-card); color: #ddd; }
body.nightmode .nhie-resp.did-it { background: #3a2020; color: #e88; }
body.nightmode .nhie-resp.safe { background: #203a20; color: #8e8; }

/* Dad Jokes / Flachwitze */
.dadjoke-setup {
  font-size: 1.2rem;
  text-align: center;
  justify-content: center;
}
.dadjoke-punchline {
  text-align: center;
  padding: 1.2rem 1rem;
  background: var(--forest-light);
  color: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.dadjoke-punchline.dadjoke-pop {
  animation: dadpop 0.4s ease;
}
@keyframes dadpop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.dadjoke-counter {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}
body.nightmode .dadjoke-punchline {
  background: #4a3a8a;
  color: #fff;
}

/* Lagerfeuer */
body.nightmode .lf-question { color: #ddd; }
body.nightmode .lf-who { color: #c4b060; }
body.nightmode .lf-cat-btn { background: #1a1a10; color: #999; border-color: #2a2a1a; }
body.nightmode .lf-cat-btn.active { background: #3a3a1a; color: white; border-color: #a09030; }

/* Drinks */
body.nightmode .drink-buttons button { background: #1a1a10; color: #ddd; border-color: #2a2a1a; }
body.nightmode .drink-count-edit { color: #ddd; }

/* Bingo */
body.nightmode .bingo-cell { background: var(--night-card) !important; color: #ddd !important; border-color: #2a2a1a !important; }
body.nightmode .bingo-cell.marked { background: #3a2a6a !important; color: white !important; }
body.nightmode .bingo-cell.free { background: #2a4a2a !important; }

/* Tannenzapfen */
body.nightmode .tz-section-title { color: #c4b060; }
body.nightmode .tz-buy-btn { background: #3a3a1a; color: white; }
body.nightmode .tz-buy-btn:disabled { background: #2a2a3a; color: #555; }

/* Profile / Achievements */
body.nightmode .profile-header { color: #ddd; }
body.nightmode .profile-section-title { color: #c4b060; }
body.nightmode .badge.locked { background: #0d0d08 !important; opacity: 0.5; }
body.nightmode .badge.claimable { background: rgba(139, 126, 200, 0.1) !important; border-color: #a09030 !important; }
body.nightmode .badge-name { color: #ddd; }
body.nightmode .badge-desc { color: #888; }
body.nightmode .badge-icon { filter: none; }

/* Expenses */
body.nightmode .expense-total-badge { color: #ddd; }

/* Section headers */
body.nightmode .section-header h2 { color: #c4b060; }
body.nightmode h2, body.nightmode h3 { color: #c4b060; }

/* How-to boxes */
body.nightmode .game-howto { background: #0d0d08; border-color: #1a1a10; }
body.nightmode .howto-text { color: #aaa; }
body.nightmode .howto-label { color: #888; }

/* Scrollbar */
body.nightmode::-webkit-scrollbar-track { background: #0d0d08; }
body.nightmode::-webkit-scrollbar-thumb { background: #2a2a1a; }

/* Delete / action buttons */
body.nightmode .item-delete { color: #888; }
body.nightmode .item-delete:hover { color: #e88; }
body.nightmode .sched-delete { color: #888; }

/* Inline edit */
body.nightmode .inline-edit-input { background: var(--night-input) !important; color: #ddd !important; border-color: #3a3a1a !important; }

/* Checked items */
body.nightmode .list-item.checked { opacity: 0.5; }

/* Countdown */
body.nightmode .countdown { color: #999; }
body.nightmode .user-badge { color: #c4b060; }

/* Alarm overlay */
body.nightmode .alarm-overlay { background: rgba(0,0,0,0.85); }
body.nightmode .alarm-popup { background: #141410 !important; }

/* Waldeslust-Ruf overlay */
body.nightmode .waldeslust-ruf { background: rgba(0,0,0,0.85); }
body.nightmode .wl-ruf-card { background: #141410 !important; color: #ddd !important; }
body.nightmode .wl-ruf-text { color: #ccc; }

/* Export section */
body.nightmode .export-info { color: #888; }
body.nightmode .export-btn { background: #3a3a1a; color: white; }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg, .schedule-item, .list-item, .music-item, .poll-card { animation: fadeIn 0.2s ease; }
