/* ==========================================================================
   WINTER CAMP - CTFd theme  (replaces exegol-ctfd.css)
   Polar night + aurora borealis  ·  Space Grotesk + JetBrains Mono
   Loaded AFTER Bootstrap / main.css (see base.html) so it wins the cascade.
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------- */
:root, [data-bs-theme] {
  --wc-night:   #070B18;
  --wc-night-2: #0B1324;
  --wc-night-3: #0E1A30;
  --wc-frost:   #E8F1FB;
  --wc-muted:   #93A6C6;
  --wc-soft:    #C5D4EC;
  --wc-dim:     #6A7B9C;
  --wc-line:    rgba(140,170,220,.16);
  --wc-line-s:  rgba(140,170,220,.32);
  --wc-ice:     #6FE3FF;
  --wc-green:   #58F2C8;
  --wc-violet:  #9A7BFF;
  --wc-ember:   #FFBE5C;
  --wc-panel:   rgba(255,255,255,.035);
  --wc-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --wc-body:    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wc-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Feed Bootstrap's own variables so un-themed components stay on palette */
  --bs-body-bg: transparent;
  --bs-body-color: var(--wc-frost);
  --bs-secondary-color: var(--wc-muted);
  --bs-tertiary-color: var(--wc-dim);
  --bs-emphasis-color: #fff;
  --bs-border-color: var(--wc-line);
  --bs-link-color: var(--wc-ice);
  --bs-link-color-rgb: 111,227,255;
  --bs-link-hover-color: #B9EEFF;
  --bs-link-hover-color-rgb: 185,238,255;
  --bs-body-font-family: var(--wc-body);
  --bs-dark: var(--wc-night-2);
  --bs-dark-rgb: 11,19,36;
  color-scheme: dark;
}

/* ---------- Base ---------------------------------------------------------- */
html, body {
  color: var(--wc-frost) !important;
  font-family: var(--wc-body) !important;
  -webkit-font-smoothing: antialiased;
  /* Transparent so the aurora (z-index:-1) shows through */
  background: transparent !important;
}
/* Root paints the canvas: night blue under everything (overscroll, long pages) */
html { background: var(--wc-night) !important; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body > main { flex: 1 0 auto; }

/* Polar night sky - sits at z-index:-2, below aurora + snow (-1) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 78% -12%, rgba(88,242,200,.10), transparent 60%),
    radial-gradient(900px 560px at 12% -8%, rgba(111,227,255,.10), transparent 58%),
    radial-gradient(800px 520px at 55% -4%, rgba(154,123,255,.08), transparent 60%),
    linear-gradient(180deg, #070B18, #080d1d 45%, #06091a);
}

/* Aurora + snow */
.wc-aurora { position: fixed; left: -20%; right: -20%; top: -20%; height: 66vh; z-index: -1; filter: blur(64px); opacity: .42; pointer-events: none; }
.wc-aurora span { position: absolute; inset: 0; mix-blend-mode: screen; border-radius: 50%; display: block; }
.wc-a1 { background: radial-gradient(60% 120% at 30% 40%, #58F2C8, transparent 60%); animation: wcD1 26s ease-in-out infinite alternate; }
.wc-a2 { background: radial-gradient(55% 120% at 65% 30%, #6FE3FF, transparent 62%); animation: wcD2 32s ease-in-out infinite alternate; }
.wc-a3 { background: radial-gradient(45% 120% at 50% 55%, #9A7BFF, transparent 60%); animation: wcD3 38s ease-in-out infinite alternate; }
@keyframes wcD1 { from { transform: translate(-6%,-4%) } to { transform: translate(8%,6%) } }
@keyframes wcD2 { from { transform: translate(6%,2%) }  to { transform: translate(-8%,-6%) } }
@keyframes wcD3 { from { transform: translate(0,4%) }   to { transform: translate(4%,-4%) } }
#wc-snow { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

a { color: var(--wc-ice); text-decoration: none; }
a:hover { color: #B9EEFF; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--wc-display) !important;
  color: var(--wc-frost);
  letter-spacing: -.02em;
}

code, kbd, pre, .font-mono { font-family: var(--wc-mono) !important; }
code { color: var(--wc-green) !important; }
pre { background: #06101f; border: 1px solid var(--wc-line); border-radius: 10px; padding: 12px 14px; color: var(--wc-soft); }

hr { border-color: var(--wc-line) !important; opacity: 1; }
.text-muted, .text-secondary { color: var(--wc-muted) !important; }

/* Content clears the fixed navbar */
main[role="main"] { padding-top: 62px !important; }

.wc-wrap, main > .container { max-width: 1080px; }

/* ---------- Navbar -------------------------------------------------------- */
.navbar, nav.navbar {
  background: linear-gradient(180deg, rgba(7,11,24,.9), rgba(7,11,24,.55)) !important;
  border-bottom: 1px solid var(--wc-line) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 0 0 var(--wc-ice) inset !important; /* aurora hairline */
  min-height: 62px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.navbar > .container { max-width: 1080px; min-height: 62px; }

.navbar-brand.wc-brand {
  display: flex !important;
  align-items: center;
  gap: 11px;
  font-family: var(--wc-display) !important;
  font-weight: 500;
  color: var(--wc-frost) !important;
  letter-spacing: .01em;
  font-size: 1.05rem;
}
.navbar-brand.wc-brand b { font-weight: 700; }
.wc-brand-mark { height: 28px; width: auto; filter: drop-shadow(0 0 10px rgba(111,227,255,.35)); }

.navbar .nav-link {
  color: var(--wc-muted) !important;
  font-size: .93rem;
  font-weight: 500;
  transition: color .15s;
}
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active { color: var(--wc-frost) !important; }
.navbar .nav-link.active { box-shadow: 0 -2px 0 0 var(--wc-ice) inset; }
.navbar-toggler { border-color: var(--wc-line-s) !important; }
/* Dark-only theme: hide the light/dark toggle (kept in DOM for color_mode_switcher.js) */
.navbar .theme-switch { display: none !important; }
.navbar .navbar-collapse hr { display: none !important; }

/* ---------- Buttons ------------------------------------------------------- */
.btn { border-radius: 10px; font-family: var(--wc-display); font-weight: 600; transition: filter .15s, box-shadow .2s, border-color .2s; }

.btn-primary, .btn-info, .btn-outline-primary:hover {
  background: linear-gradient(180deg, #8fecff, #4fd3f5) !important;
  border: 1px solid transparent !important;
  color: #04121c !important;
  box-shadow: 0 6px 20px -10px rgba(111,227,255,.8);
}
.btn-primary:hover, .btn-info:hover { filter: brightness(1.08); }
.btn-outline-primary { color: var(--wc-ice) !important; border-color: var(--wc-ice) !important; }

/* The single warm accent: primary call-to-action only */
.btn-ember {
  background: linear-gradient(180deg, #ffcd7a, #ffb347) !important;
  border: 1px solid transparent !important;
  color: #2a1800 !important;
  box-shadow: 0 8px 26px -10px rgba(255,180,70,.75), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-ember:hover { color: #2a1800 !important; box-shadow: 0 12px 34px -10px rgba(255,180,70,.9), inset 0 1px 0 rgba(255,255,255,.4); }

.btn-secondary, .btn-outline-secondary, .btn-dark, .btn-ghost {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--wc-line-s) !important;
  color: var(--wc-frost) !important;
}
.btn-secondary:hover, .btn-outline-secondary:hover, .btn-dark:hover, .btn-ghost:hover {
  border-color: var(--wc-ice) !important;
  color: #fff !important;
}

.btn-success { background: linear-gradient(180deg, #7df3d2, #43d6a8) !important; border: 0 !important; color: #042017 !important; }
.btn-danger  { background: linear-gradient(180deg, #ff9aa6, #f26678) !important; border: 0 !important; color: #2a0a10 !important; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.4); opacity: .6; }
.btn-close:hover { opacity: 1; }

/* ---------- Page header (replaces the stock dark "jumbotron") ------------- */
.jumbotron {
  background: transparent !important;
  color: var(--wc-frost) !important;
  padding: 34px 0 6px !important;
  margin-bottom: 1.25rem !important;
  text-align: left !important;
}
.jumbotron > .container { max-width: 1080px; }
.jumbotron h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem) !important;
  font-weight: 700 !important;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wc-line);
}

/* ---------- Cards / panels ------------------------------------------------ */
.card, .panel {
  background: var(--wc-panel) !important;
  border: 1px solid var(--wc-line) !important;
  border-radius: 14px !important;
  color: var(--wc-frost) !important;
}
.card-header {
  background: rgba(255,255,255,.025) !important;
  border-bottom: 1px solid var(--wc-line) !important;
  color: var(--wc-frost) !important;
  font-family: var(--wc-display) !important;
  font-weight: 600 !important;
}
.card-footer { background: rgba(255,255,255,.02) !important; border-top: 1px solid var(--wc-line) !important; }

/* ---------- Challenge modal ---------------------------------------------- */
.modal-backdrop.show { background: #040710; opacity: .7; }
.modal-content {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(111,227,255,.10), transparent 55%),
    var(--wc-night-2) !important;
  border: 1px solid var(--wc-line-s) !important;
  border-radius: 18px !important;
  color: var(--wc-frost) !important;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.85);
}
.modal-header { border-bottom: 1px solid var(--wc-line) !important; }
.modal-footer { border-top: 1px solid var(--wc-line) !important; }
.modal-title  { font-family: var(--wc-display) !important; font-weight: 700 !important; }

.challenge-name  { font-family: var(--wc-display) !important; font-weight: 700 !important; font-size: 1.6rem !important; }
.challenge-value { color: var(--wc-ice) !important; font-family: var(--wc-display) !important; font-weight: 700 !important; font-size: 1.05rem !important; }
.challenge-value::after { content: ' pts'; color: var(--wc-muted); font-weight: 500; }
.challenge-tag   { background: rgba(111,227,255,.12) !important; color: var(--wc-ice) !important; border: 1px solid rgba(111,227,255,.35); font-weight: 500 !important; }
.challenge-desc  { display: block; color: var(--wc-soft); margin: 14px 0; }
.challenge-desc img { max-width: 100%; height: auto; border-radius: 14px; margin: 0 auto 14px; }
.challenge-desc p:last-child { margin-bottom: 0; }
.challenge-attribution { display: block; margin-bottom: 10px; }
.challenge-hints summary { color: var(--wc-ice); cursor: pointer; }

/* Flag submit = ice primary, like the preview */
#challenge-submit, .challenge-submit {
  background: linear-gradient(180deg, #8fecff, #4fd3f5) !important;
  border: 1px solid transparent !important;
  color: #04121c !important;
}
#challenge-submit:hover, .challenge-submit:hover { filter: brightness(1.08); }

/* Flag input - monospace, like the preview */
#challenge-input, .challenge-input, input[name="submission"] { font-family: var(--wc-mono) !important; }

/* ---------- Forms --------------------------------------------------------- */
.form-control, .form-select,
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"],
textarea, select {
  background-color: #06101f !important;
  border: 1px solid var(--wc-line-s) !important;
  color: var(--wc-frost) !important;
  border-radius: 10px !important;
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus {
  border-color: var(--wc-ice) !important;
  box-shadow: 0 0 0 3px rgba(111,227,255,.18) !important;
  outline: none;
}
.form-control::placeholder { color: var(--wc-dim) !important; }
label, .form-label { color: var(--wc-muted); }
.form-text { color: var(--wc-dim) !important; }

/* ---------- Tables (scoreboard, users, teams) ----------------------------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--wc-frost);
  --bs-table-striped-bg: rgba(255,255,255,.02);
  --bs-table-striped-color: var(--wc-frost);
  --bs-table-hover-bg: rgba(111,227,255,.06);
  --bs-table-hover-color: var(--wc-frost);
  --bs-table-border-color: var(--wc-line);
  color: var(--wc-frost) !important;
}
.table thead th {
  color: var(--wc-muted) !important;
  border-bottom: 1px solid var(--wc-line-s) !important;
  font-family: var(--wc-display) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .06em;
}
#scoreboard .table tbody tr:nth-child(1) th:first-child,
#scoreboard .table tbody tr:nth-child(1) td:first-child { color: var(--wc-ember) !important; font-weight: 700 !important; }

/* ---------- Badges / alerts ---------------------------------------------- */
.badge { border-radius: 999px !important; font-weight: 500 !important; }
.badge.bg-info,    .badge-info    { background: rgba(111,227,255,.16) !important; color: var(--wc-ice)    !important; }
.badge.bg-success, .badge-success { background: rgba(88,242,200,.15)  !important; color: var(--wc-green)  !important; }
.badge.bg-danger,  .badge-danger  { background: rgba(255,100,120,.15) !important; color: #ff8ea0         !important; }
.badge.bg-primary, .badge-primary { background: rgba(154,123,255,.18) !important; color: var(--wc-violet) !important; }
.badge.bg-warning, .badge-warning { background: rgba(255,190,92,.15)  !important; color: var(--wc-ember)  !important; }

.alert { border-radius: 12px !important; border: 1px solid var(--wc-line) !important; }
.alert-success { background: rgba(88,242,200,.10)  !important; border-color: rgba(88,242,200,.35)  !important; color: var(--wc-green) !important; }
.alert-danger  { background: rgba(255,100,120,.10) !important; border-color: rgba(255,100,120,.35) !important; color: #ff8ea0 !important; }
.alert-warning { background: rgba(255,190,92,.10)  !important; border-color: rgba(255,190,92,.35)  !important; color: var(--wc-ember) !important; }
.alert-info    { background: rgba(111,227,255,.08) !important; border-color: rgba(111,227,255,.30) !important; color: var(--wc-ice) !important; }

/* ---------- Progress / dropdowns / pagination / tabs ---------------------- */
.progress { background: rgba(255,255,255,.07) !important; height: 8px !important; border-radius: 999px !important; }
.progress-bar { background: linear-gradient(90deg, var(--wc-green), var(--wc-ice)) !important; }

.dropdown-menu { background: var(--wc-night-2) !important; border: 1px solid var(--wc-line-s) !important; border-radius: 12px !important; }
.dropdown-item { color: var(--wc-muted) !important; cursor: pointer; }
.dropdown-item:hover, .dropdown-item.bg-primary { background: rgba(111,227,255,.10) !important; color: var(--wc-frost) !important; }

.page-link { background: rgba(255,255,255,.04) !important; border-color: var(--wc-line-s) !important; color: var(--wc-muted) !important; }
.page-link:hover { color: var(--wc-ice) !important; border-color: var(--wc-ice) !important; }
.page-item.active .page-link { background: var(--wc-ice) !important; border-color: var(--wc-ice) !important; color: #04121c !important; }

.nav-tabs { border-bottom: 1px solid var(--wc-line) !important; }
.nav-tabs .nav-link { color: var(--wc-muted) !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: transparent !important; font-weight: 500; }
.nav-tabs .nav-link:hover { color: var(--wc-frost) !important; }
.nav-tabs .nav-link.active { color: var(--wc-ice) !important; border-bottom-color: var(--wc-ice) !important; }

.nav-pills .nav-link { color: var(--wc-muted); border-radius: 10px; }
.nav-pills .nav-link.active { background: rgba(111,227,255,.12) !important; color: var(--wc-ice) !important; }

#score-graph, #keys-pie-graph, #categories-pie-graph, #score-graph-total, .chart-container {
  background: var(--wc-panel);
  border: 1px solid var(--wc-line);
  border-radius: 14px;
}

/* ---------- Scrollbar ----------------------------------------------------- */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--wc-night); }
::-webkit-scrollbar-thumb { background: rgba(111,227,255,.22); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(111,227,255,.45); }

/* ==========================================================================
   CHALLENGES PAGE
   ========================================================================== */
.wc-head { padding: 14px 0 6px; }
.wc-page-title { font-size: clamp(1.7rem, 4vw, 2.4rem) !important; font-weight: 700 !important; margin: 0 !important; }
.wc-page-sub { color: var(--wc-muted); margin: 6px 0 0; }

.wc-progress {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 20px; padding: 16px 20px;
  background: var(--wc-panel); border: 1px solid var(--wc-line); border-radius: 14px;
}
.wc-pstat .n { font-family: var(--wc-display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.wc-pstat .l { color: var(--wc-muted); font-size: .8rem; margin-top: 3px; }
.wc-bar { flex: 1; min-width: 180px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.wc-bar-in { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--wc-green), var(--wc-ice)); transition: width .6s ease; }
.wc-ice   { color: var(--wc-ice); }
.wc-ember { color: var(--wc-ember); }

/* Filter bar */
.wc-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.wc-filter-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--wc-line-s);
  border-radius: 999px;
  color: var(--wc-muted);
  font: 600 .86rem/1.2 var(--wc-body);
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.wc-filter-btn:hover { border-color: var(--wc-ice); color: var(--wc-frost); }
.wc-filter-btn.active { background: rgba(111,227,255,.12); border-color: var(--wc-ice); color: var(--wc-ice); }

.wc-empty { color: var(--wc-muted); margin-top: 34px; }

/* Category (day) banner */
.wc-day-block { margin-top: 34px; }
.wc-cat-banner {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 1px solid var(--wc-line);
}
.wc-cat-mark {
  width: 12px; height: 12px; border-radius: 3px; flex: none;
  background: linear-gradient(135deg, var(--wc-green), var(--wc-ice) 55%, var(--wc-violet));
  box-shadow: 0 0 12px rgba(111,227,255,.6);
}
.wc-cat-name { font-size: 1.2rem !important; font-weight: 700; margin: 0 !important; }
.wc-cat-count { color: var(--wc-muted); font-size: .85rem; margin-left: 2px; }

/* Challenge grid + frost tiles */
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

.wc-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  width: 100%;
  text-align: left;
  background: var(--wc-panel);
  border: 1px solid var(--wc-line);
  border-radius: 15px;
  padding: 16px 16px 15px;
  color: var(--wc-frost);
  font: inherit;
  cursor: pointer;
  transition: transform .14s ease, border-color .2s ease, box-shadow .2s ease;
}
.wc-tile:hover {
  transform: translateY(-3px);
  border-color: var(--wc-line-s);
  box-shadow: 0 16px 36px -18px rgba(111,227,255,.45);
}
.wc-tile-solved { border-color: rgba(88,242,200,.5); box-shadow: 0 0 0 1px rgba(88,242,200,.22) inset; }
.wc-tile-solved:hover { border-color: rgba(88,242,200,.7); }

.wc-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 22px; }
.wc-tile-top { width: 100%; }
.wc-pts { font-family: var(--wc-display); font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.wc-tile-solved .wc-pts { color: var(--wc-green); }

/* Difficulty pill (first challenge tag) */
.wc-diff {
  font-size: .68rem; font-weight: 600; letter-spacing: .02em; text-transform: capitalize;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--wc-line-s); color: var(--wc-muted);
}
.wc-diff-easy                     { color: var(--wc-green);  border-color: rgba(88,242,200,.4); }
.wc-diff-med, .wc-diff-medium     { color: var(--wc-ice);    border-color: rgba(111,227,255,.4); }
.wc-diff-hard                     { color: var(--wc-violet); border-color: rgba(154,123,255,.45); }
.wc-diff-insane                   { color: var(--wc-ember);  border-color: rgba(255,190,92,.4); }

.wc-solved-badge { display: flex; align-items: center; gap: 5px; color: var(--wc-green); font-size: .72rem; font-weight: 600; }
.wc-solved-badge svg { width: 16px; height: 16px; }

.wc-tile-name   { font-family: var(--wc-display); font-weight: 600; font-size: 1.06rem; line-height: 1.2; }
.wc-tile-tag    { margin-top: 7px; color: var(--wc-muted); font-size: .82rem; font-family: var(--wc-mono); }
.wc-tile-solves { margin-top: 10px; color: var(--wc-dim); font-size: .76rem; }

/* ==========================================================================
   LANDING PAGE (index page content, see for-claude/wc-index-page.html)
   ========================================================================== */
.wc-landing { max-width: 1080px; margin-inline: auto; padding-inline: clamp(4px, 2vw, 12px); }
.wc-landing p { margin: 0; }

.wc-hero { padding: clamp(48px, 10vw, 110px) 0 clamp(32px, 6vw, 64px); }
.wc-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--wc-ice); font-size: .86rem; font-weight: 500; margin-bottom: 22px; }
.wc-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wc-green); box-shadow: 0 0 0 4px rgba(88,242,200,.16); }
.wc-hero h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem) !important; font-weight: 600; line-height: 1.08; max-width: 15ch; margin: 0; }
.wc-cold { background: linear-gradient(120deg, #cfe8ff, #6fe3ff 40%, #9a7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wc-lead { color: var(--wc-soft); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 56ch; margin-top: 22px !important; }
.wc-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.wc-cta .btn { padding: 11px 18px; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.wc-chip { background: var(--wc-panel); border: 1px solid var(--wc-line); border-radius: 13px; padding: 12px 16px; min-width: 150px; }
.wc-chip .k { font-family: var(--wc-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.wc-chip .v { color: var(--wc-muted); font-size: .82rem; }
.wc-chip.ice .k { color: var(--wc-ice); } .wc-chip.grn .k { color: var(--wc-green); } .wc-chip.vio .k { color: var(--wc-violet); }

.wc-sec { padding: clamp(40px, 7vw, 78px) 0; }
.wc-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.wc-sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem) !important; font-weight: 600; margin: 0; }
.wc-sec-head p { color: var(--wc-muted); max-width: 46ch; margin-top: 8px; }
.wc-kicker { color: var(--wc-green); font-size: .82rem; font-weight: 600; margin-bottom: 10px; font-family: var(--wc-display); }

.wc-trail { position: relative; margin-left: 8px; }
.wc-trail::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 30px; width: 2px; opacity: .55;
  background: linear-gradient(180deg, var(--wc-green), var(--wc-ice) 45%, var(--wc-violet) 80%, var(--wc-ember));
}
.wc-week {
  position: relative; z-index: 1; margin: 18px 0 6px 60px;
  font-family: var(--wc-display); font-weight: 700; font-size: .95rem; color: var(--wc-frost);
}
.wc-week:first-child { margin-top: 0; }
.wc-week span { color: var(--wc-muted); font-weight: 500; }
.wc-day { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 12px 0; }
.wc-node {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--wc-display); font-weight: 700; color: var(--wc-night);
  background: linear-gradient(180deg, #bfefff, #6fe3ff); box-shadow: 0 0 0 4px rgba(111,227,255,.12);
}
.wc-day-card { background: var(--wc-panel); border: 1px solid var(--wc-line); border-radius: 16px; padding: 18px 20px; transition: border-color .2s ease, transform .2s ease; }
.wc-day-card:hover { border-color: var(--wc-line-s); transform: translateX(3px); }
.wc-day-card h3 { font-size: 1.18rem !important; font-weight: 600; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; }
.wc-tag { font-family: var(--wc-body); font-weight: 500; font-size: .72rem; color: var(--wc-ice); border: 1px solid var(--wc-line-s); border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.wc-day-card p { color: var(--wc-muted); margin-top: 8px; font-size: .96rem; }
.wc-day.final .wc-node { background: linear-gradient(180deg, #ffd89a, #ffbe5c); color: #2a1800; box-shadow: 0 0 0 4px rgba(255,190,92,.16); }
.wc-day.final .wc-day-card { border-color: rgba(255,190,92,.4); }
.wc-day.final .wc-tag { color: var(--wc-ember); border-color: rgba(255,190,92,.45); }

.wc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wc-rule { background: var(--wc-panel); border: 1px solid var(--wc-line); border-radius: 16px; padding: 22px; }
.wc-rule h3 { font-size: 1.1rem !important; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.wc-rule h3 svg { width: 20px; height: 20px; color: var(--wc-ice); flex: none; }
.wc-rule p { color: var(--wc-muted); font-size: .95rem; }
.wc-flagfmt { margin-top: 14px; display: inline-block; background: #06101f; border: 1px solid var(--wc-line-s); border-radius: 10px; padding: 10px 14px; font-family: var(--wc-mono); color: var(--wc-green); font-size: .95rem; }
.wc-flagfmt b { color: var(--wc-frost); }

.wc-lore { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.wc-lore h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem) !important; font-weight: 600; margin: 0 0 16px; }
.wc-lore p { color: var(--wc-soft); margin-bottom: 1rem; }
.wc-lore p.muted { color: var(--wc-muted); }
.wc-glyph { display: grid; place-items: center; background: linear-gradient(180deg, rgba(154,123,255,.08), rgba(111,227,255,.05)); border: 1px solid var(--wc-line); border-radius: 20px; padding: 28px; }
.wc-glyph svg, .wc-glyph img { width: min(300px, 78%); height: auto; filter: drop-shadow(0 10px 40px rgba(111,227,255,.25)); }

.wc-join {
  text-align: center; border: 1px solid var(--wc-line); border-radius: 24px; padding: clamp(34px, 6vw, 64px);
  background: radial-gradient(120% 140% at 50% 0%, rgba(111,227,255,.12), transparent 60%), var(--wc-night-2);
}
.wc-join h2 { font-size: clamp(1.8rem, 4vw, 2.8rem) !important; font-weight: 600; max-width: 18ch; margin: 0 auto; }
.wc-join p { color: var(--wc-muted); margin: 14px auto 0 !important; max-width: 52ch; }
.wc-join .wc-cta { justify-content: center; }

/* ---------- Footer -------------------------------------------------------- */
.wc-foot { border-top: 1px solid var(--wc-line); margin-top: 48px; background: transparent; }
.wc-foot-in {
  max-width: 1080px; margin-inline: auto; padding: 22px clamp(16px, 4vw, 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--wc-muted); font-size: .84rem;
}
.wc-foot .wb { display: flex; align-items: center; gap: 9px; color: var(--wc-frost); font-family: var(--wc-display); font-weight: 700; }
.wc-foot .wb img { height: 20px; width: auto; }

/* ---------- Accessibility / responsive ----------------------------------- */
:focus-visible { outline: 2px solid var(--wc-ice) !important; outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .wc-aurora span { animation: none; }
  #wc-snow { display: none; }
  .wc-tile, .wc-day-card { transition: none; }
}
@media (max-width: 820px) {
  .wc-grid3, .wc-lore { grid-template-columns: 1fr; }
  .wc-glyph { order: -1; }
}
@media (max-width: 600px) {
  .wc-grid { grid-template-columns: 1fr 1fr; }
  .wc-progress { gap: 14px; padding: 14px; }
}
@media (max-width: 420px) {
  .wc-grid { grid-template-columns: 1fr; }
}
