/* ═══════════════════════════════════════════════════════════════
   GM Council — styles.css
   Dark analytical command-center. Design tokens from Chess Council.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* surfaces */
  --ink: #0a0c11;
  --ink-2: #0d1016;
  --panel: #13161e;
  --panel-2: #171b25;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.13);
  /* text */
  --tx: #e9ecf3;
  --tx-2: #adb8c9;
  --tx-3: #7e8fa4;
  /* board */
  --sq-light: #5b6271;
  --sq-dark: #3a404d;
  /* type */
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(74,168,255,.06), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(55,211,154,.05), transparent 60%),
    linear-gradient(#0a0c11, #090b10);
  background-attachment: fixed;
  color: var(--tx);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Top Bar ── */
.cc-top {
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
  position: sticky;
  top: 0;
  z-index: 20;
}

.cc-brand { display: flex; align-items: baseline; gap: 11px; }
.cc-brand-mark { display: inline-flex; align-items: flex-end; gap: 2px; transform: translateY(2px); line-height: 1; }
.cc-bm-k { font-size: 22px; color: #f0f4fc; }
.cc-bm-q { font-size: 19px; color: #d4dbe8; }
.cc-bm-r { font-size: 16px; color: #a8b4c4; }
.cc-brand-name { font-weight: 700; font-size: 19px; letter-spacing: .22em; }
.cc-brand-sub { font-family: var(--mono); font-size: 11px; color: var(--tx-3); letter-spacing: .12em; white-space: nowrap; }
@media (max-width: 1240px) { .cc-brand-sub { display: none; } }

.cc-top-status {
  justify-self: center;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--tx-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.cc-top-actions { justify-self: end; display: flex; gap: 9px; }

.cc-tbtn {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: .16s;
}
.cc-tbtn:hover { color: var(--tx); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.cc-tbtn-primary { background: #e9ecf3; color: #0b0d12; border-color: transparent; font-weight: 600; }
.cc-tbtn-primary:hover { background: #fff; color: #0b0d12; }

#btn-theme {
  font-size: 18px;
  padding: 6px 11px;
  color: #ffc24a;
  border-color: rgba(255,176,58,.3);
  background: rgba(255,176,58,.07);
  line-height: 1;
}
#btn-theme:hover { color: #ffd070; border-color: rgba(255,176,58,.55); background: rgba(255,176,58,.14); }

/* ── Main Grid ── */
.cc-main {
  display: grid;
  grid-template-columns: 322px minmax(0,1fr) 404px;
  gap: 22px;
  padding: 30px 26px 96px;
  height: calc(100vh - 66px);
  min-height: 0;
}

/* Shrink sidebars to keep board visible as window narrows */
@media (max-width: 1180px) {
  .cc-main { grid-template-columns: 248px minmax(0,1fr) 320px; gap: 14px; padding: 14px 14px 90px; }
}
@media (max-width: 1050px) {
  .cc-main { grid-template-columns: 220px minmax(0,1fr) 290px; gap: 12px; padding: 12px 12px 90px; }
}

/* ── Rails ── */
.cc-rail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.cc-rail-right { gap: 14px; }

/* ── Card base ── */
.cc-opp, .cc-captured, .cc-history {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 15px;
}
.cc-opp, .cc-history { transition: border-color .2s, box-shadow .2s; }
.cc-opp:hover, .cc-history:hover {
  box-shadow: inset 0 0 0 400px rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.11);
}

/* ── Setup card ── */
.cc-setup { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; }
.cc-setup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-setup-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--tx-2); }
.cc-setup-divider { height: 1px; background: var(--line); margin: 0 -16px; }

/* Segmented controls */
.cc-seg { display: inline-flex; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 9px; padding: 2px; gap: 2px; }
.cc-seg-btn {
  background: none; border: none; color: var(--tx-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em;
  padding: 6px 11px; border-radius: 7px; transition: .15s; white-space: nowrap;
}
.cc-seg-btn:hover { color: var(--tx); }
.cc-seg-on { background: rgba(255,255,255,.16); color: var(--tx); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.35); }

/* Opponent identity */
.cc-opp-row { display: flex; align-items: center; gap: 12px; }
.cc-opp-avatar {
  position: relative; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 26px; color: #e7ddc8;
  background: radial-gradient(circle at 35% 30%, #2c3240, #14171f);
  border: 1px solid var(--line-2); flex: 0 0 46px;
}
.cc-opp-avatar i {
  position: absolute; right: -2px; bottom: -2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #3b414e; border: 2px solid var(--panel);
}
.cc-opp-avatar i.cc-opp-live {
  background: #ffb03a;
  box-shadow: 0 0 0 0 rgba(255,176,58,.6);
  animation: ccpulse 1.3s infinite;
}
@keyframes ccpulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,176,58,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(255,176,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,176,58,0); }
}
.cc-opp-id { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cc-opp-name { font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.cc-opp-tier { font-family: var(--mono); font-size: 12px; color: var(--tx-2); letter-spacing: .03em; }
.cc-opp-rating { text-align: right; display: flex; flex-direction: column; line-height: 1; }
.cc-opp-rating b { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.cc-opp-rating span { font-family: var(--mono); font-size: 9px; color: var(--tx-3); letter-spacing: .22em; margin-top: 3px; }

/* Strength slider */
.cc-opp-slider { margin-top: 15px; }
.cc-opp-slider input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, #3a4150, #6b7486); outline: none;
}
.cc-opp-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: #eef1f7; border: 3px solid #0c0e14;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25); cursor: grab;
}
.cc-opp-ticks { display: flex; justify-content: space-between; margin-top: 7px; }
.cc-opp-ticks span { font-family: var(--mono); font-size: 10.5px; color: var(--tx-3); }

.cc-opp-state { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .03em; }
.cc-opp-thinking { color: #ffc24a; }
.cc-opp-yourturn { color: #37d39a; }
.cc-opp-over { color: var(--tx); font-weight: 600; }

.cc-manual-row { display: flex; align-items: center; gap: 13px; padding: 2px 0; }
.cc-manual-glyph { font-size: 26px; letter-spacing: -3px; color: #cdd4e2; width: 46px; text-align: center; flex: 0 0 46px; }
.cc-manual-copy { display: flex; flex-direction: column; gap: 3px; }
.cc-manual-title { font-weight: 700; letter-spacing: .05em; font-size: 14px; }
.cc-manual-sub { font-family: var(--mono); font-size: 11px; color: var(--tx-2); line-height: 1.45; }

/* ── Captured tray ── */
.cc-captured { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cc-cap-line { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.cc-cap-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--tx-2); width: 64px; flex: 0 0 64px; }
.cc-cap-glyphs { flex: 1; font-size: 19px; line-height: 1; display: flex; flex-wrap: wrap; }
.cc-cap-glyphs span { margin-right: -2px; }
.cc-cap-white { color: #d9dceb; }
.cc-cap-black { color: #6f7686; }
.cc-cap-adv { font-family: var(--mono); font-size: 13px; font-weight: 600; color: #37d39a; }
.cc-cap-adv.hidden { display: none !important; }

/* ── Move history ── */
.cc-history { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.cc-history-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 9px; flex-shrink: 0;
}
.cc-history-head > span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--tx-2); }
.cc-live-btn {
  background: none; border: 1px solid var(--line-2); color: var(--tx);
  font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 6px;
  transition: .12s;
}
.cc-live-btn:hover { color: var(--tx); border-color: rgba(255,255,255,.25); }
.cc-live-btn:disabled { opacity: .35; cursor: default; }

.cc-history-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 12px; }
.cc-history-empty { font-family: var(--mono); font-size: 12px; color: var(--tx-2); padding: 8px 6px; line-height: 1.6; }
.cc-hrow { display: grid; grid-template-columns: 28px 1fr 1fr; align-items: center; gap: 2px; padding: 1px 0; }
.cc-hnum { font-family: var(--mono); font-size: 12px; color: var(--tx-2); text-align: right; padding-right: 8px; }
.cc-hmove {
  text-align: left; background: none; border: none;
  color: var(--tx-2); font-family: var(--mono); font-size: 13px;
  padding: 5px 8px; border-radius: 6px; transition: .12s;
}
.cc-hmove:hover { background: rgba(255,255,255,.05); color: var(--tx); }
.cc-hmove-empty { pointer-events: none; color: transparent; }

/* ── Center Stage ── */
.cc-stage {
  min-width: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 14px;
  padding-bottom: 25px;
}
.cc-board-wrap {
  width: min(100%, calc(100vh - 210px));
  aspect-ratio: 1;
  flex-shrink: 0;
}
.cc-board {
  position: relative; width: 100%; height: 100%; border-radius: 8px;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 0 9px rgba(15,18,26,.9),
    0 0 0 10px rgba(255,255,255,.05);
  overflow: hidden;
  transition: box-shadow .3s;
}
.cc-board-thinking {
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,.8),
    0 0 0 1px rgba(120,170,255,.25),
    0 0 0 9px rgba(15,18,26,.9),
    0 0 0 10px rgba(120,170,255,.12);
}
#board { width: 100% !important; }

.cc-eval-panel {
  padding: 14px 0 0; /* 14px top = circle top clears board by ~3px */
  width: min(100%, calc(100vh - 210px));
}
.cc-eval-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  margin: 0 28px;
}
.cc-eval-track::before {
  content: '';
  position: absolute; left: 50%; top: -4px; bottom: -4px;
  width: 1px; background: rgba(255,255,255,.22);
  transform: translateX(-50%);
}
.cc-eval-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--panel);
  border: 2px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  transition: left .45s cubic-bezier(.2,.8,.3,1), border-color .35s;
  z-index: 2;
}
.cc-eval-knob.eval-white { border-color: rgba(238,241,248,.45); }
.cc-eval-knob.eval-black { border-color: rgba(100,115,135,.38); }
.cc-eval-knob.eval-mate  { border-color: rgba(255,194,74,.55); }
#eval-num {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: -.02em; color: var(--tx); line-height: 1; white-space: nowrap;
}
#eval-num.eval-white { color: #eef1f8; }
#eval-num.eval-black { color: var(--tx-3); }
#eval-num.eval-equal { color: var(--tx-2); }
#eval-num.eval-mate  { color: #ffc24a; }

/* ── Council Header ── */
.cc-council-head { flex-shrink: 0; padding: 2px 2px 0; }
.cc-council-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--tx-2); }
.cc-council-title { display: flex; flex-direction: column; }
.cc-verdict-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.cc-verdict { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.cc-tone-unison { color: #f4f7ff; }
.cc-tone-split { color: #f4f7ff; }
.cc-tone-wait { color: var(--tx-2); }
.cc-verdict-sub { font-family: var(--mono); font-size: 12px; color: var(--tx-2); letter-spacing: .02em; display: block; margin-top: 4px; line-height: 1.4; }
.cc-consensus-dots { display: flex; gap: 6px; }
.cc-cdot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); background: transparent; transition: background .2s, border-color .2s; }

.cc-consult {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px; padding: 4px 11px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .07em;
  color: var(--tx-2); cursor: pointer; transition: .15s; white-space: nowrap; flex-shrink: 0;
}
.cc-consult:hover:not(:disabled) { background: rgba(255,255,255,.16); color: var(--tx); border-color: rgba(255,255,255,.3); }
.cc-consult:disabled { opacity: .28; cursor: default; }
.cc-consult.hidden { display: none !important; }
.cc-consult--ready {
  background: linear-gradient(90deg, rgba(60,110,230,.28) 0%, rgba(130,70,255,.42) 50%, rgba(60,110,230,.28) 100%);
  background-size: 200% 100%;
  border-color: rgba(120,155,255,.65);
  color: #c5d6ff;
  animation: cc-shimmer 2.4s ease-in-out infinite;
}
.cc-consult--ready:hover:not(:disabled) {
  background: linear-gradient(90deg, rgba(80,130,255,.38) 0%, rgba(150,90,255,.52) 50%, rgba(80,130,255,.38) 100%);
  border-color: rgba(150,175,255,.75); color: #e2eeff;
}
@keyframes cc-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.cc-consensus-dots { margin-left: auto; display: flex; gap: 6px; }
.rate-limit-banner {
  margin: 4px 0 8px;
  padding: 8px 14px;
  background: rgba(255, 90, 60, 0.12);
  border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 8px;
  color: #ff8a70;
  font-size: 0.82rem;
  text-align: center;
}
.rate-limit-banner.hidden { display: none; }

/* ── Council Slot Cards ── */
.cc-slots {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; padding-right: 2px; padding-bottom: 4px;
}

.cc-slot {
  flex: 1 0 auto;
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.cc-slot:hover {
  box-shadow: inset 0 0 0 400px rgba(255,255,255,.05), 0 6px 24px -10px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.13);
}
.cc-slot::before {
  content: '';
  position: absolute; top: 0; right: 0; width: 180px; height: 120px;
  background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent, #4a90d9) 16%, transparent), transparent 70%);
  opacity: 0; transition: .25s; pointer-events: none;
}
.cc-slot-hot {
  border-color: color-mix(in srgb, var(--accent, #4a90d9) 55%, var(--line-2));
  box-shadow: 0 10px 40px -16px color-mix(in srgb, var(--accent, #4a90d9) 55%, transparent);
}
.cc-slot-hot::before { opacity: 1; }

.cc-slot-top { display: flex; align-items: center; gap: 11px; }
.cc-slot-avatar { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; flex: 0 0 36px; letter-spacing: -.01em; }
.cc-slot-id { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cc-slot-name { font-weight: 700; letter-spacing: .12em; font-size: 13px; line-height: 1.25; overflow-wrap: break-word; }
.cc-slot-style { font-family: var(--mono); font-size: 11.5px; color: var(--tx-2); letter-spacing: .01em; line-height: 1.35; }

.cc-swap {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); color: var(--tx-2); transition: .15s;
  flex: 0 0 40px;
}
.cc-swap:hover, .cc-swap-open { color: var(--tx); border-color: var(--line-2); background: rgba(255,255,255,.1); }

/* Slot body — thinking state */
.cc-slot-think { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; margin-top: 12px; }
.cc-slot-think > span { font-family: var(--mono); font-size: 12px; color: var(--tx-2); letter-spacing: .04em; }

.cc-scan { position: relative; height: 4px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.cc-scan i {
  position: absolute; top: 0; bottom: 0; width: 36%; border-radius: 3px;
  box-shadow: 0 0 12px currentColor;
  animation: ccscan 1.1s infinite cubic-bezier(.4,0,.6,1);
}
@keyframes ccscan { 0% { left: -36%; } 100% { left: 100%; } }

/* Slot body — streaming state */
.cc-slot-streaming { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 12px; padding: 4px 2px; }
.cc-stream-take {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--tx);
  font-style: italic;
  margin: 0;
  padding-left: 11px;
  border-left: 3px solid transparent;
}
.cc-stream-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  vertical-align: text-bottom;
  margin-left: 3px;
  border-radius: 1px;
  animation: blink-cur 0.75s steps(1) infinite;
}
@keyframes blink-cur { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Slot body — result state */
.cc-slot-body { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 12px; }
.cc-rec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cc-rec-move {
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-weight: 700; font-size: 30px;
  letter-spacing: -.01em; line-height: 1;
  filter: drop-shadow(0 0 14px color-mix(in srgb, currentColor 40%, transparent));
  cursor: pointer; transition: opacity .15s;
}
.cc-rec-move:disabled { cursor: default; filter: none; opacity: .6; }
.cc-rec-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cc-eval { font-family: var(--mono); font-size: 15px; font-weight: 600; }

.cc-evalbar { position: relative; height: 4px; border-radius: 3px; background: rgba(255,255,255,.09); margin: 12px 0 11px; }
.cc-evalbar::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,.2); }
.cc-evalbar i {
  position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px currentColor;
  transition: left .4s cubic-bezier(.2,.8,.25,1);
}

.cc-agree-line {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  margin: -2px 0 10px;
}
.cc-agree-line i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex: 0 0 6px; }

.cc-slot-summary { font-size: 13px; color: var(--tx-2); line-height: 1.6; margin-bottom: 4px; }
.cc-slot-recommendation { font-size: 12.5px; color: var(--tx-2); line-height: 1.55; margin-bottom: 10px; font-style: italic; opacity: .9; }

/* Coach analysis sections (heading + prose) */
.cc-section { margin-bottom: 10px; }
.cc-section-head {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent, #4a90d9);
  margin-bottom: 4px; font-weight: 600;
}
.cc-section-body { font-size: 12.5px; color: var(--tx-2); line-height: 1.62; margin: 0; }

/* More / Less expand */
.cc-more-body { margin-top: 10px; }
.cc-expand-btn {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% + 32px); margin: 10px -16px -14px;
  padding: 10px 0;
  background: none; border: none; border-top: 1px solid var(--line);
  color: var(--tx-3); cursor: pointer; transition: color .15s, background .15s;
}
.cc-expand-btn:hover { color: var(--tx-2); background: rgba(255,255,255,.03); }
.cc-expand-icon { transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.cc-expand-btn.open .cc-expand-icon { transform: rotate(180deg); }

.cc-pv { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; margin-bottom: 10px; }
.cc-pv-main { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.cc-pv-dim { font-family: var(--mono); font-size: 12px; color: var(--tx-2); }

.cc-play {
  margin-top: auto; align-self: flex-start;
  background: none; border: 1px solid; padding: 7px 13px;
  border-radius: 9px; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; transition: .16s; white-space: nowrap;
}
.cc-play:hover:not(:disabled) { background: color-mix(in srgb, var(--accent, #4a90d9) 16%, transparent); }
.cc-play:disabled { opacity: .35; cursor: default; }

.move-quality-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 5px; margin-top: 6px; align-self: flex-start;
}
.badge-good { background: rgba(55,211,154,.12); color: #37d39a; border: 1px solid rgba(55,211,154,.25); }
.badge-ok   { background: rgba(255,194,74,.1);  color: #ffc24a; border: 1px solid rgba(255,194,74,.2); }
.badge-warn { background: rgba(255,90,60,.1);   color: #ff5a3c; border: 1px solid rgba(255,90,60,.2); }

/* ── Swap Dropdown ── */
.cc-dd-backdrop { position: fixed; inset: 0; z-index: 60; }
.cc-dd-backdrop.hidden { display: none; }

.cc-dd {
  position: fixed; z-index: 61;
  background: linear-gradient(180deg, #171b25, #11141c);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 30px 80px -22px rgba(0,0,0,.85);
  overflow: hidden; display: flex; flex-direction: column;
  animation: ccddin .14s ease;
}
.cc-dd.hidden { display: none; }
@keyframes ccddin { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.cc-dd-head { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--tx-2); padding: 12px 14px 8px; flex-shrink: 0; }
.cc-dd-list { height: 360px; overflow-y: auto; padding: 0 6px 8px; display: flex; flex-direction: column; gap: 1px; }

.cc-dd-item {
  display: flex; align-items: center; gap: 10px;
  text-align: left; background: none; border: 1px solid transparent;
  border-radius: 10px; padding: 10px 12px; transition: .12s; cursor: pointer; width: 100%;
  color: var(--tx);
}
.cc-dd-item:hover:not(:disabled) { background: rgba(255,255,255,.075); border-color: color-mix(in srgb, var(--item-accent, #4a90d9) 60%, transparent); }
.cc-dd-cur { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18) !important; }
.cc-dd-item:disabled { opacity: .45; cursor: default; }
.cc-dd-avatar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; flex: 0 0 34px; letter-spacing: -.01em; }
.cc-dd-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-dd-name { font-weight: 700; letter-spacing: .08em; font-size: 14px; color: var(--tx); line-height: 1.25; overflow-wrap: break-word; }
.cc-dd-style { font-family: var(--mono); font-size: 11.5px; color: var(--tx-2); line-height: 1.3; white-space: normal; }
.cc-dd-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-2); flex: 0 0 auto; padding: 2px 7px; background: rgba(255,255,255,.07); border-radius: 4px; }
.cc-dd-tag-cur { color: #6bc8b0 !important; background: rgba(107,200,176,.12) !important; }

/* Custom coach inline form in dropdown */
.cc-dd-custom { flex-shrink: 0; }
.cc-dd-custom-sep { height: 1px; background: var(--line-2); margin: 4px 10px 0; }
.cc-dd-custom-toggle {
  display: flex; align-items: center; gap: 9px;
  width: 100%; background: none; border: none; border-radius: 10px;
  padding: 10px 14px; cursor: pointer; color: var(--tx-2); transition: .14s;
  text-align: left;
}
.cc-dd-custom-toggle:hover { background: rgba(255,255,255,.04); color: var(--tx); }
.cc-dd-custom-toggle-label { flex: 1; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.cc-dd-custom-toggle-arrow { font-size: 11px; opacity: .6; transition: transform .18s; }
.cc-dd-custom-toggle.open .cc-dd-custom-toggle-arrow { transform: rotate(180deg); }
.cc-dd-custom-inner { padding: 0 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cc-dd-custom-inner.hidden { display: none; }
.cc-dd-custom-input, .cc-dd-custom-ta {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
  color: var(--tx); font-family: var(--mono); font-size: 12.5px;
  padding: 8px 11px; outline: none; resize: none; transition: border-color .15s;
}
.cc-dd-custom-input:focus, .cc-dd-custom-ta:focus { border-color: rgba(255,255,255,.35); }
.cc-dd-custom-ta { height: 64px; resize: vertical; }
.cc-dd-custom-actions { display: flex; gap: 8px; }
.cc-dd-custom-save {
  flex: 1; background: rgba(139,92,246,.22); border: 1px solid rgba(139,92,246,.45);
  color: #d4c0ff; font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: .15s; text-align: center;
}
.cc-dd-custom-save:hover { background: rgba(139,92,246,.38); border-color: rgba(139,92,246,.7); color: #e8dcff; }
.cc-dd-custom-cancel {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  color: var(--tx-2); font-family: var(--mono); font-size: 12px;
  border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: .15s;
}
.cc-dd-custom-cancel:hover { background: rgba(255,255,255,.1); color: var(--tx); }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,8,12,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; animation: ccfade .15s;
}
.modal-overlay.hidden { display: none; }
@keyframes ccfade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
  padding: 28px 28px 24px;
  width: 480px; max-width: 94vw; max-height: 88vh;
  overflow-y: auto;
}
.modal h2 { font-size: 18px; font-weight: 700; letter-spacing: .03em; margin: 0 0 10px; color: var(--tx); }
.modal p { font-size: 13px; color: var(--tx-2); margin: 0 0 18px; line-height: 1.55; }
.modal h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-2); margin: 20px 0 10px; }

.modal-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab-btn {
  background: none; border: 1px solid var(--line-2); color: var(--tx-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 8px; transition: .14s;
}
.tab-btn.active, .tab-btn:hover { background: rgba(255,255,255,.08); color: var(--tx); border-color: rgba(255,255,255,.2); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.pgn-textarea, .fen-input, .slot-custom-input, .slot-custom-textarea, .fb-textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--tx); font-family: var(--mono); font-size: 12px;
  padding: 10px 12px; outline: none; resize: none; margin-bottom: 12px;
  transition: border-color .15s;
}
.pgn-textarea { height: 120px; resize: vertical; }
.pgn-textarea:focus, .fen-input:focus, .slot-custom-input:focus,
.slot-custom-textarea:focus, .fb-textarea:focus {
  border-color: rgba(255,255,255,.3);
}
.fen-input { height: auto; }
.fen-status { font-family: var(--mono); font-size: 12px; color: var(--tx-2); margin: -6px 0 12px; min-height: 16px; }
.load-error { font-family: var(--mono); font-size: 12px; color: #ff5a3c; margin: -6px 0 12px; }
.load-error.hidden { display: none; }

.modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-primary {
  background: #e9ecf3; color: #0b0d12; border: none;
  padding: 10px 20px; border-radius: 9px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  transition: .15s; cursor: pointer;
}
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-secondary {
  background: rgba(255,255,255,.05); color: var(--tx-2);
  border: 1px solid var(--line-2); padding: 10px 20px; border-radius: 9px;
  font-family: var(--sans); font-size: 13px; transition: .15s; cursor: pointer;
}
.btn-secondary:hover { color: var(--tx); border-color: rgba(255,255,255,.25); }

.pgn-file-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.btn-file-upload {
  background: rgba(255,255,255,.05); color: var(--tx-2);
  border: 1px solid var(--line-2); padding: 7px 13px; border-radius: 8px;
  font-size: 12px; cursor: pointer; transition: .14s;
}
.btn-file-upload:hover { color: var(--tx); }
.pgn-move-count { font-family: var(--mono); font-size: 12px; color: var(--tx-2); }

.img-drop-zone {
  border: 1.5px dashed var(--line-2); border-radius: 10px;
  padding: 28px; text-align: center; cursor: pointer;
  color: var(--tx-2); font-size: 13px; transition: .15s; margin-bottom: 12px;
}
.img-drop-zone:hover, .img-drop-zone.drag-over { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.03); }
.drop-zone-inner { pointer-events: none; }
.img-file-label { color: #4aa8ff; cursor: pointer; text-decoration: underline; pointer-events: all; }
.img-preview-wrap { position: relative; margin-bottom: 12px; }
.img-preview-wrap.hidden { display: none; }
.img-preview-wrap img { max-width: 100%; border-radius: 8px; display: block; }
.btn-img-clear { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.5); border: none; color: white; border-radius: 50%; width: 24px; height: 24px; font-size: 13px; cursor: pointer; }
.img-notes { font-family: var(--mono); font-size: 11px; color: var(--tx-2); margin-bottom: 8px; }
.mini-board-wrap.hidden, .img-notes.hidden { display: none; }

.coach-slots-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.coach-slot { display: flex; flex-direction: column; gap: 8px; }
.slot-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--tx-2); }
.slot-select {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--tx); font-family: var(--sans); font-size: 13px;
  padding: 9px 12px; outline: none; cursor: pointer;
}
.slot-custom { display: flex; flex-direction: column; gap: 8px; }
.slot-custom.hidden { display: none; }
.slot-custom-textarea { height: 70px; }

.star-row { display: flex; gap: 8px; margin: 4px 0 16px; }
.star { font-size: 28px; color: var(--tx-3); cursor: pointer; transition: color .12s; user-select: none; }
.star.active { color: #ffc24a; }
.feedback-fields { display: flex; flex-direction: column; gap: 4px; }
.feedback-fields label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--tx-2); margin-top: 8px; }
.fb-textarea { height: 56px; }
.fb-success { font-family: var(--mono); font-size: 13px; color: #37d39a; padding: 10px 0; }
.fb-success.hidden { display: none; }

.modal-continue-inner { max-width: 380px; text-align: center; }
.modal-continue-inner h2 { margin-bottom: 10px; }
.continue-msg { font-size: 0.88rem; color: var(--tx-2); line-height: 1.6; margin-bottom: 4px; }

.modal-activate-inner { max-width: 360px; text-align: center; }
.modal-activate-inner h2 { margin-bottom: 10px; }
.activate-beta-badge {
  display: inline-block;
  background: rgba(255, 193, 60, 0.18);
  color: #ffc13c;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.activate-msg {
  font-size: 0.93rem;
  color: var(--tx);
  margin-bottom: 8px;
  line-height: 1.5;
}
.activate-sub {
  font-size: 0.78rem;
  color: var(--tx-3);
  line-height: 1.6;
  margin-bottom: 4px;
}

.info-intro { font-size: 13px; color: var(--tx-2); line-height: 1.6; margin-bottom: 4px; }
.info-section-heading { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--tx-2); }
.info-coach-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.info-coach-row { display: flex; gap: 12px; align-items: flex-start; }
.info-coach-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 13px;
  font-weight: 700; color: #0b0d12; flex: 0 0 40px;
}
.info-coach-name { font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.info-coach-inspired { font-family: var(--mono); font-size: 11.5px; color: var(--tx-2); margin: 2px 0 4px; }
.info-coach-desc { font-size: 13px; color: var(--tx-2); line-height: 1.5; }
.info-link { color: var(--accent); text-decoration: none; }
.info-link:hover { text-decoration: underline; }

/* ── Footer ── */
.cc-footer {
  position: fixed; bottom: 0; left: 0; right: 0; height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; gap: 16px;
  background: rgba(10,12,17,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 50;
}
.cc-footer-pills { display: flex; gap: 8px; flex-shrink: 0; }
.cc-footer-pill {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--tx-2);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em;
  border-radius: 9px; padding: 5px 14px;
  cursor: pointer; transition: background .15s, color .15s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}
.cc-footer-pill:hover { background: rgba(255,255,255,.13); color: var(--tx); border-color: rgba(255,255,255,.25); }
.cc-footer-pill-fb { border-color: rgba(255,255,255,.18); }
.cc-footer-pill-a { text-decoration: none; display: inline-flex; align-items: center; }

.terms-menu {
  position: fixed; bottom: 54px; left: 20px; z-index: 60;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.75);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  animation: ccddin .14s ease;
}
.terms-menu.hidden { display: none; }
.terms-menu-item {
  background: none; border: none; color: var(--tx-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 9px 16px; border-radius: 8px;
  text-align: left; cursor: pointer; transition: .12s; white-space: nowrap;
}
.terms-menu-item:hover { background: rgba(255,255,255,.07); color: var(--tx); }

.modal-legal-inner { max-width: 560px; }
.legal-date { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--tx-3); margin: 0 0 20px; }
.legal-section { margin: 18px 0 0; }
.legal-section h3 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-2); margin: 0 0 6px; }
.legal-section p { font-size: 13px; color: var(--tx-2); line-height: 1.6; margin: 0 0 8px; }
.legal-section ul { margin: 4px 0 8px 0; padding-left: 18px; }
.legal-section ul li { font-size: 13px; color: var(--tx-2); line-height: 1.6; margin-bottom: 4px; }
.legal-disclaimer-point { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.legal-disclaimer-glyph { font-size: 14px; color: var(--tx-3); flex: 0 0 auto; margin-top: 2px; }
.legal-disclaimer-text strong { display: block; font-size: 13px; color: var(--tx); margin-bottom: 3px; }
.legal-disclaimer-text span { font-size: 13px; color: var(--tx-2); line-height: 1.6; }
.legal-copyright { font-family: var(--mono); font-size: 10.5px; color: var(--tx-3); margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── chessboard.js overrides ── */
.board-b72b1 { border-radius: 6px !important; overflow: hidden; }
.white-1d403 { background-color: var(--sq-light) !important; }
.black-3c85d { background-color: var(--sq-dark) !important; }

/* Remove default border on chessboard wrapper */
.board-b72b1 { border: none !important; }

/* ── Click-to-move highlights ── */
#board .highlight-selected {
  box-shadow: inset 0 0 0 3px rgba(238,243,255,.85) !important;
  background-color: rgba(238,243,255,.12) !important;
}
#board .highlight-valid { position: relative; }
#board .highlight-valid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(238,243,255,.45) 26%, transparent 30%);
  pointer-events: none; z-index: 1;
}

/* ── Engine last-move highlight (persists until player's next move) ── */
#board .highlight-engine-move {
  background-color: rgba(255, 210, 0, 0.28) !important;
  box-shadow: inset 0 0 0 3px rgba(255, 210, 0, 0.55) !important;
}

/* ── PGN navigation: future (unplayed) moves ── */
.cc-hmove-future {
  opacity: 0.38;
  cursor: pointer;
}
.cc-hmove[data-ply] { cursor: pointer; }
.cc-hmove[data-ply]:hover { opacity: 0.8; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   Light Mode
   ══════════════════════════════════════════════════════════════ */
body.light-mode {
  --ink: #f0f4f8;
  --ink-2: #e8edf4;
  --panel: #ffffff;
  --panel-2: #f5f7fb;
  --line: rgba(0,0,0,.07);
  --line-2: rgba(0,0,0,.14);
  --tx: #0a1118;
  --tx-2: #1e3248;
  --tx-3: #3d5268;
  --sq-light: #c4d0da;
  --sq-dark: #72909f;
  background: linear-gradient(145deg, #e8eef5, #f2f5fa);
  background-attachment: fixed;
}

/* Header */
body.light-mode .cc-top {
  background: rgba(245,248,252,.92);
  border-bottom-color: rgba(0,0,0,.09);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
body.light-mode .cc-brand-sub { color: var(--tx-3); }
body.light-mode .cc-bm-k { color: #0a1825; }
body.light-mode .cc-bm-q { color: #1e3045; }
body.light-mode .cc-bm-r { color: #2c4058; }

/* Header buttons */
body.light-mode .cc-tbtn {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.15);
  color: var(--tx-2);
}
body.light-mode .cc-tbtn:hover { background: rgba(0,0,0,.09); color: var(--tx); border-color: rgba(0,0,0,.25); }
body.light-mode .cc-tbtn-primary { background: #111720; color: #fff; border-color: transparent; }
body.light-mode .cc-tbtn-primary:hover { background: #0d1117; color: #fff; }
body.light-mode #btn-theme {
  color: #3a5070;
  border-color: rgba(0,0,0,.18);
  background: rgba(0,0,0,.06);
}
body.light-mode #btn-theme:hover { color: #1e2f40; border-color: rgba(0,0,0,.3); background: rgba(0,0,0,.1); }

/* Scrollbar */
body.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); }

/* Segmented controls */
body.light-mode .cc-seg { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.13); }
body.light-mode .cc-seg-btn { color: var(--tx-3); }
body.light-mode .cc-seg-on { background: rgba(0,0,0,.14); color: var(--tx); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.1); }
body.light-mode .cc-seg-btn:hover { color: var(--tx); }

/* Left-rail cards */
body.light-mode .cc-opp,
body.light-mode .cc-captured,
body.light-mode .cc-history {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-color: rgba(0,0,0,.1);
}
body.light-mode .cc-opp:hover, body.light-mode .cc-history:hover {
  box-shadow: inset 0 0 0 400px rgba(0,0,0,.025);
  border-color: rgba(0,0,0,.13);
}

/* Section headings in coach cards — darken accent for readability in light mode */
body.light-mode .cc-section-head {
  color: color-mix(in srgb, var(--accent, #4a90d9) 70%, black 30%);
}

/* Opponent avatar */
body.light-mode .cc-opp-avatar {
  background: radial-gradient(circle at 35% 30%, #d0d8e4, #b8c6d2);
  border-color: rgba(0,0,0,.12);
  color: #2c3e50;
}
body.light-mode .cc-opp-avatar i { background: rgba(0,0,0,.14); border-color: #f5f7fb; }
body.light-mode .cc-opp-avatar i.cc-opp-live { background: #ffb03a; }

/* Live buttons (take-back, load) */
body.light-mode .cc-live-btn {
  background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.14); color: var(--tx-2);
}
body.light-mode .cc-live-btn:hover:not(:disabled) { background: rgba(0,0,0,.08); color: var(--tx); border-color: rgba(0,0,0,.24); }

/* History */
body.light-mode .cc-history-head { border-bottom-color: rgba(0,0,0,.08); }
body.light-mode .cc-history-head > span { color: var(--tx-3); }
body.light-mode .cc-hnum { color: var(--tx-3); }
body.light-mode .cc-hmove { color: var(--tx-2); }
body.light-mode .cc-hmove:hover { background: rgba(0,0,0,.05); color: var(--tx); }
body.light-mode .cc-hmove-cur { background: rgba(0,0,0,.08) !important; color: var(--tx) !important; }

/* Board bezel */
body.light-mode .cc-board {
  box-shadow:
    0 20px 50px -20px rgba(0,0,0,.18),
    0 0 0 1px rgba(0,0,0,.07),
    0 0 0 9px rgba(210,220,230,.9),
    0 0 0 10px rgba(0,0,0,.07);
}
body.light-mode .cc-board-thinking {
  box-shadow:
    0 20px 50px -20px rgba(0,0,0,.18),
    0 0 0 1px rgba(74,120,180,.3),
    0 0 0 9px rgba(210,220,230,.9),
    0 0 0 10px rgba(74,120,180,.13);
}

/* Board highlights */
body.light-mode #board .highlight-selected {
  box-shadow: inset 0 0 0 3px rgba(10,20,40,.65) !important;
  background-color: rgba(10,20,40,.07) !important;
}
body.light-mode #board .highlight-valid::after {
  background: radial-gradient(circle, rgba(10,20,40,.3) 26%, transparent 30%);
}

/* Eval panel */
body.light-mode #eval-num.eval-white { color: #0a1118; }
body.light-mode #eval-num.eval-black { color: var(--tx-3); }
body.light-mode #eval-num.eval-equal { color: var(--tx-2); }
body.light-mode #eval-num.eval-mate  { color: #8a6200; }
body.light-mode .cc-eval-track { background: rgba(0,0,0,.1); }
body.light-mode .cc-eval-track::before { background: rgba(0,0,0,.18); }
body.light-mode .cc-eval-knob { background: var(--panel); border-color: rgba(0,0,0,.18); }
body.light-mode .cc-eval-knob.eval-white { border-color: rgba(10,17,24,.4); }
body.light-mode .cc-eval-knob.eval-black { border-color: rgba(60,80,100,.35); }
body.light-mode .cc-consult--ready {
  background: linear-gradient(90deg, rgba(50,90,215,.28) 0%, rgba(110,45,235,.42) 50%, rgba(50,90,215,.28) 100%);
  background-size: 200% 100%;
  border-color: rgba(70,110,235,.7);
  color: #1a3898;
  animation: cc-shimmer 2.4s ease-in-out infinite;
}
body.light-mode .cc-consult--ready:hover:not(:disabled) {
  background: linear-gradient(90deg, rgba(50,90,215,.38) 0%, rgba(110,45,235,.54) 50%, rgba(50,90,215,.38) 100%);
  border-color: rgba(70,110,235,.85); color: #102680;
}

/* Council header */
body.light-mode .cc-council-head {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-color: rgba(0,0,0,.1);
}
body.light-mode .cc-council-kicker { color: var(--tx-3); }
body.light-mode .cc-verdict-sub { color: var(--tx-3); }
body.light-mode .cc-cdot { border-color: rgba(0,0,0,.2); }

/* Consult button */
body.light-mode .cc-consult { background: rgba(0,0,0,.07); border-color: rgba(0,0,0,.18); color: var(--tx-2); }
body.light-mode .cc-consult:hover:not(:disabled) { background: rgba(0,0,0,.14); color: var(--tx); border-color: rgba(0,0,0,.28); }

/* Slot cards */
body.light-mode .cc-slot {
  background: linear-gradient(180deg, #fff, #f9fbfd);
  border-color: rgba(0,0,0,.1);
}
body.light-mode .cc-slot:hover {
  box-shadow: inset 0 0 0 400px rgba(0,0,0,.03), 0 4px 16px -8px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.15);
}
body.light-mode .cc-slot::before { opacity: 0.35; }
body.light-mode .cc-slot-hot {
  border-color: color-mix(in srgb, var(--accent, #4a90d9) 45%, rgba(0,0,0,.15));
  box-shadow: 0 10px 40px -16px color-mix(in srgb, var(--accent, #4a90d9) 30%, transparent);
}
body.light-mode .cc-slot-style { color: var(--tx-3); }
body.light-mode .cc-slot-rating { color: var(--tx-3); }

/* Swap chevron */
body.light-mode .cc-swap { border-color: rgba(0,0,0,.15); color: var(--tx-3); }
body.light-mode .cc-swap:hover, body.light-mode .cc-swap-open {
  background: rgba(0,0,0,.06); color: var(--tx-2); border-color: rgba(0,0,0,.22);
}

/* Slot thinking / scan */
body.light-mode .cc-slot-think > span { color: var(--tx-3); }
body.light-mode .cc-scan { background: rgba(0,0,0,.07); }

/* Evalbar */
body.light-mode .cc-evalbar { background: rgba(0,0,0,.09); }
body.light-mode .cc-evalbar::before { background: rgba(0,0,0,.18); }

/* Agree line */
body.light-mode .cc-pv .cc-pv-dim { color: var(--tx-3); }

/* Eval text */
body.light-mode .cc-eval { color: var(--tx-2) !important; }

/* Swap dropdown */
body.light-mode .cc-dd {
  background: linear-gradient(180deg, #fff, #f7f9fc);
  border-color: rgba(0,0,0,.13);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
}
body.light-mode .cc-dd-head { color: var(--tx-3); border-bottom-color: rgba(0,0,0,.08); }
body.light-mode .cc-dd-item { color: var(--tx); }
body.light-mode .cc-dd-item:hover:not(:disabled) { background: rgba(0,0,0,.04); }
body.light-mode .cc-dd-item:disabled { color: var(--tx-3); }
body.light-mode .cc-dd-cur { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12) !important; }
body.light-mode .cc-dd-name { color: var(--tx); }
body.light-mode .cc-dd-style { color: var(--tx-3); }
body.light-mode .cc-dd-tag { background: rgba(0,0,0,.07); color: var(--tx-3); }
body.light-mode .cc-dd-custom-sep { background: rgba(0,0,0,.09); }
body.light-mode .cc-dd-custom-toggle { color: var(--tx-2); }
body.light-mode .cc-dd-custom-toggle:hover { color: var(--tx); }
body.light-mode .cc-dd-custom-input,
body.light-mode .cc-dd-custom-ta {
  background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.15); color: var(--tx);
}
body.light-mode .cc-dd-custom-input:focus,
body.light-mode .cc-dd-custom-ta:focus { border-color: rgba(0,0,0,.3); }
body.light-mode .cc-dd-custom-save { background: #111720; color: #fff; }
body.light-mode .cc-dd-custom-cancel { background: rgba(0,0,0,.05); color: var(--tx-2); border-color: rgba(0,0,0,.13); }

/* Footer */
body.light-mode .cc-footer {
  background: rgba(232,238,246,.92);
  border-top-color: rgba(0,0,0,.09);
}
body.light-mode .terms-menu { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-color: rgba(0,0,0,.1); }
body.light-mode .terms-menu-item { color: var(--tx-2); }
body.light-mode .terms-menu-item:hover { background: rgba(0,0,0,.05); color: var(--tx); }
body.light-mode .cc-footer-pill {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.14);
  color: var(--tx-2);
}
body.light-mode .cc-footer-pill:hover { background: rgba(0,0,0,.1); color: var(--tx); border-color: rgba(0,0,0,.22); }

/* Modal overlay */
body.light-mode .modal-overlay { background: rgba(170,188,210,.72); }
body.light-mode .modal {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
body.light-mode .modal h2 { color: var(--tx); }
body.light-mode .modal p { color: var(--tx-2); }
body.light-mode .modal h3 { color: var(--tx-2); }

/* Modal tabs */
body.light-mode .tab-btn { border-color: rgba(0,0,0,.14); color: var(--tx-3); }
body.light-mode .tab-btn.active, body.light-mode .tab-btn:hover { background: rgba(0,0,0,.06); color: var(--tx); border-color: rgba(0,0,0,.22); }

/* Modal form elements */
body.light-mode .pgn-textarea,
body.light-mode .fen-input,
body.light-mode .fb-textarea {
  background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.15); color: var(--tx);
}
body.light-mode .pgn-textarea:focus,
body.light-mode .fen-input:focus,
body.light-mode .fb-textarea:focus { border-color: rgba(0,0,0,.3); }
body.light-mode .fen-status { color: var(--tx-2); }

/* Modal buttons */
body.light-mode .btn-primary { background: #111720; color: #fff; }
body.light-mode .btn-primary:hover:not(:disabled) { background: #0d1117; }
body.light-mode .btn-secondary { background: rgba(0,0,0,.04); color: var(--tx-2); border-color: rgba(0,0,0,.14); }
body.light-mode .btn-secondary:hover { color: var(--tx); border-color: rgba(0,0,0,.25); }
body.light-mode .btn-file-upload { background: rgba(0,0,0,.04); color: var(--tx-2); border-color: rgba(0,0,0,.14); }
body.light-mode .btn-file-upload:hover { color: var(--tx); }
body.light-mode .pgn-move-count { color: var(--tx-2); }

/* Image upload */
body.light-mode .img-drop-zone { border-color: rgba(0,0,0,.15); color: var(--tx-2); background: transparent; }
body.light-mode .img-drop-zone:hover { border-color: rgba(0,0,0,.28); background: rgba(0,0,0,.02); }

/* Feedback stars */
body.light-mode .star { color: rgba(0,0,0,.18); }
body.light-mode .star.active { color: #c49000; }
body.light-mode .feedback-fields label { color: var(--tx-3); }

/* Info modal */
body.light-mode .info-intro { color: var(--tx-2); }
body.light-mode .info-section-heading { color: var(--tx-3); }
body.light-mode .info-coach-name { color: var(--tx); }
body.light-mode .info-coach-inspired { color: var(--tx-3); }
body.light-mode .info-coach-desc { color: var(--tx-2); }

/* ── Mobile ── */
/* ── Tablet / narrow laptop: board-first stacked layout ────────────────── */
/* Triggers when 3-column grid can no longer give the board meaningful space  */
@media (max-width: 940px) {
  body { overflow: auto; }

  .cc-main {
    display: flex; flex-direction: column;
    height: auto; padding: 14px 18px 80px;
    gap: 16px;
  }

  /* Board is the hero — centre stage, on top */
  .cc-stage {
    order: 1;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 0;
  }
  /* Cap board at 520px on wide tablets, full width on narrow ones */
  .cc-board-wrap { width: min(100%, 520px) !important; }
  .cc-eval-panel { width: min(100%, 520px) !important; }

  /* Opponent + history below board, coaches at bottom */
  .cc-rail-left  { order: 2; }
  .cc-rail-right { order: 3; }

  /* Coach cards: horizontal scroll row */
  .cc-slots {
    flex-direction: row;
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    gap: 12px;
  }
  .cc-slot { flex: 0 0 80%; scroll-snap-align: center; }

  .cc-history { max-height: 220px; }
}

/* ── Phone portrait ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Prevent horizontal side-scroll on mobile */
  body { overflow-x: hidden; }

  .cc-top {
    grid-template-columns: 1fr auto;
    height: auto; padding: 10px 14px;
    position: sticky; top: 0; z-index: 50;
  }
  .cc-top-status { display: none; }
  .cc-brand-name { font-size: 15px; letter-spacing: .14em; }

  .cc-main { padding: 10px 12px 72px; gap: 12px; }

  /* Full-width board on phones */
  .cc-board-wrap { width: 100% !important; }
  .cc-eval-panel { width: 100% !important; }

  .cc-slot { flex: 0 0 86%; }
  .cc-history { max-height: 180px; }

  /* Fix iOS auto-zoom: inputs/textareas must be ≥16px to prevent Safari from
     zooming the viewport on focus, which leaves the page stuck zoomed in. */
  .pgn-textarea, .fen-input, .fb-textarea,
  .cc-dd-custom-input, .cc-dd-custom-ta { font-size: 16px !important; }
}

/* ── Mobile: pre-game layout (setup only) ───────────────────────────────── */
@media (max-width: 700px) {
  /* Before game starts: hide council + move history + captured — show only setup */
  body:not(.game-active) .cc-rail-right { display: none; }
  body:not(.game-active) .cc-history    { display: none; }
  body:not(.game-active) .cc-captured   { display: none; }
}

/* ── Mobile: in-game layout (moves strip + council) ─────────────────────── */
@media (max-width: 700px) {
  /* Once game starts, hide the setup card */
  body.game-active .cc-setup { display: none !important; }

  /* Compact horizontal move-history strip */
  body.game-active .cc-history {
    max-height: none;
    overflow: visible;
    flex: 0 0 auto;
  }
  body.game-active .cc-history-head {
    padding: 8px 14px 6px;
  }
  body.game-active .cc-history-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    max-height: none;
    padding: 2px 10px 10px;
    align-items: center;
    gap: 0;
  }
  body.game-active .cc-hrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
  }
  body.game-active .cc-hnum {
    text-align: left;
    padding-right: 2px;
    font-size: 11px;
  }
  body.game-active .cc-hmove {
    font-size: 12px;
    padding: 4px 5px;
  }
  /* Scroll to end indicator */
  body.game-active .cc-history-list::-webkit-scrollbar { height: 3px; }
}

/* ── Phone landscape ────────────────────────────────────────────────────── */
@media (orientation: landscape) and (max-height: 560px) {
  body { overflow: auto; }

  .cc-top {
    grid-template-columns: 1fr auto;
    height: auto; padding: 8px 14px;
    position: sticky; top: 0; z-index: 50;
  }
  .cc-top-status { display: none; }
  .cc-brand-name { font-size: 15px; letter-spacing: .14em; }

  .cc-main {
    display: flex; flex-direction: column;
    height: auto; padding: 10px 14px 60px; gap: 12px;
  }
  /* Size board by viewport height so it fits the short landscape dimension */
  .cc-board-wrap { width: min(100%, calc(100vh - 90px)) !important; }
  .cc-eval-panel { width: min(100%, calc(100vh - 90px)) !important; }
  .cc-stage  { order: 1; justify-content: flex-start; align-items: center; padding-bottom: 0; }
  .cc-rail-left  { order: 2; }
  .cc-rail-right { order: 3; }

  .cc-slots {
    flex-direction: row;
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .cc-slot { flex: 0 0 84%; scroll-snap-align: center; }
  .cc-history { max-height: 180px; }
}

/* ── Splash Screen ───────────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(900px 600px at 50% -8%, rgba(0,229,255,.06), transparent 60%),
              linear-gradient(160deg, #0c0e14 0%, #090b10 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
}
body.light-mode .splash {
  background: linear-gradient(145deg, #e8eef5 0%, #f2f5fa 100%);
}

.splash-body {
  margin-top: clamp(40px, 16vh, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 600px;
  padding: 0 28px;
  width: 100%;
}

/* ── Brand mark (mirrors header, scaled for splash) ── */
.splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  user-select: none;
}
.splash-bm-wrap {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  line-height: 1;
}
.sbm-k { font-size: 3.2rem; color: #f0f4fc; }
.sbm-q { font-size: 2.6rem; color: #d4dbe8; }
.sbm-r { font-size: 2.1rem; color: #a8b4c4; }
body.light-mode .sbm-k { color: #0a1825; }
body.light-mode .sbm-q { color: #1e3045; }
body.light-mode .sbm-r { color: #2c4058; }
.splash-brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: .22em;
  color: var(--tx);
  line-height: 1;
}
.splash-brand-sub {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--tx-3);
  letter-spacing: .12em;
}

/* ── Heading section ── */
.splash-intro {
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}
body.light-mode .splash-intro { border-bottom-color: rgba(0,0,0,.1); }

.splash-h1 {
  font-family: var(--sans);
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.sh-line1 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  color: var(--tx);
  line-height: 1.2;
}
.sh-line2 {
  font-size: clamp(1.45rem, 3.8vw, 2rem);
  color: var(--tx);
  line-height: 1.3;
}

/* ── Sub text + tagline section ── */
.splash-sub-block {
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
body.light-mode .splash-sub-block { border-bottom-color: rgba(0,0,0,.1); }

.splash-sub {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.9vw, .98rem);
  color: var(--tx-2);
  margin: 0;
  line-height: 1.85;
}

.splash-tagline {
  font-family: var(--mono);
  font-size: .78rem;
  color: #00e5ff;
  margin: 0;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.light-mode .splash-tagline { color: #007fa8; }

/* ── Quote card ── */
.splash-quote-wrap {
  width: 100%;
  max-width: 520px;
  position: relative;
  height: 108px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
body.light-mode .splash-quote-wrap {
  border-color: rgba(0,0,0,.11);
  background: rgba(0,0,0,.03);
}

.splash-quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 22px;
  transition: opacity .35s ease;
}
.splash-quote.fading { opacity: 0; }

.splash-q-prefix {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--tx-3);
  letter-spacing: .02em;
  text-align: center;
  display: block;
}

.splash-q-who {
  color: #00e5ff;
  font-style: normal;
  font-weight: 700;
}
body.light-mode .splash-q-who { color: #007fa8; }

.splash-q-text {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--tx-2);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
  display: block;
}

/* ── Consent row ── */
.splash-beta {
  margin-top: 18px;
  padding: 11px 16px;
  background: rgba(255, 193, 60, 0.08);
  border: 1px solid rgba(255, 193, 60, 0.28);
  border-radius: 9px;
  color: rgba(255, 220, 120, 0.85);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
  max-width: 340px;
}
body.light-mode .splash-beta {
  background: rgba(180, 120, 0, 0.07);
  border-color: rgba(180, 120, 0, 0.25);
  color: #7a5800;
}
.splash-beta-badge {
  display: inline-block;
  background: rgba(255, 193, 60, 0.22);
  color: #ffc13c;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}
body.light-mode .splash-beta-badge {
  background: rgba(180, 120, 0, 0.12);
  color: #7a5800;
}

.splash-consent {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.splash-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  max-width: 420px;
}
.splash-consent-chk {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #00e5ff;
  cursor: pointer;
}
body.light-mode .splash-consent-chk { accent-color: #007fa8; }
.splash-consent-text {
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--tx-2);
  line-height: 1.65;
  text-align: left;
}
.splash-legal-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: #00e5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
body.light-mode .splash-legal-link { color: #007fa8; }
.splash-legal-link:hover { opacity: .8; }

/* ── Start button ── */
.splash-btn {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 60px;
  border-radius: 9px;
  border: none;
  background: #ffffff;
  color: #080a0e;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 0 28px rgba(255,255,255,.18);
}
.splash-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(255,255,255,.28);
}
.splash-btn:active { transform: translateY(0); }
body.light-mode .splash-btn { box-shadow: 0 2px 16px rgba(0,0,0,.12); }
.splash-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

/* Legal overlay must sit above the splash when opened from it */
#modal-legal { z-index: 10001; }

/* ── Disclaimer ── flows below content, pushed to bottom of flex — never overlaps */
.splash-disclaimer {
  margin-top: auto;
  align-self: center;
  max-width: 560px;
  width: calc(100% - 48px);
  padding: 20px 0 36px;
  text-align: center;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--tx-3);
  line-height: 1.65;
}

@media (max-height: 640px) {
  .splash-body { margin-top: 18px; }
  .sbm-k { font-size: 2.2rem; }
  .sbm-q { font-size: 1.8rem; }
  .sbm-r { font-size: 1.5rem; }
  .splash-brand { margin-bottom: 12px; gap: 3px; }
  .splash-brand-name { font-size: 1.5rem; }
  .splash-brand-sub { display: none; }
  .splash-intro { padding-bottom: 12px; margin-bottom: 12px; }
  .sh-line1 { font-size: 1.35rem; }
  .sh-line2 { font-size: 1.25rem; }
  .splash-sub-block { padding-bottom: 12px; margin-bottom: 12px; gap: 6px; }
  .splash-quote-wrap { height: 80px; }
  .splash-beta { margin-top: 12px; padding: 8px 12px; font-size: 0.75rem; }
  .splash-consent { margin-top: 10px; }
  .splash-btn { margin-top: 12px; padding: 11px 48px; }
  .splash-disclaimer { padding: 12px 0 16px; }
}

@media (max-height: 480px) {
  .splash-body { margin-top: 12px; }
  .splash-bm-wrap { display: none; }
  .splash-brand { margin-bottom: 8px; }
  .splash-brand-name { font-size: 1.3rem; }
  .splash-intro { padding-bottom: 10px; margin-bottom: 10px; }
  .sh-line1 { font-size: 1.1rem; }
  .sh-line2 { font-size: 1.05rem; }
  .splash-sub-block { display: none; }
  .splash-quote-wrap { display: none; }
  .splash-beta { margin-top: 10px; padding: 7px 12px; font-size: 0.73rem; }
  .splash-consent { margin-top: 8px; }
  .splash-btn { margin-top: 10px; padding: 10px 44px; }
  .splash-disclaimer { display: none; }
}
