/* FORGE SPRINT component system — ported 1:1 from source public/styles.css (tokens live in tokens.css) */
/* ==========================================================================
   1000 HAMMERS — THE FORGE design system
   Brutalist · DeepTech · Industrial. Deep black, glowing forge orange,
   sharp grids, slightly rounded corners, Courier mono headers, Helvetica body.
   Two UI modes (data-mode="techie" default, "simple" for non-techies).
   Class hooks match the markup emitted by public/app.js.
   ========================================================================== */

/* Fire-gradient text for key accents (.hot / headline emphasis). */
.hot, .cd-time, .brand span, .hero-title .em {
  background: var(--grad-hot-h); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Living fire background (design spec §2): soft billows + ascending embers. */
.fire-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.fire-bg span { position: absolute; bottom: -25%; width: 55%; height: 90%; filter: blur(52px); mix-blend-mode: screen; opacity: .4; border-radius: 50%; animation: billow 8s ease-in-out infinite; }
.fire-bg .b1 { left: -8%; background: radial-gradient(circle, #E01F05, transparent 62%); animation-duration: 7.5s; }
.fire-bg .b2 { right: -8%; background: radial-gradient(circle, #FF8A14, transparent 62%); animation-duration: 9s; }
.fire-bg .b3 { left: 30%; background: radial-gradient(circle, #FFD53A, transparent 60%); height: 70%; animation-duration: 6s; }
#fire { position: fixed; inset: 0; z-index: -1; pointer-events: none; filter: blur(2.4px); }
@keyframes billow { 0%,100% { transform: translateY(6%) scale(1); } 50% { transform: translateY(-6%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .fire-bg span { animation: none; } #fire { display: none; } }

*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius) !important; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 78% -6%, rgba(255,138,20,.10), transparent 60%),
    radial-gradient(700px 460px at 10% 108%, rgba(224,31,5,.10), transparent 55%),
    var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #000; }

/* ---- top bar --------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  letter-spacing: 2px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-main); text-decoration: none;
}
.brand:hover { text-decoration: none; opacity: .9; }
.brand span { color: var(--accent); }

.edition-badge {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0;
  color: var(--text-muted);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.edition-badge::before {
  content: ""; width: 7px; height: 7px; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); display: inline-block;
}

.nav { display: flex; gap: 0; flex-wrap: wrap; margin-left: auto; }
.nav button {
  background: transparent; color: var(--text-muted); border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 13px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
}
.nav button:hover { color: var(--text-main); background: var(--bg-card); }
.nav button.active { color: var(--accent); border-bottom-color: var(--accent); }

.userbox { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }

/* Hamburger — hidden on desktop, shown ≤720px (see mobile block). */
.menu-toggle {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); color: var(--text-main);
  border-radius: 8px; padding: 6px 12px; font-size: 20px; line-height: 1; cursor: pointer;
}
.menu-toggle:hover { background: var(--bg-card); }

/* mode toggle in the top bar */
.mode-toggle {
  display: inline-flex; border: 1px solid var(--border); overflow: hidden;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
}
.mode-toggle button {
  background: transparent; color: var(--text-muted); border: none;
  padding: 6px 11px; cursor: pointer; font: inherit;
}
.mode-toggle button.on { background: var(--accent); color: #000; font-weight: 700; }

/* ---- layout ---------------------------------------------------------- */
.app { max-width: 1040px; margin: 26px auto; padding: 0 18px; }
.footer {
  text-align: center; color: var(--text-muted); font-size: 11px; padding: 30px;
  font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
  border-top: 1px solid var(--border); margin-top: 30px;
}

/* ---- cards ----------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: var(--gap);
}
.card h2 {
  margin: 0 0 14px; font-size: 17px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.card h2::before { content: "// "; color: var(--accent); }
.card h3 {
  margin: 0 0 10px; font-size: 13px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
  color: var(--text-main);
}

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---- forms ----------------------------------------------------------- */
label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px;
  margin: 14px 0 5px;
}
input, select, textarea {
  width: 100%; padding: 11px 12px;
  background: var(--bg-card); color: var(--text-main);
  border: 1px solid var(--border); font-size: 14px; font-family: var(--font-sans);
  transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: #5a5a5a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 88px; resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }

/* ---- buttons --------------------------------------------------------- */
.btn {
  background: var(--grad-hot); background-size: 180% 100%; color: #1a0f02; border: 1px solid transparent;
  padding: 10px 18px; cursor: pointer;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 6px 22px -12px var(--hot-red);
  transition: filter .15s, background-position .3s;
}
.btn:hover { filter: brightness(1.08); background-position: 100% 0; }
.btn:active { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn.small { padding: 6px 11px; font-size: 11px; }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn.gh { background: #1a1a1a; border-color: var(--border); color: #fff; }
.btn.gh:hover { border-color: #fff; filter: none; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- tables ---------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
th { color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }
tr:hover td { background: #ffffff06; }

/* ---- tags / pills ---------------------------------------------------- */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 8px; border: 1px solid var(--border); color: var(--text-muted);
}
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.tag.err { color: var(--err); border-color: var(--err); }
.tag.accent { color: var(--accent); border-color: var(--accent); }

.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 12px; }
.hint { font-size: 12px; color: var(--text-muted); }
.center { text-align: center; }
.problems { color: var(--warn); font-size: 12.5px; margin: 8px 0; padding-left: 18px; }
.problems li { margin: 3px 0; }
.score { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }

/* code / terminal blocks */
.code, pre.code {
  background: var(--bg-inset); border: 1px solid var(--border);
  padding: 15px 16px; overflow-x: auto; font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.7; color: var(--ok);
}

/* ---- public landing -------------------------------------------------- */
.hero { text-align: center; padding: 30px 0 10px; }
.hero-eyebrow { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; color: var(--accent); }
.hero-title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 50px); text-transform: uppercase; letter-spacing: 1px; line-height: 1.05; margin: 16px auto 0; max-width: 20ch; font-weight: 700; }
.hero-lead { color: var(--text-muted); font-size: 17px; max-width: 62ch; margin: 16px auto 0; }
:root[data-mode="simple"] .hero-title { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.lsec { margin-top: 54px; }
.lsec > h2 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin: 0 0 18px; }
.lsec > h2::before { content: "// "; color: var(--accent); }
:root[data-mode="simple"] .lsec > h2 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
:root[data-mode="simple"] .lsec > h2::before { content: ""; }
.g4-cards { grid-template-columns: repeat(4, 1fr); }
.g3-cards { grid-template-columns: repeat(3, 1fr); }
.lcard { background: var(--bg-card); border: 1px solid var(--border); padding: 18px; }
.lcard h3 { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
:root[data-mode="simple"] .lcard h3 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 16px; }
.lcard p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.lcard .ln { font-family: var(--font-mono); color: var(--accent); font-size: 20px; font-weight: 700; }
.partner-card .pc-type { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.partner-card .pc-link { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.cta-band { text-align: center; border: 1px solid var(--accent-line); background: var(--accent-dim); padding: 34px 20px; }
@media (max-width: 820px) { .g4-cards { grid-template-columns: 1fr 1fr; } .g3-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g4-cards, .g3-cards { grid-template-columns: 1fr; } }

/* ---- countdown ------------------------------------------------------- */
.countdown-card { text-align: center; }
.cd-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.cd-time { font-family: var(--font-mono); font-size: clamp(30px, 7vw, 52px); font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---- toast ----------------------------------------------------------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 13px 18px; opacity: 0; transition: opacity .2s;
  pointer-events: none; max-width: 90%; font-size: 13.5px;
  font-family: var(--font-mono);
}
.toast.show { opacity: 1; }
.toast.err { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }

/* ---- auth "access terminal" ----------------------------------------- */
.authwrap { max-width: 440px; margin: 6vh auto; }
.authwrap.card { position: relative; }
/* (removed the "// SECURE ACCESS" terminal chrome — plainer, less techie) */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; }

/* ---- partner (Clawy) surface ---------------------------------------- */
.partner {
  border: 1px solid var(--accent-line); background: var(--accent-dim);
  padding: 16px 18px; margin-bottom: var(--gap);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.partner .p-body { flex: 1; min-width: 220px; }
.partner .p-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.partner .p-title { font-size: 15px; font-weight: 700; margin: 3px 0; }
.partner .p-sub { font-size: 13px; color: var(--text-muted); }

/* ---- participant feedback panel ------------------------------------- */
.feedback { border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 16px 18px; margin: 14px 0; background: var(--bg-inset); }
.feedback.win { border-left-color: var(--ok); }
.feedback .fb-head { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 8px; }
.feedback .fb-scores { display: flex; gap: 22px; margin: 10px 0; flex-wrap: wrap; }
.feedback .fb-scores .n { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--accent); }
.feedback .fb-scores .l { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.feedback blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--border); color: var(--text-main); font-size: 13.5px; }

/* ---- wizard (first-run mode chooser) -------------------------------- */
.wizard-overlay {
  position: fixed; inset: 0; z-index: 100; background: #000000e8;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wizard {
  max-width: 720px; width: 100%; background: var(--bg-card);
  border: 1px solid var(--border); padding: 30px;
}
.wizard .w-eyebrow { font-family: var(--font-mono); color: var(--accent); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.wizard h2 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-size: 22px; margin: 10px 0 6px; }
.wizard p.lead { color: var(--text-muted); margin: 0 0 22px; }
.wiz-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.wiz-choice {
  border: 1px solid var(--border); background: var(--bg-dark); padding: 22px;
  cursor: pointer; text-align: left; color: var(--text-main); transition: border-color .15s, background .15s;
}
.wiz-choice:hover { border-color: var(--accent); background: #161616; }
.wiz-choice .ic { font-size: 30px; }
.wiz-choice .t { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.wiz-choice .d { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.wiz-choice .go { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.wizard .w-foot { margin-top: 18px; font-size: 12px; color: var(--text-muted); }

/* ---- mode visibility utilities -------------------------------------- */
.simple-only { display: none; }
:root[data-mode="simple"] .simple-only { display: block; }
:root[data-mode="simple"] .techie-only { display: none; }

/* ---- SIMPLE (non-techie) mode : friendlier, larger, plain language --- */
:root[data-mode="simple"] {
  --fs-base: 16px;
}
:root[data-mode="simple"] body { line-height: 1.65; }
:root[data-mode="simple"] .card { padding: 24px; }
:root[data-mode="simple"] .card h2 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 21px; }
:root[data-mode="simple"] .card h2::before { content: ""; }
:root[data-mode="simple"] .card h3 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--text-main); }
:root[data-mode="simple"] label { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text-main); }
:root[data-mode="simple"] .btn { text-transform: none; letter-spacing: .3px; font-family: var(--font-sans); padding: 13px 22px; font-size: 15px; }
:root[data-mode="simple"] .nav button { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
:root[data-mode="simple"] input, :root[data-mode="simple"] textarea, :root[data-mode="simple"] select { font-size: 15.5px; padding: 13px 14px; }
:root[data-mode="simple"] .hint { font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Soft corners: the system moves from hard brutalist edges to slightly
   rounded ones. Radius stays subtle so the forge look survives. */
.card, .lcard, .ev, .partner, .explain, .feedback, .airef, .evalbar,
.badge, .authwrap, .faq-item, .countdown-card, .wiz-card, .qa, .reflect,
table, .partner-card { border-radius: 10px; }
.btn, input, select, textarea, .tag, .seg, .rec, .edition-badge, .toast,
.role-btn { border-radius: 7px; }
.seg { overflow: hidden; }
.meter, .meter > i, .xpbar, .xpbar > i { border-radius: 4px; }

/* Polish pass: calmer surfaces, clearer focus, more air. Readability over
   rawness; the forge glow stays, the harshness goes. */
.card { padding: 26px 28px; border-color: rgba(246, 238, 230, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 14px 34px rgba(0, 0, 0, .32); }
.card h2 { letter-spacing: 1.6px; margin-bottom: 16px; }
.card h3 { margin-top: 4px; }
.hint { font-size: 12.5px; line-height: 1.7; max-width: 78ch; }
p { line-height: 1.7; }
input, select, textarea { padding: 12px 14px; background: var(--bg-inset); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(255, 138, 20, .16); }
label { margin-top: 14px; }
.btn { transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.nav button { border-radius: 7px 7px 0 0; }
th { padding-bottom: 10px; }
td { padding: 11px 10px 11px 0; }
tr:hover td { background: rgba(255, 255, 255, .015); }
.lsec { margin-top: 64px; }
.lsec > h2 { border-bottom-color: rgba(246, 238, 230, .12); }

/* Mobile pass: brand + hamburger only; the nav and user actions collapse into a
   clean stacked panel that the hamburger reveals (.topbar.open). */
@media (max-width: 720px) {
  .topbar { padding: 12px 14px; gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .edition-badge { display: none; }
  /* Collapsed by default; the hamburger reveals them stacked, full-width. */
  .nav, .userbox { display: none; width: 100%; order: 5; margin-left: 0; }
  .topbar.open .nav {
    display: flex; flex-direction: column; gap: 4px; margin-top: 6px;
    flex-wrap: nowrap; overflow: visible;
  }
  .topbar.open .nav a {
    width: 100%; border: 1px solid var(--border); border-bottom: 1px solid var(--border);
    border-radius: 8px; padding: 12px 14px; white-space: normal;
  }
  .topbar.open .nav a.active { border-color: var(--accent); color: var(--accent); }
  .topbar.open .userbox {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px;
  }
  .topbar.open .userbox > *, .topbar.open .userbox .btn,
  .topbar.open .userbox form, .topbar.open .userbox form > button { width: 100%; }
  .topbar.open .userbox .btn, .topbar.open .userbox form > button { text-align: center; justify-content: center; }
  .topbar.open .userbox .muted { text-align: center; }
  .seg button { padding: 6px 8px; }
  .card { padding: 18px 16px; }
  .app { padding: 16px 12px 90px; }
  /* Legacy raw tables scroll by turning into blocks. NOT .data-table — it keeps a
     real table layout (min-width) and is scrolled by its own .table-wrap, so
     display:block here would collapse its columns and kill the horizontal scroll. */
  table:not(.data-table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn { padding: 10px 14px; }
  .lsec { margin-top: 40px; }
}

/* No masonry holes: grid cards always fill their cell, rows pack densely.
   Prevents the "gap in the middle" effect when neighbor cards differ in height. */
.grid { grid-auto-flow: dense; }
.grid > *, .g3-cards > *, .g4-cards > * { height: 100%; }

/* Hotwire port: nav items are real <a> links — mirror the source `.nav button` look */
.nav a {
  background: transparent; color: var(--text-muted); border: none;
  border-bottom: 2px solid transparent; padding: 8px 13px; cursor: pointer;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
  font-size: 12px; text-decoration: none; display: inline-block;
  border-radius: 7px 7px 0 0;
}
.nav a:hover { color: var(--text-main); background: var(--bg-card); }
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
:root[data-mode="simple"] .nav a { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ---- OAuth login (step 3) — tokens.css only, no ad-hoc colors -------- */
.oauth-card { max-width: 400px; text-align: center; }
.oauth-wordmark { justify-content: center; font-size: 20px; margin-bottom: 6px; }
.oauth-sub { font-size: 13px; margin-bottom: 22px; }
.oauth-actions { display: flex; flex-direction: column; gap: 12px; }
.oauth-form { margin: 0; width: 100%; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px;
  text-transform: none; letter-spacing: .2px;
  font-family: var(--font-sans); font-size: 15px;
}
.oauth-glyph { display: inline-flex; width: 18px; height: 18px; flex: none; }
.oauth-glyph svg { width: 18px; height: 18px; display: block; }
.oauth-error {
  border: 1px solid var(--err); color: var(--err);
  background: var(--accent-dim); border-radius: var(--radius);
  padding: 10px 12px; font-size: 13px; margin-bottom: 16px;
}
.oauth-legal { font-size: 11.5px; margin-top: 18px; line-height: 1.5; }
@media (max-width: 480px) {
  .oauth-card { margin: 4vh 12px; }
  .oauth-btn { min-height: 50px; }
}

/* ---- Focused auth layout (step 3) ----------------------------------- */
.auth-main {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
}
.auth-main .authwrap { margin: 0; width: 100%; }

/* ==========================================================================
   Step 7 — Rich profiles + opt-in member directory (tokens-only, no literals)
   ========================================================================== */

/* ---- shared avatar primitive (card + editor preview) ---------------- */
.mc-avatar {
  width: 56px; height: 56px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  object-fit: cover;
  background: var(--bg-inset); border: 1px solid var(--accent-line);
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--accent); line-height: 1; overflow: hidden;
}
.mc-avatar-emoji { font-size: 30px; }
.mc-avatar-initials { letter-spacing: 1px; }

/* ---- profile editor -------------------------------------------------- */
.profile-head { margin-bottom: var(--gap); }
.profile-head h2 { margin: 0; }
.profile-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.profile-form .card { margin-bottom: 0; }
.avatar-preview { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-2col label { margin-top: 6px; }
.section-rule {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
}
.interest-preview { margin-top: 8px; }
.directory-optin {
  margin-top: 18px; padding: 12px; background: var(--accent-dim);
  border: 1px solid var(--accent-line);
}
.checkbox-row {
  display: flex; align-items: center; gap: 10px; margin: 0;
  text-transform: none; letter-spacing: 0; font-family: var(--font-sans);
  font-size: 13.5px; color: var(--text-main); cursor: pointer;
}
.checkbox-row input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 0; }
.directory-optin .hint { margin: 8px 0 0; }
.profile-actions { margin-top: var(--gap); }
.form-errors { border-color: var(--accent-line); }
input.has-error, .profile-form input.has-error {
  border-color: var(--hot-orange);
  box-shadow: 0 0 0 1px var(--hot-orange);
}
.field-error {
  color: var(--hot-orange); font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .3px; margin: 5px 0 2px;
}

/* ---- community directory -------------------------------------------- */
.directory-head { margin-bottom: var(--gap); align-items: flex-start; }
.directory-head h2 { margin: 0 0 2px; }
.directory-head .hint { margin: 0; }

.city-filter {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  margin-bottom: var(--gap); scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.city-chip {
  flex: none; display: inline-flex; align-items: center; min-height: 36px;
  padding: 6px 14px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--bg-card);
}
.city-chip:hover { color: var(--text-main); border-color: var(--accent-line); text-decoration: none; }
.city-chip.is-active { color: #1a0f02; background: var(--accent); border-color: var(--accent); font-weight: 700; }

.directory-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.member-card { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
.mc-head { display: flex; align-items: center; gap: 12px; }
.mc-id { min-width: 0; }
.mc-name { margin: 0; font-family: var(--font-display); font-size: 16px; letter-spacing: .3px; text-transform: none; }
.mc-city { margin: 3px 0 0; font-size: 11.5px; }
.mc-bio { margin: 0; font-size: 13px; line-height: 1.5; }
.mc-interests { gap: 6px; }
.mc-social { gap: 8px; margin-top: auto; padding-top: 4px; }
.mc-link {
  display: inline-flex; align-items: center; min-height: 30px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent); border: 1px solid var(--accent-line);
}
.mc-link:hover { background: var(--accent-dim); text-decoration: none; }
.mc-link-static { color: var(--text-muted); border-color: var(--border); }

/* ---- branded empty state -------------------------------------------- */
.empty-state { padding: 48px 24px; }
.empty-glyph { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-display); font-size: 18px; text-transform: none; letter-spacing: .3px; margin: 0 0 6px; color: var(--text-main); }
.empty-state .muted { margin: 0 0 18px; }
.center-row { justify-content: center; }

/* ---- mobile: single column, no overflow ----------------------------- */
@media (max-width: 640px) {
  .profile-grid, .directory-grid { grid-template-columns: 1fr; }
  .field-2col { grid-template-columns: 1fr; }
  .mc-avatar { width: 48px; height: 48px; }
  /* Step 12: the ranking column-header strip is decorative (aria-hidden) — hide
     it on phones where the row cards stack and speak for themselves. */
  .rank-head { display: none !important; }
}

/* ==========================================================================
   Step 10 — Submission editor + reveal/deadline gates (tokens-only)
   ========================================================================== */

/* two-pane on desktop: revealed brief (left) + participant form (right) */
.sub-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: var(--gap); align-items: start; max-width: 1080px; margin: 22px auto;
}
.sub-brief { position: sticky; top: 84px; margin-bottom: 0; }
.sub-brief-body { color: var(--text-main); font-size: 14px; }
.sub-brief-body p { margin: 0 0 10px; }
.sub-brief-sub { margin-top: 16px; }
.sub-challenges { margin: 8px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 13px; }
.sub-challenges li { margin: 4px 0; }

.sub-form-pane { margin-bottom: 0; }
.sub-form-head { margin-bottom: 6px; }
.sub-form-head h2 { margin: 0; }

/* live countdown block reuses the .cd-* type; a compact inline variant here */
.sub-countdown { text-align: center; border: 1px solid var(--accent-line); background: var(--accent-dim); padding: 12px 14px; margin: 4px 0 8px; }
.sub-countdown .cd-time { font-size: clamp(22px, 4vw, 32px); }
.sub-countdown-inline { text-align: left; }

/* post-deadline read-only banner — tokens danger tone */
.sub-closed-banner {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--err); border-left: 3px solid var(--err);
  background: rgba(255, 59, 13, .10); color: var(--text-main);
  padding: 13px 16px; margin: 6px 0 10px;
}
.sub-closed-banner strong {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .8px;
  font-size: 13px; color: var(--err);
}
.sub-closed-banner span { font-size: 13px; color: var(--text-muted); }

.sub-actions { display: flex; gap: 10px; margin-top: 16px; }
.sub-actions .btn { min-height: 44px; flex: 1; }
.sub-finalize-hint { margin-top: 8px; }

/* image thumbnails — wrap, never overflow */
.img-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.img-thumb { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--border); }
.img-empty { margin-top: 6px; }

/* pre-reveal sealed gate */
.sub-sealed { max-width: 620px; margin: 40px auto; text-align: center; }
.sub-sealed-emoji { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.sub-sealed-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.sub-sealed-title { font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px); text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 10px; }
.sub-sealed-lead { color: var(--text-muted); font-size: 14.5px; max-width: 48ch; margin: 0 auto 18px; }
.sub-sealed .sub-countdown { text-align: center; }
.sub-sealed-when { margin-top: 12px; }

/* mobile: single column, sticky action bar, ≥44px targets, no horizontal scroll */
@media (max-width: 720px) {
  .sub-layout { grid-template-columns: 1fr; margin: 12px auto; max-width: 100%; }
  .sub-brief { position: static; }
  .sub-form-pane { padding-bottom: 84px; }
  .sub-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    margin: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-dark); border-top: 1px solid var(--border);
  }
  .img-thumb { width: 72px; height: 72px; }
}

/* ==========================================================================
   Step 11 — Free-form jury scoring queue (tokens-only)
   ========================================================================== */

.jury-wrap { max-width: 900px; margin: 22px auto; }
.jury-head { margin-bottom: var(--gap); }
.jury-head .hint { margin-top: 6px; }

.score-cards { display: flex; flex-direction: column; gap: var(--gap); }

.score-card { margin-bottom: 0; }
.score-card .spread { margin-bottom: 10px; }
.score-card-meta { color: var(--text-muted); font-size: 12px; }
.score-card-concept { color: var(--text-main); font-size: 13.5px; margin: 2px 0 14px; max-width: 78ch; }

/* per-key numeric inputs — auto-fit, tap-sized, never clipped */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.score-dim { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.score-dim label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.score-dim input { min-height: 44px; width: 100%; }
.score-dim.invalid input { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 59, 13, .16); }
.score-dim-warn { display: none; color: var(--err); font-size: 11px; }
.score-dim.invalid .score-dim-warn { display: block; }

.score-comment { margin-top: 14px; }
.score-comment label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 4px; }

/* live-summed total badge — accent pill */
.score-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.score-total { display: inline-flex; align-items: baseline; gap: 8px; border: 1px solid var(--accent-line); background: var(--accent-dim); padding: 8px 14px; border-radius: var(--radius); }
.score-total-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); }
.score-total-value { font-family: var(--font-display); font-size: 24px; color: var(--accent); line-height: 1; }
.score-foot .btn { min-height: 44px; }
.score-saved { color: var(--ok); font-size: 12px; display: none; }
.score-card[data-score-saved="true"] .score-saved { display: inline; }

/* empty state — on-brand, not a blank grid */
.jury-empty { text-align: center; padding: 52px 24px; }
.jury-empty-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.jury-empty-title { font-family: var(--font-display); font-size: clamp(20px, 4vw, 28px); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px; }
.jury-empty-lead { color: var(--text-muted); font-size: 14px; max-width: 44ch; margin: 0 auto; }

/* styled forbidden panel — never a raw stack trace */
.forbidden-panel { max-width: 520px; margin: 60px auto; text-align: center; border-color: var(--err); }
.forbidden-emoji { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.forbidden-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--err); margin: 0; }
.forbidden-title { font-family: var(--font-display); font-size: clamp(20px, 4vw, 28px); text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 10px; }
.forbidden-lead { color: var(--text-muted); font-size: 14px; max-width: 42ch; margin: 0 auto; }

@media (max-width: 720px) {
  .jury-wrap { margin: 12px auto; max-width: 100%; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .score-foot { gap: 10px; }
  .score-foot .btn { flex: 1; }
}

/* ============================================================================
   Step 13 — public landing (hero CTA, live events grid, partners strip).
   Token-only: every color/space/radius comes from tokens.css. No raw hex.
   ========================================================================= */

/* Hero CTA row — centered under the countdown. */
.hero-cta { justify-content: center; margin-top: 20px; }
.cta-lead { margin: 0 auto 18px; }

/* Countdown quiet/placeholder state (no future reveal/deadline). */
.cd-quiet { color: var(--text-muted); letter-spacing: 2px; }

/* Live events grid — one card per Event. Reuses the .grid engine; the
   .events-grid hook lets the card min-width breathe a little wider. */
.events-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.event-card { display: flex; flex-direction: column; gap: 8px; }
.event-card .ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-card .ev-emoji { font-size: 30px; line-height: 1; }
.event-card .ev-domain {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent);
}
.event-card .ev-prize { color: var(--text-main); font-size: 13.5px; margin: 2px 0 0; }

/* Empty-state placeholder card (zero events) — deliberate, on-brand, not blank. */
.next-edition { text-align: center; border-color: var(--accent-line); background: var(--accent-dim); }
.next-edition .ln { color: var(--accent); }

/* Partners logo strip — one aligned row, wraps on narrow viewports. */
.partners-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px; padding: 8px 0;
}
.partners-strip .partner-logo-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); transition: border-color .15s ease, transform .12s ease;
}
.partners-strip .partner-logo-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.partners-strip .partner-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }

@media (max-width: 520px) {
  .partners-strip { gap: 16px; }
  .partners-strip .partner-logo { height: 32px; }
}

/* ---- shared data table (TableComponent) + impersonation bar --------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 16px 10px 0; white-space: nowrap;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border);
  vertical-align: middle; font-size: 14px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table th.t-right, .data-table td.t-actions { text-align: right; padding-right: 0; }
.data-table .row-actions {
  display: inline-flex; gap: 8px; align-items: center;
  justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap;
}
.data-table select { min-width: 130px; }
.data-table form { margin: 0; }

/* Small fixed impersonation chip (bottom-right) — unobtrusive, never covers content. */
.imp-chip {
  position: fixed; bottom: 14px; right: 14px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  background: rgba(18, 12, 8, .94); border: 1px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font-size: 12.5px; color: var(--text-main);
}
.imp-chip-label { white-space: nowrap; }
.imp-chip .imp-stop { margin: 0; }
.imp-chip-exit {
  background: var(--accent); color: #1a0f02; border: none; border-radius: 999px;
  padding: 4px 11px; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.imp-chip-exit:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .imp-chip { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; } }

/* ---- dashboard status card: calm key/value rows, clean stack on mobile ----- */
.dash-status .ds-row {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.dash-status h2 + .ds-row { border-top: none; padding-top: 6px; }
.dash-status .ds-label { flex: 0 0 148px; color: var(--text-muted); font-size: 13.5px; }
.dash-status .ds-tags,
.dash-status .ds-control { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 560px) {
  .dash-status .ds-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dash-status .ds-label { flex: none; }
}

/* ---- per-competition start/deadline timeline + mini countdowns ------------ */
.ev-timeline {
  margin: 12px 0; padding: 10px 0; display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ev-time { display: flex; gap: 8px; font-size: 13px; align-items: baseline; flex-wrap: wrap; }
.ev-time-k { color: var(--text-muted); min-width: 82px; }
.ev-time-v { color: var(--text-main); }
.ev-cd { font-family: var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-cd.done { color: var(--text-muted); }

/* ==========================================================================
   Real-site header parity: emblem + BY THE FORGE wordmark, DE/EN switch,
   and the big glowing hero emblem (mirrors 1000-hammers.com).
   ========================================================================== */

/* Brand: emblem + stacked "1000 HAMMERS" / "BY THE FORGE". The logo asset is a
   transparent PNG (background keyed out), so the emblem sits directly on the bar
   with no box or tile ring. */
.brand-mark {
  flex: none; width: 36px; height: 36px; object-fit: contain;
  border-radius: 0 !important; box-shadow: none;
}
.brand-text {
  display: inline-flex; flex-direction: column; gap: 3px; line-height: 1;
  background: none; -webkit-text-fill-color: initial; color: var(--text-main);
}
.brand-name {
  font-family: var(--font-mono); font-weight: 700; font-size: 16px; letter-spacing: 2px;
  background: none; -webkit-text-fill-color: initial; color: var(--text-main);
}
.brand-name > span { /* HAMMERS keeps the forge-fire gradient */
  background: var(--grad-hot-h); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-by {
  font-family: var(--font-mono); font-weight: 700; font-size: 8.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-muted);
  background: none; -webkit-text-fill-color: initial;
}

/* DE/EN language switch — a compact pill */
.lang-switch {
  display: inline-flex; align-items: stretch; flex: none;
  border: 1px solid var(--border); border-radius: 999px !important; overflow: hidden;
  font-family: var(--font-mono);
}
.lang-switch .lang {
  padding: 4px 11px; font-size: 11px; font-weight: 700; letter-spacing: 1px; line-height: 1.7;
  color: var(--text-muted); text-decoration: none; border-radius: 0 !important;
}
.lang-switch .lang:hover { color: var(--text-main); background: var(--bg-card); text-decoration: none; }
.lang-switch .lang.on { background: var(--accent); color: #000; }
/* The bar copy is mobile-only; the userbox copy is desktop-only. */
.lang-switch--bar { display: none; }
@media (max-width: 720px) {
  .lang-switch--bar { display: inline-flex; }
  .userbox .lang-switch { display: none; }
}

/* Hero emblem — big centered logo. Transparent PNG, so it sits directly on the
   hero with no dark box; the drop-shadow now glows around the emblem's shape. */
.hero--emblem { padding-top: 16px; }
.hero-emblem {
  display: block; height: auto; width: clamp(132px, 32vw, 216px);
  margin: 2px auto 4px;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 30px rgba(255,90,10,.4));
}
/* Pulse like the source site: a quick heartbeat scale (emblemPulse 1s, 1→1.045)
   plus a slower breathing glow. */
@media (prefers-reduced-motion: no-preference) {
  .hero-emblem {
    animation: emblem-pulse 1s ease-in-out infinite, emblem-glow 4.8s ease-in-out infinite;
    will-change: transform;
  }
  @keyframes emblem-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.045); }
  }
  @keyframes emblem-glow {
    0%, 100% { filter: drop-shadow(0 0 24px rgba(255,90,10,.32)); }
    50%      { filter: drop-shadow(0 0 40px rgba(255,138,20,.6)); }
  }
}

/* Scroll-choreography — below-fold landing sections fade + rise into view.
   Hidden state is gated on `.reveal-on`, which reveal_controller adds only after
   it connects, so no-JS keeps everything visible. */
.reveal-on .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on .reveal { opacity: 1; transform: none; transition: none; } }

/* Event cards ignite on hover: lift + ember glow. Pointer devices only (no sticky
   hover on touch). */
@media (hover: hover) {
  .event-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,138,20,.55);
    box-shadow: 0 14px 34px -16px rgba(255,90,10,.65), inset 0 0 0 1px rgba(255,138,20,.20);
  }
}

/* Hero headline fire-sheen: a molten light band sweeps slowly across the H1.
   The text is mostly white with a gold→orange glow passing through it. Clipped
   to the glyphs; falls back to solid white where background-clip:text is
   unsupported. Static (solid white) under prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title {
    background-image: linear-gradient(100deg,
      var(--text-main) 0%, var(--text-main) 42%,
      #ffd53a 47%, #ff8a14 50%, #ffd53a 53%,
      var(--text-main) 58%, var(--text-main) 100%);
    background-size: 240% 100%;
    background-repeat: repeat; /* ends are solid white → seamless tiling, and every
                                  glyph is always covered (no transparent letters) */
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: hero-sheen 7s linear infinite;
  }
  @keyframes hero-sheen {
    0%   { background-position: 140% 0; }
    100% { background-position: -40% 0; }
  }
}

/* ---- Site footer (legal + ecosystem links) --------------------------- */
.site-footer { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }
.site-footer .foot-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 10px; margin-bottom: 10px;
}
.site-footer .foot-link { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.site-footer .foot-link:hover { color: var(--accent); text-decoration: none; }
.site-footer .foot-sep { color: var(--border); }
.site-footer .foot-copy { color: var(--text-muted); font-size: 11px; }

/* ---- Legal pages (Impressum & Datenschutz, Teilnahmebedingungen) ------ */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--font-sans); font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin: 6px 0 22px; }
.legal section { margin-bottom: 30px; }
.legal h2 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 20px; margin: 26px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.legal h3 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 14px; margin: 18px 0 4px; color: var(--text-main); }
.legal p { color: var(--text-muted); margin: 0 0 10px; line-height: 1.6; }
.legal a { color: var(--accent); }
.legal .legal-note { font-size: 12px; font-style: italic; }

/* ---- "Die Initiative hinter THE FORGE" people grid -------------------- */
.init-intro { color: var(--text-muted); max-width: 64ch; margin: -6px 0 18px; }
.netgrid {
  display: grid; gap: 22px 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.netcard { display: block; text-align: center; color: inherit; text-decoration: none; }
.netcard:hover { text-decoration: none; }
.netimg {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border: 1px solid var(--border); margin-bottom: 10px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.netcard:hover .netimg {
  transform: translateY(-3px); border-color: rgba(255,138,20,.55);
  box-shadow: 0 12px 28px -14px rgba(255,90,10,.6);
}
.net-name { font-weight: 700; font-size: 14.5px; color: var(--text-main); }
.net-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
@media (max-width: 720px) { .netgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Event cards (.ecard) — ported from the source site ---------------- */
.ecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ecard {
  border: 1px solid var(--border); border-radius: 12px !important; overflow: hidden;
  background: var(--bg-card); display: flex; flex-direction: column;
}
.ecard-img {
  aspect-ratio: 820 / 300; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border); border-radius: 0 !important;
}
.ecard-img--emoji { display: flex; align-items: center; justify-content: center; font-size: 64px; }
.ecard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ecard-tags { gap: 6px; margin-bottom: 2px; }
.ecard-title { font-size: 18px; margin: 6px 0 0; font-family: var(--font-sans); }
.ecard-meta { font-size: 13.5px; color: var(--text-muted); margin-top: 7px; }
.ecard .ev-timeline { margin: 10px 0 0; }
.ecard-cta { margin-top: auto; padding-top: 14px; gap: 10px; align-items: center; }
.ecard-prize { font-size: 12.5px; }
.chal { margin-top: 11px; border-top: 1px solid var(--border); padding-top: 10px; }
.chal-h { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); margin-bottom: 6px; }
.chal-i { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.35; }
.chal-i b { color: var(--text-main); font-weight: 600; }
.chal-dot { flex: none; width: 6px; height: 6px; border-radius: 50% !important; background: var(--accent); margin-top: 6px; }
.chal-p { color: var(--text-muted); }

/* Hero countdown: compact centered box like the source (its card carries
   max-width:560px;margin:22px auto inline) — not a full-container bar. */
.hero .countdown-card { max-width: 560px; margin: 22px auto 0; padding: 18px 20px; }
.hero .countdown-card .cd-time { font-size: clamp(24px, 5vw, 36px); }
