/* ============================================================
   MANIC MEETER — Stylesheet
   ============================================================ */

:root {
  --bg: #1a1a2e;
  --bg-panel: #16213e;
  --bg-card: #0f3460;
  --accent: #e94560;
  --accent-dim: #a83250;
  --green: #4ecca3;
  --yellow: #f5c542;
  --text: #e0e0e0;
  --text-dim: #8899aa;
  --danger: #e94560;
  --success: #4ecca3;
  --warning: #f5c542;
  --radius: 8px;
}

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

body {
  font-family: "Segoe UI", "Fira Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* === Screens === */
.screen { display: none; width: 100%; max-width: 900px; }
.screen.active { display: flex; flex-direction: column; align-items: center; }

/* === Start Screen === */
.start-container {
  margin-top: 10vh;
  padding: 2.5rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  text-align: center;
  width: 420px;
  max-width: 95vw;
}

.title {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  letter-spacing: 2px;
}

.subtitle {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #334;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group select option { background: var(--bg); }

/* === Game Screen === */
#game-screen.active { align-items: stretch; padding: 0.5rem; }

#game {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 95vh;
}

/* --- Status Bar --- */
#status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  padding: 0.6rem 1rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.stat { display: flex; align-items: center; gap: 0.4rem; }
.stat-label { color: var(--text-dim); }
.stat-value { font-weight: 600; }
.stat-value.critical { color: var(--danger); }
.stat-value.medium { color: var(--warning); }

.fatigue-stat { flex: 1; min-width: 200px; }

.fatigue-bar-outer {
  flex: 1;
  height: 14px;
  background: #222;
  border-radius: 7px;
  overflow: hidden;
}

.fatigue-bar-inner {
  height: 100%;
  border-radius: 7px;
  transition: width 0.4s ease;
}

.fatigue-bar-inner.low { background: var(--green); }
.fatigue-bar-inner.medium { background: var(--yellow); }
.fatigue-bar-inner.critical { background: var(--danger); }

/* --- Main Area --- */
#main-area {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* --- Collapsible Info Panel --- */
#info-toggle-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.2rem;
}

.info-toggle-btn {
  background: var(--bg-panel);
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
  border-radius: 4px;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.info-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.info-panel {
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  max-height: 300px;
  opacity: 1;
}

.info-panel.collapsed {
  max-height: 0;
  padding: 0 0.8rem;
  opacity: 0;
  pointer-events: none;
}

.info-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.info-section h4 {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-section ul {
  list-style: none;
  padding: 0;
}

.info-section li {
  padding: 0.1rem 0;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.info-section li.positive { color: var(--success); }
.info-section li.negative { color: var(--danger); }

body.retro .info-toggle-btn {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  border-color: #33ff0066;
  color: #1a8c00;
}
body.retro .info-toggle-btn:hover {
  color: #33ff00;
  border-color: #33ff00;
}
body.retro .info-panel {
  background: #0d0d0d;
  border: 1px solid #33ff0033;
}

@media (max-width: 700px) {
  .info-panel-grid {
    grid-template-columns: 1fr;
  }
}

#meeting-panel {
  flex: 1;
  padding: 1rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  min-height: 120px;
}

#participant-panel {
  width: 320px;
  padding: 0.7rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
}

#participant-panel.compact .p-talk { display: none; }
#participant-panel.compact .p-role { display: none; }
#participant-panel.compact .participant { font-size: 0.74rem; padding: 0.2rem 0.3rem; }

/* --- Meeting Header --- */
.meeting-header h2 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.meeting-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.meeting-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Day Summary / New Day --- */
.day-summary, .new-day, .game-over {
  text-align: center;
  padding: 1rem 0;
}

.day-summary h2, .new-day h2 { color: var(--green); margin-bottom: 0.5rem; }

.stats-table {
  margin: 0.8rem auto;
  border-collapse: collapse;
  text-align: left;
}
.stats-table td {
  padding: 0.2rem 0.8rem;
}
.stats-table td:first-child {
  color: var(--muted);
}
.stats-table td:last-child {
  text-align: right;
}

.schedule-list {
  list-style: none;
  padding: 0.5rem 0;
}

.schedule-list li {
  padding: 0.3rem 0;
  color: var(--text);
}

/* Meeting mini-map progress bar */
#meeting-progress {
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  font-size: 0.85rem;
}
.minimap-item {
  color: var(--muted);
  opacity: 0.6;
}
.minimap-item.done {
  opacity: 0.4;
  text-decoration: line-through;
}
.minimap-item.current {
  color: var(--green);
  opacity: 1;
  font-weight: bold;
}

.game-over h1 {
  color: var(--danger);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.final-stats p {
  padding: 0.2rem 0;
}

/* --- Participants --- */
.participant-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.participant {
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  background: var(--bg);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: background 0.3s, transform 0.2s;
  overflow: hidden;
}

.participant.speaking {
  background: var(--bg-card);
  transform: scale(1.03);
  border-left: 3px solid var(--accent);
}

.participant.highlight { border-left: 3px solid var(--warning); }
.participant.player { border-left: 3px solid var(--green); font-weight: 700; }

.p-name { flex: 1; }
.p-role { color: var(--text-dim); font-size: 0.75rem; }
.p-talk { font-size: 0.7rem; }

/* --- Log Panel --- */
#log-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.8rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  min-height: 180px;
  max-height: 350px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.log-entry {
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.log-entry.warning { color: var(--warning); }
.log-entry.danger  { color: var(--danger); font-weight: 600; }
.log-entry.success { color: var(--success); }
.log-entry.flavor  { color: var(--text-dim); font-style: italic; }
.log-entry.address { color: var(--warning); font-weight: 600; }

.speaker-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.role-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  padding: 0 4px;
  border-radius: 3px;
}

.fatigue-delta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --- Action Panel --- */
#action-panel {
  padding: 0.5rem 0.8rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  min-height: 50px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

/* --- Buttons --- */
.choice-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.choice-btn {
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  color: #fff;
  background: var(--bg-card);
}

.choice-btn:hover { transform: scale(1.05); }
.choice-btn:active { transform: scale(0.97); }

.choice-btn.procrastinate { background: #2a5298; }
.choice-btn.procrastinate:hover { background: #3a6cc8; }

.choice-btn.action { background: var(--accent-dim); }
.choice-btn.action:hover { background: var(--accent); }

.choice-btn.answer { background: #1f4068; }
.choice-btn.answer:hover { background: #2a5d8f; }

.choice-btn.continue { background: var(--green); color: #111; font-weight: 600; }
.choice-btn.continue:hover { background: #6eebc0; }

.choice-btn.start { background: var(--accent); font-size: 1.1rem; padding: 0.8rem 2rem; margin-top: 0.5rem; }
.choice-btn.start:hover { background: #ff5a75; }

/* --- Timer Bar --- */
.timer-bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

.timer-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* --- Text Input (Brainstorming) --- */
.text-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.text-input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 1rem;
}

.text-input:focus { outline: 2px solid var(--accent); }

/* --- Sequence Display (Simon Says) --- */
.sequence-display {
  font-size: 1.3rem;
  letter-spacing: 4px;
  padding: 0.5rem;
  color: var(--yellow);
  text-align: center;
}

/* --- Subtle Address Hint (player gets addressed) --- */
.address-hint {
  color: #c8a2c8;
  font-style: italic;
  font-size: 0.93em;
  letter-spacing: 0.3px;
}

body.retro .address-hint {
  color: #ee82ee;
  text-shadow: 0 0 4px #ee82ee55;
}

/* --- Char-by-Char Challenge (Brainstorming) --- */
.char-challenge {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin: 0.5rem 0;
}

.char-done {
  color: var(--green);
  font-weight: bold;
}

.char-current {
  color: var(--yellow);
  text-decoration: underline;
  font-weight: bold;
}

.char-pending {
  color: var(--text-dim);
}

.char-feedback {
  font-size: 0.9rem;
  min-height: 1.3em;
  margin-top: 0.3rem;
}

.char-ok {
  color: var(--green);
}

.char-wrong {
  color: var(--danger);
}

body.retro .char-challenge {
  text-shadow: 0 0 4px #4ecca355;
}

body.retro .char-current {
  text-shadow: 0 0 6px var(--yellow);
}

/* --- Sequence Challenge (Simon Says) --- */
.seq-challenge {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.seq-done {
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(78, 204, 163, 0.25);
  color: var(--green);
  font-weight: bold;
}

.seq-current {
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(245, 197, 66, 0.25);
  color: var(--yellow);
  font-weight: bold;
  animation: seq-pulse 0.6s ease-in-out infinite alternate;
}

.seq-pending {
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.seq-feedback {
  font-size: 0.9rem;
  min-height: 1.3em;
  margin-top: 0.3rem;
}

.seq-ok {
  color: var(--green);
}

.seq-wrong {
  color: var(--danger);
}

@keyframes seq-pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

body.retro .seq-done {
  text-shadow: 0 0 4px var(--green);
}

body.retro .seq-current {
  text-shadow: 0 0 6px var(--yellow);
}

/* --- Online/Offline Tags --- */
.online-tag {
  font-size: 0.75rem;
  background: rgba(78, 204, 163, 0.2);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  vertical-align: middle;
}

.offline-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
}

/* --- Prep Phase --- */
.prep-phase {
  text-align: center;
  padding: 1rem 0;
}

.prep-phase h2 {
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.prep-hint {
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* --- Shop Overlay --- */
.shop-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
}

.shop-panel {
  background: var(--bg-panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.shop-header {
  text-align: center;
  margin-bottom: 1rem;
}

.shop-header h2 {
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.shop-points {
  font-size: 1.1rem;
  color: var(--yellow);
}

.shop-section {
  margin-bottom: 1.2rem;
}

.shop-section h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border-left: 3px solid var(--green);
}

.shop-item.maxed {
  border-left-color: var(--text-dim);
  opacity: 0.6;
}

.shop-item.too-expensive {
  border-left-color: var(--danger);
  opacity: 0.7;
}

.shop-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.shop-item-name {
  font-weight: 600;
  color: var(--text);
}

.shop-item-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.shop-item-level,
.shop-item-meta {
  font-size: 0.78rem;
  color: var(--yellow);
}

.shop-buy-btn {
  background: var(--bg-card);
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.shop-buy-btn:hover:not(:disabled) {
  background: rgba(245, 197, 66, 0.15);
}

.shop-buy-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-maxed {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-close-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.shop-close-btn:hover {
  background: var(--accent-dim);
}

/* Powerup select variant */
.powerup-select-panel {
  max-width: 420px;
}

.powerup-use-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.8rem;
}

.powerup-use-btn .shop-item-desc {
  display: inline;
  margin-left: 0.5rem;
}

/* Powerup action button styling */
.choice-btn.powerup {
  background: rgba(245, 197, 66, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Retro shop overrides */
body.retro .shop-panel {
  border-color: #0f0;
  background: #111;
}

body.retro .shop-header h2 {
  text-shadow: 0 0 6px var(--accent);
}

body.retro .shop-buy-btn {
  border-color: #0f0;
  color: #0f0;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  #main-area { flex-direction: column; }
  #participant-panel { width: 100%; }
  .participant-list { grid-template-columns: 1fr 1fr; }
  .fatigue-stat { min-width: 140px; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  padding: 0.4rem 1rem;
  border: 2px solid #555;
  border-radius: 4px;
  background: #222;
  color: #aaa;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.theme-toggle-btn:hover {
  border-color: #33ff00;
  color: #33ff00;
  text-shadow: 0 0 6px #33ff00;
}

body.retro .theme-toggle-btn {
  border-color: #33ff00;
  color: #33ff00;
  text-shadow: 0 0 8px #33ff00;
  background: #0a0a0a;
}

/* ============================================================
   INSTRUCTIONS SCREEN
   ============================================================ */
.instructions-container {
  margin-top: 5vh;
  padding: 2rem 2.5rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  width: 600px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
}

.instructions-container h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.instr-section {
  margin-bottom: 1rem;
}

.instr-section h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.instr-section p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.instructions-container .choice-btn {
  display: block;
  margin: 1.5rem auto 0;
}

/* ============================================================
   ESCAPE OVERLAY (quit confirm)
   ============================================================ */
.escape-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.escape-dialog {
  background: var(--bg-panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 400px;
}

.escape-dialog h3 {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.escape-dialog p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.escape-dialog .choice-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

/* ============================================================
   COLLEAGUE NEON COLORS (used in both themes, pop in retro)
   ============================================================ */
.neon-frontend-dev   { color: #00ffff; }
.neon-backend-dev    { color: #00bfff; }
.neon-client-manager { color: #ffff00; }
.neon-hr-manager     { color: #ff69b4; }
.neon-marketing-guru { color: #ff6600; }
.neon-chef           { color: #ff0033; }
.neon-abteilungsleiter { color: #bf00ff; }
.neon-teamleiter     { color: #00ff41; }
.neon-designer       { color: #00ffd5; }
.neon-praktikant     { color: #ff4040; }
.neon-scrum-master   { color: #ee82ee; }
.neon-product-owner  { color: #ffd700; }

/* Retro mode: add glow to neon colors */
body.retro .neon-frontend-dev   { text-shadow: 0 0 7px #00ffff, 0 0 15px #00ffff55; }
body.retro .neon-backend-dev    { text-shadow: 0 0 7px #00bfff, 0 0 15px #00bfff55; }
body.retro .neon-client-manager { text-shadow: 0 0 7px #ffff00, 0 0 15px #ffff0055; }
body.retro .neon-hr-manager     { text-shadow: 0 0 7px #ff69b4, 0 0 15px #ff69b455; }
body.retro .neon-marketing-guru { text-shadow: 0 0 7px #ff6600, 0 0 15px #ff660055; }
body.retro .neon-chef           { text-shadow: 0 0 7px #ff0033, 0 0 15px #ff003355; }
body.retro .neon-abteilungsleiter { text-shadow: 0 0 7px #bf00ff, 0 0 15px #bf00ff55; }
body.retro .neon-teamleiter     { text-shadow: 0 0 7px #00ff41, 0 0 15px #00ff4155; }
body.retro .neon-designer       { text-shadow: 0 0 7px #00ffd5, 0 0 15px #00ffd555; }
body.retro .neon-praktikant     { text-shadow: 0 0 7px #ff4040, 0 0 15px #ff404055; }
body.retro .neon-scrum-master   { text-shadow: 0 0 7px #ee82ee, 0 0 15px #ee82ee55; }
body.retro .neon-product-owner  { text-shadow: 0 0 7px #ffd700, 0 0 15px #ffd70055; }

/* ============================================================
   80s RETRO TERMINAL THEME  (body.retro)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body.retro {
  --bg: #0a0a0a;
  --bg-panel: #0d0d0d;
  --bg-card: #111;
  --accent: #33ff00;
  --accent-dim: #1a8c00;
  --green: #33ff00;
  --yellow: #ffff00;
  --text: #33ff00;
  --text-dim: #1a8c00;
  --danger: #ff0033;
  --success: #33ff00;
  --warning: #ffff00;
  --radius: 2px;
  font-family: 'VT323', 'Courier New', Courier, monospace;
}

/* CRT monitor frame */
body.retro #game,
body.retro .start-container {
  border: 3px solid #33ff0066;
  border-radius: 16px;
  box-shadow:
    0 0 15px #33ff0033,
    0 0 60px #33ff0011,
    inset 0 0 40px #00000088;
  position: relative;
  overflow: hidden;
}

/* Scanlines overlay */
body.retro #game::before,
body.retro .start-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* Flicker animation */
body.retro #game::after,
body.retro .start-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 255, 0, 0.015);
  pointer-events: none;
  z-index: 101;
  animation: crt-flicker 0.1s infinite alternate;
}

@keyframes crt-flicker {
  0%   { opacity: 0.97; }
  100% { opacity: 1; }
}

/* Green text glow on body text */
body.retro {
  text-shadow: 0 0 5px #33ff0055;
}

/* Retro title */
body.retro .title {
  color: #33ff00;
  text-shadow: 0 0 10px #33ff00, 0 0 30px #33ff0066, 0 0 60px #33ff0033;
  letter-spacing: 4px;
  font-size: 2.5rem;
}

/* Retro subtitle */
body.retro .subtitle {
  color: #1a8c00;
  text-shadow: 0 0 4px #1a8c0055;
}

/* Retro form inputs */
body.retro .form-group input,
body.retro .form-group select {
  background: #0a0a0a;
  color: #33ff00;
  border: 1px solid #33ff0044;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  text-shadow: 0 0 3px #33ff0055;
}

body.retro .form-group select option {
  background: #0a0a0a;
  color: #33ff00;
}

body.retro .form-group label {
  color: #1a8c00;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* Retro panels */
body.retro #status-bar,
body.retro #meeting-panel,
body.retro #participant-panel,
body.retro #log-panel,
body.retro #action-panel {
  background: #0d0d0d;
  border: 1px solid #33ff0033;
  border-radius: 2px;
}

/* Retro status bar */
body.retro .stat-label { color: #1a8c00; }
body.retro .stat-value { color: #33ff00; }
body.retro .stat-value.critical { color: #ff0033; text-shadow: 0 0 6px #ff003366; }
body.retro .stat-value.medium { color: #ffff00; text-shadow: 0 0 6px #ffff0066; }

/* Retro fatigue bar */
body.retro .fatigue-bar-outer {
  background: #111;
  border: 1px solid #33ff0033;
}
body.retro .fatigue-bar-inner.low { background: #33ff00; box-shadow: 0 0 6px #33ff0066; }
body.retro .fatigue-bar-inner.medium { background: #ffff00; box-shadow: 0 0 6px #ffff0066; }
body.retro .fatigue-bar-inner.critical { background: #ff0033; box-shadow: 0 0 6px #ff003366; }

/* Retro meeting header */
body.retro .meeting-header h2 {
  color: #33ff00;
  text-shadow: 0 0 8px #33ff0066;
}
body.retro .meeting-desc { color: #1a8c00; }
body.retro .meeting-meta { color: #1a8c00; }

/* Retro participants */
body.retro .participant {
  background: #0a0a0a;
  border: 1px solid #33ff0022;
  font-family: 'VT323', 'Courier New', Courier, monospace;
}
body.retro .participant.speaking {
  background: #111;
  border-left: 3px solid #33ff00;
  box-shadow: 0 0 8px #33ff0033;
}
body.retro .participant.highlight { border-left: 3px solid #ffff00; }
body.retro .participant.player { border-left: 3px solid #33ff00; }
body.retro .p-role { color: #1a8c00; }

/* Retro log entries */
body.retro .log-entry { border-bottom: 1px solid #33ff0011; }
body.retro .log-entry.warning { color: #ffff00; text-shadow: 0 0 5px #ffff0044; }
body.retro .log-entry.danger  { color: #ff0033; text-shadow: 0 0 5px #ff003344; }
body.retro .log-entry.success { color: #33ff00; text-shadow: 0 0 5px #33ff0044; }
body.retro .log-entry.flavor  { color: #1a8c00; }
body.retro .log-entry.address { color: #ffff00; text-shadow: 0 0 5px #ffff0044; }
body.retro .role-tag {
  background: #33ff0015;
  color: #1a8c00;
  border: 1px solid #33ff0022;
}
body.retro .fatigue-delta { color: #1a8c00; }

/* Retro buttons */
body.retro .choice-btn {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid #33ff0066;
  border-radius: 2px;
  background: #111;
  color: #33ff00;
  text-shadow: 0 0 4px #33ff0055;
  box-shadow: 0 0 8px #33ff0022;
}
body.retro .choice-btn:hover {
  background: #1a1a1a;
  border-color: #33ff00;
  box-shadow: 0 0 15px #33ff0044;
}
body.retro .choice-btn.procrastinate {
  background: #111;
  border-color: #00bfff66;
  color: #00bfff;
  text-shadow: 0 0 4px #00bfff55;
}
body.retro .choice-btn.procrastinate:hover {
  border-color: #00bfff;
  box-shadow: 0 0 15px #00bfff44;
}
body.retro .choice-btn.action {
  background: #111;
  border-color: #ff003366;
  color: #ff0033;
  text-shadow: 0 0 4px #ff003355;
}
body.retro .choice-btn.action:hover {
  border-color: #ff0033;
  box-shadow: 0 0 15px #ff003344;
}
body.retro .choice-btn.answer {
  background: #111;
  border-color: #ffff0066;
  color: #ffff00;
  text-shadow: 0 0 4px #ffff0055;
}
body.retro .choice-btn.answer:hover {
  border-color: #ffff00;
  box-shadow: 0 0 15px #ffff0044;
}
body.retro .choice-btn.continue {
  background: #111;
  border-color: #33ff0088;
  color: #33ff00;
  text-shadow: 0 0 6px #33ff0066;
}
body.retro .choice-btn.continue:hover {
  background: #1a1a1a;
  box-shadow: 0 0 20px #33ff0044;
}
body.retro .choice-btn.start {
  background: #111;
  border-color: #33ff00;
  color: #33ff00;
  text-shadow: 0 0 10px #33ff0088;
  box-shadow: 0 0 20px #33ff0033;
  font-size: 1.3rem;
}
body.retro .choice-btn.start:hover {
  box-shadow: 0 0 30px #33ff0066;
}

/* Retro timer bar */
body.retro .timer-bar {
  background: #111;
  border: 1px solid #33ff0033;
}
body.retro .timer-fill {
  background: #33ff00;
  box-shadow: 0 0 6px #33ff0066;
}

/* Retro text input */
body.retro .text-input {
  background: #0a0a0a;
  color: #33ff00;
  border: 1px solid #33ff0044;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  text-shadow: 0 0 3px #33ff0055;
}
body.retro .text-input:focus {
  outline: 2px solid #33ff00;
  box-shadow: 0 0 10px #33ff0044;
}

/* Retro sequence display */
body.retro .sequence-display {
  color: #33ff00;
  text-shadow: 0 0 10px #33ff0088;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  letter-spacing: 8px;
}

/* Retro game over */
body.retro .game-over h1 {
  color: #ff0033;
  text-shadow: 0 0 15px #ff003388, 0 0 30px #ff003344;
}
body.retro .day-summary h2, body.retro .new-day h2 {
  color: #33ff00;
  text-shadow: 0 0 10px #33ff0066;
}

/* Retro scrollbar */
body.retro #log-panel::-webkit-scrollbar { width: 6px; }
body.retro #log-panel::-webkit-scrollbar-track { background: #0a0a0a; }
body.retro #log-panel::-webkit-scrollbar-thumb { background: #33ff0044; border-radius: 3px; }
body.retro #log-panel::-webkit-scrollbar-thumb:hover { background: #33ff0088; }

/* ============================================================
   AUTH BAR & MODALS
   ============================================================ */

.auth-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.auth-btn {
  font-size: 0.85rem !important;
  padding: 0.4rem 1rem !important;
  background: var(--bg) !important;
  border: 1px solid #444 !important;
}
.auth-btn:hover { border-color: var(--accent) !important; }

.auth-status {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.auth-status a { color: var(--accent); text-decoration: underline; cursor: pointer; }

.auth-error {
  background: rgba(233, 69, 96, 0.15);
  color: var(--danger);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-box {
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: var(--radius);
  width: 400px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.modal-box h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-top: 2px solid var(--accent);
  z-index: 10001;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.cookie-inner {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
}

.cookie-inner a { color: var(--accent); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: 0.8rem;
}

/* ============================================================
   HIGHSCORE TABLE
   ============================================================ */

.highscore-table-wrap {
  max-height: 400px;
  overflow-y: auto;
}

.highscore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.highscore-table th,
.highscore-table td {
  padding: 0.4rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.highscore-table th {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.highscore-table tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ============================================================
   LEGAL LINKS (Footer on start screen)
   ============================================================ */

.legal-links {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.legal-links a {
  color: var(--text-dim);
  text-decoration: underline;
}

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

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  line-height: 1.7;
}

.legal-page h1 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.legal-page h2 {
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-page p, .legal-page li {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page a:hover { color: var(--text); }

.legal-page ul { padding-left: 1.5rem; }

.legal-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.legal-back:hover { text-decoration: underline; }

/* --- Buzzword Bingo Challenge --- */
.bingo-challenge {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.bingo-word {
  min-width: 120px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bingo-word.bingo-done {
  background: rgba(78, 204, 163, 0.25) !important;
  color: var(--green) !important;
  border-color: var(--green) !important;
  cursor: default;
}

.bingo-feedback {
  font-size: 0.9rem;
  min-height: 1.3em;
  margin-top: 0.3rem;
  text-align: center;
}

.bingo-ok { color: var(--green); }
.bingo-wrong { color: var(--danger); }

/* --- Email Sortieren Challenge --- */
.email-challenge {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  text-align: center;
}

.email-subject {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.email-progress {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.email-feedback {
  font-size: 0.9rem;
  min-height: 1.3em;
  margin-top: 0.3rem;
  text-align: center;
}

.email-ok { color: var(--green); }
.email-wrong { color: var(--danger); }

.email-spam { border-color: var(--danger) !important; }
.email-wichtig { border-color: var(--yellow) !important; }
.email-delegieren { border-color: var(--green) !important; }

/* --- Kalender Tetris Challenge --- */
.kalender-challenge {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
  align-items: center;
}

.kalender-slot {
  width: 220px;
  text-align: center;
  font-size: 0.95rem;
}

.kalender-blocked {
  background: rgba(233, 69, 96, 0.15) !important;
  color: var(--text-dim) !important;
  border-color: rgba(233, 69, 96, 0.3) !important;
}

.kalender-free {
  border-color: var(--yellow) !important;
}

.kalender-feedback {
  font-size: 0.9rem;
  min-height: 1.3em;
  margin-top: 0.3rem;
  text-align: center;
}

.kalender-ok { color: var(--green); }
.kalender-wrong { color: var(--danger); }

body.retro .bingo-word.bingo-done { text-shadow: 0 0 4px var(--green); }
body.retro .email-challenge { border: 1px solid var(--green); }
body.retro .kalender-slot { text-shadow: 0 0 2px currentColor; }

/* ============================================================
   ASCII ART ANIMATIONS (sleeping, caught, game over)
   ============================================================ */

.ascii-animation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9500;
  animation: ascii-overlay-in 0.3s ease;
}

@keyframes ascii-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ascii-animation-overlay.ascii-fade-out {
  animation: ascii-overlay-out 0.5s ease forwards;
}

@keyframes ascii-overlay-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.ascii-art {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
  white-space: pre;
}

.ascii-sleep {
  color: #7b9cc8;
  animation: ascii-sleep-bob 1s ease-in-out infinite alternate;
}

@keyframes ascii-sleep-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.ascii-caught {
  color: var(--danger);
  font-weight: bold;
  animation: ascii-caught-flash 0.15s ease-in-out 4 alternate;
}

@keyframes ascii-caught-flash {
  from { opacity: 1; color: var(--danger); }
  to   { opacity: 0.5; color: #ff6b6b; }
}

.ascii-gameover-anim .ascii-gameover {
  color: var(--danger);
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
  animation: ascii-go-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes ascii-go-pulse {
  from { opacity: 0.7; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}

/* ASCII shake for caught overlay */
.ascii-shake {
  animation: ascii-overlay-in 0.3s ease, ascii-shake-anim 0.08s ease-in-out 6 alternate;
}

@keyframes ascii-shake-anim {
  from { transform: translateX(-3px); }
  to   { transform: translateX(3px); }
}

body.retro .ascii-art {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  text-shadow: 0 0 5px currentColor;
}

body.retro .ascii-sleep { color: #33ff00; }
body.retro .ascii-caught { color: #ff0033; text-shadow: 0 0 8px #ff0033; }
body.retro .ascii-gameover-anim .ascii-gameover { color: #ff0033; text-shadow: 0 0 15px #ff0033; }

/* ============================================================
   MEETING ROOM ASCII SCENES
   ============================================================ */

.ascii-scene {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--text-dim);
  white-space: pre;
  margin-bottom: 0.6rem;
  opacity: 0.7;
  animation: scene-fade-in 0.5s ease;
}

@keyframes scene-fade-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 0.7; transform: translateY(0); }
}

.ascii-scene-boss {
  color: var(--danger);
  opacity: 0.85;
  font-weight: bold;
}

body.retro .ascii-scene {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  color: #1a8c00;
  text-shadow: 0 0 3px #1a8c0055;
}

body.retro .ascii-scene-boss {
  color: #ff0033;
  text-shadow: 0 0 5px #ff003355;
}

/* ============================================================
   COLLEAGUE PORTRAITS (in participant list)
   ============================================================ */

.portrait {
  font-size: 1rem;
  display: inline-block;
  width: 1.4em;
  text-align: center;
  flex-shrink: 0;
}

/* ============================================================
   SCREEN SHAKE EFFECTS
   ============================================================ */

.shake-light {
  animation: shake-light 0.3s ease-in-out;
}

.shake-medium {
  animation: shake-medium 0.5s ease-in-out;
}

.shake-heavy {
  animation: shake-heavy 0.8s ease-in-out;
}

@keyframes shake-light {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-2px); }
  40%      { transform: translateX(2px); }
  60%      { transform: translateX(-1px); }
  80%      { transform: translateX(1px); }
}

@keyframes shake-medium {
  0%, 100% { transform: translateX(0); }
  10%      { transform: translateX(-4px) rotate(-0.5deg); }
  20%      { transform: translateX(4px) rotate(0.5deg); }
  30%      { transform: translateX(-3px); }
  40%      { transform: translateX(3px); }
  50%      { transform: translateX(-2px) rotate(-0.3deg); }
  60%      { transform: translateX(2px) rotate(0.3deg); }
  70%      { transform: translateX(-1px); }
  80%      { transform: translateX(1px); }
}

@keyframes shake-heavy {
  0%, 100% { transform: translate(0); }
  5%       { transform: translate(-6px, 2px) rotate(-1deg); }
  10%      { transform: translate(6px, -2px) rotate(1deg); }
  15%      { transform: translate(-5px, 1px) rotate(-0.8deg); }
  20%      { transform: translate(5px, -1px) rotate(0.8deg); }
  25%      { transform: translate(-4px, 2px) rotate(-0.6deg); }
  30%      { transform: translate(4px, -2px) rotate(0.6deg); }
  40%      { transform: translate(-3px, 1px); }
  50%      { transform: translate(2px, -1px); }
  60%      { transform: translate(-2px); }
  70%      { transform: translate(1px); }
  80%      { transform: translate(-1px); }
}

/* ============================================================
   TYPING CHALLENGE PROGRESS BAR
   ============================================================ */

.typing-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin: 0.4rem auto;
}

.typing-progress-bar {
  flex: 1;
  height: 10px;
  background: #222;
  border-radius: 5px;
  overflow: hidden;
}

.typing-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--green);
  border-radius: 5px;
  transition: width 0.2s ease-out;
}

.typing-progress-fill.typing-progress-complete {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.typing-progress-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 3em;
  text-align: right;
}

body.retro .typing-progress-bar {
  background: #111;
  border: 1px solid #33ff0033;
}

body.retro .typing-progress-fill {
  background: #33ff00;
  box-shadow: 0 0 4px #33ff0066;
}

body.retro .typing-progress-fill.typing-progress-complete {
  box-shadow: 0 0 10px #33ff00;
}

body.retro .typing-progress-label {
  color: #1a8c00;
}

/* ============================================================
   GAME OVER ASCII ART in meeting panel
   ============================================================ */

.game-over .ascii-art {
  font-size: 0.75rem;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: var(--danger);
  opacity: 0.8;
}

body.retro .game-over .ascii-art {
  text-shadow: 0 0 8px #ff003366;
}

/* ============================================================
   BAR CHARTS (ASCII-style for Day Summary)
   ============================================================ */

.chart-section {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.chart-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.bar-chart-container {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.8rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.bar-label {
  min-width: 140px;
  text-align: right;
  color: var(--text-dim);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-chart {
  color: var(--accent);
  letter-spacing: -1px;
}

.bar-value {
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
}

body.retro .bar-chart {
  color: #0f0;
  text-shadow: 0 0 4px #0f066;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */

.achievement-summary {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.achievement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-card, rgba(255,255,255,0.05));
  font-size: 0.75rem;
  cursor: default;
}

.achievement-item.unlocked {
  border: 1px solid var(--accent);
  color: var(--text);
}

.achievement-item.locked {
  opacity: 0.4;
  border: 1px solid var(--border);
}

.achievement-emoji {
  font-size: 1.1rem;
}

.achievement-name {
  font-size: 0.7rem;
}

/* Achievement Modal */

.achievement-modal-box {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.achievement-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.achievement-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.achievement-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

.achievement-card {
  padding: 0.6rem;
  border-radius: 6px;
  text-align: center;
  background: var(--bg-card, rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  transition: transform 0.15s;
}

.achievement-card.unlocked {
  border-color: var(--accent);
}

.achievement-card.unlocked:hover {
  transform: scale(1.03);
}

.achievement-card.locked {
  opacity: 0.45;
}

.achievement-card-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.achievement-card-name {
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.achievement-card-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ============================================================
   HIGHSCORE CATEGORY TABS
   ============================================================ */

.hs-category-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.hs-tab {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all 0.15s;
}

.hs-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.hs-tab.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ============================================================
   EXTENDED DAY SUMMARY
   ============================================================ */

.day-summary-extended {
  max-height: 60vh;
  overflow-y: auto;
}
