/* =========================================================
   Počúvajko — Štýly (Veselý režim pre MŠ + Vysoký kontrast)
   ========================================================= */

:root {
  --bg-main: #10172a;
  --bg-surface: #1b2541;
  --bg-surface-2: #243154;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --border-subtle: rgba(255, 255, 255, 0.14);
  --focus-ring: #00f5d4;
  --mic-bg: linear-gradient(135deg, #00c896 0%, #00a878 100%);
  --mic-listening: linear-gradient(135deg, #ff4d6d 0%, #e63946 100%);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-display: 'Fredoka', 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

/* Režim VYSOKÝ KONTRAST pre deti s ťažkou slabozrakosťou */
body.high-contrast {
  --bg-main: #000000;
  --bg-surface: #000000;
  --bg-surface-2: #111111;
  --text-main: #ffe600;
  --text-muted: #ffffff;
  --border-subtle: #ffe600;
  --focus-ring: #00ffff;
  --mic-bg: #ffe600;
  --mic-listening: #ff3b30;
  --shadow-lg: none;
}

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

html, body {
  min-height: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(155, 93, 229, 0.18), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(46, 196, 182, 0.15), transparent 34%),
    radial-gradient(circle at 50% 95%, rgba(255, 159, 28, 0.12), transparent 40%);
}

body.high-contrast {
  background-image: none;
}

button:focus-visible,
[tabindex]:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 5px solid var(--focus-ring);
  outline-offset: 4px;
}

.hidden {
  display: none !important;
}

/* ==================== ÚVODNÁ OBRAZOVKA ==================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 28, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.high-contrast .welcome-overlay {
  background: #000000;
  backdrop-filter: none;
}

.welcome-card {
  max-width: 620px;
  width: 100%;
  background: var(--bg-surface);
  border: 3px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.mascot-badge {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #2b3a67 0%, #17203d 100%);
  border: 4px solid #ffbe0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  box-shadow: 0 12px 30px rgba(255, 190, 11, 0.28);
  animation: floaty 3s ease-in-out infinite;
  overflow: hidden;
}

.pocuvajko-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ear-wave {
  animation: earPulse 1.4s ease-in-out infinite alternate;
}
.ear-wave.w2 {
  animation-delay: 0.35s;
}

@keyframes earPulse {
  from { opacity: 0.35; transform: translateX(2px); }
  to { opacity: 1; transform: translateX(-2px); }
}

body.high-contrast .mascot-badge {
  background: #000000;
  border: 4px solid #ffe600;
  box-shadow: none;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.welcome-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 12px;
}

.welcome-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.btn-start-giant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 24px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d09c 0%, #00a878 100%);
  color: #06141b;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 208, 156, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-start-giant:hover {
  transform: scale(1.02);
}

body.high-contrast .btn-start-giant {
  background: #ffe600;
  color: #000000;
  border: 4px solid #ffffff;
  box-shadow: none;
}

.welcome-warning {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 190, 11, 0.16);
  border: 2px solid #ffbe0b;
  color: #ffe8a3;
  font-size: 0.96rem;
  text-align: left;
}

.welcome-hint {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==================== HORNÁ LIŠTA ==================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(16, 23, 42, 0.78);
  border-bottom: 2px solid var(--border-subtle);
  flex-wrap: wrap;
}

body.high-contrast .top-bar {
  background: #000000;
  border-bottom: 3px solid #ffe600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 4px 8px;
}

.brand-emoji {
  font-size: 2.3rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stars-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 190, 11, 0.2);
  border: 2px solid #ffbe0b;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffbe0b;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.top-btn:hover {
  transform: translateY(-1px);
  background: var(--bg-surface-2);
}

body.high-contrast .top-btn {
  background: #000000;
  border: 3px solid #ffe600;
  color: #ffe600;
}

body.high-contrast .top-btn[aria-pressed="true"] {
  background: #ffe600;
  color: #000000;
}

/* ==================== HLAVNÁ PLOCHA ==================== */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 190px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Stavový pásik s postavičkou chlapčeka Počúvajka */
.status-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(34, 48, 89, 0.95) 0%, rgba(25, 35, 66, 0.95) 100%);
  border: 2px solid rgba(255, 190, 11, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

body.high-contrast .status-banner {
  background: #000000;
  border: 4px solid #ffe600;
  box-shadow: none;
}

.status-mascot.boy-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #2b3a67 0%, #141c35 100%);
  border: 3px solid #ffbe0b;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.high-contrast .status-mascot.boy-avatar {
  background: #000000;
  border: 3px solid #ffe600;
}

.status-mascot.talking {
  animation: bob 0.55s ease-in-out infinite alternate;
  box-shadow: 0 0 0 6px rgba(0, 245, 212, 0.28);
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #ffbe0b;
  margin-bottom: 2px;
}

body.high-contrast .hero-greeting {
  color: #ffe600;
}

@keyframes bob {
  from { transform: scale(1) rotate(-4deg); }
  to { transform: scale(1.12) rotate(4deg); }
}

.status-message {
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 700;
}

.heard-transcript {
  margin-top: 4px;
  font-size: 1rem;
  color: #5eead4;
  font-weight: 700;
}

body.high-contrast .heard-transcript {
  color: #ffffff;
}

/* ==================== 4 VEĽKÉ TÉMY (2×2 KVADRANTY) ==================== */
.themes-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.themes-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-height: 420px;
}

.themes-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

body.high-contrast .themes-pagination {
  background: #000000;
  border: 4px solid #ffe600;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 3px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.page-btn:hover:not(:disabled) {
  transform: scale(1.03);
  border-color: #ffbe0b;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.high-contrast .page-btn {
  background: #000000;
  border: 4px solid #ffe600;
  color: #ffe600;
}

.page-indicator {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-link-btn {
  display: block;
  text-align: center;
  text-decoration: none;
}

.theme-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 22px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-height: 210px;
}

.theme-tile:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: #ffffff;
}

.theme-tile:active {
  transform: scale(0.985);
}

.theme-key-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.theme-emoji {
  font-size: clamp(4rem, 7vw, 5.5rem);
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.theme-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.theme-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.95;
}

body.high-contrast .theme-tile {
  background: #000000 !important;
  border: 5px solid #ffe600;
  color: #ffe600;
}

body.high-contrast .theme-tile:hover,
body.high-contrast .theme-tile:focus-visible {
  background: #ffe600 !important;
  color: #000000;
}

body.high-contrast .theme-key-badge {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* ==================== DETAIL TÉMY ==================== */
.detail-view,
.quiz-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 3px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-back:hover {
  background: var(--bg-surface-2);
}

body.high-contrast .btn-back {
  background: #000000;
  border: 4px solid #ffe600;
  color: #ffe600;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

/* Karta aktívneho zvuku */
.active-sound-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #223059 0%, #192342 100%);
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

body.high-contrast .active-sound-card {
  background: #000000;
  border: 5px solid #ffe600;
}

.active-sound-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.active-sound-emoji {
  font-size: 6rem;
  line-height: 1;
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 28px;
  opacity: 0.3;
}

.sound-waves.playing {
  opacity: 1;
}

.sound-waves span {
  width: 7px;
  height: 10px;
  border-radius: 6px;
  background: #00f5d4;
}

body.high-contrast .sound-waves span {
  background: #ffe600;
}

.sound-waves.playing span {
  animation: wave 0.7s ease-in-out infinite alternate;
}
.sound-waves.playing span:nth-child(2) { animation-delay: 0.12s; }
.sound-waves.playing span:nth-child(3) { animation-delay: 0.24s; }
.sound-waves.playing span:nth-child(4) { animation-delay: 0.36s; }
.sound-waves.playing span:nth-child(5) { animation-delay: 0.48s; }

@keyframes wave {
  from { height: 8px; }
  to { height: 28px; }
}

.active-sound-ono {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 190, 11, 0.2);
  color: #ffbe0b;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

body.high-contrast .active-sound-ono {
  background: #ffe600;
  color: #000000;
}

.active-sound-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.active-sound-fact {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.active-sound-controls,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.action-pill:hover {
  transform: scale(1.03);
}

.action-pill-accent {
  background: #ffbe0b;
  color: #10172a;
  border-color: #ffbe0b;
}

body.high-contrast .action-pill {
  background: #000000;
  border: 4px solid #ffe600;
  color: #ffe600;
}

body.high-contrast .action-pill-accent {
  background: #ffe600;
  color: #000000;
}

/* Mriežka zvukov v téme */
.sounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.sound-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.sound-card-btn:hover {
  transform: translateY(-3px);
  border-color: #ffbe0b;
  background: var(--bg-surface-2);
}

.sound-card-btn.is-active {
  border-color: #00f5d4;
  background: #23355c;
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.25);
}

body.high-contrast .sound-card-btn {
  background: #000000;
  border: 4px solid #ffe600;
  color: #ffe600;
}

body.high-contrast .sound-card-btn.is-active,
body.high-contrast .sound-card-btn:hover {
  background: #ffe600;
  color: #000000;
}

.sound-card-emoji {
  font-size: 3.4rem;
  line-height: 1;
}

.sound-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.sound-card-ono {
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.high-contrast .sound-card-btn:hover .sound-card-ono,
body.high-contrast .sound-card-btn.is-active .sound-card-ono {
  color: #000000;
}

/* ==================== ZVUKOVÁ HÁDANKA (KVÍZ) ==================== */
.quiz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 40px 28px;
  background: linear-gradient(145deg, #2a1e4f 0%, #1c1b3a 100%);
  border: 4px solid rgba(241, 91, 181, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

body.high-contrast .quiz-card {
  background: #000000;
  border: 5px solid #ffe600;
}

.quiz-mystery-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 4px solid #f15bb5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  transition: transform 0.25s ease;
}

body.high-contrast .quiz-mystery-icon {
  background: #000000;
  border: 5px solid #ffe600;
}

.quiz-mystery-icon.solved {
  border-color: #00f5d4;
  transform: scale(1.08);
}

.quiz-prompt {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.quiz-feedback {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  min-height: 1.6em;
}

.quiz-actions {
  justify-content: center;
  margin-top: 8px;
}

/* ==================== SPODNÉ VEĽKÉ TLAČIDLO MIKROFÓNU + COPYRIGHT ==================== */
.mic-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 20px 10px;
  background: linear-gradient(to top, rgba(16, 23, 42, 0.98) 78%, rgba(16, 23, 42, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.copyright-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.heart-icon {
  display: inline-block;
  animation: heartBeat 1.8s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

body.high-contrast .copyright-line {
  color: #ffffff;
}

body.high-contrast .mic-dock {
  background: #000000;
  border-top: 3px solid #ffe600;
}

.btn-mic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(760px, 100%);
  padding: 20px 30px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: var(--mic-bg);
  color: #06141b;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 200, 150, 0.35);
  transition: transform 0.14s ease, box-shadow 0.15s ease;
}

.btn-mic:hover {
  transform: scale(1.015);
}

.btn-mic.listening {
  background: var(--mic-listening);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 10px rgba(255, 77, 109, 0.25), 0 12px 30px rgba(230, 57, 70, 0.45);
}

body.high-contrast .btn-mic {
  background: #ffe600;
  color: #000000;
  border: 5px solid #ffffff;
  box-shadow: none;
}

body.high-contrast .btn-mic.listening {
  background: #ff3b30;
  color: #ffffff;
  border-color: #ffe600;
}

.mic-icon {
  font-size: 1.9rem;
}

.mic-bars {
  display: none;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.btn-mic.listening .mic-bars {
  display: inline-flex;
}

.mic-bars i {
  display: block;
  width: 5px;
  height: 8px;
  border-radius: 4px;
  background: currentColor;
  animation: wave 0.5s ease-in-out infinite alternate;
}

.mic-bars i:nth-child(2) { animation-delay: 0.12s; }
.mic-bars i:nth-child(3) { animation-delay: 0.24s; }
.mic-bars i:nth-child(4) { animation-delay: 0.36s; }

/* ==================== PANEL PRE UČITEĽKU ==================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.6);
}

.teacher-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(460px, 95vw);
  background: #151e36;
  border-left: 3px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

body.high-contrast .teacher-drawer {
  background: #000000;
  border-left: 4px solid #ffe600;
}

.teacher-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 2px solid var(--border-subtle);
}

.drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.btn-close-drawer {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.setting-group {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-group h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffbe0b;
}

.setting-label {
  font-weight: 700;
  font-size: 0.98rem;
}

.setting-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid var(--border-subtle);
  background: #0d1324;
  color: #ffffff;
  font-size: 0.95rem;
}

.setting-range {
  width: 100%;
  accent-color: #ffbe0b;
}

.setting-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  cursor: pointer;
}

.setting-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #00d09c;
}

.drawer-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid #00d09c;
  background: rgba(0, 208, 156, 0.15);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.setting-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.shortcuts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #0d1324;
  border: 1px solid var(--border-subtle);
  font-family: monospace;
  font-weight: 700;
  color: #ffbe0b;
}

.dictionary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dict-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.dict-chip:hover {
  border-color: #ffbe0b;
}

/* ==================== RESPONZIVITA (TABLET A MOBIL) ==================== */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 16px;
    gap: 12px;
  }

  .main-container {
    padding: 16px 14px 185px;
    gap: 20px;
  }

  .status-banner {
    padding: 14px 16px;
    gap: 14px;
  }

  .status-mascot.boy-avatar {
    width: 68px;
    height: 68px;
  }

  .themes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .theme-tile {
    min-height: 165px;
    padding: 22px 18px;
  }

  .detail-view,
  .quiz-view {
    gap: 20px;
  }

  .active-sound-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 18px;
  }

  .active-sound-controls {
    justify-content: center;
  }

  .sounds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sound-card-btn {
    padding: 18px 12px;
  }

  .quiz-card {
    padding: 26px 18px;
  }

  .themes-pagination {
    justify-content: center;
    text-align: center;
  }

  .page-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.3rem;
  }

  .top-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .status-banner {
    flex-direction: column;
    text-align: center;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-back {
    width: 100%;
    justify-content: center;
  }

  .action-pill {
    width: 100%;
    justify-content: center;
  }

  .btn-mic {
    padding: 16px 18px;
    font-size: 1.12rem;
    gap: 10px;
  }

  .copyright-line {
    font-size: 0.78rem;
    padding: 0 6px;
  }
}
