:root {
  --color-text: #111;
  --color-secondary: #666;
  --color-accent: #0057FF;
  --color-grid-bg: #FAFAFA;
  --color-border: #d1d5db;
  --color-conflict: #ef4444;
  --color-conflict-bg: #fee2e2;
}

.dark {
  --color-text: #EEEEEE;
  --color-secondary: #BBBBBB;
  --color-accent: #4A90E2;
  --color-grid-bg: #1E1E1E;
  --color-border: #3A3A3A;
  --color-conflict: #ff6b6b;
  --color-conflict-bg: #3a1f1f;
  background: #1E1E1E;
}

html, body {
  font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  background: #fff;
}

.secondary { color: var(--color-secondary); }
.accent { color: var(--color-accent); }

/* Navigation Bar (White Theme) */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  height: 64px;
  z-index: 9999;
  color: var(--color-text);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { 
  height: 100%;
  display: flex; 
  align-items: center; 
  text-decoration: none;
  box-sizing: border-box;
  padding: 6px 0; 
  background: transparent; /* Ensure transparency */
}
.logo-img {
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 200px; 
  object-fit: contain;
  mix-blend-mode: multiply; /* Make white background transparent */
}
.logo:hover { opacity: 1; /* Remove opacity change on hover for image */ }

.nav-channels {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 32px;
  margin-right: auto;
  height: 100%; /* Important for hover area */
}

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 180px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 10000;
  border: 1px solid #f3f4f6;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
  padding: 8px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
  color: #111;
}

.nav-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%; /* Match parent height */
}
.nav-link:hover { color: var(--color-accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-action-link {
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-action-link:hover { color: var(--color-accent); text-decoration: none; }

.btn-nav-signup {
  background: #FCD34D; /* Yellow */
  color: #111;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-nav-signup:hover { background: #FBBF24; }

.main-wrap { padding-top: 64px; } /* Adjust for header height */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero { padding: 32px 0; }
.title { font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.subtitle { font-size: 16px; margin: 0; }

.grid-section { padding: 24px 0; }
.grid-bg { background: var(--color-grid-bg); border-radius: 12px; padding: 24px; }
.placeholder { height: 240px; border: 1px dashed #d1d5db; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--color-secondary); }

@media (max-width: 640px) {
  .main-wrap { padding-top: 76px; }
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .title { font-size: 24px; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, transform .1s ease;
}
.card:hover { border-color: var(--color-accent); box-shadow: 0 6px 24px rgba(0,0,0,0.06); transform: translateY(-1px); }
.card-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--color-text); }
.card-desc { font-size: 16px; color: var(--color-secondary); margin: 0; }
.card-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.cta { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent); font-weight: 500; }

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

.game-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.difficulty { font-size: 16px; font-weight: 600; color: var(--color-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text); font-weight: 500; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease; }
.btn { text-decoration: none; }
.btn:hover { background: #eff6ff; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent); filter: brightness(1.08); }
.btn-yellow { background: #FCD34D; border-color: #FCD34D; color: #111; font-weight: 600; }
.btn-yellow:hover { background: #FBBF24; border-color: #FBBF24; }

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  transition: all 0.3s ease;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.dark .btn { background: #2a2a2a; }

/* Toggle active state for Advanced Features buttons */
.btn-toggle-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-toggle-active:hover { background: var(--color-accent); filter: brightness(1.08); }

/* Unified Header Buttons */
.dropdown-btn,
.btn-daily-challenge {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  color: #4b5563 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer;
  white-space: nowrap;
  gap: 6px;
  box-sizing: border-box;
  margin-left: 0;
}

.dropdown-btn:hover,
.btn-daily-challenge:hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px);
}

.dropdown-btn:active,
.btn-daily-challenge:active {
  background-color: #f1f5f9 !important;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.dropdown-btn .arrow {
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 2px;
}


.game-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.game-main { background: var(--color-grid-bg); border-radius: 12px; padding: 24px; display: flex; align-items: center; justify-content: center; }
.sudoku-grid { width: var(--board-size, 540px); height: auto; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: relative; opacity: 0; animation: fadeInGrid .3s ease forwards; }
.dark .sudoku-grid { background: #2a2a2a; }
.sudoku-cell { border: 1px solid #d1d5db; display: flex; align-items: center; justify-content: center; font-size: var(--number-size, 18px); color: var(--color-text); }
.sudoku-cell.has-notes { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); font-size: var(--note-size, 10px); color: var(--color-secondary); padding: 2px; align-items: center; justify-items: center; }
.sudoku-grid::before, .sudoku-grid::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sudoku-grid::before { box-shadow: inset 0 0 0 2px var(--color-border); border-radius: 12px; }
.sudoku-grid::after { box-shadow: inset 0 0 0 0 #000; }
.game-side { border: 1px solid var(--color-border); border-radius: 12px; background: #fff; padding: 16px; min-height: 240px; }
.dark .game-side { background: #2a2a2a; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-secondary); margin: 8px 0 0; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--color-accent); }
.crumb-middle { font-weight: 600; color: var(--color-text); }

.page-fit { min-height: auto; padding-bottom: 20px; display: flex; flex-direction: column; }

@media (max-width: 1024px) {
  .sudoku-grid { width: 440px; height: auto; }
}
@media (max-width: 768px) {
  .game-wrap { grid-template-columns: 1fr; }
  .game-side { order: 2; }
  .game-main { order: 1; }
  .sudoku-grid { width: 92vw; height: auto; }
}

/* Animations */
@keyframes fadeInGrid { from { opacity: 0 } to { opacity: 1 } }
@keyframes selectPulse { 0% { background: transparent } 100% { background: rgba(219,234,254,0.6) } }
@keyframes placePop { 0% { transform: scale(0.9); opacity: 0.6 } 100% { transform: scale(1); opacity: 1 } }
@keyframes modalIn { 0% { opacity: 0; transform: scale(0.98) } 100% { opacity: 1; transform: scale(1) } }

/* Timer Refined Styles */
.timer-container {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  padding: 4px 6px 4px 16px;
  border-radius: 999px;
  gap: 12px;
  border: 1px solid #e2e8f0;
  height: 42px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-icon-svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.timer-val {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.1rem;
  color: #334155;
  font-weight: 500;
  min-width: 74px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.timer-divider {
  width: 1px;
  height: 20px;
  background-color: #cbd5e1;
}

.timer-controls {
  display: flex;
  gap: 2px;
}

.timer-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
}

.timer-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.timer-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tooltip { position: fixed; background: #fff; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 8px; padding: 6px 8px; font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); z-index: 60; }
.dark .tooltip { background: #2a2a2a; }

/* Sudoku Tutorial Section */
.sudoku-tutorial {
  margin-top: 50px;
  padding: 30px;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.tutorial-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutorial-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--color-btn-primary);
  border-radius: 2px;
}

.tutorial-intro, .tutorial-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

.tutorial-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--color-btn-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.tutorial-card:last-child {
  margin-bottom: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* SEO content blocks */
.seo-block {
  width: 80%;
  margin: 32px auto 0;
  background: #FAFAFA;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  opacity: 0;
  animation: seoFade .35s ease-in forwards;
}
.seo-diff {
  width: 100%;
  background: #F8F8F8;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  opacity: 0;
  animation: seoFade .3s ease forwards;
}
.seo-game {
  width: 100%;
  background: #FFFFFF;
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #555;
  opacity: 0;
  animation: seoFade .25s ease forwards;
}
@keyframes seoFade { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: translateY(0) } }

@media (max-width: 640px) {
  .seo-block { width: 95%; font-size: 15px; padding: 16px; }
  .seo-diff { font-size: 15px; padding: 16px; }
  .seo-game { font-size: 13px; padding: 10px; }
}
.btn-new {
  min-width: 220px;
  height: 44px;
  transition: all 0.3s ease;
}

.btn-new:hover {
  border-radius: 0;
}

.btn-new::before {
  content: "➜";
  font-weight: 900;
  display: inline-block;
  opacity: 0;
  max-width: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  margin-right: 0;
}

.btn-new:hover::before {
  opacity: 1;
  max-width: 24px;
  margin-right: 8px;
  transform: translateX(0);
}

/* Shared hover effects for Daily Challenge and Records */
.btn-nav-signup:hover,
.btn-outline-white:hover {
  border-radius: 0 !important;
}

.btn-nav-signup::before,
.btn-outline-white::before {
  content: "➜";
  font-weight: 900;
  display: inline-block;
  opacity: 0;
  max-width: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  margin-right: 0;
}

.btn-nav-signup:hover::before,
.btn-outline-white:hover::before {
  opacity: 1;
  max-width: 24px;
  margin-right: 8px;
  transform: translateX(0);
}
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }
@media (max-width: 768px) {
  .btn-new { width: 100%; height: 42px; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; width: 100%; }
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-secondary); margin: 8px 0 0; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--color-accent); }
.crumb-middle { font-weight: 600; color: var(--color-text); }


/* =========================================
   Restored & New Styles (Hero + Features)
   ========================================= */

/* Hero Section (Restored/Recreated - Blue Theme) */
.hero-primary {
  padding: 64px 0 80px;
  background: var(--color-accent);
  color: #fff;
  border-bottom: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto; /* Adaptive width for text, fixed/auto for image */
  gap: 48px; /* Reduced gap slightly to give text more space */
  align-items: center; /* Center vertically */
}

.hero-left {
  max-width: 600px; /* Allow more width if available */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0 0 40px; /* Increased space before buttons */
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Browser Mockup (Restored) */
.hero-image {
  width: 100%;
  max-width: 590px; /* Updated to 590px */
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: block;
  margin: auto;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-left {
    max-width: 100%;
    align-items: center;
  }
  .hero-image {
    max-width: 100%;
  }
}

.browser-mock {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  border: none;
  
  /* Desktop: Position absolute to match left column height */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0; 
  right: 0;
  margin: auto;
  height: 100%;
  
  display: flex;
  flex-direction: column;
}

.mock-topbar {
  background: #f9fafb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0; /* Prevent shrinking */
}

.mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d1d5db;
}
.mock-dot:nth-child(1) { background: #ef4444; }
.mock-dot:nth-child(2) { background: #f59e0b; }
.mock-dot:nth-child(3) { background: #10b981; }

.mock-body {
  padding: 20px;
  background: #fff;
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Hide overflow content */
}

.mock-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: #333;
  border: 2px solid #333;
  /* Removed aspect-ratio: 1 to allow flexible height */
  align-content: start;
}

.mock-cell {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #111;
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-left {
    margin: 0 auto;
  }
  .hero-left div[style*="display:flex"] {
    justify-content: center;
  }
  .hero-title {
    font-size: 36px;
  }

}

/* Game Features Showcase (Blue Theme) */
.features-section {
  padding: 80px 0;
  background: var(--color-accent);
  color: #fff;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}

.features-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.features-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
  padding: 0 24px;
}

.features-tabs {
  display: flex;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 6px;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.features-tab {
  padding: 10px 28px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.features-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.features-tab.active {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.features-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 400px; /* Prevent jump */
}

.feature-panel {
  display: none;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-panel.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.feature-info {
  text-align: left;
}

.feature-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
}

.feature-info p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.feature-visual {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feature-mock {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 14px;
  text-align: center;
  border: 2px dashed #e5e7eb;
}

@media (max-width: 768px) {
  .features-section { padding: 48px 0; }
  .features-title { font-size: 28px; }
  
  .feature-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .features-tabs-wrapper {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px; /* Scrollbar space */
    -webkit-overflow-scrolling: touch;
  }
  
  .features-tabs {
    flex-wrap: nowrap;
  }
}

/* Footer Styles (Restored) */
.footer-primary {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 64px 0 48px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  color: var(--color-text);
}

.footer-text {
  font-size: 15px;
  color: var(--color-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 320px;
}

.footer-copyright {
  font-size: 14px;
  color: #9ca3af;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-right: 8px;
  opacity: 0.8;
}

.footer-links a:hover .footer-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media print {
  .nav-bar, .breadcrumb, .sudoku-header, .size-btn, #numPad, .controls-row, .action-buttons, .seo-block, .seo-diff, .seo-game, footer, .hero-primary, .features-section, #batchPrintBtn, .instruction-text, .game-title-section .dropdown-container { display: none !important; }
  .main-wrap { padding-top: 0 !important; }
  body, .sudoku-container { padding: 0 !important; margin: 0 !important; background: white !important; width: 100% !important; max-width: none !important; }
  .game-main { margin-top: 20px !important; margin-bottom: 40px !important; }
  .sudoku-grid { border: 3px solid black !important; }
  body::after { content: 'Generated by logicforsudoku.com'; position: fixed; bottom: 20px; right: 20px; font-size: 12px; color: #999; font-style: italic; z-index: 9999; }
}
