/* ============================================================
   COLDEST Land — unified design system
   ------------------------------------------------------------
   Goals:
   - Facebook-familiar chrome (sticky top bar, soft cards, friendly density)
   - Claude-flavored design (warm neutrals on dark, generous whitespace,
     soft motion, monospace for metadata)
   - One stylesheet to rule the consolidated pages so the look is uniform.
   This file is additive — it sits alongside the existing board.css/etc
   and overrides where needed. New pages should NOT load the old board.css.
   ============================================================ */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-0:      #0d1117;         /* page bg */
  --bg-1:      #161b22;         /* card bg */
  --bg-2:      #1f2630;         /* elevated card */
  --bg-3:      #2a3340;         /* hover */
  --topbar-bg: rgba(13,17,23,0.88);
  --border-1:  rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --text:      #e6edf3;
  --text-mute: #9ba8b8;
  --text-dim:  #6e7c8f;
  --text-on-accent: #ffffff;
  --hero-text: #ffffff;
  --accent:    #4a9eff;          /* facebook blue */
  --accent-hover: #2f87f0;
  --accent-2:  #38d6ff;          /* coldest cyan */
  --warm:      #f6c177;          /* highlight */
  --success:   #56d364;
  --danger:    #f85149;
  --pink:      #f472b6;
  --amber:     #fbbf24;
  --surface-overlay: rgba(255,255,255,0.02);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03), 0 2px 6px rgba(0,0,0,.25);
  --shadow:    0 1px 0 rgba(255,255,255,.04), 0 6px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04), 0 16px 48px rgba(0,0,0,.45);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   Light theme — warm, soft, on-brand. Preserves the cool blue +
   cyan accents so the brand identity stays consistent across modes.
   ============================================================ */
:root[data-theme="light"] {
  color-scheme: light;
  --bg-0:      #f5f7fa;         /* page bg — warm off-white */
  --bg-1:      #ffffff;         /* card bg */
  --bg-2:      #f8fafc;         /* elevated card */
  --bg-3:      #eef2f7;         /* hover */
  --topbar-bg: rgba(255,255,255,0.85);
  --border-1:  rgba(13,17,23,0.08);
  --border-2:  rgba(13,17,23,0.14);
  --text:      #0d1117;
  --text-mute: #4b5563;
  --text-dim:  #6b7280;
  --text-on-accent: #ffffff;
  --hero-text: #0d1117;
  --accent:    #2563eb;          /* slightly deeper blue for contrast on light */
  --accent-hover: #1d4ed8;
  --accent-2:  #0891b2;          /* deeper cyan for AA contrast */
  --warm:      #b45309;          /* warmer amber on white */
  --success:   #15803d;
  --danger:    #b91c1c;
  --pink:      #be185d;
  --amber:     #b45309;
  --surface-overlay: rgba(13,17,23,0.02);
  --shadow-sm: 0 1px 2px rgba(13,17,23,.06), 0 1px 3px rgba(13,17,23,.04);
  --shadow:    0 4px 12px rgba(13,17,23,.06), 0 1px 3px rgba(13,17,23,.04);
  --shadow-lg: 0 12px 28px rgba(13,17,23,.10), 0 4px 10px rgba(13,17,23,.06);
}

* { box-sizing: border-box; }
html, body {
  background: var(--bg-0); color: var(--text); font-family: var(--font-sans);
  margin: 0; padding: 0;
  /* Hard guard against horizontal overflow anywhere on the page.
     Mobile especially: any rogue wide child should clip to viewport instead
     of forcing a horizontal scroll on the whole document. */
  max-width: 100%;
  overflow-x: hidden;
}
body { font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* Defensive: keep media + heavy block elements from busting their container. */
img, video, iframe, svg, table { max-width: 100%; }
h1, h2, h3 { overflow-wrap: anywhere; word-break: break-word; }
pre { overflow-x: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { color: var(--text); margin: 0 0 0.5em; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
small, .small { font-size: 12.5px; color: var(--text-mute); }
.mono { font-family: var(--font-mono); }

/* ---------- Top bar (Facebook-style) ---------- */
.cl-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-1);
}
.cl-topbar-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 18px; gap: 16px;
  min-width: 0;
}
.cl-topbar-inner > * { min-width: 0; }

/* Second-row nav (T20-gated tabs) — spans full width beneath row 1. */
.cl-tabs-t20 {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
}
.cl-tabs-t20 a {
  /* Warmer accent border on the T20 row to visually distinguish it. */
  box-shadow: inset 0 0 0 1px rgba(240, 160, 32, 0.18);
}
.cl-tabs-t20 a.active {
  background: linear-gradient(180deg, rgba(240, 160, 32, 0.20) 0%, rgba(240, 160, 32, 0.10) 100%);
  box-shadow: inset 0 0 0 1px rgba(240, 160, 32, 0.55);
  color: var(--text);
}
:root[data-theme="light"] .cl-tabs-t20 a.active {
  background: linear-gradient(180deg, rgba(180, 100, 20, 0.16) 0%, rgba(180, 100, 20, 0.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 100, 20, 0.40);
  color: #7c4c00;
}
.cl-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
  letter-spacing: -0.01em;
  /* Prevent brand text from wrapping/truncating when the tabs pill gets wide. */
  white-space: nowrap;
  flex-shrink: 0;
}
.cl-brand .mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; font-size: 18px;
  box-shadow: 0 6px 16px rgba(74,158,255,.35);
}
.cl-tabs {
  display: inline-flex; gap: 6px; padding: 4px;
  background: var(--bg-1); border: 1px solid var(--border-1);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tabs a { flex-shrink: 0; }
.cl-tabs a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  color: var(--text-mute); font-weight: 600; font-size: 14px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.cl-tabs a:hover { background: var(--bg-2); color: var(--text); }
.cl-tabs a.active {
  background: linear-gradient(180deg, rgba(74,158,255,.18) 0%, rgba(74,158,255,.10) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(74,158,255,.35);
}
:root[data-theme="light"] .cl-tabs a.active {
  background: linear-gradient(180deg, rgba(37,99,235,.14) 0%, rgba(37,99,235,.06) 100%);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.30);
}
.cl-tabs a .ti { font-size: 16px; line-height: 1; }
.cl-tabs a .lbl-short { display: none; }

/* Below ~1360px the full labels + brand + sign-out don't all fit on one row
   without clipping the last tab. Switch to short labels early. */
@media (max-width: 1360px) {
  .cl-tabs a .lbl { display: none; }
  .cl-tabs a .lbl-short { display: inline; }
  .cl-tabs { gap: 4px; padding: 3px; }
  .cl-tabs a { padding: 8px 12px; font-size: 13px; gap: 6px; }
  .cl-tabs a .ti { font-size: 15px; }
}

/* Legacy narrower breakpoint kept for safety. */
@media (max-width: 980px) {
  .cl-tabs a .lbl { display: none; }
  .cl-tabs a .lbl-short { display: inline; }
}
/* Below ~640px the topbar's 3-col grid (brand | tabs | right) can't fit;
   collapse the tabs into a full-width WRAPPED row beneath the brand so every
   tab is visible without horizontal scrolling. */
@media (max-width: 640px) {
  .cl-topbar-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand right"
      "tabs  tabs"
      "t20   t20";
    row-gap: 8px;
    padding: 8px 12px;
  }
  .cl-brand { grid-area: brand; }
  .cl-right { grid-area: right; }
  .cl-tabs  {
    grid-area: tabs;
    justify-self: stretch;
    /* Wrap onto a 2nd row instead of horizontal scroll */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    border-radius: 14px;
    gap: 4px;
    padding: 4px;
  }
  /* T20-gated second nav lives in its own grid row so it doesn't overlap the
     public tabs when the public row wraps. margin-top from the desktop rule
     stacks on top of the row-gap; drop it here. */
  .cl-tabs-t20 {
    grid-area: t20;
    justify-self: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    border-radius: 14px;
    gap: 4px;
    padding: 4px;
    margin-top: 0;
  }
  .cl-tabs-t20 a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 10px;
    font-size: 13px;
    min-width: 0;
  }
  .cl-tabs a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 10px;
    font-size: 13px;
    min-width: 0;
  }
  .cl-brand { font-size: 15px; }
  .cl-brand .mark { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
  .cl-cta { padding: 6px 10px; font-size: 12px; }
  .cl-cta .lbl { display: none; } /* show icon-only CTAs */
  .cl-signout { padding: 5px 8px; font-size: 11px; }
}
.cl-right {
  display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end;
}
.cl-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: 13px;
  background: var(--bg-1); border: 1px solid var(--border-1); color: var(--text-mute);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cl-cta:hover { background: var(--bg-2); color: var(--text); border-color: var(--border-2); }
.cl-cta.primary {
  background: var(--accent); color: var(--text-on-accent); border-color: transparent;
}
.cl-cta.primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.cl-cta svg { width: 14px; height: 14px; }
/* Icon-only buttons (theme toggle, Facebook, Discord) — full text contrast,
   not muted, so the glyphs are clearly visible against the topbar surface. */
.cl-cta.icon {
  padding: 7px 9px;
  color: var(--text);
}
.cl-cta.icon:hover { color: var(--accent-2); }
.cl-cta.cl-theme-toggle { color: var(--text); }
.cl-cta.cl-theme-toggle:hover { color: var(--accent-2); }
.cl-cta.cl-theme-toggle svg { width: 16px; height: 16px; }
.cl-signout { color: var(--text-dim); font-size: 12px; padding: 6px 10px; }
.cl-signout:hover { color: var(--text); }

/* ---------- Page container ---------- */
.cl-page { max-width: 1200px; margin: 0 auto; padding: 24px 18px 72px; }
.cl-page.narrow { max-width: 760px; }
.cl-page.wide { max-width: 1440px; }
@media (max-width: 640px) {
  .cl-page { padding: 14px 12px 56px; }
}

/* ---------- Two-column layout: sidebar + main ---------- */
.cl-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 18px 72px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.cl-layout.wide { max-width: 1440px; }
.cl-layout .cl-main { min-width: 0; }
.cl-layout .cl-main > .cl-hero:first-child { margin-top: 0; }

/* ---------- Sidebar (left rail) ---------- */
.cl-sidebar {
  position: sticky;
  top: 76px; /* sits under the sticky top bar */
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  /* hide scrollbar visually while keeping it functional */
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.cl-sidebar::-webkit-scrollbar { width: 6px; }
.cl-sidebar::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.cl-sidebar-inner {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 14px 10px 10px;
  box-shadow: var(--shadow-sm);
}
.cl-side-title {
  padding: 4px 10px 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cl-side-eyebrow {
  padding: 14px 10px 6px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}
.cl-side-nav, .cl-side-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cl-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.cl-side-item .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.cl-side-item .ico svg { width: 20px; height: 20px; }
.cl-side-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-side-item .ext {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.7;
}
.cl-side-item:hover {
  background: var(--bg-2);
  color: var(--text);
}
.cl-side-item:hover .ico { color: var(--text); }
.cl-side-item.is-active {
  background: linear-gradient(135deg, rgba(74,158,255,0.16) 0%, rgba(56,214,255,0.12) 100%);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(74,158,255,0.25);
}
.cl-side-item.is-active .ico { color: var(--accent-2); }
.cl-side-item.is-external { color: var(--text-mute); }
.cl-side-item.is-external:hover { color: var(--text); }
.cl-side-divider {
  height: 1px;
  background: var(--border-1);
  margin: 12px 6px 4px;
}

/* Mobile: collapse sidebar to top, single row of pills, no sticky */
@media (max-width: 900px) {
  .cl-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px 12px 60px;
    max-width: 100%;
    min-width: 0;
  }
  .cl-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .cl-sidebar-inner {
    padding: 10px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden; /* contain horizontally scrolling nav */
  }
  .cl-side-title { display: none; }
  .cl-side-eyebrow { display: none; }
  .cl-side-nav, .cl-side-quicklinks {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
  }
  .cl-side-nav::-webkit-scrollbar, .cl-side-quicklinks::-webkit-scrollbar { display: none; }
  .cl-side-item {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-1);
    width: auto; /* override 100% baseline width */
  }
  .cl-side-item .lbl { white-space: nowrap; overflow: visible; flex: 0 0 auto; }
  .cl-side-item.is-active { box-shadow: inset 0 0 0 1px rgba(74,158,255,0.45); }
  .cl-side-divider { margin: 6px 0; display: none; }
  /* Make sure main column also stays inside viewport */
  .cl-layout .cl-main { min-width: 0; max-width: 100%; }
}

.cl-hero {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 22px;
  box-shadow: var(--shadow-sm);
}
.cl-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700;
}
.cl-hero h1 { margin-top: 8px; }
.cl-hero p { color: var(--text-mute); margin: 6px 0 0; }

/* ---------- Cards ---------- */
.cl-card {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.cl-card.elevated { background: var(--bg-2); box-shadow: var(--shadow); }
.cl-card + .cl-card { margin-top: 14px; }
.cl-card .cl-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.cl-card .cl-card-head h2 { margin: 0; }
.cl-card .meta { color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; }

/* ---------- Sub-tabs inside a section ---------- */
.cl-subtabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-1); border: 1px solid var(--border-1);
  border-radius: 12px;
  margin: 4px 0 18px;
  overflow-x: auto;
  max-width: 100%;
}
.cl-subtabs button {
  background: transparent; border: 0; color: var(--text-mute);
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.cl-subtabs button:hover { color: var(--text); }
.cl-subtabs button.active { background: var(--bg-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-1); }
.cl-subpane { display: none; }
.cl-subpane.active { display: block; }

/* ---------- Pills / chips ---------- */
.cl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: var(--bg-2); border: 1px solid var(--border-1); color: var(--text-mute);
}
.cl-chip.accent  { color: var(--accent-2); border-color: rgba(56,214,255,.30); background: rgba(56,214,255,.08); }
.cl-chip.warm    { color: var(--warm);     border-color: rgba(246,193,119,.32); background: rgba(246,193,119,.08); }
.cl-chip.success { color: var(--success);  border-color: rgba(86,211,100,.30);  background: rgba(86,211,100,.08); }
.cl-chip.pink    { color: var(--pink);     border-color: rgba(244,114,182,.30); background: rgba(244,114,182,.08); }
.cl-chip.amber   { color: var(--amber);    border-color: rgba(251,191,36,.30);  background: rgba(251,191,36,.08); }

/* ---------- Buttons ---------- */
.cl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--text-on-accent); border: 0; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.cl-btn:hover { background: var(--accent-hover); }
.cl-btn:active { transform: translateY(1px); }
.cl-btn.ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--border-1); }
.cl-btn.ghost:hover { background: var(--bg-3); }

/* ---------- Countdown big block ---------- */
.cl-countdown {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(74,158,255,.18) 0%, transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(56,214,255,.10) 0%, transparent 55%),
    var(--bg-1);
  border: 1px solid var(--border-1);
  padding: 36px 28px; margin: 0 0 22px;
  text-align: center;
}
.cl-countdown .eyebrow {
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent-2);
  text-transform: uppercase; font-weight: 700;
}
.cl-countdown .drop-name {
  margin: 14px 0 18px; font-size: 26px; font-weight: 700; color: var(--hero-text);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere; word-break: break-word;
}
.cl-countdown .clock {
  display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap;
}
.cl-countdown .seg {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 12px; padding: 14px 18px; min-width: 78px;
  flex: 0 1 auto;
}
.cl-countdown .seg .n { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--hero-text); line-height: 1; }
.cl-countdown .seg .u { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; font-weight: 600; }
.cl-countdown .when { color: var(--text-mute); margin-top: 16px; font-size: 13px; }
@media (max-width: 640px) {
  .cl-countdown { padding: 22px 14px; }
  .cl-countdown .drop-name { font-size: 22px; margin: 10px 0 14px; }
  .cl-countdown .clock { gap: 6px; }
  .cl-countdown .seg { padding: 10px 8px; min-width: 0; flex: 1 1 0; }
  .cl-countdown .seg .n { font-size: 22px; }
  .cl-countdown .seg .u { font-size: 9.5px; letter-spacing: 0.12em; }
}

/* ---------- Hint deck (interactive flow vs side-by-side) ---------- */
.cl-hintdeck { margin-top: 18px; }
.cl-hintdeck .deck {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-1);
  padding: 26px 28px; min-height: 200px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cl-hintdeck .slide {
  display: none; animation: fadeUp .35s ease;
}
.cl-hintdeck .slide.active { display: block; }
.cl-hintdeck .slide .label {
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent-2);
  text-transform: uppercase; font-weight: 700; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.cl-hintdeck .slide pre {
  margin: 0; font-family: var(--font-sans); font-size: 16.5px;
  line-height: 1.7; white-space: pre-wrap; color: var(--text);
}
.cl-hintdeck .controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px;
}
.cl-hintdeck .dots { display: inline-flex; gap: 6px; }
.cl-hintdeck .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); cursor: pointer; transition: background .15s ease, transform .15s ease; border: 0; padding: 0; }
.cl-hintdeck .dot.active { background: var(--accent-2); transform: scale(1.25); }
.cl-hintdeck .arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border-1); color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.cl-hintdeck .arrow:hover { background: var(--bg-3); }
.cl-hintdeck .arrow:disabled { opacity: 0.35; cursor: not-allowed; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Empty / loading states ---------- */
.cl-empty {
  text-align: center; color: var(--text-mute);
  padding: 40px 24px; border: 1px dashed var(--border-2);
  border-radius: var(--radius); background: rgba(255,255,255,0.02);
}
.cl-empty h3 { color: var(--text); margin-bottom: 4px; }
.cl-loading { color: var(--text-mute); padding: 24px; text-align: center; font-size: 14px; }

/* ---------- Section heading ---------- */
.cl-section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 6px 0 12px;
}
.cl-section-title h2 { margin: 0; }
.cl-section-title .hint { color: var(--text-dim); font-size: 12.5px; }

/* ---------- Utility ---------- */
.cl-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cl-row.between { justify-content: space-between; }
.cl-stack { display: grid; gap: 14px; }
.cl-divider { height: 1px; background: var(--border-1); margin: 18px 0; }
.cl-hide { display: none !important; }
.cl-fade-in { animation: fadeUp .35s ease; }

/* ---------- Footer ---------- */
.cl-foot {
  max-width: 1200px; margin: 18px auto 0; padding: 24px 18px;
  color: var(--text-dim); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
@media (max-width: 640px) {
  .cl-foot { padding: 16px 12px; font-size: 12px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .cl-hero { padding: 16px 16px; }
}

/* ---------- Admin badge ---------- */
.cl-admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(246,193,119,.10); color: var(--warm);
  border: 1px solid rgba(246,193,119,.30);
  border-radius: 999px; padding: 4px 10px; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}

/* ---------- Override legacy global glow if a child loads board.css ---------- */
body { background: var(--bg-0); }
