/* Cynderwake sign-up site: dark painted fantasy with an ember accent.
   Every image has a CSS fallback, so the page looks right before the art lands. */
/* The launcher's fonts, self-hosted (CSP font-src 'self'); built by build_assets.py. OFL: /fonts/OFL-*.txt */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
:root {
  --bg: #15110e;
  --bg-2: #1d1713;
  --panel: rgba(36, 28, 22, 0.86);
  --panel-solid: #241c16;
  --line: rgba(232, 137, 58, 0.22);
  --text: #efe6da;
  --muted: #b3a493;
  --ember: #e8893a;
  --ember-hi: #ffb067;
  --gold: #d9b26f;
  --danger: #d9534f;
  --ok: #6fbf73;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --serif: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--sans);
  background-color: var(--bg);
  background-image: url("/img/texture.png"), radial-gradient(ellipse at 50% 0%, #2a211b 0%, var(--bg) 70%);
  background-size: 512px 512px, 100% 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-hi); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: 0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-align: center; color: var(--gold); }
h3 { font-size: 1.3rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: #000; padding: 8px 12px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.6em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: 600 0.95rem var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #f39a4c, #c9661f); border-color: #f6ad6a; color: #1b0f06;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 8px 24px rgba(232, 137, 58, 0.35);
}
.btn.primary:hover { background: linear-gradient(180deg, #ffb067, #d97328); color: #120a04; }
.btn.ghost { background: rgba(0,0,0,.35); }
.btn.danger { border-color: rgba(217, 83, 79, .6); color: #ffb3b0; }
.btn.danger:hover { background: rgba(217, 83, 79, .2); }
.btn.large { padding: 0.85em 1.8em; font-size: 1.05rem; }
.btn.small { padding: 0.35em 0.9em; font-size: 0.85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px); background: linear-gradient(180deg, rgba(21,17,14,.92), rgba(21,17,14,0));
}
.topbar nav { display: flex; gap: clamp(10px, 2.5vw, 26px); align-items: center; }
.topbar nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a:not(.btn):hover { color: var(--ember-hi); }
@media (max-width: 560px) { .topbar nav a:not(.btn) { display: none; } .topbar-logo img { width: 120px; height: auto; } }

/* hero */
.hero {
  position: relative; min-height: min(92vh, 900px); display: flex; align-items: center;
  padding: 110px clamp(16px, 6vw, 96px) 80px; overflow: hidden;
  background: radial-gradient(ellipse at 75% 35%, rgba(232,137,58,.35), transparent 55%),
              linear-gradient(160deg, #2a211b 0%, #15110e 70%);
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 65% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,17,14,.85) 0%, rgba(21,17,14,.45) 45%, rgba(21,17,14,0) 75%),
              linear-gradient(180deg, rgba(21,17,14,0) 70%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
/* drifting embers (site.js startEmbers): over the art and its shading, under the text */
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-logo { width: min(520px, 90%); height: auto; filter: drop-shadow(0 10px 25px rgba(0,0,0,.6)); margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.7); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #e8dccd; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
@media (max-width: 720px) {
  /* hero_mobile.jpg keeps its middle third calm: centre the logo, headline and button there */
  .hero { min-height: 100svh; justify-content: center; text-align: center; padding: 90px 16px 60px; }
  .hero-art img { object-position: 50% 50%; }
  .hero::after { background: radial-gradient(ellipse at 50% 50%, rgba(21,17,14,.55) 0%, rgba(21,17,14,.15) 60%, rgba(21,17,14,0) 80%),
                             linear-gradient(180deg, rgba(21,17,14,0) 75%, var(--bg) 100%); }
  .hero-content { margin: 0 auto; }
  .hero-logo { margin: 0 auto 14px; width: min(340px, 85%); }
  .hero-cta { justify-content: center; }
}

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
.section-lead { text-align: center; color: var(--muted); margin: -6px auto 32px; max-width: 640px; }
.divider {
  height: 40px; max-width: 1000px; margin: 0 auto;
  background: url("/img/divider.png") center / contain no-repeat,
              linear-gradient(90deg, transparent, var(--line) 30%, var(--ember) 50%, var(--line) 70%, transparent) center / 100% 1px no-repeat;
}
.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.races { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 860px) { .races { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 18px 20px 22px; }
.card-body p { margin: 0; color: var(--muted); }

/* image slots: a gradient shows when the image is missing (site.js hides broken images) */
.feature picture, .news-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.feature picture img, .race picture img, .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* scroll zoom (site.js startScrollZoom sets --zoom on each picture) times the hover zoom */
.feature picture img, .race picture img, .news-thumb img, .race-portrait img, .feature-banner img, .hero-art img,
.news-cover img {
  transform: scale(calc(var(--zoom, 1) * var(--hover, 1))); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.race picture, .feature-banner picture { overflow: hidden; }
.hero-art img { transform-origin: 65% 40%; transition-duration: .3s; }
.feature:hover img, .race:hover img, .news-card:hover img { --hover: 1.04; }
.feature picture, .race picture, .news-thumb { background: linear-gradient(150deg, #3a2a1f, #15110e); }
.fb-explore picture { background: radial-gradient(circle at 70% 30%, rgba(232,137,58,.45), transparent 50%), linear-gradient(160deg, #2b3a35, #15110e); }
.fb-craft picture { background: radial-gradient(circle at 50% 70%, rgba(255,140,40,.6), transparent 45%), linear-gradient(160deg, #2a1d15, #120d0a); }
.fb-fight picture { background: radial-gradient(circle at 40% 40%, rgba(200,70,40,.5), transparent 50%), linear-gradient(160deg, #2c1f24, #120d0a); }
.fb-sail picture { background: radial-gradient(circle at 75% 25%, rgba(255,190,110,.55), transparent 45%), linear-gradient(170deg, #1e3340, #15110e); }
.img-missing img { visibility: hidden; }

.race { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel-solid); }
.race picture { display: block; aspect-ratio: 4 / 5; }
.fb-human picture { background: radial-gradient(circle at 50% 35%, #8a6a52 0, transparent 40%), linear-gradient(180deg, #3b2b20, #15110e); }
.fb-orc picture { background: radial-gradient(circle at 50% 35%, #5d6b4c 0, transparent 40%), linear-gradient(180deg, #2a2b1d, #15110e); }
.fb-elf picture { background: radial-gradient(circle at 50% 35%, #c9c0b2 0, transparent 38%), linear-gradient(180deg, #2b2a33, #15110e); }
.fb-cydyy picture { background: radial-gradient(circle at 50% 35%, #b07a3f 0, transparent 40%), linear-gradient(180deg, #33241a, #15110e); }
.fb-hyroty picture { background: radial-gradient(circle at 50% 35%, #7f8c94 0, transparent 38%), radial-gradient(circle at 45% 33%, #8ff 0, transparent 4%), linear-gradient(180deg, #1f2629, #15110e); }
.fb-vasung picture { background: radial-gradient(circle at 50% 35%, #8f3d2a 0, transparent 40%), linear-gradient(180deg, #2d1a16, #15110e); }
a.race { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.race:hover, a.race:focus-visible { border-color: var(--ember); transform: translateY(-3px); color: inherit; }
a.race:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }
a.race .race-body p::after { content: " Read more \2192"; color: var(--ember-hi); font-weight: 600; white-space: nowrap; }

/* tester applications (apply.html) */
.apply-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start; }
.apply-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--gold); margin: 0 0 14px; }
.apply-intro p { font-size: 1.05rem; }
.apply-main h2 { text-align: left; font-size: 1.3rem; margin: 0 0 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; font-size: .92rem; color: var(--muted); }
.check-row input { width: auto; margin-top: 4px; flex: none; }
.apply-link { margin: -4px 0 16px; font-size: .92rem; }
@media (max-width: 860px) { .apply-main { grid-template-columns: 1fr; gap: 22px; } }

/* race pages (www/races/<id>.html, made by build_races.py) */
.race-page main { max-width: 1100px; margin: 0 auto; padding: 96px 16px 40px; }
.race-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.race-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.race-tabs a:hover { border-color: var(--ember); color: #fff; }
.race-tabs a[aria-current="page"] { background: var(--ember); border-color: var(--ember); color: #1a120c; }
.race-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: center; }
.race-portrait picture { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.race-portrait img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 6px; color: var(--ember-hi); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.race-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold); margin: 0 0 6px; }
.race-tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--text); margin: 0 0 14px; }
.race-blurb { color: var(--muted); margin: 0 0 22px; font-size: 1.05rem; }
.trait-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.trait-card h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--ember-hi); }
.trait-card ul { list-style: none; margin: 0; padding: 0; }
.trait-card li { padding: 3px 0 3px 22px; position: relative; }
.trait-card li::before { position: absolute; left: 0; font-weight: 700; }
.trait-card li.good::before { content: "+"; color: var(--ok); }
.trait-card li.bad::before { content: "\2212"; color: var(--danger); }
.lore { max-width: 720px; margin: 48px auto 0; font-size: 1.05rem; line-height: 1.75; }
.lore-section { margin-bottom: 34px; }
.lore-section h2 { text-align: left; font-size: 1.45rem; color: var(--gold); margin-bottom: 10px; }
.witness { margin: 10px 0 40px; padding: 22px 26px; border-left: 3px solid var(--ember); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.witness p { margin: 0 0 8px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.witness footer { color: var(--muted); font-size: .92rem; }
.race-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 720px; margin: 20px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.race-pager a { font-weight: 600; text-decoration: none; }
@media (max-width: 760px) {
  .race-hero { grid-template-columns: 1fr; gap: 22px; }
  .race-portrait { max-width: 360px; margin: 0 auto; width: 100%; }
  .race-intro { text-align: center; }
  .trait-card { text-align: left; }
}
/* the name and line sit in a band under the picture, never over the face */
.race-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--panel-solid); }
.race-body h3 { margin: 0 0 4px; color: var(--ember-hi); font-size: 1.3rem; }
.race-body p { margin: 0; font-size: .95rem; color: #ddd0c0; }
@media (max-width: 560px) { .race-body { padding: 10px 12px 12px; } .race-body h3 { font-size: 1.1rem; } .race-body p { font-size: .85rem; } }

/* news */
.news-card { display: flex; flex-direction: column; }
.news-thumb { aspect-ratio: 16 / 9; }
.news-card time { color: var(--ember); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 4px 0 8px; }
.news-text { color: #d9cdbf; font-size: .95rem; }
.news-text p { margin: 0 0 .7em; }
.news-text h3, .news-text h4, .news-text h5 { font-family: var(--sans); font-size: 1rem; color: var(--gold); margin: .8em 0 .3em; }
.news-text code { background: rgba(255,255,255,.08); padding: 0 4px; border-radius: 4px; }
.news-text.clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.news-more { margin-top: 8px; background: none; border: 0; color: var(--ember-hi); cursor: pointer; padding: 0; font: 600 .9rem var(--sans); }
#news-empty { grid-column: 1 / -1; text-align: center; }

/* sign-up */
.join-grid { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: 40px; align-items: start; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.join h2 { text-align: left; }
.steps { padding-left: 1.3em; }
.steps li { margin: 0 0 .6em; }
.steps li::marker { color: var(--ember); font-weight: 700; }
.form-card { padding: 26px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35); color: var(--text); font: 1rem var(--sans);
}
input:focus, textarea:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px rgba(232,137,58,.25); }
#invite_code { text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; }
.field.invalid input { border-color: var(--danger); }
.hint { display: block; min-height: 1.2em; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.field.invalid .hint { color: #ff9c98; }
.hint.good { color: var(--ok); }
.form-error { background: rgba(217,83,79,.15); border: 1px solid rgba(217,83,79,.5); color: #ffd0ce; padding: 10px 12px; border-radius: 10px; margin-bottom: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success h3 { color: var(--ember-hi); }
.success .btn { margin: 4px 0; }

/* footer */
.footer { text-align: center; padding: 48px 16px 64px; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); }
.footer img { margin: 0 auto 10px; opacity: .85; }

/* admin pages (rendered by cw_signup.py) */
body.admin { background-attachment: fixed; }
main.narrow-main { max-width: 460px; margin: 0 auto; padding: 40px 16px; }
main.wide { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.admin-logo img { width: 200px; height: auto; margin: 0 auto 20px; }
.admin .card { padding: 22px; margin-bottom: 22px; }
.admin label { display: block; margin-bottom: 14px; font-weight: 600; }
.admin label input, .admin label textarea { margin-top: 6px; font-weight: 400; }
.admin h1 { font-size: 1.6rem; color: var(--gold); }
.admin h2 { text-align: left; font-size: 1.3rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.admin-bar h1 { margin: 0 auto 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row label { margin-bottom: 0; }
.row .grow { flex: 1 1 220px; }
form.inline { display: inline; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td.actions { white-space: nowrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.08); }
.tag.unused { background: rgba(111,191,115,.18); color: #a7e3aa; }
.tag.used { background: rgba(232,137,58,.18); color: var(--ember-hi); }
/* the player's account page (/account) */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; align-items: start; }
.account-grid .card { margin-bottom: 0; }
.status { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.status.offline .dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.admin label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; flex: 1 1 320px; }
.admin label.check input { width: auto; margin-top: 4px; }
.owns { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.owns .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.owns.not .dot { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.redeem { margin: 0 0 18px; }
.redeem input { text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; }
.char-list { list-style: none; padding: 0; margin: 0; }
.char-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.char-list li:last-child { border-bottom: 0; }
.admin-bar .btn.small { text-decoration: none; }
.tag.expired, .tag.revoked { background: rgba(217,83,79,.16); color: #ffb3b0; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; border: 1px solid var(--line); background: rgba(111,191,115,.12); word-break: break-word; }
.flash.error, .error { background: rgba(217,83,79,.15); border: 1px solid rgba(217,83,79,.5); color: #ffd0ce; padding: 10px 12px; border-radius: 10px; }
.narrow { max-width: 420px; margin: 0 auto; }
.news-post h3, .news-post h4 { color: var(--gold); }
.note-cell { max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; }

/* EULA and privacy policy (eula.html, privacy.html) */
.legal { max-width: 820px; margin: 0 auto; padding: 96px 16px 40px; line-height: 1.7; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--gold); margin: 0 0 4px; }
.legal h2 { text-align: left; font-size: 1.3rem; color: var(--gold); margin: 34px 0 10px; }
.legal h3 { font-family: var(--sans); font-size: 1.02rem; color: var(--ember-hi); margin: 20px 0 6px; }
.legal li { margin-bottom: 6px; }
.legal-summary { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.legal-toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; margin: 22px 0; }
.legal-toc ol { columns: 2 220px; margin: 0; padding-left: 1.2em; }
.legal-toc li { margin: 2px 0; }
.legal .caps { font-size: .9rem; letter-spacing: .01em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.agree { margin: 6px 0 12px; }
.legal-links { text-align: center; margin-top: 28px; }

/* "What awaits" cards link to www/features/<id>.html (made by build_races.py) */
a.card.feature { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.card.feature:hover, a.card.feature:focus-visible { border-color: var(--ember); transform: translateY(-3px); color: inherit; }
a.card.feature:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }
a.card.feature .card-body p::after { content: " Read more \2192"; color: var(--ember-hi); font-weight: 600; white-space: nowrap; }
.feature-article { max-width: 1068px; margin: 0 auto; }
.feature-banner { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-banner picture { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 520px; }
.feature-banner img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner-text { position: absolute; inset: auto 0 0 0; padding: 60px 28px 22px; background: linear-gradient(180deg, transparent, rgba(10,8,6,.9) 55%); }
.feature-banner-text h1 { margin: 0 0 4px; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold); }
.feature-banner-text .race-tagline { margin: 0; }
.feature-lead { max-width: 760px; margin: 28px auto 22px; font-size: 1.15rem; text-align: center; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ember-hi); line-height: 1.2; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.coming { margin: 8px 0 30px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.coming h2 { text-align: left; font-size: 1.15rem; color: var(--ember-hi); margin: 0 0 8px; }
.coming ul { margin: 0 0 8px; padding-left: 1.2em; }
.feature-cta { text-align: center; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-banner picture { aspect-ratio: 4 / 3; }
  .feature-banner-text { padding: 40px 16px 14px; }
}

/* Discord link (Join section) */
.discord-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.btn.discord { display: inline-flex; align-items: center; gap: 8px; background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #6d78f5; border-color: #6d78f5; color: #fff; }
.icon-chat { flex: none; }

/* "About you" (sign-up) and "Your details" (account page) */
.about-you { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 6px; margin: 6px 0 16px; }
.about-you legend { padding: 0 6px; font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.about-you > p { margin: 0 0 12px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.optional-details { margin: 4px 0 12px; }
.optional-details summary { cursor: pointer; font-weight: 600; color: var(--ember-hi); padding: 6px 0; }
.optional-details[open] summary { margin-bottom: 8px; }
.profile-missing { border-color: var(--ember); }

/* bug reports (/account/bugs, /admin/bugs) */
.bug-form, .bug-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.admin select { margin-top: 6px; font-weight: 400; }
.bug-form h2 { margin: 22px 0 10px; font-size: 1.15rem; color: var(--ember-hi); }
.bug-form h2:first-of-type { margin-top: 6px; }
.admin h3 { font-family: var(--sans); font-size: 1rem; color: var(--ember-hi); margin: 18px 0 6px; }
.bug-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
.bug-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.bug-shots img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.bug-shots a:hover img, .bug-shots a:focus-visible img { border-color: var(--ember); }
.bug-thread { list-style: none; padding: 0; margin: 0 0 18px; }
.bug-comment { padding: 10px 14px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.02); }
.bug-comment p { margin: 0 0 4px; }
.bug-comment.event { border-style: dashed; background: transparent; }
.bug-comment.internal { border-color: rgba(217,83,79,.4); background: rgba(217,83,79,.06); }
.bug-filters label { flex: 0 1 180px; }
.log-preview { margin: 10px 0; }
.log-preview summary { cursor: pointer; font-weight: 600; color: var(--ember-hi); }
.log-preview pre { max-height: 420px; overflow: auto; padding: 12px; margin: 8px 0 0; font-size: .78rem; line-height: 1.45;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag.muted-tag { color: var(--muted); }

/* news: three cards on the home page, every post on news.html */
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--ember-hi); }
.news-thumb-link { display: block; }
.news-card .news-text.clamped { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.news-card .news-more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.news-all { text-align: center; margin: 26px 0 0; }
.news-page { max-width: 860px; margin: 0 auto; padding: 96px 16px 40px; }
.news-page h1 { color: var(--gold); font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 6px; }
.news-archive { display: grid; gap: 26px; margin-top: 24px; }
.news-article { scroll-margin-top: 80px; }
.news-article h2 { text-align: left; font-size: 1.5rem; margin: 4px 0 12px; }
.news-article time { color: var(--ember); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, #3a2a1f, #15110e); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-article .news-text { font-size: 1.02rem; line-height: 1.7; }
.news-figure { margin: 16px 0; }
.news-figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.news-figure figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
/* admin editor */
.cover-now { display: flex; gap: 14px; align-items: center; margin: -4px 0 14px; }
.cover-now img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
img.news-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }

/* roadmap (roadmap.html, made by build_races.py from roadmap/roadmap.json) */
.roadmap-page { max-width: 1068px; margin: 0 auto; padding: 96px 16px 40px; }
.rm-intro { text-align: center; }
.rm-intro h1 { color: var(--gold); font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 6px; }
.rm-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 8px 0 48px; counter-reset: rm; }
@media (max-width: 1100px) { .rm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rm-step { position: relative; display: block; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); text-decoration: none; }
.rm-step:hover { border-color: var(--ember); }
.rm-step span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rm-step em { display: block; margin-top: 3px; font-style: normal; font-size: .8rem; color: var(--gold); }
.rm-step strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.rm-step.rm-planned { border-style: dashed; }
.rm-step.rm-done span { color: var(--ok); }
.rm-step.rm-now { border-color: var(--ember); box-shadow: 0 0 0 1px rgba(232, 137, 58, .35), 0 10px 30px rgba(232, 137, 58, .12); }
.rm-step.rm-now span { color: var(--ember-hi); }
.rm-phase { position: relative; padding: 0 0 44px 34px; scroll-margin-top: 90px; }
.rm-phase::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 0; width: 2px; background: linear-gradient(var(--line), rgba(232, 137, 58, .06)); }
.rm-phase::after { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); }
.rm-phase.rm-done::after { border-color: var(--ok); background: var(--ok); }
.rm-phase.rm-now::after { border-color: var(--ember-hi); background: var(--ember); box-shadow: 0 0 12px rgba(255, 176, 103, .7); }
.rm-head { max-width: 720px; margin-bottom: 18px; }
.rm-head h2 { text-align: left; color: var(--gold); font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 6px; }
.rm-head p { margin: 0; }
.rm-dates { color: var(--gold); letter-spacing: .06em; }
.rm-when { display: inline-block; margin-left: 8px; font-size: .78rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.rm-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.rm-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rm-item h3 { margin: 8px 0 4px; font-family: var(--serif); font-size: 1.05rem; color: var(--text); }
.rm-item p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.rm-status { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); }
.rm-item.rm-done .rm-status { color: var(--ok); border-color: rgba(111, 191, 115, .45); background: rgba(111, 191, 115, .08); }
.rm-item.rm-progress { border-color: rgba(232, 137, 58, .55); }
.rm-item.rm-progress .rm-status { color: #1a0f06; background: var(--ember); border-color: var(--ember); }
.rm-item.rm-planned { background: rgba(255, 255, 255, .02); border-style: dashed; }
.rm-note { max-width: 760px; margin: 8px auto 26px; }
@media (max-width: 760px) {
  .rm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 36px; }
  .rm-phase { padding-left: 26px; }
  .rm-phase::before { left: 5px; }
  .rm-phase::after { left: -2px; }
}

/* account and admin areas: sidebar layout (cw_signup.py App._page with nav=...) */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--ember); color: #120a04; font-weight: 700; }
.skip-link:focus { top: 12px; color: #120a04; }
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 16px 18px; background: rgba(21, 17, 14, .92); border-right: 1px solid var(--line); }
.side-logo img { width: 168px; height: auto; margin: 0 auto 6px; }
.side-title { margin: 6px 12px 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { margin: 16px 12px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .15s, color .15s; }
.side-link .icon { flex: none; color: var(--muted); transition: color .15s; }
.side-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-link:hover .icon { color: var(--ember-hi); }
.side-link.active { background: linear-gradient(90deg, rgba(232, 137, 58, .2), rgba(232, 137, 58, .05)); color: #fff; }
.side-link.active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ember); }
.side-link.active .icon { color: var(--ember-hi); }
.side-link:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 1px; }
.badge { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--ember); color: #1a0f06;
  font-size: .74rem; font-weight: 800; line-height: 20px; text-align: center; }
.side-user { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center;
  padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.side-user .who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.side-user form { grid-column: 1 / -1; }
.side-user .btn { width: 100%; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--serif); font-weight: 700;
  color: #1a0f06; background: linear-gradient(160deg, var(--ember-hi), #b85f22); box-shadow: 0 0 0 2px rgba(232, 137, 58, .3); }
.app-main { width: 100%; max-width: 1180px; padding: 34px 40px 28px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-head p { margin: 4px 0 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.head-actions .btn { text-decoration: none; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; }
.stat .icon { grid-row: span 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--ember-hi); background: rgba(232, 137, 58, .12); }
.stat-label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; color: var(--text); }
.stat-note { font-size: .84rem; color: var(--muted); }
.stat.good .icon { color: #a7e3aa; background: rgba(111, 191, 115, .14); }
.stat.good .stat-value { color: #c9f0cb; }
.stat.warn { border-color: rgba(232, 137, 58, .55); }
.stat.bad { border-color: rgba(217, 83, 79, .6); }
.stat.bad .icon { color: #ffb3b0; background: rgba(217, 83, 79, .16); }
.play-card { border-color: rgba(232, 137, 58, .45); background: linear-gradient(160deg, rgba(232, 137, 58, .1), transparent 60%), var(--panel); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.todo li:last-child { border-bottom: 0; }
.todo li .icon { flex: none; color: var(--ember-hi); }
.todo li span { flex: 1; }
.todo li .btn { text-decoration: none; }
.todo li.done { color: var(--ok); font-weight: 600; }
.facts { margin: 0 0 6px; }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.facts dt { width: 90px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; flex: 1; }
.facts dd a { margin-left: 8px; font-size: .88rem; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-logo img { width: 120px; margin: 0; }
  .side-title { display: none; }
  .side-nav { order: 3; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-label { display: none; }
  .side-link { padding: 7px 11px; font-size: .88rem; border: 1px solid var(--line); gap: 8px; }
  .side-link .icon { width: 17px; height: 17px; }
  .side-link.active::before { display: none; }
  .side-link.active { border-color: var(--ember); }
  .side-user { margin: 0 0 0 auto; padding: 0; border: 0; grid-template-columns: auto auto; }
  .side-user .who { display: none; }
  .side-user form { grid-column: auto; }
  .app-main { padding: 22px 16px; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { display: flex; flex-direction: column; padding: 12px 14px; }
  .stat .icon { display: none; }
  .stat-value { font-size: 1.1rem; }
  .stat-note { font-size: .78rem; }
}
.app-main .bug-narrow, .app-main .bug-form { margin-left: 0; }
.account-grid .wide-card { grid-column: 1 / -1; }
.btn[disabled] { cursor: not-allowed; }
.ban-form { margin-top: 18px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.ban-form h3 { margin-top: 10px; color: #ffb3b0; }
.ban-form .btn { margin-top: 4px; }
.admin .card form.row + form.row, .admin .card form.row + p + form.row { margin-top: 12px; }

/* admin account page: profile header, flags, tabs and notes */
.profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 20px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse at 0% 0%, rgba(232,137,58,.18), transparent 60%), var(--panel); }
.profile-hero .who { flex: 1 1 280px; min-width: 0; }
.profile-hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); overflow-wrap: anywhere; }
.profile-hero p { margin: 4px 0 0; }
.profile-hero .btn { text-decoration: none; }
.avatar.big { width: 64px; height: 64px; font-size: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.14); color: var(--muted); background: rgba(255,255,255,.04); }
.pill.rank { color: var(--ember-hi); border-color: rgba(232,137,58,.45); }
.pill.good { color: #a7e3aa; border-color: rgba(111,191,115,.45); background: rgba(111,191,115,.1); }
.pill.good::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.pill.bad { color: #ffb3b0; border-color: rgba(217,83,79,.55); background: rgba(217,83,79,.14); }
.pill.gold { color: var(--gold); border-color: rgba(217,178,111,.5); background: rgba(217,178,111,.1); }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 6px; font-size: .74rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.08); color: var(--text); white-space: nowrap; }
.flag::before { content: "\2691"; font-size: .9em; }
.flag.support { background: rgba(88,140,220,.2); color: #b9d3ff; }
.flag.warning { background: rgba(232,137,58,.22); color: var(--ember-hi); }
.flag.watch { background: rgba(217,83,79,.25); color: #ffc4c1; }
.flag.trusted { background: rgba(111,191,115,.2); color: #b9ecbb; }
.pinned-notes { display: grid; gap: 8px; margin-bottom: 18px; }
.pinned-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); border-left: 4px solid var(--muted); background: rgba(255,255,255,.03); }
.pinned-note .text { flex: 1 1 260px; overflow-wrap: anywhere; }
.pinned-note.info { border-left-color: #6f9be0; } .pinned-note.warn { border-left-color: var(--ember); }
.pinned-note.bad { border-left-color: var(--danger); background: rgba(217,83,79,.07); } .pinned-note.good { border-left-color: var(--ok); }
.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 4px 0 18px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted);
  text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; border-radius: 8px 8px 0 0; }
.tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.tab.active { color: #fff; }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ember); }
.tab:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: -2px; }
.tab .count { min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: .72rem; line-height: 18px; text-align: center;
  background: rgba(255,255,255,.1); color: var(--text); }
.tab.active .count { background: var(--ember); color: #1a0f06; }
.tab-panel > .card, .tab-panel > form.card { max-width: 900px; }
.section-gap { margin-top: 26px; }
.note-list { display: grid; gap: 10px; }
.note { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); border-left: 4px solid var(--muted); background: rgba(255,255,255,.02); }
.note.info { border-left-color: #6f9be0; } .note.warn { border-left-color: var(--ember); }
.note.bad { border-left-color: var(--danger); } .note.good { border-left-color: var(--ok); }
.note.pinned { background: rgba(232,137,58,.05); }
.note header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.note header .muted { margin-left: auto; }
.note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kinds { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.kinds legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.admin label.kind-choice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08); font-weight: 400; cursor: pointer; }
.admin label.kind-choice input { width: auto; margin: 0; }
.kind-choice:has(input:checked) { border-color: var(--ember); background: rgba(232,137,58,.08); }
@media (max-width: 560px) { .profile-hero { padding: 16px; } .avatar.big { width: 48px; height: 48px; font-size: 1.3rem; } }

/* the admin Server page: power controls and the live console */
.pill.warn { color: var(--gold); border-color: rgba(217,178,111,.5); background: rgba(217,178,111,.1); }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.server-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.05rem; }
.server-state .pill { font-size: .9rem; padding: 4px 14px; }
.pending-row { align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(217,178,111,.45);
  border-radius: 10px; background: rgba(217,178,111,.08); }
.pending-row p { margin: 0; color: var(--gold); }
.server-power .row { gap: 10px; flex-wrap: wrap; }
.console-card { margin-top: 18px; }
.console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.console { margin: 0; height: min(60vh, 560px); overflow: auto; padding: 14px 16px; border-radius: 10px;
  background: #0b0908; border: 1px solid var(--line); color: #d8e6d0; font: .82rem/1.45 ui-monospace,
  "Cascadia Mono", Consolas, "Liberation Mono", monospace; white-space: pre-wrap; word-break: break-word; }
.console:focus { outline: 2px solid var(--ember); outline-offset: 2px; }
.console-input { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 6px 6px 14px;
  border-radius: 10px; background: #0b0908; border: 1px solid var(--line); }
.console-input .prompt { color: var(--ember-hi); font: 700 .95rem ui-monospace, Consolas, monospace; }
.console-input input[name="line"] { flex: 1; min-width: 0; background: transparent; border: 0; color: #d8e6d0;
  font: .9rem ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 8px 0; }
.console-input input[name="line"]:focus { outline: none; }
.console-input:focus-within { border-color: var(--ember); }
#console-live.stale { color: var(--danger); }
@media (max-width: 640px) {
  .console { height: 50vh; font-size: .76rem; }
}

/* the About page */
.about-page .lore { margin-top: 32px; }
.about-pillars { max-width: 1040px; margin: 8px auto 40px; }
.about-page .feature-cta .btn { margin: 4px; }
.about-note { max-width: 720px; margin: 24px auto 0; text-align: center; }
