/* ==========================================================================
   FORMURUS DESIGN SYSTEM & UI KIT STYLES
   Exact implementation based on Penpot Design System (1440px & 390px)
   ========================================================================== */

:root {
  /* Colors - Light Theme (Primary Design in Penpot) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-container: #e6f4f1;
  --bg-card-subtle: #f9fbfc;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-navy: #0b1c35;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;
  
  --brand-primary: #0f766e;
  --brand-primary-hover: #0d655f;
  --brand-primary-light: #ccfbf1;
  --brand-primary-container: #e6f4f1;
  --brand-navy: #0b1c35;
  
  --geometry-amber: #d97706;
  --geometry-blue: #2563eb;
  --geometry-green: #16a34a;
  --accent-red: #e11d48;
  --accent-emerald: #059669;
  
  --navbar-bg: rgba(255, 255, 255, 0.95);
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-main: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-cta: 0 12px 35px -8px rgba(15, 118, 110, 0.35);
}

[data-theme="dark"],
body.theme-dark {
  --bg-canvas: #0e1514;
  --bg-surface: #161d1c;
  --bg-elevated: #212928;
  --bg-container: #1d3b37;
  --bg-card-subtle: #1a2321;
  
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --border-navy: #a2d7c8;
  
  --text-main: #dde4e2;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;
  
  --brand-primary: #89a89a;
  --brand-primary-hover: #78988a;
  --brand-primary-light: #163632;
  --brand-primary-container: #1d3b37;
  --brand-navy: #a2d7c8;
  
  --navbar-bg: rgba(14, 21, 20, 0.95);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 12px 35px rgba(0, 0, 0, 0.45);
  --shadow-cta: 0 12px 35px -8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .puzzle-board-card,
[data-theme="dark"] .game-board-card,
[data-theme="dark"] .deduction-visual-card,
[data-theme="dark"] .tutorial-svg-frame,
[data-theme="dark"] .landing-principle .rule-card,
[data-theme="dark"] .landing-deduction .deduction-container,
[data-theme="dark"] .landing-highlights .highlight-card {
  border-color: rgba(162, 215, 200, 0.38);
}

[data-theme="dark"] .nav-cta-btn,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .deduction-tab-btn.active {
  color: #0e1514 !important;
}

[data-theme="dark"] .cta-banner {
  background: #315b55;
}

[data-theme="dark"] .cta-banner-desc {
  color: #d7e5df;
}

[data-theme="dark"] .cta-glow-effect {
  background: #6e9a8e;
  opacity: 0.18;
}

[data-theme="dark"] .cta-banner .btn-outline-white {
  border-color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .cta-banner .btn-white {
  color: #24564e !important;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Ambient Glows */
.ambient-glow-left {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, rgba(15, 118, 110, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-right {
  position: absolute;
  top: 120px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 920px;
}

.container-compact {
  max-width: 860px;
}

/* ==========================================================================
   Navigation (Header)
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 80px;
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-item a:hover {
  color: var(--brand-primary);
}

.nav-item a.active {
  color: var(--brand-primary);
  font-weight: 700;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  background: var(--border-subtle);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Nav CTA Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  background: var(--brand-primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--accent-red);
  color: #ffffff !important;
}

.btn-danger:hover {
  background: #be123c;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-teal {
  background: var(--brand-primary-container);
  color: var(--brand-primary);
}

.badge-dark {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.badge-success {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-emerald);
}

.badge-danger {
  background: rgba(225, 29, 72, 0.12);
  color: var(--accent-red);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-title .highlight-line {
  color: var(--brand-primary);
  display: block;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.puzzle-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-elevated);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.board-card-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
}

/* ==========================================================================
   Section 2: Spielprinzip (So funktioniert Formurus)
   ========================================================================== */

.section {
  padding: 70px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.cards-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 380px;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.rule-card-top {
  display: flex;
  flex-direction: column;
}

.rule-card-badge,
.rule-card-badge-row {
  align-self: flex-start;
  margin-bottom: 16px;
}

.rule-card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-container);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.rule-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.rule-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.rule-card-bottom-tag {
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
}

/* ==========================================================================
   Section 3: Logische Rätsel (Deduction Container)
   ========================================================================== */

.deduction-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.deduction-left {
  display: flex;
  flex-direction: column;
}

.deduction-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin: 8px 0 16px;
  letter-spacing: -0.5px;
}

.deduction-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-primary-container);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.checklist-content p {
  font-size: 13px;
  color: var(--text-muted);
}

.deduction-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.daily-rules-link {
  margin-bottom: 20px;
}

.deduction-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deduction-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.deduction-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.deduction-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.deduction-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* ==========================================================================
   Section 4: Highlights / Features (Übersicht - 2x2 Grid)
   ========================================================================== */

.highlight-cards-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 185px;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.highlight-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.highlight-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-primary-container);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.highlight-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.highlight-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Section 5: CTA Banner
   ========================================================================== */

.cta-banner {
  background: var(--brand-primary);
  border-radius: var(--radius-2xl);
  padding: 56px 48px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-cta);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.cta-glow-effect {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: #14b8a6;
  opacity: 0.35;
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.cta-banner-desc {
  font-size: 16px;
  color: #ccfbf1;
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: #ffffff;
  color: var(--brand-primary) !important;
  font-weight: 700;
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: auto;
  transition: background-color 0.25s ease;
}

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

.footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: default;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.lang-dropdown-trigger:hover,
.lang-dropdown-trigger.open {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

.lang-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lang-label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.lang-arrow {
  font-size: 11px;
  color: var(--text-muted);
}

.lang-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.15s ease;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.lang-dropdown-item:hover {
  background: var(--bg-elevated);
  color: var(--brand-primary);
}

.lang-dropdown-item.active {
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-container);
}

.lang-check {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-primary);
}

/* ==========================================================================
   Legal Card & Document Pages (Regeln, Datenschutz, Impressum, Account)
   ========================================================================== */

.page-header {
  text-align: left;
  margin-bottom: 40px;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.legal-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 18px;
  margin-bottom: 6px;
}

.legal-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-card ul, .legal-card ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-card li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* Rule Detail Boxes */
.rules-page .container-narrow {
  max-width: 968px;
}

.rules-page .legal-card {
  padding: 48px;
}

.rules-page .legal-card h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--brand-primary);
  vertical-align: middle;
}

.rule-spec-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.rules-page .rule-spec-boxes {
  margin-left: -18px;
  margin-right: -18px;
}

.rule-spec-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  min-height: 114px;
  padding: 12px 14px;
}

.rule-spec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rule-spec-header img {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.rule-spec-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}

.rule-spec-label {
  display: block;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.rule-spec-box p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Diagram Tiles (I, L, T Endwalls) */
.diagram-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.overlap-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overlap-comparison-grid .diagram-tile > div {
  width: min(100%, 250px);
}

.overlap-comparison-grid .diagram-tile svg {
  height: auto;
}

.diagram-tile {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.diagram-tile h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.diagram-tile .tile-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

/* Validation Checklist Box in Rules */
.validation-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 24px;
}

.validation-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.validation-box ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.validation-box li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.validation-box li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--brand-primary);
  font-weight: 800;
}

/* ==========================================================================
   Tutorial Page (5 Step Cards)
   ========================================================================== */

.tutorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.tutorial-step-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tutorial-step-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}

.tutorial-step-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  white-space: pre-line;
}

.tutorial-pills {
  display: flex;
  gap: 8px;
}

.tutorial-pill {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.tutorial-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tutorial-svg-frame {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-caption {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 10px;
}

/* Tutorial CTA Card (Dark Navy) */
.tutorial-dark-cta {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-bottom: 32px;
}

.tutorial-dark-cta .tutorial-step-tag {
  color: #89a89a;
}

.tutorial-dark-cta .tutorial-step-title {
  color: #ffffff;
  font-size: 28px;
}

.tutorial-dark-cta .tutorial-step-text {
  color: #94a3b8;
}

/* ==========================================================================
   Account Deletion Page (Google Play Compliance)
   ========================================================================== */

.deletion-form-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  max-width: 440px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--brand-primary);
}

.form-hint {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 6px;
}

.form-confirmation {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-subtle);
}

.form-success-box {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--accent-emerald);
  font-size: 14px;
  line-height: 1.5;
}

.form-error-box {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--accent-rose);
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0;
}

.form-danger-box {
  background: rgba(225, 29, 72, 0.04);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 20px 0;
}

.form-danger-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-rose);
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}

.deletion-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tabindex: -1 !important;
}

/* Markdown Content Styling */
.markdown-content h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.markdown-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.markdown-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 20px;
  margin-bottom: 8px;
}

.markdown-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 16px;
  margin-bottom: 6px;
}

.markdown-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.markdown-content ul {
  margin: 12px 0 16px 20px;
  padding-left: 8px;
}

.markdown-content li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 28px 0;
}

.markdown-content .legal-link {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.markdown-content .legal-link:hover {
  opacity: 0.8;
}

/* Loading Spinner */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(15, 118, 110, 0.15);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Game Arena (Daily & Play Pages)
   ========================================================================== */

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.game-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.interactive-board-container {
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

.interactive-board-svg-wrapper {
  line-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.interactive-board-svg-wrapper svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Board Loading & Error States */
.board-loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 490px;
  gap: 20px;
  padding: 40px 20px;
}

.board-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-subtle);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: board-spin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes board-spin {
  to {
    transform: rotate(360deg);
  }
}

.board-loading-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin: 0;
}

.board-error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 490px;
  gap: 16px;
  padding: 40px 24px;
}

.board-error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.board-error-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

/* Game Toolbar */
.game-toolbar {
  width: 100%;
  max-width: 490px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mode-selector {
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: var(--bg-surface);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.color-palette {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.color-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-swatch-btn.selected {
  transform: scale(1.2);
  border-color: var(--text-main);
}

.action-btn-row {
  display: flex;
  width: 100%;
}

.action-btn-row .btn-check-solution {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-banner {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.status-banner.success {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: var(--accent-emerald);
}

.status-banner.warning {
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: var(--accent-red);
}

/* ==========================================================================
   Mobile Responsiveness (390px Media Queries)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cards-3-grid {
    grid-template-columns: 1fr;
  }
  
  .rule-card {
    height: auto;
    min-height: 280px;
  }
  
  .deduction-container {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .tutorial-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .game-layout {
    grid-template-columns: 1fr;
  }
  
  .rule-spec-boxes,
  .diagram-tiles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }

  .navbar > .container,
  .navbar-inner {
    height: 100%;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 34px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .cta-banner {
    padding: 40px 24px;
  }
  
  .cta-banner-title {
    font-size: 28px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .board-loading-container,
  .board-error-container {
    min-height: min(440px, 75vw);
    padding: 24px 12px;
  }

  .action-btn-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .game-board-card {
    padding: 12px 6px;
    border-radius: var(--radius-lg);
  }

  .mode-selector {
    padding: 4px;
    gap: 4px;
  }

  .mode-btn {
    padding: 8px 6px;
    font-size: 12px;
  }

  .action-btn-row .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Helper & Utility Classes */
.mobile-dropdown {
  display: none;
}

@media (max-width: 768px) {
  .mobile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
  }

  .nav-actions .nav-cta-btn {
    display: none;
  }
}

.mobile-dropdown a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 12px 0;
}

.app-delete-note {
  color: var(--brand-primary);
  font-weight: 700;
  margin: 12px 0;
  display: block;
}

.form-error-text {
  color: var(--accent-red);
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
}

.sidebar-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 20px;
}

/* Landing page: dimensions taken from the Penpot desktop boards. */
.landing-hero .container,
.landing-principle .container,
.landing-deduction .container,
.landing-highlights .container {
  max-width: 1248px;
}

.landing-hero {
  padding: 35px 0 65px;
}

.landing-hero .hero-grid {
  grid-template-columns: minmax(0, 530px) minmax(0, 500px);
  justify-content: start;
  gap: 100px;
}

.landing-hero .hero-grid > div:first-child {
  transform: translateY(-24px);
}

.landing-hero .hero-title {
  line-height: 1.21;
  margin-bottom: 11px;
  white-space: pre-line;
}

.landing-hero .hero-desc {
  margin-bottom: 35px;
  max-width: 530px;
}

.landing-hero .btn-primary {
  width: 250px;
  height: 54px;
  font-size: 18px;
  box-shadow: none;
}

.landing-hero .btn-secondary {
  width: 215px;
  height: 54px;
  font-weight: 600;
  border-color: var(--border-strong);
}

.landing-hero .puzzle-board-card {
  max-width: 500px;
  height: 540px;
  padding: 24px 27px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.22);
}

.landing-hero-board {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.landing-hero .board-card-header {
  margin-bottom: 12px;
}

.landing-hero .board-card-header .badge {
  width: 124px;
  height: 28px;
  justify-content: center;
  padding: 0;
  border: 1px solid #9ddbd2;
}

.landing-hero .board-card-header .tile-badge {
  margin-right: 11px;
  color: var(--text-subtle);
  font-size: 11px;
}

.landing-principle {
  padding: 0;
}

.landing-principle .section-header,
.landing-highlights .section-header {
  max-width: none;
  margin-bottom: 30px;
}

.landing-principle .section-tag,
.landing-highlights .section-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 28px;
  margin: 0 auto 10px;
  border: 1px solid #9ddbd2;
  border-radius: var(--radius-full);
  background: var(--brand-primary-container);
}

.landing-principle .section-title,
.landing-highlights .section-title {
  line-height: 1.22;
  margin-bottom: 2px;
}

.landing-principle .cards-3-grid {
  gap: 20px;
}

.landing-principle .rule-card {
  padding: 28px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.28);
}

.landing-principle .rule-card-badge-row {
  margin-bottom: 6px;
}

.landing-principle .rule-card-badge-row .badge {
  min-width: 84px;
  height: 24px;
  padding: 3px 8px;
  border: 1px solid #9ddbd2;
  border-radius: 6px;
  font-size: 10px;
}

.rule-card-diagram {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

.landing-principle .rule-card-title {
  margin-bottom: 10px;
}

.landing-principle .rule-card-hints {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.landing-principle .rule-card-hints img {
  width: 36px;
  height: 36px;
}

.landing-principle .rule-card-bottom-tag {
  min-width: 175px;
  padding: 5px 10px;
  font-weight: 500;
}

.landing-deduction {
  padding: 40px 0 70px;
}

.landing-deduction .deduction-container {
  min-height: 580px;
}

.landing-deduction .deduction-visual-card {
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
}

.deduction-example-heading {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.deduction-example-body {
  width: 100%;
  padding: 24px;
  background: var(--bg-surface);
}

.deduction-example-diagram {
  width: min(100%, 440px);
  margin: 0 auto 24px;
  border-radius: 24px;
  overflow: hidden;
}

.deduction-example-caption {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.landing-highlights {
  padding: 0 0 45px;
}

.landing-highlights .section-title {
  font-size: 34px;
}

.landing-highlights .highlight-cards-grid-2x2 {
  column-gap: 40px;
  row-gap: 25px;
}

.landing-highlights .highlight-card {
  height: 185px;
  padding: 24px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.25);
}

.landing-highlights .highlight-card-header {
  gap: 14px;
  margin-bottom: 12px;
}

.landing-highlights .highlight-icon-badge {
  width: 46px;
  height: 46px;
  border: 1px solid #9ddbd2;
}

.landing-highlights .highlight-icon-badge img {
  width: 20px;
  height: 20px;
}

.landing-highlights .highlight-title {
  font-size: 19px;
}

.landing-highlights .highlight-card:nth-child(2) .highlight-title {
  font-weight: 400;
}

.landing-cta-section {
  padding: 0;
}

@media (max-width: 992px) {
  .landing-hero .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .landing-hero .hero-grid > div:first-child {
    transform: none;
  }

  .landing-deduction .deduction-container {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .rules-page .legal-card {
    padding: 24px;
  }

  .rules-page .rule-spec-boxes {
    margin-left: 0;
    margin-right: 0;
  }

  .landing-hero {
    padding: 40px 0 55px;
  }

  .landing-hero .hero-title {
    font-size: 34px;
  }

  .landing-hero .hero-actions .btn {
    width: 100%;
  }

  .landing-principle .cards-3-grid,
  .landing-highlights .highlight-cards-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .landing-highlights .highlight-card {
    height: auto;
    min-height: 185px;
  }
}
