:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(18, 25, 43, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --cell-size: 56px;
  --cell-gap: 8px;
}

@media (max-width: 640px) {
  :root {
    --cell-size: 42px;
    --cell-gap: 5px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 40%, var(--bg-dark) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-violet));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Subdomain Nav */
.nav-subdomains {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subdomain-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.subdomain-link:hover {
  color: #fff;
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.subdomain-link.active {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Auth Buttons */
.auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Main Container */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================================
   LOUNGE: CHOOSE YOUR TABLE
======================================================== */
.lounge-hero {
  text-align: center;
  margin-bottom: 32px;
}

.lounge-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 50%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.lounge-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 940px;
  margin-bottom: 40px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.table-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.table-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.table-card:hover::before {
  opacity: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 2rem;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.card-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-badge.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-badge.violet {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.table-card:hover .card-btn {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ========================================================
   TABLE 1: TOP HAT SUDOKU STYLES
======================================================== */
.game-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 580px;
  margin-bottom: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  padding: 12px 20px;
  border-radius: 14px;
}

.difficulty-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 8px;
}

.diff-tab {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.diff-tab.active {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.timer-target {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: sans-serif;
}

.region-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 620px;
  margin-bottom: 24px;
}

.region-chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.region-chip.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.board-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  margin-bottom: 24px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(6, var(--cell-size));
  grid-template-rows: repeat(6, var(--cell-size));
  gap: var(--cell-gap);
  transform: rotate(-45deg);
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.cell {
  position: relative;
  width: var(--cell-size);
  height: var(--cell-size);
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cell.hidden {
  visibility: hidden;
  pointer-events: none;
}

.cell-content {
  transform: rotate(45deg);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cell.given .cell-content {
  color: #ffffff;
  font-weight: 800;
}

.cell.user .cell-content {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.cell.selected {
  background: rgba(99, 102, 241, 0.4) !important;
  border-color: #a5b4fc !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
  z-index: 10;
}

.cell.peer-highlight {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.cell.region-highlight {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.cell.conflict {
  background: rgba(239, 68, 68, 0.35) !important;
  border-color: var(--accent-red) !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: rotate(-45deg) translateX(0); }
  25% { transform: rotate(-45deg) translateX(-3px); }
  75% { transform: rotate(-45deg) translateX(3px); }
}

.pencil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 80%;
  height: 80%;
  transform: rotate(45deg);
  pointer-events: none;
}

.pencil-digit {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.key-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.key-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.action-tools {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.tool-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  color: #fff;
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.tool-btn.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
}

/* ========================================================
   TABLE 2: TWISTED 23 SLIDER STYLES
======================================================== */
.t23-board {
  display: grid;
  grid-template-columns: repeat(6, 60px);
  grid-template-rows: repeat(4, 60px);
  gap: 8px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.t23-slot {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.2s ease;
}

.t23-slot.tile {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.t23-slot.tile.movable {
  border-color: var(--accent-gold);
  cursor: pointer;
}

.t23-slot.tile.movable:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #334155, #1e293b);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.t23-slot.empty {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ========================================================
   TABLE 3: BOTCHEE 4x4 STYLES
======================================================== */
.botchee-board {
  display: grid;
  grid-template-columns: repeat(4, 65px);
  grid-template-rows: repeat(4, 65px);
  gap: 10px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.botchee-slot {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: all 0.2s ease;
}

.botchee-slot.available {
  cursor: pointer;
}

.botchee-slot.available:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.botchee-slot.user {
  background: rgba(6, 182, 212, 0.25);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.botchee-slot.bot {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-red);
  color: #f87171;
}

/* ========================================================
   TABLE 4: HANGMAN GALLOWS STYLES
======================================================== */
.hangman-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
}

.hangman-word {
  display: flex;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 20px 0;
}

.hangman-keyboard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  width: 100%;
}

.hangman-key {
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hangman-key:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
}

.hangman-key.correct {
  background: rgba(52, 211, 153, 0.3);
  border-color: #34d399;
  color: #34d399;
}

.hangman-key.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #94a3b8;
  opacity: 0.5;
}

/* ========================================================
   TABLE 5: BACKGAMMON 24-POINT STYLES
======================================================== */
.bg-board {
  display: flex;
  flex-direction: column;
  background: #1e1b4b;
  border: 4px solid #312e81;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 620px;
  margin-bottom: 20px;
}

.bg-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 130px;
}

.bg-row.top {
  border-bottom: 4px solid #111827;
}

.bg-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bg-row.top .bg-point {
  justify-content: flex-start;
}

.bg-row.bottom .bg-point {
  justify-content: flex-end;
}

.bg-point.even {
  background: rgba(245, 158, 11, 0.08);
}

.bg-point.odd {
  background: rgba(99, 102, 241, 0.08);
}

.bg-point.selected {
  background: rgba(245, 158, 11, 0.3) !important;
  box-shadow: inset 0 0 10px var(--accent-gold);
}

.bg-checker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 1px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.bg-checker.white {
  background: radial-gradient(circle at 35% 35%, #fff 0%, #cbd5e1 70%, #94a3b8 100%);
  border: 1px solid #ffffff;
}

.bg-checker.black {
  background: radial-gradient(circle at 35% 35%, #475569 0%, #1e293b 70%, #0f172a 100%);
  border: 1px solid #334155;
}

.bg-die-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 28px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.rule-highlight {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-gold);
  padding: 8px 12px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
}

/* Newsletter / Gazette Subscription Card */
.newsletter-card {
  width: 100%;
  max-width: 680px;
  margin: 40px auto 20px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
              linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.newsletter-title {
  font-family: serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.newsletter-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
}

.newsletter-btn {
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

@media (max-width: 520px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Responsive adjustments for 5 game tables */
@media (max-width: 480px) {
  .t23-board {
    grid-template-columns: repeat(6, 44px);
    grid-template-rows: repeat(4, 44px);
    gap: 6px;
    padding: 10px;
  }
  .t23-slot {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .botchee-board {
    grid-template-columns: repeat(4, 52px);
    gap: 6px;
  }
  .botchee-slot {
    width: 52px;
    height: 52px;
  }
  .bg-point {
    width: 22px;
    height: 120px;
  }
  .bg-checker {
    width: 18px;
    height: 18px;
  }
  .nav-subdomains {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========================================================
   FLAGSHIP HOMEPAGE STYLES
======================================================== */
.flagship-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 30px auto 20px;
  padding: 0 16px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fdfbf7;
  letter-spacing: -1px;
}

.hero-title-accent {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.hero-btn {
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.55);
}

.hero-btn.secondary {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.hero-btn.secondary:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.hero-btn.ios {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-btn.ios:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Wooden Board Live Preview */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wooden-board-container {
  background: linear-gradient(135deg, #2b1809, #1a0f05);
  border: 4px solid #5a3a1a;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), inset 0 2px 6px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 380px;
  width: 100%;
}

.wooden-board-container:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 24px rgba(245, 158, 11, 0.3);
}

.wooden-board-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wooden-header-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.75rem;
  color: #a88a64;
  font-family: monospace;
  margin-bottom: 12px;
  padding: 0 4px;
}

.wooden-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
}

.w-tile {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e8d3b7, #c4a985);
  border: 2px solid #8c6a43;
  border-radius: 8px;
  color: #2b1704;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  user-select: none;
}

.w-tile.blank {
  background: rgba(15, 8, 2, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7);
}

.wooden-board-badge {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Editorial History Section */
.editorial-history-section {
  width: 100%;
  max-width: 900px;
  margin: 50px auto 20px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
              linear-gradient(135deg, rgba(17, 35, 31, 0.95), rgba(13, 31, 28, 0.98));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.editorial-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #34d399;
  font-weight: 700;
  margin-bottom: 8px;
}

.editorial-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fdfbf7;
  margin-bottom: 18px;
}

.editorial-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.editorial-body p {
  margin-bottom: 14px;
}

.editorial-link {
  color: #f59e0b;
  text-decoration: underline;
  font-weight: 600;
}

.editorial-links-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.editorial-pill {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.editorial-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Flagship Footer */
.flagship-footer {
  width: 100%;
  max-width: 1100px;
  margin-top: 60px;
  padding: 40px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

@media (max-width: 768px) {
  .flagship-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tagline {
    margin: 0 auto;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    margin: 8px auto 0;
  }
}
