:root {
  --google-blue: #1a73e8;
  --google-blue-hover: #174ea6;
  --google-blue-light: #e8f0fe;
  --google-red: #ea4335;
  --google-red-light: #fce8e6;
  --google-yellow: #f9ab00;
  --google-yellow-light: #fef7e0;
  --google-green: #34a853;
  --google-green-light: #e6f4ea;
  --google-purple: #9334e8;
  --google-purple-light: #f3e8fd;
  --google-teal: #00897b;
  --google-teal-light: #e0f2f1;
  --google-bg: #f8f9fa;
  --surface: #ffffff;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #80868b;
  --border-color: #dadce0;
  --border-light: #e8eaed;
  --card-radius: 16px;
  --pill-radius: 24px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Google Sans", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 4px 12px rgba(60, 64, 67, 0.12);
  --shadow-lg: 0 8px 24px rgba(60, 64, 67, 0.16);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--google-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--google-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: none;
  color: var(--google-blue-hover);
}

/* ====================================================
 * HEADER - GOOGLE SUPPORT STYLE
 * ==================================================== */
.google-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f8f9fa 0%, #dadce0 50%, #bdc1c6 100%);
  border: 1px solid #c4c7c5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-wrapper:hover .brand-icon {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.brand-icon .dashicons,
.brand-icon .dashicons-games {
  font-size: 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a73e8;
  line-height: 1;
}

.brand-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand-tag {
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background: var(--google-bg);
  color: var(--google-blue);
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--google-bg);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.user-score-val {
  color: var(--google-blue);
  font-weight: 700;
}

/* ====================================================
 * HERO SECTION - INTERACTIVE STAR DIAGRAM HERO CARD
 * ==================================================== */
.iq-hero-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 22px 20px 22px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--google-blue-light);
  color: var(--google-blue);
  padding: 6px 16px;
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-description {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

/* Star Diagram Card (Replacing traditional Search Box) */
.star-diagram-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  position: relative;
  max-width: 780px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.star-diagram-card:hover {
  border-color: #bdc1c6;
  box-shadow: var(--shadow-lg);
}

.diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
}

.diagram-persona-wrap {
  display: flex;
  flex-direction: column;
}

.diagram-persona-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.diagram-persona-title {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-stats-summary {
  display: flex;
  gap: 12px;
  background: var(--google-bg);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

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

.stat-pill-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-pill-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--google-blue);
}

/* Canvas Area */
.diagram-canvas-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 360px;
  margin: 0 auto;
}

/* 6 AXES QUICK PREVIEW CHIPS (Interactive Filter Buttons) */
.axes-chips-intro {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.axes-chips-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.axis-chip {
  appearance: none;
  background: var(--google-bg);
  border: 1px solid var(--border-light);
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
}

.axis-chip:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #bdc1c6;
  box-shadow: var(--shadow-sm);
}

.axis-chip.active {
  background: var(--google-blue-light);
  border-color: var(--google-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.25);
  transform: translateY(-2px);
}

.axis-chip-name {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.axis-chip-val {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.color-memory { color: var(--google-purple); }
.color-logic { color: var(--google-blue); }
.color-speed { color: var(--google-red); }
.color-focus { color: var(--google-green); }
.color-spatial { color: var(--google-yellow); }
.color-math { color: var(--google-teal); }

/* Interactive buttons below radar */
.star-interactive-overlay {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn-primary-google {
  background: var(--google-blue);
  color: white;
  padding: 12px 26px;
  border-radius: var(--pill-radius);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary-google:hover {
  background: var(--google-blue-hover);
  box-shadow: 0 4px 10px rgba(26,115,232,0.3);
  color: white;
  transform: translateY(-1px);
}

.btn-secondary-google {
  background: var(--surface);
  color: var(--google-blue);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--pill-radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-secondary-google:hover {
  background: var(--google-blue-light);
  border-color: #bad3fb;
}

/* ====================================================
 * GAMES CATALOG SECTION - GOOGLE SUPPORT TILES
 * ==================================================== */
.games-catalog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 64px;
  width: 100%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head.section-head-center,
.section-head-center {
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.section-head.section-head-center > div,
.section-head-center > div {
  text-align: center;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 26px);
  font-weight: 500;
  color: var(--text-primary);
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Category Filter Chips - FLEX-WRAP (NO HORIZONTAL SCROLL) */
.filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-chip {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--pill-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover {
  background: #f1f3f4;
  color: var(--text-primary);
  border-color: #bdc1c6;
}

.filter-chip.active {
  background: var(--google-blue-light);
  border-color: #bad3fb;
  color: var(--google-blue);
  font-weight: 600;
}

.filter-chip.chip-pulse {
  animation: chipPulseAnim 0.7s ease;
}

@keyframes chipPulseAnim {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(26, 115, 232, 0); }
  100% { transform: scale(1); }
}

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

/* GAMES GRID - Simple NYT / Google Support Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
  min-height: 104px;
}

.game-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.game-card-content {
  flex: 1;
  min-width: 0;
  padding: 16px 18px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card-title {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 0 0 5px 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.game-card-desc {
  font-size: 13px;
  color: var(--text-secondary, #5f6368);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-visual {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #f1f3f4;
}

.game-card-visual img,
.game-card-visual .game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-visual svg {
  width: 52px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
  transition: transform 0.22s ease;
}

.game-card:hover .game-card-visual svg {
  transform: scale(1.06);
}

.game-visual-emoji {
  font-size: 38px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
  transition: transform 0.22s ease;
}

.game-card:hover .game-visual-emoji {
  transform: scale(1.08);
}

/* Category & Pillar Color Accents */
.bg-memory { background: var(--google-purple-light); color: var(--google-purple); }
.bg-logic { background: var(--google-blue-light); color: var(--google-blue); }
.bg-speed { background: var(--google-red-light); color: var(--google-red); }
.bg-focus { background: var(--google-green-light); color: var(--google-green); }
.bg-spatial { background: var(--google-yellow-light); color: var(--google-yellow); }
.bg-math { background: var(--google-teal-light); color: var(--google-teal); }

/* ====================================================
 * SINGLE GAME PAGE - STRICTLY CENTERED, NO SIDEBAR
 * ==================================================== */
.single-game-wrapper {
  max-width: 820px;
  margin: 32px auto 64px;
  padding: 0 20px;
  width: 100%;
}

.game-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.game-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.single-game-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

/* ====================================================
 * RELATED GAMES SECTION (Single Game Page)
 * ==================================================== */
.related-games-section {
  margin-top: 36px;
  margin-bottom: 32px;
}

.related-games-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.related-games-title {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.related-games-desc {
  font-size: 13.5px;
  color: var(--text-secondary, #5f6368);
  margin: 0;
  line-height: 1.45;
}

.related-games-view-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--google-blue, #1a73e8);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  transition: all 0.18s ease;
}

.related-games-view-all:hover {
  background: rgba(26, 115, 232, 0.08);
  border-color: #93c5fd;
  color: #174ea6;
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .related-games-section {
    margin-top: 28px;
    margin-bottom: 20px;
  }

  .related-games-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .related-games-title {
    font-size: 18px;
  }

  .related-games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.single-game-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.single-game-title-group h1 {
  font-size: clamp(22px, 3.5vw, 26px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.single-game-title-group p {
  color: var(--text-secondary);
  font-size: 14px;
}

.single-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* GAME PLAYING ARENA */
.game-play-arena {
  padding: 32px 24px;
  background: #ffffff;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-hud {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--border-color);
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hud-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.hud-value.highlight {
  color: var(--google-blue);
}

/* Start screen */
.game-screen-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  box-sizing: border-box;
}

.game-screen-start.hidden,
.game-screen-start[style*="display: none"],
.game-screen-start[style*="none"] {
  display: none !important;
}

.game-screen-start > * {
  max-width: 100%;
}

.game-start-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
}

.game-screen-start h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  text-align: center;
  width: 100%;
}

.game-start-instructions {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

/* DIFFICULTY TIER SELECTOR (Spark, Thinker, Strategist, Grandmaster) */
.game-level-selector-wrap {
  background: var(--google-bg, #f8f9fa);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 14px 0 20px;
  text-align: left;
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
}

.level-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.level-selector-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-selector-hint {
  font-size: 12px;
  color: var(--google-blue, #1a73e8);
  font-weight: 500;
}

.level-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.level-chip {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  color: inherit;
  width: 100%;
}

.level-chip:hover:not(:disabled) {
  border-color: var(--google-blue, #1a73e8);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.level-chip.active {
  border-color: var(--google-blue, #1a73e8);
  background: rgba(26, 115, 232, 0.05);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.level-chip.locked,
.level-chip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f3f4;
  border-color: #dadce0;
}

.level-chip-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  flex-shrink: 0;
}

.level-chip.active .level-chip-icon {
  background: rgba(26, 115, 232, 0.12);
}

.level-chip-info {
  flex: 1;
  min-width: 0;
}

.level-chip-name {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  line-height: 1.2;
}

.level-chip-sub {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary, #64748b);
  line-height: 1.3;
  margin-top: 2px;
}

.level-chip-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8eaed;
  color: #5f6368;
}

.level-chip.active .level-chip-badge {
  background: #e8f0fe;
  color: #1a73e8;
}

.level-chip.locked .level-chip-badge {
  background: #dadce0;
  color: #70757a;
}

.level-chip.just-unlocked {
  animation: chipJustUnlockedGlow 1.4s ease-in-out infinite alternate;
  border-color: #f9ab00 !important;
  background: #fff8e1 !important;
}

@keyframes chipJustUnlockedGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 2px rgba(249, 171, 0, 0.25); }
  100% { transform: scale(1.02); box-shadow: 0 0 14px rgba(249, 171, 0, 0.45); }
}

.level-chip.just-unlocked .level-chip-badge {
  background: #f9ab00 !important;
  color: #ffffff !important;
  font-weight: 800;
}

@media (max-width: 540px) {
  .level-chips-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Game Controls & Board Styles */
.matrix-grid {
  display: grid;
  gap: 12px;
  margin: 16px auto;
  user-select: none;
  max-width: 100%;
}

.matrix-tile {
  background: #f1f3f4;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  aspect-ratio: 1;
}

.matrix-tile:hover {
  background: #e2e5e8;
}

.matrix-tile.active {
  background: var(--google-purple);
  box-shadow: 0 0 16px rgba(147, 52, 232, 0.6);
  transform: scale(0.95);
}

.matrix-tile.correct {
  background: var(--google-green) !important;
  box-shadow: 0 0 16px rgba(52, 168, 83, 0.6);
}

.matrix-tile.wrong {
  background: var(--google-red) !important;
  box-shadow: 0 0 16px rgba(234, 67, 53, 0.6);
}

/* Speed Match / Stroop */
.stroop-word {
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 800;
  margin: 24px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.stroop-controls {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  justify-content: center;
}

.btn-stroop-match {
  flex: 1;
  padding: 14px 24px;
  border-radius: var(--pill-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease;
}

.btn-stroop-match:active {
  transform: scale(0.96);
}

.btn-stroop-yes {
  background: var(--google-green);
  color: white;
}

.btn-stroop-no {
  background: var(--google-red);
  color: white;
}

/* Quick Math */
.math-expression {
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0;
  text-align: center;
}

.math-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.math-opt-btn {
  background: var(--surface);
  border: 2px solid var(--border-color);
  padding: 14px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 52px;
}

.math-opt-btn:hover {
  border-color: var(--google-teal);
  background: var(--google-teal-light);
  color: var(--google-teal);
}

/* Pattern Logic */
.logic-sequence-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.logic-seq-box {
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  background: var(--google-bg);
}

.logic-seq-box.target-box {
  border: 2px dashed var(--google-blue);
  color: var(--google-blue);
  background: var(--google-blue-light);
}

/* Focus Odd One Out */
.odd-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px auto;
  max-width: 320px;
}

.odd-item-btn {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--google-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 5vw, 32px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.odd-item-btn:hover {
  border-color: var(--google-green);
  background: var(--google-green-light);
  transform: scale(1.05);
}

/* RESULTS MODAL / CARD */
.game-result-container {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  animation: fadeInCard 0.3s ease;
}

.result-trophy {
  font-size: 52px;
  margin-bottom: 10px;
}

.result-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Dedicated Level Up / Tier Unlock Banner */
.result-tier-unlock-banner {
  background: linear-gradient(135deg, #fef7e0 0%, #fff8e1 45%, #e8f0fe 100%);
  border: 2px solid #f9ab00;
  box-shadow: 0 6px 20px rgba(249, 171, 0, 0.22), 0 0 0 1px rgba(249, 171, 0, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px auto 20px;
  width: 100%;
  max-width: 480px;
  text-align: left;
  animation: levelUpBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

@keyframes levelUpBounce {
  0% { transform: scale(0.88); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

.tier-unlock-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #b06000;
  background: rgba(249, 171, 0, 0.22);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.tier-unlock-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-unlock-icon {
  font-size: 38px;
  line-height: 1;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.tier-unlock-details {
  flex: 1;
  min-width: 0;
}

.tier-unlock-name {
  font-family: 'Google Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.tier-unlock-desc {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
  line-height: 1.4;
}

.result-summary-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 540px;
}

.result-stat-box {
  background: var(--google-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-stat-item {
  text-align: center;
}

.result-stat-num {
  font-size: 24px;
  font-weight: 800;
}

.result-radar-box {
  width: 100%;
  max-width: 360px;
  height: 280px;
  margin-bottom: 24px;
  position: relative;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Neverending Flow Glow & Streak Badge */
.btn-neverending-glow {
  background: linear-gradient(135deg, #1a73e8 0%, #9334e8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(147, 52, 232, 0.35);
  transition: all 0.2s ease;
}

.btn-neverending-glow:hover {
  background: linear-gradient(135deg, #174ea6 0%, #7627be 100%) !important;
  box-shadow: 0 6px 18px rgba(147, 52, 232, 0.5);
  transform: translateY(-2px);
}

.neverending-streak-pill {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  padding: 6px 18px;
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

/* ====================================================
 * FOOTER - GOOGLE SUPPORT STYLE
 * ==================================================== */
/* ====================================================
 * FOOTER - GOOGLE SUPPORT STYLE (MULTI-COLUMN)
 * ==================================================== */
.google-footer {
  background: #ffffff;
  border-top: 1px solid #dadce0;
  margin-top: auto;
  padding: 48px 24px 28px;
  font-size: 13.5px;
  color: #5f6368;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f8f9fa 0%, #dadce0 50%, #bdc1c6 100%);
  border: 1.5px solid #c4c7c5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1a73e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.footer-brand-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 20px;
  font-weight: 700;
  color: #202124;
}

.footer-brand-desc {
  font-size: 13.5px;
  color: #5f6368;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.footer-brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-pill-tag {
  background: #f1f3f4;
  color: #3c4043;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.footer-col-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 13px;
  font-weight: 700;
  color: #202124;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 16px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link-list a {
  color: #5f6368;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.1s ease;
  display: inline-block;
}

.footer-link-list a:hover {
  color: #1a73e8;
  transform: translateX(2px);
}

.footer-bottom-bar {
  border-top: 1px solid #f1f3f4;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: #80868b;
}

.footer-bottom-disclaimer {
  max-width: 650px;
  line-height: 1.4;
  font-size: 12px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ====================================================
 * RESPONSIVENESS (MOBILE & TABLET EXCELLENCE)
 * ==================================================== */

/* TABLET LANDSCAPE & DESKTOP MEDIUM (max-width: 1024px) */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* TABLET PORTRAIT (max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  
  .header-user-badge span:first-child {
    display: none; /* Keep just the score to save space */
  }

  .iq-hero-section {
    padding: 32px 16px 40px;
  }

  .star-diagram-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .diagram-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .diagram-stats-summary {
    width: 100%;
    justify-content: space-around;
  }

  .diagram-canvas-container {
    height: 300px;
  }

  /* 3 columns x 2 rows on tablet/mobile for large tap targets */
  .axes-chips-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .axis-chip {
    padding: 8px 4px;
  }

  .axis-chip-val {
    font-size: 13px;
  }

  .filter-chips-wrap {
    gap: 8px;
    margin-bottom: 24px;
  }

  .filter-chip {
    padding: 8px 14px;
    font-size: 13px;
  }

  .games-catalog-section {
    padding: 36px 16px 48px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .single-game-wrapper {
    margin: 20px auto 48px;
    padding: 0 14px;
  }

  .single-game-header {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .game-play-arena {
    padding: 24px 16px;
    min-height: 360px;
  }

  .result-radar-box {
    height: 240px;
  }

  .btn-primary-google, .btn-secondary-google {
    width: 100%;
    justify-content: center;
  }
}

/* SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 17px;
  }

  .header-nav .nav-link {
    display: none; /* Rely on brand link + scroll buttons */
  }

  .diagram-canvas-container {
    height: 270px;
  }

  .axes-chips-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .axis-chip {
    padding: 7px 2px;
  }

  .axis-chip-name {
    font-size: 11px;
  }

  .filter-chip {
    padding: 7px 12px;
    font-size: 12px;
  }

  .game-card {
    min-height: 92px;
  }

  .game-card-content {
    padding: 12px 14px 12px 16px;
  }

  .game-card-visual {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
  }

  .game-card-visual svg {
    width: 44px;
    height: 44px;
  }

  .game-card-title {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .game-card-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  .result-stat-box {
    gap: 12px;
    width: 100%;
  }

  .result-stat-item {
    flex: 1;
  }
}

/* ====================================================
 * GOOGLE MATERIAL MODAL DIALOG (IQUModal)
 * ==================================================== */
body.iqu-modal-open {
  overflow: hidden !important;
}

.iqu-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0, 0, 0.2, 1), visibility 0.22s cubic-bezier(0, 0, 0.2, 1);
}

.iqu-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.iqu-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.iqu-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 48px rgba(32, 33, 36, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.iqu-modal-overlay.is-visible .iqu-modal-dialog {
  transform: scale(1) translateY(0);
}

.iqu-modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}

.iqu-modal-icon-badge.info {
  background: #e8f0fe;
  color: #1a73e8;
}

.iqu-modal-icon-badge.success {
  background: #e6f4ea;
  color: #1e8e3e;
}

.iqu-modal-icon-badge.warning {
  background: #fef7e0;
  color: #f9ab00;
}

.iqu-modal-icon-badge.danger {
  background: #fce8e6;
  color: #d93025;
}

.iqu-modal-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 20px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 10px;
  line-height: 1.35;
}

.iqu-modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: #5f6368;
  margin-bottom: 24px;
  word-break: break-word;
}

.iqu-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.iqu-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: 'Google Sans', var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 40px;
}

.iqu-modal-btn:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.iqu-modal-btn.btn-cancel {
  background: transparent;
  border-color: #dadce0;
  color: #3c4043;
}

.iqu-modal-btn.btn-cancel:hover {
  background: #f1f3f4;
  color: #202124;
}

.iqu-modal-btn.btn-confirm {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}

.iqu-modal-btn.btn-confirm:hover {
  background: #174ea6;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.3);
}

.iqu-modal-btn.btn-confirm.btn-danger {
  background: #d93025;
  color: #ffffff;
}

.iqu-modal-btn.btn-confirm.btn-danger:hover {
  background: #b31412;
}

@media (max-width: 480px) {
  .iqu-modal-dialog {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }

  .iqu-modal-actions {
    flex-direction: column-reverse;
    width: 100%;
    gap: 8px;
  }

  .iqu-modal-btn {
    width: 100%;
  }
}

/* ====================================================
 * NEW BLOCKBUSTER GAMES (GOOGLE HITS & BOARD/NUMBER)
 * ==================================================== */

/* 1. GOOGLE SNAKE */
.snake-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.snake-canvas {
  background: #f8f9fa;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  touch-action: none;
}

.dpad-container {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 48px);
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.dpad-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, background 0.15s ease;
  user-select: none;
}

.dpad-btn:active {
  transform: scale(0.92);
  background: #e8f0fe;
}

/* 2. CHESS TACTICS & PLAY VS BOT */
.chess-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.chess-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.chess-modes {
  display: flex;
  gap: 6px;
  background: #f1f3f4;
  padding: 4px;
  border-radius: 9999px;
}

.chess-mode-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chess-mode-chip.active {
  background: #ffffff;
  color: #1a73e8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.chess-banner {
  padding: 8px 14px;
  border-radius: 14px;
  width: 100%;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.chess-banner > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.chess-banner .status-text {
  font-weight: 600;
  font-size: 13.5px;
  color: #202124;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chess-banner .sub-status {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chess-banner #btnChessHint {
  flex-shrink: 0;
}

.chess-board-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  background: #795548;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f0d9b5;
  box-sizing: border-box;
}

.chess-square {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background 0.12s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.chess-square.light {
  background: #f0d9b5;
}

.chess-square.dark {
  background: #b58863;
}

.chess-square.selected {
  background: #baca44 !important;
}

.chess-square.last-move {
  background: #fff59d !important;
}

.chess-square.valid-target::after {
  content: '';
  position: absolute;
  width: 32%;
  height: 32%;
  background: rgba(26, 115, 232, 0.7);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(26, 115, 232, 0.5);
}

.chess-square.valid-capture {
  background: rgba(234, 67, 53, 0.35) !important;
}

.chess-square.valid-capture::after {
  content: '';
  position: absolute;
  width: 82%;
  height: 82%;
  border: 4px solid #ea4335;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
}

.chess-square.hint-target {
  background: #ffe082 !important;
  animation: pulse 1s infinite alternate;
}

.chess-square.in-check {
  background: radial-gradient(circle, #ff5252 0%, #d50000 65%, #880e4f 100%) !important;
  box-shadow: inset 0 0 10px #ff1744, 0 0 14px rgba(213, 0, 0, 0.75) !important;
  animation: checkPulse 0.9s infinite alternate ease-in-out !important;
}

@keyframes checkPulse {
  0% { transform: scale(0.96); filter: brightness(0.95); }
  100% { transform: scale(1.04); filter: brightness(1.25); }
}

.chess-piece {
  font-size: clamp(20px, 5.5vw, 34px);
  line-height: 1;
  width: 100%;
  height: 100%;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
  z-index: 2;
  pointer-events: none;
}

.chess-piece.empty {
  visibility: hidden;
  pointer-events: none;
}

.chess-piece.white {
  color: #ffffff;
  text-shadow: -1px -1px 0 #1b1b1b, 1px -1px 0 #1b1b1b, -1px 1px 0 #1b1b1b, 1px 1px 0 #1b1b1b, 0 3px 5px rgba(0, 0, 0, 0.45);
}

.chess-piece.black {
  color: #1f1f1f;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.chess-square:hover .chess-piece {
  transform: scale(1.08);
}

.chess-captured-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.chess-captured-list {
  font-size: 18px;
  letter-spacing: -2px;
}

.chess-controls-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* 3. GOOGLE TIC-TAC-TOE */
.ttt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.ttt-modes-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.ttt-mode-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ttt-mode-btn.active {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #1a73e8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.2);
}

.ttt-mode-btn.locked,
.ttt-mode-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  background: #f1f3f4 !important;
  border-color: #dadce0 !important;
  color: #80868b !important;
  pointer-events: none;
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  box-sizing: border-box;
}

.ttt-cell {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(38px, 12vw, 64px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.ttt-cell:hover:not(.filled) {
  background: #f8f9fa;
  border-color: #1a73e8;
  transform: scale(0.98);
}

.ttt-cell.x-mark {
  color: #1a73e8;
}

.ttt-cell.o-mark {
  color: #ea4335;
}

.ttt-cell.winning-cell {
  background: #e6f4ea !important;
  border-color: #34a853 !important;
  animation: pulse 1s infinite alternate;
}

/* 4. CHROME DINO RUNNER */
.dino-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.dino-canvas {
  background: #f7f7f7;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  width: 100%;
  aspect-ratio: 3 / 1;
  touch-action: none;
}

/* 5. CLASSIC 9x9 SUDOKU MASTER */
.sudoku9-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.sudoku9-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #202124;
  border: 3px solid #202124;
  border-radius: 8px;
  gap: 1px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

.sudoku9-cell {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 4vw, 22px);
  font-weight: 500;
  color: #202124;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

/* 3x3 block visual borders */
.sudoku9-cell:nth-child(3n) {
  border-right: 2px solid #202124;
}

.sudoku9-cell:nth-child(9n) {
  border-right: none;
}

.sudoku9-cell.row-bottom-block {
  border-bottom: 2px solid #202124;
}

.sudoku9-cell.initial {
  font-weight: 700;
  color: #202124;
}

.sudoku9-cell.user-value {
  color: #1a73e8;
  font-weight: 600;
}

.sudoku9-cell.highlight-cross {
  background: #f1f3f4;
}

.sudoku9-cell.highlight-same {
  background: #e8f0fe;
  color: #1a73e8;
}

.sudoku9-cell.selected {
  background: #c2e7ff !important;
}

.sudoku9-cell.error {
  background: #fce8e6 !important;
  color: #d93025 !important;
}

.sudoku9-keypad {
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.sudoku9-key-btn {
  width: clamp(34px, 9vw, 42px);
  height: clamp(38px, 10vw, 46px);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 18px;
  font-weight: 600;
  color: #1a73e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.sudoku9-key-btn:hover {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.sudoku9-tools-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

/* 6. FOUR IN A ROW (CONNECT 4) */
.c4-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.c4-modes-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.c4-mode-btn {
  padding: 6px 13px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.c4-mode-btn:hover {
  background: #f8f9fa;
  color: var(--text-primary);
}

.c4-mode-btn.active {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #1a73e8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.2);
}

.c4-mode-btn.locked,
.c4-mode-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  background: #f1f3f4 !important;
  border-color: #dadce0 !important;
  color: #80868b !important;
  pointer-events: none;
}

.c4-board {
  background: #1a73e8;
  padding: 12px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
  aspect-ratio: 7 / 6;
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.3);
}

.c4-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border-radius: 12px;
  padding: 2px 0;
  transition: background 0.15s ease;
}

.c4-column:hover {
  background: rgba(255, 255, 255, 0.12);
}

.c4-slot {
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  border-radius: 50%;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.c4-disc {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  animation: dropDisc 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25);
}

.c4-disc.player-1 {
  background: radial-gradient(circle at 35% 35%, #ffd54f 0%, #f9ab00 80%);
}

.c4-disc.player-2 {
  background: radial-gradient(circle at 35% 35%, #ff8a80 0%, #ea4335 80%);
}

.c4-disc.winning {
  box-shadow: 0 0 14px 4px #ffffff, inset 0 -3px 6px rgba(0,0,0,0.3);
  animation: pulse 0.8s infinite alternate;
}

@keyframes dropDisc {
  0% { transform: translateY(-300%); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ====================================================
 * OPTION A: NON-INTRUSIVE CLOUD SYNC & AUTH STYLES
 * ==================================================== */

/* 1. Header Auth & Cloud Sync */
.header-auth-wrap {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.btn-save-progress-header {
  background: var(--google-blue-light, #e8f0fe);
  border: 1.5px solid #bad3fb;
  color: var(--google-blue, #1a73e8);
  font-family: 'Google Sans', var(--font-family);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--pill-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-save-progress-header:hover {
  background: #d2e3fc;
  border-color: #8ab4f8;
  color: var(--google-blue-hover, #174ea6);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.2);
}

.user-account-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f3f4;
  border: 1px solid var(--border-color, #dadce0);
  border-radius: var(--pill-radius);
  padding: 4px 12px;
  font-size: 13px;
}

.user-avatar-icon {
  font-size: 14px;
}

.user-display-name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-sync-pill {
  background: #e6f4ea;
  color: #137333;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.btn-logout-link {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 12px;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-logout-link:hover {
  color: var(--google-red, #ea4335);
}

/* 2. Homepage Guest Cloud Sync Callout */
.cloud-sync-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #d2e3fc;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
}

.cloud-sync-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cloud-sync-card-icon {
  font-size: 30px;
  line-height: 1;
  width: 48px;
  height: 48px;
  background: var(--google-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cloud-sync-card-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.cloud-sync-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-cloud-action {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
  padding: 10px 20px;
}

@media (max-width: 680px) {
  .cloud-sync-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .btn-cloud-action {
    width: 100%;
    justify-content: center;
  }
}

/* 3. Game Result Screen Guest Hint */
.result-cloud-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  background: var(--google-bg, #f8f9fa);
  border: 1px dashed var(--border-color, #dadce0);
  border-radius: var(--pill-radius);
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 520px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-result-cloud-sync {
  background: none;
  border: none;
  color: var(--google-blue);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: 12.5px;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-result-cloud-sync:hover {
  color: var(--google-blue-hover);
}

/* 4. Auth & Cloud Sync Dialog Modal */
.auth-dialog {
  max-width: 440px;
  width: 90%;
  padding: 28px 24px;
  position: relative;
  border-radius: 20px;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-tertiary);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.auth-modal-close:hover {
  background: #f1f3f4;
  color: var(--text-primary);
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--google-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.auth-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.auth-tabs {
  display: flex;
  background: #f1f3f4;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 9px;
  font-family: 'Google Sans', var(--font-family);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--google-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
  text-align: left;
}

.auth-alert.error {
  background: var(--google-red-light);
  color: #c5221f;
  border: 1px solid #f28b82;
}

.auth-alert.success {
  background: var(--google-green-light);
  color: #137333;
  border: 1px solid #81c995;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.btn-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14.5px;
  margin-top: 4px;
}

.auth-footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  text-align: center;
}

/* ====================================================
 * SHAREABLE IQ CARD MODAL (BRAIN FINGERPRINT)
 * ==================================================== */
.share-card-dialog {
  max-width: 740px;
  width: 95%;
  padding: 24px 28px;
  border-radius: 24px;
}

.share-card-header {
  text-align: center;
  margin-bottom: 16px;
}

.share-card-icon-badge {
  font-size: 36px;
  margin-bottom: 6px;
}

.share-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.share-card-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.share-card-preview-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 48%, #cbd5e1 100%);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  margin-bottom: 18px;
  border: 1.5px solid #94a3b8;
}

.share-card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.share-card-loading {
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-card-actions-primary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.btn-share-action {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--pill-radius, 24px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.share-card-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e8eaed;
}

.share-social-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary, #5f6368);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-social-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.social-chip:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.chip-x {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.chip-x:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.chip-fb {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
}
.chip-fb:hover {
  background: #166fe5;
  color: #ffffff;
}

.chip-reddit {
  background: #ff4500;
  color: #ffffff;
  border-color: #ff4500;
}
.chip-reddit:hover {
  background: #e03d00;
  color: #ffffff;
}

.chip-discord {
  background: #5865F2;
  color: #ffffff;
  border: none;
  font-family: inherit;
}
.chip-discord:hover {
  background: #4752c4;
}

.chip-wa {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}
.chip-wa:hover {
  background: #1ebe57;
  color: #ffffff;
}

.share-card-feedback {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  animation: fadeIn 0.2s ease;
}

.share-card-footer-tip {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
}

/* ====================================================
 * PUBLIC USER PROFILE PAGE (/u/{username})
 * ==================================================== */
.profile-page-section {
  padding: 32px 16px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-guest-callout {
  background: #fef7e0;
  border: 1.5px solid #feefc3;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-guest-icon {
  font-size: 28px;
}

.profile-guest-content {
  flex: 1;
  min-width: 240px;
}

.profile-guest-content strong {
  display: block;
  font-size: 14.5px;
  color: #b06000;
  margin-bottom: 3px;
}

.profile-guest-content p {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
}

/* Hero Profile Card */
.profile-hero-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 280px;
}

.profile-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #9334e8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  flex-shrink: 0;
}

.profile-identity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.profile-archetype-pill {
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.profile-tier-pill {
  background: #ffffff;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
}

.profile-player-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.profile-username-tag {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-sync-status {
  color: var(--google-green);
  font-weight: 600;
}

.profile-persona-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

.profile-hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-stat-box {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  min-width: 110px;
}

.stat-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-box-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-box-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 3px;
}

/* Radar Diagram Card */
.profile-diagram-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.profile-diagram-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-diagram-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.profile-diagram-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.profile-diagram-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-profile-reset {
  color: #ea4335 !important;
  border-color: rgba(234, 67, 53, 0.3) !important;
  background: #ffffff !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-reset:hover {
  background: #fce8e6 !important;
  border-color: #ea4335 !important;
  color: #c5221f !important;
  box-shadow: 0 1px 3px rgba(234, 67, 53, 0.2);
}

.profile-canvas-wrap {
  width: 100%;
  max-width: 480px;
  height: 380px;
  margin: 0 auto 28px;
  position: relative;
}

/* 6 Dimensions Metric Chips */
.profile-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-chip-item {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
}

.chip-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chip-item-icon {
  font-size: 18px;
}

.chip-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.chip-item-score {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.chip-score-max {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-tertiary);
}

.chip-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.chip-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-out;
}

/* Recommended Challenge Games */
.profile-challenges-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}

.profile-challenges-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.profile-challenges-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 18px 0;
}

.profile-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.profile-game-mini-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.profile-game-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--google-blue);
  box-shadow: var(--shadow-md);
}

.mini-card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.mini-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.mini-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.4;
  flex: 1;
}

.mini-card-action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--google-blue);
}

.user-profile-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-profile-link:hover .user-display-name {
  color: var(--google-blue);
  text-decoration: underline;
}

/* ==========================================================================
   26. CPS SPEED BENCHMARK (Click Speed Test)
   ========================================================================== */
.cps-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
}

.cps-click-pad {
  width: 100%;
  min-height: 260px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #dadce0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.04s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cps-click-pad:hover {
  border-color: #1a73e8;
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.12);
}

.cps-click-pad:active,
.cps-click-pad.active-press {
  transform: scale(0.975);
  border-color: #ea4335;
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.2);
}

.cps-ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(26, 115, 232, 0.35) 0%, rgba(234, 67, 53, 0.15) 70%, transparent 100%);
  animation: cpsRippleAnim 0.4s ease-out forwards;
  pointer-events: none;
}

@keyframes cpsRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

.cps-click-particle {
  position: absolute;
  font-size: 16px;
  font-weight: 800;
  color: #ea4335;
  pointer-events: none;
  user-select: none;
  animation: cpsFloatUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 5;
}

@keyframes cpsFloatUp {
  0% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(-35px) scale(1.3);
    opacity: 0;
  }
}

.cps-mode-btn.active {
  background: #ffffff !important;
  color: #1a73e8 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   27. 1 TO 50 NUMBER SPRINT (Focus & Peripheral Scanning)
   ========================================================================== */
.sprint-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
}

.sprint-header-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sprint-target-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sprint-target-number {
  font-size: 26px;
  font-weight: 900;
  color: #137333;
  line-height: 1;
  font-family: 'Google Sans', 'Inter', sans-serif;
}

.sprint-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e8eaed;
  border-radius: 3px;
  overflow: hidden;
}

.sprint-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #34a853, #1a73e8);
  width: 0%;
  transition: width 0.15s ease;
}

.sprint-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.sprint-tile {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1.5px solid #dadce0;
  background: #ffffff;
  color: #202124;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.08s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.sprint-tile:hover {
  border-color: #137333;
  background: #f8fbf9;
}

.sprint-tile:active {
  transform: scale(0.92);
}

.sprint-tile.tile-reserve {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.sprint-tile.tile-cleared {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
}

.sprint-tile.tile-correct {
  animation: sprintTilePop 0.2s ease;
}

@keyframes sprintTilePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); background: #dcfce7; }
  100% { transform: scale(1); }
}

.sprint-tile.tile-wrong {
  animation: sprintTileShake 0.3s ease;
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

@keyframes sprintTileShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}

/* ==========================================================================
   28. SYNAPSE LAB (Neuro-Clicker Idle Game)
   ========================================================================== */
.synapse-container {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

.synapse-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  width: 100%;
}

@media (max-width: 768px) {
  .synapse-layout {
    grid-template-columns: 1fr;
  }
}

.synapse-left-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 24px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.synapse-brain-orb {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #818cf8 0%, #4338ca 60%, #312e81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 8px 30px rgba(67, 56, 202, 0.35), inset 0 -6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.06s ease, box-shadow 0.15s ease;
  position: relative;
  margin: 16px 0;
  -webkit-tap-highlight-color: transparent;
}

.synapse-brain-orb:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(67, 56, 202, 0.45);
}

.synapse-brain-orb:active,
.synapse-brain-orb.orb-pressed {
  transform: scale(0.93);
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.5);
}

.synapse-brain-orb.hyperdrive-glow {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #ea580c 60%, #b91c1c 100%);
  box-shadow: 0 0 40px 10px rgba(250, 204, 21, 0.65), inset 0 -6px 12px rgba(0, 0, 0, 0.3);
  animation: brainHyperPulse 0.6s infinite alternate;
}

@keyframes brainHyperPulse {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.05); }
}

.synapse-click-particle {
  position: absolute;
  font-size: 17px;
  font-weight: 800;
  color: #4338ca;
  pointer-events: none;
  user-select: none;
  animation: synapseFloatParticle 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 10;
}

.synapse-click-particle.hyperdrive {
  color: #ea580c;
  font-size: 20px;
}

@keyframes synapseFloatParticle {
  0% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(-45px) scale(1.2);
    opacity: 0;
  }
}

.synapse-count-display {
  font-size: 38px;
  font-weight: 900;
  color: #202124;
  line-height: 1;
  font-family: 'Google Sans', 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.synapse-sps-display {
  font-size: 14px;
  color: #137333;
  font-weight: 700;
  margin-top: 4px;
}

.synapse-surge-banner {
  width: 100%;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.synapse-surge-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.synapse-right-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.synapse-upgrade-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 10px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.synapse-upgrade-card:hover {
  border-color: #4338ca;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.08);
}

.synapse-upgrade-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.synapse-upgrade-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.synapse-buy-btn {
  border: none;
  background: #1a73e8;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.synapse-buy-btn:hover:not(:disabled) {
  background: #1557b0;
}

.synapse-buy-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.synapse-buy-btn:disabled {
  background: #dadce0;
  color: #70757a;
  cursor: not-allowed;
}

.synapse-breakthrough-card {
  width: 100%;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #10b981;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ====================================================
 * TAHAP 3: GLOBAL COGNITIVE LEADERBOARD STYLES
 * Google Support Aesthetic, Vibrant Podiums, Sticky Dock
 * ==================================================== */

.leaderboard-page-wrapper {
  background: #f8f9fa;
  min-height: calc(100vh - 64px);
  padding-bottom: 90px; /* Offset for sticky dock */
}

/* 1. Hero Header */
.lb-hero-section {
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  padding: 40px 20px 32px;
  text-align: center;
}

.lb-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.lb-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #d2e3fc;
}

.lb-badge-dot {
  color: #8ab4f8;
}

.lb-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 34px;
  font-weight: 700;
  color: #202124;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.lb-subtitle {
  font-size: 15px;
  color: #5f6368;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* 2. Category Filter Pills */
.lb-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
}

.lb-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  border: 1px solid transparent;
  color: #3c4043;
  font-family: 'Google Sans', var(--font-family);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.lb-tab:hover {
  background: #e8eaed;
  color: #202124;
}

.lb-tab.active {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.lb-tab-icon {
  font-size: 15px;
}

/* 3. Main Container */
.lb-main-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.lb-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.lb-current-category-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 22px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 4px;
}

.lb-current-category-desc {
  font-size: 13.5px;
  color: #5f6368;
}

.lb-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #137333;
  background: #e6f4ea;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid #ceead6;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  animation: lbPulse 1.8s infinite;
}

@keyframes lbPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(52, 168, 83, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

/* 4. Podium Showcase (Top 3) */
.lb-podium-showcase {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 36px;
  transition: opacity 0.2s ease;
}

.podium-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 18px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.08);
}

.podium-card:hover {
  transform: translateY(-4px);
}

/* Gold (Center, Rank #1) */
.podium-gold {
  background: linear-gradient(180deg, #fffdf0 0%, #ffffff 100%);
  border: 2px solid #f9ab00;
  box-shadow: 0 8px 24px rgba(249, 171, 0, 0.22);
  padding: 30px 20px 26px;
  z-index: 2;
}

.podium-gold:hover {
  box-shadow: 0 12px 32px rgba(249, 171, 0, 0.32);
}

/* Silver (Left, Rank #2) */
.podium-silver {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border: 1.5px solid #bdc1c6;
  box-shadow: 0 4px 16px rgba(189, 193, 198, 0.2);
}

/* Bronze (Right, Rank #3) */
.podium-bronze {
  background: linear-gradient(180deg, #fdf8f4 0%, #ffffff 100%);
  border: 1.5px solid #d97706;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.16);
}

.podium-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.04);
}

.podium-gold .podium-rank-badge {
  background: #fef7e0;
  color: #b06000;
}

.podium-silver .podium-rank-badge {
  background: #f1f3f4;
  color: #3c4043;
}

.podium-bronze .podium-rank-badge {
  background: #fef3c7;
  color: #92400e;
}

.podium-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.podium-gold .podium-avatar-wrap {
  width: 76px;
  height: 76px;
  font-size: 38px;
  background: #fef7e0;
  border: 2px solid #f9ab00;
}

.podium-crown-icon {
  position: absolute;
  top: -16px;
  font-size: 26px;
  animation: crownBounce 2.4s ease-in-out infinite;
}

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

.podium-username {
  font-family: 'Google Sans', var(--font-family);
  font-size: 17px;
  font-weight: 700;
  color: #202124;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-gold .podium-username {
  font-size: 19px;
}

.podium-username:hover {
  color: #1a73e8;
}

.podium-archetype-pill {
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.podium-tier-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 12px;
}

.podium-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 8px 18px;
  width: 80%;
  margin-bottom: 8px;
}

.podium-gold .podium-score-box {
  background: #ffffff;
  border-color: #fdd663;
}

.podium-score-val {
  font-family: 'Google Sans', var(--font-family);
  font-size: 26px;
  font-weight: 800;
  color: #202124;
  line-height: 1;
}

.podium-gold .podium-score-val {
  font-size: 32px;
  color: #b06000;
}

.podium-score-label {
  font-size: 10px;
  font-weight: 700;
  color: #80868b;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.podium-streak-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #ea4335;
}

/* 5. Rankings Table (#4 to #50) */
.lb-table-wrapper {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #dadce0;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.06);
  overflow: hidden;
  margin-bottom: 32px;
  transition: opacity 0.2s ease;
}

.lb-table-header-row {
  display: grid;
  grid-template-columns: 80px 2.2fr 1.6fr 1.2fr 1fr 1.2fr;
  align-items: center;
  padding: 14px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e8eaed;
  font-size: 12px;
  font-weight: 700;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lb-table-body {
  display: flex;
  flex-direction: column;
}

.lb-table-row {
  display: grid;
  grid-template-columns: 80px 2.2fr 1.6fr 1.2fr 1fr 1.2fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.15s ease;
}

.lb-table-row:last-child {
  border-bottom: none;
}

.lb-table-row:hover {
  background-color: #f8f9fa;
}

.is-current-user-row {
  background: #e8f0fe !important;
  border-left: 4px solid #1a73e8;
}

.is-current-user-card {
  outline: 3px solid #1a73e8;
}

.rank-number-pill {
  font-family: 'Google Sans', var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: #5f6368;
}

.col-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-flag {
  font-size: 20px;
  line-height: 1;
}

.player-name-link {
  font-family: 'Google Sans', var(--font-family);
  font-size: 14.5px;
  font-weight: 600;
  color: #202124;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.player-name-link:hover {
  color: #1a73e8;
}

.verified-player-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.table-archetype-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: #3c4043;
  background: #f1f3f4;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

.table-tier-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: #5f6368;
}

.table-streak-val {
  font-size: 13px;
  font-weight: 600;
  color: #ea4335;
}

.table-score-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-score-val {
  font-family: 'Google Sans', var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: #202124;
}

.table-score-meter {
  width: 100%;
  height: 6px;
  background: #e8eaed;
  border-radius: 3px;
  overflow: hidden;
}

.table-score-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8 0%, #34a853 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.lb-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #5f6368;
  font-size: 14.5px;
}

/* 6. Bottom Callout Banner */
.lb-bottom-cta-banner {
  background: #ffffff;
  border: 1px solid #d2e3fc;
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.lb-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lb-cta-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-cta-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 4px;
}

.lb-cta-desc {
  font-size: 13.5px;
  color: #5f6368;
}

.lb-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 7. Sticky Bottom "Your Position" Bar */
.lb-sticky-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #dadce0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  z-index: 99;
}

.lb-sticky-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lb-sticky-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lb-sticky-rank-pill {
  background: #202124;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sticky-rank-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9aa0a6;
}

.sticky-rank-val {
  font-family: 'Google Sans', var(--font-family);
  font-size: 16px;
  font-weight: 800;
  color: #8ab4f8;
}

.lb-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lb-sticky-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-player-name {
  font-family: 'Google Sans', var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: #202124;
}

.sticky-percentile-pill {
  background: #e6f4ea;
  color: #137333;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.lb-sticky-subtext {
  font-size: 12.5px;
  color: #5f6368;
}

.lb-sticky-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lb-sticky-score-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sticky-score-num {
  font-family: 'Google Sans', var(--font-family);
  font-size: 22px;
  font-weight: 800;
  color: #1a73e8;
  line-height: 1;
}

.sticky-score-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #80868b;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.btn-sticky-action {
  padding: 8px 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 8. Responsive Breakpoints */
@media (max-width: 840px) {
  .lb-podium-showcase {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .podium-gold {
    order: -1;
  }
  .lb-table-header-row {
    grid-template-columns: 60px 2fr 1fr;
  }
  .lb-table-row {
    grid-template-columns: 60px 2fr 1fr;
  }
  .col-archetype, .col-tier, .col-streak {
    display: none;
  }
  .lb-bottom-cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .lb-cta-left {
    flex-direction: column;
  }
  .lb-sticky-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .lb-sticky-right {
    justify-content: space-between;
  }
}

/* 9. Front Page Leaderboard Spotlight Card */
.lb-spotlight-section {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.lb-spotlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fe 100%);
  border: 1px solid #d2e3fc;
  border-radius: 24px;
  padding: 24px 30px;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.07);
}

.lb-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.lb-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 4px 14px;
  border-radius: 14px;
}

.lb-spotlight-view-all {
  font-family: 'Google Sans', var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lb-spotlight-view-all:hover {
  color: #174ea6;
  text-decoration: underline;
}

.lb-spotlight-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.lb-spotlight-left {
  max-width: 480px;
}

.lb-spotlight-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 24px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 8px;
  line-height: 1.25;
}

.lb-spotlight-desc {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 20px;
  line-height: 1.5;
}

.lb-spotlight-podium-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 440px;
}

.spotlight-leader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.spotlight-leader-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.spotlight-leader-card.pos-1 {
  border-color: #f9ab00;
  background: linear-gradient(90deg, #fffdf2 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(249, 171, 0, 0.15);
}

.spotlight-leader-card.pos-2 {
  border-color: #bdc1c6;
}

.spotlight-leader-card.pos-3 {
  border-color: #d97706;
}

.leader-medal {
  font-size: 20px;
  flex-shrink: 0;
}

.leader-avatar {
  font-size: 20px;
  flex-shrink: 0;
}

.leader-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.leader-name {
  font-family: 'Google Sans', var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: #202124;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-archetype {
  font-size: 11.5px;
  color: #5f6368;
}

.leader-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.leader-score-num {
  font-family: 'Google Sans', var(--font-family);
  font-size: 16px;
  font-weight: 800;
  color: #1a73e8;
  line-height: 1;
}

.pos-1 .leader-score-num {
  color: #b06000;
}

.leader-score-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #80868b;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .lb-spotlight-content {
    flex-direction: column;
    align-items: stretch;
  }
  .lb-spotlight-left {
    max-width: 100%;
  }
  .lb-spotlight-podium-preview {
    max-width: 100%;
  }
}

/* Single Game Leaderboard Spotlight Integration */
.single-game-wrapper .lb-spotlight-section {
  max-width: 100%;
  padding: 0;
  margin: 36px 0 20px;
}

.single-game-wrapper .lb-spotlight-content {
  gap: 24px;
}

@media (max-width: 860px) {
  .single-game-wrapper .lb-spotlight-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .single-game-wrapper .lb-spotlight-left {
    max-width: 100%;
  }
  .single-game-wrapper .lb-spotlight-podium-preview {
    max-width: 100%;
  }
}

/* ====================================================
 * STATIC PAGES (ABOUT, PRIVACY, TERMS, CONTACT)
 * Google Support Clean Material Design
 * ==================================================== */

.static-page-wrapper {
  background: #f8f9fa;
  min-height: calc(100vh - 64px);
  padding-bottom: 70px;
}

/* Breadcrumb Bar */
.page-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  padding: 12px 24px;
}

.page-breadcrumb-container {
  max-width: 960px;
  margin: 0 auto;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-link:hover {
  color: #1557b0;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #9aa0a6;
  font-size: 14px;
}

.breadcrumb-current {
  color: #5f6368;
  font-weight: 500;
}

/* Hero Header */
.static-page-hero {
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  padding: 40px 24px 32px;
  text-align: center;
}

.static-hero-container {
  max-width: 760px;
  margin: 0 auto;
}

.static-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid #d2e3fc;
  margin-bottom: 16px;
}

.static-page-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #202124;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.static-page-tagline {
  font-size: 15.5px;
  color: #5f6368;
  line-height: 1.5;
  margin: 0 0 16px;
}

.static-page-meta {
  font-size: 12.5px;
  color: #80868b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meta-dot {
  color: #dadce0;
}

/* Main Container & Card */
.static-page-main {
  padding: 36px 20px 20px;
}

.static-content-container {
  max-width: 960px;
  margin: 0 auto;
}

.static-page-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #dadce0;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.06);
  padding: 40px 48px;
}

/* Page Typography */
.static-page-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: #3c4043;
}

.static-page-body .lead-intro {
  font-size: 17px;
  line-height: 1.65;
  color: #202124;
  margin-bottom: 24px;
}

.static-page-body h2 {
  font-family: 'Google Sans', var(--font-family);
  font-size: 22px;
  font-weight: 700;
  color: #202124;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f4;
}

.static-page-body h3 {
  font-family: 'Google Sans', var(--font-family);
  font-size: 17px;
  font-weight: 600;
  color: #202124;
  margin: 20px 0 8px;
}

.static-page-body p {
  margin: 0 0 16px;
}

.static-page-body ul,
.static-page-body ol {
  margin: 0 0 20px 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.static-page-body li {
  line-height: 1.6;
}

.static-page-body a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.static-page-body a:hover {
  text-decoration: underline;
}

.static-page-body code {
  background: #f1f3f4;
  color: #1a73e8;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13.5px;
}

/* Alerts / Callout Boxes */
.support-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.support-alert.info-box {
  background: #e8f0fe;
  border: 1px solid #bad3fb;
  color: #174ea6;
}

.support-alert.warning-box {
  background: #fef7e0;
  border: 1px solid #feefc3;
  color: #b06000;
}

.support-alert .alert-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

/* 6 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.pillar-card {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.18s ease;
}

.pillar-card:hover {
  border-color: #bad3fb;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.08);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #202124;
}

.pillar-card p {
  font-size: 13.5px;
  color: #5f6368;
  margin: 0;
  line-height: 1.5;
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.contact-info-card {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.18s ease;
}

.contact-info-card:hover {
  border-color: #bad3fb;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.08);
}

.contact-info-card .card-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.contact-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 6px;
}

.contact-info-card p {
  font-size: 13.5px;
  color: #5f6368;
  margin: 0 0 10px;
  line-height: 1.5;
}

.contact-link {
  font-size: 14.5px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Interactive Contact Form */
.contact-form-section {
  border-top: 1px solid #e8eaed;
  margin-top: 36px;
  padding-top: 32px;
}

.contact-form-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 6px;
}

.contact-form-subtitle {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
}

.required-star {
  color: #ea4335;
}

.contact-input,
.contact-select,
.contact-textarea {
  padding: 10px 14px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #202124;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.contact-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-submit-contact {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 24px;
  cursor: pointer;
}

.contact-privacy-note {
  font-size: 12.5px;
  color: #80868b;
}

.contact-form-alert {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: fadeIn 0.2s ease;
}

.contact-form-alert.alert-success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.contact-form-alert.alert-error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* Navigation Chips at bottom */
.static-page-nav-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-nav-chip:hover {
  border-color: #bad3fb;
  color: #1a73e8;
  transform: translateY(-1.5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 680px) {
  .static-page-card {
    padding: 24px 20px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .pillars-grid,
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
 * PATH (NUMBER PATH / DAILY ROUTE PUZZLE) STYLES
 * ==================================================== */
.path-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.path-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.path-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-daily {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-practice {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}

.path-daily-countdown {
  font-size: 13px;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  padding: 6px 12px;
  border-radius: 16px;
}

.btn-path-toggle {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-path-toggle:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  color: #1a73e8;
}

.path-already-solved-banner {
  width: 100%;
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}

/* Checkpoint Ribbon Tracker */
.path-checkpoint-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 24px;
  border: 1px solid #e8eaed;
  overflow-x: auto;
}

.ribbon-checkpoint {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #dadce0;
  color: #5f6368;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.ribbon-cp-check {
  display: none;
  font-size: 12px;
}

.ribbon-checkpoint.reached {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.ribbon-checkpoint.reached .ribbon-cp-num {
  display: none;
}

.ribbon-checkpoint.reached .ribbon-cp-check {
  display: inline;
}

.ribbon-cp-connector {
  flex: 1;
  min-width: 12px;
  max-width: 28px;
  height: 3px;
  background: #dadce0;
  transition: background 0.3s ease;
}

.ribbon-cp-connector.reached {
  background: #1a73e8;
}

/* Board Area */
.path-board-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  border: 2px solid #dadce0;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.08);
  touch-action: none;
  cursor: crosshair;
}

.path-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.path-cell {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.path-cell:hover {
  border-color: #bad3fb;
}

.path-cell-visited {
  background: #e8f0fe !important;
  border-color: #1a73e8 !important;
}

.path-cell-step-num {
  font-size: 11px;
  font-weight: 700;
  color: #1a73e8;
  opacity: 0.75;
  pointer-events: none;
}

.path-cell-head {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
  transform: scale(1.02);
}

.path-cell-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
  transition: all 0.2s ease;
}

.path-cell-visited .path-cell-node-dot {
  background: #1a73e8;
  transform: scale(1.2);
}

/* Checkpoint Badges */
.path-cell-checkpoint {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.path-cell-checkpoint .path-cell-node-dot {
  display: none;
}

.path-cell-cp-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(26, 115, 232, 0.4);
  pointer-events: none;
  z-index: 3;
}

.path-cell-start .path-cell-cp-badge {
  background: #137333;
  box-shadow: 0 2px 5px rgba(19, 115, 51, 0.4);
}

/* SVG Overlay */
.path-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.path-svg-line-shadow {
  fill: none;
  stroke: rgba(26, 115, 232, 0.18);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-svg-line {
  fill: none;
  stroke: #1a73e8;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#pathShadow);
}

.path-head-pulse-ring {
  fill: #1a73e8;
  stroke: #ffffff;
  stroke-width: 3;
  animation: headPulse 1.2s infinite ease-in-out;
}

@keyframes headPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Wiggle shake for invalid move */
.wiggle-shake {
  animation: cellShake 0.28s ease-in-out;
  border-color: #ea4335 !important;
  background: #fce8e6 !important;
}

@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Hint flash */
.path-hint-flash {
  animation: hintFlashAnim 1.2s ease-in-out;
}

@keyframes hintFlashAnim {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.12); box-shadow: 0 0 16px #fbbc04; border-color: #fbbc04; }
}

/* Win Ripple Wave */
.path-cell-win-ripple {
  animation: winRipple 0.6s ease-out;
}

@keyframes winRipple {
  0% { transform: scale(1); background: #e8f0fe; }
  50% { transform: scale(1.15); background: #34a853; border-color: #137333; }
  100% { transform: scale(1); background: #e6f4ea; border-color: #34a853; }
}

/* In-game controls toolbar */
.path-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}

.btn-path-tool {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-path-tool:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  color: #1a73e8;
  transform: translateY(-1px);
}

/* Floating Toast */
.path-floating-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #202124;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.path-floating-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====================================================
 * FRONT-PAGE DAILY CHALLENGE HUB SECTION
 * ==================================================== */
.daily-hub-section {
  max-width: 1140px;
  margin: 48px auto 56px auto;
  padding: 0 24px;
}

.daily-hub-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.daily-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #fbbc04, #34a853, #ea4335);
}

.daily-hub-card:hover {
  box-shadow: 0 6px 20px rgba(60, 64, 67, 0.12);
  border-color: #bad3fb;
}

.daily-hub-left {
  flex: 1;
  min-width: 280px;
}

.daily-hub-top-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.daily-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.daily-hub-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  color: #5f6368;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.daily-hub-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fce8e6;
  color: #c5221f;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.daily-hub-title {
  font-size: 24px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-hub-desc {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.5;
  margin: 0 0 20px 0;
  max-width: 620px;
}

.daily-hub-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.daily-hub-btn-play {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

.daily-hub-solved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}

/* Right Illustration Column */
.daily-hub-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.daily-hub-preview-board {
  width: 130px;
  height: 130px;
  background: #f8f9fa;
  border: 1.5px solid #dadce0;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-tile {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e8eaed;
}

.preview-tile.trail {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.preview-tile.cp-start {
  background: #137333;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-tile.cp-end {
  background: #fbbc04;
  color: #202124;
  font-size: 8px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-hub-preview-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 820px) {
  .daily-hub-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }
  .daily-hub-right {
    align-self: center;
  }
}

/* ====================================================
 * DAILY CHALLENGE HUB - TAHAP B (7-DAY STREAK TRACK)
 * ==================================================== */
.daily-hub-quest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.daily-streak-track-container {
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 18px 0;
  max-width: 640px;
  width: 100%;
}

.streak-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.streak-track-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3c4043;
}

.streak-best-badge {
  font-size: 11px;
  font-weight: 600;
  color: #5f6368;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 2px 8px;
}

.streak-current-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #c5221f;
}

.streak-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.streak-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.streak-day-cell.today {
  border: 1.5px solid var(--google-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
  background: #f8fbff;
}

.streak-day-name {
  font-size: 10px;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.streak-day-num {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 6px;
}

.streak-day-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.streak-day-cell.solved .streak-day-badge {
  background: #137333;
  color: #ffffff;
}

.streak-day-cell.unsolved .streak-day-badge {
  background: #f1f3f4;
  color: #80868b;
}

.streak-day-cell.today-pending .streak-day-badge {
  background: #e8f0fe;
  color: var(--google-blue);
  border: 1px dashed var(--google-blue);
}

.streak-today-tag {
  position: absolute;
  top: -8px;
  font-size: 8px;
  font-weight: 800;
  color: var(--google-blue);
  background: #e8f0fe;
  border-radius: 6px;
  padding: 1px 4px;
  letter-spacing: 0.5px;
}

/* ====================================================
 * TENTS & TREES (Camping Logic)
 * ==================================================== */
.tents-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  user-select: none;
}

.tents-header-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 10px;
}

.tents-mode-toggle {
  display: inline-flex;
  background: #f1f3f4;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.tents-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tents-mode-btn.active {
  background: #ffffff;
  color: #202124;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tents-board-outer {
  background: #f8f9fa;
  border: 2px solid #dadce0;
  border-radius: 16px;
  padding: 14px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tents-grid-wrap {
  display: grid;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.tents-cell {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.tents-cell:hover:not(.tree) {
  background: #f1f3f4;
  border-color: #bdc1c6;
}

.tents-cell.tree {
  background: #e6f4ea;
  border-color: #a8dab5;
  cursor: default;
}

.tents-cell.tent {
  background: #fef7e0;
  border-color: #fbbc04;
  box-shadow: 0 2px 5px rgba(251, 188, 4, 0.25);
  animation: tentPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tents-cell.grass {
  background: #f1f8f3;
  border-color: #ceead6;
  color: #137333;
  font-size: 14px;
}

.tents-cell.tent-conflict {
  background: #fce8e6 !important;
  border-color: #ea4335 !important;
  animation: cellWiggle 0.3s ease;
}

.tents-clue {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #5f6368;
  border-radius: 6px;
  user-select: none;
  width: 44px;
  height: 44px;
}

.tents-clue.satisfied {
  color: #137333;
  background: #e6f4ea;
}

.tents-clue.exceeded {
  color: #c5221f;
  background: #fce8e6;
  font-weight: 900;
}

.tents-clue-corner {
  width: 44px;
  height: 44px;
}

.tents-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 8px;
}

@keyframes tentPop {
  0% { transform: scale(0.7); }
  100% { transform: scale(1); }
}

@keyframes cellWiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (max-width: 500px) {
  .tents-cell,
  .tents-clue,
  .tents-clue-corner {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* ====================================================
 * 30. NONOGRAM (Picross Picture Logic)
 * ==================================================== */
.nonogram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  user-select: none;
}

.nonogram-header-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 10px;
}

.nonogram-mode-toggle {
  display: inline-flex;
  background: #f1f3f4;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.nonogram-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.nonogram-mode-btn.active {
  background: #ffffff;
  color: #202124;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nonogram-board-outer {
  background: #f8f9fa;
  border: 2px solid #dadce0;
  border-radius: 16px;
  padding: 14px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  max-width: 100%;
}

.nonogram-grid-wrap {
  display: grid;
  gap: 2px;
  align-items: center;
  justify-content: center;
  background: #bdc1c6;
  padding: 3px;
  border-radius: 8px;
}

.nonogram-corner-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #e8eaed;
  border-radius: 4px;
}

.nonogram-col-clue {
  background: #f1f3f4;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 2px;
  gap: 3px;
  font-size: 13px;
  font-weight: 800;
  color: #3c4043;
}

.nonogram-col-clue.satisfied {
  background: #e6f4ea;
  color: #137333;
}

.nonogram-row-clue {
  background: #f1f3f4;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 8px;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #3c4043;
}

.nonogram-row-clue.satisfied {
  background: #e6f4ea;
  color: #137333;
}

.nonogram-cell {
  background: #ffffff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease;
  font-size: 16px;
  position: relative;
}

.nonogram-cell:hover {
  filter: brightness(0.96);
}

.nonogram-cell.filled {
  background: #202124 !important;
  animation: nonoPop 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nonogram-cell.crossed {
  background: #ffffff;
  color: #c5221f;
  font-weight: 900;
  font-size: 13px;
}

.nonogram-cell.revealed-art {
  background: #1a73e8 !important;
  animation: artGlow 0.4s ease-out;
}

.nonogram-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 8px;
}

@keyframes nonoPop {
  0% { transform: scale(0.7); }
  100% { transform: scale(1); }
}

@keyframes artGlow {
  0% { transform: scale(0.9); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ====================================================
 * 31. MINESWEEPER LOGIC (No-Guess Deduction)
 * High-Contrast Tactile Board: Instant Clickable vs Non-Clickable Clarity
 * ==================================================== */
.minesweeper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.minesweeper-header-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(60,64,67,0.08);
}

.minesweeper-mode-toggle {
  display: inline-flex;
  background: #f1f3f4;
  border-radius: 9px;
  padding: 3px;
  gap: 4px;
}

.minesweeper-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #5f6368;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.minesweeper-mode-btn.active {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(26, 115, 232, 0.35);
}

.minesweeper-mode-btn.mode-flag-btn.active {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.35);
}

.minesweeper-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.minesweeper-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #334155;
}

.minesweeper-badge.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Visual Tile Legend Bar */
.minesweeper-legend-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 11.5px;
  color: #475569;
}

.ms-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ms-legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.ms-legend-swatch.swatch-unrevealed {
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  border-top: 2px solid #93c5fd;
  border-left: 2px solid #93c5fd;
  border-right: 2px solid #1e3a8a;
  border-bottom: 2px solid #1e3a8a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ms-legend-swatch.swatch-chord {
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #047857;
}

.ms-legend-swatch.swatch-cleared {
  background: #e2e8f0;
  border: 1px inset #cbd5e1;
}

.minesweeper-board-outer {
  width: 100%;
  background: #0f172a;
  border: 3px solid #1e293b;
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), 0 6px 16px rgba(15, 23, 42, 0.16);
  display: flex;
  justify-content: center;
}

.minesweeper-grid {
  display: grid;
  gap: 5px;
  width: 100%;
  max-width: 450px;
  background: #1e293b;
  padding: 6px;
  border-radius: 10px;
}

.minesweeper-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 6px;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.12s ease, background 0.12s ease;
}

/* 1. UNREVEALED TILES: ROYAL BLUE 3D TACTILE CAP (100% CLEARLY CLICKABLE) */
.minesweeper-cell.unrevealed.clickable-tile {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%);
  border-top: 3px solid #93c5fd;
  border-left: 3px solid #60a5fa;
  border-right: 3px solid #1e40af;
  border-bottom: 3px solid #1e3a8a;
  box-shadow: 0 3px 5px rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

/* Subtle tactile center pip on clickable unopened tiles */
.ms-tile-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.minesweeper-cell.unrevealed.clickable-tile:hover {
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 65%, #2563eb 100%);
  border-top-color: #dbeafe;
  border-left-color: #bfdbfe;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.75), 0 4px 8px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.minesweeper-cell.unrevealed.clickable-tile:hover .ms-tile-pip {
  background: #ffffff;
  transform: scale(1.35);
}

/* In Flag Mode, hovering an unrevealed tile glows warm amber-gold */
.minesweeper-grid.tool-mode-flag .minesweeper-cell.unrevealed.clickable-tile:hover {
  background: linear-gradient(145deg, #fde68a 0%, #f59e0b 100%);
  border-top-color: #fef3c7;
  border-left-color: #fde68a;
  border-right-color: #b45309;
  border-bottom-color: #92400e;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.75);
}

.minesweeper-cell.unrevealed.clickable-tile:active {
  transform: translateY(1px);
  border-top: 2px solid #1e3a8a;
  border-left: 2px solid #1e40af;
  border-right: 2px solid #60a5fa;
  border-bottom: 2px solid #93c5fd;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.45);
}

/* Neighbor Highlight When Hovering a Chord-Ready Number */
.minesweeper-cell.unrevealed.chord-target-preview {
  background: linear-gradient(145deg, #34d399 0%, #059669 100%) !important;
  border-top-color: #a7f3d0 !important;
  border-left-color: #6ee7b7 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.85) !important;
  transform: scale(1.05);
}

/* 2. REVEALED TILES: FLAT SUNKEN FLOOR (CLEARLY OPENED) */
.minesweeper-cell.revealed {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
  cursor: default;
  transform: none;
}

/* 2A. REVEALED EMPTY (0) TILES: MUTED RECESSED SLATE FLOOR (NON-CLICKABLE) */
.minesweeper-cell.revealed.zero {
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.22);
  cursor: default;
  pointer-events: none;
}

/* 2B. REVEALED NUMBER — RESOLVED (All neighbors already dug/flagged -> dimmed, non-clickable) */
.minesweeper-cell.revealed.clue-resolved {
  background: #e2e8f0;
  border-color: #cbd5e1;
  cursor: default;
}

.minesweeper-cell.revealed.clue-resolved .ms-clue-num {
  opacity: 0.35;
}

/* 2C. REVEALED NUMBER — PENDING FLAGS (Active clue, not yet chordable) */
.minesweeper-cell.revealed.clue-pending {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  cursor: default;
}

/* 2D. REVEALED NUMBER — CHORD-READY (Flags match clue & has unopened neighbors -> CLICKABLE!) */
.minesweeper-cell.revealed.chord-ready {
  background: #ecfdf5;
  border: 2px solid #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 2px 5px rgba(16, 185, 129, 0.2);
  cursor: pointer;
  animation: chordReadyPulse 1.8s infinite ease-in-out;
}

.minesweeper-cell.revealed.chord-ready:hover {
  background: #d1fae5;
  border-color: #059669;
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.65);
  z-index: 2;
}

.ms-chord-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 4px #10b981;
}

@keyframes chordReadyPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45); }
}

/* 3. FLAGGED TILES: VIBRANT AMBER-GOLD 3D CAP */
.minesweeper-cell.flagged {
  background: linear-gradient(145deg, #fef3c7 0%, #f59e0b 100%) !important;
  border-top: 3px solid #fffbeb !important;
  border-left: 3px solid #fde68a !important;
  border-right: 3px solid #b45309 !important;
  border-bottom: 3px solid #92400e !important;
  box-shadow: 0 3px 6px rgba(180, 83, 9, 0.4) !important;
  font-size: 17px;
  cursor: pointer;
}

.minesweeper-cell.flagged:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8) !important;
}

/* Hint highlight pulse */
.minesweeper-cell.ms-hint-pulse {
  outline: 3px solid #f59e0b;
  outline-offset: -1px;
  z-index: 3;
}

/* 4. EXPLODED & REVEALED MINES */
.minesweeper-cell.exploded {
  background: #ef4444 !important;
  border: 2px solid #b91c1c !important;
  color: #ffffff !important;
  animation: mineExplode 0.4s ease-out;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8) !important;
}

.minesweeper-cell.mine {
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #991b1b;
}

/* High-Contrast Clue Numbers */
.minesweeper-cell.clue-1 { color: #1d4ed8; }
.minesweeper-cell.clue-2 { color: #15803d; }
.minesweeper-cell.clue-3 { color: #dc2626; }
.minesweeper-cell.clue-4 { color: #7e22ce; }
.minesweeper-cell.clue-5 { color: #c2410c; }
.minesweeper-cell.clue-6 { color: #0e7490; }
.minesweeper-cell.clue-7 { color: #1f2937; }
.minesweeper-cell.clue-8 { color: #4b5563; }

.minesweeper-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.minesweeper-tip {
  font-size: 12px;
  color: #475569;
  text-align: center;
  line-height: 1.45;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}

@keyframes mineExplode {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .minesweeper-cell {
    font-size: 14px;
    border-radius: 4px;
  }
  .minesweeper-grid {
    gap: 3.5px;
  }
  .minesweeper-legend-bar {
    gap: 8px;
    font-size: 11px;
  }
}

/* ====================================================
 * GAME #32: DAILY WORDLE / LINGO (5-LETTER WORD CHALLENGE)
 * ==================================================== */
.wordle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  gap: 12px;
  user-select: none;
  position: relative;
}

.wordle-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wordle-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 20px;
}

.wordle-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 20px;
}

.wordle-toast-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  pointer-events: none;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordle-toast {
  background: #202124;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: wordleToastFade 0.25s ease-out;
}

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

.wordle-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  margin: 6px auto;
}

.wordle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
}

.wordle-tile {
  aspect-ratio: 1 / 1;
  border: 2px solid #d3d6da;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: #202124;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
  user-select: none;
  position: relative;
}

.wordle-tile.active-letter {
  border-color: #878a8c;
  animation: wordlePop 0.1s ease-in-out;
}

.wordle-tile.lingo-hint {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.wordle-tile.lingo-hint::after {
  content: '★';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  color: #16a34a;
}

.wordle-tile.tile-correct {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}

.wordle-tile.tile-present {
  background: #eab308 !important;
  border-color: #eab308 !important;
  color: #ffffff !important;
}

.wordle-tile.tile-absent {
  background: #787c7e !important;
  border-color: #787c7e !important;
  color: #ffffff !important;
}

.wordle-tile.flipping {
  animation: wordleTileFlip 0.5s ease forwards;
}

.wordle-tile.bounce {
  animation: wordleBounce 0.6s ease forwards;
}

.wordle-row.shake {
  animation: wordleShake 0.4s ease-in-out;
}

@keyframes wordlePop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes wordleTileFlip {
  0% {
    transform: rotateX(0deg);
  }
  49% {
    transform: rotateX(90deg);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

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

@keyframes wordleBounce {
  0%, 20% { transform: translateY(0); }
  40% { transform: translateY(-16px); }
  50% { transform: translateY(0); }
  60% { transform: translateY(-8px); }
  80% { transform: translateY(0); }
}

/* Virtual Keyboard */
.wordle-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 480px;
  margin-top: 6px;
}

.wordle-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
  touch-action: manipulation;
}

.wordle-key {
  flex: 1;
  height: 52px;
  background: #d3d6da;
  border: none;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #202124;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.05s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wordle-key:active {
  transform: scale(0.94);
  opacity: 0.9;
}

.wordle-key.wide {
  flex: 1.55;
  font-size: 12px;
  text-transform: uppercase;
}

.wordle-key.key-correct {
  background: #22c55e !important;
  color: #ffffff !important;
}

.wordle-key.key-present {
  background: #eab308 !important;
  color: #ffffff !important;
}

.wordle-key.key-absent {
  background: #787c7e !important;
  color: #ffffff !important;
  opacity: 0.65;
}

.wordle-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.wordle-hint-pill {
  font-size: 12.5px;
  color: #5f6368;
  text-align: center;
}

@media (max-width: 480px) {
  .wordle-board {
    max-width: 290px;
    gap: 5px;
  }
  .wordle-row {
    gap: 5px;
  }
  .wordle-tile {
    font-size: 21px;
    border-radius: 5px;
    border-width: 1.5px;
  }
  .wordle-keyboard {
    gap: 4px;
  }
  .wordle-keyboard-row {
    gap: 3.5px;
  }
  .wordle-key {
    height: 44px;
    font-size: 12.5px;
    border-radius: 4px;
  }
  .wordle-key.wide {
    font-size: 10px;
    flex: 1.4;
  }
}

/* ====================================================
 * MULTI-GAME DAILY COGNITIVE HUB & DUAL QUEST CARDS
 * ==================================================== */
.daily-hub-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.daily-hub-header-card {
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.06);
  position: relative;
  overflow: hidden;
}

.daily-hub-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #fbbc04, #34a853, #ea4335);
}

.daily-challenges-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.daily-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  width: 100%;
}

.daily-challenges-grid.daily-challenges-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100% !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 12px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.daily-challenges-grid.daily-challenges-carousel::-webkit-scrollbar {
  display: none;
}

.daily-challenges-carousel .daily-quest-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 310px;
  max-width: 380px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .daily-challenges-carousel .daily-quest-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 290px;
    max-width: 370px;
  }
}

@media (max-width: 680px) {
  .daily-challenges-carousel .daily-quest-card {
    flex: 0 0 86%;
    min-width: 270px;
    max-width: 340px;
  }
}

/* Floating Carousel Navigation Arrows */
.daily-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(60, 64, 67, 0.16);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.daily-carousel-arrow:hover:not(:disabled) {
  background: #f8f9fa;
  color: var(--google-blue, #1a73e8);
  border-color: #bad3fb;
  box-shadow: 0 5px 16px rgba(60, 64, 67, 0.24);
  transform: translateY(-50%) scale(1.08);
}

.daily-carousel-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.daily-carousel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.daily-carousel-prev {
  left: -20px;
}

.daily-carousel-next {
  right: -20px;
}

@media (max-width: 768px) {
  .daily-carousel-prev {
    left: -8px;
  }
  .daily-carousel-next {
    right: -8px;
  }
  .daily-carousel-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Carousel Bottom Indicators & Controls */
.daily-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
}

.daily-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #dadce0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-carousel-dot:hover {
  background: #9aa0a6;
}

.daily-carousel-dot.active {
  width: 24px;
  background: var(--google-blue, #1a73e8);
  border-radius: 4px;
}

.daily-carousel-counter {
  font-size: 12px;
  font-weight: 700;
  color: #5f6368;
  background: #f1f3f4;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.daily-quest-card {
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.daily-quest-card.card-wordle {
  border-top: 4px solid #22c55e;
}

.daily-quest-card.card-pinpoint {
  border-top: 4px solid #7c3aed;
}

.daily-quest-card.card-path {
  border-top: 4px solid #1a73e8;
}

.daily-quest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.1);
  border-color: #bad3fb;
}

.daily-quest-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-quest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.daily-game-pill.pill-wordle {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.daily-game-pill.pill-pinpoint {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.daily-game-pill.pill-path {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.daily-game-date {
  font-size: 12px;
  font-weight: 700;
  color: #5f6368;
  background: #f1f3f4;
  padding: 2px 8px;
  border-radius: 10px;
}

.daily-quest-title {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  margin: 0;
}

.daily-quest-desc {
  font-size: 13.5px;
  color: #5f6368;
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daily-quest-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 14px 0;
  height: 92px;
  min-height: 92px;
  box-sizing: border-box;
}

.daily-quest-preview-meta {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.4;
}

.daily-quest-preview-meta strong {
  color: #202124;
}

/* Wordle Visual Preview */
.daily-wordle-preview {
  display: flex;
  gap: 5px;
  align-items: center;
}

.wordle-preview-tile {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.wordle-preview-tile.correct { background: #22c55e; }
.wordle-preview-tile.present { background: #eab308; }
.wordle-preview-tile.absent { background: #787c7e; }

/* Pinpoint Visual Preview (mini) */
.daily-pinpoint-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 125px;
}

.daily-pinpoint-mini-clue {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}

.daily-pinpoint-mini-clue.revealed {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.daily-pinpoint-mini-clue.locked {
  background: #f1f5f9;
  opacity: 0.65;
}

.pinpoint-mini-num {
  width: 15px;
  height: 15px;
  min-width: 15px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-pinpoint-mini-clue.locked .pinpoint-mini-num {
  background: #94a3b8;
}

.pinpoint-mini-text {
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.daily-pinpoint-mini-clue.locked .pinpoint-mini-text {
  color: #94a3b8;
  font-weight: 500;
  font-style: italic;
}

/* Path Visual Preview (mini) */
.daily-path-mini-board {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2.5px;
  padding: 3.5px;
  position: relative;
  flex-shrink: 0;
}

.daily-path-mini-tile {
  background: #f1f3f4;
  border-radius: 3px;
  border: 1px solid #e8eaed;
}

.daily-path-mini-tile.cp-start {
  background: #137333;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-path-mini-tile.trail {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.daily-path-mini-tile.cp-end {
  background: #fbbc04;
  color: #202124;
  font-size: 7px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.daily-quest-actions .btn-primary-google,
.daily-quest-actions .btn-secondary-google {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* Catalog Card Daily Tag */
.game-card-daily-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .daily-challenges-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .daily-hub-header-card {
    padding: 18px 18px;
  }
}

/* ====================================================
 * GAME: ANAGRAMANIA (WORD SCRAMBLE) - GOOGLE SUPPORT STYLE
 * ==================================================== */
.anagram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px;
  user-select: none;
}

.anagram-header-card {
  width: 100%;
  background: var(--surface, #ffffff);
  border: 1px solid #dadce0;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.anagram-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.anagram-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.anagram-progress-pill {
  font-size: 13px;
  font-weight: 700;
  color: #3c4043;
  background: #f1f3f4;
  padding: 4px 12px;
  border-radius: 12px;
}

.anagram-clue-box {
  background: #f8f9fa;
  border-left: 3.5px solid #1a73e8;
  border-radius: 4px 12px 12px 4px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #202124;
  line-height: 1.5;
}

.anagram-clue-box strong {
  color: #1a73e8;
}

.anagram-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5f6368;
  margin-bottom: 4px;
}

/* Answer Slots Row */
.anagram-slots-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 22px;
  flex-wrap: wrap;
  min-height: 60px;
  perspective: 600px;
}

.anagram-slot {
  width: clamp(44px, 10vw, 56px);
  height: clamp(50px, 11vw, 62px);
  border-radius: 12px;
  border: 2px dashed #dadce0;
  background: #f8f9fa;
  color: #202124;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  font-family: 'Google Sans', var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.anagram-slot.filled {
  border: 2px solid #1a73e8;
  background: #ffffff;
  color: #1a73e8;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.15);
  animation: anagramPop 0.18s ease-out;
}

.anagram-slot.hinted {
  border-color: #f9ab00;
  background: #fef7e0;
  color: #b06000;
  box-shadow: 0 4px 10px rgba(249, 171, 0, 0.2);
}

.anagram-slot.slot-correct {
  border-color: #34a853 !important;
  background: #e6f4ea !important;
  color: #137333 !important;
  animation: anagramBounce 0.45s ease-out;
}

.anagram-slots-wrap.slots-shake {
  animation: anagramShake 0.4s ease-in-out;
}

/* Scrambled Letter Bank */
.anagram-bank-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  max-width: 520px;
}

.anagram-bank-tile {
  width: clamp(44px, 10vw, 56px);
  height: clamp(50px, 11vw, 62px);
  border-radius: 12px;
  border: 2px solid #1a73e8;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  font-family: 'Google Sans', var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.16);
  transition: all 0.15s ease;
  outline: none;
}

.anagram-bank-tile:hover:not(.used) {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(26, 115, 232, 0.25);
  background: #d2e3fc;
}

.anagram-bank-tile:active:not(.used) {
  transform: translateY(1px);
}

.anagram-bank-tile.used {
  opacity: 0.22;
  cursor: default;
  border-color: #dadce0;
  background: #f1f3f4;
  color: #9aa0a6;
  box-shadow: none;
  transform: none;
}

/* Controls Toolbar */
.anagram-toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.anagram-btn-action {
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #3c4043;
}

.anagram-btn-action:hover:not(:disabled) {
  background: #f1f3f4;
  border-color: #bdc1c6;
}

.anagram-btn-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.anagram-btn-submit {
  background: #1a73e8 !important;
  color: #ffffff !important;
  border-color: #1a73e8 !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.anagram-btn-submit:hover:not(:disabled) {
  background: #1557b0 !important;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}

.anagram-btn-hint {
  border-color: rgba(249, 171, 0, 0.4);
  color: #b06000;
  background: #fef7e0;
}

.anagram-btn-hint:hover:not(:disabled) {
  background: #feefc3;
}

.anagram-keyboard-tip {
  font-size: 12px;
  color: #80868b;
  margin-top: 14px;
  text-align: center;
}

@keyframes anagramPop {
  0% { transform: scale(0.85); opacity: 0.6; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes anagramBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

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

/* ====================================================
 * GAME: PINPOINT (CATEGORY DEDUCTION)
 * Material 3 / Google Support Inspired Cognitive Deduction
 * ==================================================== */
.pinpoint-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  gap: 16px;
  user-select: none;
  position: relative;
}

.pinpoint-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.pinpoint-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 4px 14px;
  border-radius: 20px;
}

.pinpoint-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 14px;
  border-radius: 20px;
}

.pinpoint-board-card {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pinpoint-instruction-box {
  text-align: center;
  background: #faf5ff;
  border: 1px dashed #d8b4fe;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b21a8;
}

.pinpoint-clues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pinpoint-clue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pinpoint-clue-item.revealed {
  background: #ffffff;
  border-color: #c4b5fd;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
  animation: pinpointClueSlideIn 0.35s ease-out;
}

.pinpoint-clue-item.locked {
  background: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.6;
}

.pinpoint-clue-item.solved {
  background: #f0fdf4;
  border-color: #86efac;
  animation: pinpointPulseGreen 0.4s ease;
}

.pinpoint-clue-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  background: #e2e8f0;
  color: #64748b;
  transition: all 0.25s ease;
}

.pinpoint-clue-item.revealed .pinpoint-clue-num {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.pinpoint-clue-item.solved .pinpoint-clue-num {
  background: #16a34a;
  color: #ffffff;
}

.pinpoint-clue-text {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
}

.pinpoint-clue-item.locked .pinpoint-clue-text {
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
}

.pinpoint-clue-indicator {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 3px 8px;
  border-radius: 8px;
}

.pinpoint-input-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.pinpoint-input-field {
  flex: 1;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.pinpoint-input-field:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.pinpoint-input-field::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.pinpoint-btn-submit {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pinpoint-btn-submit:hover:not(:disabled) {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.pinpoint-btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.pinpoint-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.pinpoint-btn-reveal {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pinpoint-btn-reveal:hover:not(:disabled) {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.pinpoint-btn-reveal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pinpoint-btn-skip {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pinpoint-btn-skip:hover {
  background: #f1f5f9;
  color: #334155;
}

.pinpoint-feedback {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pinpoint-feedback.wrong {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  animation: pinpointShake 0.4s ease-in-out;
}

.pinpoint-feedback.correct {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  animation: pinpointPop 0.3s ease;
}

.pinpoint-feedback.info {
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.pinpoint-solution-card {
  width: 100%;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: pinpointPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pinpoint-solution-title {
  font-size: 20px;
  font-weight: 800;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pinpoint-solution-explanation {
  font-size: 14px;
  color: #15803d;
  line-height: 1.5;
  max-width: 440px;
}

.pinpoint-next-btn {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
}

.pinpoint-next-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

@keyframes pinpointClueSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pinpointPulseGreen {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes pinpointPop {
  0% { transform: scale(0.92); opacity: 0; }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 480px) {
  .pinpoint-board-card {
    padding: 16px 14px;
  }
  .pinpoint-clue-item {
    gap: 10px;
    padding: 10px 12px;
  }
  .pinpoint-clue-text {
    font-size: 14.5px;
  }
  .pinpoint-input-wrap {
    flex-direction: column;
  }
  .pinpoint-btn-submit {
    height: 44px;
    justify-content: center;
  }
}

/* ====================================================
 * GAME: SPELLING BEE (HONEYCOMB WORDS)
 * Inspired by NYT Spelling Bee & Google Support UI
 * ==================================================== */

.spelling-bee-arena {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  user-select: none;
}

/* Rank & Score Progress Bar */
.sb-rank-container {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.06);
}

.sb-rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sb-rank-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-rank-badge {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-rank-points {
  font-size: 13.5px;
  font-weight: 700;
  color: #5f6368;
}

.sb-rank-points strong {
  color: #ca8a04;
}

.sb-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: #f1f3f4;
  border-radius: 6px;
  overflow: visible;
  margin: 8px 0 4px;
}

.sb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15, #eab308);
  border-radius: 6px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-rank-dots {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  pointer-events: none;
}

.sb-rank-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #dadce0;
  transition: all 0.2s ease;
}

.sb-rank-dot.active {
  background: #ca8a04;
  border-color: #ca8a04;
  box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.2);
}

/* Input Display and Toast Feedback */
.sb-input-wrap {
  position: relative;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.sb-toast {
  position: absolute;
  top: -38px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 10;
  white-space: nowrap;
}

.sb-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.sb-toast.toast-info {
  background: #334155;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.sb-toast.toast-success {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}

.sb-toast.toast-pangram {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.4);
  animation: sbPangramPulse 0.6s ease infinite alternate;
}

@keyframes sbPangramPulse {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.sb-word-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  min-height: 44px;
  text-transform: uppercase;
}

.sb-word-display .letter-center {
  color: #ca8a04;
}

.sb-word-display .letter-outer {
  color: #202124;
}

.sb-cursor {
  display: inline-block;
  width: 2.5px;
  height: 28px;
  background: #1a73e8;
  margin-left: 2px;
  animation: sbBlink 1s step-end infinite;
}

@keyframes sbBlink {
  50% { opacity: 0; }
}

/* Honeycomb SVG Hive */
.sb-hive-svg-container {
  width: 100%;
  max-width: 320px;
  margin: 6px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-hive-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 3px 8px rgba(60, 64, 67, 0.1));
}

.hive-node {
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform-box: fill-box;
  transform-origin: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hive-node:hover polygon {
  filter: brightness(0.93);
}

.hive-node:active, .hive-node.node-active {
  transform: scale(0.92);
}

.hive-node.node-center polygon {
  fill: #facc15;
  transition: fill 0.15s ease;
}

.hive-node.node-center:hover polygon {
  fill: #eab308;
}

.hive-node.node-outer polygon {
  fill: #e8eaed;
  transition: fill 0.15s ease;
}

.hive-node.node-outer:hover polygon {
  fill: #dadce0;
}

.hive-node text {
  font-family: 'Google Sans', Roboto, -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 800;
  fill: #202124;
  pointer-events: none;
  user-select: none;
}

.hive-node.node-center text {
  fill: #1e293b;
}

/* Action Controls Row */
.sb-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.sb-action-btn {
  height: 44px;
  border-radius: 22px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #dadce0;
  background: #ffffff;
  color: #3c4043;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  outline: none;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.08);
}

.sb-action-btn:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
  transform: translateY(-1px);
}

.sb-action-btn:active {
  transform: scale(0.96);
}

.sb-btn-shuffle {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

.sb-btn-shuffle.rotating {
  animation: sbRotate 0.35s ease;
}

@keyframes sbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

.sb-btn-enter {
  background: var(--google-blue, #1a73e8);
  color: #ffffff;
  border-color: var(--google-blue, #1a73e8);
}

.sb-btn-enter:hover {
  background: #1765cc;
  border-color: #1765cc;
  color: #ffffff;
}

/* Found Words Drawer & Word List */
.sb-words-drawer {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e8eaed;
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.06);
  transition: all 0.2s ease;
}

.sb-words-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: #202124;
  font-size: 14.5px;
}

.sb-words-count-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sb-words-toggle-btn {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 16px;
  color: #3c4043;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.sb-words-toggle-btn:hover {
  background: #e8eaed;
  color: #1a73e8;
}

.sb-words-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 2px;
  transition: max-height 0.25s ease;
}

.sb-word-chip {
  background: #f1f3f4;
  color: #202124;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e8eaed;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sb-word-chip.is-pangram {
  background: #fef08a;
  color: #854d0e;
  border-color: #facc15;
  box-shadow: 0 1px 6px rgba(250, 204, 21, 0.35);
  font-weight: 800;
}

.sb-word-chip.just-added {
  animation: sbChipPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sbChipPop {
  0% { transform: scale(0.6); opacity: 0; background: #bbf7d0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.sb-empty-words-hint {
  color: #80868b;
  font-size: 13.5px;
  font-style: italic;
  padding: 12px 6px;
  width: 100%;
  text-align: center;
}

.sb-last-word-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: sbLastWordFade 0.3s ease;
}

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

/* Daily Finish Modal / Card */
.sb-daily-win-card {
  width: 100%;
  background: #fefce8;
  border: 2px solid #facc15;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  animation: sbPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sbPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sb-win-title {
  font-size: 22px;
  font-weight: 800;
  color: #854d0e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-win-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 6px 0;
}

.sb-win-stat-box {
  background: #ffffff;
  border: 1px solid #fef08a;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.sb-win-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #a16207;
}

.sb-win-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #713f12;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sb-share-btn {
  background: #ca8a04;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
  transition: all 0.2s ease;
}

.sb-share-btn:hover {
  background: #a16207;
  transform: translateY(-1px);
}

.sb-session-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-top: 14px;
}

.sb-finish-session-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sb-finish-session-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.sb-finish-session-btn.can-conquer {
  background: #fef08a;
  border-color: #eab308;
  color: #854d0e;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
  animation: sbPulseGlow 1.6s infinite alternate;
}

@keyframes sbPulseGlow {
  0% { transform: scale(1); box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35); }
  100% { transform: scale(1.03); box-shadow: 0 4px 16px rgba(234, 179, 8, 0.55); }
}

.sb-claim-daily-btn {
  background: #ca8a04;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
  transition: all 0.2s ease;
}

.sb-claim-daily-btn:hover {
  background: #a16207;
  transform: translateY(-1px);
}

/* ==========================================================================
   IQUGAMES INSIGHTS & RELEASE HUB + VERSION CHANGELOG SYSTEM
   ========================================================================== */

.insights-hub-wrapper {
  min-height: calc(100vh - 140px);
  background: #f8f9fa;
  padding-bottom: 64px;
}

.insights-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #dadce0;
  padding: 36px 20px 28px;
}

.insights-hero-container {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.insights-version-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  color: #1967d2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.version-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e8e3e;
  box-shadow: 0 0 0 3px rgba(30, 142, 62, 0.2);
}

.version-pill-sep {
  opacity: 0.6;
}

.version-pill-date {
  color: #174ea6;
  font-weight: 600;
}

.insights-hero-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 34px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.insights-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 26px;
  font-size: 15.5px;
  color: #5f6368;
  line-height: 1.55;
}

.insights-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.05);
}

.insights-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.insights-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #5f6368;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.insights-tab-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

.insights-tab-btn.active {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.insights-search-box {
  position: relative;
  min-width: 240px;
  flex: 0 1 270px;
}

.insights-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

.insights-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  font-size: 13px;
  color: #202124;
  background: #f8f9fa;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.insights-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.insights-main-container {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* Insights Posts Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.insight-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: #8ab4f8;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.1);
}

.insight-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.insight-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.insight-cat-release {
  background: #e8f0fe;
  color: #1967d2;
}

.insight-cat-guide {
  background: #e6f4ea;
  color: #137333;
}

.insight-cat-science {
  background: #f3e8fd;
  color: #7627bb;
}

.insight-cat-default {
  background: #f1f3f4;
  color: #3c4043;
}

.insight-version-pill {
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.insight-sub-badge {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #fde293;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.insight-card-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 10px;
}

.insight-card-title a {
  color: #202124;
  text-decoration: none;
  transition: color 0.15s ease;
}

.insight-card-title a:hover {
  color: #1a73e8;
}

.insight-card-excerpt {
  font-size: 13.5px;
  color: #5f6368;
  line-height: 1.55;
  margin: 0;
}

.insight-card-footer {
  border-top: 1px solid #f1f3f4;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.insight-meta-info {
  font-size: 12px;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.insight-linked-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8faff;
  border: 1px solid #d2e3fc;
  color: #1967d2;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  max-width: 245px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.insight-linked-game-chip:hover {
  background: #e8f0fe;
  border-color: #8ab4f8;
}

.insight-read-btn {
  font-size: 13px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.insight-read-btn:hover {
  text-decoration: underline;
}

.insights-empty-state {
  background: #ffffff;
  border: 1px dashed #dadce0;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}

.insights-empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* Version & Changelog Timeline Section */
.insights-changelog-section {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(32, 33, 36, 0.04);
}

.changelog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eaed;
  margin-bottom: 28px;
}

.changelog-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #1a73e8;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.changelog-section-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 24px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 6px;
}

.changelog-section-desc {
  font-size: 14px;
  color: #5f6368;
  margin: 0;
}

.changelog-current-box {
  background: #f8faff;
  border: 1.5px solid #d2e3fc;
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.current-box-label {
  font-size: 11px;
  font-weight: 700;
  color: #5f6368;
  text-transform: uppercase;
}

.current-box-ver {
  font-size: 22px;
  font-weight: 800;
  color: #1a73e8;
}

.current-box-status {
  font-size: 12px;
  font-weight: 700;
  color: #137333;
}

.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.changelog-version-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 22px;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  background: #fafafa;
  transition: border-color 0.2s ease;
}

.changelog-version-card.is-latest-version {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1.5px solid #8ab4f8;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.08);
}

.changelog-ver-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid #e8eaed;
  padding-right: 16px;
}

.changelog-ver-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.changelog-ver-number {
  font-family: 'Google Sans', var(--font-family);
  font-size: 20px;
  font-weight: 800;
  color: #202124;
}

.changelog-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eaed;
  color: #3c4043;
}

.changelog-status-pill.latest {
  background: #e6f4ea;
  color: #137333;
}

.changelog-ver-date {
  font-size: 12.5px;
  color: #5f6368;
  font-weight: 500;
}

.changelog-ver-title {
  font-size: 17px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 6px;
}

.changelog-ver-summary {
  font-size: 13.5px;
  color: #5f6368;
  line-height: 1.5;
  margin: 0 0 14px;
}

.changelog-changes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-change-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #3c4043;
  line-height: 1.45;
}

.change-type-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.4px;
}

.tag-new_game {
  background: #e6f4ea;
  color: #137333;
}

.tag-feature {
  background: #e8f0fe;
  color: #1967d2;
}

.tag-improvement {
  background: #f3e8fd;
  color: #7627bb;
}

.tag-fix {
  background: #fef7e0;
  color: #b06000;
}

/* Single Insight Article & Game CTA Box */
.insight-single-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.insight-game-cta-box {
  margin-top: 36px;
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  border: 1.5px solid #8ab4f8;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.insight-game-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 320px;
}

.insight-game-cta-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.insight-game-cta-thumb svg {
  width: 40px;
  height: 40px;
}

.insight-game-cta-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #1967d2;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.insight-game-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 4px;
}

.insight-game-cta-desc {
  font-size: 13px;
  color: #5f6368;
  margin: 0 0 6px;
  line-height: 1.45;
}

.insight-game-cta-tags {
  font-size: 12px;
  font-weight: 600;
  color: #3c4043;
  display: flex;
  align-items: center;
  gap: 6px;
}

.insight-game-cta-btn {
  white-space: nowrap;
  text-decoration: none;
  padding: 12px 22px;
  font-weight: 700;
}

.insight-article-footer-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #ffffff;
  color: #3c4043;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-secondary-outline:hover {
  background: #f1f3f4;
  border-color: #bdc1c6;
  color: #202124;
}

.insight-related-section {
  margin-top: 36px;
}

.insight-related-heading {
  font-size: 18px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 16px;
}

.insight-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.insight-related-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.18s ease;
}

.insight-related-card:hover {
  border-color: #8ab4f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.08);
}

.insight-related-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #202124;
  margin: 0;
  line-height: 1.4;
}

.insight-related-date {
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
}

/* Footer Live Version Badge */
.footer-copyright {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.footer-version-badge:hover {
  background: #e8f0fe;
  border-color: #8ab4f8;
  color: #1967d2;
}

.footer-ver-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e8e3e;
}

@media (max-width: 768px) {
  .insights-hero-title {
    font-size: 26px;
  }
  .insights-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .insights-search-box {
    flex: 1 1 auto;
  }
  .changelog-version-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .changelog-ver-sidebar {
    border-right: none;
    border-bottom: 1px solid #e8eaed;
    padding-right: 0;
    padding-bottom: 10px;
  }
  .insights-changelog-section {
    padding: 20px;
  }
}

/* ==========================================================================
   DEDICATED DAILY PUZZLE PAGE (/daily-puzzle/)
   ========================================================================== */

.daily-puzzle-page-wrapper {
  min-height: calc(100vh - 140px);
  background: #f8f9fa;
  padding-bottom: 56px;
}

.daily-puzzle-dedicated-section {
  padding-top: 28px;
}

.daily-puzzle-dedicated-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.daily-puzzle-dedicated-grid .daily-quest-card {
  width: 100%;
  min-width: 0;
  flex: none;
}

@media (max-width: 820px) {
  .daily-puzzle-dedicated-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DEDICATED FAQ & HELP CENTER PAGE (/faq/)
   ========================================================================== */

.faq-controls-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.faq-search-box {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #dadce0;
  border-radius: 999px;
  font-size: 14px;
  color: #202124;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.05);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.faq-search-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.faq-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-filter-btn {
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #5f6368;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.faq-filter-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

.faq-filter-btn.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.24);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: #8ab4f8;
}

.faq-accordion-item.open {
  border-color: #1a73e8;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.08);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-q-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.faq-cat-tag {
  font-size: 11px;
  font-weight: 700;
  color: #1967d2;
  letter-spacing: 0.3px;
}

.faq-q-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 16.5px;
  font-weight: 700;
  color: #202124;
  line-height: 1.4;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.faq-accordion-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: #e8f0fe;
  color: #1a73e8;
}

.faq-answer-panel {
  border-top: 1px solid #f1f3f4;
  background: #fafbfc;
}

.faq-answer-inner {
  padding: 16px 22px 20px;
  font-size: 14.5px;
  color: #3c4043;
  line-height: 1.65;
}

.faq-answer-inner a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: underline;
}

.faq-support-cta-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1.5px solid #d2e3fc;
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.faq-cta-left h3 {
  font-size: 17px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 4px;
}

.faq-cta-left p {
  font-size: 13.5px;
  color: #5f6368;
  margin: 0;
}

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

/* ====================================================
 * HOME EDITORIAL & DESCRIPTION SECTION
 * 200x200 Proportional Featured Image (Left) + Brief Overview (Right)
 * ==================================================== */
.home-description-section {
  padding: 44px 20px 52px;
  background: var(--google-bg);
  position: relative;
}

.home-desc-container {
  max-width: 1200px;
  margin: 0 auto;
}

.home-desc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.05);
  padding: 28px 32px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.home-desc-card:hover {
  box-shadow: 0 6px 24px rgba(60, 64, 67, 0.09);
}

.home-desc-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
}

/* Left Column: Media / Featured Image (200x200 Proportional) */
.home-desc-media-col {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.home-desc-img-card {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.home-desc-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.home-desc-img-card:hover .home-desc-img {
  transform: scale(1.04);
}

/* Placeholder card when no featured image is set yet */
.home-desc-placeholder-card {
  width: 200px;
  height: 200px;
  min-height: 200px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f3e8fd 50%, #fef7e0 100%);
  padding: 16px 12px;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.placeholder-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.placeholder-icon {
  font-size: 32px;
  line-height: 1;
}

.placeholder-title {
  font-family: 'Google Sans', var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.1px;
}

.placeholder-subtitle {
  display: none;
}

.btn-desc-set-thumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  color: var(--google-blue);
  border: 1px solid rgba(26, 115, 232, 0.3);
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-desc-set-thumb:hover {
  background: var(--google-blue);
  color: #ffffff;
  border-color: var(--google-blue);
}

/* Right Column: WordPress Editor Body */
.home-desc-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-desc-body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.home-desc-body h1,
.home-desc-body h2 {
  font-family: 'Google Sans', var(--font-family);
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.home-desc-body h3 {
  font-family: 'Google Sans', var(--font-family);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 18px 0 10px;
}

.home-desc-body p {
  margin: 0 0 12px;
  color: #3c4043;
}

.home-desc-body p:last-child {
  margin-bottom: 0;
}

.home-desc-body .lead-intro {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.home-desc-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.home-desc-body a {
  color: var(--google-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.home-desc-body a:hover {
  text-decoration: underline;
  color: var(--google-blue-hover);
}

.home-desc-body ul,
.home-desc-body ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.home-desc-body li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: #3c4043;
}

/* Admin Quick Edit Bar */
.home-desc-admin-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
}

.btn-desc-quick-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f8f9fa;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-desc-quick-edit:hover {
  background: #ffffff;
  color: var(--google-blue);
  border-color: var(--google-blue);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-desc-card {
    padding: 24px 20px;
  }
  
  .home-desc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }

  .home-desc-media-col {
    margin: 0 auto;
  }

  .home-desc-admin-bar {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home-description-section {
    padding: 32px 14px 40px;
  }

  .home-desc-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .home-desc-img-card,
  .home-desc-placeholder-card,
  .home-desc-media-col {
    width: 160px;
    height: 160px;
    min-height: 160px;
  }
}

/* ====================================================
 * WORD SEARCH COGNITIVE GAME STYLES
 * ==================================================== */
.word-search-arena {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.ws-top-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
}

.ws-top-bar-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.ws-controls-row {
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
}

.ws-theme-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ws-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  flex-shrink: 1;
}

.ws-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

.ws-nav-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ws-mode-tag {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ws-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ws-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ws-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ws-nav-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

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

.ws-btn-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ws-btn-hint:hover:not(:disabled) {
  background: #fde68a;
  transform: translateY(-1px);
}

.ws-btn-hint:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .ws-top-bar {
    padding: 8px 12px;
    gap: 6px;
  }
  .ws-top-bar-row {
    min-height: 30px;
  }
  .ws-theme-pill {
    max-width: 160px;
    font-size: 11.5px;
    padding: 4px 8px;
  }
  .ws-tier-badge {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .ws-progress-pill {
    font-size: 11px;
    padding: 4px 8px;
  }
  .ws-nav-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
  .ws-btn-hint {
    padding: 4px 10px;
    font-size: 11px;
  }
}

.ws-preview-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0284c7;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}

.ws-preview-bar.active {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: scale(1.03);
}

.ws-grid-board {
  position: relative;
  display: grid;
  gap: 4px;
  background: #ffffff;
  padding: 12px;
  border-radius: 18px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  touch-action: none;
  margin: 0 auto;
}

.ws-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  border-radius: 8px;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: background-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
  user-select: none;
}

@media (max-width: 480px) {
  .ws-cell {
    width: 30px;
    height: 30px;
    font-size: 14.5px;
    border-radius: 6px;
  }
  .ws-grid-board {
    padding: 8px;
    gap: 3px;
  }
}

.ws-cell:hover {
  background: #e2e8f0;
}

.ws-cell.selecting {
  background: #0284c7 !important;
  color: #ffffff !important;
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.ws-cell.selecting-start {
  border-radius: 12px;
}

.ws-cell.hint-pulse {
  animation: wsHintAnim 0.8s infinite alternate ease-in-out;
  z-index: 3;
}

@keyframes wsHintAnim {
  0% { transform: scale(1); background: #fef08a; color: #854d0e; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
  100% { transform: scale(1.15); background: #fde047; color: #713f12; box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
}

.ws-cell.found-0 { background: #dcfce7; color: #15803d; border-color: #86efac; font-weight: 800; }
.ws-cell.found-1 { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; font-weight: 800; }
.ws-cell.found-2 { background: #f3e8ff; color: #7e22ce; border-color: #d8b4fe; font-weight: 800; }
.ws-cell.found-3 { background: #ffedd5; color: #c2410c; border-color: #fdba74; font-weight: 800; }
.ws-cell.found-4 { background: #fce7f3; color: #be185d; border-color: #f9a8d4; font-weight: 800; }
.ws-cell.found-5 { background: #ccfbf1; color: #0f766e; border-color: #5eead4; font-weight: 800; }
.ws-cell.found-6 { background: #fef9c3; color: #854d0e; border-color: #fde047; font-weight: 800; }
.ws-cell.found-7 { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; font-weight: 800; }
.ws-cell.found-8 { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; font-weight: 800; }
.ws-cell.found-9 { background: #e2e8f0; color: #334155; border-color: #cbd5e1; font-weight: 800; }

.ws-cell.found-overlap {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.ws-words-container {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 18px;
}

.ws-words-header {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-words-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ws-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ws-word-chip.found {
  text-decoration: line-through;
  opacity: 0.65;
  transform: scale(0.96);
  border-color: transparent;
}

.ws-word-chip.found.color-0 { background: #dcfce7; color: #15803d; border-color: #86efac; }
.ws-word-chip.found.color-1 { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.ws-word-chip.found.color-2 { background: #f3e8ff; color: #7e22ce; border-color: #d8b4fe; }
.ws-word-chip.found.color-3 { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.ws-word-chip.found.color-4 { background: #fce7f3; color: #be185d; border-color: #f9a8d4; }
.ws-word-chip.found.color-5 { background: #ccfbf1; color: #0f766e; border-color: #5eead4; }
.ws-word-chip.found.color-6 { background: #fef9c3; color: #854d0e; border-color: #fde047; }
.ws-word-chip.found.color-7 { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.ws-word-chip.found.color-8 { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.ws-word-chip.found.color-9 { background: #e2e8f0; color: #334155; border-color: #cbd5e1; }

.ws-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 9999;
}

.ws-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ====================================================
 * FIND THE DIFFERENCE (SPOT DISCREPANCIES) STYLES
 * ==================================================== */
.ftd-arena {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.ftd-top-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
}

.ftd-top-bar-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.ftd-controls-row {
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
}

.ftd-theme-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ftd-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #5b21b6;
  background: #ede9fe;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #c4b5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  flex-shrink: 1;
}

.ftd-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ftd-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

.ftd-status-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ftd-lives-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.2s ease;
}

.ftd-lives-pill.danger {
  background: #ffe4e6;
  border-color: #f43f5e;
  color: #881337;
  animation: ftdPulseDanger 1s infinite alternate;
}

.ftd-lives-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.ftd-hearts-track {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13.5px;
  line-height: 1;
}

.ftd-heart {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.ftd-heart.lost {
  opacity: 0.35;
  transform: scale(0.85);
  filter: grayscale(1);
}

.ftd-nav-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ftd-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ftd-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ftd-nav-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

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

.ftd-btn-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ftd-btn-hint:hover:not(:disabled) {
  background: #fde68a;
  transform: translateY(-1px);
}

.ftd-btn-hint:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ftd-frames-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.ftd-frame-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.ftd-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.5px;
}

.ftd-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 500 / 350;
  cursor: crosshair;
  touch-action: none;
  background: #f1f5f9;
}

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

/* Difference Marker Ring */
.ftd-marker {
  position: absolute;
  border: 3px solid #facc15;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.8), inset 0 0 8px rgba(250, 204, 21, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ftdPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ftd-marker-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Miss Click Ripple */
.ftd-ripple-miss {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2.5px solid #ef4444;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ftdMissRipple 0.5s ease-out forwards;
}

.ftd-ripple-miss::after {
  content: '✕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 900;
  color: #ef4444;
}

/* Hint Pulse Ring */
.ftd-hint-ring {
  position: absolute;
  border: 3px dashed #f59e0b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ftdHintPulse 1.8s infinite;
}

/* Crosshair Mirror */
.ftd-mirror-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid #6366f1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.1s ease;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.5);
}

/* Differences Checklist Drawer */
.ftd-diff-drawer {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ftd-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
}

.ftd-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ftd-diff-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ftd-diff-chip.spotted {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
  text-decoration: line-through;
  transform: scale(0.97);
}

@keyframes ftdPop {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes ftdMissRipple {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@keyframes ftdHintPulse {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.9; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
}

/* Card Shake on Error */
@keyframes ftdShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.ftd-frame-card.ftd-shake-error {
  animation: ftdShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #f43f5e;
}

/* Modal Overlay for Game Over / Out of Lives */
.ftd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  border-radius: 16px;
  padding: 16px;
  animation: ftdFadeIn 0.2s ease;
}

.ftd-modal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: ftdSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ftd-modal-icon {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 10px;
}

.ftd-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.ftd-modal-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px;
}

.ftd-modal-tip {
  font-size: 12px;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fef08a;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.45;
  margin-bottom: 18px;
}

.ftd-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ftd-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ftd-modal-btn.btn-retry {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.ftd-modal-btn.btn-retry:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.ftd-modal-btn.btn-exit {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.ftd-modal-btn.btn-exit:hover {
  background: #e2e8f0;
}

@keyframes ftdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ftdSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ftdPulseDanger {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@media (max-width: 680px) {
  .ftd-frames-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ftd-theme-pill {
    max-width: 130px;
    font-size: 11px;
    padding: 4px 8px;
  }
  .ftd-tier-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .ftd-status-cluster {
    gap: 5px;
  }
  .ftd-lives-pill {
    font-size: 11px;
    padding: 3px 8px;
  }
  .ftd-lives-label {
    display: none;
  }
  .ftd-progress-pill {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .ftd-nav-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
  .ftd-btn-hint {
    padding: 4px 10px;
    font-size: 11px;
  }
}












