/* eq2browser.com: page layout and site components, built on the shared design kit (/design/kit.css, Liquid Glass).
   Every colour, surface, radius and font comes from the kit's --eq-* tokens, so the site follows the kit's light and
   dark themes. Nothing here sets its own palette. */
:root {
  --text: var(--eq-text-1);
  --muted: var(--eq-text-2);
  --faint: var(--eq-text-3);
  --accent: var(--eq-accent);
  --accent-ink: var(--eq-accent-ink);
  --ok: var(--eq-good-ink);
  --warn: var(--eq-warn-ink);
  --bad: var(--eq-bad-ink);
  --line: var(--eq-sep);
  --fill-1: var(--eq-fill-1);
  --fill-2: var(--eq-fill-2);
  --fill-3: var(--eq-fill-3);
  --radius: var(--eq-radius-xl);
  --radius-sm: var(--eq-radius-md);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: var(--eq-weight-regular) 15px/1.55 var(--eq-font);
  color: var(--text);
  background: var(--eq-backdrop);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-family: var(--eq-font-display); letter-spacing: var(--eq-tracking-heading); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: var(--eq-weight-heavy); letter-spacing: var(--eq-tracking-title); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: var(--eq-weight-heavy); }
h3 { font-size: 1.06rem; font-weight: var(--eq-weight-bold); }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--eq-font-mono); font-size: 0.9em; }
code { background: var(--fill-1); padding: 0.1em 0.4em; border-radius: 6px; }
kbd { background: var(--fill-2); box-shadow: inset 0 -1px 0 var(--line); padding: 0.05em 0.45em; border-radius: 6px; }
::selection { background: var(--eq-accent-soft); }
:focus-visible { outline: 2px solid var(--eq-focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important;
  margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 620px) { .hide-sm { display: none; } }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main { padding: 28px 0 64px; min-height: 70vh; }

/* ---- top bar ---------------------------------------------------------------------------------------------------- */
.topbar-slot { height: 64px; }
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  background: var(--eq-glass-tint);
  -webkit-backdrop-filter: var(--eq-glass-filter);
  backdrop-filter: var(--eq-glass-filter);
  box-shadow: inset 0 -0.5px 0 var(--eq-edge);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: var(--eq-weight-heavy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand picture { display: block; line-height: 0; }
.brand-logo { display: block; height: 32px; width: auto; max-width: 150px; }
.brand .tld, .tld { color: var(--accent-ink); }
/* The wordmark stands in for the logo until the user picks the new one (ruling 37); .brand-slot takes it then. */
.wordmark { font-size: 1.12rem; letter-spacing: -0.01em; font-weight: var(--eq-weight-heavy); color: var(--text); }
.wordmark b { font-weight: var(--eq-weight-heavy); background: linear-gradient(100deg, var(--eq-gold-1, #ffe2a8), var(--eq-gold-2, #f4c46e) 55%, var(--eq-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-slot:empty { display: none; }

/* ---- the menu (MAP §3.3): plain links and groups that open a glass menu --------------------------------------- */
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); padding: 7px 12px; border: 0; background: none; cursor: pointer;
  border-radius: var(--eq-radius-pill); font: inherit; font-size: 0.93rem; white-space: nowrap; font-weight: var(--eq-weight-medium);
  transition: color var(--eq-dur-1, .12s) ease, background-color var(--eq-dur-1, .12s) ease; }
.nav-link:hover, .nav-group.open > .nav-link { color: var(--text); background: var(--fill-1); text-decoration: none; }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--text); background: var(--fill-2); }
.nav-chev { width: 12px; height: 12px; opacity: .7; transition: transform var(--eq-dur-2, .18s) var(--eq-ease, ease); }
.nav-group.open > .nav-link .nav-chev { transform: rotate(180deg); }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 10px); left: -6px; z-index: 60; min-width: 300px; padding: 6px; display: grid; gap: 2px;
  border-radius: var(--eq-radius-lg, 18px); background: var(--eq-surface-solid, #1d1f27); -webkit-backdrop-filter: var(--eq-glass-filter);
  backdrop-filter: var(--eq-glass-filter); box-shadow: var(--eq-shadow-3, var(--eq-shadow-2)), inset 0 0 0 0.5px var(--eq-edge);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: 24px 0;
  transition: opacity var(--eq-dur-2, .18s) var(--eq-ease, ease), transform var(--eq-dur-2, .18s) var(--eq-ease, ease), visibility 0s linear var(--eq-dur-2, .18s); }
.nav-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }     /* the pointer's bridge from the button */
.nav-menu--right { left: auto; right: 0; transform-origin: calc(100% - 24px) 0; min-width: 220px; }
.nav-group.open > .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu > a, .nav-menu > button { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--eq-radius-md, 12px); color: var(--text); text-align: left;
  border: 0; background: none; font: inherit; cursor: pointer; text-decoration: none; }
.nav-menu > a.hidden { display: none; }
.nav-menu b { font-weight: var(--eq-weight-semibold); font-size: 0.93rem; }
.nav-menu span { color: var(--muted); font-size: 0.8rem; }
.nav-menu > a:hover, .nav-menu > button:hover, .nav-menu > a:focus-visible, .nav-menu > button:focus-visible { background: var(--fill-2); outline: none; }
.nav-menu > a[aria-current="page"] { background: var(--eq-accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eq-accent) 45%, transparent); }
.nav-group--account .me-chip { border: 0; cursor: pointer; font: inherit; }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-chev { transition: none; } }
.topbar .spacer { flex: 1; }
.me-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--eq-radius-pill); color: var(--text);
  background: var(--fill-1); font-size: 0.9rem; white-space: nowrap;
}
.me-chip:hover { background: var(--fill-2); text-decoration: none; }
.me-chip .avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  color: var(--eq-on-accent); background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent) 50%, var(--eq-primary-b)); }
.me-chip .avatar svg { width: 15px; height: 15px; }
.topbar .menu-btn { display: none; }
.top-search { position: relative; width: 36px; height: 36px; flex: none; }
.top-search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 2; }
/* The search box is a round button until you focus it ("/" or a click); then it opens over the menu to its left. */
.top-search input { position: absolute; right: 0; top: 0; width: 36px; height: 36px; min-height: 36px; padding: 6px 12px 6px 34px; border-radius: var(--eq-radius-pill);
  font-size: 0.88rem; cursor: pointer; transition: width 0.18s ease; }
.top-search input::placeholder { color: transparent; }
.top-search input:focus { width: min(300px, 60vw); cursor: text; z-index: 1; background: var(--eq-glass-tint-strong, var(--eq-glass)); }
.top-search input:focus::placeholder { color: var(--faint); }
.me-chip .label { display: none; }
.me-chip { padding: 5px; }
.ed-switch { flex-wrap: nowrap; flex: none; }
.ed-switch button { padding: 5px 11px; font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) {
  .topbar .wrap { gap: 12px; }
  .nav-link { padding: 7px 10px; }
  .ed-switch button { padding: 5px 8px; }
}
.subnav { margin-top: 18px; }
.subnav .tabs a { color: var(--muted); padding: 6px 14px; border-radius: var(--eq-radius-pill); font-size: 0.9rem; font-weight: var(--eq-weight-medium); }
.subnav .tabs a:hover { color: var(--text); text-decoration: none; }
.subnav .tabs a[aria-current="page"] { color: var(--text); background: var(--eq-surface-solid-2); box-shadow: var(--eq-shadow-1); }
.subnav + main { padding-top: 18px; }
@media (max-width: 520px) { .top-search { display: none; } }
@media (max-width: 520px) { .wordmark { font-size: 1rem; } .ed-switch button { padding: 5px 8px; } }
/* Phones and small windows: the menu button opens every group as a plain list. */
@media (max-width: 1080px) {
  .topbar .nav { display: none; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar.open .nav {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; gap: 4px 16px;
    position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 12px 16px 18px; max-height: calc(100svh - 64px); overflow-y: auto;
    background: var(--eq-surface-solid, #1d1f27); box-shadow: var(--eq-shadow-2);
  }
  .topbar.open .nav > .nav-link { padding: 12px; font-size: 1rem; }
  .topbar.open .nav .nav-group > .nav-link { cursor: default; padding: 12px 12px 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--faint); background: none; }
  .topbar.open .nav .nav-group > .nav-link .nav-chev { display: none; }
  .topbar.open .nav .nav-group > .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
  .topbar.open .nav .nav-menu > a { padding: 10px 12px; }
  .nav > .ed-switch { grid-column: 1 / -1; justify-self: start; margin: 4px 0 6px; }
  .me-chip .label { display: none; }
}

/* ---- surfaces: the kit's glass ---------------------------------------------------------------------------------- */
.glass {
  position: relative;
  color: var(--text);
  background: var(--eq-glass);
  -webkit-backdrop-filter: var(--eq-glass-filter);
  backdrop-filter: var(--eq-glass-filter);
  border-radius: var(--radius);
  box-shadow: var(--eq-shadow-2), inset 0 0 0 0.5px var(--eq-edge);
}
.card { padding: 22px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid > .glass + .glass { margin-top: 0; }
.card h2, .card h3 { margin-top: 0; }
.section { margin: 40px 0; }
.section-tight { margin-top: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.87rem; }
.tiny { font-size: 0.78rem; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }
.kicker { text-transform: uppercase; letter-spacing: var(--eq-tracking-caps); font: var(--eq-weight-semibold) 0.72rem/1.4 var(--eq-font-mono); color: var(--accent-ink); }
.divider { height: 0; border: 0; border-top: 0.5px solid var(--line); margin: 18px 0; }
#step-review > * + *, #step-pick > * + * { margin-top: 16px; }

/* ---- buttons and inputs: the kit's shapes ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 16px; border-radius: var(--eq-radius-pill);
  font: var(--eq-weight-medium) 0.93rem/1.2 var(--eq-font); color: var(--text); background: var(--fill-1); border: 0;
  cursor: pointer; transition: background var(--eq-dur-1) var(--eq-ease), transform var(--eq-dur-2) var(--eq-ease); white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: var(--eq-on-accent);
  background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent) 45%, var(--eq-primary-b));
  box-shadow: 0 6px 18px -6px var(--eq-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent) 45%, var(--eq-primary-b)); filter: brightness(1.06); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--fill-1); }
.btn-danger { color: var(--eq-on-accent); background: var(--eq-bad); }
.btn-danger:hover { background: var(--eq-bad); filter: brightness(1.08); }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.btn-sm { min-height: 30px; padding: 0 12px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.icon-btn { min-width: 36px; padding: 0 9px; }
input[type="text"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; min-height: 40px; font: 0.95rem/1.3 var(--eq-font); color: var(--text); background: var(--fill-1); border: 0;
  box-shadow: inset 0 0 0 1px var(--line); padding: 9px 12px; border-radius: var(--eq-radius-md); outline: none;
}
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--eq-accent), 0 0 0 4px var(--eq-accent-ring); }
input::placeholder { color: var(--faint); }
label.field { display: block; }
label.field > span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: var(--eq-weight-semibold); }
label.field em { font-style: normal; font-weight: var(--eq-weight-regular); }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input, .input-row select { flex: 1; min-width: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--eq-accent); }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { margin-top: 3px; flex: none; }
.check-row input:disabled + span { opacity: 0.55; }
.form-error { color: var(--bad); font-weight: var(--eq-weight-semibold); margin: 0; }

/* ---- pills and badges ------------------------------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--eq-radius-pill); font-size: 0.78rem; font-weight: var(--eq-weight-semibold);
  background: var(--fill-1); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--eq-good) 16%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--eq-warn) 16%, transparent); }
.pill.bad { color: var(--bad); background: color-mix(in srgb, var(--eq-bad) 14%, transparent); }
.pill.gold { color: var(--eq-rarity-legendary, var(--warn)); background: color-mix(in srgb, var(--eq-warn) 14%, transparent); }
.pill.teal { color: var(--accent-ink); background: var(--eq-accent-soft); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.live { animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.badge { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--eq-radius-lg); background: var(--fill-1); }
.badge .medal {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--eq-on-accent);
  background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent) 50%, var(--eq-primary-b)); box-shadow: 0 6px 16px -6px var(--eq-glow-soft);
}
.badge .medal svg { width: 24px; height: 24px; }
.badge.locked .medal { background: var(--fill-2); color: var(--faint); box-shadow: none; }
.badge.locked .name { color: var(--muted); }
.badge .name { font-weight: var(--eq-weight-semibold); }
.badge .desc { font-size: 0.83rem; color: var(--muted); }
.mini-badges { display: inline-flex; gap: 4px; }
.mini-badges span { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--eq-on-accent);
  background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent)); }
.mini-badges svg { width: 14px; height: 14px; }

/* ---- stats ------------------------------------------------------------------------------------------------------ */
.stat { padding: 18px 20px; }
.stat .v { font: var(--eq-weight-heavy) clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--eq-font-display); letter-spacing: var(--eq-tracking-title); font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 0.86rem; }
.stat .v.gold, .stat .v.teal, .stat .v.violet { color: var(--accent-ink); }

/* ---- tables ----------------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.t { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.t th, table.t td { padding: 10px 12px; text-align: left; border-bottom: 0.5px solid var(--line); vertical-align: top; }
table.t th { color: var(--faint); font: var(--eq-weight-semibold) 0.72rem/1.4 var(--eq-font-mono); text-transform: uppercase; letter-spacing: var(--eq-tracking-caps); white-space: nowrap; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--fill-1); }
table.t tr.me td { background: var(--eq-accent-soft); }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--fill-2); font-weight: var(--eq-weight-heavy); font-size: 0.85rem; }
.rank.r1, .rank.r2, .rank.r3 { color: var(--eq-on-accent); background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent)); }

/* ---- progress --------------------------------------------------------------------------------------------------- */
.bar { height: 8px; border-radius: 99px; background: var(--eq-accent-track); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--eq-primary-a), var(--eq-accent), var(--eq-primary-b)); transition: width 0.25s ease; }
.bar.big { height: 12px; }
.pw-meter { margin-top: 8px; height: 5px; }
.pw-meter > i[data-level="weak"] { background: var(--eq-bad); }
.pw-meter > i[data-level="ok"] { background: var(--eq-warn); }
.pw-meter > i[data-level="strong"] { background: var(--eq-good); }

/* ---- tabs (segmented, like the kit's) --------------------------------------------------------------------------- */
.tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--eq-radius-pill); background: var(--fill-1); flex-wrap: wrap; }
.tabs button { font: var(--eq-weight-medium) 0.88rem var(--eq-font); color: var(--muted); background: transparent; border: 0; padding: 6px 13px; border-radius: var(--eq-radius-pill); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--eq-surface-solid-2); box-shadow: var(--eq-shadow-1); }

/* ---- hero ------------------------------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; padding: 34px 0 10px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--eq-accent-ink), color-mix(in srgb, var(--eq-accent-ink) 55%, var(--eq-primary-b))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { aspect-ratio: 1 / 1; width: 100%; max-width: 440px; justify-self: center; filter: drop-shadow(0 24px 40px var(--eq-glow-soft)); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 240px; } }
.step { padding: 22px; }
.step-num, .step .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
  color: var(--eq-on-accent); background: linear-gradient(135deg, var(--eq-primary-a), var(--eq-accent)); }
.keepdrop ul { padding: 0; margin: 0; }
.keepdrop li { margin: 7px 0; padding-left: 26px; position: relative; list-style: none; }
.keepdrop li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 14px; height: 14px; border-radius: 50%; }
.keepdrop .keep li::before { box-shadow: inset 0 0 0 2px var(--eq-good); background: color-mix(in srgb, var(--eq-good) 20%, transparent); }
.keepdrop .drop li::before { box-shadow: inset 0 0 0 2px var(--eq-bad); background: color-mix(in srgb, var(--eq-bad) 16%, transparent); }
details.faq { border-bottom: 0.5px solid var(--line); padding: 14px 4px; }
details.faq:last-child { border-bottom: 0; }
details.faq summary { cursor: pointer; font-weight: var(--eq-weight-semibold); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p, details.faq > div { color: var(--muted); margin: 10px 0 0; }

/* ---- feed ------------------------------------------------------------------------------------------------------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 0.5px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--eq-accent-soft); color: var(--accent-ink); }
.feed .ico svg { width: 18px; height: 18px; }
.feed .when { margin-left: auto; color: var(--faint); font-size: 0.8rem; white-space: nowrap; }

/* ---- upload ----------------------------------------------------------------------------------------------------- */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 10px; padding: 44px 20px; border-radius: var(--eq-radius-xl);
  border: 1.5px dashed color-mix(in srgb, var(--eq-accent) 55%, transparent); background: var(--eq-accent-soft);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.dropzone.over { background: color-mix(in srgb, var(--eq-accent) 22%, transparent); border-color: var(--eq-accent); transform: scale(1.005); }
.dropzone .big-ico { width: 60px; height: 60px; color: var(--accent-ink); }
.dropzone h3 { font-size: 1.22rem; margin: 6px 0 0; }
.filelist { margin-top: 16px; }
.file-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 0.5px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row .name { font-weight: var(--eq-weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .meta { font-size: 0.83rem; color: var(--muted); }
.file-row.skip .name { color: var(--faint); text-decoration: line-through; }
@media (max-width: 620px) { .file-row { grid-template-columns: 22px minmax(0, 1fr); } .file-row > .row { grid-column: 2; } }
.wizard { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.wizard .w { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--eq-radius-pill); color: var(--faint);
  background: var(--fill-1); font-size: 0.88rem; font-weight: var(--eq-weight-semibold); }
.wizard .w b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: var(--fill-2); }
.wizard .w.on { color: var(--text); background: var(--eq-accent-soft); }
.wizard .w.on b { background: var(--eq-accent); color: var(--eq-on-accent); }
.wizard .w.done { color: var(--ok); }
.wizard .w.done b { background: color-mix(in srgb, var(--eq-good) 24%, transparent); color: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.count { padding: 12px 14px; border-radius: var(--eq-radius-lg); background: var(--fill-1); }
.count .v { font-weight: var(--eq-weight-heavy); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.count .v.small-v { font-size: 1rem; font-weight: var(--eq-weight-semibold); }
.count .l { color: var(--muted); font-size: 0.82rem; }
.count.keep .v { color: var(--ok); }
.count.drop .v { color: var(--bad); }
.chip-item { display: inline-block; padding: 0 7px; border-radius: 7px; background: var(--eq-accent-soft); color: var(--accent-ink); font-weight: var(--eq-weight-semibold); }
.event-json { font-family: var(--eq-font-mono); font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; }
.names-cloud { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; padding: 4px; margin-top: 10px; }
.names-cloud span { font-size: 0.78rem; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--eq-bad) 12%, transparent); color: var(--bad); text-decoration: line-through; }
.keybox { font-family: var(--eq-font-mono); font-size: 0.85rem; padding: 10px 12px; border-radius: var(--eq-radius-md); background: var(--fill-1); word-break: break-all; user-select: all; }
.link-box > * + * { margin-top: 8px; }
.notice { padding: 14px 16px; border-radius: var(--eq-radius-lg); background: var(--fill-1); }
.notice + * { margin-top: 16px; }
.notice.ok { background: color-mix(in srgb, var(--eq-good) 13%, transparent); }
.notice.warn { background: color-mix(in srgb, var(--eq-warn) 14%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--eq-bad) 12%, transparent); }
.hidden { display: none !important; }

/* ---- accounts --------------------------------------------------------------------------------------------------- */
.auth-wrap { display: grid; place-items: start center; padding-top: 6vh; }
.auth-card { width: min(460px, 100%); }
.auth-card > * + * { margin-top: 14px; }
.auth-title { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 4px 0 0; }

/* ---- play ------------------------------------------------------------------------------------------------------- */
.world { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.world > .btn { margin-top: auto; }
.world-art { width: calc(100% + 44px); max-width: none; margin: -22px -22px 0; height: 96px; display: block; }
.world-name { margin: 0; font-size: 1.5rem; }
#worlds .zone-card { display: flex; flex-direction: column; }
#worlds .zone-card > .btn { margin-top: auto; }
.world.chosen { box-shadow: var(--eq-shadow-3), inset 0 0 0 2px var(--eq-accent); }

/* ---- data browser ----------------------------------------------------------------------------------------------- */
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.search-big { position: relative; }
.search-big input { padding: 14px 16px 14px 46px; font-size: 1.05rem; border-radius: var(--eq-radius-lg); min-height: 50px; }
.search-big svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.zone-card { display: block; padding: 16px 18px; color: var(--text); transition: transform 0.12s; }
.zone-card:hover { transform: translateY(-2px); text-decoration: none; }
.zone-card .zn { font-weight: var(--eq-weight-bold); margin-bottom: 4px; }
.zone-card .zs { display: flex; gap: 12px; color: var(--muted); font-size: 0.82rem; flex-wrap: wrap; }
.dialog-line { padding: 10px 12px; border-left: 3px solid var(--eq-accent); background: var(--eq-accent-soft); border-radius: 0 10px 10px 0; margin: 8px 0; }
.dialog-line .mode { font-size: 0.74rem; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- bounties --------------------------------------------------------------------------------------------------- */
.bounty { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.bounty .reward { font-weight: var(--eq-weight-heavy); color: var(--accent-ink); }
.inline-ico { width: 16px; height: 16px; vertical-align: -3px; }
.bounty.done { opacity: 0.6; }

/* ---- empty and loading states ----------------------------------------------------------------------------------- */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--faint); margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--fill-1), var(--fill-2), var(--fill-1)); background-size: 200% 100%;
  animation: shimmer 1.2s infinite; border-radius: 10px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fill-3); border-top-color: var(--eq-accent); animation: spin 0.8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- toast ------------------------------------------------------------------------------------------------------ */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: var(--eq-radius-lg); background: var(--eq-glass-tint-strong); -webkit-backdrop-filter: var(--eq-glass-filter);
  backdrop-filter: var(--eq-glass-filter); box-shadow: var(--eq-shadow-3), inset 0 0 0 0.5px var(--eq-edge); font-size: 0.92rem; animation: rise 0.2s ease; }
.toast.ok { box-shadow: var(--eq-shadow-3), inset 3px 0 0 var(--eq-good); }
.toast.bad { box-shadow: var(--eq-shadow-3), inset 3px 0 0 var(--eq-bad); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---- footer ----------------------------------------------------------------------------------------------------- */
.footer { padding: 26px 0 36px; color: var(--faint); font-size: 0.88rem; box-shadow: inset 0 0.5px 0 var(--line); }
.footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ---- the member games: edition check and art review ------------------------------------------------------------- */
.game-goal { min-width: 220px; flex: 0 1 280px; }
.game-goal .bar { margin-top: 6px; }
.game-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.game-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.game-title { margin: 12px 0 4px; font-size: 1.5rem; }
.game-q { color: var(--muted); margin: 0 0 16px; }
.game-choices { display: grid; gap: 8px; }
.game-choices .btn { justify-content: flex-start; }
.game-choices kbd { margin-right: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-toggle { font: var(--eq-weight-medium) 0.86rem var(--eq-font); color: var(--text); background: var(--fill-1); border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: var(--eq-radius-pill); box-shadow: inset 0 0 0 1px var(--line); }
.chip-toggle:hover { background: var(--fill-2); }
.chip-toggle[aria-pressed="true"] { color: var(--accent-ink); background: var(--eq-accent-soft); box-shadow: inset 0 0 0 1.5px var(--eq-accent); }
.chip-toggle:focus-visible, .thumbs button:focus-visible { outline: 2px solid var(--eq-accent); outline-offset: 2px; }
.card-list { margin: 0; padding-left: 1.1em; }
.card-list li { margin: 2px 0; }
.game-card .kv { margin: 6px 0 4px; }
.game-card details.faq { padding: 12px 2px 4px; }
.viewer { position: relative; margin: 12px 0; display: grid; place-items: center; gap: 8px; padding: 16px; border-radius: var(--eq-radius-lg);
  background: radial-gradient(circle at 50% 40%, var(--fill-2), var(--fill-1) 70%); }
.viewer img { width: min(100%, 384px); height: auto; aspect-ratio: 1; object-fit: contain; image-rendering: auto; }
.viewer-msg { position: absolute; inset: auto 16px 44px; padding: 10px 12px; border-radius: var(--eq-radius-md); background: var(--eq-glass-tint-strong); text-align: center; font-size: 0.9rem; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { padding: 3px; border: 0; border-radius: var(--eq-radius-md); background: var(--fill-1); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); line-height: 0; }
.thumbs button[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--eq-accent); background: var(--eq-accent-soft); }
.thumbs img { width: 56px; height: 56px; object-fit: contain; }
.skeleton-text { display: inline-block; width: 12em; height: 1em; border-radius: 8px; background: var(--fill-2); }
@media (hover: none) { .hide-touch { display: none; } }
@media (max-width: 860px) {
  .game-wrap { grid-template-columns: minmax(0, 1fr); }
  .game-goal { flex-basis: 100%; }
  /* Phones: the answers ride along at the bottom of the screen, so the thing being judged stays in view. */
  .game-side { top: auto; bottom: calc(var(--eq-hub-reserve, 52px) + env(safe-area-inset-bottom, 0px)); z-index: 5; max-height: 66vh; padding: 12px; background: var(--eq-glass-tint-strong, var(--eq-glass)); }
  .game-side > h3, .game-side > .tiny { display: none; }
  .game-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .game-choices .btn { justify-content: center; min-height: 48px; padding: 0 8px; font-size: 0.9rem; white-space: normal; line-height: 1.2; text-align: center; }
  .game-side kbd { display: none; }
}

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* A mounted teammate app that isn't running (serve.py mount_down). */
.mount-down { max-width: 560px; margin: 48px auto; }
/* Ruling 20: an edition showing EMU data says so. */
.fallback-note { display: flex; gap: 8px; align-items: baseline; color: var(--warn); }
.fallback-note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }

/* ---- landing (logged out): the kit's .eq-hero, then chapters (creative/VISUAL-PLAN.md §2.1) ---------------------- */
#landing { margin-top: -92px; }                /* under the glass top bar: main's padding (28) + the bar's slot (64) */
.is-member #landing { display: none; }
.is-member #dashboard.hidden { display: block !important; }
.landing-hero {
  justify-items: center; text-align: center; padding-top: 110px;
  /* the poster: a CSS aurora over the night sea, drawn before anything loads; the live scene fades in over it */
  background:
    radial-gradient(60% 34% at 50% 64%, rgba(224, 176, 74, .16), transparent 70%),
    radial-gradient(70% 55% at 15% 8%, #0d3566 0, transparent 60%),
    radial-gradient(60% 50% at 88% 12%, #351a5e 0, transparent 60%),
    linear-gradient(180deg, #04060b 0%, #0b0f1c 63.6%, #070a13 64%, #04060b 100%);
}
.landing-mark {
  position: absolute; left: 50%; top: max(78px, 9svh); z-index: 0; width: auto; height: min(32svh, 52vw); max-height: 400px;
  transform: translateX(-50%); pointer-events: none; user-select: none;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .55)) drop-shadow(0 0 60px rgba(224, 176, 74, .12));
}
.landing-hero .eq-hero__content { z-index: 1; align-items: center; margin-inline: auto; width: min(100%, 760px); }
.landing-hero h1.eq-display { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.06; }
.landing-hero .eq-hero__actions { justify-content: center; }
.landing-hero h1 { text-wrap: balance; }
.invite-paste { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; text-align: left; margin-top: 6px; }
.invite-paste .field { grid-column: 1; }
.invite-paste .invite-error { grid-column: 1 / -1; margin: 0; color: var(--bad); }
@media (prefers-reduced-motion: no-preference) {
  .landing-mark { animation: mark-float 8s ease-in-out infinite; }
  @keyframes mark-float { 50% { transform: translate(-50%, -10px); } }
}
@media (max-height: 680px) and (min-width: 701px) { .landing-mark { height: 25svh; top: 74px; } }
@media (max-width: 480px) { .invite-paste { grid-template-columns: 1fr; } .invite-paste .eq-btn { width: 100%; } }

.landing-chapters { padding-top: 24px; }
.chapter { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin: clamp(48px, 9vw, 110px) 0; }
.chapter:nth-child(even) .chapter-art { order: 2; }
.chapter-body > * + * { margin-top: 14px; }
.chapter-body h2 { margin: 0; }
/* key-art slots: a glass frame holding an aurora until the Higgsfield key art lands */
.chapter-art { aspect-ratio: 4 / 3; border-radius: var(--eq-radius-xl); box-shadow: var(--eq-shadow-2), inset 0 0 0 .5px var(--eq-edge); will-change: transform; }
.art-worlds { background: radial-gradient(45% 55% at 22% 60%, color-mix(in srgb, var(--eq-edition-origins) 55%, transparent), transparent 70%),
  radial-gradient(45% 55% at 50% 35%, color-mix(in srgb, var(--eq-edition-live) 50%, transparent), transparent 70%),
  radial-gradient(45% 55% at 80% 62%, color-mix(in srgb, var(--eq-edition-eq2emu) 55%, transparent), transparent 70%), linear-gradient(160deg, #0b1630, #120c26); }
.art-players { background: radial-gradient(60% 50% at 30% 30%, rgba(76, 195, 255, .35), transparent 70%), radial-gradient(50% 45% at 75% 75%, rgba(224, 176, 74, .4), transparent 70%),
  linear-gradient(200deg, #0a1a2c, #08101c); }
.art-invite { background: radial-gradient(40% 40% at 50% 50%, rgba(224, 176, 74, .6), transparent 70%), radial-gradient(70% 60% at 50% 60%, rgba(53, 26, 94, .8), transparent 75%),
  linear-gradient(180deg, #0b0f1c, #05070c); }
.world-pick { border-top: 3px solid var(--ed-a); }
.world-pick h3 { margin: 0 0 6px; color: var(--ed-a); }
.ed-origins { --ed-a: var(--eq-edition-origins); }      /* the kit's edition accents: Origins sea, Live gold, EMU blue */
.ed-live { --ed-a: var(--eq-edition-live); }
.ed-eq2emu { --ed-a: var(--eq-edition-eq2emu); }
.totals .total { display: grid; gap: 2px; text-align: center; }
.totals .eq-fig { font-size: clamp(26px, 3.4vw, 36px); }
/* chapters materialise as they enter (only when scripts run and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .chapter { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--eq-ease, ease), transform .7s var(--eq-ease, ease); }
  .js-reveal .chapter.in { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter:nth-child(even) .chapter-art { order: 0; }
  .chapter-art { aspect-ratio: 16 / 9; }
}

/* The 3D Aegis (landing/aegis.js) takes the still one's place once it has drawn. */
.landing-aegis { position: absolute; left: 50%; top: max(60px, 7svh); z-index: 0; height: min(38svh, 62vw); max-height: 470px; aspect-ratio: 1;
  transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity 1.2s var(--eq-ease, ease); }
.aegis-live .landing-aegis { opacity: 1; }
.landing-mark { transition: opacity 1.2s var(--eq-ease, ease); }
.aegis-live .landing-mark { opacity: 0; }
@media (max-height: 680px) and (min-width: 701px) { .landing-aegis { height: 30svh; top: 60px; } }
@media (max-width: 699px), (prefers-reduced-motion: reduce) { .landing-aegis { display: none; } }

/* Wide screens (CR-1a, CR-1b): the sea shows. The headline sits on the scene, shaded from below, with no glass card
   (phones keep the card). The Aegis is about 37% of the screen tall, its base just above the horizon at 64% from the
   top, so the gold streak on the water runs out from under it. The 3D canvas is square and the shield fills 81% of it. */
@media (min-width: 700px) {
  .landing-hero { --mark-h: min(37svh, 46vw); --mark-base: 62svh; padding-bottom: max(40px, 5svh); }
  .landing-hero::after { background: linear-gradient(180deg, rgba(4, 6, 11, .5) 0%, rgba(4, 6, 11, 0) 20%, rgba(4, 6, 11, 0) 60%, rgba(4, 6, 11, .78) 100%); }
  .landing-mark { top: calc(var(--mark-base) - var(--mark-h)); height: var(--mark-h); max-height: none; }
  .landing-aegis { top: calc(var(--mark-base) - var(--mark-h) / 2 - var(--mark-h) / 1.62); height: calc(var(--mark-h) / 0.81); max-height: none; }
  .landing-hero .eq-hero__content.eq-glass { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    width: min(100%, 1100px); padding: 0 16px; gap: 10px; }
  .landing-hero .eq-hero__content.eq-glass::before, .landing-hero .eq-hero__content.eq-glass::after { display: none; }
  .landing-hero h1.eq-display { font-size: clamp(28px, 3.9vw, 56px); white-space: nowrap; text-wrap: nowrap;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .6); }
  .landing-hero .eq-hero__sub { text-shadow: 0 1px 12px rgba(0, 0, 0, .8); color: rgba(235, 240, 255, .86); }
  .landing-hero .invite-paste { width: min(100%, 560px); padding: 14px; border-radius: var(--eq-radius-lg);
    background: var(--eq-glass); -webkit-backdrop-filter: var(--eq-glass-filter); backdrop-filter: var(--eq-glass-filter); }
}
@media (min-width: 700px) and (max-height: 600px) { .landing-hero { --mark-h: 30svh; --mark-base: 60svh; } }

/* ---- Play page hero (CR-3): Antonica's coast at sunset behind the world cards ------------------------------------- */
.play-main { padding-top: 0; }
.play-hero { margin-top: -64px; padding-top: 110px; --eq-hero-focus: 62% 60%; }
.play-hero .eq-hero__poster { transform-origin: 66% 74%; transition: transform .65s cubic-bezier(.3, .0, .2, 1), filter .65s ease; }
.play-hero .eq-hero__content { padding-bottom: 120px; }
.play-hero h1, .play-hero .eq-hero__sub { text-shadow: 0 2px 18px rgba(0, 0, 0, .75); }
.play-hero .eq-hero__sub { color: rgba(240, 242, 255, .88); }
.play-hero.dolly .eq-hero__poster { transform: scale(1.16); filter: brightness(.7); }    /* toward the dock, as the game opens */
.play-worlds { position: relative; z-index: 2; margin-top: -110px; padding-bottom: 64px; }
@media (max-width: 760px) { .play-hero .eq-hero__content { padding-bottom: 100px; } .play-worlds { margin-top: -90px; } }
/* World card art in the kit's edition colours (Origins sea, Live gold, EMU blue) */
/* CR-3a: the cards stay glass; the edition colour is a 5 px rim on top and a soft tint fading down from it. */
.world::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none; border-radius: inherit;
  border-top: 5px solid var(--ed-a, var(--eq-accent));
  background: linear-gradient(180deg, color-mix(in srgb, var(--ed-a, var(--eq-accent)) 18%, transparent), transparent); }
.world > * { position: relative; }

/* ---- asset voting (ruling 39): swipe cards and big Yes / No -------------------------------------------------------
   The stage has a fixed size from the screen, so nothing moves under the finger; only transform and opacity animate. */
.vote-main { padding-top: 14px; padding-bottom: 24px; }
.vote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vote-title h1 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
.vote-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin-bottom: 6px; }
.vote-kinds::-webkit-scrollbar { display: none; }
.vote-kinds .chip-toggle { white-space: nowrap; flex: none; }
.vote-kinds .chip-toggle[aria-selected="true"] { color: var(--accent-ink); background: var(--eq-accent-soft); box-shadow: inset 0 0 0 1.5px var(--eq-accent); }
.vote-stage {
  --card-w: min(92vw, 420px, calc((100svh - 385px) / 1.3));
  position: relative; width: var(--card-w); height: calc(var(--card-w) * 1.3); margin: 8px auto 0;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.vc {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--eq-radius-xl);
  background: var(--eq-surface-solid, #121624); box-shadow: var(--eq-shadow-2), inset 0 0 0 .5px var(--eq-edge);
  transform-origin: 50% 90%; will-change: transform; contain: layout paint;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .26s ease;
  --drag: 0;
}
.vc[data-pos="0"] { z-index: 10; }
.vc[data-pos="1"] { z-index: 9; transform: translate3d(0, 12px, 0) scale(.955); pointer-events: none; }
.vc[data-pos="2"] { z-index: 8; transform: translate3d(0, 24px, 0) scale(.91); pointer-events: none; }
.vc[data-pos="3"], .vc[data-pos="4"], .vc[data-pos="5"] { z-index: 7; transform: translate3d(0, 24px, 0) scale(.91); opacity: 0; pointer-events: none; }
.vc.empty { visibility: hidden; }
.vc.dragging, .vc.no-anim { transition: none; }
.vc.dragging { cursor: grabbing; }
.vc.fly { z-index: 11; opacity: 0; pointer-events: none; transition: transform .26s cubic-bezier(.4, 0, .9, .6), opacity .26s ease-in; }
.vc-img { position: relative; flex: none; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #232a3d, #10131d 72%); }
.vc-img img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.vc-img img.pixel, .vote-views img.pixel, .mine-tile img.pixel { image-rendering: pixelated; }
.vc-meta { flex: 1; min-height: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.vc-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); font-weight: var(--eq-weight-semibold); }
.vc-title { margin: 0; font-size: 1.15rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-sub { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-stamp { position: absolute; top: 22px; padding: 4px 14px; border: 3px solid currentColor; border-radius: 10px; font: 800 1.7rem/1 var(--eq-font);
  letter-spacing: .06em; pointer-events: none; opacity: 0; }
.vc-stamp.yes { left: 20px; color: var(--eq-good, #3ccf7e); transform: rotate(-14deg); opacity: clamp(0, var(--drag), 1); }
.vc-stamp.no { right: 20px; color: var(--eq-bad, #ff5d6c); transform: rotate(14deg); opacity: clamp(0, calc(var(--drag) * -1), 1); }
.vc.fly-yes .vc-stamp.yes, .vc.fly-no .vc-stamp.no { opacity: 1; }
.vote-empty { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; text-align: center; padding: 24px;
  border-radius: var(--eq-radius-xl); background: var(--eq-glass); box-shadow: var(--eq-shadow-2), inset 0 0 0 .5px var(--eq-edge); }
.vote-actions { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 22px); margin: 22px auto 6px; }
.vote-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; color: var(--text);
  width: 72px; height: 72px; border-radius: 50%; background: var(--eq-glass); box-shadow: var(--eq-shadow-2), inset 0 0 0 1px var(--line);
  transition: transform .12s ease, box-shadow .2s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vote-btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vote-btn span { display: none; font: var(--eq-weight-semibold) 1.05rem var(--eq-font); }
.vote-btn.small { width: 50px; height: 50px; }
.vote-btn.small svg { width: 22px; height: 22px; stroke-width: 2.2; }
.vote-btn.yes { color: var(--eq-good, #3ccf7e); box-shadow: var(--eq-shadow-2), inset 0 0 0 2px color-mix(in srgb, var(--eq-good, #3ccf7e) 70%, transparent); }
.vote-btn.no { color: var(--eq-bad, #ff5d6c); box-shadow: var(--eq-shadow-2), inset 0 0 0 2px color-mix(in srgb, var(--eq-bad, #ff5d6c) 70%, transparent); }
.vote-btn:active { transform: scale(.9); }
.vote-btn:focus-visible { outline: 3px solid var(--eq-focus, var(--eq-accent)); outline-offset: 3px; }
@media (hover: hover) {
  .vote-btn.yes:hover { box-shadow: var(--eq-shadow-3), inset 0 0 0 2px var(--eq-good, #3ccf7e), 0 0 28px -4px color-mix(in srgb, var(--eq-good, #3ccf7e) 60%, transparent); transform: translateY(-2px); }
  .vote-btn.no:hover { box-shadow: var(--eq-shadow-3), inset 0 0 0 2px var(--eq-bad, #ff5d6c), 0 0 28px -4px color-mix(in srgb, var(--eq-bad, #ff5d6c) 60%, transparent); transform: translateY(-2px); }
  .vote-btn:active { transform: scale(.92); }
}
@media (min-width: 700px) and (hover: hover) {
  /* PC: big pill buttons with words */
  .vote-btn.yes, .vote-btn.no { width: 168px; border-radius: 999px; }
  .vote-btn.yes span, .vote-btn.no span { display: inline; }
}
.vote-hint { text-align: center; margin: 4px 0 0; }
.show-touch { display: none; }
@media (hover: none) { .show-touch { display: inline; } }
.vote-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, #04060b 62%, transparent); }
.vote-sheet-card { width: min(100%, 860px); max-height: calc(100svh - 32px); overflow: auto; }
.vote-views { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.vote-views figure { margin: 0; }
.vote-views img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--eq-radius-md); background: #10131d; display: block; }
.vote-dev { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 70; padding: 6px 12px; border-radius: 999px;
  font: .78rem var(--eq-font-mono); background: var(--eq-glass-tint-strong, #111); box-shadow: var(--eq-shadow-2); }
@media (max-width: 520px) {
  .vote-main { padding-top: 6px; }
  .vote-title h1 { font-size: 1.15rem; }
  .vote-stage { --card-w: min(92vw, 420px, calc((100svh - 315px) / 1.3)); }
  .vote-page .subnav { display: none; }      /* phones: the card gets the room; My votes is a button in the header */
  .vote-actions { margin-top: 18px; }
}

/* ---- My votes ---------------------------------------------------------------------------------------------------- */
.mine-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.mine-tile { position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer; color: var(--text);
  border-radius: var(--eq-radius-lg); overflow: hidden; background: var(--eq-surface-solid, #121624); box-shadow: var(--eq-shadow-1), inset 0 0 0 .5px var(--eq-edge);
  transition: transform .15s ease, opacity .2s ease; content-visibility: auto; contain-intrinsic-size: 140px 190px; }
.mine-tile:hover { transform: translateY(-2px); }
.mine-tile:focus-visible { outline: 3px solid var(--eq-focus, var(--eq-accent)); outline-offset: 2px; }
.mine-tile .thumb { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #232a3d, #10131d 72%); }
.mine-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mine-tile .cap { padding: 8px 10px; display: grid; gap: 1px; }
.mine-tile .cap b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-tile .cap span { font-size: .72rem; color: var(--muted); }
.mine-tile.gone { opacity: 0; transform: scale(.94); pointer-events: none; }
.mine-badge { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--eq-glass-tint-strong, #111); }
.mine-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mine-badge.yes { color: var(--eq-good, #3ccf7e); }
.mine-badge.no { color: var(--eq-bad, #ff5d6c); }
.mine-more { display: grid; place-items: center; padding: 18px; }
.mine-dialog .vote-views { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.vc-play { position: absolute; left: 50%; top: calc(var(--card-w) / 2); z-index: 2; width: 64px; height: 64px; border-radius: 50%; border: 0;
  transform: translate(-50%, -50%); place-items: center; color: #fff; cursor: pointer; background: color-mix(in srgb, #04060b 55%, transparent);
  box-shadow: var(--eq-shadow-2), inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.vc-play svg { width: 28px; height: 28px; fill: currentColor; }
.vc .vc-play { display: none; }
.vc.has-audio .vc-play { display: grid; }

/* ---- admin page (ruling 40) --------------------------------------------------------------------------------------- */
input.adm-search { width: min(100%, 260px); }
.adm-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; margin-top: 14px; }
.adm-list { padding: 8px; max-height: calc(100svh - 260px); overflow: auto; }
.adm-row { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); cursor: pointer;
  padding: 10px 12px; border-radius: var(--eq-radius-md); }
.adm-row:hover { background: var(--fill-1); }
.adm-row[aria-selected="true"] { background: var(--eq-accent-soft); box-shadow: inset 0 0 0 1px var(--eq-accent); }
.adm-row:focus-visible { outline: 2px solid var(--eq-focus, var(--eq-accent)); outline-offset: 1px; }
.adm-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.adm-detail { position: sticky; top: 84px; }
.adm-name { margin: 0; }
.adm-perms { display: grid; gap: 4px; }
.adm-perm { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; box-shadow: inset 0 -.5px 0 var(--line); }
.adm-perm--wide { flex-wrap: wrap; }
.adm-perm b { font-weight: var(--eq-weight-semibold); }
.adm-help { display: block; }
.adm-num { width: 84px; text-align: right; }
.adm-actions { padding-top: 6px; }
.btn-danger { color: var(--eq-bad, #ff5d6c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eq-bad, #ff5d6c) 60%, transparent); }
@media (max-width: 860px) {
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-list { max-height: 50svh; }
  .adm-detail { position: static; }
}

/* VT-3: Yes, No and More dim while the deck waits for cards, so a press that can't count doesn't look ignored. */
.vote-btn[aria-disabled="true"] { opacity: .38; filter: saturate(.4); }

/* ---- What we have (ruling 41) ------------------------------------------------------------------------------------ */
.what-page .section { margin-top: 30px; }
.what-page h2 { margin: 0 0 4px; }
.what-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.what-tile { display: grid; gap: 2px; padding: 16px 18px; }
.what-tile--big { grid-column: span 2; }
.what-tile--big .what-num { font-size: clamp(2rem, 4.2vw, 3rem); }
.what-num { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: var(--eq-weight-heavy); letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.what-num--none { color: var(--faint); font-weight: var(--eq-weight-medium); }
.what-worlds, .what-kind { display: grid; grid-template-columns: minmax(130px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.what-worlds { margin: 14px 0 6px; padding: 0 18px; }
.what-world { font: var(--eq-weight-semibold) 0.74rem/1.4 var(--eq-font-mono); text-transform: uppercase; letter-spacing: var(--eq-tracking-caps); color: var(--ed-a); }
.what-kinds { display: grid; gap: 6px; }
.what-kind { padding: 12px 18px; border-radius: var(--eq-radius-md); }
.what-kind__label { font-weight: var(--eq-weight-semibold); }
.what-kind .what-num { font-size: 1.3rem; }
.what-cell { display: grid; gap: 0; box-shadow: inset 2px 0 0 color-mix(in srgb, var(--ed-a) 60%, transparent); padding-left: 10px; }
.what-cell__world { display: none; font-size: 0.72rem; color: var(--ed-a); font-weight: var(--eq-weight-semibold); }
.what-sources { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.what-src { display: grid; gap: 6px; align-content: start; }
.what-src p { margin: 0; }
.what-src__head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.what-src__worlds { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.what-pill { color: var(--ed-a); background: color-mix(in srgb, var(--ed-a) 14%, transparent); }
.what-src__foot { margin-top: auto; }
@media (max-width: 620px) {
  .what-tile--big { grid-column: span 1; }
  .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .what-worlds { display: none; }
  .what-kind { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .what-kind__label { grid-column: 1 / -1; }
  .what-cell__world { display: block; }
}

/* ---- the member Home: the directory (MAP §3.3) --------------------------------------------------------------------- */
.landing-wordmark { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: var(--eq-weight-heavy); letter-spacing: -0.01em; color: var(--text); }
.landing-wordmark b { font-weight: inherit; background: linear-gradient(100deg, var(--eq-gold-1, #ffe2a8), var(--eq-gold-2, #f4c46e) 55%, var(--eq-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.have-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 24px; color: var(--text); margin-bottom: 26px;
  transition: transform var(--eq-dur-2, .18s) var(--eq-ease, ease), box-shadow var(--eq-dur-2, .18s) var(--eq-ease, ease); }
.have-strip:hover { text-decoration: none; transform: translateY(-2px); }
.have-strip__items { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.have-fig { display: grid; line-height: 1.15; }
.have-fig b { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: var(--eq-weight-heavy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.have-fig span { color: var(--muted); font-size: 0.8rem; }
.have-strip__more { color: var(--accent-ink); white-space: nowrap; }
.dash-h { margin: 0 0 12px; font-size: 1.1rem; }
.dash-dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; align-items: start; }
.dash-card-h { margin: 0; font-size: 1.05rem; }
.dash-link { display: grid; gap: 1px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--eq-radius-md); color: var(--text); }
.dash-link:hover { background: var(--fill-1); text-decoration: none; }
.dash-link b { font-weight: var(--eq-weight-semibold); }
.dash-link span { color: var(--muted); font-size: 0.82rem; }
.dash-link.hidden { display: none; }
.dash-chips { gap: 6px; }
@media (max-width: 1000px) { .dash-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .dash-dir { grid-template-columns: minmax(0, 1fr); }
  .have-strip { grid-template-columns: minmax(0, 1fr); }
  .have-strip__items { gap: 8px 20px; }
}
.db-count { display: grid; gap: 2px; align-content: start; }
.db-num { font-size: 1.6rem; font-weight: var(--eq-weight-heavy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
