/* ============================================================ */
/* ROUNDS 31-45 — ReviseKit V8 Feature Styles                    */
/* ============================================================ */

/* ============================================================ */
/* ROUND 31: XP BAR                                             */
/* ============================================================ */

.xp-bar-wrap {
  /* FIX 2: Better spacing and min-width */
  margin: 8px 0 4px;
  padding: 8px 12px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 12px;
  min-width: 140px;
  flex: 1;
}

.xp-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.xp-level-label {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  font-weight: 500;
}

.xp-level-label strong {
  color: #a89cff;
  font-weight: 700;
}

.xp-progress-text {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
}

.xp-bar-track {
  /* FIX 2: Taller XP bar for readability */
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c63ff, #a89cff);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 3px;
}

.xp-bar-fill.xp-level-up-glow {
  animation: xpGlow 1.2s ease;
}

@keyframes xpGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 16px 4px #a89cff; }
}

/* Badges Section */
.badges-section {
  padding: 16px;
  margin-top: 8px;
}

.badges-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary, #c8d0e0);
  margin-bottom: 12px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: default;
  transition: transform 0.2s;
}

.badge-earned {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
}

.badge-locked {
  opacity: 0.4;
  filter: grayscale(0.6);
}

.badge-icon {
  font-size: 22px;
  line-height: 1;
}

.badge-label {
  font-size: 9px;
  text-align: center;
  color: var(--text-muted, #8892a4);
  line-height: 1.2;
}

/* Stats XP card */
.xp-card .stat-hero-val {
  font-size: 16px !important;
}

/* ============================================================ */
/* ROUND 32: ONBOARDING                                         */
/* ============================================================ */

#onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.onboarding-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.ob-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.ob-dot-active {
  background: #6c63ff;
  transform: scale(1.3);
}

.onboarding-step h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary, #f0f4ff);
}

.onboarding-step p {
  font-size: 14px;
  color: var(--text-muted, #8892a4);
  margin: 0 0 20px;
  line-height: 1.5;
}

.ob-big-icon {
  font-size: 48px;
  text-align: center;
  display: block;
  margin-bottom: 12px;
}

.ob-radio-group,
.ob-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ob-radio-label,
.ob-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 14px;
  color: var(--text-primary, #f0f4ff);
}

.ob-radio-label:hover,
.ob-check-label:hover {
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.06);
}

.ob-radio-label input,
.ob-check-label input {
  accent-color: #6c63ff;
}

.ob-tier-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.ob-tier-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #f0f4ff);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ob-tier-btn:hover {
  border-color: #6c63ff;
  background: rgba(108, 99, 255, 0.08);
}

.ob-date-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #f0f4ff);
  font-size: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
  appearance: none;
  color-scheme: dark;
}

.ob-next-btn,
.ob-start-btn,
.ob-finish-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff, #a89cff);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}

.ob-next-btn:hover,
.ob-start-btn:hover,
.ob-finish-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ob-skip-btn {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.ob-summary-box {
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.ob-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--text-secondary, #c8d0e0);
}

.ob-summary-val {
  font-weight: 600;
  color: #a89cff;
}

/* ============================================================ */
/* ROUND 33: MATCH GAME                                         */
/* ============================================================ */

#screen-match-game {
  padding: 16px;
}

.match-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.match-timer-display {
  font-size: 20px;
  font-weight: 700;
  color: #a89cff;
  margin-left: auto;
}

.match-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

#match-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

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

.match-tile {
  padding: 12px 10px;
  min-height: 64px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #f0f4ff);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  line-height: 1.4;
  word-break: break-word;
}

.match-tile:hover {
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.08);
}

.match-tile.match-selected {
  border-color: #6c63ff;
  background: rgba(108, 99, 255, 0.16);
  transform: scale(1.03);
}

.match-tile.match-matched {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  pointer-events: none;
  animation: matchCorrect 0.4s ease;
}

.match-tile.match-wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  animation: matchWrong 0.5s ease;
}

@keyframes matchCorrect {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

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

#match-end-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}

.match-end-icon { font-size: 48px; }

.match-end-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.match-end-time-label {
  font-size: 14px;
  color: var(--text-muted, #8892a4);
}

#match-end-time {
  font-size: 28px;
  font-weight: 700;
  color: #6c63ff;
}

.match-end-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ============================================================ */
/* ROUND 34: CLOZE                                              */
/* ============================================================ */

#screen-cloze {
  padding: 16px;
}

.cloze-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cloze-progress-text {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
  margin-left: auto;
}

.cloze-progress-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.cloze-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6c63ff, #a89cff);
  border-radius: 2px;
  transition: width 0.4s;
}

.cloze-card {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.cloze-question-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.cloze-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cloze-answer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 6px;
}

.cloze-answer-text {
  font-size: 14px;
  color: var(--text-secondary, #c8d0e0);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cloze-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

#cloze-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary, #f0f4ff);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

#cloze-input:focus {
  border-color: #6c63ff;
}

#cloze-input:disabled {
  opacity: 0.7;
}

#cloze-check-btn,
#cloze-next-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.15s;
}

#cloze-check-btn {
  background: #6c63ff;
  color: white;
}

#cloze-next-btn {
  background: rgba(108,99,255,0.15);
  color: #a89cff;
  border: 1px solid rgba(108,99,255,0.3);
}

.cloze-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.cloze-correct {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.cloze-wrong {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.cloze-reveal {
  font-weight: 700;
  color: #22c55e;
}

#cloze-board { display: block; }

#cloze-end-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 16px;
  text-align: center;
}

.cloze-end-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.cloze-end-stat { text-align: center; }
.cloze-end-val { font-size: 28px; font-weight: 800; color: #6c63ff; }
.cloze-end-label { font-size: 12px; color: var(--text-muted, #8892a4); }

/* ============================================================ */
/* ROUND 35: STUDY PLANNER                                      */
/* ============================================================ */

#screen-study-planner {
  padding: 16px;
}

.planner-header {
  margin-bottom: 16px;
}

.planner-countdown {
  display: inline-block;
  background: rgba(108,99,255,0.12);
  color: #a89cff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.planner-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.planner-regen-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(108,99,255,0.3);
  background: rgba(108,99,255,0.1);
  color: #a89cff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.planner-regen-btn:hover { opacity: 0.85; }

#study-planner-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-bottom: 80px;
}

.planner-day-card {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.planner-today {
  border-color: rgba(108,99,255,0.5);
  background: rgba(108,99,255,0.06);
  box-shadow: 0 0 0 1px rgba(108,99,255,0.2);
}

.planner-day-header {
  margin-bottom: 10px;
}

.planner-day-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
}

.planner-tasks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.planner-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--task-color, #6c63ff);
  background: rgba(255,255,255,0.03);
  gap: 10px;
}

.planner-task-label {
  font-size: 13px;
  color: var(--text-secondary, #c8d0e0);
  flex: 1;
}

.planner-task-start {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(108,99,255,0.3);
  background: rgba(108,99,255,0.1);
  color: #a89cff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.planner-task-start:hover { opacity: 0.8; }

/* ============================================================ */
/* ROUND 36: POMODORO TIMER                                     */
/* ============================================================ */

#pomodoro-float-btn {
  position: fixed;
  bottom: 90px;
  right: 16px;
  /* FIX 3: Slightly smaller FAB */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #a89cff);
  border: none;
  cursor: pointer;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(108,99,255,0.4);
  color: white;
  font-size: 16px;
  transition: transform 0.2s, opacity 0.2s;
  /* FIX 3: Semi-transparent when not in use */
  opacity: 0.72;
}

#pomodoro-float-btn:hover { transform: scale(1.08); opacity: 1; }

#pom-float-time {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 1px;
}

#pomodoro-overlay {
  position: fixed;
  bottom: 152px;
  right: 16px;
  width: 280px;
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 18px;
  z-index: 499;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: none;
}

.pom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pom-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

#pom-minimise-btn {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.pom-ring-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 12px;
}

.pom-ring {
  transform: rotate(-90deg);
}

.pom-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

#pom-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

#pom-time-display {
  position: absolute;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary, #f0f4ff);
}

#pom-status-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 12px;
}

.pom-settings {
  margin-bottom: 12px;
}

.pom-setting-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.pom-setting-label {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  min-width: 52px;
}

.pom-study-pill,
.pom-break-pill {
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary, #c8d0e0);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pom-study-pill.active,
.pom-break-pill.active {
  background: rgba(108,99,255,0.2);
  border-color: #6c63ff;
  color: #a89cff;
}

.pom-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pom-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#pom-start-btn { background: #6c63ff; color: white; }
#pom-pause-btn { background: rgba(239,68,68,0.15); color: #f87171; display: none; }
#pom-reset-btn { background: rgba(255,255,255,0.06); color: var(--text-muted, #8892a4); }

.pom-session-count {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  margin-top: 10px;
}

/* ============================================================ */
/* ROUND 37: REVISION NOTES                                     */
/* ============================================================ */

.topic-tab-bar {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topic-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-muted, #8892a4);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.topic-tab.active {
  color: #a89cff;
  border-bottom-color: #6c63ff;
}

.notes-view-area {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
  padding-bottom: 80px;
}

.notes-section { margin-bottom: 24px; }

.notes-topic-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  margin: 0 0 12px;
}

.notes-key-terms-wrap {
  margin-bottom: 14px;
}

.notes-kt-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.notes-key-terms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notes-key-term {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  color: #22d3ee;
  font-size: 12px;
  font-weight: 500;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-point {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.notes-q {
  display: block;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 4px;
  font-size: 14px;
}

.notes-a {
  display: block;
  color: var(--text-secondary, #c8d0e0);
  font-size: 13px;
}

.notes-highlight {
  background: rgba(34,211,238,0.15);
  color: #22d3ee;
  padding: 0 3px;
  border-radius: 3px;
}

.notes-print-btn,
.notes-practice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 6px 0 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.notes-print-btn {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary, #c8d0e0);
}

.notes-practice-btn {
  background: rgba(108,99,255,0.15);
  color: #a89cff;
}

.notes-empty {
  text-align: center;
  color: var(--text-muted, #8892a4);
  padding: 40px 20px;
  font-size: 14px;
}

/* ============================================================ */
/* ROUND 38: ADAPTIVE DIFFICULTY                                */
/* ============================================================ */

.topic-difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.difficulty-strong { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); }
.difficulty-moderate { background: #f59e0b; }
.difficulty-weak { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }

.smart-study-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px dashed rgba(108,99,255,0.4);
  background: rgba(108,99,255,0.06);
  color: #a89cff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}

.smart-study-btn:hover {
  border-color: rgba(108,99,255,0.7);
  background: rgba(108,99,255,0.1);
}

.smart-icon { font-size: 20px; }

/* ============================================================ */
/* ROUND 39: MASTERY MAP                                        */
/* ============================================================ */

.mastery-map-section {
  padding: 16px;
  margin-top: 8px;
}

.mastery-map-header {
  margin-bottom: 12px;
}

.mastery-map-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 8px;
}

.mastery-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted, #8892a4);
}

.mastery-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mastery-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.mastery-filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted, #8892a4);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.mastery-filter-pill.active {
  background: rgba(var(--pill-color, 108,99,255), 0.15);
  border-color: var(--pill-color, #6c63ff);
  color: var(--text-primary, #f0f4ff);
}

.mastery-map-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mastery-map-group { }

.mastery-map-subject-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.mastery-map-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mastery-cell {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
}

.mastery-cell:hover { transform: scale(1.3); }

.mastery-none     { background: rgba(255,255,255,0.08); }
.mastery-weak     { background: #ef4444; }
.mastery-moderate { background: #f59e0b; }
.mastery-strong   { background: #22c55e; }
.mastery-mastered { background: #3b82f6; }

.mastery-tooltip {
  position: absolute;
  background: rgba(10,14,30,0.92);
  color: #f0f4ff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  display: none;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================ */
/* ROUND 40: QUICK QUIZ                                         */
/* ============================================================ */

#quick-quiz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.85);
  align-items: center;
  justify-content: center;
  z-index: 800;
  padding: 16px;
}

.quick-quiz-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.qq-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary, #f0f4ff);
}

.qq-modal-sub {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 16px;
}

.qq-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #8892a4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.qq-subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.qq-subject-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.15s;
}

.qq-subject-item:hover { border-color: rgba(108,99,255,0.4); }

.qq-subject-item label {
  font-size: 13px;
  color: var(--text-primary, #f0f4ff);
  cursor: pointer;
}

.qq-subject-check { accent-color: #6c63ff; }

.qq-count-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.qq-count-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted, #8892a4);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.qq-count-pill.active {
  background: rgba(108,99,255,0.2);
  border-color: #6c63ff;
  color: #a89cff;
}

.qq-timed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary, #c8d0e0);
}

#qq-timed-toggle { accent-color: #6c63ff; }

#qq-start-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff, #a89cff);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

#qq-modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 18px;
  cursor: pointer;
  margin-top: -4px;
}

#screen-quick-quiz {
  padding: 16px;
  padding-bottom: 80px;
}

#qq-board { display: block; }

.qq-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

#qq-timer-display {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: #a89cff;
}

.qq-progress-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

#qq-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6c63ff, #a89cff);
  transition: width 0.3s;
}

.qq-question-card {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}

#qq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  line-height: 1.5;
}

#qq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.qq-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary, #f0f4ff);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}

.qq-option-btn:hover { border-color: rgba(108,99,255,0.5); background: rgba(108,99,255,0.06); }

.qq-opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.qq-option-btn.qq-correct { border-color: #22c55e; background: rgba(34,197,94,0.12); color: #22c55e; }
.qq-option-btn.qq-wrong { border-color: #ef4444; background: rgba(239,68,68,0.1); color: #f87171; }
.qq-option-btn.qq-correct-reveal { border-color: #22c55e; background: rgba(34,197,94,0.08); }

.qq-feedback {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  display: none;
}

.qq-fb-correct { background: rgba(34,197,94,0.12); color: #22c55e; }
.qq-fb-wrong { background: rgba(239,68,68,0.1); color: #f87171; }

#qq-end-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}

.qq-end-stats { display: flex; gap: 24px; justify-content: center; }
.qq-end-stat { text-align: center; }
.qq-end-val { font-size: 28px; font-weight: 800; color: #6c63ff; }
.qq-end-label { font-size: 12px; color: var(--text-muted, #8892a4); }

#qq-breakdown {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 8px;
}

.qq-breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.qq-br-correct { background: rgba(34,197,94,0.08); }
.qq-br-wrong { background: rgba(239,68,68,0.08); }
.qq-br-num { font-weight: 700; min-width: 20px; color: var(--text-muted, #8892a4); }
.qq-br-q { flex: 1; color: var(--text-secondary, #c8d0e0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-br-status { font-weight: 700; }
.qq-br-correct .qq-br-status { color: #22c55e; }
.qq-br-wrong .qq-br-status { color: #ef4444; }

.qq-end-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ============================================================ */
/* ROUND 41: MISTAKE JOURNAL                                    */
/* ============================================================ */

#screen-mistake-journal {
  padding: 16px;
  padding-bottom: 80px;
}

.mj-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mj-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.mj-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
}

.mj-empty {
  text-align: center;
  color: var(--text-muted, #8892a4);
  padding: 40px 20px;
  font-size: 14px;
}

.mj-date-group { margin-bottom: 20px; }

.mj-date-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #8892a4);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mj-card {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: opacity 0.3s;
}

.mj-resolved { opacity: 0.5; }

.mj-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 10px;
  line-height: 1.4;
}

.mj-answers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.mj-your-ans,
.mj-correct-ans {
  font-size: 13px;
  color: var(--text-secondary, #c8d0e0);
}

.mj-label { font-weight: 600; }
.mj-wrong-label { color: #f87171; }
.mj-correct-label { color: #22c55e; }

.mj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mj-topic-tag {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  background: rgba(255,255,255,0.05);
  padding: 3px 8px;
  border-radius: 20px;
}

.mj-resolve-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
  color: #22c55e;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mj-resolve-btn:hover { opacity: 0.8; }

/* ============================================================ */
/* ROUND 42: SOCIAL SHARING                                     */
/* ============================================================ */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-share-btn {
  margin-left: auto;
  padding: 6px 14px;
  font-size: 12px;
}

/* ============================================================ */
/* ROUND 43: ACCESSIBILITY SETTINGS                             */
/* ============================================================ */

#a11y-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 16px;
}

.a11y-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
}

.a11y-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.a11y-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

#a11y-close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 20px;
  cursor: pointer;
}

.a11y-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.a11y-option-row:last-child { border-bottom: none; }

.a11y-option-info { flex: 1; }

.a11y-option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
}

.a11y-option-desc {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  margin-top: 2px;
}

/* Toggle switch */
.a11y-toggle {
  width: 44px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.a11y-toggle input {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

.a11y-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.a11y-toggle input:checked + .a11y-toggle-track {
  background: #6c63ff;
}

.a11y-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
}

.a11y-toggle input:checked + .a11y-toggle-track::after {
  left: 22px;
}

/* Body class effects */
body.high-contrast {
  --card-bg: #000;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  filter: contrast(1.25);
}

body.high-contrast .navbar,
body.high-contrast .screen {
  border: 2px solid rgba(255,255,255,0.2);
}

body.dyslexia-font * {
  font-family: 'OpenDyslexic', Arial, sans-serif !important;
}

body.large-text {
  font-size: 110%;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* ============================================================ */
/* ROUND 44: LANDING / MARKETING PAGE                          */
/* ============================================================ */

#landing-hero {
  display: none;
  background: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(10,14,30,0) 60%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 20px 32px;
  text-align: center;
}

.landing-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a89cff;
  font-weight: 600;
  margin-bottom: 10px;
}

.landing-headline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f0f4ff, #a89cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-sub {
  font-size: 15px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.landing-stats-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.landing-stat {
  text-align: center;
}

.landing-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #a89cff;
  display: block;
}

.landing-stat-label {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

#landing-start-btn {
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff, #a89cff);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

#landing-start-btn:hover { opacity: 0.9; transform: translateY(-1px); }

#landing-pro-btn {
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary, #f0f4ff);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#landing-pro-btn:hover { background: rgba(255,255,255,0.1); }

.landing-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.landing-feature-card {
  padding: 14px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  text-align: center;
}

.landing-feature-icon { font-size: 24px; margin-bottom: 6px; display: block; }

.landing-feature-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 4px;
}

.landing-feature-desc {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  line-height: 1.4;
}

.landing-social-proof {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.landing-subject-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.landing-subject-icon {
  font-size: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.landing-icon-animate {
  opacity: 1;
  transform: translateY(0);
}

#landing-scroll-down {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 8px 20px;
  color: var(--text-muted, #8892a4);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}

#landing-scroll-down:hover { border-color: rgba(108,99,255,0.5); }

/* ============================================================ */
/* ROUND 45: SCREEN TRANSITIONS & SKELETON                      */
/* ============================================================ */

.skeleton-wrap {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skel-line {
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 7px;
  animation: skeletonPulse 1.4s ease infinite;
}

.skel-line-lg { width: 80%; height: 18px; }
.skel-line-md { width: 60%; }
.skel-line-sm { width: 40%; }

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ============================================================ */
/* SHARED BUTTON STYLES                                         */
/* ============================================================ */

.btn-primary {
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6c63ff, #a89cff);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary, #c8d0e0);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Screen header for new screens */
#screen-match-game .screen-header,
#screen-cloze .screen-header,
#screen-study-planner .screen-header,
#screen-quick-quiz .screen-header,
#screen-mistake-journal .screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 0;
}

.screen-title-block h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #f0f4ff);
}

.screen-title-block p {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
  margin: 0;
}

/* Scroll containment for new screens */
#screen-match-game,
#screen-cloze,
#screen-study-planner,
#screen-quick-quiz,
#screen-mistake-journal {
  overflow-y: auto;
  padding-bottom: 80px;
}

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

@media (max-width: 380px) {
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-features-row { grid-template-columns: 1fr; }
  .landing-headline { font-size: 28px; }
}

/* ============================================================
   DESKTOP OVERHAUL: rounds31to45.css desktop additions
   ============================================================ */

@media (min-width: 768px) {
  /* Onboarding modal centred, wider */
  .onboarding-modal {
    max-width: 520px;
    padding: 36px 32px;
  }

  .onboarding-step h2 {
    font-size: 26px;
  }

  .onboarding-step p {
    font-size: 15px;
  }

  /* Landing hero: wider and more spread out */
  .landing-headline {
    font-size: 44px;
  }

  .landing-sub {
    font-size: 16px;
    max-width: 480px;
  }

  .landing-stat-val {
    font-size: 28px;
  }

  .landing-stat-label {
    font-size: 12px;
  }

  .landing-features-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-feature-card {
    padding: 20px 16px;
    transition: all 0.25s;
  }

  .landing-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.1);
  }

  .landing-feature-title {
    font-size: 13px;
  }

  .landing-feature-desc {
    font-size: 12px;
  }

  .landing-stats-row {
    gap: 36px;
  }

  .landing-cta-row {
    gap: 14px;
  }

  #landing-start-btn,
  #landing-pro-btn {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 16px;
  }

  /* Screen headers in rounds31-45 screens */
  #screen-match-game .screen-header,
  #screen-cloze .screen-header,
  #screen-study-planner .screen-header,
  #screen-quick-quiz .screen-header,
  #screen-mistake-journal .screen-header {
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Match game board: wider columns */
  #match-board {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .landing-headline {
    font-size: 52px;
  }

  .landing-sub {
    font-size: 17px;
    max-width: 560px;
  }

  .landing-stat-val {
    font-size: 32px;
  }

  .landing-features-row {
    max-width: 860px;
    gap: 18px;
  }

  .landing-feature-icon {
    font-size: 30px;
  }

  .landing-stats-row {
    gap: 48px;
  }
}

