/* ════════════════════════════════ RESET / BASE ════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #0e0d0b;
  --bg-card: #18160f;
  --bg-card-alt: #1f1c14;
  --line: #2a261a;
  --gold: #d4a84b;
  --gold-soft: #e6c372;
  --gold-glow: rgba(212, 168, 75, 0.18);
  --cream: #f4ead5;
  --muted: #a39782;
  --light-sq: #f1d9b5;
  --dark-sq: #a87344;
  --sq-frame: #3b240e;
  --highlight: #f8d05c;
  --danger: #d4574b;
  --success: #6fae5f;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; line-height: 1.15; color: var(--cream); }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.3rem; }

p { color: var(--cream); opacity: 0.92; }
em { color: var(--gold-soft); font-style: italic; }
strong { color: var(--cream); font-weight: 600; }

a { color: var(--gold-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

section { padding: 7rem 6vw; max-width: 1400px; margin: 0 auto; }

/* ════════════════════════════════ NAV ════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1.1rem 6vw;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--cream); }
.king-icon { font-size: 2rem; color: var(--gold); filter: drop-shadow(0 0 12px var(--gold-glow)); }
.brand-text { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 500; margin-top: 0.2rem; }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { color: var(--cream); font-size: 0.92rem; font-weight: 500; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }

.burger { display: none; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; right: 0; flex-direction: column; background: var(--bg-card); padding: 1.5rem 2rem; border: 1px solid var(--line); border-radius: 0 0 0 12px; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
}

/* ════════════════════════════════ HERO ════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 6rem 6vw 8rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg-board {
  position: absolute; top: 0; right: -10%; bottom: 0;
  width: 60vw; max-width: 800px;
  background-image:
    linear-gradient(45deg, var(--dark-sq) 25%, transparent 25%),
    linear-gradient(-45deg, var(--dark-sq) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--dark-sq) 75%),
    linear-gradient(-45deg, transparent 75%, var(--dark-sq) 75%);
  background-size: 100px 100px;
  background-position: 0 0, 0 50px, 50px -50px, -50px 0;
  background-color: var(--light-sq);
  opacity: 0.06;
  transform: rotate(8deg) scale(1.4);
  filter: blur(0.5px);
  mask-image: radial-gradient(ellipse at left, transparent 30%, black 80%);
  -webkit-mask-image: radial-gradient(ellipse at left, transparent 30%, black 80%);
}
.hero-content { position: relative; max-width: 760px; z-index: 1; }
.eyebrow { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; font-weight: 500; }
.grad {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 50%, #fff5d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin: 1.8rem 0 2.5rem; max-width: 620px; line-height: 1.7; color: var(--muted); }
.lede em { color: var(--gold-soft); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--gold);
  color: #1a1610;
  box-shadow: 0 8px 30px var(--gold-glow);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212, 168, 75, 0.35); color: #1a1610; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.82rem; background: var(--bg-card); border: 1px solid var(--line); color: var(--cream); border-radius: 6px; }
.btn-small:hover { border-color: var(--gold); color: var(--gold); background: var(--bg-card-alt); }

.hero-stats { display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 500px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.hero-stats span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }

/* ════════════════════════════════ PLAY SECTION ════════════════════════════════ */
.play-section {
  padding: 5rem 6vw 6rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.play-head { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.play-head .module-num { color: var(--gold); font-size: 3rem; opacity: 0.4; display: block; line-height: 1; }
.play-head h2 { color: var(--gold); margin-top: 0.5rem; }
.play-head p { color: var(--muted); font-size: 1.05rem; margin-top: 0.8rem; }

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 980px) {
  .play-layout { grid-template-columns: 1fr; }
}

.play-link { color: var(--gold) !important; opacity: 1 !important; font-weight: 600 !important; }

/* Board with coordinates */
.play-board-wrap {
  background: linear-gradient(135deg, #2a1f10, #1a1408);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.board-coords-top {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-left: 24px;
  margin-bottom: 4px;
}
.board-coords-top span { text-align: center; font-size: 0.75rem; color: var(--gold); opacity: 0.6; font-weight: 600; }
.board-with-side { display: flex; align-items: stretch; gap: 4px; }
.board-coords-side {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  width: 20px;
}
.board-coords-side span { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--gold); opacity: 0.6; font-weight: 600; }

.chessboard.play {
  flex: 1;
  border: 4px solid var(--sq-frame);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.3);
}
.chessboard.play .sq { font-size: clamp(2.6rem, 6vw, 4rem); }
.chessboard.play .sq .piece-w,
.chessboard.play .sq .piece-b {
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.45));
  transition: transform 0.12s ease;
  line-height: 1;
}
.chessboard.play .sq:hover .piece-w,
.chessboard.play .sq:hover .piece-b { transform: translateY(-2px) scale(1.04); }
.chessboard.play .sq.last-move { background: rgba(248, 208, 92, 0.32) !important; }
.chessboard.play .sq.check { background: rgba(212, 87, 75, 0.6) !important; box-shadow: inset 0 0 20px rgba(212, 87, 75, 0.8); }
.chessboard.play .sq.legal-move::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}
.chessboard.play .sq.legal-capture::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: transparent;
  border: 4px solid rgba(212, 87, 75, 0.6);
  pointer-events: none;
}
.chessboard.play .sq.hint {
  box-shadow: inset 0 0 0 4px rgba(111, 174, 95, 0.8);
}

.game-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0.8rem; }
.game-controls .btn { font-size: 0.85rem; padding: 0.6rem 1rem; }

.game-config {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.game-config label { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.game-config select {
  background: var(--bg-deep);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}
.game-config select:hover { border-color: var(--gold); }

/* Coach column */
.coach-col { display: flex; flex-direction: column; gap: 1.2rem; }

.eval-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.eval-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0; }
.eval-bar {
  flex: 1;
  height: 14px;
  background: #1a1610;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}
.eval-fill {
  width: 100%;
  background: linear-gradient(90deg, #2d2014 0%, #2d2014 50%, var(--cream) 50%, var(--cream) 100%);
  height: 100%;
  transition: background 0.4s;
}
.eval-text { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); min-width: 50px; text-align: right; }

.coach-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.coach-card.thinking { border-left-color: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold-glow); }
.coach-card.good { border-left-color: var(--success); }
.coach-card.bad { border-left-color: var(--danger); }
.coach-card.warn { border-left-color: #d4a84b; }

.coach-avatar {
  font-size: 2.2rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
  flex-shrink: 0;
}
.coach-content h3 { font-size: 1rem; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.4rem; }
.coach-content p { font-size: 0.95rem; line-height: 1.55; color: var(--cream); }
.coach-content p strong { color: var(--gold-soft); }
.coach-advice { font-size: 0.85rem !important; color: var(--muted) !important; margin-top: 0.5rem !important; font-style: italic; }

.captured-pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.captured {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
}
.captured-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.captured-list { font-size: 1.6rem; line-height: 1; min-height: 28px; display: flex; flex-wrap: wrap; gap: 2px; }
.captured-list .cap-w, .captured-list .cap-b { display: inline-block; }
.captured-list .cap-w { color: #fefefe; text-shadow: -1px -1px 0 #161108, 1px -1px 0 #161108, -1px 1px 0 #161108, 1px 1px 0 #161108; }
.captured-list .cap-b { color: #161108; text-shadow: -0.5px -0.5px 0 rgba(255,255,255,0.7), 0.5px 0.5px 0 rgba(255,255,255,0.7); }

.move-history {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  max-height: 200px;
  overflow-y: auto;
}
.move-history h4 { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.move-list { font-family: 'Inter', monospace; font-size: 0.85rem; display: grid; grid-template-columns: 30px 1fr 1fr; gap: 0.3rem 0.8rem; }
.move-list .move-num { color: var(--muted); }
.move-list .move-w, .move-list .move-b { color: var(--cream); }
.move-list .move-b { color: var(--gold-soft); }

.game-status {
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: none;
}
.game-status.show { display: block; }
.game-status.win { background: rgba(111, 174, 95, 0.15); border: 1px solid var(--success); color: var(--success); }
.game-status.lose { background: rgba(212, 87, 75, 0.15); border: 1px solid var(--danger); color: var(--danger); }
.game-status.draw { background: rgba(212, 168, 75, 0.1); border: 1px solid var(--gold); color: var(--gold); }

/* Promotion modal */
.promo-modal {
  position: fixed; inset: 0;
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.promo-box {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  max-width: 400px;
}
.promo-box h3 { color: var(--gold); margin-bottom: 0.5rem; }
.promo-box p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.promo-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.promo-choices button {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  color: var(--gold);
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.promo-choices button span { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em; }
.promo-choices button:hover { border-color: var(--gold); background: var(--bg-card-alt); transform: translateY(-2px); }

/* ════════════════════════════════ PHILO ════════════════════════════════ */
.philo { padding: 5rem 6vw; }
.philo-card {
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4rem 3rem;
  position: relative;
}
.philo-card::before {
  content: '♔';
  position: absolute;
  top: -30px; left: 50%; transform: translateX(-50%);
  font-size: 4rem;
  color: var(--gold);
  background: var(--bg-deep);
  padding: 0 1.5rem;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}
.philo-card h2 { text-align: center; margin-bottom: 2rem; color: var(--gold); }
.big-quote { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 2.2vw, 1.7rem); text-align: center; max-width: 800px; margin: 0 auto 3rem; line-height: 1.5; font-style: italic; color: var(--cream); }
.big-quote strong { color: var(--gold-soft); font-style: normal; }

.philo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.philo-grid > div { text-align: center; position: relative; padding-top: 1rem; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--gold);
  color: #1a1610;
  border-radius: 50%;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.philo-grid h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.philo-grid p { font-size: 0.9rem; color: var(--muted); }

/* ════════════════════════════════ MODULES ════════════════════════════════ */
.module { padding: 7rem 6vw; max-width: 1400px; margin: 0 auto; }
.module-alt { background: linear-gradient(180deg, transparent 0%, rgba(31, 28, 20, 0.4) 50%, transparent 100%); max-width: none; padding-left: 6vw; padding-right: 6vw; }
.module-alt > * { max-width: 1400px; margin-left: auto; margin-right: auto; }

.module-head { text-align: center; max-width: 800px; margin: 0 auto 4rem; position: relative; }
.module-num {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: -2rem;
  filter: drop-shadow(0 0 30px var(--gold-glow));
}
.module-head h2 { color: var(--cream); }
.module-head p { color: var(--muted); font-size: 1.05rem; margin-top: 0.8rem; }

/* ════════════════════════════════ BOARD ════════════════════════════════ */
.board-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-bottom: 4rem; }
@media (max-width: 880px) { .board-section { grid-template-columns: 1fr; } }

.board-wrap { background: var(--bg-card); padding: 2rem; border: 1px solid var(--line); border-radius: 16px; }
.chessboard {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  width: 100%;
  border: 4px solid #3a2812;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.3);
}
.sq {
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  user-select: none;
}
.sq.light { background: var(--light-sq); }
.sq.dark { background: var(--dark-sq); }
.sq.highlight::after {
  content: '';
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: rgba(248, 208, 92, 0.45);
  box-shadow: 0 0 18px rgba(248, 208, 92, 0.5);
  pointer-events: none;
}
.sq.selected { background: rgba(248, 208, 92, 0.55) !important; box-shadow: inset 0 0 0 3px rgba(248,208,92,0.9); }

/* Pièces : glyphes pleins, blancs vs noirs distincts par contour */
.piece-w {
  color: #fefefe;
  text-shadow:
    -1.5px -1.5px 0 #161108,
     1.5px -1.5px 0 #161108,
    -1.5px  1.5px 0 #161108,
     1.5px  1.5px 0 #161108,
     0 0 4px rgba(0,0,0,0.25);
  font-weight: 400;
}
.piece-b {
  color: #161108;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.55),
     1px -1px 0 rgba(255,255,255,0.55),
    -1px  1px 0 rgba(255,255,255,0.55),
     1px  1px 0 rgba(255,255,255,0.55);
  font-weight: 400;
}

.board-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0.8rem; }
.board-caption { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 0.5rem; }

/* ════════════════════════════════ PIECES ════════════════════════════════ */
.pieces-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.piece-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.2s;
}
.piece-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.piece-glyph { font-size: 2.2rem; color: var(--gold); display: block; margin-bottom: 0.3rem; }
.piece-card h4 { color: var(--cream); }
.piece-card p { font-size: 0.88rem; color: var(--muted); }

/* ════════════════════════════════ SPECIAL RULES ════════════════════════════════ */
.special-rules h3 { font-size: 1.8rem; text-align: center; margin-bottom: 2rem; color: var(--gold); }
.special-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.special {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1.8rem;
}
.special h4 { color: var(--gold-soft); font-size: 1.15rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.emoji { font-size: 1.4rem; }
.special p { font-size: 0.92rem; color: var(--cream); opacity: 0.85; }

/* ════════════════════════════════ PRINCIPLES ════════════════════════════════ */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.principle {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  transition: all 0.25s;
}
.principle:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.principle .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.5rem;
}
.principle h3 { margin-bottom: 0.8rem; padding-right: 3rem; }
.principle p { font-size: 0.92rem; color: var(--cream); opacity: 0.85; }

.repertoire { background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-card)); border: 1px solid var(--line); border-radius: 16px; padding: 3rem; }
.repertoire h3 { font-size: 1.7rem; color: var(--gold); margin-bottom: 0.8rem; }
.repertoire-intro { color: var(--muted); margin-bottom: 2rem; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.rep-card h4 { color: var(--gold-soft); font-size: 1.2rem; margin-bottom: 1rem; }
.rep-card ul { list-style: none; }
.rep-card li { padding: 0.6rem 0; padding-left: 1.5rem; position: relative; font-size: 0.92rem; color: var(--cream); }
.rep-card li::before { content: '♟'; position: absolute; left: 0; color: var(--gold); }

/* ════════════════════════════════ TACTICS ════════════════════════════════ */
.tactics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.tactic {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem;
  transition: all 0.25s;
}
.tactic:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.tactic-vis {
  background: linear-gradient(45deg, var(--dark-sq) 25%, var(--light-sq) 25%, var(--light-sq) 50%, var(--dark-sq) 50%, var(--dark-sq) 75%, var(--light-sq) 75%);
  background-size: 40px 40px;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.4rem;
  color: #1a1610;
  text-shadow: 0 2px 0 rgba(255,255,255,0.4);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.tactic-vis .target { color: #c8362a; text-shadow: 0 0 8px rgba(200, 54, 42, 0.4); }
.tactic-vis .thru { opacity: 0.6; }
.tactic h3 { color: var(--gold-soft); margin-bottom: 0.5rem; }
.tactic p { font-size: 0.9rem; color: var(--cream); opacity: 0.85; }

.cta-block {
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.08), rgba(212, 168, 75, 0.02));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}
.cta-block h3 { font-size: 1.8rem; color: var(--gold); margin-bottom: 1rem; }
.cta-block p { max-width: 700px; margin: 0 auto 1rem; font-size: 1rem; }

/* ════════════════════════════════ STRATEGY ════════════════════════════════ */
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.strat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.25s;
}
.strat:hover { border-color: var(--gold); transform: translateY(-3px); }
.strat h3 { color: var(--gold-soft); margin-bottom: 0.8rem; font-size: 1.25rem; }
.strat p { font-size: 0.92rem; color: var(--cream); opacity: 0.88; margin-bottom: 0.6rem; }
.strat ul { list-style: none; margin-top: 0.8rem; }
.strat li { padding: 0.3rem 0; padding-left: 1.2rem; position: relative; font-size: 0.88rem; color: var(--muted); }
.strat li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
.strat li strong { color: var(--cream); }

/* ════════════════════════════════ ENDGAMES ════════════════════════════════ */
.endgames { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.endgame {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  transition: all 0.25s;
}
.endgame:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.endgame.must { border-left: 3px solid var(--danger); }
.must-tag {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.endgame h3 { color: var(--gold-soft); margin-bottom: 0.6rem; font-size: 1.2rem; }
.endgame p { font-size: 0.92rem; color: var(--cream); opacity: 0.88; }

.endgame-quote {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 800px;
  margin: 0 auto;
}
.endgame-quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic; color: var(--cream); line-height: 1.5; }
.endgame-quote strong { color: var(--gold); font-style: normal; }
.quote-author { display: block; margin-top: 1rem; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; }

/* ════════════════════════════════ TRAINING ════════════════════════════════ */
.training-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 780px) { .training-plan { grid-template-columns: 1fr; } }
.time-block {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-card-alt));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  text-align: center;
}
.time {
  display: inline-block;
  background: var(--gold);
  color: #1a1610;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.time-block h3 { margin-bottom: 0.8rem; font-size: 1.3rem; }
.time-block p { font-size: 0.92rem; color: var(--muted); }

.training-bonus { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 2.5rem; margin-bottom: 3rem; }
.training-bonus h3 { color: var(--gold); margin-bottom: 1.5rem; font-size: 1.5rem; }
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.bonus-grid h4 { color: var(--gold-soft); font-size: 1rem; margin-bottom: 0.4rem; }
.bonus-grid p { font-size: 0.88rem; color: var(--muted); }

.carlsen-block {
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.08), transparent);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 3rem;
}
.carlsen-block h3 { color: var(--gold); margin-bottom: 1.5rem; font-size: 1.6rem; }
.carlsen-list { list-style: none; }
.carlsen-list li { padding: 0.8rem 0; padding-left: 2rem; position: relative; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.carlsen-list li:last-child { border-bottom: none; }
.carlsen-list li::before { content: '♛'; position: absolute; left: 0; color: var(--gold); top: 0.7rem; font-size: 1.1rem; }
.carlsen-list strong { color: var(--gold-soft); }

/* ════════════════════════════════ QUIZ ════════════════════════════════ */
.quiz-section { padding-bottom: 7rem; }
.quiz {
  max-width: 720px;
  margin: 0 auto;
}
.quiz-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3rem;
  min-height: 400px;
}
.quiz-progress { color: var(--gold); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 1rem; font-size: 0.85rem; }
.quiz-question { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; line-height: 1.4; margin-bottom: 2rem; color: var(--cream); }
.quiz-options { display: flex; flex-direction: column; gap: 0.8rem; }
.quiz-opt {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.quiz-opt:hover:not(.locked) { border-color: var(--gold); background: var(--bg-card); transform: translateX(4px); }
.quiz-opt.correct { background: rgba(111, 174, 95, 0.18); border-color: var(--success); color: var(--success); }
.quiz-opt.wrong { background: rgba(212, 87, 75, 0.15); border-color: var(--danger); color: var(--danger); }
.quiz-opt.locked { cursor: not-allowed; }
.quiz-feedback { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; font-size: 0.92rem; min-height: 30px; }
.quiz-feedback.show.correct { background: rgba(111, 174, 95, 0.1); border-left: 3px solid var(--success); color: var(--cream); }
.quiz-feedback.show.wrong { background: rgba(212, 87, 75, 0.08); border-left: 3px solid var(--danger); color: var(--cream); }

.quiz-result {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 4rem 3rem;
}
.quiz-result h3 { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.quiz-result p { margin-bottom: 2rem; font-size: 1.05rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════ FINAL ════════════════════════════════ */
.final-word {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 8rem 6vw 6rem;
}
.final-word h2 { color: var(--gold); margin-bottom: 2rem; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.final-word p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.final-line { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem !important; font-style: italic; color: var(--gold-soft); margin-top: 2rem; }
.signature {
  margin-top: 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

/* ════════════════════════════════ FOOTER ════════════════════════════════ */
footer {
  text-align: center;
  padding: 3rem 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer p { margin-bottom: 0.5rem; color: var(--muted); }
.sources a { margin: 0 0.3rem; }

/* ════════════════════════════════ ANIMATIONS ════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: fadeUp 0.8s ease forwards; opacity: 0; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
