/* =======================================
   GLOBAL DEFAULTS
======================================= */
:root {
  --vh: 1vh;
}

.overlay {
  height: calc(var(--vh) * 100);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

/* Background + Body */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: contain;
  background-image: url("../images/ps.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  color: #e6ffe6;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

/* =========================
   Intro Overlay
   ========================= */

.intro-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.intro-scroll {
  overflow-y: auto;
  margin: 12px 0 20px;
  padding-right: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Schließen-Button oben */
.intro-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #e6ffe6;
  cursor: pointer;
  opacity: 0.8;
}

.intro-close:hover {
  opacity: 1;
  color: #4cff47;
}

/* Scrollbar dezent */
.intro-scroll::-webkit-scrollbar {
  width: 6px;
}
.intro-scroll::-webkit-scrollbar-thumb {
  background: rgba(76,255,71,0.4);
  border-radius: 4px;
}


/* =======================================
   HEADER + LOGO + TITELBLOCK
======================================= */

.header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
}

.title-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-text h1 {
  margin: 0;
  font-size: 1.6rem;
}

.title-text .subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #ccccdd;
}

/* Logo, sichtbar + Hoverbereich */
.ps-logo-area {
  width: 70px;
  height: 70px;
  background: url("../images/panda.png") center/contain no-repeat;
  cursor: pointer;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Score + Ziel */
.status-bar {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-weight: 600;
  color: #4cff47;
  text-shadow: 0 0 8px rgba(76,255,71,0.5);
}

/* =======================================
   BOARD + GRID
======================================= */

.board-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
}

.board-legend h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.grid-wrapper {
  background: #1a1f1a;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 12px rgba(0,255,128,0.1);
}

.grid-header {
  display: grid;
  grid-template-columns: 80px repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4cff47;
  text-align: center;
}

.quiz-grid {
  display: grid;
  grid-template-columns: 80px repeat(4, 1fr);
  gap: 6px;
}

/* Difficulty cells */

.difficulty-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a261a;
  border-radius: 10px;
  font-weight: 700;
  color: #4cff47;
  border: 1px solid #3bbf3b;
  padding: 8px 0;
  text-shadow: 0 0 6px rgba(76,255,71,0.6);
  box-shadow: 0 0 12px rgba(76,255,71,0.15);
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: 0.15s;
}

.difficulty-cell:hover {
  background: #223822;
  border-color: #4cff47;
  transform: translateY(-2px);
}

/* =======================================
   QUIZ CARDS
======================================= */

.quiz-card {
  border-radius: 10px;
  background: linear-gradient(145deg, #1f261f, #141a14);
  border: 1px solid #2e402e;
  min-height: 70px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: .15s;
  font-size: 0.85rem;
  color: #dfffd8;
}

.quiz-card:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(76,255,71,0.6);
  border-color: #4cff47;
}

.quiz-card.disabled { opacity: 0.7; cursor: default; }
.quiz-card.correct  { border-color: #4cff47; box-shadow: 0 0 12px rgba(76,255,71,0.9); }
.quiz-card.wrong    { border-color: #ff4e4e; box-shadow: 0 0 12px rgba(255,78,78,0.8); }

/* =======================================
   BUTTONS
======================================= */

button { font-family: inherit; }

.primary {
  background: #3bbf3b;
  color: #0c120c;
  border-radius: 8px;
  border: 2px solid #000200;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.15s;
  box-shadow: 0 0 8px rgba(76,255,71,0.4);
}

.primary:hover {
  background: #4cff47;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(76,255,71,0.8);
  border: none;
}

.secondary {
  background: #1f2a1f;
  color: #dfffd8;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid #3bbf3b;
  cursor: pointer;
}

.secondary:hover {
  background: #263326;
  border-color: #4cff47;
}

.random-area {
  text-align: center;
  margin: 18px 0;
}

.highlight-roulette {
  border-color: #4cff47 !important;
  box-shadow: 0 0 12px rgba(76,255,71,0.3);
  transform: scale(1.05);
  transition: transform 0.1s, box-shadow 0.1s;
}
/* =======================================
   AUDIO
======================================= */
.music-note {
  color: #4cff47;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.mute-btn {
  background: transparent;
  border: 1px solid #3bbf3b;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(76,255,71,0.35);
  transition: 0.15s;
}

.mute-btn:hover {
  background: rgba(76,255,71,0.15);
}

/* Mute-Zustand */
.mute-btn.muted {
  opacity: 0.35;
}




