/* Rimecall website.
   Layout: one column of bands; the hero pairs the pitch with a working-looking app window, and the
   expansion tabs above it re-skin the whole site (same five themes as the app).
   Tokens below are the Wrath look; site.js swaps them per expansion. */
:root {
  --bg: #141a22;          /* page */
  --band: #19202a;        /* alternating band */
  --panel: #212a35;       /* raised surface */
  --panel-hi: #29333f;
  --seam: #334050;        /* borders */
  --text: #ece7da;        /* parchment */
  --muted: #9aa3ae;
  --faint: #67717d;
  --gold: #d9ae5f;        /* main action, leader */
  --gold-deep: #b88e45;
  --accent: #8ccfef;      /* the expansion's colour: frost here */
  --glow: #e6f6ff;
  --ink: #1a1610;         /* text on gold */
  --good: #8fc286;
  --warn: #e8a060;
  --danger: #e0665a;

  --f-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --radius: 10px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 600 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: .85em 1.3em; border-radius: 8px; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .15s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 86%, white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--seam); }
.btn-ghost:hover { border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--seam) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .02em; }
.brand canvas { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); }
.top nav a.btn-gold, .top nav a.btn-gold:hover { color: var(--ink); }
.top nav .btn { padding: .6em 1em; font-size: .9rem; }
@media (max-width: 760px) { .top nav a:not(.btn):not(.keep) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; padding-block: 64px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin: 14px 0 18px; }

/* "Update 3.5.1 out now" above the headline */
.update-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 18px; padding: 5px 14px 5px 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font-size: .88rem; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.update-pill[hidden] { display: none; }
.update-pill:hover { border-color: var(--accent); background: color-mix(in srgb, var(--bg) 55%, var(--accent) 10%); }
.update-pill b { position: relative; flex: none; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 600 .7rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.update-pill.fresh b::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--gold); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .update-pill.fresh b::after { animation: up-ping 2.4s ease-out infinite; } }
@keyframes up-ping { 0% { opacity: .7; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.35, 1.6); } }
.update-pill .up-what { font-weight: 600; white-space: nowrap; }
.update-pill .up-sum { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.update-pill .up-sum::before { content: "·"; margin-right: 10px; color: var(--faint); }
.update-pill .up-go { color: var(--accent); transition: transform .2s; }
.update-pill:hover .up-go { transform: translateX(3px); }
@media (max-width: 560px) { .update-pill .up-sum { display: none; } }
.hero h1 em { font-style: normal; color: var(--accent); transition: color .6s; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero .fine { color: var(--faint); font-size: .88rem; }

.realms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.realm {
  font: 500 .82rem/1 var(--f-body); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--seam); border-radius: 999px; padding: .55em .9em; display: inline-flex; gap: .45em; align-items: baseline;
  transition: border-color .2s, color .2s, background-color .2s;
}
.realm small { font-family: var(--f-mono); font-size: .72rem; color: var(--faint); }
.realm:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, var(--seam)); }
.realm[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.realm[aria-pressed="true"] small { color: var(--accent); }

/* the app window */
.app {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--seam);
  background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.02) inset;
  display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 360px; font-size: 12px;
  transition: background-color .6s, border-color .6s;
}
.app .side { background: var(--band); border-right: 1px solid var(--seam); display: flex; flex-direction: column; padding: 14px 10px; gap: 4px; }
@media (max-width: 520px) { .app { grid-template-columns: minmax(0, 1fr); } .app .side { display: none; } }
.app .crest { display: grid; place-items: center; gap: 4px; padding: 6px 0 12px; }
.app .crest canvas { width: 64px; height: 64px; }
.app .crest b { font-family: var(--f-display); font-weight: 400; font-size: 18px; color: var(--glow); letter-spacing: .03em; }
.app .crest span { font-size: 9.5px; color: var(--muted); }
.app .nav { padding: 7px 10px; border-radius: 6px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.app .nav.on { background: var(--panel-hi); color: var(--text); }
.app .nav.on::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); margin-left: -6px; }
.app .bcast { margin-top: auto; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--seam)); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-radius: 8px; padding: 8px 10px; }
.app .bcast b { display: block; font-size: 11.5px; }
.app .bcast span { color: var(--muted); font-size: 10px; }
.app .launch { margin-top: 8px; background: var(--gold); color: var(--ink); border-radius: 7px; text-align: center; padding: 8px; font-weight: 600; }
.app .main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app .main h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 17px; }
.app .main .sub { color: var(--muted); font-size: 11px; }
.screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; background: var(--bg); border: 1px solid var(--seam); overflow: hidden; }
.win {
  position: absolute; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, var(--panel)), color-mix(in srgb, var(--c) 8%, var(--bg)));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 8px; color: var(--text);
}
.win b { font-size: 11px; font-weight: 600; }
.win span { font-size: 9.5px; color: var(--muted); }
.win.lead { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.win.lead b::after { content: " ★"; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--seam); border-radius: 999px; padding: 4px 9px; font-size: 10.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip.lit { border-color: color-mix(in srgb, var(--accent) 60%, var(--seam)); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- bands ---------- */
section { scroll-margin-top: 70px; }
.band { padding-block: 84px; }
.band.alt { background: var(--band); transition: background-color .6s; }
.band header { display: grid; gap: 12px; margin-bottom: 44px; max-width: 70ch; }
@media (max-width: 640px) { .band { padding-block: 56px; } }

/* features: two columns of plain rows, a glyph and a sentence each */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.feature svg { width: 26px; height: 26px; color: var(--accent); grid-row: span 2; margin-top: 2px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .97rem; }
.feature .tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }

/* session: an actual order of events */
.session { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
@media (max-width: 900px) { .session { grid-template-columns: minmax(0, 1fr); } }
.session li { counter-increment: step; border-top: 2px solid var(--seam); padding-top: 16px; position: relative; }
.session li::before { content: counter(step); font-family: var(--f-display); font-size: 1.8rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; }
.session li:first-child { border-top-color: var(--gold); }
.session li > b { display: block; margin-bottom: 4px; }
.session p { color: var(--muted); font-size: .93rem; }

/* availability table */
.table-wrap { overflow-x: auto; border: 1px solid var(--seam); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .94rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--seam); }
tr:last-child td { border-bottom: 0; }
thead th { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
thead th small { display: block; color: var(--faint); letter-spacing: 0; text-transform: none; }
td.y, td.s { text-align: center; white-space: nowrap; }
td.y { color: var(--good); }
td.s { color: var(--faint); font-family: var(--f-mono); font-size: .78rem; }
th.col-on, td.col-on { background: color-mix(in srgb, var(--accent) 9%, transparent); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--seam); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.plan.free { background: transparent; border-style: dashed; }
.plan.best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan .badge { font: 600 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 5px 8px; }
.price { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: .9rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .93rem; }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .57em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 22px; color: var(--faint); font-size: .88rem; max-width: 80ch; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--seam); border-radius: var(--radius); background: var(--bg); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--f-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* footer */
footer { border-top: 1px solid var(--seam); padding-block: 36px 48px; color: var(--faint); font-size: .86rem; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* toast (preview only) */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--panel-hi); color: var(--text); border: 1px solid var(--seam); border-radius: 8px; padding: 10px 16px; font-size: .9rem; z-index: 40; }

/* ---------- account + legal pages ---------- */
.page { padding-block: 56px 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.card { border: 1px solid var(--seam); border-radius: 12px; background: var(--panel); padding: 24px; }
.stack { display: grid; gap: 18px; align-content: start; }
.login { max-width: 460px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; color: var(--muted); }
.field input {
  font: 1rem var(--f-body); color: var(--text); background: var(--bg); border: 1px solid var(--seam); border-radius: 8px; padding: .8em .9em;
}
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.field input:focus { outline: none; border-color: var(--accent); }
.note { color: var(--muted); font-size: .92rem; }
.msg { border-radius: 8px; padding: 12px 14px; font-size: .94rem; border: 1px solid var(--seam); }
.msg.ok { border-color: color-mix(in srgb, var(--good) 50%, var(--seam)); background: color-mix(in srgb, var(--good) 10%, transparent); }
.msg.bad { border-color: color-mix(in srgb, var(--danger) 50%, var(--seam)); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.acct-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.lic { display: grid; gap: 14px; }
.lic-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.pill { font: 600 .72rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 6px 9px; border: 1px solid; }
.pill.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.pill.off { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.key { font-family: var(--f-mono); font-size: .8rem; word-break: break-all; background: var(--bg); border: 1px solid var(--seam); border-radius: 8px; padding: 12px 14px; color: var(--glow); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.legal { max-width: 760px; display: grid; gap: 14px; }
.legal h2 { font-size: 1.6rem; margin-top: 30px; }
.legal p, .legal li { color: var(--muted); }
.legal .fill { color: var(--warn); font-family: var(--f-mono); font-size: .9em; }

/* plain lists with a small diamond */
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
ul.plain li { position: relative; padding-left: 24px; }
ul.plain li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }

/* patch notes */
.releases { display: grid; gap: 22px; max-width: 860px; }
.release { border: 1px solid var(--seam); border-radius: 12px; padding: 24px 26px; background: var(--band); display: grid; gap: 16px; }
.release.latest { border-color: color-mix(in srgb, var(--accent) 50%, var(--seam)); }
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release-head h2 { font-size: 1.5rem; }
.release-head time { color: var(--faint); font-size: .85rem; }
.release-sec { display: grid; gap: 8px; }
.kind { font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kind-improved { color: var(--gold); }
.kind-fixed { color: var(--good); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--seam); border-radius: 10px; padding: 14px 16px; background: var(--panel); }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 200px; }
select { font: 1rem var(--f-body); color: var(--text); background: var(--bg); border: 1px solid var(--seam); border-radius: 8px; padding: .8em .9em; }
.results td { vertical-align: top; }
.results .key { font-size: .7rem; max-width: 260px; padding: 6px 8px; }
.btn-sm { padding: .5em .8em; font-size: .85rem; }

/* admin: tabs, charts, uploads */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--seam); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] {
  font: 500 .98rem/1 var(--f-body); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 13px 18px; margin-bottom: -1px; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.stat small { display: block; color: var(--faint); font-size: .8rem; margin-top: 3px; line-height: 1.35; }
.bars { display: grid; gap: 8px; }
.bars h4 { margin: 0 0 2px; font: 500 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bar { display: grid; grid-template-columns: 84px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: .92rem; }
.bar > span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.track { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--seam); min-width: 0; }
.recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.recent li span:first-child { overflow-wrap: anywhere; }
.recent small, .results small.note { color: var(--faint); font-size: .8rem; }
.pill.draft { color: var(--muted); border-color: var(--seam); }
.results .pill { white-space: nowrap; }
.versions td { vertical-align: middle; }
.notes-row td { background: var(--bg); }
textarea {
  font: .9rem/1.55 var(--f-mono); color: var(--text); background: var(--bg); border: 1px solid var(--seam); border-radius: 8px;
  padding: .8em .9em; width: 100%; resize: vertical; min-height: 120px;
}
textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.field input[type="file"] { padding: .55em; border-style: dashed; color: var(--muted); font-size: .92rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: 600 .88rem var(--f-body); color: var(--text); background: var(--panel-hi); border: 1px solid var(--seam);
  border-radius: 6px; padding: .55em .95em; margin-right: 12px; cursor: pointer;
}
.field label .step {
  display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-right: .5em; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font: 600 .78rem/1 var(--f-mono);
}
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; align-items: start; }
@media (max-width: 640px) { .up-grid { grid-template-columns: minmax(0, 1fr); } }
#upload { transition: border-color .2s, background-color .2s; }
#upload.drop { border-color: var(--accent); border-style: dashed; background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .93rem; cursor: pointer; }
.check input { margin-top: .32em; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.check b { color: var(--text); font-weight: 600; }
.progress { height: 10px; border-radius: 5px; background: var(--bg); border: 1px solid var(--seam); overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
.note.bad-text { color: var(--warn); }
.note.good-text { color: var(--good); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.code-input { font-family: var(--f-mono) !important; font-size: 1.6rem !important; letter-spacing: .3em; max-width: 220px; text-align: center; }

/* ideas board */
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.idea { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; border: 1px solid var(--seam); border-radius: 12px; background: var(--panel); padding: 14px 16px; }
.idea.is-hidden, .comment.is-hidden { opacity: .5; }
.vote { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--seam); background: var(--bg); color: var(--muted); cursor: pointer; font: 600 1rem/1 var(--f-body); transition: border-color .2s, color .2s, background-color .2s, transform .15s; }
.vote:hover { border-color: var(--accent); color: var(--text); }
.vote:active { transform: scale(.96); }
.vote .arrow { font-size: .8rem; }
.vote.on { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--bg)); }
.idea-main { min-width: 0; display: grid; gap: 8px; }
.idea-head { all: unset; cursor: pointer; display: grid; gap: 6px; }
.idea-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.idea-title { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--faint); font-size: .85rem; }
.idea-body { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.idea-detail { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid var(--seam); }
.pill.st-open { color: var(--muted); border-color: var(--seam); }
.pill.st-planned { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pill.st-building { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pill.st-done { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.pill.st-declined { color: var(--faint); border-color: var(--seam); }
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment { border-left: 2px solid var(--seam); padding: 2px 0 2px 12px; display: grid; gap: 4px; overflow-wrap: anywhere; white-space: pre-line; }
.comment.team { border-left-color: var(--gold); }
.comment-meta { color: var(--faint); font-size: .82rem; white-space: normal; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.comment-form textarea { min-height: 60px; }
.mod select { padding: .4em .6em; font-size: .9rem; }
#community .btn svg { width: 1.2em; height: 1.2em; }
@media (max-width: 520px) { .idea { grid-template-columns: 46px minmax(0, 1fr); padding: 12px; gap: 10px; } .comment-form { grid-template-columns: minmax(0, 1fr); } }

/* hero demo: one key, five casts */
.chips button.chip { font: inherit; font-size: 10.5px; cursor: pointer; }
.chip.hit { animation: chiphit .5s ease-out; }
@keyframes chiphit { 0% { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); transform: translateY(1px); } 100% { } }
.win { overflow: hidden; }
.burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.burst i { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c); box-shadow: 0 0 18px var(--c), inset 0 0 12px var(--c); animation: ring 1s ease-out forwards; }
.burst em { font: 600 13px/1 var(--f-mono); font-style: normal; color: var(--glow); text-shadow: 0 0 8px var(--c); animation: rise 1s ease-out forwards; }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } to { transform: translateY(-18px); opacity: 0; } }
.win:not(.lead) .burst em { display: none; }
.try { margin-top: 12px; color: var(--faint); font-size: .86rem; text-align: center; }
kbd { font: 600 .78rem/1 var(--f-mono); border: 1px solid var(--seam); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--text); background: var(--panel); }
@media (hover: none) { .try { display: none; } }

/* numbers strip */
.proof { border-block: 1px solid var(--seam); background: color-mix(in srgb, var(--panel) 60%, var(--bg)); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 26px; }
.proof b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--accent); font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* comparison */
table.compare th[scope="row"] { font-weight: 500; color: var(--text); }
table.compare small { display: block; color: var(--faint); font-size: .78rem; }
table.compare td { color: var(--muted); }
table.compare td.col-on { color: var(--text); font-weight: 600; }
table.compare td.y { color: var(--good); text-align: left; }

/* community band */
.community { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .community { grid-template-columns: minmax(0, 1fr); } }
.top-ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top-ideas li { display: flex; gap: 14px; align-items: center; border: 1px solid var(--seam); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.top-ideas .v { font: 600 .85rem/1 var(--f-mono); color: var(--gold); white-space: nowrap; }
.top-ideas a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.top-ideas a:hover { color: var(--accent); }
.top-ideas .placeholder { color: var(--faint); border-style: dashed; }

/* sections ease in */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.seen { opacity: 1; transform: none; }
.features .reveal:nth-child(2n) { transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* admin: problem reports */
.tabs .count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--gold); color: #1a1610; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.results.reports .rep-note { max-width: 380px; white-space: pre-wrap; overflow-wrap: anywhere; }
.results.reports td.actions { white-space: nowrap; }
.results .muted { color: var(--muted, #8a94a0); }
.results .nowrap { white-space: nowrap; }

/* the expansion's scenery at the top of the other pages, quieter than on the home page */
.page { position: relative; overflow: hidden; }
.page > canvas.page-sky { position: absolute; inset: 0 0 auto 0; width: 100%; height: 360px; pointer-events: none; opacity: .75; }
.page > .wrap { position: relative; }

/* each realm's headings live in its weather (the scenery is drawn by site.js); glows change in small
   steps rather than every frame, so a big blurred heading isn't repainted 60 times a second */
@media (prefers-reduced-motion: no-preference) {
  html[data-realm="wotlk"] .hero h1, html[data-realm="wotlk"] .page h1 { animation: rc-freeze 11s steps(8) infinite; }
  @keyframes rc-freeze {
    0%, 6% { color: var(--text); text-shadow: none; }
    16%, 46% { color: #eef9ff; text-shadow: 0 0 1px #fff, 0 0 8px rgba(170, 224, 255, .8), 0 0 22px rgba(140, 207, 239, .5), 1px 1px 0 rgba(255, 255, 255, .35); }
    60%, 100% { color: var(--text); text-shadow: none; }
  }
  html[data-realm="cata"] .hero h1, html[data-realm="cata"] .page h1 { animation: rc-smoulder 2.3s steps(3) infinite; }
  @keyframes rc-smoulder {
    0%, 100% { text-shadow: 0 0 6px rgba(255, 106, 42, .7), 0 0 20px rgba(255, 106, 42, .35), 0 -3px 14px rgba(255, 200, 80, .25); }
    13% { text-shadow: 0 0 9px rgba(255, 120, 50, .9), 0 0 28px rgba(255, 106, 42, .5), 0 -4px 18px rgba(255, 200, 80, .4); }
    31% { text-shadow: 0 0 5px rgba(255, 106, 42, .55), 0 0 16px rgba(255, 106, 42, .3), 0 -2px 10px rgba(255, 200, 80, .2); }
    47% { text-shadow: 0 0 11px rgba(255, 140, 60, 1), 0 0 34px rgba(255, 106, 42, .6), 0 -6px 22px rgba(255, 210, 90, .5); }
    66% { text-shadow: 0 0 6px rgba(255, 106, 42, .65), 0 0 18px rgba(255, 106, 42, .3), 0 -3px 12px rgba(255, 200, 80, .25); }
  }
  html[data-realm="tbc"] .hero h1, html[data-realm="tbc"] .page h1 { animation: rc-fel 3.2s steps(10) infinite; }
  @keyframes rc-fel {
    0%, 100% { text-shadow: 0 0 6px rgba(134, 227, 90, .35), 0 0 18px rgba(134, 227, 90, .15); }
    50% { text-shadow: 0 0 10px rgba(134, 227, 90, .8), 0 0 30px rgba(134, 227, 90, .4), 0 0 46px rgba(179, 107, 255, .25); }
  }
  html[data-realm="classic"] .hero h1, html[data-realm="classic"] .page h1 {
    background: linear-gradient(100deg, var(--text) 42%, #fff6d8 50%, var(--text) 58%) 0 0 / 320% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rc-glint 6.5s ease-in-out infinite;
  }
  html[data-realm="classic"] .hero h1 em { -webkit-text-fill-color: var(--accent); }
  @keyframes rc-glint { 0% { background-position: 100% 0; } 22%, 100% { background-position: 0 0; } }
  html.gust .top nav a, html.gust .brand, html.gust .hero h1, html.gust .page h1, html.gust .realm { animation: rc-shake .32s linear infinite; }
  @keyframes rc-shake {
    0%, 100% { transform: translate(0, 0); } 20% { transform: translate(2px, -1px) rotate(.3deg); }
    40% { transform: translate(-1px, 1px); } 60% { transform: translate(3px, 0) rotate(-.3deg); } 80% { transform: translate(1px, -1px); }
  }
}

/* the website check (/status.html) */
.status .status-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 8px; }
.status .grow { flex: 1; }
.status .checks { display: grid; gap: 18px; margin: 18px 0 40px; }
.status .check-area h2 { font-size: 1.15rem; margin: 0 0 8px; }
.status .check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--seam); border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 75%, transparent); margin-bottom: 6px; }
.status .check-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem/1 var(--f-mono); border: 1px solid; }
.status .check.ok .check-icon { color: var(--good); border-color: color-mix(in srgb, var(--good) 55%, transparent); }
.status .check.bad .check-icon { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.status .check.warn .check-icon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.status .check.info .check-icon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.status .check.bad { border-color: color-mix(in srgb, var(--danger) 45%, var(--seam)); }
.status .check-body { display: grid; gap: 2px; min-width: 0; }
.status .check-detail { color: var(--muted); overflow-wrap: anywhere; }
.status .check-fix { color: var(--text); font-size: .92rem; }
.status .check.bad .check-fix::before, .status .check.warn .check-fix::before { content: "What to do: "; color: var(--gold); }
.status .test-result { white-space: pre-wrap; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--seam); font: .9rem/1.5 var(--f-mono); }
.status .test-result.good { border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); }
.status .test-result.bad { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--warn); }
.status .mail-log { width: 100%; border-collapse: collapse; font-size: .9rem; }
.status .mail-log th, .status .mail-log td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--seam); vertical-align: top; }
.status .mail-log th { color: var(--muted); font-weight: 500; }
.status .mail-log tr.failed td:last-child { color: var(--warn); }
@media (max-width: 640px) { .status .mail-log td:nth-child(3), .status .mail-log th:nth-child(3) { display: none; } }
.status section.stack { margin-top: 36px; }
