:root {
  --bg: #07080b;
  --bg-elevated: #0e1016;
  --bg-card: rgba(16, 19, 27, 0.84);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(212, 175, 55, 0.16);
  --border-strong: rgba(212, 175, 55, 0.38);
  --gold: #d4af37;
  --gold-bright: #f5df96;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --ivory: #f4f0e8;
  --muted: #9aa0ae;
  --emerald: #34d399;
  --crimson: #ef4444;
  --sq-light: #e8dec8;
  --sq-dark: #4f4335;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-gold: 0 24px 70px -20px rgba(212, 175, 55, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 75% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 45% at 10% 35%, rgba(92, 114, 168, 0.08), transparent 60%),
    var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Subtle luxury grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#chess-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 8, 11, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7, 8, 11, 0.92);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.16);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: var(--gold-bright);
  background: var(--gold-dim);
  border-color: var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #b48a1e);
  color: #0b0c10;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.32);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 45;
  background: rgba(7, 8, 11, 0.97);
  backdrop-filter: blur(22px);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-drawer a.active {
  border-color: var(--border-strong);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

/* ================= TYPOGRAPHY & BUTTONS ================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
}

.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.35); }
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.25rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0.9rem 0 1rem;
}

.gold-gradient-text {
  background: linear-gradient(125deg, #fff8dc 0%, #f5df96 35%, #d4af37 70%, #9b7718 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 46px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #090a0e;
  box-shadow: 0 12px 32px -8px rgba(212, 175, 55, 0.45);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -6px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--ivory);
}

.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================= HERO SECTION ================= */
.hero {
  padding: clamp(2.8rem, 6vw, 5.2rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.elo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.elo-pill {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.elo-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.elo-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.elo-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--gold-bright);
  margin-top: 0.2rem;
}

/* ================= CARDS & SPOTLIGHT ================= */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(212, 175, 55, 0.14),
    transparent 60%
  );
}

.spotlight-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

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

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 700;
  margin: 0.5rem 0 0;
  line-height: 1.1;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ================= PRO INTERACTIVE CHESSBOARD ================= */
.board-showcase {
  background: linear-gradient(160deg, rgba(20, 23, 33, 0.94), rgba(10, 11, 16, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-gold);
}

.board-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.board-mode-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 3px;
}

.board-mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-mode-btn.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0b0c10;
}

.board-stage {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: center;
}

.eval-bar-wrap {
  width: 22px;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1f29;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}

.eval-bar-fill {
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, #faf6ec, #d4af37);
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.eval-score-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 1px 3px #000;
  writing-mode: vertical-rl;
}

.chessboard-frame {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(145deg, #272219, #12100c);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
}

.chessboard-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}

.sq {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.sq.light {
  background: linear-gradient(135deg, #eee4cf 0%, #dfd1b5 100%);
  color: #5b4b38;
}

.sq.dark {
  background: linear-gradient(135deg, #6b5842 0%, #4a3c2d 100%);
  color: #dfd1b5;
}

.sq.last-move::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.36);
  pointer-events: none;
}

.sq.selected {
  box-shadow: inset 0 0 0 3px var(--gold-bright);
}

.sq.in-check {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.92) 0%, rgba(185, 28, 28, 0.85) 75%) !important;
}

.sq.legal-dot::before {
  content: "";
  position: relative;
  z-index: 3;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.72);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  pointer-events: none;
}

.sq.legal-capture::before {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: 3;
  border-radius: 50%;
  border: 3.5px solid rgba(212, 175, 55, 0.9);
  pointer-events: none;
}

.sq-coord-file, .sq-coord-rank {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

.sq-coord-file {
  bottom: 2px;
  right: 4px;
}

.sq-coord-rank {
  top: 2px;
  left: 4px;
}

.piece-svg {
  width: 84%;
  height: 84%;
  position: relative;
  z-index: 4;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.16s ease;
  pointer-events: none;
}

.sq:hover .piece-svg {
  transform: scale(1.06);
}

.board-footer-bar {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.player-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.player-strip .elo-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
}

.board-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ctrl-group {
  display: flex;
  gap: 0.35rem;
}

.ctrl-btn {
  min-width: 38px;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.board-annotation-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ivory);
  min-height: 46px;
}

/* Analysis Room Layout on /partidas */
.analysis-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 520px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.game-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-item-card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.25s ease;
}

.game-item-card:hover,
.game-item-card.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.09);
}

.moves-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.25rem;
}

.moves-grid {
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.move-num {
  color: var(--muted);
  padding: 0.35rem 0.25rem;
  text-align: right;
}

.move-ply {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ivory);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  cursor: pointer;
}

.move-ply:hover {
  background: rgba(255, 255, 255, 0.06);
}

.move-ply.active {
  background: var(--gold-dim);
  border-color: var(--border-strong);
  color: var(--gold-bright);
  font-weight: 700;
}

.move-ply.has-note::after {
  content: " ★";
  color: var(--gold);
  font-size: 0.72rem;
}

/* Promotion Modal */
.promo-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(7, 8, 11, 0.84);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  border-radius: 12px;
}

.promo-modal.open {
  display: grid;
}

.promo-choices {
  display: flex;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 16px;
  background: #141720;
  border: 1px solid var(--border-strong);
}

.promo-btn {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.promo-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* ================= TIMELINE / SERVICES / FORMS ================= */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.1));
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ivory);
}

.badge-gold {
  background: var(--gold-dim);
  border-color: var(--border-strong);
  color: var(--gold-bright);
}

.service-card.popular {
  border-color: var(--border-strong);
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.09), rgba(16, 19, 27, 0.92));
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #d6dae3;
}

.feature-list li::before {
  content: "◆";
  color: var(--gold);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d5d9e2;
}

.input, .textarea, .select {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.82rem 1rem;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select option {
  background: #12151e;
  color: var(--ivory);
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.75rem 0;
  background: rgba(5, 6, 9, 0.85);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .analysis-layout {
    grid-template-columns: 1fr;
  }
  .chessboard-frame {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .elo-strip {
    grid-template-columns: 1fr;
  }
  .board-showcase {
    padding: 0.85rem;
  }
  .eval-bar-wrap {
    width: 16px;
  }
  .chessboard-frame {
    padding: 5px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
