/* PlusOne Roleplay — shared styles */
:root {
  --bg: #05070a;
  --bg-2: #0a0e13;
  --panel: rgba(13, 18, 24, 0.78);
  --panel-solid: #0c1117;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaeef1;
  --muted: #8d969d;
  --dim: #7a838a;          /* 5:1 on --bg; small text needs 4.5:1 */
  --accent: #76c043;
  --accent-hi: #9be163;
  --accent-ink: #071003;
  --accent-glow: rgba(118, 192, 67, 0.45);
  --grey: #a3a8a6;
  --danger: #e25b5b;
  --ok: #4fd67a;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-mono: "Barlow Semi Condensed", "Barlow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, Segoe UI, sans-serif;

  --radius: 0;          /* buttons, inputs, tabs, list rows */
  --radius-card: 0;     /* every card, panel and menu */
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Background field ---------- */
#bg-field {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  pointer-events: none;
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(118, 192, 67, 0.07), transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

/* ---------- Typography ---------- */
.eyebrow {
  font: 600 13px/1.4 var(--f-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.display {
  font: 800 italic clamp(56px, 13vw, 168px)/.86 var(--f-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}
.h1 {
  font: 800 italic clamp(48px, 9vw, 104px)/.9 var(--f-display);
  text-transform: uppercase;
  margin: 0;
}
.h2 {
  font: 800 italic clamp(32px, 5vw, 56px)/.95 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.h3 {
  font: 700 italic 24px/1.1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 8px;
}
.lead { font-size: clamp(17px, 2vw, 21px); color: #c6cdd2; max-width: 640px; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font: 700 14px/1 var(--f-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--b);
  border: 1px solid var(--b); border-radius: var(--radius);
  box-shadow: 0 0 0 0 var(--accent-glow), 0 0 32px -6px var(--accent-glow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn:hover { color: var(--accent-ink); background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(118,192,67,.15), 0 0 44px -4px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--accent); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow {
  font: 600 13px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(5,7,10,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .brand img { height: 28px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 6px; }

/* Top-bar links. Phones: a second row under the logo that scrolls sideways. */
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a {
  position: relative; padding: 10px 14px; white-space: nowrap;
  font: 600 14px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.top-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.top-nav a:hover, .top-nav a.active { color: var(--text); }
.top-nav a:hover::after, .top-nav a.active::after { transform: scaleX(1); }
@media (min-width: 1024px) {
  .top-nav { flex: 1; justify-content: center; min-width: 0; }
}
@media (max-width: 1023px) {
  :root { --header-h: 108px; }
  .site-header { flex-wrap: wrap; align-content: center; row-gap: 0; padding-top: 6px; }
  .site-header .brand { height: 44px; display: flex; align-items: center; }
  .top-nav {
    order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 0 calc(var(--gutter) - 14px); overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { padding: 14px 14px; font-size: 13px; }
}
.icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  color: var(--muted); background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .tip {
  position: absolute; top: 48px; right: 0; white-space: nowrap;
  font: 500 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 9px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 0;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: .15s;
}
.icon-btn:hover .tip { opacity: 1; transform: none; }
/* Account button + dropdown */
.account { position: relative; display: none; }
.signed-in .account { display: block; }
.signed-in .signin-btn { display: none; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 0; overflow: hidden; display: grid; place-items: center;
  background: #141b22; color: var(--dim); border: 2px solid var(--accent); box-shadow: 0 0 14px -2px var(--accent-glow); }
.avatar svg { width: 60%; height: 60%; margin-top: 18%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who { display: grid; gap: 3px; text-align: left; min-width: 0; }
.who b { font: 600 15px/1 var(--f-body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font: 500 13px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--muted); }
.user-chip {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px 0 7px; margin-left: 4px;
  border: 1px solid var(--line-strong); border-radius: 0; background: rgba(10,14,19,.6);
  color: var(--text); cursor: pointer; font: inherit; transition: border-color .2s, background .2s;
}
.user-chip:hover, .user-chip[aria-expanded="true"] { border-color: rgba(118,192,67,.5); background: rgba(118,192,67,.06); }
.user-chip .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.user-chip[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (max-width: 640px) { .user-chip .who, .user-chip .chev { display: none; } .user-chip { padding: 0 7px; height: 50px; } }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 300px; z-index: 70;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.8); overflow: hidden; animation: toastIn .18s ease;
}
.am-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.am-head .avatar { width: 48px; height: 48px; }
.account-menu > a, .account-menu > button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 20px;
  font: 600 13px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-align: left;
}
.account-menu > a svg, .account-menu > button svg { width: 18px; height: 18px; flex: none; }
.account-menu > a:hover, .account-menu > a:focus-visible { color: var(--text); background: rgba(255,255,255,.03); }
.account-menu > a:first-of-type { margin-top: 8px; }
.am-toggle {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 16px 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer;
  font: 600 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.am-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.am-toggle i { position: relative; width: 42px; height: 24px; border-radius: 0; background: #2a333b; transition: background .2s; }
.am-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 0; background: #c9d0d5; transition: transform .2s; }
.am-toggle input:checked + i { background: var(--accent); }
.am-toggle input:checked + i::after { transform: translateX(18px); background: #fff; }
.am-toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-menu > .am-signout { color: #e57373; padding: 16px 20px 18px; }
.account-menu > .am-signout:hover { color: #ff8a8a; background: rgba(226,91,91,.06); }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
html.reduce-motion .reveal { opacity: 1; transform: none; }
html.reduce-motion { scroll-snap-type: none; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 0;
  background: rgba(10,14,19,.7); backdrop-filter: blur(6px);
  font: 600 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
}
.status-pill .sep { width: 1px; height: 14px; background: var(--line-strong); }
.status-pill .wl { color: var(--accent); }
.status-pill .wl.closed { color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(79,214,122,.6); animation: pulse 2s infinite; }
.dot.offline { background: var(--danger); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,214,122,.55); } 70% { box-shadow: 0 0 0 9px rgba(79,214,122,0); } 100% { box-shadow: 0 0 0 0 rgba(79,214,122,0); } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px)); padding-bottom: 96px; min-height: 100vh; }
.page-head { margin-bottom: clamp(36px, 6vw, 64px); }
.page-head .lead { margin-top: 18px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card);
  backdrop-filter: blur(6px);
}
.panel-pad { padding: clamp(22px, 3vw, 36px); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--line); margin: 56px 0; border: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Home: slides ---------- */
html.snap { scroll-snap-type: y mandatory; }
.slide {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  scroll-snap-align: start;
  overflow: hidden;
}
.slide-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 920px; }
.ghost-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 900 italic 30vw/1 var(--f-display); text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05);
  pointer-events: none; user-select: none; z-index: 0;
}
.hero h1 { margin: 0; line-height: 0; }
.hero-logo { width: min(520px, 78vw); height: auto; filter: drop-shadow(0 0 36px rgba(118,192,67,.2)); margin: 32px auto 28px; }
.hero-tag { font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--f-body); color: var(--text); margin: 0; max-width: 34ch; text-wrap: balance; }
.hero-sub { font: 500 clamp(16px, 1.6vw, 19px)/1.4 var(--f-body); color: var(--muted); margin: 8px 0 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero-meta { font: 600 13px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 28px 0 0; }
.slide-title { font: 800 italic clamp(44px, 6.2vw, 92px)/.95 var(--f-display); text-transform: uppercase; margin: 0; text-wrap: balance; }
@media (max-height: 780px) { .slide .scroll-cue { display: none; } .hero-logo { width: min(440px, 74vw); margin: 24px auto 22px; } .hero-cta { margin-top: 26px; } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font: 500 10px/1 var(--f-mono); letter-spacing: .3em; color: var(--dim); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0; overflow: hidden; margin: 38px 0 30px; width: min(820px, 100%); }
.stat { background: rgba(8,11,15,.86); padding: 28px 18px; }
.stat b { display: block; font: 800 italic clamp(40px, 6vw, 68px)/1 var(--f-display); }
.stat b small { font-size: .45em; color: var(--muted); }
.stat > span { font: 500 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

.side-nav {
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 18px; align-items: flex-end;
}
.side-nav a { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 600 10px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; }
.side-nav a span { opacity: 0; transform: translateX(6px); transition: .25s; }
.side-nav a i { display: block; width: 6px; height: 6px; border-radius: 0; background: var(--dim); transition: width .3s, background .3s; }
.side-nav a:hover span, .side-nav a.active span { opacity: 1; transform: none; }
.side-nav a.active { color: var(--text); }
.side-nav a.active i { width: 22px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
@media (max-width: 760px) { .side-nav { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(4,6,8,.85); position: relative; }
.home .site-footer { scroll-snap-align: end; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 40px; }
.footer-grid img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-grid h4 { font: 500 11px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin: 6px 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-base { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 0 32px; border-top: 1px solid var(--line); font: 500 11px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Content blocks ---------- */
.chapter { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; }
.chapter .label { font: 600 13px/1.6 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); padding-top: 12px; }
.chapter .h2 { font-size: clamp(30px, 3.6vw, 46px); }
.chapter p { color: #c9d0d5; max-width: 680px; margin: 0 0 14px; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; gap: 8px; } }

.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 110px 1fr 210px; gap: 28px; align-items: center; }
.step .btn { width: 100%; }
.step .num { font: 900 italic 76px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--accent); }
.step .num small { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); -webkit-text-stroke: 0; font-style: normal; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 10px; } .step .num { font-size: 56px; } }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
  font: 600 17px/1.4 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--f-mono); color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }

.card { padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(118,192,67,.4); }
.card .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 0; background: rgba(118,192,67,.1); color: var(--accent); }
.card .ico svg { width: 20px; height: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
a.card { color: var(--text); }
a.card:hover { transform: translateY(-2px); color: var(--text); }

/* ---------- Rules ---------- */
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.rules-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.rules-toc input { width: 100%; margin-bottom: 14px; }
.rules-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.rules-toc a:hover, .rules-toc a.active { color: var(--text); border-color: var(--accent); }
.rule-section { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.rule-section > .intro { padding: 18px 22px; font-style: italic; color: var(--muted); margin-bottom: 14px; }
.rule { padding: 22px 24px; margin-bottom: 10px; }
.rule h3 { display: flex; gap: 14px; align-items: baseline; margin: 0 0 10px; font: 700 18px/1.3 var(--f-body); }
.rule h3 .rid { color: var(--accent); min-width: 34px; font-variant-numeric: tabular-nums; }
.rule p { margin: 0 0 10px; color: #c3cad0; }
.rule p:last-child { margin-bottom: 0; }
.rule details { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rule summary { cursor: pointer; font: 500 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.rule ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.rule mark { background: rgba(118,192,67,.25); color: var(--text); }
@media (max-width: 860px) { .rules-layout { grid-template-columns: 1fr; } .rules-toc { position: static; } }

/* ---------- Forms ---------- */
label.field { display: grid; gap: 8px; margin-bottom: 20px; }
label.field > span { font: 600 15px/1.45 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #c3cad0; }
label.field > span em { color: var(--accent); font-style: normal; }
label.field small { color: var(--muted); font-size: 14px; }
input[type=text], input[type=number], input[type=search], input[type=email], textarea, select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius);
  background: rgba(4,6,8,.7); border: 1px solid var(--line-strong); color: var(--text);
  font: 400 15px/1.5 var(--f-body); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(118,192,67,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: #c3cad0; font-size: 16px; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.counter { text-align: right; font: 500 11px/1 var(--f-mono); color: var(--dim); margin-top: -12px; margin-bottom: 14px; }

/* Gate / centred card (apply, queue) */
.gate { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(32px, 6vw, 60px); box-shadow: 0 0 120px -30px rgba(118,192,67,.25); }
.gate .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.gate .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.gate p { color: var(--muted); margin: 18px auto 30px; max-width: 440px; }


.badge { font: 600 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; padding: 6px 9px; border-radius: 0; border: 1px solid currentColor; }
.badge.pending { color: #e2b34b; } .badge.accepted { color: var(--ok); } .badge.denied { color: var(--danger); }

.progress { height: 3px; background: var(--line); border-radius: 0; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width .6s ease; }

/* ---------- Queue ---------- */
.loader-blocks { display: flex; gap: 20px; }
.loader-blocks i { width: 14px; height: 14px; background: var(--dim); animation: blink 1.2s infinite; }
.loader-blocks i:nth-child(2) { animation-delay: .2s; } .loader-blocks i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { background: var(--dim); } 50% { background: var(--accent); box-shadow: 0 0 12px var(--accent); } }
.queue-pos { font: 900 italic clamp(88px, 18vw, 160px)/.9 var(--f-display); }
.queue-pos small { font-size: .3em; color: var(--muted); }

/* ---------- Store ---------- */
.tabs { display: inline-flex; gap: 8px; margin: 26px 0 36px; flex-wrap: wrap; }
.tab { font: 600 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; padding: 13px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.tab b { color: var(--muted); margin-left: 8px; }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab.active b { color: var(--accent-ink); opacity: .7; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
/* Same card size on both tabs. Memberships: 3 + 2. Extras: 2 × 2 (the row is capped at two cards wide). */
#extras { max-width: 774px; margin: 0 auto; }
#extras > .tier { flex-basis: calc(50% - 7px); }
.tiers > .tier { flex: 0 1 calc(33.333% - 10px); max-width: 380px; }
.tiers > .tier { padding: 0 28px 28px; }
@media (max-width: 760px) { .tiers > .tier { flex-basis: calc(50% - 7px); max-width: none; } }
@media (max-width: 520px) { .tiers > .tier, #extras > .tier { flex-basis: 100%; } }
.tier { position: relative; padding: 0 22px 24px; margin-top: 54px; display: flex; flex-direction: column; text-align: left; }
.tier .badge-art { width: 108px; height: 108px; margin: -54px auto 8px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.tier .name { font: 800 italic 34px/1 var(--f-display); text-transform: uppercase; margin: 6px 0 2px; }
.tier .prio { font: 600 12px/1 var(--f-mono); letter-spacing: .16em; color: var(--accent); }
.tier .price { font: 700 30px/1 var(--f-body); margin: 18px 0 14px; }
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.tier .price:has(+ .renew) { margin-bottom: 6px; }
.tier .renew { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 14px; color: #c3cad0; }
.tier li::before { content: "+"; color: var(--accent); font: 700 14px/1.4 var(--f-mono); }
.tier.featured { border-color: rgba(118,192,67,.55); box-shadow: 0 0 60px -20px var(--accent-glow); }
.store-note { font: 500 11px/1.7 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast {
  position: relative; overflow: hidden; padding: 16px 18px 18px; border-radius: var(--radius-card);
  background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px -10px rgba(0,0,0,.7);
  animation: toastIn .35s cubic-bezier(.2,.8,.2,1);
}
.toast b { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.toast.error b { color: var(--danger); }
.toast p { margin: 0; font-size: 14px; color: #c3cad0; }
.toast i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: toastBar linear forwards; }
.toast.error i { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Demo banner */

/* Prose (legal) */
.prose > * { max-width: 760px; }
.prose > .h1 { max-width: none; margin-bottom: 28px; }
.prose h2 { font: 800 italic 30px/1.1 var(--f-display); text-transform: uppercase; margin: 44px 0 12px; }
.prose p, .prose li { color: #c3cad0; }
.prose .eyebrow { color: var(--accent); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li b, .prose p b { color: var(--text); font-weight: 600; }
.prose .fine { margin: -16px 0 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); margin: 14px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { font: 600 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-strong); }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #c3cad0; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:last-child { white-space: nowrap; color: var(--muted); }
.prose code { font: 500 14px/1 ui-monospace, Consolas, monospace; color: var(--text); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.callout { padding: 16px 20px; border-left: 3px solid #e2b34b; background: rgba(226,179,75,.07); color: #e9d6a8; font-size: 14px; border-radius: 0; margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html.snap { scroll-snap-type: none; }
}

/* ---------- Phone refinements ---------- */
.footer-base { padding-bottom: 64px; }
@media (max-width: 767px) {
  .demo-flag { display: none; }
  .footer-base { padding-bottom: 32px; }
  .home .scroll-cue { display: none; }
  .hero-cta { flex-direction: column; align-self: stretch; }
  .hero-cta .btn { width: 100%; }
  .rules-toc nav { display: none; }
  .rules-toc input { margin-bottom: 0; }
  .rules-layout { gap: 28px; }
}

/* ---------- Dashboard ---------- */
.wrap.wide { max-width: 1400px; }
.dash { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 24px; align-items: start; }
.dstack { display: grid; gap: 24px; min-width: 0; }
.dcard { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-card); padding: clamp(22px, 2.6vw, 34px); backdrop-filter: blur(6px); min-width: 0; }
.dlabel { font: 700 13px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; margin: 0 0 22px; display: flex; gap: 12px; }
.dlabel .muted { letter-spacing: .12em; }
.empty { color: var(--muted); margin: 0; font-size: 17px; }
.empty a, .fine a { color: var(--accent); }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; font: 600 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.text-btn:hover { color: var(--accent-hi); }
.btn-lg { min-height: 60px; font-size: 15px; }
.tag { font: 700 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; }
.ok { color: var(--ok); } .warn { color: #e2b34b; } .bad { color: var(--danger); }

.profile { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar.xl { width: 148px; height: 148px; border-width: 3px; box-shadow: 0 0 40px -6px var(--accent-glow); margin-top: 6px; }
.pname { font: 800 italic 34px/1.1 var(--f-display); text-transform: uppercase; margin: 20px 0 22px; overflow-wrap: anywhere; }
.kvs { width: 100%; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 18px; }
.kv { display: grid; gap: 6px; }
.kv dt { font: 600 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.kv dd { margin: 0; font: 500 16px/1.3 var(--f-body); font-variant-numeric: tabular-nums; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.kv.stream { grid-template-columns: 1fr auto; align-items: center; }
.kv.stream dd { justify-content: flex-end; }
.inline-edit { display: flex; gap: 8px; }
.inline-edit input { width: 150px; padding: 7px 10px; font-size: 14px; }
.fine { color: var(--muted); font-size: 14px; text-align: left; margin: 18px 0 24px; }

.srv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.srv-head > span:first-child { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.srv-count { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 16px; }
.srv-count b { font: 800 italic 76px/.9 var(--f-display); }
.srv-count .of { font: 800 italic 40px/1 var(--f-display); color: var(--muted); }
.srv-count > span { font: 600 13px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.srv-stats { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; margin: 22px 0 0; }
.srv-stats dt { font: 600 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.srv-stats dd { margin: 0; font: 700 19px/1 var(--f-body); }

.roles { display: flex; flex-wrap: wrap; gap: 10px; }
.role { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 0; font-size: 14px; font-weight: 600; }
.role i { width: 10px; height: 10px; border-radius: 50%; }

.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.char { border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: rgba(4,6,8,.5); overflow: hidden; }
.char-top { display: flex; gap: 18px; padding: 18px 18px 14px; }
.char-pic { flex: none; width: 84px; height: 84px; border-radius: 0; background: #141b22; border: 1px solid var(--line); display: grid; place-items: end center; color: #2c363f; overflow: hidden; }
.char-pic svg { width: 70%; height: 70%; }
.char-id { flex: 1; min-width: 0; }
.char-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.char-name h3 { font: 800 italic 28px/1 var(--f-display); text-transform: uppercase; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-name .mono { font-size: 13px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.char-id p { margin: 6px 0 10px; color: #c3cad0; }
.cbars { display: flex; gap: 14px; }
.cbar { flex: 1; display: flex; align-items: center; gap: 8px; }
.cbar small { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cbar i { flex: 1; height: 4px; background: var(--line-strong); border-radius: 0; overflow: hidden; }
.cbar b { display: block; height: 100%; background: var(--accent); }
.char-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0 18px 16px; }
.char-facts div { display: flex; gap: 8px; align-items: baseline; }
.char-facts dt { font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.char-facts dd { margin: 0; font: 600 16px/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.char-foot { display: flex; gap: 18px; align-items: baseline; padding: 14px 18px; border-top: 1px solid var(--line); font: 600 16px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.char-foot .cash { color: var(--ok); }
.char-foot .muted { margin-left: auto; font-size: 14px; font-weight: 500; }
.slots-note { color: var(--muted); margin: 16px 0 0; font-size: 15px; }
.slots-note a { color: var(--accent); }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(4,6,8,.4);
  font: 700 14px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text); transition: border-color .2s, background .2s; }
.quick a svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.quick a:hover { border-color: rgba(118,192,67,.5); background: rgba(118,192,67,.06); color: var(--text); }
.data-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-ghost.btn-danger { color: #e57373; }
.btn-ghost.btn-danger:hover { border-color: var(--danger); background: rgba(226,91,91,.06); color: #ef8a8a; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.btn-danger-solid:hover { background: #ea6f6f; color: #fff; box-shadow: 0 0 0 4px rgba(226,91,91,.18); }
.del-confirm { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.del-confirm > p { color: #c3cad0; margin: 0 0 18px; max-width: 70ch; }
.del-confirm .field { max-width: 360px; }

@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .profile { position: static; }
}

/* ---------- Apply: three columns ---------- */
/* Each column is a subgrid over the same 7 rows, so titles, taglines and buttons line up across columns. */
.app-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); align-content: center; min-height: calc(100vh - var(--header-h) - 220px); }
.app-col { grid-row: span 7; display: grid; grid-template-rows: subgrid; justify-items: center; align-content: start; text-align: center; padding: 48px clamp(12px, 1.6vw, 40px); }
.app-col > * { align-self: start; }
.app-col + .app-col { border-left: 1px solid var(--line); }
.app-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font: 600 14px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.app-eyebrow span { color: var(--accent); }
.app-eyebrow i { width: 34px; height: 1px; background: var(--accent); }
.app-title { font: 900 italic min(6vw, 84px)/.85 var(--f-display);   /* one size for all three; "Developer" fits a third of the page */ text-transform: uppercase; margin: 0; color: #d9dee2; letter-spacing: -.01em; }
.app-tagline { font: 600 clamp(15px, 1.5vw, 20px)/1.3 var(--f-mono); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin: 18px 0 22px; }
.app-blurb { color: #b9c1c7; font-size: 18px; max-width: 34ch; margin: 0 0 28px; min-height: 2.6em; }
.app-action { min-height: 52px; }
.app-action .btn { white-space: nowrap; padding: 0 20px; }
.app-status { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font: 600 14px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.app-status.closed { color: var(--dim); }
.app-note { color: var(--muted); font-style: italic; max-width: 34ch; margin: 14px 0 0; }
.app-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--muted); margin: 8px auto 0; font-size: 15px; }
.app-foot a { color: var(--accent); }
@media (max-width: 1000px) {   /* below this the Steam buttons no longer fit a third of the page */
  .app-cols { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .app-col { grid-row: auto; grid-template-rows: none; }
  .app-title { font-size: min(19vw, 96px); }
  .app-col + .app-col { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Queue: three panels ---------- */
.queue-layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.9fr) minmax(260px, 1fr); gap: 24px; min-height: calc(100vh - var(--header-h) - 200px); }
.qpanel { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-card); display: flex; flex-direction: column; min-width: 0; backdrop-filter: blur(6px); }
.qhead { font: 700 13px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.qlinks { display: grid; gap: 10px; padding: 16px; }
.qlinks a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); font-size: 17px; transition: border-color .2s, background .2s; }
.qlinks a span { color: var(--muted); font-size: 20px; }
.qlinks a:hover { border-color: rgba(118,192,67,.5); background: rgba(118,192,67,.05); color: var(--text); }
.qtip { margin-top: auto; padding: 20px 22px; border-top: 1px solid var(--line); }
.qtip h3 { font: 600 12px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.qtip p { margin: 0; color: var(--muted); font-size: 16px; }
.qtip a { color: var(--accent); }
.qbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 26px; border-bottom: 1px solid var(--line);
  font: 600 13px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.qbar > span:first-child { display: flex; align-items: center; gap: 10px; color: var(--text); }
.qsub { display: flex; justify-content: space-between; padding: 14px 26px; border-bottom: 1px solid var(--line); font: 600 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.qsub a { color: var(--muted); }
.qsub a:hover { color: var(--accent); }
.qbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
.qtitle { font: 900 italic clamp(64px, 8vw, 132px)/.85 var(--f-display); text-transform: uppercase; margin: 0; }
.qtagline { font: 600 15px/1 var(--f-mono); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin: 22px 0 0; }
.qtext { color: #b9c1c7; font-size: 18px; max-width: 46ch; margin: 22px 0 0; }
.qcta { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.qcta:empty { display: none; }
.qchars { padding: 16px; }
.qchars .chars { grid-template-columns: 1fr; }
.qchars .empty { font-size: 16px; padding: 6px; }
.qchars .slots-note { padding: 0 4px; }
@media (max-width: 1100px) {
  .queue-layout { grid-template-columns: 1fr 1fr; }
  .qmain { grid-column: 1 / -1; order: -1; min-height: 480px; }
}
@media (max-width: 700px) { .queue-layout { grid-template-columns: 1fr; } }

/* ---------- Two-step sign-in ---------- */
.ssteps { list-style: none; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 26px; padding: 0; }
.ssteps > i { width: 46px; height: 1px; background: var(--line-strong); }
.sstep { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.sstep span { width: 28px; height: 28px; border-radius: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 13px; letter-spacing: 0; }
.sstep.now { color: var(--text); }
.sstep.now span { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px -2px var(--accent-glow); }
.sstep.done { color: var(--muted); }
.sstep.done span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-discord { --b: #5865f2; background: #5865f2; border-color: #5865f2; color: #fff; box-shadow: 0 0 32px -6px rgba(88,101,242,.55); }
.btn-discord:hover { background: #6d78f5; color: #fff; box-shadow: 0 0 0 4px rgba(88,101,242,.18), 0 0 44px -4px rgba(88,101,242,.6); }
.nowrap { white-space: nowrap; }

/* ---------- Dropdowns (select) ----------
   Closed box: same chevron as the account button, with room on the right.
   Open list: browsers that support styleable selects get the account-menu look;
   others keep their native list but the same closed box. */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d969d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
select:hover { border-color: rgba(118,192,67,.5); }
select:has(option[value=""]:checked) { color: var(--muted); }   /* "Choose…" reads as a placeholder */
select option { background: var(--panel-solid); color: var(--text); }

@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; }
  select::picker-icon { display: none; }                          /* the background chevron is the arrow */
  select:open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(118,192,67,.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376c043' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 15l-6-6-6 6'/%3E%3C/svg%3E"); }
  select::picker(select) {
    background: var(--panel-solid); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: var(--radius-card);
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.8);
    padding: 6px; margin-top: 8px;
  }
  select option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius);
    font: 500 16px/1.2 var(--f-body); color: #c3cad0; background: transparent;
  }
  select option[value=""] { display: none; }                       /* placeholder isn't a real choice */
  select option:hover, select option:focus-visible { background: rgba(118,192,67,.08); color: var(--text); outline: none; }
  select option:checked { color: var(--text); }
  select option::checkmark { content: "✓"; color: var(--accent); font-weight: 700; order: 1; margin-left: auto; }
}

/* ---------- Page-to-page transitions ----------
   Moving between pages keeps the header and background in place and only cross-fades the content,
   instead of blanking and repainting the whole window. Browsers without support just navigate. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
#bg-field { view-transition-name: bg-field; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
::view-transition-old(site-header), ::view-transition-new(site-header),
::view-transition-group(site-header) { animation: none; }
::view-transition-group(bg-field), ::view-transition-old(bg-field), ::view-transition-new(bg-field) { animation: none; }
::view-transition-old(bg-field) { display: none; }   /* new page's background is already drawn, same position */
html.reduce-motion::view-transition-old(root), html.reduce-motion::view-transition-new(root) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- Staff panel (/admin) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.adm-head { margin-bottom: 8px; }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-bar .tabs { margin: 18px 0 24px; }
.adm-type select { min-width: 200px; }
.adm { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-list { display: grid; gap: 8px; max-height: calc(100vh - var(--header-h) - 120px); overflow-y: auto; position: sticky; top: calc(var(--header-h) + 20px); }
.adm-item { display: grid; gap: 6px; text-align: left; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.adm-item:hover { border-color: var(--line-strong); }
.adm-item.active { border-color: var(--accent); background: rgba(118,192,67,.06); }
.adm-item-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adm-item-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item-meta { font-size: 13px; color: var(--muted); }
.adm-none { padding: 20px 4px; }
.adm-detail { padding: clamp(20px, 2.6vw, 32px); min-height: 240px; }
.adm-who { display: flex; gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.adm-avatar { width: 72px; height: 72px; }
.adm-type-line { margin: 0 0 6px; display: flex; gap: 10px; align-items: center; font: 600 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.adm-name { font: 800 italic 34px/1 var(--f-display); text-transform: uppercase; margin: 0 0 10px; overflow-wrap: anywhere; }
.adm-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.adm-answers { margin: 0; display: grid; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.adm-answers dt { font: 600 15px/1.45 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #c3cad0; margin-bottom: 8px; }
.adm-answers dd { margin: 0; padding: 14px 18px; background: rgba(4,6,8,.55); border: 1px solid var(--line-strong); border-left: 2px solid var(--accent); font-size: 17px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #d4dade; }
.adm-others { padding: 24px 0 4px; border-bottom: 1px solid var(--line); }
.adm-others p { margin: 0 0 12px; font-size: 14px; color: #c3cad0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-decide { padding-top: 24px; }
.adm-decide .dlabel { margin-bottom: 14px; }
.adm-by { margin: 0 0 16px; }
.adm-decide .data-actions { margin-top: 4px; }
.adm-history { margin-top: 22px; color: var(--muted); font-size: 14px; }
.adm-history summary { cursor: pointer; }
.adm-history ul { padding-left: 18px; }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-list { position: static; max-height: 340px; }
  .adm-who { align-items: flex-start; }
}
