/* ==========================================================================
   MOOD MISSION: HOW ARE YOU TODAY?
   Classroom Speaking Lesson App Stylesheet
   Optimized for Interactive Smartboards, Laptops & Tablets
   ========================================================================== */

:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Comic Sans MS", "Chalkboard SE", sans-serif;
  
  /* Palette - Fresh, Vibrant, Non-preschool, High-contrast */
  --bg-main: #f0f5ff;
  --bg-card: #ffffff;
  --bg-card-alt: #f8faff;
  --bg-dark: #1e2538;
  
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3f37c9;
  --primary-subtle: #eef4ff;
  
  --accent-happy: #ffb703;
  --accent-happy-dark: #fb8500;
  --accent-tired: #8e9aaf;
  --accent-hungry: #fb5607;
  --accent-excited: #7209b7;
  --accent-bored: #4a5568;
  
  --success: #2ec4b6;
  --success-dark: #0f9f90;
  --warning: #ff9f1c;
  --danger: #e63946;
  
  --text-main: #1d2d44;
  --text-muted: #576f8a;
  --text-light: #ffffff;
  --text-hint: #64748b;
  
  --border-light: #d8e2ec;
  --border-strong: #94a3b8;
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 28px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px -3px rgba(30, 41, 59, 0.1), 0 4px 8px -4px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 20px 30px -5px rgba(30, 41, 59, 0.15), 0 8px 12px -6px rgba(30, 41, 59, 0.08);
  --shadow-3d: 0 6px 0 var(--shadow-color, #2b3990);
  
  --transition-quick: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: var(--bg-main);
  background-image: 
    radial-gradient(#c7d7ff 1.5px, transparent 1.5px), 
    radial-gradient(#c7d7ff 1.5px, var(--bg-main) 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.4;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Turkish Hint Styling */
.tr-hint {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
  font-style: italic;
  color: var(--text-hint);
  margin-top: 3px;
  pointer-events: none;
  transition: opacity var(--transition-quick);
}

body.tr-off .tr-hint {
  display: none !important;
}

/* Button & Tactile Controls - Smartboard Optimized */
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  font-weight: 700;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-quick), box-shadow var(--transition-quick), background-color var(--transition-quick);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  position: relative;
  min-height: 54px;
  padding: 10px 22px;
}

button:focus-visible {
  outline: 4px solid #f72585;
  outline-offset: 3px;
}

/* 3D Tactile Buttons */
.btn-3d {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 6px 0 var(--primary-dark), 0 10px 14px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

.btn-3d:active, .btn-3d.pressed {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--primary-dark), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-green {
  background: var(--success);
  color: #fff;
  box-shadow: 0 6px 0 var(--success-dark), 0 10px 14px rgba(46, 196, 182, 0.25);
}
.btn-green:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--success-dark);
}

.btn-yellow {
  background: #ffb703;
  color: #3d2200;
  box-shadow: 0 6px 0 #d48b00, 0 10px 14px rgba(255, 183, 3, 0.3);
}
.btn-yellow:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d48b00;
}

.btn-coral {
  background: #fb5607;
  color: #fff;
  box-shadow: 0 6px 0 #c23800, 0 10px 14px rgba(251, 86, 7, 0.3);
}
.btn-coral:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #c23800;
}

.btn-purple {
  background: #7209b7;
  color: #fff;
  box-shadow: 0 6px 0 #4f0680, 0 10px 14px rgba(114, 9, 183, 0.3);
}
.btn-purple:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4f0680;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 2px solid var(--border-light);
  box-shadow: 0 5px 0 var(--border-strong), 0 8px 12px rgba(0, 0, 0, 0.08);
}
.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--border-strong);
}

.btn-large {
  min-height: 68px;
  padding: 14px 32px;
  font-size: 1.25rem;
  border-radius: var(--border-radius-lg);
}

/* Audio Pronunciation Button */
.btn-speak-audio {
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 50%;
  padding: 0;
  background: #eef4ff;
  color: var(--primary);
  border: 2px solid #bfd3fb;
  box-shadow: 0 4px 0 #95b6f3;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.btn-speak-audio:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #95b6f3;
}
.btn-speak-audio.speaking {
  animation: pulse-ring 1s infinite alternate;
  background: #4895ef;
  color: #fff;
}

@keyframes pulse-ring {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); filter: drop-shadow(0 0 10px #4895ef); }
}

/* Speaking Accountability Button */
.btn-accountability {
  background: linear-gradient(135deg, #fb5607, #ff006e);
  color: #ffffff;
  font-size: 1.35rem;
  padding: 16px 36px;
  min-height: 72px;
  border-radius: var(--border-radius-full);
  box-shadow: 0 8px 0 #ab0049, 0 14px 20px rgba(255, 0, 110, 0.35);
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: gentle-glow 2s infinite ease-in-out;
}
.btn-accountability:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #ab0049;
}

@keyframes gentle-glow {
  0%, 100% { box-shadow: 0 8px 0 #ab0049, 0 14px 20px rgba(255, 0, 110, 0.35); }
  50% { box-shadow: 0 8px 0 #ab0049, 0 16px 28px rgba(255, 0, 110, 0.55); }
}

/* App Header */
.app-header {
  background: #ffffff;
  border-bottom: 3px solid #e2e8f0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
}

.app-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-weight: 800;
  font-size: 1.1rem;
}
.stat-pill.stars {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}
.stat-pill.speaks {
  color: #be185d;
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-toggle {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: var(--border-radius-sm);
  padding: 0;
  font-size: 1.2rem;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: var(--text-main);
}
.btn-icon-toggle.active {
  background: #e0e7ff;
  border-color: #818cf8;
  color: var(--primary);
}

/* Main Container */
.app-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Views & Screens */
.view-screen {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s ease-out;
}
.view-screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

/* Landing / Hero Screen */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 30px 16px;
  max-width: 960px;
  margin: auto;
}

.hero-mascot-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 20px;
}

.mascot-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 20px rgba(67, 97, 238, 0.25));
  animation: mascot-idle 3s ease-in-out infinite alternate;
}

@keyframes mascot-idle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

.hero-title-group {
  margin-bottom: 28px;
}

.hero-super-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.hero-main-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #1e1b4b;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}

/* Mission Hub Map */
.hub-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hub-title-box h2 {
  font-size: 2rem;
  color: #1e1b4b;
}

.hub-filters {
  display: flex;
  gap: 8px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--border-radius-full);
}

.hub-filter-btn {
  min-height: 42px;
  padding: 6px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hub-filter-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.zone-card {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.zone-card:hover, .zone-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.zone-card.completed {
  border-color: var(--success);
  background: #f0fdfa;
}

.zone-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #e0e7ff;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
}
.zone-card.completed .zone-card-badge {
  background: #ccfbf1;
  color: var(--success-dark);
}

.zone-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.zone-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.zone-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Activity Frame / Screen Wrapper */
.activity-wrapper {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.activity-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

.activity-title-area h2 {
  font-size: 1.6rem;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-prompt-banner {
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
  border-left: 6px solid var(--primary);
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prompt-text-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
}

/* Speaking Challenge Banner Overlay */
.speaking-alert-box {
  background: #fff1f2;
  border: 3px dashed #f43f5e;
  border-radius: var(--border-radius-md);
  padding: 16px 22px;
  margin: 18px 0;
  text-align: center;
  animation: pulse-soft 2s infinite ease-in-out;
}
.speaking-alert-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.speaking-target-phrase {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1e1b4b;
  margin: 8px 0;
  background: #ffffff;
  padding: 8px 18px;
  display: inline-block;
  border-radius: var(--border-radius-sm);
  border: 2px solid #fecdd3;
}

/* Emotion Face Avatar Cards */
.emotion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.emotion-card-btn {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 180px;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 0 #cbd5e1;
}

.emotion-card-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 0 #94a3b8;
}

.emotion-card-btn:active, .emotion-card-btn.selected {
  transform: translateY(4px);
  border-color: var(--primary);
  box-shadow: 0 2px 0 var(--primary-dark);
  background: #f0f5ff;
}

.emotion-card-btn.correct-highlight {
  border-color: var(--success);
  background: #f0fdfa;
  box-shadow: 0 4px 0 var(--success-dark);
  animation: correct-wiggle 0.5s ease;
}

@keyframes correct-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg) scale(1.05); }
  75% { transform: rotate(4deg) scale(1.05); }
}

.avatar-face-svg {
  width: 90px;
  height: 90px;
  transition: transform var(--transition-bounce);
}
.emotion-card-btn:hover .avatar-face-svg {
  transform: scale(1.1);
}

.emotion-word-label {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: capitalize;
}

/* Sentence Transform Area (Game 1) */
.sentence-builder-display {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--border-radius-md);
  border: 2px dashed #cbd5e1;
  min-height: 90px;
  margin: 18px 0;
}

.building-block {
  background: #ffffff;
  border: 2px solid #94a3b8;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 0 #cbd5e1;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-sentence-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Matching Zone (Game 3) */
.match-columns-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 20px 0;
}

.match-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-item {
  background: #ffffff;
  border: 3px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 5px 0 #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-quick);
  font-size: 1.35rem;
  font-weight: 800;
}

.match-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.match-item.selected {
  border-color: #f72585;
  background: #fff0f6;
  box-shadow: 0 5px 0 #f72585;
  transform: translateY(-2px);
}

.match-item.matched {
  border-color: var(--success);
  background: #ecfdf5;
  color: #065f46;
  box-shadow: 0 3px 0 var(--success-dark);
  pointer-events: none;
  opacity: 0.85;
}

.match-item.shake {
  animation: shake 0.4s ease;
  border-color: var(--danger);
}

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

/* Memory Game (Game 4) */
.memory-stats-bar {
  display: flex;
  justify-content: space-around;
  background: #f1f5f9;
  padding: 12px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 1.15rem;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.memory-card {
  perspective: 1000px;
  height: 180px;
  min-width: 120px;
  cursor: pointer;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--border-radius-md);
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  border: 3px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  padding: 10px;
  box-sizing: border-box;
}

.memory-card-front {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #ffffff;
  box-shadow: 0 6px 0 #172554, 0 10px 18px rgba(30, 58, 138, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.memory-card-front .card-cover-pattern {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.memory-card-front .card-cover-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #93c5fd;
  text-transform: uppercase;
}

.memory-card-back {
  background: #ffffff;
  transform: rotateY(180deg);
  border-color: var(--primary);
  font-weight: 800;
  box-shadow: 0 6px 0 #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.memory-card-back .avatar-face-svg {
  width: 95px;
  height: 95px;
  max-width: 90%;
  display: block;
}

.memory-card-back .card-word-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1e293b;
  text-transform: uppercase;
  margin-top: 4px;
}

.memory-card-back .card-tr-hint {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  font-style: italic;
}

.memory-card.matched .memory-card-back {
  background: #ecfdf5;
  border-color: var(--success);
  box-shadow: 0 6px 0 var(--success-dark);
}

/* Mektebim Koleji Institutional Styling */
.mektebim-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: var(--border-radius-md);
  border: 2px solid #fee2e2;
  box-shadow: var(--shadow-sm);
}

.mektebim-crest {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.mektebim-logo-img {
  height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
}

.hero-mektebim-logo {
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

/* Universal Game Question / Sentence Tracker Bar */
.game-tracker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 8px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  gap: 12px;
  flex-wrap: wrap;
}

.game-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.game-progress-pill strong {
  color: var(--primary);
  font-size: 1.25rem;
}

.game-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-mini {
  min-height: 36px !important;
  padding: 4px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
}

.mektebim-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mektebim-main-name {
  font-size: 1rem;
  font-weight: 900;
  color: #991b1b;
  letter-spacing: -0.01em;
}

.mektebim-sub-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e3a8a;
}

.mektebim-teacher-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}

.hero-mektebim-card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 50%, #fef2f2 100%);
  border: 2.5px solid #f87171;
  border-radius: var(--border-radius-lg);
  padding: 18px 24px;
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.hero-mektebim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 2px solid #fee2e2;
  padding-bottom: 12px;
}

.hero-mektebim-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-mektebim-info-notice {
  background: #f8fafc;
  border-left: 5px solid #4361ee;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

/* Smartboard Listen & Touch (Game 2) */
.g2-smartboard-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.g2-tracker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--primary-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 12px 20px;
}

.g2-progress-pill {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.g2-quick-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.g2-nav-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-quick);
}

.g2-nav-dot:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.08);
}

.g2-nav-dot.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-dark);
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.35);
}

.g2-nav-dot.completed {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success-dark);
}

.g2-audio-hero {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.g2-btn-replay {
  background: #ffb703;
  color: #1e1b4b;
  font-size: 1.4rem;
  font-weight: 900;
  padding: 14px 34px;
  border-radius: var(--border-radius-full);
  box-shadow: 0 6px 0 #fb8500, 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.g2-btn-replay:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #fb8500;
}

.g2-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.g2-sentence-card {
  background: #ffffff;
  border: 3.5px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 20px 18px;
  min-height: 95px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 6px 0 #cbd5e1;
  transition: all var(--transition-quick);
  text-align: left;
}

.g2-sentence-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #94a3b8;
}

.g2-sentence-card:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--border-strong);
}

.g2-sentence-card.correct {
  background: #ecfdf5;
  border-color: var(--success);
  box-shadow: 0 6px 0 var(--success-dark);
  animation: correct-wiggle 0.5s ease;
}

.g2-sentence-card.wrong {
  border-color: var(--danger);
  background: #fff1f2;
}

.g2-sentence-card-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

/* 7th Grade Word Match (Game 3) */
.g3-theme-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  justify-content: center;
}

.g3-theme-btn {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: var(--border-radius-full);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-quick);
}

.g3-theme-btn:hover {
  border-color: #7209b7;
  color: #7209b7;
}

.g3-theme-btn.active {
  background: #7209b7;
  color: #ffffff;
  border-color: #560787;
  box-shadow: 0 4px 10px rgba(114, 9, 183, 0.3);
}

/* Sentence Factory (Game 5) */
.factory-conveyor {
  position: relative;
  background: #334155;
  border-radius: var(--border-radius-md);
  padding: 24px 16px;
  margin: 20px 0;
  overflow: hidden;
  border: 4px solid #1e293b;
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4);
}

.factory-belt-stripes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    45deg,
    #fbbf24,
    #fbbf24 15px,
    #1e293b 15px,
    #1e293b 30px
  );
  animation: belt-move 3s linear infinite;
}

@keyframes belt-move {
  0% { background-position: 0 0; }
  100% { background-position: 60px 0; }
}

.word-slot-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 90px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  border: 2px dashed #94a3b8;
  margin-bottom: 20px;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
}

.word-tile {
  background: #ffffff;
  color: #1e293b;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 12px 24px;
  min-height: 60px;
  border-radius: var(--border-radius-sm);
  border: 2px solid #cbd5e1;
  box-shadow: 0 5px 0 #94a3b8;
  cursor: pointer;
  transition: all var(--transition-quick);
}

.word-tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 0 #64748b;
}

.word-tile:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #64748b;
}

.word-tile.placed {
  opacity: 0.35;
  pointer-events: none;
}

.word-tile.in-slot {
  background: #e0e7ff;
  border-color: #6366f1;
  box-shadow: 0 4px 0 #4338ca;
}

.factory-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.factory-hint-box {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: var(--border-radius-sm);
  padding: 12px 18px;
  color: #92400e;
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
  display: none;
}

/* Question Builder & Partner Said (Game 6) */
.partner-box {
  background: #fdf2f8;
  border: 3px solid #fbcfe8;
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.partner-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

/* Silly Sentence Fixer (Game 7) */
.silly-display {
  background: #fef2f2;
  border: 3px solid #fecaca;
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.silly-sentence-broken {
  font-size: 2rem;
  font-weight: 900;
  color: #dc2626;
  text-decoration: line-through;
  margin-bottom: 8px;
}

.mascot-speech-bubble {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 18px 18px 18px 4px;
  display: inline-block;
  font-weight: 700;
  color: #475569;
  box-shadow: var(--shadow-sm);
}

/* Emoji Face Detective (Game 8) */
.mystery-detective-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.mystery-box-stage {
  position: relative;
  width: 280px;
  height: 280px;
  background: #ffffff;
  border: 4px solid #334155;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mystery-avatar-target {
  width: 220px;
  height: 220px;
}

.mystery-tiles-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  background: #1e293b;
  padding: 4px;
}

.mystery-tile {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid #60a5fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.mystery-tile.revealed {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.detective-question-banner {
  font-size: 2rem;
  font-weight: 900;
  color: #1e1b4b;
  text-align: center;
}

.detective-answers-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Situation Detective (Game 10) */
.situation-card-view {
  background: #ffffff;
  border: 3px solid #cbd5e1;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.situation-text {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 14px 0;
}

/* Spin & Speak (Game 11) */
.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  position: relative;
}

.wheel-canvas-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  border: 6px solid #1e293b;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 36px solid #e11d48;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  z-index: 10;
}

.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: #ffffff;
  border: 5px solid #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.wheel-result-card {
  background: #f8fafc;
  border: 3px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 20px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Mime Mode (Game 12 & 13) */
.mime-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  min-height: 380px;
  background: #1e293b;
  border-radius: var(--border-radius-lg);
  color: #ffffff;
}

.mime-secret-text {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 16px 0;
}

.mime-dialogue-model {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Dialogue Builder (Game 15) */
.dialogue-turn-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.dialogue-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-quick);
}

.dialogue-bubble.speaker-a {
  border-left: 6px solid #3b82f6;
}
.dialogue-bubble.speaker-b {
  border-left: 6px solid #ec4899;
}

.dialogue-bubble:hover {
  background: #e2e8f0;
}

.bubble-avatar-tag {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  background: #cbd5e1;
}

/* Class Mood Poll (Game 17) */
.poll-bars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.poll-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 16px;
}

.poll-label {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-track {
  background: #e2e8f0;
  height: 38px;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  position: relative;
}

.poll-fill {
  height: 100%;
  border-radius: var(--border-radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 8px;
}

.poll-count {
  font-size: 1.4rem;
  font-weight: 900;
  text-align: right;
}

.poll-vote-btn-group {
  display: flex;
  gap: 6px;
}

.poll-plus-btn, .poll-minus-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

/* Exit Ticket (Game 19) */
.exit-ticket-card {
  background: #ffffff;
  border: 3px solid #cbd5e1;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.badges-celebration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.badge-item {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.badge-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #166534;
}

/* Teacher Mode Drawer / Modal */
.teacher-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  border-left: 4px solid var(--primary);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.teacher-drawer.open {
  right: 0;
}

.teacher-drawer-header {
  background: #1e293b;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teacher-drawer-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teacher-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #334155;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.teams-manager-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
}

.team-name-input {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  width: 130px;
}

.team-score-display {
  font-size: 1.25rem;
  font-weight: 900;
  color: #b45309;
}

.teacher-quick-jumps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-teacher-jump {
  min-height: 44px;
  padding: 6px 10px;
  font-size: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .match-columns-container {
    grid-template-columns: 1fr;
  }
  .memory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .app-header {
    padding: 8px 14px;
  }
}
