/* Debatteur – design system.
   Dark ink palette, violet accent, gold for ratings. Spacious, flat, no gradients. */
:root {
  --bg: #1a1c26;
  --bg-side: #12131a;
  --bg-fly: #1d1f2a;
  --surface: #232634;
  --surface-2: #2b2f40;
  --surface-3: #363b50;
  --line: #2f3346;
  --text: #f1f2f7;
  --muted: #a3a9be;
  --faint: #747a92;
  --accent: #7b5cff;
  --accent-hi: #8f74ff;
  --accent-edge: #5236d4;
  --accent-soft: rgba(123, 92, 255, .14);
  --gold: #f4b740;
  --gold-edge: #b9800f;
  --pro: #3b9eff;
  --pro-soft: rgba(59, 158, 255, .14);
  --contra: #ff6b4a;
  --contra-soft: rgba(255, 107, 74, .14);
  --ok: #35c2a5;
  --danger: #ef4d5a;
  --r: 12px;
  --r-sm: 8px;
  --side-w: 176px;
  --font: 'Figtree', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 800; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ico { width: 22px; height: 22px; flex: none; }
.flag { width: 21px; height: 14px; border-radius: 2px; display: inline-block; vertical-align: -1px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- Sidebar ---------- */
.side {
  position: fixed; inset-block: 0 0; inset-inline: 0 auto; width: var(--side-w); z-index: 40;
  background: var(--bg-side); display: flex; flex-direction: column; padding: 14px 10px 14px;
}
/* the logo is the kit's horizontal SVG (mark + "debatteur" as outlines): sized by its height only */
.side-logo { display: flex; align-items: center; padding: 8px 10px 20px; line-height: 0; }
.side-logo .side-word { display: inline-flex; }
.side-logo img { display: block; width: auto; height: 23px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px;
  border-radius: var(--r-sm); font-weight: 700; font-size: 15px; color: #d9dbe5;
}
.nav-link .ico { width: 26px; height: 26px; }
.nav-item.fly > .nav-link, .nav-link.active { background: #1f212c; color: #fff; }
.flyout {
  display: none; position: absolute; inset-inline-start: 100%; top: 0; bottom: 0; width: 232px;
  background: var(--bg-fly); border-inline-start: 1px solid var(--line); padding: 20px 10px; flex-direction: column; gap: 2px;
  box-shadow: 12px 0 30px rgba(0,0,0,.35);
}
.nav-item.fly > .flyout { display: flex; }
/* invisible bridge over the sidebar padding so the pointer never "falls off" on its way right */
.nav-item { margin-inline-end: -10px; padding-inline-end: 10px; }
.fly-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 700; color: #dfe1ea; }
.fly-link:hover { background: var(--surface); color: #fff; }
.fly-link .ico { width: 24px; height: 24px; }
.fly-link .soon { margin-inline-start: auto; font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.fly-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-guest { font-size: 12.5px; color: var(--faint); padding: 0 6px 4px; line-height: 1.35; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-sm); min-width: 0; }
.side-user:hover { background: #1f212c; }
.side-user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.side-icons { display: flex; gap: 4px; padding: 0 2px; }
.me-card { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 0 4px; min-width: 0; }
.me-av .av { width: 34px; height: 34px; border-radius: 8px; font-size: 15px; }
.me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-name { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* the member's plan emblem right after a name (ui.js planBadge / nameWithPlan): small, no background, 14–17 px */
.plan-badge { display: inline-grid; flex: none; vertical-align: middle; position: relative; top: -.06em; margin-inline-start: .28em; line-height: 0; cursor: default; }
.plan-badge .pg { width: clamp(14px, 1.05em, 17px); height: clamp(14px, 1.05em, 17px); filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45)); }
.me-name .plan-badge { margin-inline-start: 1px; }
.me-sub { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.me-coins { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }
.me-coins .ico { width: 14px; height: 14px; }
.me-coins:hover { color: var(--text); }
.me-actions { display: flex; gap: 2px; }
.me-actions a, .me-actions button { flex: 1; height: 40px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); transition: background .12s, color .12s; }
.me-actions a:hover, .me-actions button:hover { background: #1f212c; color: #fff; }
.me-actions #side-logout:hover { color: #ff8a93; }
.me-actions .ico { width: 21px; height: 21px; }
.side-icons button, .side-icons a { width: 38px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
.side-icons button:hover, .side-icons a:hover { background: #1f212c; color: #fff; }
.side-icons .ico { width: 20px; height: 20px; }

.topbar { display: none; }
.main { margin-inline-start: var(--side-w); min-height: 100vh; }

@media (max-width: 899px) {
  /* phones: the top bar is the Debatteur logo alone (mark and wordmark, top left) – no background, no border, no
     balance, no bell – and only on the home page (nav.js topBarShown); the menu is the bottom bar (.bnav below), the
     sidebar is gone. The balance and the notifications are in the "Me" tab. */
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 30; height: 56px; align-items: center;
    padding: 0 max(16px, env(safe-area-inset-left, 0px)); background: none; border: 0; box-shadow: none;
  }
  .topbar .side-logo { padding: 4px 0; }
  .topbar .side-logo img { height: 22px; }
  .side { display: none; }
  .main { margin-inline-start: 0; }
}

/* ---------- Phone navigation (public/js/nav.js): a sticky bottom bar of five tabs (Learn | Train | Play | Shop | Me),
   Play larger in the middle, its round button rising --bn-rise above the bar; a tab opens a drawer from the left with
   its pages and the gold Membership entry pinned at its bottom. Same code for the mobile web and the app (safe areas
   through --sa-*). ---------- */
:root { --bn-h: 60px; --bn-lift: 0px; --bn-rise: 0px; }
.bnav, .bdrawer, .bd-scrim { display: none; }
@media (max-width: 899px) {
  html.bnav-on { --bn-lift: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px)); --bn-rise: 18px; }
  html.bnav-on .main { padding-bottom: calc(var(--bn-lift) + var(--bn-rise)); }
  .bnav {
    display: flex; position: fixed; z-index: 95; inset-inline: 0; bottom: 0; height: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    background: var(--bg-side); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(0, 0, 0, .28);
  }
  .bnav[hidden] { display: none; }
  .bn-tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: var(--bn-h); padding: 6px 2px 5px; border-radius: 12px; color: var(--faint); font-size: 11px; font-weight: 700; line-height: 1.1;
    -webkit-tap-highlight-color: transparent; position: relative;
  }
  .bn-ico { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background .15s; }
  .bn-ico > .ico { width: 24px; height: 24px; opacity: .78; filter: saturate(.75); transition: opacity .15s, filter .15s, transform .15s; }
  .bn-ico > .bn-av { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; opacity: .85; }
  .bn-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bn-tab.on, .bn-tab.open { color: #fff; }
  .bn-tab.on .bn-ico, .bn-tab.open .bn-ico { background: var(--accent-soft); }
  .bn-tab.on .bn-ico > .ico, .bn-tab.open .bn-ico > .ico, .bn-tab.on .bn-av, .bn-tab.open .bn-av { opacity: 1; filter: none; }
  .bn-tab.on .bn-av, .bn-tab.open .bn-av { box-shadow: 0 0 0 2px var(--accent-hi); }
  .bn-tab:active .bn-ico > .ico { transform: scale(.92); }
  .bn-badge.bell-n { top: -3px; inset-inline-end: 2px; box-shadow: 0 0 0 2px var(--bg-side); }
  /* Play: the larger round button in the middle; it rises above the bar, its label sits on the line of the others */
  .bn-tab.bn-main { flex-grow: 1.15; color: var(--muted); }
  .bn-tab.bn-main.on, .bn-tab.bn-main.open { color: #fff; }
  .bn-main .bn-ico {
    width: 50px; height: 50px; margin: -26px 0 4px; border-radius: 50%; background: linear-gradient(160deg, var(--accent-hi), var(--accent-edge));
    box-shadow: 0 0 0 4px var(--bg-side), 0 8px 18px rgba(82, 54, 212, .45);
  }
  /* the play triangle in gold (nav.js barIcon playGold: the gold gradient of the Membership entry) with a soft gold glow;
     a dark violet edge shadow keeps it crisp on the violet disc */
  .bn-tab.bn-main .bn-ico > .ico, .bn-tab.bn-main.on .bn-ico > .ico, .bn-tab.bn-main.open .bn-ico > .ico {
    width: 24px; height: 24px; margin-inline-start: 3px; color: var(--gold); opacity: 1;
    filter: drop-shadow(0 1px 1px rgba(36, 18, 96, .6)) drop-shadow(0 0 5px rgba(244, 183, 64, .5));
  }
  .bn-tab.bn-main.on .bn-ico, .bn-tab.bn-main.open .bn-ico {
    background: linear-gradient(160deg, #a58fff, var(--accent)); box-shadow: 0 0 0 4px var(--bg-side), 0 0 0 6px rgba(143, 116, 255, .5), 0 8px 20px rgba(82, 54, 212, .55);
  }
  .bn-tab.bn-main:active .bn-ico { transform: scale(.95); }

  .bd-scrim {
    display: block; position: fixed; z-index: 90; inset: 0 0 var(--bn-lift) 0; background: rgba(6, 7, 12, .6);
    opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s;
  }
  .bd-scrim.open { opacity: 1; visibility: visible; transition: opacity .22s ease; }
  .bdrawer {
    display: flex; flex-direction: column; position: fixed; z-index: 92; top: 0; bottom: var(--bn-lift); inset-inline-start: 0;
    width: min(84vw, 340px); background: var(--bg-side); border-inline-end: 1px solid var(--line); box-shadow: 18px 0 44px rgba(0, 0, 0, .45);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 0 max(10px, env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-104%); visibility: hidden; transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s;
  }
  .bdrawer.open { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  html.bd-open, html.bd-open body { overflow: hidden; }
  .bd-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px 8px; }
  .bd-head > .ico { width: 26px; height: 26px; }
  .bd-head h2 { font-size: 19px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bd-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); flex: none; }
  .bd-x:hover { background: #1f212c; color: #fff; }
  .bd-x .ico { width: 20px; height: 20px; }
  .bd-me { display: flex; align-items: center; gap: 12px; margin: 0 4px 10px; padding: 12px; border-radius: var(--r); background: #1b1d27; min-width: 0; }
  .bd-me .av { width: 42px; height: 42px; border-radius: 10px; font-size: 18px; }
  .bd-me .me-txt { gap: 4px; }
  .bd-me .me-name { font-size: 15.5px; }
  .bd-me .me-coins { font-size: 14px; color: var(--muted); }
  .bd-list { display: flex; flex-direction: column; gap: 2px; flex: 1 0 auto; }
  .bd-link {
    display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; width: 100%;
    font-weight: 700; font-size: 15px; color: #dfe1ea; text-align: start;
  }
  .bd-link > .ico { width: 24px; height: 24px; }
  .bd-link:hover { background: #1f212c; color: #fff; }
  .bd-link.on { background: var(--accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent-hi); }
  .bd-link .bd-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bd-link .soon { font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
  .bd-link .bell-n { position: static; box-shadow: none; }
  .bd-sub { min-height: 40px; padding-inline-start: 26px; font-size: 14px; color: var(--muted); }
  .bd-sub > .ico { width: 20px; height: 20px; }
  .bd-small { min-height: 38px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .bd-small > .ico { width: 18px; height: 18px; opacity: .8; }
  .bd-primary { background: var(--accent); color: #fff; margin: 2px 0 4px; }
  .bd-primary:hover { background: var(--accent-hi); }
  .bd-primary > .ico { color: #fff; }
  .bd-h { margin: 12px 12px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
  .bd-sep { height: 1px; background: var(--line); margin: 6px 12px; }
  /* the gold Membership entry: last in every drawer, pinned to its bottom (clear of the rising Play button) */
  .bd-foot {
    margin-top: auto; position: sticky; bottom: 0; z-index: 1; padding: 8px 0 calc(12px + var(--bn-rise)); background: var(--bg-side);
    border-top: 1px solid rgba(244, 183, 64, .22);
  }
  [data-bd-action="logout"]:hover { color: #ff8a93; }
  /* fixed things near the bottom edge keep clear of the bar */
  html.bnav-on .toast, html.bnav-on .cf-float { bottom: calc(16px + var(--bn-lift)); }
  html.bnav-on .npop-wrap, html.bnav-on .aq-bubble, html.bnav-on .ck-banner, html.bnav-on .mn-speaker { bottom: calc(12px + var(--bn-lift)); }
  html.bnav-on .sound-pill { bottom: calc(24px + var(--bn-lift)); }
  html.bnav-on .aq-evpill { bottom: calc(72px + var(--bn-lift)); }
  html.bnav-on .chat-card { height: calc(100dvh - 140px - var(--bn-lift)); }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .bdrawer, .bdrawer.open, .bd-scrim, .bd-scrim.open { transition: none; }
}

/* ---------- Phone app shell (≤ 899 px, html.shell set by nav.js initPhoneShell once the app has started) ----------
   Nothing but the page content can move: html and body are pinned to the visible screen (no rubber band, no sideways
   drag, no scrolling of the document), #app is one column as tall as the screen – top bar, email banner, <main>,
   bottom bar – and only <main> scrolls (vertically; sideways content is clipped, tables scroll in their own wrapper).
   While the keyboard is open the column follows the visual viewport (--app-h / --app-top, iOS pans the page to the
   field otherwise) and the bottom bar steps aside (html.kb-open). The top bar is shown only where it helps (nav.js
   topBarShown: the home page); without it (html.tb-off) only the status bar's safe area stays above the page. */
:root { --tb-h: 0px; }
@media (max-width: 899px) {
  html.shell { --tb-h: calc(56px + var(--sa-t)); height: 100%; overflow: hidden; overscroll-behavior: none; }
  html.shell.tb-off { --tb-h: var(--sa-t); }
  html.shell body {
    position: fixed; top: var(--app-top, 0px); left: 0; right: 0; width: 100%; margin: 0;
    height: 100vh; height: 100dvh; height: var(--app-h, 100dvh); overflow: hidden; overscroll-behavior: none;
  }
  html.shell #app { display: flex; flex-direction: column; height: 100%; width: 100%; overflow: hidden; }
  html.shell .topbar {
    position: relative; top: auto; flex: none; height: var(--tb-h); padding-top: var(--sa-t); overflow: hidden;
    touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
  html.shell.tb-off .topbar { padding: 0; }
  html.shell.tb-off .topbar > * { display: none; }
  html.shell .em-banner { flex: none; }
  html.shell .main {
    flex: 1 1 auto; min-height: 0; width: 100%; margin: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; padding-bottom: var(--sa-b); padding-left: var(--sa-l); padding-right: var(--sa-r);
  }
  html.shell.bnav-on .main { padding-bottom: var(--bn-rise); }
  html.shell .bnav { position: relative; flex: none; inset: auto; overflow: visible; } /* Play's button rises above it */
  html.shell.kb-open { --bn-lift: 0px; --bn-rise: 0px; }
  html.shell.kb-open .bnav { display: none; }
  /* the drawer and its scrim reach from below the top bar's safe area to the bar; nothing behind them scrolls */
  html.shell.bd-open .main { overflow: hidden; }
  .bd-scrim { touch-action: none; }
  /* sticky things and section jumps: the top bar is no longer over the scrolling page */
  html.shell .mt-head > * { top: 0; }
  html.shell .ed-sec { scroll-margin-top: 12px; }
  html.shell .stage { scroll-margin-top: 8px; }
}
/* the bars cannot be dragged, selected or long-pressed: taps only */
.bnav, .bdrawer { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bnav { touch-action: none; }
.bnav img, .bnav svg, .topbar img, .topbar svg, .bdrawer img { -webkit-user-drag: none; user-drag: none; }

/* ---------- No zoom, no sideways scrolling (phones) ----------
   The app's viewport has no zoom (index.html: maximum-scale=1, user-scalable=no; the web keeps pinch-zoom); no
   double-tap zoom anywhere; text never forces the page wider than the screen; iOS does not zoom into fields. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { touch-action: manipulation; }
@media (max-width: 899px) {
  html, body { overflow-x: clip; }
  :where(p, h1, h2, h3, h4, h5, li, dd, dt, blockquote, figcaption, label, summary, .muted, .faint, .small) { overflow-wrap: anywhere; }
  :where(img, video, canvas, iframe, embed, object) { max-width: 100%; }
  :where(pre) { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
  :where(table) { max-width: 100%; }
}
@media (max-width: 899px) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { font-size: max(16px, 1em) !important; }
}
/* the app: no scrollbars on phones (scrolling stays), no link / picture callouts or dragging */
@media (max-width: 899px) {
  html.is-app, html.is-app * { scrollbar-width: none; }
  html.is-app ::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
html.is-app img, html.is-app a { -webkit-touch-callout: none; -webkit-user-drag: none; }

/* ---------- Page ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 36px 32px 64px; }
.page-narrow { max-width: 760px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.page-head .ico { width: 34px; height: 34px; }
.page-head h1 { font-size: 28px; }
.page-head .right, .page-head .push { margin-inline-start: auto; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head a { font-size: 14px; font-weight: 700; color: var(--muted); }
.section-head a:hover { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 24px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .page { padding: 24px 16px 48px; } h1 { font-size: 27px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px;
  background: var(--surface-2); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
  white-space: nowrap; transition: background .12s, filter .12s; user-select: none;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: default; filter: grayscale(.4); }
.btn .ico { width: 22px; height: 22px; }
.btn-primary { background: var(--accent); box-shadow: inset 0 -4px 0 var(--accent-edge); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-gold { background: var(--gold); color: #2a1d00; box-shadow: inset 0 -4px 0 var(--gold-edge); }
.btn-gold:hover { background: #ffc451; }
.btn-danger { background: var(--danger); box-shadow: inset 0 -4px 0 #b02a36; }
.btn-ghost { background: none; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--surface); color: #fff; }
.btn-light { background: #fff; color: #15161c; box-shadow: inset 0 -3px 0 #c8cad3; }
.btn-light:hover { background: #eef0f6; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-sm .ico { width: 18px; height: 18px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 17px; border-radius: 10px; }
.btn-xl { height: 64px; padding: 0 28px; font-size: 20px; font-weight: 800; border-radius: 10px; }
.btn-xl .ico { width: 30px; height: 30px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-left { justify-content: flex-start; }
.link { color: #b9a9ff; font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border-radius: var(--r); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head h3 { display: flex; align-items: center; gap: 10px; }
.card-head a { font-size: 14px; font-weight: 700; color: var(--muted); }
.card-head a:hover { color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); font-size: 12px; font-weight: 700; color: #d8dbe6; white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: #c4b6ff; }
.badge-gold { background: rgba(244, 183, 64, .16); color: var(--gold); }
.side-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.side-tag.pro { background: var(--pro-soft); color: #8cc6ff; }
.side-tag.contra { background: var(--contra-soft); color: #ffa58f; }
.cat-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: hsl(var(--h) 70% 74%); }
.cat-tag .ico { width: 16px; height: 16px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); color: #dfe1ea; font-size: 14px; }
.notice .ico { width: 20px; height: 20px; color: var(--muted); margin-top: 1px; }
.notice.warn { background: rgba(244, 183, 64, .12); color: #ffe2a6; }
.notice.warn .ico { color: var(--gold); }
.note { padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14.5px; color: #dfe1ea; }
.note h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-sm { padding: 28px 10px; text-align: center; color: var(--faint); font-size: 14px; }
.center-load { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent-hi); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Avatars ---------- */
.av { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; background: var(--surface-3); }
.av svg { width: 100%; height: 100%; }
.av-sm { width: 32px; height: 32px; font-size: 14px; border-radius: 6px; }
.av-lg { width: 96px; height: 96px; font-size: 40px; border-radius: 12px; }
.av-xl { width: 160px; height: 160px; font-size: 64px; border-radius: 16px; }
.av-empty { color: var(--faint); }
.av-glyph { width: 60%; height: 60%; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; color: #d6d9e4; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #1a1c26; color: #fff; font-size: 15px; outline: none;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.input-icon .input { padding-inline-start: 44px; }
.form-error { padding: 12px 14px; border-radius: var(--r-sm); background: rgba(239, 77, 90, .14); color: #ffb3ba; font-size: 14px; margin-bottom: 16px; }
.toggle { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.toggle > span:first-child { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--surface-3); transition: background .15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; inset-inline-start: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #1a1c26; }
.seg button { height: 40px; border-radius: 7px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface-3); color: #fff; }
.seg button:hover:not(.on) { color: #fff; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; font-size: 12px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 14px 24px 10px; }
.table td { padding: 12px 24px; border-top: 1px solid var(--line); vertical-align: middle; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #262a39; }
.table .clip { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plink { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.res { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 800; margin-inline-end: 6px; }
.res.w { background: rgba(53, 194, 165, .18); color: var(--ok); }
.res.l { background: rgba(239, 77, 90, .16); color: #ff8d98; }
.res.d { background: var(--surface-3); color: var(--muted); }
.delta { font-weight: 800; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok); }
.delta.down { color: #ff8d98; }
.rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 7px; font-weight: 800; color: var(--muted); }
.rank.r1 { background: var(--gold); color: #2a1d00; }
.rank.r2 { background: #c5cad8; color: #1d2030; }
.rank.r3 { background: #c47a3a; color: #fff; }
@media (max-width: 760px) {
  .table th, .table td { padding-inline-start: 14px; padding-inline-end: 14px; }
  .table .hide-sm { display: none; }
  .table .clip { max-width: 140px; }
}

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a:hover { color: #fff; }

/* ---------- Home (signed out) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 24px 0 24px; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.02em; }
.hero p { font-size: 19px; color: var(--muted); margin: 20px 0 32px; max-width: 460px; }
.hero .btn-col { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.hero .btn-col .btn { justify-content: flex-start; }
.hero .sub-line { margin-top: 18px; font-size: 14px; color: var(--faint); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature.rev .feature-art { order: 2; }
.feature h2 { font-size: 34px; letter-spacing: -.01em; line-height: 1.12; }
.feature p { color: var(--muted); font-size: 17px; margin: 16px 0 28px; max-width: 470px; }
.final-cta { text-align: center; padding: 80px 0 24px; border-top: 1px solid var(--line); }
.final-cta h2 { font-size: 38px; margin-bottom: 26px; }
@media (max-width: 899px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 4px; }
  .hero h1 { font-size: 38px; }
  .hero .btn-col { max-width: none; }
  .feature { padding: 44px 0; }
  .feature.rev .feature-art { order: 0; }
  .feature h2 { font-size: 28px; }
}

/* preview duel (hero art) */
.preview { background: var(--surface); border-radius: 16px; padding: 14px; }
.preview .pv-topic { padding: 12px 14px 14px; }
.preview .pv-topic b { display: block; font-size: 17px; margin-top: 4px; }
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-tile { position: relative; aspect-ratio: 4 / 3.3; border-radius: 10px; overflow: hidden; background: #14151d; }
.pv-tile svg { width: 100%; height: 100%; }
.pv-tile .side-tag { position: absolute; inset-inline-start: 8px; top: 8px; }
.pv-tile.speaking { box-shadow: 0 0 0 3px var(--ok); }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 12px 4px 2px; font-size: 14px; font-weight: 700; }
.pv-bar .clock { margin-inline-start: auto; }
.pv-line { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #1a1c26; font-size: 14px; color: #dfe1ea; min-height: 66px; }

.bot-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bot-strip .av { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; }
.bot-strip span { display: block; text-align: center; font-size: 13px; font-weight: 700; margin-top: 6px; color: var(--muted); }

.judge-mock { background: var(--surface); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lesson-mock { background: var(--surface); border-radius: 16px; padding: 10px; }
.lb-mock { background: var(--surface); border-radius: 16px; overflow: hidden; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.dash-head .right { margin-inline-start: auto; text-align: end; }
.dash-head .right strong { display: block; font-size: 24px; font-weight: 800; }
.dash-head .right span { font-size: 13px; color: var(--muted); }
.play-card { padding: 24px; }
.play-card h2 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.play-card h2 .ico { width: 28px; height: 28px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 14px; border: 2px solid transparent; }
.chip .ico { width: 26px; height: 26px; }
.chip small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip:hover:not(.on) { background: var(--surface-3); }
.tile-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.tile-card .art { height: 120px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.tile-card .art .ico { width: 56px; height: 56px; }
.tile-card .art .av { width: 120px; height: 120px; border-radius: 0; }
.tile-card h3 { font-size: 16px; }
.tile-card p { font-size: 14px; color: var(--muted); margin-top: -8px; flex: 1; }
.totd { padding: 22px 24px; }
.totd .q { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 10px 0 18px; }
.stat-list { display: flex; flex-direction: column; }
.stat-list div { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.stat-list div:first-child { border-top: 0; }
.stat-list .ico { width: 22px; height: 22px; }
.stat-list b { margin-inline-start: auto; font-size: 16px; font-variant-numeric: tabular-nums; }

/* recommendation row */
.rec { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.rec:hover { background: var(--surface-3); }
.rec .ib { width: 40px; height: 40px; border-radius: 9px; background: #1a1c26; display: grid; place-items: center; flex: none; }
.rec .ib .ico { width: 24px; height: 24px; }
.rec b { display: block; font-size: 14.5px; }
.rec small { color: var(--muted); font-size: 13px; }

/* ---------- Play / duel arena ---------- */
.arena-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 24px 32px 48px; }
@media (max-width: 1060px) { .arena-wrap { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 40px; } }
.arena { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.topic-banner { background: var(--surface); border-radius: var(--r); padding: 18px 22px; display: flex; gap: 16px; align-items: center; }
.topic-banner .tb-ico { width: 48px; height: 48px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.topic-banner .tb-ico .ico { width: 28px; height: 28px; }
.topic-banner .tb-text { min-width: 0; flex: 1; }
.topic-banner .tb-q { font-size: 21px; font-weight: 800; line-height: 1.25; margin-top: 4px; }
.topic-banner .tb-q.dim { color: var(--muted); }
@media (max-width: 760px) { .topic-banner { padding: 14px 16px; } .topic-banner .tb-q { font-size: 17px; } .topic-banner .tb-ico { display: none; } }
.pbar { display: flex; align-items: center; gap: 12px; padding: 4px 2px; min-height: 52px; }
.pbar .who { min-width: 0; flex: 1; }
.pbar .name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.pbar .meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.clock { min-width: 96px; height: 44px; padding: 0 14px; border-radius: 8px; background: #2a2d3b; color: #7d8296; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.clock.live { background: #f1f2f7; color: #15161c; }
.clock.low { background: var(--danger); color: #fff; }
.mic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); flex: none; }
.mic svg { width: 18px; height: 18px; }
.mic.on { background: rgba(53, 194, 165, .18); color: var(--ok); }
.stage { position: relative; background: var(--surface); border-radius: var(--r); padding: 12px; min-height: 360px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; aspect-ratio: 4 / 3; background: #14151d; border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.tile.speaking { box-shadow: 0 0 0 3px var(--ok); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video.mirror { transform: scaleX(-1); }
.tile .tag { position: absolute; inset-inline-start: 10px; top: 10px; z-index: 2; }
.tile .tname { position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; background: rgba(10, 11, 16, .72); font-size: 13px; font-weight: 700; }
.tile .muted-ov { position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 2; }
.tile .muted-ov .mic { width: 30px; height: 30px; background: rgba(10, 11, 16, .72); }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.wave i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.wave.anim i { animation: wave .9s ease-in-out infinite; }
.wave.anim i:nth-child(2) { animation-delay: .15s; } .wave.anim i:nth-child(3) { animation-delay: .3s; } .wave.anim i:nth-child(4) { animation-delay: .45s; } .wave.anim i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .stage { min-height: 0; } .clock { min-width: 80px; font-size: 20px; height: 40px; } }

.phasebar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--surface); }
.phasebar .ph-label { font-weight: 800; font-size: 16px; }
.phasebar .ph-sub { font-size: 13.5px; color: var(--muted); }
.bigclock { margin-inline-start: auto; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bigclock.low { color: #ff8d98; }
/* the own last five seconds: a gentle pulse instead of a beep (the microphone is open) */
.bigclock.final { animation: bc-final 1s ease-in-out infinite; }
@keyframes bc-final { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .bigclock.final { animation: none; } }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent-hi); transition: width .2s linear; }

.panel { background: var(--surface); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.panel.sticky { max-height: calc(100vh - 48px); }
@media (max-width: 1060px) { .panel.sticky { max-height: none; } }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button .ico { width: 22px; height: 22px; }
.tabs button.on { color: #fff; border-bottom-color: #fff; }
.tabs button:hover:not(.on) { color: #fff; }
.panel-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.panel-foot strong { color: #fff; }
.panel-foot .sep { flex: 1; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }

/* select button + inline format list */
.select-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border-radius: 10px; background: var(--surface-2); text-align: start; }
.select-btn:hover { background: var(--surface-3); }
.select-btn .ico { width: 28px; height: 28px; }
.select-btn .t { flex: 1; min-width: 0; }
.select-btn b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-btn small { color: var(--muted); font-size: 13px; }
.select-btn .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.select-btn.open .chev { transform: rotate(180deg); }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #1f2230; border: 2px solid transparent; text-align: start; }
.opt:hover { background: var(--surface-2); }
.opt.on { border-color: var(--accent); }
.opt .ico { width: 26px; height: 26px; }
.opt b { display: block; font-size: 15px; }
.opt small { color: var(--muted); font-size: 13px; }

/* search radar */
.search-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 336px; padding: 24px 12px; width: 100%; min-width: 0; }
.idle-art { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.idle-art .av { width: 84px; height: 84px; border-radius: 14px; font-size: 32px; }
.idle-art .vs { font-size: 20px; font-weight: 800; color: var(--faint); }
.radar { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 8px; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-hi); opacity: 0; animation: ring 2.4s ease-out infinite; }
.radar .ring:nth-child(2) { animation-delay: .8s; } .radar .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.45); opacity: .8; } to { transform: scale(1.1); opacity: 0; } }
.radar .core .av { width: 70px; height: 70px; border-radius: 50%; font-size: 28px; }
.search-box .time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* match reveal */
.reveal { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 8px; min-height: 336px; justify-content: center; text-align: center; }
.reveal .vs-row { display: flex; align-items: center; gap: 22px; }
.reveal .vs-row .pl { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; max-width: 120px; }
.reveal .vs-row .av { width: 72px; height: 72px; border-radius: 12px; font-size: 28px; }
.reveal .vs-row .x { font-size: 22px; font-weight: 800; color: var(--faint); }
.slot { height: 44px; overflow: hidden; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); width: 260px; max-width: 100%; }
.reel { transition: transform 1.6s cubic-bezier(.15, .7, .2, 1); }
.reel div { height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 16px; }
.reel .ico { width: 20px; height: 20px; }
.slot.fixed .reel { transition: none; }
.slot.topic-slot { height: 72px; width: 560px; background: var(--surface); color: #fff; border: 1px solid var(--line); border-radius: 12px; }
.slot.topic-slot .reel { transition: transform 2.2s cubic-bezier(.12, .7, .18, 1); }
.slot.topic-slot .reel div { height: 72px; padding: 0 18px; font-size: 18px; line-height: 1.3; text-align: center; }
.slot.topic-slot .reel div span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot.topic-slot.landed { height: auto; min-height: 72px; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(124, 92, 255, .55); transition: box-shadow .3s; }
.slot.topic-slot .topic-final { padding: 14px 18px; font-weight: 800; font-size: 19px; line-height: 1.3; text-align: center; }
.flipcard { perspective: 900px; width: 100%; max-width: 520px; height: 120px; }
.flipcard .inner { position: relative; width: 100%; height: 100%; transition: transform .7s; transform-style: preserve-3d; }
.flipcard.flipped .inner { transform: rotateY(180deg); }
.flipcard .face { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px 20px; border-radius: 12px; backface-visibility: hidden; font-weight: 800; font-size: 19px; line-height: 1.3; }
.flipcard .back { background: var(--surface-2); color: var(--faint); }
.flipcard .back .ico { width: 40px; height: 40px; }
.flipcard .front { background: #f1f2f7; color: #15161c; transform: rotateY(180deg); }
.side-reveal { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.side-reveal .side-tag { height: 30px; font-size: 16px; padding: 0 12px; }

/* duel side panel content */
.phase-list { display: flex; flex-direction: column; }
.phase-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14px; color: #d6d9e4; border-radius: 6px; }
.phase-item .dur { margin-inline-start: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.phase-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); flex: none; }
.phase-item .dot.pro { background: var(--pro); } .phase-item .dot.contra { background: var(--contra); }
.phase-item.done { color: var(--faint); }
.phase-item.done .dot { opacity: .4; }
.phase-item.now { background: var(--surface-2); color: #fff; font-weight: 700; padding-inline-start: 10px; }
.transcript { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.tline { padding: 10px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; background: var(--surface-2); border-inline-start: 3px solid var(--surface-3); }
.tline.pro { border-inline-start-color: var(--pro); }
.tline.contra { border-inline-start-color: var(--contra); }
.tline .tmeta { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 3px; display: flex; gap: 6px; }
.tline.typing { color: var(--faint); font-style: italic; }
.duel-controls { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); }
.duel-controls .push { margin-inline-start: auto; }
.overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(18, 19, 26, .82); border-radius: var(--r); }
.overlay .modal { max-height: 100%; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 14, .7); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: var(--surface); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-sm { max-width: 440px; }
.modal-lg { max-width: 880px; }
.modal-head { padding: 26px 28px 8px; text-align: center; }
.modal-head.left { text-align: start; display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 24px; }
.modal-body { padding: 18px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-close { position: absolute; inset-inline-end: 14px; top: 14px; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { background: var(--surface-2); color: #fff; }
.modal-close .ico { width: 20px; height: 20px; }
.result-mark { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--surface-2); }
.result-mark .ico { width: 36px; height: 36px; }
.result-mark.win { background: rgba(244, 183, 64, .16); }

/* topic catalog */
.catalog { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: min(620px, calc(100vh - 140px)); }
.cat-list { border-inline-end: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.cat-btn { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 14.5px; color: #d6d9e4; text-align: start; white-space: nowrap; }
.cat-btn .ico { width: 20px; height: 20px; color: hsl(var(--h, 250) 70% 72%); }
.cat-btn:hover { background: var(--surface-2); }
.cat-btn.on { background: var(--surface-3); color: #fff; }
.cat-btn .n { margin-inline-start: auto; font-size: 12px; color: var(--faint); font-weight: 700; }
.topic-pane { display: flex; flex-direction: column; min-width: 0; }
.topic-pane .tp-search { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.topic-rows { overflow-y: auto; padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.topic-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; text-align: start; font-size: 15px; font-weight: 600; line-height: 1.35; }
.topic-row:hover { background: var(--surface-2); }
.topic-row.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.topic-row .ico { width: 20px; height: 20px; color: hsl(var(--h, 250) 70% 72%); }
.topic-row .t { flex: 1; min-width: 0; }
.topic-row small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.topic-row.special { font-weight: 700; }
.topic-row.special .ico { color: var(--gold); }
.topic-group { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 14px 14px 6px; }
@media (max-width: 700px) {
  .catalog { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 120px); }
  .cat-list { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .cat-btn { height: 36px; flex: none; background: var(--surface-2); }
  .cat-btn .n { display: none; }
}

/* ---------- Verdict ---------- */
.verdict-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.verdict-vs .pl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-align: center; position: relative; }
.verdict-vs .pl .av { width: 64px; height: 64px; border-radius: 12px; font-size: 26px; }
.verdict-vs .pl.win .av { box-shadow: 0 0 0 3px var(--gold); }
.verdict-vs .crown { position: absolute; top: -16px; }
.verdict-vs .crown .ico { width: 24px; height: 24px; }
.verdict-vs .score { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.elo-change { text-align: center; font-weight: 700; font-size: 15px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.crit { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; align-items: center; gap: 10px; }
.crit .lab { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: -4px; }
.crit .n { font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.crit .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.crit .bars i { height: 8px; border-radius: 4px; background: var(--surface-3); display: flex; overflow: hidden; }
.crit .bars i:first-child { justify-content: flex-end; }
.crit .bars i:first-child b { background: var(--pro); }
.crit .bars i:last-child b { background: var(--contra); }
.crit .bars b { display: block; height: 100%; border-radius: 4px; }

/* ---------- Bots page ---------- */

/* ---------- Learn ---------- */
.group-head { display: flex; align-items: center; gap: 14px; margin: 40px 0 14px; }
.group-head:first-child { margin-top: 0; }
.group-head .ico { width: 36px; height: 36px; }
.group-head h2 { font-size: 21px; }
.group-head p { color: var(--muted); font-size: 14px; }
.lesson-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.lesson-row { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.lesson-row:first-child { border-top: 0; }
.lesson-row:hover { background: #262a39; }
.lesson-row .t { flex: 1; min-width: 0; }
.lesson-row b { display: block; font-size: 15.5px; }
.lesson-row small { color: var(--muted); font-size: 13.5px; }
.lesson-row .meta { display: flex; gap: 8px; align-items: center; flex: none; }
.lesson-row .state { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface-3); display: grid; place-items: center; flex: none; }
.lesson-row .state.done { background: var(--ok); border-color: var(--ok); color: #0d2a24; }
.lesson-row .state .ico { width: 14px; height: 14px; }
@media (max-width: 760px) { .lesson-row .meta .badge:not(.badge-accent) { display: none; } .lesson-row { padding: 14px 16px; } }
.progress-ring { display: flex; align-items: center; gap: 16px; }
.progress-ring svg { width: 64px; height: 64px; flex: none; }
.lesson-body h1 { font-size: 34px; }
.lesson-body .lead { font-size: 19px; color: var(--muted); margin-top: 12px; }
.lesson-body h2 { font-size: 21px; margin: 34px 0 10px; }
.lesson-body p { font-size: 16.5px; line-height: 1.65; color: #dfe1ea; }
.lesson-body em { color: #fff; }
.lesson-body .lesson-text, .lesson-body .lesson-text li { font-size: 16.5px; line-height: 1.65; color: #dfe1ea; }
.lesson-body .lesson-text ul, .lesson-body .lesson-text ol { margin: 8px 0 8px 1.2em; padding: 0; display: grid; gap: 6px; }
.lesson-body .lesson-text ul { list-style: disc; }
.lesson-body .lesson-text ol { list-style: decimal; }
.quiz-q { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.quiz-q h4 { font-size: 16px; margin-bottom: 4px; }
.quiz-opt { text-align: start; padding: 12px 14px; border-radius: 8px; background: #1f2230; font-weight: 600; font-size: 15px; border: 2px solid transparent; }
.quiz-opt:hover:not(:disabled) { background: var(--surface-3); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.right { border-color: var(--ok); background: rgba(53, 194, 165, .12); }
.quiz-opt.wrong { border-color: var(--danger); background: rgba(239, 77, 90, .12); }
.quiz-explain { font-size: 14.5px; color: #dfe1ea; padding: 4px 2px 0; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 24px; align-items: center; padding: 28px; }
.profile-head h1 { font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-head .facts { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--muted); }
.profile-head .facts b { color: #fff; }
@media (max-width: 640px) { .profile-head { flex-direction: column; align-items: flex-start; padding: 22px; } }
.ratings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rating { padding: 18px 20px; }
.rating span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.rating span .ico { width: 18px; height: 18px; }
.rating strong { display: block; font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { width: 100%; height: 220px; }

/* ---------- Auth ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: 48px 16px 64px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; text-align: center; }
.auth-logo img { width: 60px; height: 60px; }
.auth-logo h1 { font-size: 28px; }
.auth-logo p { color: var(--muted); }
.auth-card { padding: 28px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 12px; font-weight: 800; color: var(--faint); letter-spacing: .08em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-oauth { width: 100%; height: 48px; justify-content: center; background: #fff; color: #15161c; box-shadow: inset 0 -3px 0 #c8cad3; }
.btn-oauth:hover { background: #eef0f6; }
.oauth-stack { display: flex; flex-direction: column; gap: 10px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14.5px; }

/* ---------- Soon pages ---------- */
.soon-hero { text-align: center; padding: 56px 24px; }
.soon-hero .ico { width: 72px; height: 72px; margin: 0 auto 20px; }
.soon-hero h2 { font-size: 28px; }
.soon-hero p { color: var(--muted); max-width: 560px; margin: 12px auto 28px; font-size: 16.5px; }
.tiers { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tiers div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; padding: 13px 20px; border-radius: 10px; background: #f1f2f7; color: #15161c; font-weight: 700; font-size: 14.5px; box-shadow: 0 12px 40px rgba(0,0,0,.4); max-width: calc(100vw - 32px); animation: toast .2s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes toast { from { transform: translate(-50%, 12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* late additions */
@media (min-width: 900px) { .side.nofly .flyout { display: none !important; } }
.pv-av { width: 100%; height: 100%; display: block; }
.select-btn > .ico:first-child { color: hsl(var(--h, 45) 70% 72%); }
.select-btn > .ico.chev { color: var(--muted); }
.bot-strip a:hover span { color: #fff; }
.stage:has(.overlay) { min-height: 540px; }
.stage:has(.overlay) .tiles { visibility: hidden; }
.overlay { background: none; }

/* ---------- Play Bots: big cards + setup popup ---------- */
.bots-page { max-width: 1180px; }
.bots-intro { max-width: 680px; margin: -6px 0 26px; font-size: 15px; }
.bot-group { margin-bottom: 34px; }
.bot-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bot-group-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bot-group-head .muted { font-size: 14px; }
.bot-group-head h2 { font-size: 22px; }
.bot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.bot-card { display: flex; flex-direction: column; text-align: start; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.bot-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px hsl(var(--h) 60% 60%), 0 14px 34px rgba(0,0,0,.35); }
.bot-card:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.bc-art { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 30%, hsl(var(--h) 45% 32%), hsl(var(--h) 30% 14%)); }
.bc-art .av { width: 100%; height: 100%; border-radius: 0; }
.bc-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.bc-info b { font-size: 18px; color: #fff; }
.bc-info .muted { font-size: 14px; }
.bc-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.bc-elo { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.badge.lvl-beginner { background: rgba(53, 194, 165, .16); color: #5fd9bd; }
.badge.lvl-intermediate { background: rgba(80, 140, 255, .16); color: #8fb4ff; }
.badge.lvl-advanced { background: rgba(244, 183, 64, .16); color: var(--gold); }
.badge.lvl-expert { background: rgba(255, 110, 90, .16); color: #ff9a8a; }
.badge.lvl-master { background: rgba(148, 121, 255, .2); color: #c4b6ff; }
.modal-bot { max-width: 520px; }
.bot-setup { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.bs-hero { display: flex; gap: 18px; align-items: center; }
.bs-hero .av { width: 112px; height: 112px; border-radius: 16px; flex: none; background: radial-gradient(circle at 50% 30%, hsl(var(--h) 45% 32%), hsl(var(--h) 30% 14%)); }
.bs-hero h2 { font-size: 24px; padding-inline-end: 30px; }
.bot-setup .bubble { position: relative; padding: 12px 16px; border-radius: 12px; background: #f1f2f7; color: #15161c; font-weight: 700; font-size: 15px; margin-top: 6px; }
.bot-setup .bubble::before { content: ''; position: absolute; inset-inline-start: 46px; top: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #f1f2f7; }
.bot-setup > p { font-size: 14px; }
.bot-setup .label { margin-top: 4px; }
.bot-setup #bgo { margin-top: 8px; }
@media (max-width: 600px) {
  .bot-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bc-info { padding: 10px 12px 12px; }
  .bc-info b { font-size: 15px; }
  .bc-info .muted { font-size: 12px; }
  .bc-elo { font-size: 16px; }
  .bot-setup { padding: 22px 18px; }
  .bs-hero .av { width: 84px; height: 84px; }
  .bs-hero h2 { font-size: 20px; }
}
/* practice card on lesson pages */
.bot-show { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.bot-show.card { align-self: start; }
.bot-show .av { border-radius: 16px; }
.bot-show .desc { color: var(--muted); }
.topic-row .hot { flex: none; display: grid; place-items: center; color: #ff8a5c; }
.topic-row .hot .ico { width: 16px; height: 16px; color: #ff8a5c; }

/* ---------- Play Bots: ranks, carousel, beaten / lock marks ---------- */
.rank-num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--gold); background: rgba(244, 183, 64, .1); box-shadow: inset 0 0 0 1.5px rgba(244, 183, 64, .45); font-family: Georgia, 'Times New Roman', serif; }
.rank-count { margin-inline-start: auto; flex: none; font-size: 13px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--surface); }
.carousel { position: relative; }
.car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track .bot-card { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; min-width: 0; }
.car-btn { position: absolute; top: calc(50% - 46px); z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(18, 19, 26, .86); box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(0,0,0,.45); backdrop-filter: blur(6px); transition: opacity .15s, transform .15s; }
.car-btn:hover { transform: scale(1.06); background: var(--accent); }
.car-btn .ico { width: 24px; height: 24px; }
.car-btn.prev { inset-inline-start: -14px; }
.car-btn.next { inset-inline-end: -14px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.carousel.static .car-btn { display: none; }
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-id b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-id .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-id .bc-elo { margin-top: 4px; }
.beat { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--faint); }
.beat .ico { width: 16px; height: 16px; stroke-width: 3; }
.beat.won { background: #8fe8b4; color: #0e2a1b; box-shadow: 0 0 0 4px rgba(143, 232, 180, .16); }
.bc-lock { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 13, 18, .78); color: var(--gold); box-shadow: 0 0 0 1px rgba(244, 183, 64, .4); }
.bc-lock .ico { width: 17px; height: 17px; }
.bc-free { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(12, 13, 18, .78); color: #8fe8b4; }
.bot-card.locked .bc-art .av { filter: saturate(.6) brightness(.82); }
.lockmark { display: inline-grid; place-items: center; color: var(--gold); vertical-align: middle; }
.lockmark .ico { width: 18px; height: 18px; }
.bot-setup .bc-meta .beat { width: 26px; height: 26px; }
#bsform { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1060px) { .car-track .bot-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 760px) {
  .car-track .bot-card { flex-basis: calc((100% - 12px) / 2); }
  .car-track { gap: 12px; }
  .car-btn { width: 40px; height: 40px; top: calc(50% - 40px); }
  .car-btn.prev { inset-inline-start: -6px; } .car-btn.next { inset-inline-end: -6px; }
  .rank-num { width: 36px; height: 36px; font-size: 13px; }
  .bot-group-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 4px 10px; }
  .bot-group-head h2 { font-size: 19px; }
  .rank-count { grid-column: 2; justify-self: start; margin-inline-start: 0; padding: 3px 9px; font-size: 12px; }
  .beat { width: 24px; height: 24px; }
  .beat .ico { width: 14px; height: 14px; }
}

/* philosopher list in the /play panel */
.bp-list { max-height: 272px; overflow-y: auto; border-radius: 12px; background: var(--bg-side); box-shadow: inset 0 0 0 1px var(--line); padding: 0 6px 6px; }
.bp-rank { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; padding: 10px 6px 6px; background: var(--bg-side); }
.bp-rank b { font-size: 13px; }
.bp-rank span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.bp-bot { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; text-align: start; }
.bp-bot:hover { background: var(--surface); }
.bp-bot.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bp-bot .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bp-bot .t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-bot .t small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bp-bot.locked .av { filter: saturate(.6) brightness(.85); }
.bp-bot .lockmark .ico { width: 15px; height: 15px; }
.bp-bot .beat { width: 22px; height: 22px; }
.bp-bot .beat .ico { width: 13px; height: 13px; }

/* camera preview on /play before the search */
.pv { display: flex; flex-direction: column; gap: 14px; }
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pv-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #14151d; box-shadow: inset 0 0 0 1px var(--line); }
.pv-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-tile video.mirror { transform: scaleX(-1); }
.pv-art { position: absolute; inset: 0; display: grid; place-items: center; background: hsl(var(--h, 220) 32% 30%); }
.pv-art svg { height: 100%; width: auto; }
.pv-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center; }
.pv-empty small { color: var(--faint); font-size: 12.5px; max-width: 220px; }
.pv-empty .av { width: 72px; height: 72px; border-radius: 50%; font-size: 28px; }
.pv-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); box-shadow: inset 0 0 0 2px var(--surface-3); animation: pvpulse 2.4s ease-in-out infinite; }
.pv-ring .av-glyph { width: 40px; height: 40px; }
@keyframes pvpulse { 50% { box-shadow: inset 0 0 0 2px var(--surface-3), 0 0 0 10px rgba(123, 92, 255, .08); } }
.pv-tag { position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 2; padding: 4px 10px; border-radius: 6px; background: rgba(10, 11, 16, .72); font-size: 13px; font-weight: 700; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-info { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 4px 8px 6px; }
@media (max-width: 600px) {
  .pv-tiles { gap: 8px; }
  .pv-empty small { display: none; }
  .pv-empty .av, .pv-ring { width: 52px; height: 52px; }
  .pv-empty .btn { font-size: 12px; padding: 0 10px; }
  .pv-tag { font-size: 11.5px; inset-inline-start: 6px; top: 6px; bottom: auto; }
  .pv-empty { gap: 6px; padding: 26px 6px 8px; }
  .pv-empty .av, .pv-ring { width: 44px; height: 44px; font-size: 18px; }
}

/* ---------- Tooltip + topic icon in duel tables ---------- */
.tip { position: fixed; z-index: 200; max-width: 300px; padding: 9px 12px; border-radius: 10px; background: #f1f2f7; color: #15161c; font-size: 13.5px; font-weight: 700; line-height: 1.35; box-shadow: 0 12px 30px rgba(0,0,0,.45); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip.on { opacity: 1; transform: none; }
.tip small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6a6f85; margin-bottom: 2px; }
.tip::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #f1f2f7; }
.tip.below::after { bottom: auto; top: -6px; border-top: 0; border-bottom: 6px solid #f1f2f7; }
.topic-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: hsl(var(--h) 70% 74%); background: hsla(var(--h), 60%, 50%, .14); transition: transform .12s, background .12s; }
.topic-ico:hover, .topic-ico:focus-visible { transform: scale(1.08); background: hsla(var(--h), 60%, 50%, .26); }
.topic-ico .ico { width: 20px; height: 20px; }
.td-topic, .th-topic { width: 64px; text-align: center; }


/* ---------- /play: panel title, more modes, bots button ---------- */
.topic-banner[hidden] { display: none; }
.side-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side-col.sticky .panel { max-height: none; }
.panel-title { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 16px; }
.panel-title .ico { width: 24px; height: 24px; }
.more-modes { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.mode-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); text-align: start; transition: background .12s; }
.mode-row:hover { background: var(--surface-3); }
.mode-row > .ico:first-child { width: 22px; height: 22px; color: var(--accent-hi); }
.mode-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mode-row .t b { font-size: 14.5px; }
.mode-row .t small { font-size: 12.5px; color: var(--muted); }
.mode-row .chev { width: 18px; height: 18px; color: var(--muted); }
.mic-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(239, 77, 90, .12); color: #ffb3b9; font-size: 13px; }
.mic-warn b { display: block; color: #fff; }
.mic-warn .ico { width: 20px; height: 20px; color: var(--danger); flex: none; }
.bots-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.bots-cta:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--gold), 0 12px 28px rgba(0, 0, 0, .3); }
.bots-cta-art { display: flex; flex: none; }
.bots-cta-art .av { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface); }
.bots-cta-art .av + .av { margin-inline-start: -12px; }
.bots-cta .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bots-cta .t b { font-size: 16px; }
.bots-cta .t small { font-size: 12.5px; color: var(--muted); }
.bots-cta .chev { width: 20px; height: 20px; color: var(--muted); }

/* ---------- Play a Friend / Custom Duel ---------- */
.modal-ch { max-width: 520px; }
.ch-setup { padding: 26px 26px 24px; }
.ch-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding-inline-end: 30px; }
.ch-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); }
.ch-ico .ico { width: 26px; height: 26px; }
.ch-head h2 { font-size: 22px; margin-bottom: 4px; }
.ch-head p { font-size: 14px; }
.ch-body { display: flex; flex-direction: column; gap: 12px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 6px 6px; padding-inline: 12px 6px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; }
.time-row select, .ch-body select { appearance: none; -webkit-appearance: none; height: 34px; padding-block: 0 0; padding-inline: 10px 28px; border-radius: 8px; border: 0; background: var(--bg-side) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a9be' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; }
#chtopicbox { display: flex; flex-direction: column; gap: 8px; }
#chtopicbox textarea { resize: vertical; min-height: 64px; padding: 10px 12px; height: auto; line-height: 1.4; }
.ch-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0; }
.ch-pulse { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-hi); background: var(--accent-soft); animation: chpulse 1.8s ease-in-out infinite; margin-bottom: 4px; }
.ch-pulse .ico { width: 34px; height: 34px; }
@keyframes chpulse { 50% { box-shadow: 0 0 0 14px rgba(123, 92, 255, .08); } }
.link-box { display: flex; gap: 8px; width: 100%; }
.link-box .input { flex: 1; min-width: 0; font-size: 13.5px; }
.ch-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.ch-from { display: flex; gap: 18px; align-items: center; }
.ch-from h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.ch-rows { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ch-row { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; font-size: 14.5px; }
.ch-row + .ch-row { border-top: 1px solid var(--line); }
.ch-row .ico { width: 20px; height: 20px; color: var(--muted); }
.ch-row .k { color: var(--muted); font-weight: 700; font-size: 13px; }
.ch-row .v { font-weight: 700; }
.ch-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 20px; }
.ch-empty .ico { width: 36px; height: 36px; color: var(--muted); }
@media (max-width: 600px) {
  .ch-setup { padding: 22px 16px 18px; }
  .time-grid { grid-template-columns: 1fr; }
  .ch-card { padding: 20px 16px; margin-top: 8px; }
  .ch-from .av-lg { width: 64px; height: 64px; }
  .ch-from h1 { font-size: 21px; }
  .ch-row { grid-template-columns: 20px 74px minmax(0, 1fr); gap: 10px; padding: 11px 12px; font-size: 13.5px; }
}
.stage:has(.pv) { min-height: 0; }

/* ---------- Camera frames (cosmetics) ---------- */
.cf { position: relative; border-radius: 16px; padding: 8px; isolation: isolate; }
.cf-in { position: relative; z-index: 1; }
.cf-in > .tile, .cf-in > .pv-tile { border-radius: 9px; }
.cf-orn { position: absolute; z-index: 3; pointer-events: none; }
.cf-orn svg, .cf-col svg { width: 100%; height: auto; display: block; }
/* Golden Laurel */
.cf.frame-laurel { padding: 7px; background: linear-gradient(135deg, #ffe9a3, #f4b740 35%, #a8700c 62%, #f7d77f 85%, #c48a1c); box-shadow: 0 0 0 1px #6e4806, 0 10px 28px rgba(244, 183, 64, .22); }
.cf-laurel { bottom: -16px; width: 26%; max-width: 104px; }
.cf-laurel.l { left: -14px; }
.cf-laurel.r { right: -14px; transform: scaleX(-1); }
/* Ionic Marble */
.cf.frame-marble { padding: 10px 24px; border-radius: 6px; background: linear-gradient(115deg, transparent 40%, rgba(150, 140, 130, .35) 41%, transparent 43%), linear-gradient(160deg, #f4f0e8, #d8d0c2 60%, #ece6db); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.cf-col { position: absolute; z-index: 3; top: 0; bottom: 0; width: 20px; background: repeating-linear-gradient(90deg, #faf7f0 0 3px, #cbc3b5 3px 5px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cf-col.l { left: 2px; } .cf-col.r { right: 2px; }
.cf-col i { position: absolute; left: -10px; width: 40px; }
.cf-col .cap { top: -10px; } .cf-col .base { bottom: -6px; }
/* Owl of Minerva */
.cf.frame-owl { padding: 9px; background: radial-gradient(1.2px 1.2px at 12% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 18%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 92% 70%, #dfe6ff 50%, transparent 51%), radial-gradient(1px 1px at 30% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 94%, #fff 50%, transparent 51%), linear-gradient(180deg, #232c55, #10142a); box-shadow: 0 0 0 1px rgba(201, 211, 255, .35), 0 10px 30px rgba(40, 60, 160, .35); margin-top: 18px; }
.cf-owl { left: 50%; top: -34px; width: 62px; transform: translateX(-50%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
/* Neon Agora */
@property --cf-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cf.frame-neon { padding: 4px; background: conic-gradient(from var(--cf-a), #ff3cac, #7b5cff, #2be4ff, #35c2a5, #ffd93c, #ff3cac); animation: cfspin 4s linear infinite; box-shadow: 0 0 22px rgba(123, 92, 255, .55), 0 0 44px rgba(43, 228, 255, .25); border-radius: 14px; }
@keyframes cfspin { to { --cf-a: 360deg; } }
/* Old Scroll */
.cf.frame-scroll { padding: 16px 10px; border-radius: 4px; background: radial-gradient(circle at 20% 30%, rgba(160, 110, 50, .18), transparent 40%), radial-gradient(circle at 80% 70%, rgba(160, 110, 50, .15), transparent 45%), linear-gradient(180deg, #f5e6c4, #e3c994); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); margin: 6px 8px; }
.cf-rod { position: absolute; z-index: 3; left: -9px; right: -9px; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #e0b16e, #a8763c 55%, #6e4519); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.cf-rod.t { top: -5px; } .cf-rod.b { bottom: -5px; }
@media (prefers-reduced-motion: reduce) { .cf.frame-neon { animation: none; } }
/* Silver Edge (member exclusive, every plan): a clean band of polished silver between a dark outer hairline and a bright
   inner line – no ornaments, no motion: the entry tier. */
.cf.frame-silver { padding: 8px; border-radius: 14px;
  background: linear-gradient(140deg, #ffffff 0%, #dfe5ee 14%, #9aa6b8 38%, #f4f7fb 58%, #8c98ab 80%, #d7dee8 100%);
  box-shadow: 0 0 0 1px #3a4352, 0 0 0 2px rgba(230, 238, 250, .22), 0 0 18px rgba(200, 215, 235, .16), 0 10px 26px rgba(0, 0, 0, .35); }
.cf.frame-silver::before { content: ''; position: absolute; inset: 3px; z-index: 2; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(50, 60, 76, .3); pointer-events: none; }
.cf.frame-silver .cf-in { border-radius: 9px; box-shadow: 0 0 0 1px rgba(40, 48, 62, .85); }
/* Gold Crest (member exclusive, Gold and higher): burnished gold with a bevel line, four gold bolts on the corners, the
   Gold crest on the top edge and a slow, soft sheen across the rim – richer than Silver, quieter than Diamond. */
.cf.frame-gold-crest { padding: 10px; border-radius: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 2px, rgba(255, 244, 200, .07) 2px 3px),
    linear-gradient(135deg, rgba(255, 250, 225, .5), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 72%, rgba(255, 248, 215, .35)),
    linear-gradient(160deg, #fff1c2 0%, #e9c45e 18%, #a8790f 43%, #f6dc8c 62%, #9c6f0c 84%, #e2bb52 100%);
  box-shadow: 0 0 0 1px rgba(255, 240, 190, .7), 0 0 0 2.5px #4d3405, 0 0 22px rgba(240, 196, 90, .24), 0 12px 30px rgba(0, 0, 0, .4); }
.cf.frame-gold-crest::before { content: ''; position: absolute; inset: 4px; z-index: 2; border-radius: 10px; border: 1px solid rgba(255, 246, 210, .8); box-shadow: inset 0 0 0 1px rgba(90, 60, 6, .3), 0 0 0 1px rgba(100, 70, 10, .2); pointer-events: none; }
.cf.frame-gold-crest::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 10px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 250, 225, .6) 50%, transparent 60% 100%); background-size: 320% 100%; background-position: 100% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cfGlint 9s ease-in-out infinite; }
.cf.frame-gold-crest .cf-in { border-radius: 9px; box-shadow: 0 0 0 1px rgba(70, 46, 4, .85); }
.cf-crest { left: 50%; top: -16px; width: 112px; transform: translateX(-50%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)) drop-shadow(0 0 6px rgba(255, 215, 120, .3)); }
.cf-bolt { position: absolute; z-index: 3; width: 6px; height: 6px; transform: rotate(45deg); border-radius: 1.5px; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #f0cd6c 45%, #8c620b 100%); box-shadow: 0 0 0 1px rgba(74, 50, 5, .75), 0 1px 2px rgba(0, 0, 0, .45); }
.cf-bolt.tl { left: 3.5px; top: 3.5px; } .cf-bolt.tr { right: 3.5px; top: 3.5px; } .cf-bolt.bl { left: 3.5px; bottom: 3.5px; } .cf-bolt.br { right: 3.5px; bottom: 3.5px; }
@media (prefers-reduced-motion: reduce) { .cf.frame-gold-crest::after { animation: none; } }
/* Diamond Facets (member exclusive, Diamond only): an icy faceted rim (conic facets + a bevel line), a cut diamond
   on the top edge, four sparkles on the corners and a glint that runs around the rim now and then. Only transform,
   opacity and background-position move; prefers-reduced-motion stops all of it. */
.cf.frame-diamond { padding: 10px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, .3)),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0) 0 13px, rgba(235, 252, 255, .5) 13px 14px), repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0) 0 13px, rgba(10, 70, 110, .35) 13px 14px),
    conic-gradient(from 18deg at 38% 42%, #c8f5ff, #2fa8dc 9%, #eafcff 17%, #146a9e 27%, #8fe3fa 38%, #3ab4e4 49%, #f4feff 58%, #11618f 69%, #9be6fa 80%, #2793c8 90%, #c8f5ff);
  box-shadow: 0 0 0 1px rgba(214, 249, 255, .9), 0 0 0 2.5px #0a3d5a, 0 0 26px rgba(79, 195, 234, .55), 0 12px 30px rgba(0, 0, 0, .4); }
.cf.frame-diamond::before { content: ''; position: absolute; inset: 4px; z-index: 2; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(12, 71, 102, .35); pointer-events: none; }
.cf.frame-diamond::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 10px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, .95) 50%, transparent 58% 100%); background-size: 320% 100%; background-position: 100% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cfGlint 5.5s ease-in-out infinite; }
@keyframes cfGlint { 0%, 55% { background-position: 100% 0; } 90%, 100% { background-position: 0 0; } }
.cf-gem { left: 50%; top: -22px; width: 50px; transform: translateX(-50%); filter: drop-shadow(0 0 8px rgba(143, 227, 250, .75)) drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.cf-spark { position: absolute; z-index: 3; width: 14px; height: 14px; pointer-events: none; filter: drop-shadow(0 0 4px #bff3ff); animation: cfTwinkle 2.8s ease-in-out infinite; }
.cf-spark svg { display: block; width: 100%; height: 100%; }
.cf-spark.tl { left: -5px; top: -5px; } .cf-spark.tr { right: -5px; top: -5px; width: 10px; height: 10px; animation-delay: -.7s; }
.cf-spark.bl { left: -4px; bottom: -4px; width: 10px; height: 10px; animation-delay: -1.9s; } .cf-spark.br { right: -6px; bottom: -6px; animation-delay: -1.2s; }
@keyframes cfTwinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
/* Emerald Facets (member exclusive, Group only): the Diamond Facets cut in deep emerald – green conic facets, a step-cut
   emerald on the top edge, the same sparkles and glint. */
.cf.frame-emerald { padding: 10px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, .25)),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0) 0 13px, rgba(215, 255, 235, .32) 13px 14px), repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0) 0 13px, rgba(2, 50, 30, .45) 13px 14px),
    conic-gradient(from 18deg at 38% 42%, #7fe3b4, #0c9058 9%, #b8f3d6 17%, #045232 27%, #33c482 38%, #0b9a5f 49%, #d2f9e5 58%, #03482c 69%, #46d393 80%, #087a4a 90%, #7fe3b4);
  box-shadow: 0 0 0 1px rgba(205, 255, 230, .9), 0 0 0 2.5px #053a25, 0 0 26px rgba(47, 208, 138, .5), 0 12px 30px rgba(0, 0, 0, .4); }
.cf.frame-emerald::before { content: ''; position: absolute; inset: 4px; z-index: 2; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(4, 70, 42, .35); pointer-events: none; }
.cf.frame-emerald::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 10px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 42%, rgba(240, 255, 248, .9) 50%, transparent 58% 100%); background-size: 320% 100%; background-position: 100% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cfGlint 5.5s ease-in-out infinite; }
.cf-gem.cf-emerald { top: -21px; width: 46px; filter: drop-shadow(0 0 8px rgba(80, 230, 160, .7)) drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.cf.frame-emerald .cf-spark { filter: drop-shadow(0 0 4px #b9ffdc); }
@media (prefers-reduced-motion: reduce) { .cf.frame-emerald::after { animation: none; } }
@media (prefers-reduced-motion: reduce) { .cf.frame-diamond::after, .cf-spark { animation: none; } }
.pv-tiles { align-items: center; }
.tiles > .cf, .pv-tiles > .cf { min-width: 0; }

/* ---------- Focused pages (Shop, Membership): no app sidebar ---------- */
.nav-link:hover { background: #1f212c; color: #fff; }
.coins { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coins .ico { width: 18px; height: 18px; }
.coins.big { font-size: 22px; gap: 7px; }
.coins.big .ico { width: 26px; height: 26px; }
.btn .coins .ico { width: 20px; height: 20px; }
.btn-plain { background: #3a3f52; box-shadow: inset 0 -4px 0 #272a37; }
.btn-plain:hover { background: #454b61; }
.rar { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rar.r-common { color: var(--faint); } .rar.r-rare { color: #5fb4ff; } .rar.r-epic { color: #a98fff; } .rar.r-legendary { color: var(--gold); }
.soon-tag { display: inline-block; margin-inline-start: 8px; padding: 0 6px; border-radius: 4px; background: var(--surface-3); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 18px; vertical-align: 1px; }
.soon-tag.big { margin: 0 0 14px; font-size: 12px; line-height: 22px; padding: 0 9px; }

/* camera mock used in previews */
.sp-cam { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #2b3042; }
.sp-cam > svg:not(.sp-person), .sp-cam > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-cam > video.mirror { transform: scaleX(-1); }
.sp-room { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, rgba(0, 0, 0, .18) 62% 64%, transparent 64%), linear-gradient(180deg, #56607e 0 58%, #3e3a44 58% 100%); }
.sp-room::before { content: ''; position: absolute; left: 10%; top: 14%; width: 26%; height: 30%; border-radius: 3px; background: linear-gradient(160deg, #a9c6e8, #6f8fb6); box-shadow: 0 0 0 4px #7a6650; }
.sp-room::after { content: ''; position: absolute; right: 8%; bottom: 42%; width: 22%; height: 26%; background: repeating-linear-gradient(90deg, #8a3a3a 0 6px, #3a5a7a 6px 11px, #8a7a3a 11px 15px); border-bottom: 4px solid #6a5238; }
.sp-room.blur { filter: blur(6px); transform: scale(1.12); }
.sp-person { position: absolute; left: 50%; bottom: 0; width: 64%; transform: translateX(-50%); }

/* ---------- Shop ---------- */
.shop2 { max-width: 1120px; }
.sh-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sh-top h1 { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.sh-top p { margin-top: 6px; font-size: 16px; }
.sh-wallet { display: flex; align-items: center; gap: 14px; padding-block: 8px 8px; padding-inline: 18px 8px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sh-daily, .sh-dr { margin-bottom: 64px; scroll-margin-top: 24px; }
.sh-daily-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sh-daily-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -.01em; }
.sh-timer { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 15px; }
.sh-timer .ico { width: 20px; height: 20px; color: var(--gold); }
.sh-timer b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 92px; }
.sh-row { margin-bottom: 40px; }
.sh-row h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.sh-row h3 .ico { width: 22px; height: 22px; color: var(--muted); }
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* offer card: background tinted by rarity */
.oc { --r1: #3a3f52; --r2: #262a37; --rc: #b6bccd; display: flex; flex-direction: column; text-align: start; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--r1), var(--r2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .15s, box-shadow .15s; }
.oc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 16px 34px rgba(0, 0, 0, .35); }
.r-rare { --r1: #1f4f86; --r2: #152a48; --rc: #7cc2ff; }
.r-epic { --r1: #4f2f8f; --r2: #261a48; --rc: #c3a8ff; }
.r-legendary { --r1: #8a5a12; --r2: #3c2810; --rc: #ffd27a; }
.oc-art { height: 230px; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 45%, rgba(255, 255, 255, .14), transparent 70%); }
.oc-art > .cf, .oc-art > .sp-cam { margin: 0; }
.oc-art .sp-cam { width: 168px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.oc-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; background: rgba(0, 0, 0, .22); }
.sd-body > .oc-rar + .lim-badge { margin-inline-start: 8px; vertical-align: 1px; }
.oc-rar { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }
.oc-name { font-size: 19px; font-weight: 900; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-price { margin-top: 10px; }
.oc-price .coins { font-size: 18px; }
.oc-price .coins .ico { width: 22px; height: 22px; }
.oc-owned { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ok); }
.oc-owned .ico { width: 18px; height: 18px; }
.sh-hint { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sh-hint a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sh-hint a:hover { background: var(--surface-2); }
.sh-hint a > .ico { width: 26px; height: 26px; color: var(--accent-hi); }
.sh-hint span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sh-hint small { color: var(--muted); font-size: 13px; }
.sh-hint .chev { width: 20px; height: 20px; color: var(--faint); }
.bundles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bundle { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bundle.tag { box-shadow: inset 0 0 0 2px rgba(244, 183, 64, .6); }
.bundle-tag { position: absolute; top: 12px; inset-inline-end: 12px; padding: 2px 8px; border-radius: 4px; background: var(--gold); color: #2a1d00; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.bundle-sub { color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.bundle-sub .bonus { color: var(--ok); }
.shop-test { display: flex; gap: 8px; align-items: center; margin-top: 20px; font-size: 13px; color: var(--faint); }
.shop-test .ico { width: 16px; height: 16px; }
/* item detail */
.modal-item { max-width: 520px; overflow: hidden; }
.sd { --r1: #3a3f52; --r2: #262a37; --rc: #b6bccd; }
.sd-art { display: grid; place-items: center; padding: 48px 32px 36px; background: radial-gradient(70% 70% at 50% 45%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(180deg, var(--r1), var(--r2)); }
.sd-art > .cf, .sd-art > .sp-cam { width: 100%; max-width: 340px; margin: 0; }
.sd-art.small { padding: 30px; border-radius: 12px; background: var(--surface-2); }
.sd-art.small > .cf, .sd-art.small > .sp-cam { max-width: 200px; }
.sd-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; }
.sd-body h2 { font-size: 26px; font-weight: 900; }
.sd-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sd-act .btn { flex: 1 1 auto; }
.dlg-done h2 { text-align: center; padding: 0; }
.dlg-done > p { text-align: center; }
@media (max-width: 1000px) { .bundles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offer { gap: 16px; } .oc-art { height: 190px; } .oc-art .sp-cam { width: 136px; } }
@media (max-width: 760px) {
  .sh-top h1 { font-size: 32px; }
  .sh-top { margin-bottom: 28px; }
  .offer { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .oc { flex-direction: row; }
  .oc-art { height: auto; width: 46%; flex: none; padding: 22px 12px; }
  .oc-art .sp-cam { width: 112px; }
  .oc-body { justify-content: center; background: none; }
  .oc-name { white-space: normal; font-size: 17px; }
  .sh-hint { grid-template-columns: minmax(0, 1fr); }
  .bundles4 { gap: 12px; }
  .bundle { padding: 22px 10px 14px; }
  .bundle .coins.big { font-size: 18px; }
  .sh-daily, .sh-dr { margin-bottom: 44px; }
}

/* Dialogs (shop, membership, report) */
.dlg { padding: 30px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { font-size: 22px; font-weight: 900; padding-inline-end: 30px; }
.dlg p { margin: 0; }
/* a Drachma bundle's picture at the head of its checkout (drachma-art.js), on the warm light of its shop card */
.dlg-art { position: relative; isolation: isolate; align-self: center; width: 150px; aspect-ratio: 4 / 3; margin: -6px 0 -4px; }
.dlg-art::before { content: ''; position: absolute; z-index: -1; inset: -8% -16% -2%; background: radial-gradient(closest-side, rgba(255, 196, 92, .16), rgba(255, 196, 92, .07) 55%, rgba(255, 196, 92, 0)); }
.dlg-art + h2 { text-align: center; padding-inline: 30px; }
.dlg-lines { border-radius: 8px; background: var(--surface-2); padding: 2px 14px; }
.dlg-lines > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; }
.dlg-lines > div + div { border-top: 1px solid rgba(255, 255, 255, .06); }
.dlg-lines span { color: var(--muted); }
.dlg-lines .tot b { font-size: 18px; }
.dlg-act { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.dlg-act.col { flex-direction: column; }
.dlg-test { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--faint); }
.dlg-test .ico { width: 16px; height: 16px; margin-top: 1px; }
.dlg-warn { display: flex; gap: 8px; align-items: center; color: #ffd27a; font-weight: 700; font-size: 14px; }
.dlg-warn .ico { width: 18px; height: 18px; }
.dlg-center { text-align: center; }
/* a quiet destructive button: the way out next to the primary choice (resign, leave) */
.btn-quiet-danger { background: none; box-shadow: inset 0 0 0 1.5px rgba(239, 77, 90, .45); color: #ff8d98; }
.btn-quiet-danger:hover { background: rgba(239, 77, 90, .12); color: #ffb3ba; }
.btn-quiet-danger .ico { width: 18px; height: 18px; }
/* two choices: right-aligned in a row, stacked full width on phones (the primary one on top) */
@media (max-width: 560px) { .dlg-act.dlg-act-stack { flex-direction: column-reverse; align-items: stretch; } }
/* resign / leave a duel (duel.js confirmResign) and the result of a duel that ended before the verdict */
.dlg-leave h2, .dlg-result h2 { padding-inline-end: 0; }
.dlg-leave p { font-size: 15px; line-height: 1.5; }
.dlg-result { text-align: center; padding-top: 34px; }
.dlg-result .result-mark { margin-bottom: 2px; }
.dlg-result.loss .result-mark { color: var(--muted); }
.dlg-result > p { font-size: 15px; margin-top: -6px; }
.dlg-result .dlg-act { justify-content: center; }
.vd-early { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.dlg-plan { align-self: center; width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center; background: hsl(var(--h) calc(40% * var(--ps, 1)) 50% / .16); }
.pg.big { width: 46px; height: 46px; }

/* ---------- Membership ---------- */
.ms-top { position: relative; max-width: 1160px; margin: 0 auto; padding: 36px 24px 56px; }
/* the header as on the other pages: the headline on the left, the billing switch under it */
.ms-hero { display: flex; flex-direction: column; align-items: flex-start; text-align: start; gap: 12px; }
.ms-hero h1 { font-size: 34px; line-height: 1.12; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.ms-cur { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 24px auto 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px hsl(var(--h, 250) calc(60% * var(--ps, 1)) 60% / .3); color: var(--muted); font-size: 14.5px; }
.ms-cur > .ico, .ms-cur-g .ico { width: 22px; height: 22px; flex: none; }
.ms-cur-g { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: hsl(var(--h) calc(60% * var(--ps, 1)) 50% / .16); }
.ms-cur-t { flex: 1; min-width: 0; text-align: start; }
.ms-cur-t b { color: var(--text); }
.ms-cur-a { display: flex; align-items: center; gap: 14px; flex: none; }
.ms-cancel { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.ms-cancel:hover { color: #ff8d98; }
/* billing period: the app's segmented switch (.seg, as the member sort), left under the headline; the yearly side carries
   the best saving */
.ms-period { display: inline-grid; width: max-content; max-width: 100%; margin: 18px 0 26px; }
.ms-period button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; white-space: nowrap; }
.ms-up { padding: 2px 8px; border-radius: 999px; background: rgba(53, 194, 165, .14); color: var(--ok); font-size: 11.5px; font-weight: 800; }

.ms-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pc { --hc: var(--pc, hsl(var(--h) calc(85% * var(--ps, 1)) 66%)); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; border-radius: 16px; text-align: start;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pc.pop { box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 62% / .45); }
.pc.mine { box-shadow: inset 0 0 0 1.5px var(--hc); }
/* "Most popular" / "Your plan": a small quiet tag on the top edge */
.pc-flag { position: absolute; top: 0; left: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 62% / .45); color: var(--hc); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pc-flag.mine { box-shadow: inset 0 0 0 1px var(--hc); }
.pc-flag .ico { width: 13px; height: 13px; }
.pc-id { display: flex; align-items: center; gap: 12px; min-height: 42px; }
/* the plan's own emblem (ui.js planGlyph) left of its name, free-standing in the plan colour */
.pc-id .pc-gem { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.pc-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pc-nm b { font-size: 20px; font-weight: 900; letter-spacing: -.01em; color: var(--hc); }
.pc-nm small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pc-price { display: flex; flex-direction: column; gap: 4px; padding-bottom: 2px; }
.pc-amt { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.pc-amt b { font-size: 36px; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-amt small { font-size: 14px; font-weight: 700; color: var(--muted); }
.pc-sub { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 13.5px; color: var(--muted); }
.pc-sub s { color: var(--faint); font-variant-numeric: tabular-nums; }
.pc-save { padding: 2px 9px; border-radius: 999px; background: rgba(53, 194, 165, .16); color: var(--ok); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pc-bill { font-size: 12.5px; color: var(--faint); }
.btn-plan { background: hsl(var(--h) calc(62% * var(--ps, 1)) 45%); color: #fff; box-shadow: inset 0 -4px 0 hsl(var(--h) calc(55% * var(--ps, 1)) 30%); }
.btn-plan:hover { background: hsl(var(--h) calc(66% * var(--ps, 1)) 51%); }
/* Silver and Gold: polished metal (a bright top, a deeper band and a light lower edge), dark text */
.btn-plan.pl-scholar { background: linear-gradient(180deg, #fbfcfe 0%, #dde3eb 38%, #b4bfcd 62%, #cfd7e2 100%); color: #1d2533; box-shadow: inset 0 -4px 0 #7d899b, inset 0 1px 0 #fff; }
.btn-plan.pl-scholar:hover { background: linear-gradient(180deg, #ffffff 0%, #e7ecf2 38%, #c1cbd8 62%, #dae1ea 100%); }
.btn-plan.pl-sage { background: linear-gradient(180deg, #fff0bc 0%, #f1cf67 36%, #d6a632 62%, #e9c25a 100%); color: #3a2803; box-shadow: inset 0 -4px 0 #9c710f, inset 0 1px 0 #fff7d6; }
.btn-plan.pl-sage:hover { background: linear-gradient(180deg, #fff5d0 0%, #f5d878 36%, #deb040 62%, #efcb66 100%); }
.pc .btn { margin-top: 2px; }
.pc-gold { background: linear-gradient(180deg, hsl(var(--h) 95% 84%), hsl(var(--h) 80% 62%) 55%, hsl(var(--h) 75% 50%)); color: #06222d; box-shadow: inset 0 -4px 0 hsl(var(--h) 70% 36%); }
.pc-gold:hover { background: linear-gradient(180deg, hsl(var(--h) 95% 88%), hsl(var(--h) 85% 68%) 55%, hsl(var(--h) 78% 56%)); }
.pc-adds { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.pc-lead { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.pc-adds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.35; }
.pc-adds li { display: flex; align-items: flex-start; gap: 8px; }
.pc-adds li > .ico { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--muted); }
.pc-adds li > span:not(.soon-tag) { flex: 1; min-width: 0; }
.pc-adds li b { color: var(--text); font-weight: 800; white-space: nowrap; }
.pc-adds .soon-tag { height: 20px; padding: 0 8px; font-size: 10.5px; flex: none; }
.pc-adds { gap: 9px; }
.pc-adds ul { gap: 7px; }
/* how you look with the plan: its camera frame (the shop's 200px preview, scaled into a fixed stage – the same size and
   place on every card), its name under it, and your name in the plan colour with its badge – one quiet panel */
.pc-you { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 10px 8px; border-radius: 14px;
  background: rgba(0, 0, 0, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.pc-look { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pc-stage { position: relative; display: block; width: 100%; height: 118px; }
.pc-z { position: absolute; left: 50%; top: 50%; width: 200px; transform: translate(-50%, -46%) scale(.72); pointer-events: none; }
.pc-z > .cf { width: 200px; margin: 0; }
.pc-z .cf .sp-cam { width: 100%; }
.pc-cap { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 100%; min-width: 0; line-height: 1.25; }
.pc-cap b, .pc-cap small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cap b { font-size: 12.5px; font-weight: 800; color: var(--hc); }
.pc-cap small { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.pc-me { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 40px; padding: 0 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.pc-me .av { width: 24px; height: 24px; flex: none; border-radius: 50%; font-size: 11px; }
.pc-me b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 900; letter-spacing: -.01em; }
.pc-me .plan-badge { margin: 0; top: 0; }
.ms-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 20px; }
/* the comparison table under the cards */
.ms-cmp-h { margin: 56px 0 18px; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: -.01em; }
.mt { display: grid; grid-template-columns: minmax(230px, 1.5fr) repeat(var(--cols), minmax(0, 1fr)); border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: clip; }
.mt-row { display: contents; }
.mt-row > * { padding: 0 14px; min-height: 48px; display: flex; align-items: center; }
.mt-row.odd > * { background: rgba(255, 255, 255, .022); }
.mt-lab { gap: 12px; font-weight: 700; font-size: 14.5px; }
.mt-lab > .ico { width: 21px; height: 21px; color: var(--muted); flex: none; }
.mt-lab > span:not(.mt-info) { flex: 1; min-width: 0; }
.mt-lab .soon-tag { margin-inline-start: 8px; height: 20px; padding: 0 8px; font-size: 10.5px; vertical-align: 1px; }
.mt-info { display: inline-grid; color: var(--faint); cursor: help; flex: none; }
.mt-info .ico { width: 15px; height: 15px; }
.mt-info:hover, .mt-info:focus { color: var(--text); }
.mt-c { justify-content: center; text-align: center; }
.mt-head > * { position: sticky; top: 0; z-index: 2; min-height: 58px; background: #262938 !important; border-bottom: 1px solid var(--line); }
.mt-head .mt-lab { text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .06em; color: var(--faint); }
.mt-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; font-size: 15px; }
.mt-name .pg { width: 19px; height: 19px; flex: none; }
.mt-c.pop { background: rgba(95, 205, 240, .055) !important; }
.mt-head .mt-c.pop { background: #233039 !important; box-shadow: inset 0 3px 0 #5fcdf0; }
.mt-row.mt-end > * { min-height: 8px; padding: 0; }
.mt-yes { display: inline-grid; color: #fff; }
.mt-yes .ico { width: 20px; height: 20px; }
.mt-c.pop .mt-yes { width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #5fcdf0; color: #06222d; }
.mt-c.pop .mt-yes .ico { width: 15px; height: 15px; }
.mt-no { color: #4c5168; font-weight: 800; }
.mt-val { font-weight: 800; font-size: 13.5px; }

.ms-f { padding: 72px 24px; background: #15161e; }
.ms-f.flip { background: var(--bg); }
.ms-f-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ms-f.flip .ms-f-art { order: -1; }
.ms-f-txt h2 { font-size: 38px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 16px; }
.ms-f-txt p { color: var(--muted); font-size: 17px; max-width: 470px; }
.ms-f-art { display: grid; place-items: center; }
.art-ph { display: grid; grid-template-columns: repeat(3, 108px); gap: 14px; }
.art-ph-c { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); transform: rotate(calc((var(--i) - 4) * 1deg)); }
.art-ph-c .av { width: 96px; height: 96px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.art-chat { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.bub { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; max-width: 88%; }
.bub.me { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 4px; }
.bub.me.ok { background: #2f8f7b; }
.bub.mentor { align-self: flex-start; background: var(--surface-2); border-end-start-radius: 4px; }
.flagged { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #ff8a7a; margin-bottom: 4px; }
.flagged .ico { width: 16px; height: 16px; }
.art-aut { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 12px; background: var(--surface); }
.aut-r { display: grid; grid-template-columns: 80px 1fr 22px 22px 1fr; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.aut-r span { color: var(--muted); }
.aut-r i { height: 8px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.aut-r i::after { content: ''; position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: 4px; }
.aut-r i.a::after { inset-inline-end: 0; background: var(--pro); }
.aut-r i.b::after { inset-inline-start: 0; background: var(--contra); }
.aut-r b { text-align: center; font-variant-numeric: tabular-nums; }
.aut-r b.c { color: #ffa58f; } .aut-r b:not(.c) { color: #8cc6ff; }
.aut-miss { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: rgba(244, 183, 64, .1); color: #ffe2a6; font-size: 13.5px; }
.aut-miss .ico { width: 18px; height: 18px; color: var(--gold); }
.art-ad { position: relative; width: 220px; height: 170px; display: grid; place-items: center; }
.ad-box { width: 200px; height: 130px; border-radius: 12px; background: repeating-linear-gradient(135deg, #2b2f40 0 12px, #262a39 12px 24px); display: grid; place-items: center; font-weight: 900; font-size: 40px; color: #4c5168; }
.ad-x { position: absolute; width: 160px; height: 160px; color: var(--danger); }
/* Membership page: names in the four plan colours next to a camera in the Diamond frame */
.art-names { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 26px; align-items: center; width: 100%; max-width: 470px; }
.an-cam .cf { margin: 14px 8px 8px; }
.an-cam .sp-cam { width: 100%; }
.an-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.an-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px hsl(var(--h) calc(60% * var(--ps, 1)) 60% / .16); }
.an-g { grid-row: 1 / 3; display: grid; place-items: center; }
.an-g .pg { width: 26px; height: 26px; }
.an-list b { font-size: 18px; font-weight: 900; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-list small { font-size: 12px; font-weight: 700; color: var(--faint); }
@media (max-width: 600px) { .art-names { grid-template-columns: minmax(0, 1fr); max-width: 340px; } .an-cam { max-width: 240px; margin: 0 auto; width: 100%; } }
.ms-faq { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; }
.ms-faq h2, .ms-end h2 { font-size: 34px; font-weight: 900; text-align: center; margin-bottom: 22px; letter-spacing: -.01em; }
.ms-faq details { border-bottom: 1px solid var(--line); }
.ms-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px; font-weight: 800; font-size: 16px; }
.ms-faq summary::-webkit-details-marker { display: none; }
.faq-x .ico { width: 20px; height: 20px; color: var(--muted); transition: transform .15s; }
.ms-faq details[open] .faq-x .ico { transform: rotate(45deg); }
.ms-faq details p { padding: 0 4px 18px; color: var(--muted); font-size: 15px; }
.ms-end { text-align: center; padding: 40px 24px 72px; }
/* your membership and billing, at the very end of the page */
.ms-acct { max-width: 760px; margin: 0 auto; padding: 28px 24px 72px; border-top: 1px solid var(--line); }
.ms-acct h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); text-align: center; }
.ms-acct .ms-cur { margin: 0; }
@media (max-width: 1100px) {
  .ms-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 899px) { .mt-head > * { top: 56px; } }
@media (max-width: 900px) {
  .ms-f-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ms-f.flip .ms-f-art { order: 0; }
}
@media (max-width: 600px) {
  .ms-top { padding: 26px 16px 40px; }
  .ms-hero { gap: 10px; }
  .ms-hero h1 { font-size: 28px; }
  .ms-cur { flex-wrap: wrap; }
  .ms-cur-t { flex-basis: calc(100% - 52px); }
  .ms-cur-a { width: 100%; justify-content: flex-end; }
  .ms-bar { margin: 16px 0 18px; }
  .ms-period button { padding: 0 14px; font-size: 14.5px; height: 40px; }
  .ms-plans { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pc { padding: 22px 18px 18px; }
  .pc-stage { height: 136px; }
  .pc-z { transform: translate(-50%, -46%) scale(.84); }
  .ms-cmp-h { margin-top: 44px; font-size: 23px; }
  /* the table on a phone: the feature name over the full width, the four plans in a row under it */
  .mt { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .mt-row > * { padding: 0 6px; min-height: 40px; }
  .mt-row > .mt-lab { grid-column: 1 / -1; min-height: 0; padding: 12px 14px 2px; font-size: 14px; }
  .mt-row > .mt-c { padding-bottom: 6px; }
  .mt-head > .mt-lab { display: none; }
  .mt-head > * { min-height: 50px; }
  .mt-name { flex-direction: column; gap: 3px; font-size: 12px; }
  .mt-end > .mt-lab, .mt-end > div:first-child { display: none; }
  .mt-val { font-size: 12.5px; }
  .ms-f { padding: 48px 16px; }
  .ms-f-txt h2 { font-size: 28px; }
  .art-ph { grid-template-columns: repeat(3, 84px); gap: 10px; }
  .art-ph-c .av { width: 76px; height: 76px; }
  .aut-r { grid-template-columns: 64px 1fr 18px 18px 1fr; font-size: 12.5px; }
  .ms-faq { padding: 48px 16px 24px; }
  .ms-faq h2, .ms-end h2 { font-size: 26px; }
}

/* ---------- Duel: report, after-duel talk, live analysis ---------- */
.pbar-report { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--faint); }
.pbar-report:hover { background: rgba(239, 77, 90, .14); color: #ff8a93; }
.pbar-report .ico { width: 18px; height: 18px; }
.talk-head { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.talk-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(53, 194, 165, .15); color: var(--ok); flex: none; }
.talk-ico .ico { width: 22px; height: 22px; }
.live-notes { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.live-notes .ico { width: 18px; height: 18px; color: var(--accent-hi); margin-top: 1px; }
.live-notes b { color: var(--text); }
.prof-report { color: var(--faint); }
.rp { padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.rp h2 { font-size: 22px; font-weight: 900; padding-inline-end: 30px; }
.rp-list { display: flex; flex-direction: column; gap: 6px; }
.rp-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.rp-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--danger); }
.rp-opt input { margin-top: 3px; accent-color: var(--danger); }
.rp-opt span { display: flex; flex-direction: column; }
.rp-opt b { font-size: 14.5px; }
.rp-opt small { color: var(--muted); font-size: 12.5px; }
.rp textarea { width: 100%; resize: vertical; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); padding: 10px 12px; font-size: 14px; }
.rp-act { display: flex; justify-content: flex-end; gap: 10px; }
.lvl-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lvl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.lvl:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.lvl input { accent-color: var(--accent); }
.lvl span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.lvl b { font-size: 14px; }
.lvl small { font-size: 12px; color: var(--muted); }
.lvl em { font-style: normal; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .lvl-pick { grid-template-columns: minmax(0, 1fr); } }
/* new frames */
.cf.frame-meander { padding: 12px; border-radius: 6px; background-color: #1b3f7a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M1 15V1h14v11H5V5h6v4H8' fill='none' stroke='%23f2ead8' stroke-width='1.6'/%3E%3C/svg%3E"); background-size: 12px 12px; box-shadow: 0 0 0 2px #f2ead8, 0 10px 26px rgba(0, 0, 0, .35); }
.cf.frame-bronze { padding: 10px; border-radius: 12px; background: radial-gradient(120% 80% at 30% 20%, #f0b878, #b4743a 45%, #6e4119 100%); box-shadow: inset 0 0 0 2px rgba(255, 220, 170, .35), 0 0 0 1px #4a2a0e, 0 10px 24px rgba(0, 0, 0, .35); }
.cf-rivet { position: absolute; z-index: 3; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe2b8, #8a5420 70%); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.cf-rivet.tl { left: 2px; top: 2px; } .cf-rivet.tr { right: 2px; top: 2px; } .cf-rivet.bl { left: 2px; bottom: 2px; } .cf-rivet.br { right: 2px; bottom: 2px; }
.cf.frame-ivy { padding: 6px; border-radius: 12px; background: linear-gradient(135deg, #3c6e2f, #1f3d19); box-shadow: 0 0 0 1px #16300f, 0 10px 24px rgba(0, 0, 0, .3); }
.cf-ivy { width: 30%; max-width: 110px; }
.cf-ivy.tl { left: -12px; top: -14px; transform: scale(-1, -1) rotate(0deg); }
.cf-ivy.br { right: -12px; bottom: -14px; }

/* Play Online preview: both cameras keep the same size, the frame grows outward into the slot */
.pv-slot { padding: 20px 26px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pv-slot > .cf { margin: -8px; }
.pv-slot > .cf.frame-laurel { margin: -7px; }
.pv-slot > .cf.frame-marble { margin: -10px -24px; }
.pv-slot > .cf.frame-owl { margin: -9px; }
.pv-slot > .cf.frame-neon { margin: -4px; }
.pv-slot > .cf.frame-scroll { margin: -16px -10px; }
.pv-slot > .cf.frame-meander { margin: -12px; }
.pv-slot > .cf.frame-bronze { margin: -10px; }
.pv-slot > .cf.frame-ivy { margin: -6px; }
.pv-slot > .cf.frame-diamond, .pv-slot > .cf.frame-emerald, .pv-slot > .cf.frame-gold-crest { margin: -10px; }
.pv-slot > .cf.frame-silver { margin: -8px; }
.pv-look { position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-block: 0 0; padding-inline: 9px 12px; border-radius: 8px; background: rgba(10, 11, 16, .78); font-size: 13.5px; font-weight: 800; color: #fff; backdrop-filter: blur(4px); }
.pv-look:hover { background: var(--accent); }
.pv-look .ico { width: 18px; height: 18px; }
@media (max-width: 600px) { .pv-slot { padding: 14px 12px; } .pv-look span { display: none; } .pv-look { padding: 0 8px; inset-inline-end: 6px; bottom: 6px; } }

/* Look picker */
.modal-look { max-width: 760px; }
.lk { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.lk-prev { display: grid; place-items: center; padding: 40px 28px; background: #14151d; }
.lk-prev > .cf, .lk-prev > .sp-cam { width: 100%; margin: 0; }
.lk-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 60px); overflow-y: auto; }
.lk-body h2 { font-size: 24px; font-weight: 900; padding-inline-end: 30px; }
.lk-body h3 { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.lk-opt { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 8px 10px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.lk-opt:hover { background: var(--surface-3); }
.lk-opt.on { box-shadow: inset 0 0 0 2px var(--accent); }
.lk-art { height: 84px; display: grid; place-items: center; }
.lk-art > .cf, .lk-art > .sp-cam { margin: 0; }
.lk-art .sp-cam { width: 72px; }
.lk-art .cf-owl { width: 34px; top: -18px; }
.lk-art .cf-gem { width: 26px; top: -12px; } .lk-art .cf-spark { width: 9px; height: 9px; }
.lk-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-ed { margin-top: -2px; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lk-check { position: absolute; top: 6px; inset-inline-end: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.lk-check .ico { width: 13px; height: 13px; color: #fff; }
.lk-shop { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 700; }
.lk-shop:hover { background: var(--surface-3); }
.lk-shop span { flex: 1; }
.lk-shop .ico { width: 20px; height: 20px; color: var(--accent-hi); }
.lk-shop .chev { color: var(--faint); }
@media (max-width: 700px) { .lk { grid-template-columns: minmax(0, 1fr); } .lk-prev { padding: 28px 70px; } .lk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pv-tiles:has(.pv-slot) { gap: 0; }

/* Profile: provisional rating + collection */
.prov { font-style: normal; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; margin-inline-start: 6px; padding: 0 6px; border-radius: 4px; background: var(--surface-3); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: help; }
.prov-q { font-size: .6em; color: var(--muted); margin-inline-start: 2px; }
.collection { margin-top: 24px; scroll-margin-top: 20px; }
.collection .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col-body { padding: 6px 18px 22px; display: flex; flex-direction: column; gap: 26px; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.col-it { --r1: #3a3f52; --r2: #262a37; --rc: #b6bccd; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, var(--r1), var(--r2)); }
.col-it.locked { filter: saturate(.25) brightness(.7); }
.col-art { position: relative; height: 120px; display: grid; place-items: center; }
.col-art > .cf, .col-art > .sp-cam { margin: 0; }
.col-art .sp-cam { width: 92px; }
.col-art .cf-owl { width: 40px; top: -22px; }
.col-art .cf-gem { width: 30px; top: -14px; }
.col-lock { position: absolute; inset-inline-end: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); }
.col-lock .ico { width: 15px; height: 15px; color: #fff; }
.col-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; background: rgba(0, 0, 0, .22); min-height: 78px; }
.col-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-tag { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; }
.col-tag .ico { width: 14px; height: 14px; }
.col-tag.eq { color: var(--ok); }
.col-tag.shop { color: var(--gold); }
.col-it.locked .col-tag.shop { filter: none; }
@media (max-width: 600px) { .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- Name effects ---------- */
.nx { display: inline-block; font-weight: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; background-size: 200% 100%; }
.nx-bronze { background-image: linear-gradient(100deg, #c9824a, #f0b98a 45%, #9a5a2c 70%, #d99a62); }
.nx-silver { background-image: linear-gradient(100deg, #9aa3b5, #f4f6fb 40%, #b7becd 60%, #7c8597); }
.nx-gilded { background-image: linear-gradient(100deg, #c8901a, #ffe08a 35%, #f4b740 55%, #a8740c 80%, #ffd166); animation: nx-slide 5s linear infinite; }
.nx-ember { background-image: linear-gradient(0deg, #ff3d2e, #ff8a2a 45%, #ffd36b); filter: drop-shadow(0 0 6px rgba(255, 110, 40, .55)); animation: nx-ember 1.6s ease-in-out infinite; background-size: 100% 100%; }
.nx-marble { background-image: linear-gradient(115deg, #f5f3ee 0%, #cfccc6 18%, #fbfaf7 30%, #a9a5a0 42%, #efece6 55%, #c6c2bb 70%, #fffdf9 85%); background-size: 160% 100%; }
.nx-oracle { background-image: linear-gradient(100deg, #b49cff, #e7defe 45%, #8f74ff 70%, #c4b6ff); filter: drop-shadow(0 0 8px rgba(143, 116, 255, .7)); animation: nx-slide 6s linear infinite, nx-pulse 2.6s ease-in-out infinite; }
.nx-aurora { background-image: linear-gradient(90deg, #35c2a5, #3b9eff, #8f74ff, #ff6bd0, #35c2a5); background-size: 300% 100%; animation: nx-slide 6s linear infinite; }
.nx-olympus { background-image: linear-gradient(100deg, #b9800f 0%, #ffe9a8 20%, #fff 28%, #f4b740 40%, #b9800f 60%, #ffe08a 80%, #fff 88%, #c8901a 100%); background-size: 250% 100%; filter: drop-shadow(0 0 7px rgba(244, 183, 64, .6)); animation: nx-slide 3.5s linear infinite; }
@keyframes nx-slide { from { background-position: 0% 0; } to { background-position: -200% 0; } }
@keyframes nx-ember { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 110, 40, .45)); } 50% { filter: drop-shadow(0 0 10px rgba(255, 140, 40, .85)); } }
@keyframes nx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .nx { animation: none !important; } }
/* ---------- Member names (ui.js uname, data.js planNameStyle): the plan colour wherever a name appears. Silver and Gold
   a still metal gradient; Diamond and Group with the sheen of the sidebar Membership entry (.nav-link.nav-ms > span) running through the
   letters now and then. A shop name effect (.nx) replaces it. Cheap: only background-position of a text-clipped gradient
   moves (no JS, no layout, no filter), the band rests outside the visible part between sweeps, off-screen names are not
   painted, and prefers-reduced-motion stops it. */
.np { font-weight: inherit; }
.np-scholar { color: #c3ccd8; }
.np-sage { color: #e9c15a; }
.np-oracle { color: #5ccdf0; --np1: #4fc6ee; --np2: #aeeefd; --np3: #ffffff; }
.np-symposium { color: #2fcf88; --np1: #1fc47c; --np2: #8ff0c2; --np3: #f2fff8; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* Silver and Gold: a still metal gradient through the letters (bright top, deeper middle, bright edge at the bottom) */
  .np-scholar, .np-sage { background-image: linear-gradient(180deg, var(--m1) 0%, var(--m2) 46%, var(--m3) 62%, var(--m4) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .np-scholar { --m1: #f7f9fc; --m2: #cdd5e0; --m3: #8f9cb0; --m4: #d6dde7; }
  .np-sage { --m1: #fff0bb; --m2: #ecc65d; --m3: #c9961f; --m4: #f2d27a; }
  .np-shine { background-image: linear-gradient(100deg, var(--np1) 0%, var(--np1) 41%, var(--np2) 46%, var(--np3) 50%, var(--np2) 54%, var(--np1) 59%, var(--np1) 100%);
    background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: npSheen 5.2s ease-in-out infinite; }
}
/* the band sweeps from the start of the name to its end (in the second half of the cycle), then rests off the letters */
@keyframes npSheen { 0%, 48% { background-position: 100% 0; } 86%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .np-shine { animation: none; } }
.nx-stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; padding: 10px; font-size: 22px; font-weight: 900; text-align: center; word-break: break-word; }
.sd-art .nx-stage { font-size: 38px; min-height: 120px; }
.nx-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--accent-soft); color: #c4b6ff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.nx-btn .ico { width: 16px; height: 16px; }
.nx-btn:hover { background: rgba(123, 92, 255, .26); color: #fff; }
.modal-md { max-width: 620px; }
.nfx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.nfx-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 2px solid transparent; text-align: start; }
.nfx-opt:hover { background: var(--surface-3); }
.nfx-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.nfx-name { font-size: 19px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfx-label { font-size: 12.5px; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.nfx-label .ico { width: 14px; height: 14px; color: var(--ok); }
.offer-names .nx-stage { font-size: 24px; }

/* ---------- Uploaded avatars ---------- */
.av-img { padding: 0; background: var(--surface-3); }
.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Sidebar me-card / play look button ---------- */
.me-coins { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-coins .ico { color: var(--gold); }
.look-btn { gap: 6px; }
.look-btn .ico { width: 18px; height: 18px; color: var(--accent-hi); }

/* ---------- Duel arena layout ----------
   1 vs 1: the topic has the whole head, the cameras sit in the middle and right under them one block:
   left player (left-aligned) · phase timer in the centre · right player (mirrored). 2 vs 2 keeps topic + phase on top. */
.arena-head { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1200px) {
  .is-team .arena-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
  .arena-head .topic-banner { padding: 14px 18px; }
  .arena-head .topic-banner .tb-q { font-size: 18px; }
  .is-team .arena-head .topic-banner .tb-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .arena-head .phasebar { min-width: 0; }
}
.pbar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px;
  margin: 18px -6px 0; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); }
.pbar-row .mic:not(.on) { background: var(--surface-3); }
.pbar-row button.mic-btn:not(.on) { background: rgba(255, 141, 152, .16); }
.pbar-row .pbar { min-width: 0; padding: 0; gap: 12px; }
.pbar-row .pbar .name { overflow: visible; white-space: normal; flex-wrap: wrap; row-gap: 2px; }
.pbar-row .pbar .pb-club { margin: 3px 0 1px; }
.pbar-row .pbar .meta { margin-top: 2px; }
.pbar.right { flex-direction: row-reverse; text-align: end; }
.pbar.right .name, .pbar.right .meta { justify-content: flex-end; }
/* the phase timer in the centre of the player row */
.phasebar.mid { width: 230px; min-width: 0; flex-direction: column; justify-content: center; align-items: stretch; gap: 3px; padding: 2px 4px; background: transparent; text-align: center; }
.phasebar.mid > div { min-width: 0; width: 100%; flex: none !important; }
.phasebar.mid .bigclock, .phasebar.mid .spinner { order: -1; margin: 0 auto !important; font-size: 32px; line-height: 1.05; }
.phasebar.mid [style*="display:flex"] { justify-content: center; }
.phasebar.mid .ph-label { font-size: 13.5px; }
.phasebar.mid .ph-sub { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phasebar.mid .progress { margin-top: 7px !important; }
.phasebar.mid .talk-head { flex-direction: column; gap: 4px; }
.phasebar.mid .talk-head .talk-ico { display: none; }
.phasebar.mid .btn { margin: 4px auto 0; }
/* own microphone: a button while it is open by the rules – click to mute yourself, click again to unmute */
button.mic-btn { border: 0; padding: 0; cursor: pointer; font: inherit; transition: box-shadow .15s, background .15s; }
button.mic-btn:hover { box-shadow: 0 0 0 2px var(--surface-3); }
button.mic-btn:not(.on) { background: rgba(255, 141, 152, .16); color: #ff8d98; }
.stage:has(.overlay) .pbar-row { visibility: hidden; }
@media (max-width: 560px) {
  .pbar-row { grid-template-columns: 1fr; gap: 10px; margin: 12px 0 0; }
  .phasebar.mid { width: auto; order: -1; }
  .pbar.right { flex-direction: row; text-align: start; }
  .pbar.right .name, .pbar.right .meta { justify-content: flex-start; }
}

/* ---------- Duel: fullscreen view ----------
   The sidebar stays. The right panel leaves the side; the arena fills exactly one screen height with the cameras
   centred and sized to fit, transcript and verdict sit underneath – scroll down for them. */
.arena-wrap { transition: max-width .4s cubic-bezier(.4,0,.2,1), padding .4s; }
.arena-wrap.stream { grid-template-columns: minmax(0, 1fr); max-width: 100%; gap: 18px; padding: 16px 24px 48px; }
.arena-wrap.stream .arena { height: calc(100vh - 32px); height: calc(100dvh - 32px); min-height: 520px; }
.arena-wrap.stream .is-team .arena-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.arena-wrap.stream .topic-banner { padding: 12px 18px; }
.arena-wrap.stream .topic-banner .tb-q { font-size: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arena-wrap.stream .phasebar:not(.mid) { padding: 12px 18px; }
/* the stage takes all the height left and centres the cameras; tile width = what fits in width AND height */
.arena-wrap.stream .stage { flex: 1; min-height: 0; container-type: size; display: flex; flex-direction: column; justify-content: center; align-items: center;
  --tw: min(calc(50cqw - 30px), calc((100cqh - 132px) * 4 / 3)); --twt: min(calc(50cqw - 6px), calc((50cqh - 6px) * 4 / 3)); }
.arena-wrap.stream .tiles:not(.team) { display: flex; justify-content: center; gap: 12px; width: calc(var(--tw) * 2 + 12px); }
.arena-wrap.stream .tiles:not(.team) > * { width: var(--tw); flex: none; }
.arena-wrap.stream .tiles.team { width: calc(var(--twt) * 2 + 12px); }
.arena-wrap.stream .pbar-row { width: min(100cqw, calc(var(--tw) * 2 + 60px)); margin: 18px 0 0; }
.arena-wrap.stream > .panel { grid-row: 2; max-height: none; animation: stream-below .35s ease-out; }
.arena-wrap.stream > .panel #tabbody { overflow: visible !important; min-height: 160px !important; }
.arena-wrap.stream .tabs { justify-content: flex-start; }
.arena-wrap.stream .tabs button { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 14px 22px 12px; font-size: 14px; }
.arena-wrap.stream .tabs button .ico { width: 18px; height: 18px; }
/* phones: four tabs (a finished duel's Verdict, a training session's report) share the width instead of overflowing */
@media (max-width: 560px) { .arena-wrap.stream .tabs button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; padding: 10px 4px 8px; font-size: 12.5px; } }
@keyframes stream-below { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.arena > .duel-controls { justify-content: center; border-top: 0; background: var(--surface); border-radius: var(--r); padding: 10px 14px; }
.arena > .duel-controls .push { margin-inline-start: 0; }
/* small screens: no fixed height, everything stacked */
@media (max-width: 760px) {
  .arena-wrap.stream { padding: 8px 8px 40px; }
  .arena-wrap.stream .arena { height: auto; min-height: 0; }
  .arena-wrap.stream .arena-head { display: flex; }
  .arena-wrap.stream .stage { container-type: normal; display: block; }
  .arena-wrap.stream .tiles:not(.team), .arena-wrap.stream .tiles.team, .arena-wrap.stream .pbar-row { width: auto; }
  .arena-wrap.stream .tiles:not(.team) { display: grid; }
  .arena-wrap.stream .tiles:not(.team) > * { width: auto; }
  .arena-wrap.stream .tabs button { padding: 12px 14px 10px; }
}
/* phones in the app shell (≤ 760 px): the running duel fits exactly between the status bar and the bottom bar – topic,
   both cameras (side by side or stacked, whichever gives the bigger picture), the timer row and every control – and
   only the transcript / verdict below it needs scrolling. iPhone SE (375 × 667) up to the Pro Max (430 × 932). */
@media (max-width: 760px) {
  html.shell .arena-wrap.stream:not(.lobby-on) { padding: 8px 8px 24px; gap: 12px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena {
    height: calc(var(--app-h, 100dvh) - var(--tb-h) - var(--bn-lift) - var(--bn-rise) - 16px); min-height: 400px; gap: 8px;
  }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena-head { flex: none; gap: 6px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .topic-banner { padding: 8px 12px; border-radius: 12px; gap: 10px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .topic-banner .cat-tag { font-size: 11.5px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .topic-banner .tb-q { font-size: 15px; line-height: 1.25; margin-top: 2px; -webkit-line-clamp: 2; }
  html.shell .arena-wrap.stream:not(.lobby-on) .dl-rule { font-size: 12px; margin-top: 2px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .stage {
    flex: 1; min-height: 0; padding: 8px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; container-type: normal;
  }
  html.shell .arena-wrap.stream:not(.lobby-on) .tiles {
    flex: 1 1 auto; min-height: 0; width: 100%; container-type: size; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px;
  }
  html.shell .arena-wrap.stream:not(.lobby-on) .tiles:not(.team) > * {
    flex: none; width: max(min(calc(50cqw - 5px), calc(100cqh * 4 / 3)), min(100cqw, calc((50cqh - 5px) * 4 / 3)));
  }
  html.shell .arena-wrap.stream:not(.lobby-on) .tiles.team > * { flex: none; width: min(calc(50cqw - 5px), calc((50cqh - 5px) * 4 / 3)); }
  html.shell .arena-wrap.stream:not(.lobby-on) .tile .tag { inset-inline-start: 6px; top: 6px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .tile .muted-ov { inset-inline-end: 6px; bottom: 6px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .tile .tname { inset-inline-start: 6px; bottom: 6px; padding: 3px 8px; font-size: 12px; }
  /* the timer row: one compact line – me · clock · opponent */
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row {
    flex: none; width: auto; margin: 0; padding: 6px 8px; gap: 6px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid { order: 0; width: auto; max-width: 46vw; padding: 0; gap: 1px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .bigclock,
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .spinner { font-size: 24px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .ph-label { font-size: 12px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .badge { display: none; }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .ph-sub { font-size: 11.5px; -webkit-line-clamp: 1; margin-top: 0 !important; }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .progress { margin-top: 4px !important; }
  html.shell .arena-wrap.stream:not(.lobby-on) .phasebar.mid .btn { margin-top: 2px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar { min-height: 0; gap: 6px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar.right { flex-direction: row-reverse; text-align: end; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar.right .name, html.shell .arena-wrap.stream:not(.lobby-on) .pbar.right .meta { justify-content: flex-end; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .av { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; flex: none; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .name { font-size: 13px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 4px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .pb-nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .meta { font-size: 11.5px; gap: 4px; margin-top: 0; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .pb-club { display: none; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .mic { width: 28px; height: 28px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .mic svg { width: 15px; height: 15px; }
  /* the controls: one row where it fits, the labels of the small buttons give way first */
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls { flex: none; padding: 6px; gap: 6px; justify-content: center; flex-wrap: wrap; border-radius: 12px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls .btn { height: 38px; padding: 0 10px; font-size: 13.5px; gap: 6px; min-width: 0; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls .dn-btn { margin-inline-end: 0; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls .push { margin-inline-start: 0; }
  /* while "Ready" is offered (preparation) the not yet usable "End turn" steps aside */
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls #c-skip ~ #c-yield:disabled { display: none; }
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .name .flag, html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar .pb-crest { display: none; }
  html.shell .arena-wrap.stream:not(.lobby-on) .stage > :empty:not(.tiles) { display: none; }
}
@media (max-width: 420px) {
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls #c-resign { font-size: 0; gap: 0; width: 40px; padding: 0; justify-content: center; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls .btn { padding: 0 8px; }
}
@media (max-width: 360px) {
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls { gap: 4px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls .btn { padding: 0 7px; font-size: 13px; }
  html.shell .arena-wrap.stream:not(.lobby-on) .arena > .duel-controls #c-resign { width: 36px; }
}
/* narrow phones: the names get the room; the cameras show who is muted (one's own mute button stays) */
@media (max-width: 420px) {
  html.shell .arena-wrap.stream:not(.lobby-on) .pbar-row .pbar div.mic { display: none; }
}
/* club under the player's name on the camera tile */
.tile .tname { flex-direction: column; align-items: flex-start; gap: 2px; }
.tile .tname .tn-main { display: flex; align-items: center; gap: 8px; }
.tile .tname .tn-club { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: hsl(var(--h, 250) 70% 78%); line-height: 1.2; }
.tile .tname .tn-club .cbadge { width: 15px; height: 15px; }
.tile .tname .tn-club span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Duel: mentor coach ---------- */
.coach-now { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: var(--accent-soft); color: #e4ddff; font-size: 14px; }
.coach-now .ico { width: 22px; height: 22px; color: var(--accent-hi); margin-top: 1px; }
.coach-now b { display: block; color: #fff; margin-bottom: 2px; }
.tip-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.tip-card.empty { color: var(--muted); }
.tip-head { display: flex; align-items: center; gap: 8px; }
.tip-head .ico { width: 20px; height: 20px; color: hsl(160 55% 55%); }
.tip-k { display: inline-block; margin-inline-end: 8px; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.tip-k.good { background: rgba(53, 194, 165, .16); color: var(--ok); }
.tip-k.next { background: rgba(244, 183, 64, .16); color: var(--gold); }
.tip-ex { padding: 8px 12px; border-inline-start: 3px solid var(--accent); background: rgba(0, 0, 0, .18); border-start-start-radius: 0; border-start-end-radius: 6px; border-end-end-radius: 6px; border-end-start-radius: 0; font-style: italic; color: #e4e6ef; }
.train-links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.train-links > a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: inherit; text-decoration: none; }
.train-links > a:hover { background: var(--surface-3); }
.train-links > a > .ico:first-child { width: 26px; height: 26px; flex: none; }
.train-links > a > span { flex: 1; min-width: 0; }
.train-links > a b { display: block; font-size: 14.5px; }
.train-links > a small { color: var(--muted); font-size: 13px; }
.train-links > a .chev { width: 16px; height: 16px; flex: none; color: var(--muted); }

/* ---------- Collection / profile ---------- */
.col-it { text-align: start; cursor: pointer; transition: transform .12s; color: inherit; }
.col-it:hover { transform: translateY(-2px); }
.col-it.locked:hover { filter: saturate(.45) brightness(.85); }
.col-tag.own { color: var(--ok); }
.col-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 12px; height: 40px; border-radius: 8px; background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--muted); }
.col-more:hover { background: var(--surface-3); color: #fff; }
.col-more .ico { width: 18px; height: 18px; transition: transform .15s; }
.ico.flip { transform: rotate(180deg); }
.sd-status { margin-top: 6px; }
.sd-status .col-tag { margin-top: 0; font-size: 13px; color: var(--muted); }
.sd-status .col-tag.eq, .sd-status .col-tag.own { color: var(--ok); }
.sd-locked { filter: saturate(.3) brightness(.75); }
.ph-main { flex: 1; min-width: 0; }
.ph-main h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph-name { min-width: 0; word-break: break-word; }
.ph-bio { margin-top: 8px; color: #d6d9e4; max-width: 640px; }
.ph-act { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; flex: none; }
.ph-act .btn { justify-content: center; }
.ph-clubs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.club-chip { --h: 250; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: hsl(var(--h) 45% 50% / .16); color: hsl(var(--h) 80% 78%); font-size: 13px; font-weight: 700; }
.club-chip .ico { width: 15px; height: 15px; }
.club-chip:hover { background: hsl(var(--h) 45% 50% / .28); color: #fff; }
.club-chip.big { height: 40px; padding: 0 14px; font-size: 14.5px; }
@media (max-width: 640px) { .ph-act { flex-direction: row; flex-wrap: wrap; width: 100%; } }

/* ---------- Community ---------- */
.center { display: flex; justify-content: center; margin-top: 20px; }
.sec-h { font-size: 17px; margin-bottom: 12px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-row .sec-h { margin: 0; }
.icon-only { width: 36px; padding: 0; justify-content: center; }
.plist { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.plist > .person:first-child { border-top: 0; }
.person-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.person-main:hover b { text-decoration: underline; text-underline-offset: 2px; }
.person-txt { display: flex; flex-direction: column; min-width: 0; }
.person-txt b { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-txt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-act { display: flex; gap: 6px; align-items: center; flex: none; }
.plist.mini .person { padding: 10px 0; }
.plist.mini .av { width: 34px; height: 34px; font-size: 15px; }
.card-pad .plist .person { padding-inline-start: 0; padding-inline-end: 0; }
.hl-card { box-shadow: inset 0 0 0 2px var(--accent); }
.add-form { display: flex; gap: 8px; margin-top: 12px; }
.add-form .input-icon { flex: 1; min-width: 0; }
.sugg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 8px; text-align: start; font-weight: 700; font-size: 14px; }
.sugg:hover { background: var(--surface-2); }
.sugg span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg small { color: var(--muted); font-weight: 600; }
#sugg:not(:empty) { margin-top: 8px; }
.club-crest { --h: 250; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 24px; font-weight: 900; color: #fff; background: hsl(var(--h) 50% 42%); box-shadow: inset 0 -4px 0 hsl(var(--h) 55% 30%); }
.club-crest.sm { width: 36px; height: 36px; font-size: 17px; border-radius: 9px; }
.club-crest.lg { width: 96px; height: 96px; font-size: 44px; border-radius: 18px; box-shadow: inset 0 -6px 0 hsl(var(--h) 55% 30%); }
.club-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.club-card { --h: 250; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.club-card:first-child { border-top: 0; }
.club-card:hover { background: #262a39; }
.club-card .club-crest { --h: inherit; }
.club-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.club-txt b { font-size: 15.5px; }
.club-txt small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--muted); flex: none; }
.club-stats b { color: #fff; }
.club-mine { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.club-search { width: 260px; max-width: 100%; }
.club-hero { --h: 250; display: flex; gap: 24px; align-items: center; padding: 28px; }
.club-hero .club-crest { --h: inherit; }
.ch-main { flex: 1; min-width: 0; }
.ch-main h1 { font-size: 30px; }
.hue-row { display: flex; align-items: center; gap: 14px; }
.hue-row input[type=range] { flex: 1; accent-color: var(--accent); }
@media (max-width: 640px) { .club-hero { flex-direction: column; align-items: flex-start; padding: 22px; } .club-stats { display: none; } }
.mem-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.mem-bar .input-icon { flex: 1; min-width: 200px; }
.mem-bar .seg { flex: none; }
@media (max-width: 520px) { .mem-bar .seg { flex: 1 1 100%; min-width: 0; } .mem-bar .seg button { padding: 0 6px; min-width: 0; } .mem-bar .input-icon { min-width: 0; flex-basis: 100%; } }
.mem-bar .seg button { padding: 0 14px; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mem-grid > .center-load { grid-column: 1 / -1; }
.mem-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px 16px; border-radius: var(--r); background: var(--surface); text-align: center; min-width: 0; }
.mem-card:hover { background: #262a39; }
.mem-card .av { width: 72px; height: 72px; font-size: 30px; border-radius: 12px; margin-bottom: 4px; }
.mem-card b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.mem-card small { color: var(--faint); font-size: 12px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 760px; margin: 8px auto 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pod b { display: flex; align-items: center; gap: 6px; font-size: 15px; max-width: 100%; overflow: hidden; }
.pod small { color: var(--muted); font-size: 12.5px; }
.pod .av-lg { width: 84px; height: 84px; }
.pod-1 .av-lg { width: 108px; height: 108px; box-shadow: 0 0 0 3px var(--gold); }
.pod-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: var(--surface-3); }
.pod-1 .pod-rank { background: var(--gold); color: #2a1d00; }
.pod-2 .pod-rank { background: #c6ccd8; color: #1b1e27; }
.pod-3 .pod-rank { background: #c98a55; color: #2a1606; }
.pod-elo { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pod-step { width: 100%; margin-top: 8px; border-radius: 10px 10px 0 0; background: var(--surface); }
.pod-1 .pod-step { height: 110px; background: linear-gradient(180deg, rgba(244, 183, 64, .22), var(--surface)); }
.pod-2 .pod-step { height: 80px; }
.pod-3 .pod-step { height: 56px; }
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 1000px) { .tp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pod .av-lg { width: 60px; height: 60px; } .pod-1 .av-lg { width: 76px; height: 76px; } .pod small { display: none; } .pod-elo { font-size: 17px; } }

/* ---------- Settings ---------- */
.set-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r); background: var(--surface); position: sticky; top: 24px; }
.set-nav button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 15px; color: var(--muted); text-align: start; }
.set-nav button .ico { width: 22px; height: 22px; }
.set-nav button:hover { background: var(--surface-2); color: #fff; }
.set-nav button.on { background: var(--surface-3); color: #fff; }
.set-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.set-card { background: var(--surface); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.set-card > h3 { margin-bottom: 4px; }
.set-card > p.muted { margin-bottom: 14px; font-size: 14px; }
.set-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.set-line:first-of-type { border-top: 0; }
.set-line > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.set-line b { font-size: 15px; }
.set-line small { color: var(--muted); font-size: 13.5px; }
.toggle-line { cursor: pointer; }
.set-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.set-tiles { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.set-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); text-align: start; width: 100%; }
.set-tile:hover { background: var(--surface-3); }
.set-tile > .ico:first-child { width: 26px; height: 26px; color: var(--accent-hi); }
.set-tile span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.set-tile small { color: var(--muted); font-size: 13px; }
.set-tile .chev { color: var(--faint); }
.danger-zone { box-shadow: inset 0 0 0 1px rgba(239, 77, 90, .45); }
.danger-zone h3 { color: #ff8d98; }
.av-edit { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.av-edit .av { width: 112px; height: 112px; border-radius: 16px; font-size: 46px; }
.av-edit-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.av-edit-act .btn-row { gap: 8px; }
@media (max-width: 860px) {
  .set-wrap { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .set-nav button { flex: none; height: 40px; }
  .set-card { padding: 18px; }
}
@media (max-width: 520px) { .av-edit { flex-direction: column; align-items: flex-start; } .set-line { flex-wrap: wrap; } }

/* ---------- Learn ---------- */
.learn-next { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; box-shadow: inset 0 0 0 2px var(--accent-soft); }
a.learn-next:hover { background: #262a39; }
.learn-next.done > .ico { width: 34px; height: 34px; color: var(--ok); }
.ln-ico { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); flex: none; }
.ln-ico .ico { width: 32px; height: 32px; }
.ln-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ln-t small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi); }
.ln-t b { font-size: 18px; }
/* Locked lessons (members only), the block exam at the end of every block, the lock on a lesson page */
button.lesson-row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.lesson-row.locked .t b { color: var(--muted); }
.lesson-row .state { font-size: 12px; font-weight: 800; color: var(--muted); }
.lesson-row .state.lock { border-color: transparent; color: var(--gold); }
.block-progress { margin-inline-start: auto; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.block-progress.done { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.block-progress.done .ico { width: 15px; height: 15px; }
/* the block exam at the end of every block: the block's trophy (outline until passed), the rules, the preparation */
.block-exam { display: flex; align-items: center; gap: 16px; padding: 16px 22px; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--accent-soft); }
.block-exam.passed { box-shadow: inset 0 0 0 1px rgba(227, 178, 60, .45); background: linear-gradient(100deg, rgba(227, 178, 60, .10), transparent 60%), var(--surface); }
.block-exam .be-trophy { width: 52px; height: 62px; flex: none; color: #737a99; }
.block-exam.passed .be-trophy { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .45)); }
.block-exam .be-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.block-exam .be-t small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi); }
.block-exam.passed .be-t small { color: var(--gold); }
.block-exam .be-t b { font-size: 15.5px; }

.block-exam .be-prep { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.block-exam .be-prep .ico { width: 15px; height: 15px; color: var(--ok); flex: none; }
.block-exam .be-act { flex: none; }
.block-exam .be-wait { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.block-exam .be-wait .ico { width: 16px; height: 16px; flex: none; }
@media (max-width: 520px) { .block-exam { flex-wrap: wrap; padding: 14px 16px; } .block-exam .be-t { flex: 1 1 calc(100% - 70px); } .block-exam .be-act { width: 100%; } .block-exam .be-act > * { width: 100%; justify-content: center; } }
/* in the lesson page's side column the card is narrow at any viewport: wrap by the column's width, not the screen's */
.layout > .stack { container-type: inline-size; }
@container (max-width: 520px) { .block-exam { flex-wrap: wrap; } .block-exam .be-t { flex: 1 1 calc(100% - 70px); } .block-exam .be-act { width: 100%; } .block-exam .be-act > * { width: 100%; justify-content: center; } }
.track-tab .tt-trophy { width: 24px; height: 29px; flex: none; }
.track-tab.passed i::after { background: var(--gold); }
/* the exam view of the Mentor popup */
.bpx-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; overflow: hidden; background: radial-gradient(120px 110px at 52px 50%, rgba(244, 183, 64, .22), transparent 70%), var(--surface-2); }
.bpx-trophy { width: 64px; height: 76px; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
.bpx-who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bpx-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; overflow-wrap: break-word; }
.bpx-prize { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--gold); }
.bpx-prize .ico { width: 16px; height: 16px; }
.bpx-rules { list-style: none; margin: 0; padding: 4px 14px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; }
.bpx-rules li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bpx-rules li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.bpx-ic { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #1a1c26; color: var(--accent-hi); }
.bpx-ic .ico { width: 20px; height: 20px; }
.bpx-t { min-width: 0; display: flex; flex-direction: column; }
.bpx-t b { font-size: 14.5px; line-height: 1.3; }
.bpx-t small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.btrophy.unearned { opacity: .9; }
.lesson-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lesson-lock > .ico { width: 32px; height: 32px; color: var(--gold); }
.lesson-lock .lesson-nav { align-self: stretch; }
.rec .rec-lock { width: 16px; height: 16px; margin-inline-start: auto; color: var(--gold); flex: none; }
.track-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.track-tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px 16px; border-radius: 10px; background: var(--surface); overflow: hidden; }
.track-tab:hover { background: #262a39; }
.track-tab .ico { width: 24px; height: 24px; color: var(--muted); }
.track-tab span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.track-tab b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-tab small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.track-tab i { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; height: 4px; background: var(--surface-3); }
.track-tab i::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: var(--p); background: var(--ok); }
.group-head { scroll-margin-top: 20px; }
.mentor-side { display: flex; flex-direction: column; gap: 12px; }
.mentor-side .av { width: 64px; height: 64px; border-radius: 12px; }
.practice-mini { display: flex; align-items: center; gap: 14px; }
.practice-mini .av { width: 48px; height: 48px; }
.practice-mini h3 { font-size: 15px; }
.lesson-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lesson-steps { display: flex; gap: 4px; margin-top: 10px; }
.lesson-steps a { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); }
.lesson-steps a.done { background: var(--ok); }
.lesson-steps a.cur { background: var(--accent-hi); }
.lesson-steps a:hover { filter: brightness(1.3); }
.takeaway { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px 20px; border-radius: var(--r); background: rgba(244, 183, 64, .1); box-shadow: inset 4px 0 0 var(--gold); }
.takeaway .ico { width: 26px; height: 26px; color: var(--gold); flex: none; }
.takeaway small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.takeaway b { font-size: 16.5px; line-height: 1.45; }
.quiz-score { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14.5px; }
.quiz-score .ico { width: 22px; height: 22px; color: var(--muted); }
.quiz-score.perfect { background: rgba(53, 194, 165, .12); }
.quiz-score.perfect .ico { color: var(--ok); }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.lesson-nav a:hover { background: var(--surface-3); }
.lesson-nav span { display: flex; flex-direction: column; min-width: 0; }
.lesson-nav small { font-size: 12px; color: var(--muted); font-weight: 700; }
.lesson-nav b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-next { justify-content: flex-end; text-align: end; }
.lesson-nav b .ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.dash-lesson .dl-lock .ico { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-inline-end: 6px; color: var(--gold); }
.badge-win { background: rgba(53, 194, 165, .16); color: var(--ok); }
.badge-win .ico { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .track-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-next { flex-wrap: wrap; } .learn-next .btn { width: 100%; justify-content: center; }
  .lesson-body { padding: 22px !important; } .lesson-body h1 { font-size: 26px; }
  .lesson-nav { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Train ---------- */
.lead-sm { font-size: 16px; color: var(--muted); max-width: 680px; margin: -8px 0 24px; }
.page-mid { max-width: 920px; margin: 0 auto; }
.upsell { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .4); flex-wrap: wrap; }
.upsell > .ico { width: 24px; height: 24px; }
.upsell > div { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.upsell small { color: #c4b6ff; font-size: 13px; }
.ups-card { margin-top: 12px; }
/* The membership dialog (upsell.js upsellHtml – one design for every membership popup): a glowing hero in the plan's
   colour (--h) with a picture of the reason, light rays, a slow light sweep and rising sparks; benefit rows, the yearly
   price and a shimmering call to action. Everything moving stops with prefers-reduced-motion. */
.modal-ups { max-width: 440px; overflow-x: hidden; background: var(--surface); box-shadow: 0 0 0 1px hsl(var(--h, 42) calc(70% * var(--ps, 1)) 60% / .18), 0 30px 90px rgba(0, 0, 0, .6), 0 0 80px hsl(var(--h, 42) calc(80% * var(--ps, 1)) 50% / .12); animation: upsIn .42s cubic-bezier(.2, .9, .25, 1.15) both; }
.modal-ups .modal-close { z-index: 3; color: rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .22); }
.modal-ups .modal-close:hover { background: rgba(0, 0, 0, .4); color: #fff; }
.ups { --hc: hsl(var(--h) calc(85% * var(--ps, 1)) 62%); --hd: hsl(var(--h) calc(60% * var(--ps, 1)) 30%); display: flex; flex-direction: column; }
.ups-hero { position: relative; height: 166px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 85% at 50% 38%, hsl(var(--h) calc(85% * var(--ps, 1)) 56% / .42), transparent 70%), linear-gradient(180deg, hsl(var(--h) calc(50% * var(--ps, 1)) 20%), hsl(var(--h) calc(28% * var(--ps, 1)) 14%) 70%, var(--surface)); }
.ups-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent), radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, .4), transparent), radial-gradient(1px 1px at 64% 70%, rgba(255, 255, 255, .3), transparent), radial-gradient(1px 1px at 12% 74%, rgba(255, 255, 255, .3), transparent); }
/* the light sweep: a soft diagonal band crossing the hero now and then */
.ups-hero::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 50%, transparent); transform: translateX(-120%) skewX(-18deg); animation: upsSweep 5.5s ease-in-out .5s infinite; }
.ups-rays { position: absolute; left: 50%; top: 44%; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, hsl(var(--h) calc(90% * var(--ps, 1)) 75% / .16) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 70%); mask: radial-gradient(closest-side, #000 18%, transparent 70%); animation: upsSpin 48s linear infinite; }
.ups-aura { position: absolute; left: 50%; top: 44%; width: 190px; height: 190px; margin: -95px 0 0 -95px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, hsl(var(--h) calc(95% * var(--ps, 1)) 70% / .55), hsl(var(--h) calc(90% * var(--ps, 1)) 55% / .18) 55%, transparent); animation: upsPulse 3.2s ease-in-out infinite; }
.ups-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ups-sparks i { position: absolute; left: var(--x); bottom: -8px; width: var(--s); height: var(--s); border-radius: 50%; background: hsl(var(--h) calc(100% * var(--ps, 1)) 82%); box-shadow: 0 0 8px hsl(var(--h) calc(100% * var(--ps, 1)) 70%); opacity: 0; animation: upsRise var(--t) linear var(--d) infinite; }
.ups-art-wrap { position: relative; z-index: 1; margin-top: -6px; animation: upsFloat 4.2s ease-in-out infinite; }
.ups-art { position: relative; display: grid; place-items: center; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .45)); }
.ups-glyph .ico { width: 96px; height: 96px; }
.ups-gauge .ico { color: var(--hc); }
.ups-trophy .trophy { width: 88px; height: 104px; filter: drop-shadow(0 0 18px hsl(var(--h) calc(90% * var(--ps, 1)) 60% / .55)); }
.ups-voice { display: flex; align-items: center; gap: 10px; }
.ups-av .av { width: 100px; height: 100px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 3px hsl(var(--h) calc(80% * var(--ps, 1)) 70% / .7), 0 0 30px hsl(var(--h) calc(90% * var(--ps, 1)) 60% / .55); }
.ups-key { position: absolute; inset-inline-end: -10px; bottom: -8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1d00; box-shadow: 0 0 0 3px hsl(var(--h) calc(40% * var(--ps, 1)) 16%), 0 6px 14px rgba(0, 0, 0, .4); }
.ups-key .ico { width: 20px; height: 20px; }
.ups-waves { display: flex; align-items: center; gap: 4px; height: 56px; }
.ups-waves i { display: block; width: 5px; height: 14px; border-radius: 3px; background: hsl(var(--h) calc(95% * var(--ps, 1)) 75%); box-shadow: 0 0 8px hsl(var(--h) calc(95% * var(--ps, 1)) 65% / .8); animation: upsWave 1.1s ease-in-out infinite; }
.ups-waves i:nth-child(2) { animation-delay: -.3s; } .ups-waves i:nth-child(3) { animation-delay: -.6s; } .ups-waves i:nth-child(4) { animation-delay: -.85s; }
.ups-waves.l { flex-direction: row-reverse; }
.ups-waves i:nth-child(1) { --w: 26px; } .ups-waves i:nth-child(2) { --w: 44px; } .ups-waves i:nth-child(3) { --w: 30px; } .ups-waves i:nth-child(4) { --w: 18px; }
.ups-glass svg { width: 78px; height: 98px; filter: drop-shadow(0 0 16px hsl(var(--h) calc(90% * var(--ps, 1)) 60% / .5)); }
.ups-sand-top { transform-origin: 32px 35px; animation: upsSandTop 4s ease-in-out infinite; }
.ups-sand-bot { transform-origin: 32px 66px; animation: upsSandBot 4s ease-in-out infinite; }
.ups-sand-run { animation: upsSandRun .6s linear infinite; }
.ups-graph svg { width: 150px; height: 105px; }
.ups-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: upsDraw 1.2s cubic-bezier(.4, 0, .2, 1) .25s forwards; filter: drop-shadow(0 0 6px rgba(53, 194, 165, .7)); }
.ups-area { opacity: 0; animation: upsFade .6s ease 1.1s forwards; }
.ups-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: upsPop .5s cubic-bezier(.2, .9, .3, 1.4) 1.3s forwards; }
.ups-plan { position: relative; z-index: 3; align-self: center; margin: -30px 0 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(16, 17, 24, .62); box-shadow: inset 0 0 0 1px hsl(var(--h) calc(80% * var(--ps, 1)) 65% / .4), 0 4px 14px rgba(0, 0, 0, .3); backdrop-filter: blur(6px); font-size: 13px; }
.ups-plan .pg { width: 18px; height: 18px; filter: drop-shadow(0 0 5px hsl(var(--h) calc(90% * var(--ps, 1)) 60% / .6)); }
.ups-plan b { font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--hc); }
.ups-plan em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-inline-start: 8px; border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.ups-body { display: flex; flex-direction: column; gap: 11px; padding: 2px 26px 20px; text-align: center; }
.ups-body h2 { font-size: 24px; line-height: 1.18; font-weight: 900; letter-spacing: -.01em; overflow-wrap: break-word; text-wrap: balance; }
.ups-text { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: -3px 0 0; text-wrap: pretty; }
.ups-feats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; text-align: start; }
.ups-feats li { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 7px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); animation: upsRow .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.18s + var(--i) * .07s); }
.ups-feats li:first-child { background: linear-gradient(90deg, hsl(var(--h) calc(70% * var(--ps, 1)) 50% / .2), var(--surface-2) 75%); box-shadow: inset 0 0 0 1px hsl(var(--h) calc(80% * var(--ps, 1)) 62% / .35); }
.ups-fi { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #1a1c26; }
.ups-fi .ico { width: 20px; height: 20px; color: var(--hc); }
.ups-fn { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.ups-feats em { flex: none; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: hsl(var(--h) calc(80% * var(--ps, 1)) 60% / .18); color: var(--hc); }
.ups-ok { width: 18px !important; height: 18px !important; flex: none; color: var(--ok); }
.ups-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 12px; background: #1a1c26; box-shadow: inset 0 0 0 1px var(--line); text-align: start; animation: upsRow .45s cubic-bezier(.2, .8, .2, 1) .5s both; }
.ups-pr { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.ups-price b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ups-price s { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.ups-save { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(53, 194, 165, .15); color: var(--ok); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ups-act { position: relative; animation: upsRow .45s cubic-bezier(.2, .8, .2, 1) .58s both; }
.ups-act::before { content: ''; position: absolute; inset: 6px 10px -4px; border-radius: 14px; background: var(--gold); filter: blur(18px); opacity: .45; animation: upsGlow 2.6s ease-in-out infinite; pointer-events: none; }
.ups-cta { position: relative; overflow: hidden; height: auto; min-height: 56px; padding: 9px 22px 12px; white-space: normal; line-height: 1.2; font-size: 19px; background: linear-gradient(180deg, #ffd166, var(--gold) 55%, #eaa52a); }
.ups-cta:hover { background: linear-gradient(180deg, #ffd97f, #ffc451 55%, #f0ae35); filter: brightness(1.03); }
.ups-cta > span { position: relative; z-index: 3; }
/* The shimmer: a light sweep crossing a button now and then (the upsell CTA, the Drachma plus, Get Drachmas, Buy now,
   the Membership plan buttons …). --shine: the strength of the light (darker buttons get less), --shine-d: the delay
   of the first sweep (staggers buttons next to each other). Stops with prefers-reduced-motion. */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; min-width: 14px; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, var(--shine, .55)) 50%, transparent); transform: translateX(-130%) skewX(-20deg); animation: upsShimmer 3.4s ease-in-out var(--shine-d, 1s) infinite; }
.btn-plain.btn-shine, .btn-primary.btn-shine { --shine: .3; }
@media (prefers-reduced-motion: reduce) { .btn-shine::after { display: none; } }
/* a locked philosopher (reason 'locked'): a bigger portrait, who it is and the motion of their challenge */
.ups-bot .ups-hero { height: 186px; background: radial-gradient(90% 85% at 50% 40%, hsl(var(--bh) 75% 55% / .38), transparent 70%), radial-gradient(70% 70% at 50% 45%, hsl(var(--h) calc(85% * var(--ps, 1)) 56% / .3), transparent 75%), linear-gradient(180deg, hsl(var(--bh) 40% 20%), hsl(var(--h) calc(25% * var(--ps, 1)) 14%) 70%, var(--surface)); }
.ups-bot .ups-av .av { width: 120px; height: 120px; border-radius: 26px; }
.ups-bot .ups-key { width: 42px; height: 42px; inset-inline-end: -12px; bottom: -10px; }
.ups-era { margin: -14px 0 -6px; position: relative; z-index: 3; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: hsl(var(--bh, var(--h)) 70% 76%); }
.ups-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.ups-chips span { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ups-chips .ico { width: 14px; height: 14px; }
.ups-topic { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 12px; text-align: start; background: linear-gradient(90deg, hsl(var(--ch) 60% 50% / .14), var(--surface-2) 70%); box-shadow: inset 3px 0 0 hsl(var(--ch) 70% 62%); animation: upsRow .45s cubic-bezier(.2, .8, .2, 1) .12s both; }
.ups-tk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ups-tk .ico { width: 16px; height: 16px; color: hsl(var(--ch) 70% 70%); }
.ups-topic p { margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 800; overflow-wrap: break-word; }
.ups-alt { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: -3px; }
.ups-link { padding: 4px 6px; font-size: 14px; font-weight: 700; color: var(--muted); border-radius: 6px; }
.ups-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ups-dot-sep { color: var(--faint); }
.ups-note { margin: -6px 0 0; font-size: 12.5px; color: var(--faint); }
/* the checkout dialog of a plan (shop.js choose): the plan's emblem as the hero, the price, the free trial, a big pay
   button and the Drachma payment as the second choice */
.ups-pay .ups-hero { height: 150px; }
/* reason 'cosmetic': the offered plan's camera frame (the shop's 200px preview, a little smaller) */
.ups-frame { width: 168px; height: 112px; }
.ups-fz { position: absolute; left: 50%; top: 50%; width: 200px; transform: translate(-50%, -50%) scale(.68); }
.ups-fz > .cf { width: 200px; margin: 0; }
.ups-fz .cf .sp-cam { width: 100%; }
.ups-emblem .pg { width: 92px; height: 92px; filter: drop-shadow(0 0 18px hsl(var(--h) calc(95% * var(--ps, 1)) 60% / .7)) drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.ups-pay .ups-era { margin-top: -18px; }
.ups-pay .ups-body h2 { margin-top: -6px; font-size: 28px; }
.ups-inc li:first-child { background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.ups-bill { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.ups-fine { display: flex; gap: 7px; align-items: flex-start; margin: -2px 0 0; font-size: 12px; line-height: 1.4; color: var(--faint); text-align: start; }
.ups-fine .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.ups-pay .ups-alt { margin-top: -6px; }
/* laptop screens (768–900 px high): a lower hero, so every membership dialog fits without scrolling */
@media (max-height: 900px) and (min-width: 481px) {
  .ups-hero { height: 140px; }
  .ups-art-wrap { scale: .88; }
  .ups-bot .ups-hero { height: 164px; }
  .ups-bot .ups-av .av { width: 108px; height: 108px; border-radius: 24px; }
  .ups-body { gap: 10px; }
  .ups-pay .ups-hero { height: 128px; }
}
@keyframes upsIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes upsRow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes upsSweep { 0% { transform: translateX(-120%) skewX(-18deg); } 45%, 100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes upsShimmer { 0% { transform: translateX(-130%) skewX(-20deg); } 40%, 100% { transform: translateX(360%) skewX(-20deg); } }
@keyframes upsSpin { to { transform: rotate(360deg); } }
@keyframes upsPulse { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes upsGlow { 50% { opacity: .7; } }
@keyframes upsFloat { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
@keyframes upsRise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-200px); opacity: 0; } }
@keyframes upsWave { 0%, 100% { height: 10px; } 50% { height: var(--w); } }
@keyframes upsDraw { to { stroke-dashoffset: 0; } }
@keyframes upsFade { to { opacity: 1; } }
@keyframes upsPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes upsSandTop { 0% { transform: scaleY(1); } 85%, 100% { transform: scaleY(.25); } }
@keyframes upsSandBot { 0% { transform: scaleY(.35); } 85%, 100% { transform: scaleY(1); } }
@keyframes upsSandRun { to { stroke-dashoffset: -5; } }
@media (max-width: 480px) {
  .ups-hero { height: 150px; }
  .ups-bot .ups-hero { height: 170px; }
  .ups-bot .ups-av .av { width: 108px; height: 108px; border-radius: 24px; }
  .ups-feats li { padding-block: 5px; }
  .ups-fn { font-size: 14px; }
  .ups-body { padding: 2px 18px 16px; gap: 10px; }
  .ups-body h2 { font-size: 21px; }
  .ups-cta { font-size: 18px; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-ups, .ups-feats li, .ups-topic,   .ups-hero::after, .ups-sparks { display: none; }
  .ups-line { animation: none; stroke-dashoffset: 0; }
  .ups-area, .ups-dot { animation: none; opacity: 1; }
  .ups-waves i { height: var(--w); }
}
.res.res-win, .res.res-loss, .res.res-draw { width: auto; height: 24px; padding: 0 9px; margin: 0; }
.res-win { background: rgba(53, 194, 165, .18); color: var(--ok); }
.res-loss { background: rgba(239, 77, 90, .16); color: #ff8d98; }
.res-draw { background: var(--surface-3); color: var(--muted); }
.dpick { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.dp-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.dp-row:first-child { border-top: 0; }
.dp-res { width: 56px; flex: none; }
.dp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-main b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-main small { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-act { display: flex; gap: 6px; flex: none; }
@media (max-width: 640px) { .dp-row { flex-wrap: wrap; padding: 14px 16px; } .dp-act { width: 100%; } .dp-act .btn { flex: 1; justify-content: center; } .dp-res { width: auto; } }
/* ---------- Judge's Reasoning & Duel Autopsy ---------- */
.an-back { margin-inline-start: -14px; }
.an-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin: 12px 0 24px; }
.an-head-main { flex: 1; min-width: 0; }
.an-head h2 { font-size: 22px; line-height: 1.3; margin: 10px 0 4px; }
.an-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-meta .res { margin-inline-end: 2px; }
.an-layout { align-items: start; }
.an-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.an-body > .grid2 { gap: 20px; }
.an-start { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 44px 28px; }
.an-start > .ico { width: 56px; height: 56px; color: var(--accent-hi); }
.an-start p { max-width: 520px; line-height: 1.55; }
.an-sec h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.an-sec h3 .ico, .an-locked h3 .ico { color: var(--accent-hi); width: 22px; height: 22px; }
.an-sec .card-head h3 { margin-bottom: 0; }
.an-sec.hl { box-shadow: inset 4px 0 0 var(--accent); }
.an-sec p, .an-body .card-pad p { line-height: 1.6; }
.an-lead { font-size: 16px; color: #e9eaf2; }
.an-big { font-size: 18px; line-height: 1.5; font-weight: 600; color: #f1f2f7; }
.an-foot { margin-top: 4px; }
.quote { font-style: italic; color: #eceef5; margin-bottom: 6px; }
.next-card { background: linear-gradient(90deg, rgba(53, 194, 165, .12), var(--surface) 60%); }
.next-card h3 .ico { color: var(--ok); }

/* Criteria explained */
.crit-why { display: flex; flex-direction: column; }
.cw { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cw:first-child { border-top: 0; }
.cw-focus { background: linear-gradient(90deg, rgba(239, 77, 90, .08), transparent 70%); }
.cw-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cw-head > b { font-size: 15.5px; }
.cw-badge { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: rgba(239, 77, 90, .16); color: #ff8d98; }
.cw-sc { margin-inline-start: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.cw-sc em { font-style: normal; color: #fff; }
.cw-sc em.up { color: var(--ok); }
.cw-sc em.down { color: #ff8d98; }
.cw-txt { display: grid; gap: 8px; }
.cw p { font-size: 14.5px; line-height: 1.55; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.cw-who { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-locked .cw-head > b { color: #cfd2de; }
@media (max-width: 560px) { .cw { padding: 16px 18px; } .cw p { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Moments */
.moments { display: flex; flex-direction: column; gap: 10px; }
.moment { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; }
.moment > div { flex: 1; min-width: 0; }
.moment i { color: #e9eaf2; }
.moment p { margin-top: 4px; }
.mo-sign { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: none; }
.mo-sign .ico { width: 14px; height: 14px; }
.moment.plus .mo-sign { background: rgba(53, 194, 165, .2); color: var(--ok); }
.moment.minus .mo-sign { background: rgba(239, 77, 90, .18); color: #ff8d98; }
.moment-locked { align-items: center; background: transparent; border: 1px dashed var(--surface-3); }
.moment-locked .mo-sign { background: var(--surface-3); color: var(--muted); }
.moment-locked b { display: block; margin-bottom: 8px; color: #cfd2de; }

/* Rounds */
.rounds { display: flex; flex-direction: column; }
.rd { display: flex; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--line); }
.rd:first-child { border-top: 0; }
.rd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-top .lock-chip { margin-inline-start: auto; }
.rd-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--surface-3); }
.rd-won .rd-dot { background: var(--ok); }
.rd-lost .rd-dot { background: var(--danger); }
.rd-even .rd-dot { background: var(--muted); }
.rd-tag { font-size: 12px; font-weight: 800; color: var(--muted); }
.rd-won .rd-tag { color: var(--ok); }
.rd-lost .rd-tag { color: #ff8d98; }
.rd p { line-height: 1.55; }
@media (max-width: 560px) { .rd { padding: 14px 18px; } }
.an-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.55; }

/* Locked parts (free plan) */
.fake { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.fake i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2)); opacity: .8; }
.lock-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--accent-soft); color: #c4b6ff; font-size: 12px; font-weight: 800; flex: none; }
.lock-chip .ico { width: 12px; height: 12px; }
.lock-chip:hover { background: rgba(123, 92, 255, .26); color: #fff; }
.an-locked { display: flex; flex-direction: column; gap: 10px; }
.an-locked .fake { margin-top: 2px; }
.al-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.al-head h3 { display: flex; align-items: center; gap: 10px; color: #cfd2de; margin: 0; }
.al-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-3); font-size: 12.5px; color: #fff; }

/* Side column: scoreboard + unlock */
.sb { padding: 20px 22px; }
.sb-top { display: flex; align-items: center; justify-content: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sb-p { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sb-p small { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-p strong { font-size: 36px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; color: #a7abbd; }
.sb-p.me strong { color: #fff; }
.sb-colon { font-size: 26px; font-weight: 800; color: var(--faint); padding-top: 16px; }
.sb-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: 13.5px; }
.sb-row.focus .sb-l { color: #ff8d98; }
.sb-l { font-weight: 700; color: #d9dbe5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-v { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.sb-v i { font-style: normal; margin: 0 3px; color: var(--faint); }
.sb-v b.up { color: var(--ok); } .sb-v b.down { color: #ff8d98; } .sb-v b { color: #fff; }
.sb-bars { grid-column: 1 / -1; display: grid; gap: 3px; }
.sb-bars i { display: block; height: 5px; border-radius: 3px; }
.sb-bars i.me { background: var(--accent-hi); }
.sb-bars i.op { background: #6c7189; }
.sb-legend { margin-top: 14px; }
.unlock { padding: 22px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(160deg, rgba(123, 92, 255, .22), var(--surface) 55%); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .35); }
.ul-ico .ico { width: 34px; height: 34px; }
.unlock h3 { font-size: 18px; }
.unlock p { line-height: 1.5; }
.ul-list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #e3e5ee; }
.ul-list li { display: flex; align-items: center; gap: 9px; }
.ul-list .ico { width: 14px; height: 14px; color: #a993ff; flex: none; }
.unlock small { text-align: center; }
.an-mob { display: none; }
@media (max-width: 1000px) { .an-mob { display: block; } .an-desk { display: none; } .an-side { order: -1; } }
.an-body h3.good .ico, .an-body h3.bad .ico { color: inherit; }
@media (max-width: 760px) { .an-head { flex-direction: column; align-items: flex-start; padding: 18px; } .an-head h2 { font-size: 19px; } }
.good { color: var(--ok); }
.bad { color: #ff8d98; }
.ins-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ins-k { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; }
.ins-k > span { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ins-k strong { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ins-k small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .ins-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl b { font-weight: 800; }
.wl .w { color: var(--ok); }
.wl .l { color: #ff8d98; }
.form10 { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.form10 i { width: 16px; height: 16px; border-radius: 4px; background: var(--surface-3); }
.form10 i.f-win { background: var(--ok); }
.form10 i.f-loss { background: var(--danger); }
.form10 i.f-draw { background: #6c7189; }
.ibars { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.ibar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 46px auto; gap: 12px; align-items: center; font-size: 14px; }
.ib-l { display: flex; align-items: center; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-t { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.ib-t i { display: block; height: 100%; border-radius: 5px; background: var(--accent-hi); }
.ib-v { font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.ib-n { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 560px) { .ibar { grid-template-columns: 96px minmax(0, 1fr) 40px; } .ib-n { display: none; } }
.crit-cmp { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cc { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 14px; }
.cc-l { font-weight: 700; }
.cc-bars { display: grid; gap: 3px; }
.cc-bars i { display: block; height: 7px; border-radius: 4px; }
.cc-bars i.me { background: var(--accent-hi); }
.cc-bars i.op { background: #6c7189; }
.cc-v { text-align: end; font-weight: 800; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 0; }
.dot.me { background: var(--accent-hi); }
.dot.op { background: #6c7189; }
@media (max-width: 560px) { .cc { grid-template-columns: 100px minmax(0, 1fr) 56px; } }
.ins-lock { position: relative; }
.ins-blur { filter: blur(4px); opacity: .5; pointer-events: none; margin: 14px 0; display: flex; flex-direction: column; gap: 12px; }
.fall-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fl { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; font-weight: 700; }
a.fl:hover { background: var(--surface-3); }
.fl b { font-variant-numeric: tabular-nums; }
.ins-big { font-size: 34px; font-weight: 900; margin-top: 8px; font-variant-numeric: tabular-nums; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* ---------- Topic catalog: popular ---------- */
.pop-rank { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: rgba(255, 107, 74, .16); color: #ff9a80; font-size: 12px; font-weight: 800; }
@media (max-width: 1280px) and (min-width: 761px) {
  .lesson-row { flex-wrap: wrap; row-gap: 8px; }
  .lesson-row .meta { width: 100%; padding-inline-start: 42px; }
}

/* ---------- Clubs: directory extras ---------- */
.my-club { --h: 250; position: relative; display: flex; align-items: center; gap: 10px; padding-block: 8px 8px; padding-inline: 8px 14px; border-radius: 12px; background: var(--surface); min-width: 0; max-width: 260px; }
.my-club:hover { background: #262a39; }
.my-club .club-crest { --h: inherit; }
.my-club span { display: flex; flex-direction: column; min-width: 0; }
.my-club b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-club small { font-size: 12px; color: var(--muted); font-weight: 700; }
.club-unread { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.pol-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); color: #d8dbe6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pol-badge .ico { width: 13px; height: 13px; }
.club-live { color: var(--ok) !important; font-weight: 700; }
.club-why .why-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-list .ico { width: 22px; height: 22px; color: var(--accent-hi); flex: none; margin-top: 1px; }
.why-list b { display: block; font-size: 14.5px; }
.why-list small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cc-top { display: flex; align-items: flex-end; gap: 16px; }
.cc-top .field { margin-bottom: 0; }
.hue-range { width: 100%; accent-color: var(--accent); }
.pol-pick { display: grid; gap: 8px; }
.pol-opt { cursor: pointer; }
.pol-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pol-opt > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 2px solid transparent; }
.pol-opt > span .ico { width: 22px; height: 22px; grid-row: span 2; color: var(--muted); }
.pol-opt b { font-size: 14.5px; }
.pol-opt small { color: var(--muted); font-size: 13px; }
.pol-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.pol-opt input:checked + span .ico { color: var(--accent-hi); }
.pol-opt input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- Club page ---------- */
.club-hero { margin-top: 12px; }
.ch-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ch-title h1 { margin-inline-end: 4px; }
.club-hero .facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--muted); }
.club-hero .facts b { color: #fff; }
.pending-tag { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 14px; }
.pending-tag .ico { width: 16px; height: 16px; }
.ok-notice { margin-top: 16px; background: rgba(53, 194, 165, .12); color: #c9f3e9; }
.ok-notice .ico { color: var(--ok); }
.role-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--surface-3); color: #c9ccd8; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; flex: none; }
.role-badge.r-owner { background: rgba(244, 183, 64, .18); color: var(--gold); }
.role-badge.r-admin { background: rgba(123, 92, 255, .2); color: #c4b6ff; }
.role-badge.r-moderator { background: rgba(59, 158, 255, .16); color: #8cc6ff; }
.club-tabs { display: flex; gap: 4px; margin: 22px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.club-tabs::-webkit-scrollbar { display: none; }
.club-tabs button { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.club-tabs button .ico { width: 18px; height: 18px; }
.club-tabs button:hover { color: #fff; }
.club-tabs button.on { color: #fff; border-bottom-color: var(--accent); }
.tab-n, .tab-c { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--accent-soft); color: #c4b6ff; }
.tab-c { background: var(--surface-3); color: var(--muted); }
.tab-n.hot { background: var(--danger); color: #fff; }
.role-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.role-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.role-list .role-badge { justify-self: start; margin-top: 1px; }
.rules-txt { line-height: 1.6; }
.danger-card { box-shadow: inset 0 0 0 1px rgba(239, 77, 90, .35); }
.mm-who { display: flex; align-items: center; gap: 14px; }
.mm-who h2 { font-size: 20px; }
.seg-full { width: 100%; }

/* Chat */
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.chat-card { display: flex; flex-direction: column; height: clamp(460px, calc(100dvh - 360px), 760px); overflow: hidden; }
.chat-pin { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-pin > .ico { width: 18px; height: 18px; color: var(--gold); flex: none; }
.chat-pin > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-pin small { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.chat-pin span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 0 8px; overscroll-behavior: contain; }
.chat-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px; color: var(--muted); }
.chat-empty .ico { width: 48px; height: 48px; color: var(--accent-hi); margin-bottom: 6px; }
.chat-empty b { color: #fff; font-size: 17px; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 14px 18px 8px; color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.msg { position: relative; display: flex; gap: 12px; padding: 6px 18px; }
.msg.grouped { padding-top: 1px; }
.msg:hover { background: rgba(255, 255, 255, .025); }
.msg.is-pinned { box-shadow: inset 3px 0 0 var(--gold); }
.msg.flash { animation: msgFlash 1.6s ease; }
@keyframes msgFlash { 0%, 40% { background: rgba(123, 92, 255, .22); } 100% { background: transparent; } }
.msg-av { width: 36px; flex: none; }
.msg-av .av { width: 36px; height: 36px; font-size: 15px; border-radius: 9px; }
.msg-av time { display: block; padding-top: 3px; font-size: 10.5px; color: var(--faint); text-align: end; opacity: 0; }
.msg:hover .msg-av time { opacity: 1; }
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.msg-head b { font-size: 14.5px; }
.msg-head b a:hover { text-decoration: underline; text-underline-offset: 2px; }
.msg-head .role-badge { align-self: center; }
.msg-head time { font-size: 12px; color: var(--faint); }
.msg-main > p { font-size: 14.5px; line-height: 1.5; color: #e6e8f0; overflow-wrap: anywhere; }
.msg-main > p + .share-card, .msg-main > p + .chal-card { margin-top: 8px; }
.msg-del { color: var(--faint) !important; font-style: italic; }
.msg-act { position: absolute; top: 2px; inset-inline-end: 14px; display: none; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.msg:hover .msg-act, .msg:focus-within .msg-act { display: flex; }
.msg-act button { width: 30px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.msg-act button:hover { background: var(--surface-3); color: #fff; }
.msg-act .ico { width: 15px; height: 15px; }
@media (hover: none) { .msg-act { display: flex; position: static; background: none; box-shadow: none; align-self: flex-start; } }
.msg-sys { display: flex; justify-content: center; align-items: baseline; gap: 8px; padding: 6px 18px; font-size: 13px; color: var(--faint); text-align: center; }
.msg-sys time { font-size: 11px; }
.share-card { display: flex; flex-direction: column; gap: 8px; max-width: 460px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
a.share-card:hover { background: var(--surface-3); }
.sc-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); font-weight: 700; }
.sc-top .ico { width: 15px; height: 15px; }
.sc-topic { font-size: 15px; line-height: 1.35; }
.sc-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.sc-vs > span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sc-vs > span:last-child { justify-content: flex-end; }
.sc-vs strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.sc-vs i { font-style: normal; color: var(--faint); }
.sc-foot { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.sc-foot .ico { width: 15px; height: 15px; color: var(--gold); }
.sc-open { margin-inline-start: auto; display: inline-flex; align-items: center; color: var(--accent-hi); }
.sc-open .ico { color: inherit; }
.chal-card { display: flex; align-items: center; gap: 14px; max-width: 560px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(90deg, rgba(123, 92, 255, .16), var(--surface-2) 70%); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .35); }
.chal-card:not(.open) { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.chal-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); flex: none; }
.chal-card:not(.open) .chal-ico { background: var(--surface-3); }
.chal-ico .ico { width: 22px; height: 22px; color: #fff; }
.chal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chal-main b { font-size: 14.5px; }
.chal-main small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.chal-main small .ico { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-inline-end: 4px; }
.ch-state { font-size: 12.5px; font-weight: 700; color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }
.ch-state.open { color: var(--ok); }
.ch-state .ico { width: 13px; height: 13px; }
.chal-act { display: flex; gap: 6px; flex: none; }
@media (max-width: 560px) { .chal-card { flex-wrap: wrap; } .chal-act { width: 100%; } .chal-act .btn { flex: 1; justify-content: center; } }
.chat-compose { border-top: 1px solid var(--line); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.cc-tools { display: flex; gap: 6px; }
.cc-tools .btn { height: 32px; font-size: 13px; padding: 0 10px; }
.cc-tools .btn .ico { width: 16px; height: 16px; }
.cc-row { display: flex; gap: 8px; align-items: flex-end; }
.cc-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; line-height: 1.45; padding-top: 11px; }
.cc-row .btn { width: 44px; height: 44px; flex: none; }
.chat-side { position: sticky; top: 24px; }
.open-list { display: flex; flex-direction: column; }
.open-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.open-row:first-child { border-top: 0; }
.open-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.open-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open-row small { font-size: 12.5px; color: var(--muted); }
.open-row .av { width: 32px; height: 32px; font-size: 14px; }
.shared-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.shared-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shared-item .share-card { max-width: none; }
.si-by { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.si-by .av { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.si-by time { margin-inline-start: auto; font-size: 12px; color: var(--faint); font-weight: 600; }
.share-pick { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); text-align: start; border: 2px solid transparent; }
.sp-row.on { border-color: var(--accent); background: var(--accent-soft); }
.sp-row:hover:not(.on) { background: var(--surface-3); }
.sp-main { display: flex; flex-direction: column; min-width: 0; }
.sp-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-main small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1000px) {
  .chat-wrap { grid-template-columns: minmax(0, 1fr); }
  .chat-side { position: static; }
  .chat-card { height: 70vh; }
}
@media (max-width: 640px) {
  .shared-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .club-tabs button { padding: 0 12px; font-size: 14px; }
  .msg { padding: 6px 12px; }
  .chat-card { height: calc(100dvh - 140px); min-height: 420px; }
  .club-page .club-hero { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .club-page .club-hero .club-crest.lg { width: 56px; height: 56px; font-size: 26px; border-radius: 12px; box-shadow: inset 0 -4px 0 hsl(var(--h) 55% 30%); }
  .club-page .ch-main h1 { font-size: 22px; }
  .club-page .club-hero .facts { gap: 6px 16px; font-size: 13px; }
  .club-page .ph-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .club-page .ph-act .btn { flex: 1; }
}

/* ---------- Design fixes ---------- */
/* Home tiles: compact rows on phones instead of three tall cards with empty art boxes */
@media (max-width: 760px) {
  .tile-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; padding: 16px; align-items: start; }
  .tile-card .art { grid-row: 1 / 4; width: 72px; height: 72px; }
  .tile-card .art .ico { width: 34px; height: 34px; }
  .tile-card .art .av { width: 72px; height: 72px; }
  .tile-card .art svg:not(.ico) { width: 60px; height: 60px; }
  .tile-card h3 { align-self: end; }
  .tile-card p { margin-top: 0; font-size: 13.5px; }
  .tile-card .btn { justify-self: start; margin-top: 6px; }
}
/* Small camera previews: the placeholder text no longer runs into the icon */
@media (max-width: 560px) {
  .pv-empty { gap: 6px; padding: 8px; }
  .pv-empty small { display: none; }
  .pv-ring, .pv-empty .av { width: 48px; height: 48px; font-size: 20px; }
  .pv-ring .av-glyph { width: 26px; height: 26px; }
  .pv-empty b { font-size: 13px; }
}
/* Add-a-friend form: input and button get full width instead of a squeezed input */
.add-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.add-form .btn { width: 100%; justify-content: center; }
/* Learn: group names wrap instead of being cut off ("Schools of Tho…") */
.track-tab b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
/* Settings: breathing room under each section title */
.set-card > h2 { margin-bottom: 14px; }

/* ---------- Notifications ---------- */
.bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); flex: none; }
.bell:hover { background: #1f212c; color: #fff; }
.bell .ico { width: 20px; height: 20px; }
.bell-n { position: absolute; top: 1px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-side); }
.bell-n[hidden] { display: none; }
.npanel { position: fixed; z-index: 120; inset-inline-start: calc(var(--side-w) + 10px); bottom: 14px; width: 390px; max-width: calc(100vw - 20px); max-height: min(620px, calc(100dvh - 28px)); display: flex; flex-direction: column; border-radius: 14px; background: var(--bg-fly); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); overflow: hidden; animation: npIn .16s ease; }
@keyframes npIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 899px) { .npanel { inset-inline-start: auto; inset-inline-end: 10px; top: 62px; bottom: auto; } }
.np-head { display: flex; align-items: center; gap: 8px; padding-block: 14px 12px; padding-inline: 18px 12px; border-bottom: 1px solid var(--line); }
.np-head h3 { flex: 1; font-size: 16px; }
.np-close { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.np-close:hover { background: var(--surface-2); color: #fff; }
.np-close .ico { width: 18px; height: 18px; }
.np-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.np-list > * { flex: none; }
.np-list.full { padding: 6px; }
.np-foot { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.np-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.np-foot a:hover { color: #fff; }
.np-foot .ico { width: 15px; height: 15px; }
.nitem { position: relative; width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-align: start; }
.nitem:hover { background: var(--surface); }
.nitem.unread { background: rgba(123, 92, 255, .08); }
.nitem.unread:hover { background: rgba(123, 92, 255, .14); }
.ni-av { position: relative; flex: none; }
.ni-av .av { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
.ni-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-hi); }
.ni-ico .ico { width: 20px; height: 20px; }
.ni-kind { position: absolute; inset-inline-end: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--bg-fly); }
.ni-kind .ico { width: 11px; height: 11px; }
.ni-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ni-txt b { font-size: 14px; line-height: 1.35; }
.ni-txt small { font-size: 13px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ni-txt time { font-size: 12px; color: var(--faint); }
.nitem:not(.unread) .ni-txt b { color: #cfd2de; font-weight: 600; }
.ni-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-hi); margin-top: 6px; flex: none; }
.np-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13.5px; }
.np-empty .ico { width: 40px; height: 40px; color: var(--surface-3); margin-bottom: 6px; }
.np-empty b { color: #fff; font-size: 15px; }
.np-push { display: flex; align-items: center; gap: 10px; margin: 4px 4px 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 13px; color: var(--muted); }
.np-push > .ico { width: 18px; height: 18px; color: var(--gold); flex: none; }
.np-push span { flex: 1; }
.npop-wrap { position: fixed; z-index: 130; inset-inline-end: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; width: 380px; max-width: calc(100vw - 32px); }
.npop { display: flex; align-items: center; gap: 12px; padding-block: 12px 12px; padding-inline: 14px 10px; border-radius: 12px; background: var(--bg-fly); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(123, 92, 255, .4); animation: npIn .2s ease; transition: opacity .25s, transform .25s; }
.npop.out { opacity: 0; transform: translateY(8px); }
.np-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); flex: none; }
.np-ico .ico { width: 20px; height: 20px; color: #fff; }
.npop > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.npop b { font-size: 14px; line-height: 1.3; }
.npop small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-x { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--faint); flex: none; }
.np-x:hover { background: var(--surface-2); color: #fff; }
.np-x .ico { width: 15px; height: 15px; }
@media (max-width: 640px) { .npop-wrap { inset-inline-start: 16px; inset-inline-end: 16px; width: auto; bottom: 12px; } }
.me-actions .bell { width: auto; height: 40px; border-radius: 6px; }
.me-actions .bell .ico { width: 21px; height: 21px; }
.me-actions .bell-n { top: -3px; inset-inline-end: calc(50% - 17px); }

/* ---------- Tournaments ---------- */
.t-list { display: flex; flex-direction: column; }
.t-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.t-row:first-child { border-top: 0; }
.t-row:hover { background: #262a39; }
.t-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.t-ico .ico { width: 24px; height: 24px; }
.t-row.running .t-ico { background: rgba(53, 194, 165, .16); }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t-main b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.t-main small { color: var(--muted); font-size: 13px; }
.t-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; text-align: end; }
.t-side small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.t-side small .ico { width: 14px; height: 14px; }
.t-count { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.t-tag { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.t-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ok); }
.t-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: tPulse 1.4s ease-in-out infinite; }
@keyframes tPulse { 50% { opacity: .35; } }
.t-how { margin: 12px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.t-how b { color: #e6e8f0; }
.t-hero { display: flex; align-items: center; gap: 22px; padding: 26px; margin-top: 12px; background: linear-gradient(100deg, rgba(244, 183, 64, .14), var(--surface) 55%); }
.t-hero.running { background: linear-gradient(100deg, rgba(53, 194, 165, .14), var(--surface) 55%); }
.t-hero-ico { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.t-hero-ico .ico { width: 44px; height: 44px; }
.th-main { flex: 1; min-width: 0; }
.th-main h1 { font-size: 28px; margin-inline-end: 4px; }
.th-main .facts { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--muted); }
.th-main .facts span { display: inline-flex; align-items: center; gap: 5px; }
.th-main .facts b { color: #fff; }
.th-main .facts .ico { width: 16px; height: 16px; }
.t-big-cd { display: flex; flex-direction: column; align-items: center; padding: 14px 20px; border-radius: 12px; background: var(--surface-2); flex: none; }
.t-big-cd small { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.t-big-cd b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.t-winner { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.t-winner .av { box-shadow: 0 0 0 3px var(--gold); }
.t-winner small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); margin-top: 6px; }
.t-me { display: flex; align-items: center; gap: 14px; }
.t-me > .ico { width: 28px; height: 28px; color: var(--accent-hi); flex: none; }
.t-me > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-me b { font-size: 15.5px; }
.t-me small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.t-me.ok > .ico { color: var(--ok); }
.t-me.hot { box-shadow: inset 0 0 0 2px var(--accent); background: linear-gradient(90deg, rgba(123, 92, 255, .18), var(--surface) 70%); }
.t-me.gold > .ico { color: var(--gold); }
.t-rank { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 13px; flex: none; }
.t-rank.p1 { background: var(--gold); color: #2a1d00; }
.t-rank.p2 { background: #c9ced9; color: #1a1c26; }
.t-rank.p3 { background: #c98a52; color: #1a1c26; }
.t-table { display: flex; flex-direction: column; }
.tt-head, .tt-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 50px 50px; gap: 12px; align-items: center; padding: 10px 20px; }
.tt-head { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.tt-head span:nth-child(n+4) { text-align: end; }
.tt-row { border-top: 1px solid var(--line); }
.tt-row:first-of-type { border-top: 0; }
.tt-row.me { background: rgba(123, 92, 255, .08); }
.tt-row.wd { opacity: .55; }
.tt-p { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt-p span { display: flex; flex-direction: column; min-width: 0; }
.tt-p b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-p small { font-size: 12.5px; color: var(--muted); }
.tt-p .av { width: 32px; height: 32px; font-size: 14px; }
.tt-rs { display: flex; gap: 4px; }
.rs { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.rs.w { background: rgba(53, 194, 165, .18); color: var(--ok); }
.rs.l { background: rgba(239, 77, 90, .14); color: #ff8d98; }
.rs.d { background: var(--surface-3); color: #fff; }
.rs.p { color: var(--accent-hi); }
.rs.none { background: none; }
.tt-pts { text-align: end; font-size: 16px; font-variant-numeric: tabular-nums; }
.tt-bh { text-align: end; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.t-round + .t-round { margin-top: 22px; }
.t-round h4 { display: flex; flex-direction: column; gap: 2px; font-size: 15px; margin-bottom: 10px; }
.t-round h4 small { font-weight: 600; font-size: 13px; color: var(--muted); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); margin-top: 6px; font-size: 14px; font-weight: 700; }
a.pair:hover { background: var(--surface-3); }
.pp { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.pp.r { justify-content: flex-end; }
.pp.win { color: var(--ok); }
.pr { font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; text-align: center; }
.pr.live { color: var(--accent-hi); font-size: 12.5px; }
.pr.bye { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .t-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .t-hero-ico { width: 56px; height: 56px; border-radius: 14px; }
  .t-hero-ico .ico { width: 32px; height: 32px; }
  .th-main h1 { font-size: 22px; }
  .t-big-cd { flex-direction: row; gap: 10px; align-self: stretch; justify-content: center; }
  .t-me { flex-wrap: wrap; }
  .t-me .btn { width: 100%; justify-content: center; }
  .t-row { padding: 12px 16px; gap: 12px; }
  .tt-head, .tt-row { grid-template-columns: 32px minmax(0, 1fr) 44px; padding: 10px 14px; }
  .pair { font-size: 13px; padding: 10px; gap: 8px; }
  .pp .side-tag { display: none; }
}
.online-dot strong::before, .online-dot b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-inline-end: 6px; vertical-align: 2px; }
.mention { color: #c4b6ff; background: rgba(123, 92, 255, .16); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.mention:hover { background: rgba(123, 92, 255, .3); color: #fff; }

/* ---------- Club colours and photos ---------- */
.club-crest.has-img { padding: 0; overflow: hidden; background: var(--surface-2); }
.club-crest.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* directory cards */
.club-card { position: relative; overflow: hidden; }
.club-card > * { position: relative; }
/* colour swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; max-width: 520px; }
.sw { position: relative; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: hsl(var(--h) 55% 46%); box-shadow: inset 0 -3px 0 hsl(var(--h) 55% 32%); transition: transform .12s; }
.sw span .ico { width: 18px; height: 18px; color: #fff; }
.sw:hover span { transform: translateY(-2px); }
.sw input:checked + span { box-shadow: 0 0 0 3px var(--bg-fly, #1d1f2a), 0 0 0 5px #fff; }
.sw input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
.sw-club span { background: linear-gradient(135deg, hsl(var(--h) 55% 46%), hsl(var(--h) 55% 32%)); }
/* crest upload */
.crest-edit { position: relative; flex: none; }
.crest-up { position: absolute; inset-inline-end: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 0 0 3px var(--surface); }
.modal .crest-up { box-shadow: 0 0 0 3px var(--bg-fly, #1d1f2a); }
.crest-up .ico { width: 17px; height: 17px; }
.crest-up:hover { background: var(--accent-hi); }
.save-bar { position: sticky; bottom: 12px; z-index: 5; }
.sh-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-inline-start: 8px; }
@media (max-width: 640px) { .sh-sub { display: block; margin: 4px 0 0; } }

.modal-head.left { flex-wrap: wrap; }
.modal-head.left > h2 { flex: 1; }
.modal-head.left > p { flex-basis: 100%; margin-top: 2px !important; }
.rp-quote { margin: 0; padding: 10px 14px; border-inline-start: 3px solid var(--danger); background: var(--surface-2); border-start-start-radius: 0; border-start-end-radius: 8px; border-end-end-radius: 8px; border-end-start-radius: 0; color: #e6e8f0; font-size: 14px; white-space: pre-wrap; }
.ch-report { color: var(--faint); }
.ch-report:hover { color: #ff8d98; }
.ico.flip-y { transform: scaleY(-1); }

/* ---------- Admin ---------- */
.adm .club-tabs { margin-top: 0; }
.adm-rep { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.adm-rep.urgent { box-shadow: inset 4px 0 0 var(--danger); }
.ar-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-head b { font-size: 15.5px; }
.ar-head time { margin-inline-start: auto; font-size: 12.5px; color: var(--faint); }
.ar-type { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #d8dbe6; }
.ar-urgent { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(239, 77, 90, .18); color: #ff8d98; font-size: 11.5px; font-weight: 800; text-transform: uppercase; }
.ar-who { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.ar-who b { color: #fff; }
.ar-note { font-size: 14px; color: #e6e8f0; font-style: italic; }
.ar-act { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.ar-done { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.ar-done .ico { width: 16px; height: 16px; color: var(--ok); }
.adm-snap { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.adm-flag { align-items: center; }
.adm-flag.urgent { box-shadow: inset 4px 0 0 var(--danger); }
.af-rule { flex: none; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); width: 120px; }
.af-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-txt b { font-size: 14px; }
.af-txt small { font-size: 12px; color: var(--faint); }
.adm-urow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; border-top: 1px solid var(--line); text-align: start; }
.adm-urow:first-child { border-top: 0; }
button.adm-urow:hover { background: #262a39; }
.adm-urow > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-urow b { font-size: 14.5px; }
.adm-urow small { font-size: 12.5px; color: var(--muted); }
.adm-urow .av { width: 34px; height: 34px; font-size: 15px; }
.adm-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.adm-tags .t { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: #d8dbe6; }
.adm-tags .t.a { background: var(--accent-soft); color: #c4b6ff; }
.adm-tags .t.b, .adm-tags .t.r { background: rgba(239, 77, 90, .16); color: #ff8d98; }
.adm-tags .t.m, .adm-tags .t.w { background: rgba(244, 183, 64, .16); color: var(--gold); }
.adm-user { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.au-head { display: flex; gap: 16px; align-items: flex-start; padding-inline-end: 30px; }
.au-head > div { flex: 1; min-width: 0; }
.au-head h2 { font-size: 22px; }
.au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.au-sec h4 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.au-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; font-size: 13.5px; }
.au-list li { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); line-height: 1.45; }
.au-list small { color: var(--muted); }
@media (max-width: 760px) {
  .au-grid { grid-template-columns: minmax(0, 1fr); }
  .af-rule { width: auto; }
  .adm-flag { flex-wrap: wrap; }
}
.tab-n[hidden], .tab-c[hidden] { display: none; }
.au-head .av { width: 72px; height: 72px; font-size: 30px; flex: none; border-radius: 14px; }
.ar-reporters { font-size: 13px; color: var(--muted); }
.ar-notes { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Recording notice, blocked content ---------- */
.consent { padding: 28px 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.consent-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); }
.consent-ico .ico { width: 28px; height: 28px; color: var(--accent-hi); }
.consent.blocked .consent-ico { background: rgba(239, 77, 90, .16); }
.consent.blocked .consent-ico .ico { color: #ff8d98; }
.consent h2 { font-size: 22px; }
.consent p { line-height: 1.55; color: #e3e5ee; }
.consent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.consent li { display: flex; gap: 8px; align-items: flex-start; }
.consent li .ico { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.consent .dlg-act { margin-top: 6px; }
/* the terms notice is taller than most screens: its confirm button stays in view at the bottom while it scrolls */
.consent:not(.blocked) .dlg-act { position: sticky; bottom: 0; z-index: 1; background: var(--surface); margin-inline: -26px; padding: 10px 26px 12px; box-shadow: 0 -10px 16px -8px rgba(0, 0, 0, .45); }
.consent h3 { font-size: 16px; margin-top: 4px; }
/* phones: the buttons stacked */
@media (max-width: 480px) {
  .consent .dlg-act { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .consent .dlg-act .btn { width: 100%; justify-content: center; margin: 0; }
}
.msg-hidden { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--faint); font-style: italic; }
.msg-hidden .ico { width: 14px; height: 14px; }
.msg-held { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(244, 183, 64, .14); color: var(--gold); font-size: 12px; font-weight: 700; }
.msg-held .ico { width: 13px; height: 13px; }
.msg.is-held .msg-main > p { opacity: .7; }
.rec-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rec-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: tPulse 1.6s ease-in-out infinite; }
.modwarn { position: fixed; z-index: 140; left: 50%; top: 18px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #3a1820; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(239, 77, 90, .6); color: #ffd9dd; font-size: 14px; line-height: 1.45; animation: npIn .2s ease; }
.modwarn .ico { width: 22px; height: 22px; color: #ff8d98; flex: none; }
.warn-note { box-shadow: inset 3px 0 0 var(--danger); }
/* the manipulation guard's line in the feedback to the player who tried it (public/js/duel.js) */
.vd-guard { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(244, 183, 64, .12); color: var(--gold); font-size: 13px; line-height: 1.45; }
.vd-guard .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
/* ===== duel-language guard (public/js/lang-guard-ui.js): in a match only the match's language counts ===== */
/* the rule before the duel (lobby, waiting, preparation) and the small chip in the duel's banner while the guard is on */
.dl-rule, .lb-lang { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.dl-rule .ico, .lb-lang .ico { width: 15px; height: 15px; flex: none; color: var(--gold); }
.lb-lang { margin: 0; }
/* the lobby: a row of its own under the topic and the Cancel button (the full width, also on a phone) */
.lb-topic:has(> .lb-lang) { flex-wrap: wrap; row-gap: 8px; }
.lb-topic > .lb-lang { order: 5; flex-basis: 100%; padding-inline-start: 56px; }
@media (max-width: 760px) { .lb-topic > .lb-lang { padding-inline-start: 0; } }
#dlrule[hidden], #dlchip[hidden] { display: none; }
.dl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: #d6d9e8; background: var(--surface-2); }
.dl-chip .ico { width: 14px; height: 14px; color: var(--gold); }
/* the live note under the stage: friendly (gold), never blocking; the other side's note is neutral (blue) */
.langwarn { display: flex; align-items: flex-start; gap: 10px; width: min(100%, 760px); margin: 12px auto 0; padding: 10px 8px 10px 14px; border-radius: 12px; background: rgba(244, 183, 64, .12); box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .4); color: #f7e0a6; font-size: 14px; line-height: 1.45; animation: npIn .2s ease; }
.langwarn[hidden] { display: none; }
.langwarn > .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }
.langwarn .lw-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.langwarn .lw-x { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -3px 0 -3px 0; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; opacity: .75; cursor: pointer; }
.langwarn .lw-x:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.langwarn .lw-x .ico { width: 14px; height: 14px; }
.langwarn.opp { background: rgba(74, 168, 255, .1); box-shadow: inset 0 0 0 1px rgba(74, 168, 255, .35); color: #d3e8ff; }
.langwarn.opp > .ico { color: #8cc6ff; }
@media (max-width: 760px) { .langwarn { margin-top: 10px; font-size: 13.5px; } }
/* a transcript line in another language: the speaker sees it dimmed under a badge, everybody else a note */
.tl-off-b { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 3px; padding: 1px 8px 1px 6px; border-radius: 6px; background: rgba(244, 183, 64, .14); color: var(--gold); font-size: 12px; font-weight: 700; }
.tl-off-b .ico, .tl-off-n .ico { width: 13px; height: 13px; flex: none; }
.tl-off-t { display: block; color: var(--faint); }
.tl-off-n { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-style: italic; font-size: 13.5px; }
.tl-off-n .ico { color: var(--gold); }
.tip-off { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: rgba(244, 183, 64, .14); color: var(--gold); font-size: 12px; font-weight: 700; }
.tip-off .ico { width: 13px; height: 13px; }
/* the verdict: the speaker's note (with "Wrong language detected?"), the other side's line, "not rated" */
.vd-lang-dispute { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.vd-lang-dispute:disabled { opacity: .6; cursor: default; }
.vd-lang-done { color: var(--muted); }
.vd-lang-opp, .vd-lang-unrated { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.vd-lang-opp .ico, .vd-lang-unrated .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #8cc6ff; }
.vd-lang-unrated { justify-content: center; text-align: start; margin: 0; }
.bridge + .vd-lang, .bridge + .vd-lang-opp { margin-top: 0; }
/* ===== end duel-language guard ===== */
.mod-stand { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.mod-stand strong { font-size: 30px; font-weight: 900; }
.mod-stand.good strong { color: var(--ok); } .mod-stand.mid strong { color: var(--gold); } .mod-stand.bad strong { color: #ff8d98; }
.mod-list { display: flex; flex-direction: column; gap: 10px; }
.mod-ev { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.me-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-top time { margin-inline-start: auto; font-size: 12px; color: var(--faint); }
.me-bottom { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.me-bottom:empty { display: none; }
.ar-auto { color: var(--gold); }
.rec-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.rec-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rec-row audio { width: 100%; height: 36px; }
.frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.frame-grid figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.frame-grid img, .am-frame { width: 100%; max-width: 320px; border-radius: 8px; filter: blur(12px); transition: filter .2s; cursor: zoom-in; }
.frame-grid img:hover, .am-frame:hover { filter: none; }
.frame-grid figcaption { font-size: 12px; color: var(--muted); }
.age-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.age-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
video.cam-blur { filter: blur(40px) saturate(.4); }
.cam-hidden { position: relative; }
.cam-hidden::after { content: 'Camera hidden by the auto-moderation'; position: absolute; inset: auto 10px 40px 10px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); z-index: 3; }

/* ---------- Club badges ---------- */
.cbadge { display: block; width: 100%; height: 100%; overflow: visible; }
.club-crest.badge-crest { background: none; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
.club-crest.badge-crest .cbadge { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.cbadge.mini { width: 20px; height: 20px; flex: none; }
.cbadge-shine { animation: badgeShine 3.2s ease-in-out infinite; }
@keyframes badgeShine { 0%, 55% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(130px); } }
@media (prefers-reduced-motion: reduce) { .cbadge-shine { animation: none; display: none; } }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; padding: 2px; }
.bdg { position: relative; cursor: pointer; }
.bdg input { position: absolute; opacity: 0; pointer-events: none; }
.bdg > span { position: relative; display: grid; place-items: center; height: 64px; border-radius: 10px; background: var(--surface-2); border: 2px solid transparent; padding: 6px; }
.bdg > span .cbadge { width: 46px; height: 46px; }
.bdg:hover > span { background: var(--surface-3); }
.bdg input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.bdg input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.bdg.locked { cursor: not-allowed; }
.bdg.locked > span .cbadge { opacity: .45; filter: grayscale(.6); }
.bdg.locked .col-lock { position: absolute; top: 4px; inset-inline-end: 4px; }
.bdg-sub { display: flex; flex-direction: column; margin: 12px 0 6px; }
.bdg-sub b { font-size: 13.5px; }
.bdg-sub small { color: var(--muted); font-size: 12.5px; }
.bdg-prev { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bdg-prev .cbadge { width: 70px; height: 66px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.bdg-prev .cbadge:nth-child(2) { width: 92px; height: 86px; }
.col-art > .bdg-prev .cbadge { width: 46px; height: 44px; }
.col-art > .bdg-prev .cbadge:nth-child(2) { width: 60px; height: 56px; }
.club-chip .cbadge.mini { margin-inline-start: -2px; }
.nx-btn.icon-only { width: 30px; padding: 0; justify-content: center; }

/* ---------- Club League ---------- */
.lg-tag { --lc: #9aa0ad; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding-block: 0 0; padding-inline: 4px 9px; border-radius: 6px; background: color-mix(in srgb, var(--lc) 16%, transparent); color: var(--lc); font-size: 12px; font-weight: 800; white-space: nowrap; }
.lg-tag .lg-ico { width: 18px; height: 20px; }
.lg-ico { width: 20px; height: 22px; flex: none; }
.lg-hero { --lc: #9aa0ad; display: flex; gap: 22px; align-items: center; padding: 24px; background: linear-gradient(90deg, color-mix(in srgb, var(--lc) 16%, transparent), var(--surface) 65%); }
.lg-hero-ico { width: 88px; height: 92px; flex: none; }
.lg-hero-main { flex: 1; min-width: 0; }
.lg-hero h2 { font-size: 26px; margin: 2px 0 6px; }
.lg-hero .facts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--muted); }
.lg-hero .facts b { color: #fff; }
.lg-status { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.war-live, .war-off { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.war-live { background: rgba(53, 194, 165, .16); color: var(--ok); }
.war-off { background: var(--surface-3); color: #d8dbe6; }
.war-live .ico, .war-off .ico { width: 15px; height: 15px; }
.cw-play { display: flex; flex-direction: column; gap: 14px; }
.cw-play-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cw-left { font-size: 13px; font-weight: 800; color: var(--ok); }
.cw-left.none { color: var(--faint); }
.cw-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cw-mode-btn { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.cw-mode-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.cw-mode-btn:disabled { opacity: .45; cursor: not-allowed; }
.cw-mode-btn .ico { width: 30px; height: 30px; color: var(--accent-hi); flex: none; }
.cw-mode-btn b { display: block; font-size: 17px; }
.cw-mode-btn small { color: var(--muted); font-size: 13px; }
.lg-table { display: flex; flex-direction: column; padding: 4px 0; }
.lg-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--text); }
.lg-row:hover { background: var(--surface-2); }
.lg-row.me { background: var(--accent-soft); }
.lg-rank { width: 18px; text-align: center; font-weight: 800; color: var(--muted); }
.lg-row .club-crest.sm { width: 34px; height: 34px; }
.lg-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-name small { color: var(--faint); font-size: 12px; }
.lg-pts { font-variant-numeric: tabular-nums; color: var(--gold); }
.cw-list { display: flex; flex-direction: column; }
.cw-duel { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--text); }
.cw-duel:first-child { border-top: 0; }
.cw-duel:hover { background: var(--surface-2); }
.cw-mode { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: var(--surface-3); color: #d8dbe6; }
.cwd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cwd-who small { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-w { color: var(--ok); font-weight: 800; font-size: 13px; }
.res-l { color: #ff8d98; font-weight: 800; font-size: 13px; }
.res-d { color: var(--muted); font-weight: 800; font-size: 13px; }
.cw-pts { min-width: 40px; text-align: end; font-variant-numeric: tabular-nums; }
.cw-pts.up { color: var(--ok); }
.cw-pts.down { color: #ff8d98; }
.lg-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lg-step { --lc: #9aa0ad; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.lg-step b { color: var(--lc); font-size: 13.5px; }
.lg-step small { color: var(--faint); font-size: 11.5px; }
.lg-big { width: 46px; height: 50px; }
.cw-search { padding: 28px; margin-top: 12px; display: flex; flex-direction: column; gap: 20px; }
.cw-search-head { display: flex; gap: 18px; align-items: center; }
.cw-search-head h1 { font-size: 26px; margin: 2px 0 6px; }
#cwbody { display: flex; flex-direction: column; gap: 14px; }
.cw-duo { display: flex; align-items: center; justify-content: center; gap: 16px; }
.cw-duo-p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; border-radius: var(--r); background: var(--surface-2); flex: 1; max-width: 220px; text-align: center; }
.cw-duo-p small { color: var(--faint); font-size: 12px; }
.cw-plus { font-size: 26px; font-weight: 800; color: var(--muted); }
.cw-found { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 0; }
.cw-vs { font-size: 26px; font-weight: 900; color: var(--gold); }
.mic-row { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 6px; }
.cbadge.cb-olympus { filter: drop-shadow(0 0 6px rgba(255, 204, 77, .45)); }
.duel-clubs { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.duel-clubs .club-chip { height: 24px; font-size: 12px; }
/* 2 vs 2 */
.tiles.team { grid-template-columns: 1fr 1fr; }
.tile .seat-role { margin-inline-start: 6px; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: rgba(10, 11, 16, .72); color: #d8dbe6; }
.tile.team-talk:not(.speaking) { box-shadow: 0 0 0 2px rgba(123, 92, 255, .55); }
.tile-report { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; border: 0; background: rgba(10, 11, 16, .6); color: #d8dbe6; cursor: pointer; opacity: .7; }
.tile-report:hover { opacity: 1; color: #ff8d98; }
.tile-report .ico { width: 15px; height: 15px; }
.team-avs { display: inline-flex; }
.team-avs .av + .av { margin-inline-start: -12px; box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 560px) {
  .tiles.team { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cw-modes { grid-template-columns: 1fr; }
  .lg-ladder { grid-template-columns: repeat(3, 1fr); }
  .lg-hero { flex-direction: column; align-items: flex-start; }
}


/* ---------- League explainer & coming soon ---------- */
.lr-modal { max-width: 860px; }
.lr-head { padding: 34px 40px 8px; }
.lr-head h2 { font-size: 30px; margin: 4px 0 8px; }
.lr-head p { color: var(--muted); font-size: 15.5px; max-width: 560px; }
.lr-body { padding: 18px 40px 40px; display: flex; flex-direction: column; gap: 36px; }
.lr-h { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.lr-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lr-step { --lc: #ccc; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px 18px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--lc) 14%, transparent), var(--surface-2) 70%); text-align: center; }
.lr-step b { color: var(--lc); font-size: 15px; }
.lr-step small { color: var(--faint); font-size: 12px; line-height: 1.35; }
.lr-emb { width: 64px; height: 66px; margin-bottom: 4px; }
.lr-arrow { position: absolute; inset-inline-end: -13px; top: 44px; z-index: 1; width: 12px; color: var(--faint); }
.lr-arrow .ico { width: 12px; height: 12px; }
.lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lr-rule { display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: var(--surface-2); }
.lr-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hi); }
.lr-ico .ico { width: 20px; height: 20px; }
.lr-rule > div > b { display: block; font-size: 15px; margin-bottom: 4px; }
.lr-rule p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lr-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.lr-table th, .lr-table td { padding: 14px 18px; text-align: center; font-size: 15px; }
.lr-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-3); }
.lr-table td:first-child, .lr-table th:first-child { text-align: start; font-weight: 800; }
.lr-table tr + tr td { border-top: 1px solid var(--line); }
.lr-up { color: var(--ok); font-weight: 800; }
.lr-down { color: #ff8d98; font-weight: 800; }
.lr-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.lr-role { display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: var(--surface-2); }
.lr-num { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; }
.lr-role b { display: block; margin-bottom: 4px; }
.lr-role p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lr-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.lr-list .ico { width: 18px; height: 18px; color: var(--accent-hi); flex: none; }
@media (max-width: 760px) {
  .lr-head { padding: 26px 22px 4px; } .lr-body { padding: 14px 22px 28px; gap: 28px; }
  .lr-ladder { grid-template-columns: repeat(3, 1fr); } .lr-arrow { display: none; }
  .lr-grid, .lr-roles { grid-template-columns: 1fr; }
}
.soon-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 28px; }
.soon-card h2 { font-size: 28px; margin: 0; }
.soon-card > p { max-width: 560px; }
.soon-tag { display: inline-flex; height: 26px; align-items: center; padding: 0 12px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-hi); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.soon-ladder { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 12px 0 6px; }
.soon-ladder > div { --lc: #ccc; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.soon-ladder b { color: var(--lc); font-size: 13.5px; }
.soon-emb { width: 70px; height: 72px; }
.soon-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 720px; margin-top: 10px; }
.soon-points > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 12px; background: var(--surface-2); }
.soon-points .ico { width: 26px; height: 26px; color: var(--accent-hi); }
.soon-points small { color: var(--muted); }
@media (max-width: 640px) { .soon-points { grid-template-columns: 1fr; } }
.soon-mini { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-hi); margin-inline-start: 4px; vertical-align: 2px; }
.lg-e4 .lg-spark { animation: lgSpark 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes lgSpark { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lg-e4 .lg-spark { animation: none; } }

/* ---------- Badge editor: shape, icon, colour ---------- */
.be { display: flex; flex-direction: column; gap: 10px; }
.be-step { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.be-step:first-child { margin-top: 0; }
.be-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-size: 12px; font-weight: 900; }
.be-step b { font-size: 14px; }
.be-grid { display: grid; gap: 8px; }
.be-shapes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.be-icons { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.be-grid .bdg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 2px solid transparent; background: var(--surface-2); color: var(--muted); font: inherit; }
.be-grid .bdg:hover { background: var(--surface-3); }
.be-grid .bdg.on { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.be-grid .bdg:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.be-shapes .bdg .cbadge { width: 48px; height: 50px; }
.be-icons .bdg .cbadge { width: 40px; height: 42px; }
.be-grid .bdg small { font-size: 11.5px; font-weight: 700; }
@media (max-width: 560px) { .be-shapes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Ads, cookie banner, videos for Drachmas ---------- */
.ad-slot { display: flex; flex-direction: column; gap: 6px; }
.ad-slot[hidden] { display: none; }
.ad-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ad-slot ins.adsbygoogle { min-height: 100px; border-radius: var(--r-sm); overflow: hidden; }
.ad-ph { display: flex; gap: 12px; align-items: center; padding: 18px; min-height: 110px; border-radius: var(--r); border: 1.5px dashed var(--surface-3); background: repeating-linear-gradient(135deg, var(--surface) 0 10px, #252838 10px 20px); color: var(--muted); font-size: 13px; }
.ad-ph .ico { width: 20px; height: 20px; flex: none; color: var(--faint); }
.ad-ph b { color: #d8dbe6; }
.ad-ph small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.ad-ph.big { min-height: 180px; justify-content: center; text-align: start; }
.ad-break { display: flex; flex-direction: column; gap: 14px; }
.page > .ad-slot { margin-top: 24px; }
.ck-banner { position: fixed; z-index: 140; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--bg-fly); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.ck-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(244, 183, 64, .14); color: var(--gold); }
.ck-ico .ico { width: 22px; height: 22px; }
.ck-txt { flex: 1; min-width: 0; }
.ck-txt b { font-size: 15px; }
.ck-txt p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ck-test { color: var(--gold) !important; }
.ck-act { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .ck-banner { flex-direction: column; align-items: stretch; bottom: 12px; } .ck-ico { display: none; } .ck-act > * { flex: 1; } }
.me-coinrow { display: inline-flex; align-items: center; gap: 6px; }
.vid-wrap:empty { display: none; }
.vid-chip { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 6px; border: 0; background: rgba(244, 183, 64, .14); color: var(--gold); font: 800 11px/1 var(--font); cursor: pointer; }
.vid-chip:hover { background: rgba(244, 183, 64, .26); }
.vid-chip .ico { width: 12px; height: 12px; }
.vid-chip.wait { background: var(--surface-3); color: var(--faint); cursor: default; }
.vid-chip i { font-style: normal; font-variant-numeric: tabular-nums; }
.vid-wrap { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vid-btn .vid-plus { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 4px; color: var(--gold); }
.vid-btn .vid-plus .ico { width: 15px; height: 15px; }
.vid-btn i { font-style: normal; font-variant-numeric: tabular-nums; }
.vid-note { color: var(--faint); font-size: 12px; }
.dlg-vid { margin: -4px 0 4px; }
.rw-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: rgba(244, 183, 64, .1); color: #f6dca0; font-size: 14px; }
.rw-line.none { background: var(--surface-2); color: var(--muted); }
.rw-line > .ico { width: 20px; height: 20px; flex: none; }
.rw-line > span:not(.vid-wrap) { flex: 1; min-width: 160px; }
.earn { margin-top: 26px; padding: 22px; border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.earn-head { display: flex; flex-direction: column; gap: 2px; }
.earn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.earn-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 10px; background: var(--surface-2); }
.earn-grid span { color: var(--muted); font-size: 13px; }
.earn-vid { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .earn-grid { grid-template-columns: 1fr 1fr; } }
.me-coinrow { flex-wrap: wrap; max-width: 100%; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- Streaks & badges ---------- */
.medal { --tc: #f4c45a; position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tc) 55%, #fff) 0, var(--tc) 38%, color-mix(in srgb, var(--tc) 55%, #000) 100%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 40%, #12131a), 0 4px 10px rgba(0, 0, 0, .35); color: #fff; }
.medal .ico { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.medal-tier { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); min-width: 22px; padding: 1px 5px; border-radius: 6px; background: #12131a; color: var(--tc); font: 900 10px/1.3 var(--font); font-style: normal; box-shadow: 0 0 0 1.5px var(--tc); text-align: center; }
.medal.locked { filter: grayscale(1); opacity: .45; box-shadow: 0 0 0 3px #2b2f40; }
@keyframes medalGlow { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .medal.diamond::after, .medal.m-diamond::after { animation: none; } }
.medal.sm { width: 30px; height: 30px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 40%, #12131a); }
.medal.sm .ico { width: 15px; height: 15px; }
.medal.sm .medal-tier { display: none; }
.medal.lg { width: 92px; height: 92px; }
.medal.lg .ico { width: 42px; height: 42px; }
.medal.lg .medal-tier { font-size: 13px; padding: 2px 8px; bottom: -8px; }
.ph-streaks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.streak { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.streak .ico { width: 16px; height: 16px; }
.streak b { color: #fff; font-size: 15px; }
.streak em { font-style: normal; color: var(--faint); font-size: 12.5px; }
.streak.on { background: rgba(255, 140, 50, .14); color: #ffb37a; }
.streak.on .ico { color: #ff8c32; }
.streak.win.on { background: rgba(244, 183, 64, .14); color: #f6d48a; }
.streak.win.on .ico { color: var(--gold); }
.ph-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.ph-badge { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-block: 0 0; padding-inline: 5px 12px; border-radius: 19px; border: 0; background: var(--surface-2); color: var(--text); font: 700 13px var(--font); cursor: pointer; }
.ph-badge:hover { background: var(--surface-3); }
.ph-more { font-size: 12.5px; color: var(--muted); }
.bdg-card { scroll-margin-top: 16px; }
.bdg-group { padding: 6px 18px 18px; }
.bdg-group h4 { margin: 12px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bdg-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.bdg-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.bdg-cell:hover { background: var(--surface-3); }
.bdg-cell .medal { margin-bottom: 6px; }
.bdg-cell b { font-size: 13.5px; line-height: 1.25; }
.bdg-cell small { color: var(--muted); font-size: 11.5px; }
.bdg-cell:not(.got) b { color: var(--muted); }
.bdg-prog { width: 80%; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bdg-prog i { display: block; height: 100%; background: var(--accent); }
.bd-detail { padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 20px; }
.bd-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bd-hero h2 { margin: 6px 0 0; }
.bd-tiers { display: flex; flex-direction: column; gap: 8px; }
.bd-tier { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.bd-tier > span:not(.medal) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bd-tier small { color: var(--muted); font-size: 12.5px; }
.bd-tier em { font-style: normal; color: var(--faint); font-size: 12px; }
.bd-tier em .ico { width: 14px; height: 14px; }
.bd-tier.got em { color: var(--ok); }
.bd-rw { color: var(--gold) !important; }
@media (max-width: 560px) { .bdg-cells { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .bdg-group { padding: 4px 12px 14px; } }
.dash-streak { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 20px; }
.dash-streak .ph-streaks, .dash-streak .ph-badges { margin-top: 0; }
.wflame { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; white-space: nowrap; }
.wflame .ico { width: 20px; height: 20px; color: #5b6072; }
.wflame b { font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wflame.on .ico { color: #ff8c32; filter: drop-shadow(0 0 6px rgba(255, 140, 50, .55)); }
.wflame.on b { color: #ffb37a; }
.wflame.lg { margin-top: 10px; gap: 8px; font-size: 14px; }
.wflame.lg .ico { width: 30px; height: 30px; }
.wflame.lg b { font-size: 26px; }
.profile-head .ph-act { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dash-head .right { display: flex; flex-direction: column; align-items: flex-end; }
.ratings:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ratings:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ratings:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ph-club { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.ph-club-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.ph-club-link .cbadge { width: 26px; height: 28px; flex: none; }
.ph-club-link span { display: inline-flex; align-items: baseline; gap: 8px; }
.ph-club-link b { font-size: 14.5px; }
.ph-club-link small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ph-club-link:hover b { text-decoration: underline; }
.ph-club-more { font-size: 13px; color: var(--muted); }
.wflame span { display: none; }
@media (max-width: 640px) { .profile-head .ph-act { flex-direction: row; align-items: center; justify-content: flex-start; } }
.ph-top { display: flex; align-items: center; gap: 14px; }
.wflame.md { gap: 6px; }
.wflame.md .ico { width: 30px; height: 30px; }
.wflame.md b { font-size: 26px; }
.ph-av-edit { position: relative; padding: 0; border: 0; background: none; border-radius: 12px; cursor: pointer; flex: none; }
.ph-av-cam { position: absolute; inset-inline-end: -6px; bottom: -6px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--surface); }
.ph-av-cam .ico { width: 17px; height: 17px; }
.ph-av-edit:hover .av { filter: brightness(.85); }
.av-dlg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.av-dlg-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.av-letter { background: var(--accent); }
/* profile: the win streak under Settings, its number lined up with the end of the "Settings" text */
.wflame.xl { gap: 8px; padding-inline-end: 18px; }
.wflame.xl .ico { width: 56px; height: 56px; }
.wflame.xl b { font-size: 46px; line-height: 1; }
@media (max-width: 640px) { .wflame.xl { padding-inline-end: 0; } .wflame.xl .ico { width: 40px; height: 40px; } .wflame.xl b { font-size: 34px; } }

/* ---------- Profile: badge showcase and stats ---------- */
.ph-show { display: flex; align-items: center; gap: 14px; align-self: center; margin: 0 8px; }
.sc-slot { width: 60px; height: 60px; display: grid; place-items: center; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.sc-slot.empty { border: 2px dashed #3d4258; color: #4c5269; background: rgba(255, 255, 255, .02); }
.sc-slot.empty:hover { border-color: var(--accent); color: var(--accent-hi); }
.sc-slot.empty .ico { width: 20px; height: 20px; }
.sc-slot.full:hover { transform: translateY(-2px); }
.medal.md { width: 50px; height: 50px; }
.medal.md .ico { width: 23px; height: 23px; }
.medal.md .medal-tier { font-size: 9px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.sc-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 12px; border: 2px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.sc-opt .medal { margin-bottom: 6px; }
.sc-opt b { font-size: 13px; }
.sc-opt small { color: var(--muted); font-size: 11.5px; }
.sc-opt:hover:not(:disabled) { border-color: var(--accent-hi); }
.sc-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.sc-opt:disabled { opacity: .45; cursor: not-allowed; }
.sc-foot { display: flex; justify-content: space-between; margin-top: 16px; }
.pstat { display: flex; align-items: center; gap: 16px; }
.pstat > div { display: flex; flex-direction: column; min-width: 0; }
.pstat small { color: var(--muted); font-size: 13px; font-weight: 700; }
.pstat b { font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pstat b.pstat-name { font-size: 19px; }
.pstat-ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.pstat-ico .ico { width: 28px; height: 28px; }
.pstat-ico.flame { color: #ff8c32; background: rgba(255, 140, 50, .12); }
.opp-bar { height: 8px; border-radius: 4px; background: rgba(244, 183, 64, .35); overflow: hidden; margin: 12px 0 6px; }
.opp-bar i { display: block; height: 100%; background: var(--accent); }
.opp-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.opp-row:first-of-type { border-top: 0; }
.opp-l { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.opp-l .ico { width: 20px; height: 20px; }
.opp-n { color: var(--muted); font-size: 13px; }
.opp-r { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 70px; text-align: end; }
.opp-r i { font-style: normal; }
.opp-r i.w { color: var(--ok); } .opp-r i.l { color: #ff8d98; }
@media (max-width: 900px) { .ph-show { order: 5; width: 100%; margin: 4px 0 0; justify-content: flex-start; } }

/* ---------- Profile header: one block, everything between the name line and the "Joined" line ---------- */
.profile-head { align-items: stretch; }
.profile-head > .av-lg { width: auto; height: auto; min-width: 96px; min-height: 96px; aspect-ratio: 1; align-self: stretch; font-size: 48px; flex: none; }
.profile-head > .av-lg.av-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-head .ph-main { display: flex; flex-direction: column; justify-content: center; }
.ph-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 12px; flex: none; margin-inline-start: auto; }
.ph-side-top { display: flex; align-items: center; gap: 18px; height: 40px; }
.ph-side-bot { display: flex; align-items: center; gap: 8px; }
.ph-show { margin: 0; gap: 10px; }
.ph-show .sc-slot { width: 40px; height: 40px; }
.ph-show .medal.md { width: 36px; height: 36px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 40%, #12131a), 0 3px 8px rgba(0, 0, 0, .35); }
.ph-show .medal.md .ico { width: 18px; height: 18px; }
.ph-show .medal.md .medal-tier { display: none; }
.ph-show .sc-slot.empty .ico { width: 16px; height: 16px; }
.wflame.xl { padding-inline-end: 0; gap: 6px; }
.wflame.xl .ico { width: 38px; height: 38px; }
.wflame.xl b { font-size: 34px; }
/* small, quiet buttons on the "Joined" line */
.ph-side-bot .btn, .ph-small .btn { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.ph-side-bot .btn .ico, .ph-small .btn .ico { width: 15px; height: 15px; }
.ph-small .btn-primary { background: var(--surface-2); color: var(--text); box-shadow: none; }
.ph-small .btn-primary:hover { background: var(--surface-3); }
.ph-small .btn-row { gap: 6px !important; }
.ph-side-bot .prof-report { color: var(--faint); }
@media (max-width: 900px) {
  .profile-head { flex-wrap: wrap; }
  .ph-side { width: 100%; flex-direction: row; align-items: center; margin-inline-start: 0; }
  .ph-side-top { height: auto; }
}
@media (max-width: 640px) { .profile-head > .av-lg { align-self: flex-start; width: 96px; height: 96px; } .ph-side { flex-wrap: wrap; } .ph-side-top { flex-wrap: wrap; min-width: 0; max-width: 100%; } }

/* ---------- Profile: square picture, tabs ---------- */
.profile-head > .av-lg { aspect-ratio: auto; align-self: center; min-width: 0; min-height: 0; }
.profile-head:has(+ .ptabs) { border-end-start-radius: 0; border-end-end-radius: 0; }
.ptabs { display: flex; gap: 4px; padding: 0 20px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); overflow-x: auto; }
.ptabs a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px 12px; color: var(--muted); font-weight: 700; font-size: 14.5px; border-bottom: 3px solid transparent; white-space: nowrap; }
.ptabs a .ico { width: 17px; height: 17px; }
.ptabs a:hover { color: var(--text); }
.ptabs a.on { color: #fff; border-bottom-color: var(--accent); }
.ptab-body { margin-top: 24px; }
.ptab-body .bdg-card { margin-top: 0 !important; }
.see-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; border-top: 1px solid var(--line); color: var(--accent-hi); font-weight: 700; font-size: 14px; }
.see-more .ico { width: 15px; height: 15px; }
.see-more:hover { background: var(--surface-2); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 16px 18px 18px; }
.pf-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.pf-card:hover { background: var(--surface-3); }
.pf-card span { display: flex; flex-direction: column; min-width: 0; }
.pf-card small { color: var(--muted); font-size: 12.5px; }

/* ---------- Badges as metal plaques ---------- */
.medal { --m1: #fff3d6; --m2: #c98c52; --m3: #6e3c16; --mi: rgba(60, 25, 5, .62);
  width: 49px; height: 49px; color: #fff; overflow: visible;
  background:
    radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    conic-gradient(from 200deg, var(--m2), var(--m1) 12%, var(--m2) 26%, var(--m3) 42%, var(--m2) 55%, var(--m1) 68%, var(--m2) 82%, var(--m3) 94%, var(--m2));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), inset 0 0 0 6px rgba(0, 0, 0, .14), inset 0 -4px 7px rgba(0, 0, 0, .35), inset 0 3px 5px rgba(255, 255, 255, .35),
    0 0 0 2px var(--m3), 0 4px 10px rgba(0, 0, 0, .45); }
.medal .ico { width: 23px; height: 23px; filter: brightness(0) drop-shadow(0 1px 0 rgba(255, 255, 255, .55)); opacity: .62; }
.medal-tier { background: linear-gradient(var(--m2), var(--m3)); color: #fff; box-shadow: 0 0 0 1.5px var(--m3); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.medal.m-bronze { --m1: #ffd9b0; --m2: #c47e45; --m3: #6a3814; }
.medal.m-silver { --m1: #ffffff; --m2: #b9c1cd; --m3: #5d6676; }
.medal.m-gold { --m1: #fff6c4; --m2: #e3b23c; --m3: #8a5d0e; }
.medal.m-diamond { --m1: #ffffff; --m2: #9fe3f7; --m3: #3a7fa8; }
.medal.m-platinum { --m1: #ffffff; --m2: #c9c3e6; --m3: #5b5486; }
.medal.m-iron { --m1: #8b90a0; --m2: #4a4f60; --m3: #2a2d38; }
.medal.m-iron .ico { opacity: .35; }
.medal.locked { filter: none; opacity: .55; }
.medal.diamond::after, .medal.m-diamond::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 14px 2px rgba(159, 232, 255, .5); animation: medalGlow 2.4s ease-in-out infinite; pointer-events: none; }
.medal.sm { width: 29px; height: 29px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), inset 0 -2px 4px rgba(0, 0, 0, .35), 0 0 0 1.5px var(--m3), 0 2px 5px rgba(0, 0, 0, .4); }
.medal.sm .ico { width: 14px; height: 14px; }
.medal.md { width: 47px; height: 47px; }
.medal.lg { width: 88px; height: 88px; }
.medal.lg .ico { width: 40px; height: 40px; }
.ph-show .medal.md { width: 34px; height: 34px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), inset 0 -3px 5px rgba(0, 0, 0, .35), inset 0 2px 4px rgba(255, 255, 255, .35), 0 0 0 1.5px var(--m3), 0 3px 7px rgba(0, 0, 0, .4); }
.ph-show .medal.md .ico { width: 17px; height: 17px; }
.ph-show .sc-slot { width: 38px; height: 38px; }

/* ---------- 3D items: floating and tilting ---------- */
[data-tilt] { perspective: 900px; }
.f3d { position: relative; display: grid; place-items: center; transform-style: preserve-3d; animation: f3dFloat 4.2s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.f3d-in { --gx: 50%; --gy: 30%; position: relative; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1); will-change: transform; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.f3d-in::after { content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .28), transparent 55%); mix-blend-mode: soft-light; }
.tilting .f3d-in { transition: transform .08s linear; }
.tilting .f3d-in::after { opacity: 1; }
.tilting .f3d { animation-play-state: paused; }
.f3d-shadow { position: absolute; left: 50%; bottom: -14px; width: 62%; height: 12px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); animation: f3dShadow 4.2s ease-in-out infinite; animation-delay: var(--fd, 0s); pointer-events: none; }
@keyframes f3dFloat { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes f3dShadow { 0%, 100% { transform: translateX(-50%) scale(.8); opacity: .55; } 50% { transform: translateX(-50%) scale(1); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .f3d, .f3d-shadow { animation: none; } }
.oc-art { overflow: visible; }
.oc:hover { transform: none; }

/* ---------- Collection: one strip per type with arrows ---------- */
.col-head { display: flex; align-items: center; gap: 10px; }
.col-nav { margin-inline-start: auto; display: inline-flex; gap: 6px; }
.col-nav[hidden] { display: none; }
.col-arr { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; }
.col-arr:hover:not(:disabled) { background: var(--surface-3); }
.col-arr:disabled { opacity: .35; cursor: default; }
.col-arr .ico { width: 16px; height: 16px; }
.col-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, calc((100% - 42px) / 4)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; }
.col-strip::-webkit-scrollbar { display: none; }
.col-strip > .col-it { scroll-snap-align: start; overflow: visible; }
.col-strip .col-art { height: 138px; overflow: visible; }
@media (max-width: 640px) { .col-strip { grid-auto-columns: 62%; } }

/* ---------- Profile stat cards: icons without a background ---------- */
.pstat-ico { width: 64px; height: 64px; background: none !important; border-radius: 0; }
.pstat-ico .ico { width: 58px; height: 58px; }
.pstat-ico.flame { color: #ff8c32; }
.pstat-ico.flame .ico { filter: drop-shadow(0 0 8px rgba(255, 140, 50, .75)) drop-shadow(0 0 18px rgba(255, 90, 20, .45)); animation: flameFlicker 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flameFlicker { 0%, 100% { transform: scale(1) rotate(-1deg); } 30% { transform: scale(1.04, .98) rotate(1.5deg); } 60% { transform: scale(.98, 1.04) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .pstat-ico.flame .ico { animation: none; } }

/* Topic icons: only the icon, no tile behind it */
.topic-ico, .topic-ico:hover, .topic-ico:focus-visible { background: none; }
.topic-ico .ico { width: 24px; height: 24px; filter: drop-shadow(0 0 6px hsla(var(--h), 70%, 60%, .35)); }
/* Win streak flame in the profile header: same glow and flicker as the Best win streak card */
.wflame.on .ico { filter: drop-shadow(0 0 8px rgba(255, 140, 50, .75)) drop-shadow(0 0 18px rgba(255, 90, 20, .45)); animation: flameFlicker 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: reduce) { .wflame.on .ico, .pstat-ico.flame .ico { animation: none; } }

/* Accuracy chip and ring (shared) */
.acc-chip { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 7px; border-radius: 7px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--acc-c); background: color-mix(in srgb, var(--acc-c) 14%, transparent); }
.acc-great { --acc-c: #3ccf91; } .acc-good { --acc-c: #8fd14f; } .acc-ok { --acc-c: #f4b740; } .acc-low { --acc-c: #ff7a5c; } .acc-none { --acc-c: var(--faint); }
.acc-ring { --sz: 64px; position: relative; display: inline-grid; place-items: center; align-content: center; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--acc-c) calc(var(--v) * 1%), rgba(255,255,255,.08) 0); }
.acc-ring b { font-size: calc(var(--sz) * .32); line-height: 1; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.acc-ring small { font-size: calc(var(--sz) * .105); color: var(--faint); margin-top: 2px; text-transform: uppercase; letter-spacing: 0; font-weight: 700; }

/* Profile more menu, blocking, club invite */
.ph-side-bot [hidden] { display: none !important; }
.ph-more { color: var(--muted); flex: none; }
.ph-more[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.pm-menu { position: fixed; z-index: 120; min-width: 200px; max-width: calc(100vw - 32px); padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-fly); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.pm-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: 600 14px/1.2 var(--font); text-align: start; cursor: pointer; }
.pm-menu button .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pm-menu button:hover, .pm-menu button:focus-visible { background: var(--surface-2); outline: none; }
.pm-menu button.bad, .pm-menu button.bad .ico { color: var(--danger); }
.pm-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pm-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.pm-facts li .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--faint); }
.pm-clubs { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.pm-club { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid transparent; cursor: pointer; }
.pm-club.one { cursor: default; }
.pm-club:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pm-club input { accent-color: var(--accent); margin: 0; }
.pm-club b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-list { display: flex; flex-direction: column; gap: 8px; }
.blk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.blk-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.blk-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Duel history (chess-style) and profile accuracy */
.table.dh { table-layout: auto; }
.table.dh th, .table.dh td { padding: 10px 12px; }
.table.dh th:first-child, .table.dh td:first-child { padding-inline-start: 20px; }
.table.dh th:last-child, .table.dh td:last-child { padding-inline-end: 20px; }
.dh .dh-c-topic { width: 64px; text-align: center; }
.dh-topic { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dh-topic .topic-ico { width: 30px; height: 30px; background: none; }
.dh-topic small { font-size: 11px; color: var(--faint); font-weight: 700; white-space: nowrap; }
.dh-c-pl { min-width: 0; }
.dh-stack { display: flex; flex-direction: column; gap: 6px; }
.dh-pl { display: flex; align-items: center; gap: 7px; min-width: 0; height: 26px; color: var(--muted); }
.dh-pl.me { color: var(--text); }
.dh-av.av-sm { width: 24px; height: 24px; font-size: 11px; border-radius: 5px; }
.dh-sq { width: 10px; height: 10px; border-radius: 3px; flex: none; --sc: #8cc6ff; border: 2px solid var(--sc); opacity: .55; }
.dh-sq.contra { --sc: #ffa58f; }
.dh-sq.won { background: var(--sc); opacity: 1; }
.dh-sq.drew { background: color-mix(in srgb, var(--sc) 45%, transparent); opacity: .85; }
.dh-sq.void { opacity: .3; }
.dh-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 220px; }
.dh-pl.me .dh-name { font-weight: 800; }
.dh-elo { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh .dh-c-res, .dh .dh-c-acc { text-align: center; width: 1%; white-space: nowrap; }
.dh-res { display: inline-flex; align-items: center; gap: 10px; }
.dh-score span { display: grid; place-items: center; height: 26px; min-width: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.dh-rsq { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 15px; font-weight: 900; line-height: 1; color: #fff; background: var(--surface-3); }
.dh-rsq.w { background: var(--ok); color: #0d2a24; }
.dh-rsq.l { background: #ef4d5a; }
.dh-rsq.d, .dh-rsq.a { background: var(--surface-3); color: var(--muted); }
.dh-c-acc .dh-stack { align-items: center; }
.acc-chip.dh-acc { height: 26px; min-width: 36px; font-size: 13px; }
.acc-chip.dh-dim { opacity: .55; }
.dh-date { white-space: nowrap; font-size: 13px; }
@media (max-width: 640px) {
  .table.dh .dh-hide { display: none; }
  .table.dh th, .table.dh td { padding: 9px 6px; }
  .table.dh th:first-child, .table.dh td:first-child { padding-inline-start: 12px; }
  .table.dh th:last-child, .table.dh td:last-child { padding-inline-end: 12px; }
  .dh .dh-c-topic { width: 44px; }
  .dh-topic small { font-size: 10px; }
  .dh-av.av-sm { width: 18px; height: 18px; font-size: 9px; border-radius: 4px; }
  .dh-pl { gap: 5px; font-size: 13.5px; }
  .dh-name { max-width: 110px; }
  .dh-elo { font-size: 11.5px; }
  .dh-pl .flag { width: 15px; height: 10px; }
  .dh-res { gap: 6px; }
  .acc-chip.dh-acc { min-width: 30px; font-size: 12px; padding: 0 5px; }
}
/* the smallest phones (320–380 px): the accuracy column steps aside (it is in the duel itself), names get shorter */
@media (max-width: 380px) {
  .table.dh .dh-c-acc { display: none; }
  .dh-name { max-width: 84px; }
}
/* phones: a table wider than the screen scrolls inside its card, never the page */
@media (max-width: 899px) { .card:has(> .table), .panel:has(> .table) { overflow-x: auto; overscroll-behavior-x: contain; } }

@media (max-width: 400px) { .dh-elo { display: none; } }
.pacc-ring { width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
/* Verdict popup accuracy */
.vacc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.vacc-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; width: 100%; }
.vacc-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; flex: 1 1 0; max-width: 200px; padding: 10px 8px; border-radius: 12px; border: 1px solid transparent; }
.vacc-side.me { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.vacc-name { font-weight: 700; font-size: 14px; color: var(--text); text-align: center; overflow-wrap: anywhere; }
.vacc-note { margin: 0; text-align: center; }
/* Train: autopsy transcripts and accuracy */
.an-diag { display: flex; align-items: center; gap: 20px; }
.an-diag .an-big { flex: 1; min-width: 0; }
.an-acc { display: flex; align-items: center; gap: 14px; flex: none; }
.an-acc-op { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.an-acc-op small { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .an-diag { flex-direction: column; align-items: flex-start; gap: 14px; } }
.rd-better { display: grid; gap: 8px; margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.rd-better small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.rd-better small .ico { width: 13px; height: 13px; }
.rd-better p { line-height: 1.5; margin-top: 2px; }
.rb-said p { color: var(--muted); font-style: italic; }
.rb-strong small { color: var(--ok); }
.rd-other .rd-dot { background: transparent; border: 2px solid var(--surface-3); }
.tx { margin-top: 2px; }
.tx summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; border: 1px solid var(--line); user-select: none; transition: color .15s, border-color .15s, background .15s; }
.tx summary::-webkit-details-marker { display: none; }
.tx summary:hover { color: var(--text); background: var(--surface-2); }
.tx summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx summary .ico { width: 15px; height: 15px; }
.tx .tx-chev { transition: transform .2s; }
.tx[open] .tx-chev { transform: rotate(180deg); }
.tx .tx-hide, .tx[open] .tx-show { display: none; }
.tx[open] .tx-hide { display: inline; }
.tx-n { color: var(--faint); font-weight: 600; }
.tx-box { margin-top: 8px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); animation: txIn .2s ease; }
@keyframes txIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tx-e { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); border-inline-start: 3px solid var(--surface-3); }
.tx-e.me { border-inline-start-color: var(--accent); background: rgba(255,255,255,.05); }
.tx-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 3px; }
.tx-who .faint { font-size: 12px; }
.tx-e p { font-size: 14px; line-height: 1.55; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-none { margin-top: 2px; }
.sb-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sb-acc-v { display: inline-flex; align-items: center; gap: 6px; }
.sb-acc-v i { color: var(--faint); font-style: normal; }
.sb-acc .acc-chip { height: 22px; min-width: 34px; font-size: 13px; }
.dp-acc { flex: none; }
.dp-acc .acc-chip { height: 24px; min-width: 34px; font-size: 13px; }
.ins-top.ins-top5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ins-acc .ia-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ins-acc strong { color: var(--acc-c); }
.acc-spark { display: block; flex: none; max-width: 60%; height: auto; margin-bottom: 8px; }
.acc-spark rect { fill: var(--acc-c); opacity: .85; }
@media (max-width: 1100px) { .ins-top.ins-top5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ins-top.ins-top5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-top.ins-top5 > .ins-acc { grid-column: span 2; } }
.acc-chip.acc-none { background: none; color: var(--faint); font-weight: 600; }
.pbar .pb-club { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 2px; padding-block: 2px 2px; padding-inline: 5px 8px; border-radius: 6px; background: hsl(var(--h, 250) 45% 50% / .14); color: hsl(var(--h, 250) 75% 78%); font-size: 12px; font-weight: 700; vertical-align: middle; text-decoration: none; }
.pbar .pb-club:hover { background: hsl(var(--h, 250) 45% 50% / .26); }
.pbar .pb-club .cbadge { width: 15px; height: 15px; }
.pbar .pb-club span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .pbar .pb-club span { display: none; } }

/* Accuracy: just the coloured number, no background */
.acc-chip { background: none; padding: 0; min-width: 0; height: auto; }
/* Items: still 3D (depth shadow + floor shadow), but no floating and no hover movement */
.f3d, .f3d-shadow { animation: none !important; }
.f3d-in { transition: none; transform: none !important; }
.f3d-in::after { display: none; }
.f3d-shadow { bottom: -10px; opacity: .8; transform: translateX(-50%); }
.oc:hover, .col-it:hover { transform: none; }

/* Fallacy library */
.fl-intro { margin: -6px 0 18px; max-width: 720px; }
.fl-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.fl-tools .input-icon { max-width: 420px; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-chip { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.fl-chip:hover:not(.on) { color: var(--text); }
.fl-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.fl-family { margin-bottom: 8px; }
.fl-family .group-head { margin: 28px 0 12px; }
.fl-family .group-head p { color: var(--muted); }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fl-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; transition: box-shadow .3s, border-color .3s; }
.fl-card[hidden], .fl-family[hidden], .fl-none[hidden] { display: none; }
.fl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fl-top h3 { font-size: 17px; }
.fl-lesson { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.fl-lesson .ico { width: 14px; height: 14px; }
.fl-desc { color: var(--text); }
.fl-line { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.fl-k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.fl-ex { border-inline-start: 3px solid var(--line); padding-inline-start: 10px; }
.fl-hit { box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--accent-soft); }
.fl-entry { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 12px; border: 1px solid var(--accent); background: var(--accent-soft); }
.fl-entry .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fl-entry .t small { color: var(--muted); }
.fl-entry-ico .ico { width: 30px; height: 30px; }
.fl-entry > .ico { width: 20px; height: 20px; color: var(--muted); }
.fl-name { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.fl-name:hover { color: var(--accent); }
.fl-vdesc { display: block; margin-top: 2px; }
.fl-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--accent); font-weight: 700; }
.fl-more .ico { width: 14px; height: 14px; }
@media (max-width: 640px) { .fl-grid { grid-template-columns: 1fr; } }
/* Fallacy insights and autopsy */
.fx-fam { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; flex: none; }
.fx-fam-relevance { color: #f0a36b; }
.fx-fam-presumption { color: #c4b6ff; }
.fx-fam-causal { color: #6fc6e8; }
.fx-fam-ambiguity { color: #e9c46a; }
.fx-fam-formal { color: #8fd6a8; }
.fx-name { font-weight: 800; color: #fff; }
.fx-name:hover { color: var(--accent-hi); }
.fx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-head h3 { margin: 0; }
.fx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fx-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fx-col h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fx-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border-inline-start: 3px solid var(--accent-hi); }
.fx-item.fx-opp { border-inline-start-color: #6c7189; }
.fx-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-top .lock-chip { margin-inline-start: auto; }
.fx-round { font-size: 12px; color: var(--faint); }
.fx-missed { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(239, 77, 90, .14); color: #ff8a93; font-size: 11px; font-weight: 800; }
.fx-quote { font-style: italic; color: #eceef5; font-size: 14px; line-height: 1.45; }
.fx-fix { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
.fx-fix small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ok); }
.fx-opp .fx-fix small { color: var(--gold); }
.fx-fix small .ico { width: 13px; height: 13px; }
.fx-fix p { line-height: 1.5; margin-top: 2px; }
.fx-none { padding: 10px 0; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.fx-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: #c4b6ff; }
.fx-chip.op { background: var(--surface-3); color: var(--muted); }
.fx-chip:hover { color: #fff; }
.fx-ins h3 { display: flex; align-items: center; gap: 8px; }
.fx-ins h3 .ico { width: 20px; height: 20px; color: var(--accent-hi); }
.fx-tot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.fx-tot > div { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.fx-tot strong { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fx-tot small { font-size: 12px; color: var(--faint); }
.fx-tot-t { justify-content: center; }
.fx-trend { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.fx-t-improving { background: rgba(53, 194, 165, .15); color: var(--ok); }
.fx-t-worse { background: rgba(239, 77, 90, .14); color: #ff8a93; }
.fx-tips { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.fx-tips h4 { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.fx-tips h4 .ico { width: 15px; height: 15px; }
.fx-tips ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.fx-sub { margin-top: 20px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fxi-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.fxi { display: flex; flex-direction: column; gap: 5px; }
.fxi-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fxi-n { margin-inline-start: auto; font-size: 13px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.fxi-bar { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.fxi-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-hi); }
.fxi-lesson { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 13px; font-weight: 700; color: #c4b6ff; }
.fxi-lesson .ico { width: 14px; height: 14px; }
.fxi-lesson:hover { color: #fff; }
@media (max-width: 720px) { .fx-cols { grid-template-columns: 1fr; } .fx-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Admin: Luna health, costs */
.ai-alerts { display: flex; flex-direction: column; gap: 10px; margin: -6px 0 18px; }
.ai-alerts:empty { display: none; }
.ai-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; }
.ai-alert > .ico { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ai-alert.red { background: rgba(239, 77, 90, .14); box-shadow: inset 4px 0 0 var(--danger); color: #ffd6da; }
.ai-alert.red > .ico { color: #ff8d98; }
.ai-alert.yellow { background: rgba(244, 183, 64, .12); box-shadow: inset 4px 0 0 var(--gold); color: #ffe2a6; }
.ai-alert.yellow > .ico { color: var(--gold); }
.ai-alert-body { flex: 1; min-width: 0; }
.ai-alert-body > b { display: block; font-size: 15px; color: #fff; margin-bottom: 2px; }
.ai-alert-body p { margin: 2px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.ai-alert-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ai-err { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.ai-testtag { display: inline-block; padding: 0 6px; border-radius: 5px; background: rgba(244, 183, 64, .18); color: var(--gold); font: 800 10.5px/18px var(--font); letter-spacing: .05em; text-transform: uppercase; font-style: normal; vertical-align: 1px; }
.ai-test { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .2); font-size: 13px; color: var(--text); }
.ai-test > .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.ai-test.ok > .ico { color: var(--ok); }
.ai-test.bad > .ico { color: #ff8d98; }
.ai-test > div { min-width: 0; }
.ai-test p { margin: 3px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.ai-test code { font-size: 12px; }
.tab-n.warn { background: var(--gold); color: #2a1d00; }
.warn-t { color: var(--gold); }
.ai-seg-sm { width: 280px; max-width: 100%; }
.ai-seg-sm button { padding: 0 8px; white-space: nowrap; }
.ai-usd { position: relative; width: 140px; }
.ai-usd > span { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 800; pointer-events: none; }
.ai-usd .input { padding-inline-start: 30px; }
.ai-tbl-wrap { overflow-x: auto; }
.ai-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ai-tbl th { text-align: start; padding: 10px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ai-tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ai-tbl tbody tr:last-child td { border-bottom: 0; }
.ai-tbl .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-tbl tr.open td { background: rgba(239, 77, 90, .06); }
.ai-tbl code { font-size: 12px; }
.ai-cause { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ai-meter { display: inline-block; width: 100%; min-width: 60px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; }
.ai-meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.ai-meter i.over1 { background: var(--gold); }
.ai-meter i.over2 { background: var(--danger); }
.ai-meter.big { height: 10px; }
@media (max-width: 720px) {
  .ai-seg-sm { width: 100%; }
  .ai-alert { padding: 12px; }
  .ai-cause { max-width: 180px; }
}
/* Admin: test lab */
.lab { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lab .bad { color: #ff8d98; }
.lab-run, .lab-out { display: flex; flex-direction: column; gap: 12px; }
.lab-prog { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lab-prog .progress { height: 8px; }
.lab-live { display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: var(--accent-hi); animation: labPulse 1.2s ease-in-out infinite; }
@keyframes labPulse { 50% { opacity: .3; } }
.lab-confirm { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; flex-basis: 100%; }
.lab-acts { align-items: center; }
.lab-h4 { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -6px; }
.lab-tw { overflow-x: auto; max-width: 100%; }
.lab-t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lab-t th { text-align: start; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lab-t th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--faint); }
.lab-t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lab-t tbody tr:last-child td { border-bottom: 0; }
.lab-cases .lab-row { cursor: pointer; }
.lab-cases .lab-row:hover td, .lab-cases .lab-row.on td { background: var(--surface-2); }
.lab-detail > td { background: var(--surface); padding: 14px 12px 18px; }
.lab-case { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lab-dh p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; }
.lab-vt td:first-child { color: var(--muted); white-space: nowrap; }
.lab-det { border-radius: var(--r-sm); background: var(--surface-2); padding: 10px 12px; }
.lab-det > summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.lab-det[open] > summary { margin-bottom: 10px; }
.lab-det h5 { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.lab-evs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lab-evi { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lab-evi p { margin: 4px 0; line-height: 1.45; }
.lab-evi blockquote, .lab-sp blockquote { margin: 4px 0 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--surface-3); font-size: 13px; color: #dfe1ea; overflow-wrap: anywhere; }
.lab-q { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; background: var(--surface-3); color: var(--muted); }
.lab-q.verified { background: rgba(53, 194, 122, .18); color: #6fdca2; }
.lab-q.approx { background: rgba(244, 183, 64, .16); color: var(--gold); }
.lab-q.dropped { background: rgba(239, 77, 90, .18); color: #ff8d98; }
.lab-fl, .lab-rounds { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; overflow-wrap: anywhere; }
.lab-fl li.fa { color: #ffcf7a; }
.lab-rounds li.miss { color: #ff8d98; }
.lab-rh { margin: 14px 0 6px; }
.lab-sp { padding: 8px 12px; margin-bottom: 6px; border-radius: var(--r-sm); background: var(--surface); border-inline-start: 3px solid #5fd9bd; font-size: 13.5px; }
.lab-sp.c { border-inline-start-color: #ff8d98; }
.lab-sp p { margin: 4px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.lab-presets { display: flex; flex-direction: column; gap: 8px; }
.lab-preset { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; }
.lab-preset span { display: flex; flex-direction: column; gap: 2px; }
.lab-preset small { color: var(--muted); font-size: 12.5px; }
.lab-scen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 14px; margin: 10px 0; }
.lab-scen label { display: flex; gap: 8px; align-items: center; }
@media (max-width: 720px) {
  .lab-evs { grid-template-columns: minmax(0, 1fr); }
  .lab-t th, .lab-t td { padding: 8px; }
}
/* Verdict evidence, AI limits */
.crit .vev { grid-column: 1 / -1; margin-top: -2px; }
.vev > summary { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; list-style: none; user-select: none; }
.vev > summary::-webkit-details-marker { display: none; }
.vev > summary:hover { color: var(--text); background: var(--surface-2); }
.vev > summary .ico { width: 13px; height: 13px; }
.vev .vev-chev { transition: transform .15s; }
.vev[open] .vev-chev { transform: rotate(180deg); }
.crit .vev > summary { display: flex; width: max-content; }
.vev-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.vev-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; text-align: start; }
.vev-side.pro { box-shadow: inset 3px 0 0 var(--pro); }
.vev-side.contra { box-shadow: inset 3px 0 0 var(--contra); }
.vev-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vev-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.vev-reason { margin: 0; color: #dfe1ea; line-height: 1.45; overflow-wrap: anywhere; }
.vev-q { margin: 0; padding-inline-start: 10px; border-inline-start: 2px solid var(--surface-3); color: var(--muted); font-style: italic; line-height: 1.45; overflow-wrap: anywhere; }
.vev-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.vev-round, .vev-chk { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.vev-chk .ico { width: 11px; height: 11px; }
.vev-chk.verified { background: rgba(53, 194, 165, .14); color: var(--ok); }
.vev-chk.approx { background: rgba(244, 183, 64, .12); color: #e9c27a; }
.vcheck { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 0; text-align: center; }
.vcheck .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.vbackup { display: flex; justify-content: center; }
.vbackup-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--faint); font-size: 12px; font-weight: 700; cursor: help; }
.vbackup-chip .ico { width: 13px; height: 13px; }
.varch-ev { display: flex; flex-direction: column; gap: 12px; }
.varch-ev .vcheck { justify-content: flex-start; text-align: start; }
.ai-limit { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--gold); text-align: start; }
.ai-limit .ail-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(244, 183, 64, .14); color: var(--gold); }
.ai-limit .ail-ico .ico { width: 24px; height: 24px; }
.ai-limit .ail-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-limit .ail-body > b { font-size: 15.5px; color: #fff; }
.ai-limit .ail-body p { margin: 0; font-size: 14px; line-height: 1.5; color: #dfe1ea; overflow-wrap: anywhere; }
.ai-limit .ail-reset { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ai-limit .ail-reset .ico { width: 14px; height: 14px; }
.ai-limit .ail-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-limit.compact { padding: 12px 14px; gap: 10px; }
.ai-limit.compact .ail-ico { width: 34px; height: 34px; }
.ai-limit-wrap { margin-bottom: 20px; }
.modal-ai-limit { max-width: 480px; }
@media (max-width: 560px) {
  .vev-body { grid-template-columns: minmax(0, 1fr); }
  .ai-limit { flex-direction: column; }
}
.modal-ai-limit .modal-body { padding-top: 52px; }

/* Mentor 2.0: the duel's tip card (duel.js) */
.tip-listen { margin-inline-start: auto; height: 30px; padding: 0 8px; }
.tip-listen .ico { width: 17px; height: 17px; color: var(--muted); }
.tip-goal { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: #c4b6ff; font-size: 12px; font-weight: 700; }
.tip-goal .ico { width: 13px; height: 13px; }
.tip-q { color: #f1e3c0; font-style: italic; font-size: 13.5px; }

/* Mentor redesign: hub (/train/mentor), exercise pages, placement, history (mentor.js) and the Train page card */
.mn-sec { margin-top: 28px; }
.mn-hub .page-head + .mn-sec { margin-top: 0; }
.mn-hrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.mn-h { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0; }
.mn-all { font-size: 14px; font-weight: 700; }
.mn-line { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mn-center { text-align: center; }
.mn-streak { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 700; vertical-align: bottom; }
.mn-streak .ico { width: 16px; height: 16px; }
/* Next step */
/* Lists: exercises, recent sessions, history */
.mn-list { overflow: hidden; }
.mn-list .card-head { padding: 18px 20px; }
.mn-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--text); }
.mn-list > .mn-row:first-child, .mn-list .card-head + .mn-row { border-top: 0; }
a.mn-row:hover { background: var(--surface-2); }
.mn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-main b { font-size: 15px; font-weight: 700; }
.mn-main small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-main small.wrap, a.mn-row .mn-main small { white-space: normal; }
.mn-lock { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 12.5px; font-weight: 700; }
.mn-lock .ico { width: 13px; height: 13px; }
.mn-chev { width: 18px !important; height: 18px !important; color: var(--faint); flex: none; }
.mn-act { flex: none; display: flex; justify-content: flex-end; gap: 4px; min-width: 96px; }
.mn-act .btn { color: var(--muted); }
/* Score "7/10" */
.mn-score { flex: none; display: inline-flex; align-items: baseline; gap: 1px; min-width: 44px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.mn-score b { font-size: 17px; font-weight: 800; color: var(--acc-c); }
.mn-score small { font-size: 12px; color: var(--faint); font-weight: 600; }
.mn-score.lg b { font-size: 34px; line-height: 1; }
.mn-score.lg small { font-size: 15px; }
/* Weekly goal */
.mn-days { margin-inline-start: auto; white-space: nowrap; }
.mn-gbar { margin-top: 16px; }
.mn-gnow { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.mn-gnow b { display: inline-flex; align-items: center; font-size: 20px; color: var(--ok); font-variant-numeric: tabular-nums; }
.mn-gnow b .ico { width: 15px; height: 15px; color: var(--faint); }
.mn-gnow span { margin-inline-start: auto; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.mn-gnow span.ok { color: var(--ok); }
.mn-gtrack { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mn-gtrack i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.mn-glegend { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mn-glegend b { color: var(--gold); }
/* Profile (collapsed) */
.mn-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mn-bar i { display: block; height: 100%; background: var(--acc-c); }
.mn-review { font-size: 14.5px; line-height: 1.55; margin-bottom: 4px; }
.mn-signup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r); background: var(--surface); }
.mn-signup > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.mn-signup small { color: var(--muted); font-size: 13.5px; }
/* Exercise pages */
.mn-ex .page-head { margin-bottom: 20px; }
.mn-sub { margin: -8px 0 8px; }
.mn-tabs { display: flex; gap: 22px; margin: -4px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mn-tabs::-webkit-scrollbar { display: none; }
.mn-tabs a { flex: none; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.mn-tabs a:hover { color: #fff; }
.mn-tabs a.on { color: #fff; border-bottom-color: var(--accent); }
.mn-task { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mn-task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mn-task-top .push { margin-inline-start: auto; }
.mn-motion { font-size: 21px; line-height: 1.3; }
.mn-prompt { font-size: 15.5px; color: #e4e6ef; line-height: 1.55; }
.mn-quoteblock { padding: 10px 14px; border-inline-start: 3px solid var(--contra); background: var(--surface-2); border-start-start-radius: 0; border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm); border-end-start-radius: 0; }
.mn-quoteblock.q { border-inline-start-color: var(--gold); }
.mn-quoteblock.before { border-inline-start-color: var(--faint); }
.mn-quoteblock small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.mn-quoteblock p { font-size: 14.5px; line-height: 1.55; }
.mn-answer { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.mn-ans-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mn-ans-l { font-size: 14px; }
.mn-mode { grid-auto-columns: auto; }
.mn-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; height: 36px; }
.mn-mode .ico { width: 16px; height: 16px; }
.mn-timer { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.mn-timer .ico { width: 16px; height: 16px; }
.mn-timer b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.mn-timer.over b { color: var(--gold); }
.mn-speak { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 2px; text-align: center; }
.mn-speak[hidden], .mn-text[hidden] { display: none; }
.mn-mic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transition: background .12s; }
.mn-mic:hover { background: var(--accent-hi); }
.mn-mic:disabled { opacity: .5; }
.mn-mic .ico { width: 32px; height: 32px; }
.mn-mic.rec { background: var(--danger); box-shadow: 0 0 0 6px rgba(239, 77, 90, .2); }
.mn-mic-l { max-width: 420px; display: inline-flex; align-items: center; gap: 8px; }
.mn-ans-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mn-note { margin-top: 14px; }
.mn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: -8px 0 18px; }
.mn-steps i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.mn-steps i.done { background: var(--ok); }
.mn-steps i.cur { background: var(--accent); }
.mn-label { font-size: 14px; font-weight: 700; color: #d6d9e4; }
.mn-sel { height: 42px; font-size: 14px; }
/* Result */
.mn-result { display: flex; flex-direction: column; padding: 22px 24px; margin-top: 14px; }
.mn-res-top { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; }
.mn-res-title { flex: 1; min-width: 0; }
.mn-res-title h3 { font-size: 19px; }
.mn-listen.on { background: var(--accent); color: #fff; }
.mn-fb { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.mn-fb h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mn-fb h4 a:hover { text-decoration: underline; }
.mn-st { font-weight: 700; }
.mn-st.ok { color: var(--ok); }
.mn-st.warn { color: var(--gold); }
.mn-st.bad { color: #ff8d98; }
.mn-fb p { font-size: 15px; line-height: 1.55; color: #e9eaf2; }
.mn-fb p.muted { color: var(--muted); }
.mn-strong { font-weight: 600; }
.mn-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.mn-dot.ok { background: var(--ok); }
.mn-dot.warn { background: var(--gold); }
.mn-dot.acc { background: var(--accent-hi); }
.mn-dot.bad { background: #ff8d98; }
.mn-quote { margin: 0; padding-block: 2px 2px; padding-inline: 12px 0; border-inline-start: 3px solid var(--gold); font-style: italic; color: #f1e3c0; font-size: 14.5px; }
.mn-details { padding: 14px 0; border-top: 1px solid var(--line); }
.mn-details summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 14px; }
.mn-details summary:hover { color: #fff; }
.mn-details > p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #dfe1ea; overflow-wrap: anywhere; }
.mn-details mark { background: rgba(244, 183, 64, .25); color: #fff; border-radius: 3px; padding: 0 2px; }
.mn-delta { font-size: 13px; color: var(--muted); margin-inline-start: 4px; }
.mn-delta.up { color: var(--ok); }
.mn-delta.down { color: #ff8d98; }
.mn-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 10px; }
.mn-col h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.mn-col p { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.mn-col p + p { margin-top: 6px; }
.mn-res-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.mn-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.mn-auto input { accent-color: var(--accent); }
/* Placement done */
.mn-place-done { display: flex; flex-direction: column; gap: 16px; }
.mn-place-top { display: flex; align-items: center; gap: 16px; }
.mn-place-top .av { width: 64px; height: 64px; border-radius: 12px; }
.mn-place-top h2 { font-size: 22px; margin-top: 2px; }
/* Fallacy hunt */
.mn-hunt-intro { display: flex; flex-direction: column; gap: 10px; }
.mn-hunt-intro > div { margin-top: 6px; }
/* Duel prep */
.mn-prep-form { display: flex; flex-direction: column; gap: 16px; }
.mn-prep-form .field { margin-bottom: 0; }
.mn-sidepick { max-width: 280px; }
.mn-planrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.mn-planrow > .ico { width: 16px; height: 16px; color: var(--faint); }
.mn-planrow > span { flex: 1; min-width: 160px; }
.mn-counter { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mn-counter .mn-answer { padding: 0; background: none; margin-top: 6px; }
.mn-mini { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.mn-mini .mn-res-top { padding-bottom: 10px; }
.mn-prep-done { display: flex; flex-direction: column; gap: 8px; }
.mn-prep-done .btn-row { margin-top: 8px; }
/* History */
.mn-hist-duel { margin-bottom: 12px; }
.mn-hist-duel .card-head h3 { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .mn-motion { font-size: 19px; }
  .mn-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mn-row { padding: 12px 16px; gap: 12px; }
  .mn-act { min-width: 88px; }
  .mn-tabs { flex-wrap: wrap; gap: 0 18px; border-bottom: 0; overflow: visible; }
  .mn-tabs a { margin-bottom: 0; padding: 8px 0; }
  .mn-list .card-head { padding: 16px; }
  .mn-result { padding: 18px 16px; }
  .mn-answer { padding: 16px; }
  .mn-ans-foot .btn, .mn-hunt-intro .btn { width: 100%; }
  .mn-res-top .mn-listen span { display: none; }
}
.mr-row p { color: #e9eaf2; }

/* ===== Admin: AI tab, alarm banner and test lab (redesign) ===== */
.aiz, .lab { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.aiz-card { overflow: hidden; min-width: 0; }
.aiz-card > .card-head h3 { font-size: 17px; }
.aiz-card > .card-head { flex-wrap: wrap; }
.aiz-pad { display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 20px; }
/* status: dot + word */
.aiz-s { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; }
.aiz-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.aiz-dot.ok { background: var(--ok); }
.aiz-dot.warn { background: var(--gold); }
.aiz-dot.bad { background: var(--danger); }
.aiz-dot.run { background: var(--accent-hi); }
.aiz-dot.off { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--faint); }
/* status line at the top of the AI tab */
.aiz-test { margin: 0; padding: 10px 24px; border-top: 1px solid var(--line); font-size: 13.5px; overflow-wrap: anywhere; }
.aiz-test .aiz-s { white-space: normal; }
/* Luna / cost alarms inside the status card (the banner leaves them out on the AI tab) */
.aiz-alarms { border-top: 1px solid var(--line); }
.aiz-alarm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 24px; }
.aiz-alarm + .aiz-alarm { border-top: 1px solid var(--line); }
.aiz-alarm .btn { height: 32px; padding: 0 12px; font-size: 13.5px; }
/* settings rows (like the Settings page) */
.aiz-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.aiz-click { cursor: pointer; }
.aiz-rt { display: flex; flex-direction: column; min-width: 0; }
.aiz-rt b { font-size: 15px; }
.aiz-rt small { color: var(--muted); font-size: 13.5px; }
.aiz-bud { display: flex; gap: 8px; align-items: center; flex: none; }
.aiz-bud .ai-usd { width: 120px; }
.aiz-bud .input { height: 36px; }
/* fold-out rows ("details") */
.aiz-more { border-top: 1px solid var(--line); }
.card-head + .aiz-more, .aiz-row + .aiz-more { border-top: 0; }
.aiz-more > summary { display: flex; align-items: center; gap: 8px; padding: 12px 24px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.aiz-more > summary::-webkit-details-marker { display: none; }
.aiz-more > summary:hover { color: var(--text); }
.aiz-more > summary .ico, .aiz-job .ico { width: 16px; height: 16px; color: var(--faint); transition: transform .15s; }
.aiz-more[open] > summary .ico, .aiz-job[aria-expanded="true"] .ico { transform: rotate(180deg); }
.aiz-in { display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px; min-width: 0; }
.aiz-in > .aiz-dl, .aiz-in > .seg { margin: 0 24px; }
.aiz-help { margin: 0; padding: 0 24px; line-height: 1.55; }
.aiz-lead { margin: 0; padding: 0 24px 12px; font-size: 13px; line-height: 1.45; }
@media (max-width: 600px) { .aiz-lead { padding-inline: 16px; } }
.aiz-help p { margin: 0 0 6px; }
.aiz-help code, .aiz-dl code { font-size: 12px; }
.aiz-ul { padding-inline-start: 44px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.aiz-h4 { margin: 4px 24px -4px; font-size: 14px; }
.aiz-seg { width: 300px; max-width: calc(100% - 48px); }
.aiz-calls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aiz-calls > .seg { margin: 0 24px; }
.aiz-seg button { height: 32px; font-size: 13px; }
/* key / value lists */
.aiz-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; font-size: 13.5px; line-height: 1.5; }
.aiz-dl dt { color: var(--muted); }
.aiz-dl dd { margin: 0; overflow-wrap: anywhere; }
/* plain tables */
.aiz-tbl th:first-child, .aiz-tbl td:first-child { padding-inline-start: 24px; }
.aiz-tbl th:last-child, .aiz-tbl td:last-child { padding-inline-end: 24px; }
.aiz-tbl td { vertical-align: middle; }
.aiz-tbl .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aiz-tbl tr.aiz-total td { font-weight: 800; border-top: 1px solid var(--surface-3); }
.aiz-tbl tr.aiz-sub td { color: var(--muted); }
.aiz-in .ai-tbl-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aiz-nw { white-space: nowrap; }
/* model ids never break inside; a chain wraps only between the steps (at the arrow) */
.aiz-model { font-size: 12.5px; color: #d8dbe6; white-space: nowrap; }
.aiz-mo { display: none; }
.aiz-arr { margin: 0 6px; color: var(--faint); }
/* incidents: status word + who acknowledged it (or the button), wraps to two lines on phones */
.aiz-ist > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.aiz-ist small { font-size: 12.5px; }
.aiz-costs td:first-child { font-weight: 600; }
/* jobs */
.aiz-job { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text); text-align: start; }
.aiz-job:hover { color: #fff; }
.aiz-jobmore > td { background: var(--surface-2); padding-top: 12px; padding-bottom: 14px; }
/* rubric fold (a whole card) */
.aiz-rub { padding: 16px 24px 20px; gap: 8px; }
.aiz-rub h4 { font-size: 15px; margin-top: 8px; }
.aiz-rub ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; }
.aiz-rub .btn { align-self: flex-start; }
.aiz-anc { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; line-height: 1.45; }
.aiz-anc dt { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.aiz-anc dd { margin: 0; color: #d8dbe6; }
/* alarm banner: one calm line + buttons (also the voice alarm banner, which shares .ai-alert) */
.ai-alerts { gap: 8px; margin: -4px 0 20px; }
.ai-alert, .ai-alert.red, .ai-alert.yellow { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.ai-alert.red { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--danger); }
.ai-alert.yellow { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--gold); }
.ai-alert.aib { align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px 10px; padding-inline: 18px 14px; }
.aib-txt { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.aib-txt b { color: var(--text); }
.aib-txt .aiz-dot { margin-block: 0 1px; margin-inline: 0 8px; vertical-align: middle; }
.aib-err { display: inline-block; max-width: 280px; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--faint); }
.aib-act { display: flex; gap: 8px; flex-wrap: wrap; }
.aib-act .btn { height: 32px; padding: 0 12px; font-size: 13.5px; }
/* test lab */
.lab .aiz-card.lab-run, .lab .aiz-card.lab-out { gap: 0; }
.lab-runs .lab-rrow { cursor: pointer; }
.lab-runs .lab-rrow:hover td, .lab-runs .lab-rrow.on td { background: var(--surface-2); }
.lab-runs .lab-rrow.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.lab-rrow:focus-visible, .lab-row:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -2px; }
.lab-estdl { max-width: 640px; }
.lab-chk { max-width: 520px; }
.lab-chk .aiz-s { font-size: 13.5px; }
.lab-mdot { display: none; }
/* a ghost button at the start of a button row lines its icon up with the text edge */
.lab-acts > .btn-ghost:first-child { margin-inline-start: -14px; }
.lab-scn { min-width: 190px; }
.lab-luna > span { white-space: nowrap; }
.lab-scn small { display: block; font-size: 12px; }
.lab-cases td { vertical-align: top; }
.lab-cases .lab-row { cursor: pointer; }
.lab-cases .lab-row:hover td, .lab-cases .lab-row.on td { background: var(--surface-2); }
.lab-cases .lab-detail > td { padding: 14px 24px 18px; }
.lab .lab-acts .btn-primary { order: -1; }
@media (max-width: 720px) {
  .aiz-row, .aiz-more > summary, .aiz-test { padding-inline-start: 16px; padding-inline-end: 16px; }
  .aiz-help, .aiz-pad, .aiz-rub { padding-inline-start: 16px; padding-inline-end: 16px; }
  .aiz-in > .aiz-dl, .aiz-in > .seg { margin: 0 16px; }
  .aiz-h4 { margin: 4px 16px -4px; }
  .aiz-ul { padding-inline-start: 36px; }
  .aiz-card > .card-head { padding: 14px 16px; }
  .aiz-tbl th:first-child, .aiz-tbl td:first-child { padding-inline-start: 16px; }
  .aiz-tbl th:last-child, .aiz-tbl td:last-child { padding-inline-end: 16px; }
  .aiz-tbl th, .aiz-tbl td { padding-inline-start: 10px; padding-inline-end: 10px; }
  /* first / last VISIBLE column gets the card's inset when the real first / last one is hidden */
  .aiz-tbl tr > .aiz-hm:first-child + *, .aiz-tbl tr > .aiz-hm:first-child + .aiz-hm + * { padding-inline-start: 16px; }
  .aiz-tbl .aiz-ml { padding-inline-end: 16px; }
  .aiz-alarm { padding: 10px 16px; }
  .aiz-calls > .seg { margin: 0 16px; }
  .aiz-tbl .aiz-model { display: inline-block; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .aiz-jobs { table-layout: fixed; width: 100%; }
  .aiz-jobs th:first-child { width: 45%; }
  /* test lab, phones: duel status is the dot alone, target status dot sits before the result */
  .lab-scn { min-width: 0; }
  .lab-cst .lab-stw { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lab-cst .aiz-s { gap: 0; }
  th.lab-cst { font-size: 0; }
  .lab-mdot { display: inline-block; margin-block: 0 1px; margin-inline: 0 6px; vertical-align: middle; }
  .lab-acts > .btn-ghost:first-child { margin-inline-start: -14px; }
  .aiz-hm { display: none; }
  .aiz-mo { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
  .aiz-mo .aiz-model { font-size: 11.5px; color: var(--muted); }
  .aiz-mo.aiz-cut { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .aiz-jobs td:first-child { width: 45%; }
  .aiz-row { flex-wrap: wrap; }
  .aiz-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aiz-dl dd { margin-bottom: 8px; }
  .aiz-anc { grid-template-columns: 40px minmax(0, 1fr); }
  .aib-err { max-width: 100%; }
  .lab-cases .lab-detail > td { padding: 12px 10px 16px; }
  .lab-chk { grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 16px; }
  .lab-chk dd { margin-bottom: 0; }
}
/* Admin: Voice page (public/js/admin-voices.js, public/js/admin-heygen.js) – status dots, sections, simple tables */
.vst { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vst code { font-size: 12px; overflow-wrap: anywhere; }
.vst .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vst-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vst-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.vst-dot.ok { background: var(--ok); }
.vst-dot.warn { background: var(--gold); }
.vst-dot.bad { background: var(--danger); }
.vst-warnbox { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(244, 183, 64, .1); color: #ffe2a6; font-size: 14px; }
.vst-warnbox .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }
.vst-view { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.vst-pad { padding: 18px 20px; }
/* simple tables */
.vst-scroll { overflow-x: auto; }
.vst-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.vst-tbl th { text-align: start; padding: 10px 14px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.vst-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vst-tbl tbody tr:last-child td { border-bottom: 0; }
.vst-tbl th.num { text-align: end; }
.vst-tbl tr.cur td { background: rgba(255, 255, 255, .03); }
.vst-tbl td > b + .vst-st { margin-inline-start: 8px; font-size: 12.5px; color: var(--muted); }
.vst-cause { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.vst-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.vst-kv th { text-align: start; font-weight: 600; color: var(--muted); padding-block: 9px 9px; padding-inline: 0 12px; border-top: 1px solid var(--line); vertical-align: top; }
.vst-kv th small { display: block; font-weight: 400; color: var(--faint); font-size: 12.5px; }
.vst-kv td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: end; }
.vst-kv tr:first-child th, .vst-kv tr:first-child td { border-top: 0; }
.vst-kv td small { display: block; margin-top: 2px; }
.vst-err { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.vst-bar { position: relative; height: 6px; margin: 10px 0 12px; border-radius: 3px; background: var(--surface-3); }
.vst-bar i { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
.vst-bar.warn i { background: var(--gold); }
.vst-bar.bad i { background: var(--danger); }
.vst-bar b { position: absolute; inset-inline-start: 80%; top: -3px; bottom: -3px; width: 2px; background: var(--faint); }
.vst-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
/* the duel reveal's spacing */
.reveal .vs-row { padding: 12px 16px; }
@media (max-width: 640px) {
  .vst-pad { padding-inline-start: 16px; padding-inline-end: 16px; }
}

/* Mentor: topics picker, bigger portrait */
.mn-topics-btn { margin-inline-start: auto; align-self: center; display: inline-flex; align-items: center; gap: 10px; height: auto; padding: 9px 14px; text-align: start; }
.mn-topics-btn .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.mn-topics-btn span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mn-topics-btn small { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.mn-topics-btn b { font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mn-cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 600; }
.mn-cat:hover { background: var(--surface-3); }
.mn-cat:has(input:checked) { border-color: hsl(var(--h) 60% 60% / .7); background: hsl(var(--h) 45% 50% / .12); }
.mn-cat input { accent-color: hsl(var(--h) 70% 60%); flex: none; margin: 0; }
.mn-cat-ico .ico { width: 18px; height: 18px; color: hsl(var(--h) 70% 72%); display: block; }
.mn-cat > span:nth-of-type(2) { flex: 1; min-width: 0; }
.mn-cat-n { font-style: normal; font-size: 12px; color: var(--faint); font-weight: 600; }
.mn-cats-foot { justify-content: flex-end; margin-top: 16px; }
@media (max-width: 640px) {
  .mn-topics-btn { margin-inline-start: 0; width: 100%; }
  .mn-cats { grid-template-columns: minmax(0, 1fr); }
}

/* status icon top right in the camera (ready / not ready yet / not connected) */
.tile .tstat { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 3; }
.tile .tstat:empty { display: none; }
.tile .ts-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 11, 16, .72); }
.tile .ts-ico .ico, .tile .ts-ico svg { width: 15px; height: 15px; }
.tile .ts-ico.ok { color: var(--ok); box-shadow: inset 0 0 0 1.5px rgba(53, 194, 165, .55); }
.tile .ts-ico.wait { color: #f5b94a; box-shadow: inset 0 0 0 1.5px rgba(245, 185, 74, .5); }
.tile .ts-ico.off { color: #ff8d98; box-shadow: inset 0 0 0 1.5px rgba(255, 141, 152, .5); }
/* connection problems over the camera (duel.js drawLink) */
.tile .tlink { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: grid; }
.tile .tlink[hidden] { display: none; }
.tile .tlink.weak { place-items: start center; padding-top: 12px; }
.tile .tlink.lost { place-items: center; background: rgba(10, 11, 16, .62); backdrop-filter: blur(6px) grayscale(.6); -webkit-backdrop-filter: blur(6px) grayscale(.6); }
.tile .tl-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(10, 11, 16, .78); color: #f5b94a; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(245, 185, 74, .45); }
.tile .tl-pill .ico { width: 17px; height: 17px; animation: tl-blink 1.4s ease-in-out infinite; }
.tile .tl-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 20px; max-width: 86%; color: #fff; }
.tile .tl-card .tl-ico { width: 42px; height: 42px; color: #ff8d98; margin-bottom: 4px; animation: tl-blink 1.6s ease-in-out infinite; }
.tile .tl-card b { font-size: 17px; }
.tile .tl-card span { color: var(--muted, #a9adbd); font-size: 13.5px; }
.tile .tl-card em { font-style: normal; font-variant-numeric: tabular-nums; margin-top: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 141, 152, .14); color: #ff8d98; font-size: 13px; font-weight: 600; }
.tile .tl-card em:empty { display: none; }
@keyframes tl-blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tile .tl-pill .ico, .tile .tl-card .tl-ico { animation: none; } }
.tile .tname[hidden] { display: none; }

/* player card under the cameras: bigger picture, everything inside its height (name + flag, then Elo + club crest) */
.pbar-row .pbar > .av { width: 54px; height: 54px; border-radius: 10px; font-size: 21px; }
.pbar-row .pbar .who { height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pbar-row .pbar .name { font-size: 15.5px; line-height: 1.2; }
.pbar-row .pbar .meta { margin: 0; gap: 8px; flex-wrap: nowrap; }
.pbar-row .pb-elo { font-size: 14px; font-weight: 700; color: #c4c8da; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pbar-row .pb-elo .delta { font-size: 13px; margin-inline-start: 2px; }
.pbar-row .pb-crest { display: inline-grid; place-items: center; line-height: 0; }
.pbar-row .pb-crest .cbadge { width: 24px; height: 24px; }
.pbar-row .pb-crest:hover { filter: brightness(1.15); }
/* the timer in the centre stays subtle: no subtitle under it */
.phasebar.mid .ph-sub { display: none; }
/* except the calm hint of an open preparation (both players can talk) */
.phasebar.mid .ph-sub.ph-open { display: block; margin-top: 4px !important; }


/* Bot cards: locked philosophers are grey, the lock is just a gold icon (no badge); free ones stay in colour */
.bc-lock { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; top: 12px; inset-inline-end: 12px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); z-index: 2; }
.bc-lock .ico { width: 22px; height: 22px; }
.bot-card.locked .bc-art .av { filter: grayscale(1) brightness(.72) contrast(.95); }
.bot-card.locked .bc-art::after { content: ''; position: absolute; inset: 0; background: rgba(22, 24, 32, .28); pointer-events: none; }
.bot-card.locked .bc-name, .bot-card.locked .bc-body { color: var(--muted); }

/* Bots page: rank numeral without circle; bot popup: beaten mark under the close button */
.rank-num { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font-size: 30px; line-height: 1; min-width: 34px; text-align: center; }
@media (max-width: 640px) { .rank-num { width: auto; height: auto; font-size: 24px; min-width: 28px; } }
.modal.modal-bot { position: relative; }
.modal-bot .bs-beat { position: absolute; top: 58px; inset-inline-end: 16px; z-index: 2; }
.modal-bot .bs-beat .beat { width: 34px; height: 34px; }
.modal-bot .bs-beat .beat .ico { width: 18px; height: 18px; }

/* Duel: the category icon on the left without a tile (the name above the motion has no icon) */
.topic-banner .tb-ico { background: none; width: auto; height: auto; border-radius: 0; }
.topic-banner .tb-ico .ico { width: 34px; height: 34px; }
/* Bot popup: the beaten mark sits in the hero, centred between the name and the right edge, 2.5x larger */
.modal-bot .bs-hero .bs-beat { position: static; flex: 1; display: grid; place-items: center; align-self: center; min-width: 0; }
.modal-bot .bs-beat .beat { width: 85px; height: 85px; }
.modal-bot .bs-beat .beat .ico { width: 44px; height: 44px; }
@media (max-width: 640px) { .modal-bot .bs-beat .beat { width: 56px; height: 56px; } .modal-bot .bs-beat .beat .ico { width: 28px; height: 28px; } }
.modal-bot .bs-hero h2 { padding-inline-end: 0; }
.modal-bot .bs-hero .bs-beat { margin-inline-end: -28px; }
/* desktop: a long name (Gottfried Wilhelm Leibniz) wraps instead of pushing the mark out of the popup */
@media (min-width: 641px) {
  .modal-bot .bs-hero > div:not(.av) { min-width: 0; }
  .modal-bot .bs-hero .bs-beat { flex: 1 0 85px; }
}

/* Play Online before the search: only your own camera, large and centred, with quiet look pickers above and below */
.pbar[hidden] { display: none; }
.pv-solo { align-items: center; gap: 0; padding: 14px 0 16px; }
.pv-solo .pv-big { width: min(100%, 680px); padding: 28px 28px 38px; }
.pv-solo .pv-tile { aspect-ratio: 16 / 10; border-radius: 14px; }
.pv-solo .pv-tile .sp-cam { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.pv-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.pv-cover .av { width: 112px; height: 112px; border-radius: 50%; font-size: 44px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .35); }
.pv-pick { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 4px; width: min(100%, 300px); }
.pv-arr { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: none; color: var(--faint); border: 0; cursor: pointer; transition: color .15s, background .15s; }
.pv-arr:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.pv-arr:disabled { opacity: .3; cursor: default; }
.pv-arr .ico { width: 18px; height: 18px; }
.pv-pick-t { display: grid; justify-items: center; gap: 1px; min-width: 0; text-align: center; }
.pv-pick-t small { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.pv-pick-t b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-pick-t a { font-size: 13.5px; font-weight: 700; color: var(--gold); }
.pv-count { font-size: 11px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pv-solo .pv-big { padding: 22px 16px 34px; }
  .pv-solo .pv-tile { aspect-ratio: 4 / 3; }
  .pv-cover .av { width: 84px; height: 84px; font-size: 34px; }
}

/* Duel: whose turn it is next to the round title */
.turn-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.turn-tag.me { background: rgba(53, 194, 165, .16); color: var(--ok); }
.turn-tag.opp { background: var(--surface-3); color: var(--muted); }

/* Duel Autopsy: collapsible rounds */
.rd[hidden], .rd-body[hidden] { display: none; }
.rd-tgl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px -8px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background .15s; }
.rd-tgl:hover { background: var(--surface-2); }
.rd-tgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-tgl .rd-chev { width: 16px; height: 16px; margin-inline-start: auto; flex: none; color: var(--faint); transition: transform .2s, color .15s; }
.rd-tgl:hover .rd-chev { color: var(--text); }
.rd-tgl[aria-expanded="true"] .rd-chev { transform: rotate(180deg); }
.rd-top .rd-tgl + .lock-chip { margin-inline-start: 8px; }
.rd-body { display: flex; flex-direction: column; gap: 6px; animation: rdIn .18s ease; }
.rd:not([hidden]).rd-extra { animation: rdIn .18s ease; }
@keyframes rdIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.rd-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: color .15s, background .15s; }
.rd-more:hover { color: var(--text); background: var(--surface-2); }
.rd-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rd-more .rd-chev { width: 15px; height: 15px; transition: transform .2s; }
.rd-more[aria-expanded="true"] .rd-chev { transform: rotate(180deg); }

/* Duel Autopsy: round header keeps its chevron on the right when the title wraps */
.rd-tgl { flex-wrap: nowrap; }
.rd-h { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }

/* Camera off: the profile picture fills the whole camera tile */
.av-fill { position: absolute; inset: 0; z-index: 1; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); color: #fff; container-type: size; }
.av-fill > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.av-fill > svg:not(.ico):not(.av-glyph) { position: absolute; inset: 0; width: 100%; height: 100%; }
.av-fill.avf-letter { background: radial-gradient(120% 120% at 50% 30%, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 55%, #000)); }
.avf-initial { font-size: 120px; font-size: clamp(36px, 46cqh, 360px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0, 0, 0, .22); user-select: none; }
.av-fill.avf-empty { color: var(--faint); }
.av-fill.avf-empty .av-glyph { width: 34%; height: 34%; }
/* soft shading at the top and bottom so the tags, name and mic icons stay readable on any photo */
.av-fill::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(8, 9, 14, .38), rgba(8, 9, 14, 0) 26%, rgba(8, 9, 14, 0) 66%, rgba(8, 9, 14, .5)); }
.avf-note { position: absolute; left: 50%; bottom: 12px; z-index: 1; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 120px); padding: 4px 10px; border-radius: 999px; background: rgba(10, 11, 16, .66); color: #d8dbe6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.avf-note .ico { width: 14px; height: 14px; flex: none; }
@container (max-width: 300px) {
  .avf-note { padding: 5px; }
  .avf-note { font-size: 0; gap: 0; }
}
.tiles.team .avf-note { inset-inline-start: auto; inset-inline-end: 48px; bottom: 10px; transform: none; font-size: 0; gap: 0; padding: 5px; }
.pv-tile > .av-fill::after { background: linear-gradient(to bottom, rgba(8, 9, 14, 0) 60%, rgba(8, 9, 14, .28)); }

/* A philosopher's "camera" (ui.js botCam, avatarFill): the portrait fills the tile like a video call. The square
   portrait is sized by the tile's height (a little larger, so head and shoulders sit like a webcam shot) and centred;
   its own background colour (portraits/kit.js frame: hsl(hue 32% 30%)) continues over the whole tile with a soft
   vignette, so a wide tile shows the room around the figure and a tall one crops the sides. */
.av-fill.bot-cam { display: block; background: radial-gradient(70% 90% at 50% 40%, hsl(var(--bh, 250) 32% 34%), hsl(var(--bh, 250) 32% 30%) 55%, hsl(var(--bh, 250) 30% 20%)); }
.bot-cam .bc-face { position: absolute; top: -4%; left: 50%; height: 112%; aspect-ratio: 1; transform: translateX(-50%); }
.bot-cam .bc-face > svg { display: block; width: 100%; height: 100%; }
/* the portrait's own square background gives way to the tile's (same colour, no visible square edge) */
.bot-cam .bc-face > svg > rect:first-of-type { fill: transparent; }
.bot-cam::after { background: linear-gradient(to bottom, rgba(8, 9, 14, .3), rgba(8, 9, 14, 0) 22%, rgba(8, 9, 14, 0) 70%, rgba(8, 9, 14, .42)); }
/* the duel tile: the bot's voice lights the tile's ring (the mouth moves with it); status chips at the bottom */
.tile.sv-talking { box-shadow: 0 0 0 3px var(--ok); }
.bc-chips { position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%); width: max-content; max-width: calc(100% - 100px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.bc-chips:empty { display: none; }
.bc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px; border-radius: 13px; background: rgba(10, 11, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #e3e5ee; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center; text-wrap: balance; }
.bc-chip .ico { width: 14px; height: 14px; flex: none; color: var(--muted); }
.bc-chip.note { color: #ffd27a; }
.bc-chip.note .ico { color: #ffd27a; }
button.bc-chip { border: 0; font-family: inherit; cursor: default; }
.bc-chip .bc-short { display: none; }
/* phones: a long chip shows its short label; a tap opens the whole text */
@media (max-width: 560px) {
  .bc-chips { max-width: calc(100% - 92px); bottom: 9px; }
  .bc-chip { font-size: 12px; padding: 4px 10px; }
  .bc-chip.has-short { pointer-events: auto; cursor: pointer; }
  .bc-chip.has-short[aria-expanded="false"] .bc-long { display: none; }
  .bc-chip.has-short[aria-expanded="false"] .bc-short { display: inline; }
  .bc-chip.has-short[aria-expanded="true"] { border-radius: 12px; }
}

/* Duel bars: the badge showcase from the profile, centred between the name and the timer */
.pb-show { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pb-show:empty { flex: 1; }
.pb-medal { display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .12s; }
.pb-medal:hover { transform: scale(1.12); }
.pb-medal:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-show .medal.sm { width: 34px; height: 34px; }
.pb-show .medal.sm .ico { width: 17px; height: 17px; }
@media (max-width: 900px) { .pb-show { gap: 5px; } .pb-show .medal.sm { width: 26px; height: 26px; } .pb-show .medal.sm .ico { width: 13px; height: 13px; } }
@media (max-width: 600px) { .pb-show { display: none; } }
.pbar-row .pbar:has(.pb-show) .who { flex: 0 1 auto; }

/* Bots page: hint line under the title */
.bots-page .page-head { margin-bottom: 10px; }
.bots-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.bots-hint .ico { width: 18px; height: 18px; flex: none; color: var(--faint); }
/* Duel bars: smaller showcase badges, the player's name keeps priority (bot and online duels).
   The showcase only gets the space the name leaves; badges that do not fit wrap into a hidden second row,
   so they disappear from the last one on instead of covering the name (duel.js fitShowcases marks them aria-hidden,
   which hides them). The row is not clipped (no overflow: hidden): clipping cut the diamond glow into a dark plate
   behind the badge, so the badges look exactly like in the profile header.
   A name that does not fit on one line breaks onto a second one. */
.pbar-row .pbar .pb-show { flex: 1 1 0; min-width: 0; flex-wrap: wrap; align-content: flex-start; height: 34px; padding: 3px 2px; gap: 0 6px; }
.pbar-row .pbar .pb-show .medal.sm { width: 28px; height: 28px; }
.pbar-row .pbar .pb-show .medal.sm .ico { width: 14px; height: 14px; }
.pbar-row .pbar .name { flex-wrap: nowrap; min-width: 0; }
.pbar-row .pbar .name .pb-nm { min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pbar-row .pbar .pb-medal[aria-hidden] { visibility: hidden; }
.pbar-row .pbar .name .flag, .pbar-row .pbar .name img { flex: none; }
@media (max-width: 900px) {
  .pbar-row .pbar .pb-show { height: 28px; gap: 0 4px; }
  .pbar-row .pbar .pb-show .medal.sm { width: 22px; height: 22px; }
  .pbar-row .pbar .pb-show .medal.sm .ico { width: 11px; height: 11px; }
  .pbar-row .pbar .name { font-size: 14px; }
  /* narrow bars: a little less around the name so a long one still reads */
  .pbar-row { gap: 10px; padding-inline-start: 10px; padding-inline-end: 10px; }
  .pbar-row .pbar { gap: 8px; }
  .pbar-row .pbar > .av { width: 44px; height: 44px; font-size: 18px; }
}
/* only while the bars sit side by side; at 560px and below the timer spans the stacked row */
@media (max-width: 900px) and (min-width: 561px) {
  .phasebar.mid { width: 200px; }
}

/* Philosopher popup: one idea per view. Challenge: who claims what, your side, length, one button.
   Practice is a second view (any topic, any side). */
.modal-bp { max-width: 460px; }
.bp { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 22px; }
.modal-bp .modal-close { z-index: 3; color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .2); }
.modal-bp .modal-close:hover { background: rgba(0, 0, 0, .38); color: #fff; }
/* the header: the portrait first, on a soft glow in the philosopher's colour (--bh) that bleeds to the dialog edges */
.bp-head { position: relative; display: flex; align-items: center; gap: 18px; margin: -26px -26px -2px; padding: 28px 58px 22px 26px; border-radius: 16px 16px 0 0; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--bh) 60% 45% / .34), transparent 60%), linear-gradient(180deg, hsl(var(--bh) 30% 22% / .55), transparent); }
.bp-port { position: relative; flex: none; }
.bp-port::before { content: ''; position: absolute; inset: -10px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, hsl(var(--bh) 80% 60% / .45), transparent); }
.bp-head .av { width: 92px; height: 92px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 3px hsl(var(--bh) 55% 62% / .55), 0 12px 26px rgba(0, 0, 0, .4); }
.bp-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-era .nw { white-space: nowrap; }
.bp-era { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--bh) 70% 76%); }
.bp-who h2 { margin: 0; font-size: 26px; line-height: 1.12; font-weight: 900; letter-spacing: -.01em; overflow-wrap: break-word; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.bp-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-weight: 700; color: var(--text); }
.bp-elo { font-variant-numeric: tabular-nums; }
.bp-chip .ico { width: 14px; height: 14px; }
.bp-won { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(53, 194, 165, .15); color: var(--ok); font-size: 12px; font-weight: 800; }
.bp-won .ico { width: 13px; height: 13px; }
.bp-view { display: flex; flex-direction: column; gap: 14px; }
.bp-view[hidden] { display: none; }
.bp-claim { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 14px; background: var(--surface-2); }
.bp-kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.bp-motion { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 800; color: var(--text); overflow-wrap: break-word; }
.bp-you { font-size: 14px; font-weight: 700; }
.bp-you.pro { color: #8cc6ff; }
.bp-you.contra { color: #ffa58f; }
.bp-fmt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.bp-fmt button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 9px; color: var(--muted); }
.bp-fmt button b { font-size: 14px; font-weight: 700; }
.bp-fmt button small { font-size: 12px; color: var(--faint); }
/* each length with its own icon (data.js FORMATS: stopwatch, hourglass, long scroll), above the name */
.bp-fmt button { justify-content: flex-start; }
.bp-fmt .bp-fi { width: 22px; height: 22px; margin-bottom: 3px; opacity: .85; transition: opacity .15s, transform .15s; }
.bp-fmt button.on .bp-fi, .bp-fmt button:hover .bp-fi { opacity: 1; }
.bp-fmt button.on .bp-fi { transform: scale(1.08); }
.bp-fmt button:hover { color: var(--text); }
.bp-fmt button.on { background: var(--surface-3); color: var(--text); }
.bp-fmt button.on small { color: var(--muted); }
/* members-only format in a bot picker (play.js memberLock): a small gold lock under the length */
.fmt-mem { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: linear-gradient(180deg, #ffd166, var(--gold)); color: #2a1d00; font-size: 11px; font-weight: 900; letter-spacing: .03em; line-height: 1.45; white-space: nowrap; box-shadow: 0 2px 8px rgba(244, 183, 64, .3); }
.fmt-mem .ico { width: 12px; height: 12px; }
/* the locked length in the philosopher popup: gold-tinted, so it reads as a members' option at a glance */
.bp-fmt button[data-upsell] { background: rgba(244, 183, 64, .07); box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .38); }
.bp-fmt button[data-upsell] b { color: #ffd98a; }
.bp-fmt button[data-upsell]:hover { background: rgba(244, 183, 64, .14); }
.chip .fmt-mem .ico { width: 11px; height: 11px; }
.bp-note { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.bp-back { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px; }
.bp-back:hover { color: var(--text); }
.bp-back .ico { width: 16px; height: 16px; }
/* "Practice on another topic": a full lobby row (.mode-row) under the challenge, not a small link */
.bp-switch { width: 100%; min-height: 56px; padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* the topic of a practice duel: catalogue or own motion (members; free players see a lock and the membership link) */
.bp-tmode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; }
.bp-tmode .bp-lock { width: 14px; height: 14px; color: var(--gold); }
.bp-tmode button[data-upsell] { color: #ffd98a; }
.bp-own { display: flex; flex-direction: column; gap: 8px; }
.bp-own-text { resize: vertical; min-height: 64px; }
.bp-own-note { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; color: var(--muted); }
.bp-own-note:hover { color: var(--text); }
.bp-own-note .ico { width: 16px; height: 16px; flex: none; }
.bp-back { align-self: flex-start; margin-block: -4px 0; margin-inline: -6px 0; }
.bp-topic:disabled { cursor: default; opacity: 1; }
.bp-field { display: flex; flex-direction: column; gap: 8px; }
.bp-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.bp .ai-limit { margin: 0; }
@media (max-width: 480px) {
  .bp { padding: 22px 18px 18px; gap: 16px; }
  .bp-head { margin: -22px -18px -2px; padding: 24px 54px 18px 18px; gap: 14px; }
  .bp-head .av { width: 80px; height: 80px; border-radius: 19px; }
  .bp-who h2 { font-size: 23px; }
  .bp-motion { font-size: 18px; }
  .bp-claim { padding: 16px; }
}

/* Bot cards: the main topic's category icon top right of the info area, the beaten check bottom right */
.bot-card .bc-info { position: relative; padding-inline-end: 48px; }
.bc-topic { position: absolute; top: 12px; inset-inline-end: 14px; width: 26px; height: 26px; display: grid; place-items: center; color: hsl(var(--ch) 70% 72%); }
.bc-topic .ico { width: 22px; height: 22px; }
.bc-beat { position: absolute; inset-inline-end: 13px; bottom: 13px; display: flex; }
.bot-card.locked .bc-topic { filter: grayscale(1); opacity: .55; }
@media (max-width: 640px) {
  .bot-card .bc-info { padding-inline-end: 38px; }
  .bc-topic { top: 9px; inset-inline-end: 10px; width: 22px; height: 22px; }
  .bc-topic .ico { width: 18px; height: 18px; }
  .bc-beat { inset-inline-end: 10px; bottom: 10px; }
}

/* Trophies: metal cups from tournament podium places; one is placed in the profile header next to the badges,
   2.5x the size of a header badge (36px -> 90px), an empty place shows the dashed outline */
.trophy { display: block; width: 100%; height: 100%; }
.trophy.blank { color: #3d4258; }
.ph-side-top { overflow: visible; }
.ph-trophy { flex: none; display: flex; align-self: flex-start; height: 40px; overflow: visible; }
.ph-trophy .tr-slot { align-self: flex-start; }
.tr-slot { width: 72px; height: 90px; padding: 0; border-radius: 12px; display: grid; place-items: center; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); transition: transform .15s; }
.tr-slot:hover { transform: translateY(-2px); }
.tr-slot.blank { filter: none; }
.tr-slot.blank:hover .trophy.blank { color: var(--accent); }
.tr-card { margin-top: 24px; }
.tr-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.tr-cell { border: 0; font: inherit; cursor: pointer; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 12px; background: var(--surface-2); text-align: center; color: var(--text); text-decoration: none; transition: background .15s; }
.tr-cell:hover { background: var(--surface-3); }
.tr-cell .trophy { width: 64px; height: 76px; margin-bottom: 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.tr-cell b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.tr-cell small { font-size: 12px; color: var(--muted); }
.tr-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px 24px; text-align: center; }
.tr-empty .trophy { width: 56px; height: 66px; }
.tr-empty p { margin: 0; max-width: 340px; }
.tr-pick h2 { margin: 0 0 16px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tr-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.tr-opt.on { box-shadow: inset 0 0 0 2px var(--accent); }
.tr-opt .trophy { width: 52px; height: 62px; margin-bottom: 4px; }
.tr-opt b { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.tr-opt small { font-size: 12px; color: var(--muted); }
#ptab .tr-card { margin-top: 0; }
@media (max-width: 900px) { .ph-trophy { order: 4; height: auto; } }

/* Admin -> Voices -> Voice (HeyGen): language probe chips (public/js/admin-heygen.js) */
.hg { display: flex; flex-direction: column; gap: 28px; }
.hg-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 12px; }
.hg-lang { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; }
.hg-lang b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hg .vst-kv td { overflow-wrap: anywhere; min-width: 0; }
.hg .vst-kv .vst-st { white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
.hg .vst-kv { table-layout: fixed; }
.hg .vst-kv th { width: 38%; }
.hg-model { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.hg-model .input { width: 300px; max-width: 100%; min-width: 0; height: 36px; }
.hg-time { white-space: nowrap; }

/* ---------- Shop: the daily issue. Header, contents line, spreads (featured piece + two), type specimen, Drachma counter, collection vitrine ---------- */
.s3 { max-width: 1080px; }
.s3-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.s3-head h1 { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.s3-wallet { display: flex; align-items: center; gap: 12px; }
/* ==== Shop head: wrap on narrow phones (review fix) ==== */
/* a long "Get Drachmas" label (French: "Obtenir des drachmes") drops below the title instead of scrolling the page */
@media (max-width: 480px) { .s3-head { flex-wrap: wrap; row-gap: 8px; } .s3-wallet { min-width: 0; } }
/* ==== end Shop head ==== */
.s3-bal .coins { font-size: 18px; font-weight: 800; }
.s3-bal .coins .ico { width: 22px; height: 22px; }
.s3-today { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.s3-timer { display: inline-flex; align-items: center; gap: 6px; }
.s3-timer .ico { width: 16px; height: 16px; color: var(--faint); }
.s3-timer b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 84px; }

/* rarity colour, one token per item */
.ed .r-common, .ed-sd.r-common { --rc: #9aa1b5; }
.ed .r-rare, .ed-sd.r-rare { --rc: #7cc2ff; }
.ed .r-epic, .ed-sd.r-epic { --rc: #c3a8ff; }
.ed .r-legendary, .ed-sd.r-legendary { --rc: #ffd27a; }

/* contents line: sections on the left, your collection on the right */
.ed-toc { display: flex; align-items: center; gap: 28px; margin-top: 26px; min-height: 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ed-toc-nav { display: flex; gap: 26px; }
.ed-toc-nav a { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .15s; }
.ed-toc-nav a:hover { color: #fff; }
.ed-bar { display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.ed-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--accent-hi); }

/* section heading: kicker number, title with a quiet "i", one-line deck, a contextual link on the right */
.ed-sec { margin-top: 72px; scroll-margin-top: 24px; }
.ed-hd { display: flex; align-items: flex-end; gap: 24px; padding-bottom: 18px; }
.ed-hd-t { min-width: 0; }
.ed-kick { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--faint); font-variant-numeric: tabular-nums; }
.ed-kick::after { content: ''; width: 28px; height: 1px; background: #4a5068; }
.ed-hd h2 { display: flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.ed-i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; padding: 0 0 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #4a5068; color: var(--muted); font: italic 700 13px/1 Georgia, 'Times New Roman', serif; letter-spacing: 0; transform: translateY(2px); transition: background .15s, color .15s, box-shadow .15s; }
.ed-i:hover, .ed-i:focus-visible { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 var(--accent-edge); }
.ed-go { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; flex: none; padding-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .15s; }
.ed-go .ico { width: 18px; height: 18px; }
.ed-go .chev { width: 15px; height: 15px; color: var(--faint); margin-inline-start: -3px; transition: transform .15s; }
.ed-go:hover { color: #fff; }
.ed-go:hover .chev { transform: translateX(2px); }

/* spread: featured piece + two smaller ones, hairlines instead of boxes */
.ed-spread { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.ed-spread.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr); }
.ed-feat { padding-block: 30px 34px; padding-inline: 0 44px; border-inline-end: 1px solid var(--line); }
.ed-spread.flip .ed-feat { order: 2; padding-block: 30px 34px; padding-inline: 44px 0; border-inline-end: 0; border-inline-start: 1px solid var(--line); }
.ed-side { display: grid; grid-template-rows: 1fr 1fr; }
.ed-side > .ed-it { padding-block: 22px 24px; padding-inline: 40px 0; }
.ed-spread.flip .ed-side > .ed-it { padding-block: 22px 24px; padding-inline: 0 40px; }
.ed-side > .ed-it + .ed-it { border-top: 1px solid var(--line); }
.ed-it { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; width: 100%; text-align: start; color: inherit; cursor: pointer; outline: none; }
.ed-it:focus-visible .ed-name, .ed-row:focus-visible .ed-name { text-decoration: underline; text-underline-offset: 3px; }

/* the stage: no box. A faint rarity-coloured light (always faint behind the featured piece) grows while you hold the item */
.ed-stage { position: relative; display: grid; place-items: center; height: 196px; perspective: 900px; }
.ed-feat .ed-stage { height: 400px; }
.ed-stage::before { content: ''; position: absolute; left: 50%; top: 52%; width: 92%; height: 84%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 26%, transparent), transparent); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.ed-feat .ed-stage::before { width: 104%; height: 96%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 20%, transparent), color-mix(in srgb, var(--rc) 6%, transparent) 60%, transparent); opacity: .6; }
.ed-it:hover .ed-stage::before, .ed-it.held .ed-stage::before { opacity: 1; }
/* a warm lamp above the featured piece, lit only while you hold it */
.ed-lamp { position: absolute; left: 50%; top: 0; width: 80%; height: 78%; transform: translateX(-50%); filter: blur(14px); clip-path: inset(-16px -60px -60px -60px); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.ed-lamp::before { content: ''; position: absolute; inset: 0; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(255, 232, 190, .13), rgba(255, 232, 190, .04) 55%, transparent 92%); }
.ed-it:hover .ed-lamp, .ed-it.held .ed-lamp { opacity: 1; }
.ed-obj { position: relative; z-index: 1; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; --gx: 50%; --gy: 30%; }
.ed-obj > .cf, .ed-obj > .sp-cam { width: 236px; margin: 0; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); }
.ed-feat .ed-obj > .cf, .ed-feat .ed-obj > .sp-cam { width: 420px; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5)); }
.ed-obj > .sp-cam { border-radius: 12px; }
.ed-obj .cf .sp-cam { width: 100%; }
.ed-obj > .cf.frame-owl { margin-top: 0; }
.ed-stage:has(.frame-owl) { padding-top: 26px; }
.ed-glare { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .32), transparent 55%); mix-blend-mode: soft-light; z-index: 5; }
/* floor shadow: moves against the tilt */
.ed-floor { position: absolute; left: 50%; bottom: 4px; width: 62%; height: 16px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); opacity: .6; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; pointer-events: none; }
.ed-feat .ed-floor { bottom: 2px; height: 22px; }
.ed-it.held .ed-obj { transition: transform .1s linear; }
.ed-it.held .ed-glare { opacity: 1; }
.ed-it.held .ed-floor { opacity: .4; transition: transform .1s linear, opacity .4s; }

/* caption: rarity overline, name, price or Owned right-aligned on the same baseline */
.ed-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; margin-top: 14px; }
.ed-cap-t { display: flex; flex-direction: column; min-width: 0; }
.ed-rar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin-bottom: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rc); }
.ed-rar::before { content: ''; width: 14px; height: 2px; border-radius: 1px; background: var(--rc); }
.ed-eye { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rc); }
.ed-eye > i { width: 7px; height: 7px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 18%, transparent), 0 0 10px var(--rc); }
.ed-name { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-price { justify-self: end; padding-bottom: 1px; }
.ed-price .coins { font-size: 16px; }
.ed-price .coins .ico { width: 18px; height: 18px; }
.ed-own { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; color: var(--ok); white-space: nowrap; }
.ed-own .ico { width: 15px; height: 15px; }
.ed-it:hover .ed-name, .ed-row:hover .ed-name { color: #fff; }
.ed-feat .ed-cap { margin-top: 18px; }
.ed-feat .ed-name { font-size: 26px; font-weight: 900; letter-spacing: -.01em; white-space: normal; }
.ed-feat .ed-price .coins { font-size: 22px; gap: 7px; }
.ed-feat .ed-price .coins .ico { width: 24px; height: 24px; }
.ed-feat .ed-own { font-size: 16px; }

/* name effects: a type specimen sheet – your name large in each effect, a nameplate shows it in use */
.ed-spec { border-top: 1px solid var(--line); }
.ed-row { display: grid; grid-template-columns: minmax(0, 1fr) 236px minmax(180px, 240px) 104px; align-items: center; column-gap: 28px; width: 100%; min-height: 88px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: start; color: inherit; cursor: pointer; outline: none; }
.ed-type { min-width: 0; }
.ed-type .nx-stage { display: block; width: auto; height: auto; min-height: 0; padding: 6px 0; text-align: start; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; overflow-wrap: normal; transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ed-type.sz-m .nx-stage { font-size: 38px; }
.ed-type.sz-s .nx-stage { font-size: 32px; }
.ed-type.sz-xs .nx-stage { font-size: 26px; }
.ed-row:hover .ed-type .nx-stage { transform: scale(1.04); }
.ed-inuse { justify-self: end; min-width: 0; max-width: 100%; }
/* long names: no nameplate, the specimen gets the room */
.ed-row.np { grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) 104px; }
.ed-row.np .ed-inuse { display: none; }
.ed-plate { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; height: 40px; padding-block: 0 0; padding-inline: 5px 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ed-plate .av { width: 30px; height: 30px; border-radius: 50%; font-size: 13px; }
.ed-plate .nx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 900; }
.ed-plate small { flex: none; font-size: 12.5px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.ed-row .ed-cap { display: block; margin: 0; min-width: 0; }
.ed-row .ed-price { justify-self: end; }

/* Drachmas: the band of the four bundle cards (the cards themselves: "Drachma packs 2D" further down) */
.ed-band { position: relative; border-radius: var(--r); transition: box-shadow .5s; }
.ed-band.flash { animation: ed-flash 1.5s ease-out; }
@keyframes ed-flash { 0% { box-shadow: inset 0 0 0 1px #232634; } 25% { box-shadow: inset 0 0 0 2px rgba(244, 183, 64, .75), 0 0 34px rgba(244, 183, 64, .18); } 100% { box-shadow: inset 0 0 0 1px #232634; } }
.ed-counter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* closing element: a small vitrine with your collection. Each miniature stands on the shelf's top edge
   (the case's bottom padding is the shelf); groundMinis() lifts frames whose ornaments hang below the frame */
.ed-exit { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.ed-exit .ed-go { margin-inline-start: 0; }
.ed-vit { display: flex; align-items: center; gap: 22px; min-width: 0; color: inherit; }
.ed-case { position: relative; display: flex; align-items: flex-end; gap: 14px; height: 88px; padding: 0 20px 8px; flex: none; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 60%), radial-gradient(60% 90% at 50% 0%, rgba(255, 238, 205, .08), transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ed-case::after { content: ''; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; height: 8px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #3b4056, #2a2e41); }
.ed-mini { position: relative; z-index: 1; width: 62px; height: 47px; flex: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
.ed-mini > .ed-mz { position: absolute; left: 0; bottom: 0; width: 240px; transform: scale(.258); transform-origin: 0 100%; }
.ed-mini > .ed-mz > .cf, .ed-mini > .ed-mz > .sp-cam { width: 240px; margin: 0; }
.ed-mini .cf.frame-owl { margin-top: 0; }
.ed-vit:hover .ed-mini { transform: translateY(-2px); }
.ed-more { position: relative; z-index: 1; align-self: center; margin-bottom: -6px; font-size: 13px; font-weight: 800; color: var(--faint); white-space: nowrap; }
.ed-ct { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-ct b { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; }
.ed-ct b .ico { width: 16px; height: 16px; color: var(--faint); transition: transform .15s, color .15s; }
.ed-vit:hover .ed-ct b .ico { transform: translateX(3px); color: #fff; }
.ed-ct small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ed-ct .ed-bar { width: 160px; margin-top: 4px; }

/* popups */
.ed-info { padding: 28px 28px 26px; }
.ed-info h2 { margin-block: 0 14px; margin-inline: 0 40px; font-size: 22px; font-weight: 900; }
.ed-info ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ed-info li { position: relative; padding-inline-start: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ed-info li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 2px; border-radius: 1px; background: var(--accent-hi); }
.ed-sd .ed-eye { margin-bottom: 2px; }
.ed-sd .sd-art .nx-stage { font-size: 52px; }
.sd-plate { margin-top: 8px; }
.sd-owned { margin-top: 6px; }
.sd-cost { display: inline-flex; margin-inline-start: 4px; padding-inline-start: 12px; border-inline-start: 1px solid rgba(42, 29, 0, .25); }
.sd-cost .coins .ico { width: 20px; height: 20px; }
.sd-need { margin: 4px 0 0; font-size: 13.5px; color: var(--faint); }
.sd-need a { color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sd-need a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { .ed-obj, .ed-floor, .ed-type .nx-stage, .ed-mini { transition: none; } .ed-band.flash { animation: none; } }

/* the nameplate needs room next to the specimen */
@media (max-width: 1299px) {
  .ed-row, .ed-row.np { grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) 104px; }
  .ed-inuse { display: none; }
}
/* top bar is sticky below 900px: section jumps stop below it */
@media (max-width: 899px) { .ed-sec { scroll-margin-top: 80px; } }
/* tablet */
@media (max-width: 1100px) {
  .ed-feat .ed-obj > .cf, .ed-feat .ed-obj > .sp-cam { width: 340px; }
  .ed-feat .ed-stage { height: 340px; }
  .ed-obj > .cf, .ed-obj > .sp-cam { width: 196px; }
  .ed-row, .ed-row.np { grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) 96px; column-gap: 22px; }
  .ed-type .nx-stage { font-size: 38px; }
  .ed-type.sz-m .nx-stage { font-size: 33px; }
  .ed-type.sz-s .nx-stage { font-size: 28px; }
  .ed-type.sz-xs .nx-stage { font-size: 23px; }
}
@media (max-width: 860px) {
  .ed-counter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
/* phone */
@media (max-width: 700px) {
  .s3-head h1 { font-size: 28px; }
  .ed-toc { flex-direction: column; align-items: stretch; gap: 0; margin-top: 20px; border-top: 0; }
  .ed-toc-nav { gap: 8px; margin: 0 -16px; padding: 4px 16px 14px; overflow-x: auto; scrollbar-width: none; }
  .ed-toc-nav::-webkit-scrollbar { display: none; }
  .ed-toc-nav a { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface); font-size: 13.5px; }
  .ed-sec { margin-top: 52px; }
  .ed-hd { flex-wrap: wrap; align-items: flex-start; gap: 10px; padding-bottom: 14px; }
  .ed-hd h2 { font-size: 26px; }
  .ed-go { margin-inline-start: 0; font-size: 13.5px; }
  .ed-spread, .ed-spread.flip { grid-template-columns: minmax(0, 1fr); }
  .ed-feat, .ed-spread.flip .ed-feat { order: 0; padding: 22px 0 24px; border: 0; border-bottom: 1px solid var(--line); }
  .ed-feat .ed-stage { height: 250px; }
  .ed-feat .ed-obj > .cf, .ed-feat .ed-obj > .sp-cam { width: min(300px, 82vw); }
  .ed-feat .ed-name { font-size: 22px; }
  .ed-side { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ed-side > .ed-it, .ed-spread.flip .ed-side > .ed-it { padding: 18px 0 20px; }
  .ed-side > .ed-it + .ed-it { border-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
  .ed-side > .ed-it:first-child { padding-inline-end: 14px; }
  .ed-side .ed-stage { height: 128px; }
  .ed-side .ed-stage:has(.frame-owl) { padding-top: 14px; }
  .ed-side .ed-obj > .cf, .ed-side .ed-obj > .sp-cam { width: 132px; }
  .ed-side .ed-cap { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .ed-side .ed-price { justify-self: start; }
  .ed-side .ed-name { font-size: 15px; }
  /* a narrow side card: the Limited Edition / New label wraps under the rarity instead of running into the next card */
  .ed-side .ed-rar .lim-badge, .ed-side .ed-rar .new-badge { margin-inline-start: 0; max-width: 100%; overflow: hidden; }
  .ed-row, .ed-row.np { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'type type' 'cap price'; row-gap: 6px; min-height: 0; padding: 18px 0; }
  .ed-type { grid-area: type; }
  .ed-row .ed-cap { grid-area: cap; }
  .ed-row .ed-price { grid-area: price; align-self: end; }
  .ed-type .nx-stage { font-size: 34px; }
  .ed-type.sz-m .nx-stage { font-size: 29px; }
  .ed-type.sz-s .nx-stage { font-size: 24px; }
  .ed-type.sz-xs .nx-stage { font-size: 21px; }
  .ed-exit { margin-top: 48px; }
  .ed-vit { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 420px) { .ed-case { gap: 9px; padding: 0 12px 8px; } .ed-mini { width: 54px; height: 41px; } .ed-mini > .ed-mz { transform: scale(.225); } }

/* Bot voices unavailable (HeyGen down or switched off): a calm note on the bots page, the bot popup, the mentor duel
   form and the Mentor's Listen buttons (public/js/voice.js voiceDownHtml) */
.voice-down { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm, 10px); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.45; }
.voice-down-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--gold); }
.bots-voice-down { margin: 0 0 18px; }
.bot-voice-down { margin: 14px 0; }
.mn-voice-down { margin: 10px 0; }
.bots-page.voice-off .bot-card .bc-art { opacity: .78; }
.mn-listen:disabled, .tip-listen:disabled { opacity: .5; cursor: not-allowed; }

/* Admin -> Voice: the control page (public/js/admin-heygen.js) */
.hg-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.hg-off { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.hg-assign .hg-pick { width: 100%; min-width: 220px; max-width: 420px; height: 34px; font-size: 13px; }
.hg-assign tr.hg-dup td { background: rgba(255, 107, 74, .08); }
.hg-sub { font-size: 14px; font-weight: 700; padding: 12px 14px 4px; }
.hg-fill { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hg-fill p { margin: 0; }
@media (max-width: 640px) {
  .hg-assign .hg-pick { min-width: 160px; }
}
.hg-act { display: flex; gap: 6px; align-items: center; }

/* ---------- Languages: scripts, fonts and language pickers (i18n.js sets <html lang dir data-script>) ---------- */
/* Figtree stays for Latin; i18n.js adds one Google Fonts stylesheet for the script of the UI language. */
html[data-script="cyrillic"], html[data-script="greek"] { --font: 'Figtree', 'Noto Sans', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif; }
html[data-script="vietnamese"] { --font: 'Noto Sans', 'Figtree', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif; }
html[data-script="arabic"] { --font: 'Figtree', 'Noto Sans Arabic', -apple-system, system-ui, 'Segoe UI', Tahoma, Arial, sans-serif; }
html[data-script="hebrew"] { --font: 'Figtree', 'Noto Sans Hebrew', -apple-system, system-ui, 'Segoe UI', Arial, sans-serif; }
html[data-script="devanagari"] { --font: 'Figtree', 'Noto Sans Devanagari', -apple-system, system-ui, 'Segoe UI', sans-serif; }
html[data-script="tamil"] { --font: 'Figtree', 'Noto Sans Tamil', -apple-system, system-ui, 'Segoe UI', sans-serif; }
html[data-script="thai"] { --font: 'Figtree', 'Noto Sans Thai', -apple-system, system-ui, 'Segoe UI', Tahoma, sans-serif; }
html[data-script="cjk-jp"] { --font: 'Figtree', 'Noto Sans JP', -apple-system, system-ui, 'Hiragino Sans', 'Yu Gothic', sans-serif; }
html[data-script="cjk-kr"] { --font: 'Figtree', 'Noto Sans KR', -apple-system, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
html[data-script="cjk-sc"] { --font: 'Figtree', 'Noto Sans SC', -apple-system, system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
/* Thai, Devanagari and Tamil stack marks above and below the line: more line height */
body:lang(th), body:lang(hi), body:lang(ta) { line-height: 1.75; }
:lang(th) :is(h1, h2, h3, h4), :lang(hi) :is(h1, h2, h3, h4), :lang(ta) :is(h1, h2, h3, h4) { line-height: 1.45; }

/* Duel language picker (lang-ui.js duelLangSelect) */
.dlang { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--muted); font-size: 13px; font-weight: 700; }
.dlang .ico { width: 18px; height: 18px; color: var(--faint); }
.dlang .dlang-sel { width: auto; max-width: 60%; height: 36px; margin-inline-start: auto; padding: 0 10px; font-size: 14px; }
.bp-lang { margin: 0; }
.bp-lang .dlang { min-height: 36px; }
.mn-lang { margin: -4px 0 18px; }
.mn-lang .dlang { justify-content: flex-end; }
.mn-lang .dlang .dlang-sel { margin-inline-start: 0; }
.set-guest-lang { margin-bottom: 16px; }
.set-guest-data { margin-top: 16px; }
.voice-busy { margin: 8px 0 0; }

/* ---------- Right to left (i18n.js sets <html dir="rtl"> for ar, fa, he) ----------
   Layout above uses logical properties (inline-start/end), so it mirrors by itself. These rules cover what
   logical properties cannot: transforms, shadows, gradients and icons that point in a direction.
   :where() keeps the specificity of the LTR rule, so state rules (.open) still win. */
@media (min-width: 900px) {
  :where([dir="rtl"]) .flyout { box-shadow: -12px 0 30px rgba(0,0,0,.35); }
}
@media (max-width: 899px) {
  /* the phone drawer slides in from the right edge */
  :where([dir="rtl"]) .bdrawer { transform: translateX(104%); }
  [dir="rtl"] .bd-link.on { box-shadow: inset -3px 0 0 var(--accent-hi); }
}
:where([dir="rtl"]) .switch input:checked + span::after { transform: translateX(-18px); }
/* Direction icons (ui.js chevLeft, chevRight, send, logout) point the other way */
:where([dir="rtl"]) svg:has(> path[d="M9 6l6 6-6 6"]),
:where([dir="rtl"]) svg:has(> path[d="M15 6l-6 6 6 6"]),
:where([dir="rtl"]) svg:has(> path[d="M3.5 11.2 20 4l-7.2 16.5-2.3-7z"]),
:where([dir="rtl"]) svg:has(> path[d="M14 4h5v16h-5M10 8l-4 4 4 4M6 12h10"]) { transform: scaleX(-1); }
[dir="rtl"] .ed-go:hover .chev { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .ed-vit:hover .ed-ct b .ico { transform: scaleX(-1) translateX(3px); }
:where([dir="rtl"]) :is(.time-row, .ch-body) select { background-position: left 8px center; }
/* Colour washes that fade from the start edge */
:where([dir="rtl"]) .next-card { background: linear-gradient(270deg, rgba(53, 194, 165, .12), var(--surface) 60%); }
:where([dir="rtl"]) .cw-focus { background: linear-gradient(270deg, rgba(239, 77, 90, .08), transparent 70%); }
:where([dir="rtl"]) .chal-card { background: linear-gradient(270deg, rgba(123, 92, 255, .16), var(--surface-2) 70%); }
:where([dir="rtl"]) .t-me.hot { background: linear-gradient(270deg, rgba(123, 92, 255, .18), var(--surface) 70%); }
:where([dir="rtl"]) .lg-hero { background: linear-gradient(270deg, color-mix(in srgb, var(--lc) 16%, transparent), var(--surface) 65%); }
/* Arabic, Persian and Hebrew have no letter case, and tracking breaks joined letters */
:lang(ar), :lang(ar)::before, :lang(ar)::after,
:lang(fa), :lang(fa)::before, :lang(fa)::after,
:lang(he), :lang(he)::before, :lang(he)::after { letter-spacing: 0 !important; text-transform: none !important; }

/* Play Online: duel language, camera and microphone in one row (icons only for camera and microphone) */
.dev-row { display: flex; gap: 8px; margin-top: 14px; }
.dev-slot { display: contents; }
.dev-cell { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 48px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.dev-cell .ico { width: 20px; height: 20px; flex: none; }
.dev-lang { flex: 1; cursor: pointer; text-align: start; }
.dev-lang:hover, .dev-lang.dd-open { background: var(--surface-3); color: var(--text); }
.dev-lang .ico { color: var(--faint); }
.dev-lang .dev-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.dev-chev { width: 14px !important; height: 14px !important; color: var(--muted); transition: transform .15s; }
.dd-open .dev-chev { transform: rotate(180deg); }
.dev-ico { flex: none; padding: 0; gap: 0; overflow: hidden; }
.dev-tg { display: grid; place-items: center; width: 52px; height: 100%; color: inherit; cursor: pointer; }
.dev-tg:hover, .dev-more:hover, .dev-more.dd-open { background: var(--surface-3); color: var(--text); }
.dev-more { display: grid; place-items: center; width: 26px; height: 100%; margin-inline-start: -4px; color: var(--muted); cursor: pointer; }
.dev-ico .dev-tg .ico { width: 21px; height: 21px; }
.dev-ico.on { color: var(--text); }
.dev-ico.on .dev-tg .ico { color: var(--ok); }
.dev-ico.bad .dev-tg .ico { color: var(--danger); }
.dev-row + #micstate:not(:empty) { margin-top: 10px; }

/* Our own dropdown menu (dropdown.js) */
.ddm { position: fixed; z-index: 90; max-height: min(360px, calc(100vh - 16px)); max-width: calc(100vw - 16px); overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--bg-fly); box-shadow: 0 16px 44px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line); animation: ddm-in .12s ease-out; }
@keyframes ddm-in { from { opacity: 0; transform: translateY(-4px); } }
.ddm-title { padding: 6px 10px 6px; color: var(--faint); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ddm-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 8px; text-align: start; color: var(--text); }
.ddm-item:hover, .ddm-item:focus-visible { background: var(--surface-2); outline: none; }
.ddm-item.on { background: var(--accent-soft); }
.ddm-item.danger, .ddm-item.danger .ico { color: #ff8d98; }
.ddm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ddm-t b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddm-t small { color: var(--faint); font-size: 12px; }
.ddm-check { width: 16px; height: 16px; color: var(--accent-hi); flex: none; }

/* Duel notes: button at the left of the controls, floating window with a small text toolbar */
.dn-btn.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.dn-btn.has:not(.on) { position: relative; }
.dn-btn.has:not(.on)::after { content: ''; position: absolute; top: 5px; inset-inline-end: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); }
.dnotes { position: fixed; z-index: 70; display: flex; flex-direction: column; width: min(380px, calc(100vw - 16px)); height: min(420px, calc(100vh - 16px)); min-height: 220px; border-radius: var(--r); background: var(--bg-fly); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); resize: both; overflow: hidden; }
.dnotes[hidden] { display: none; }
.dn-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 8px 14px; cursor: move; user-select: none; touch-action: none; }
.dn-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; }
.dn-title .ico { width: 18px; height: 18px; color: var(--accent-hi); }
.dn-hint { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-x { display: grid; place-items: center; width: 30px; height: 30px; margin-inline-start: auto; border-radius: 8px; color: var(--muted); flex: none; }
.dn-x:hover { background: var(--surface-2); color: var(--text); }
.dn-x .ico { width: 16px; height: 16px; }
.dn-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 10px; padding: 4px; border-radius: 9px; background: var(--surface); }
.dn-tool { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--muted); font-size: 15px; line-height: 1; }
.dn-tool svg { width: 17px; height: 17px; }
.dn-tool:hover { background: var(--surface-2); color: var(--text); }
.dn-tool.on { background: var(--surface-3); color: var(--text); }
.dn-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.dn-body { flex: 1; margin: 8px 10px 10px; padding: 10px 12px; overflow-y: auto; border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14.5px; line-height: 1.5; outline: none; overflow-wrap: anywhere; }
.dn-body:focus { box-shadow: 0 0 0 2px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.dn-body:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.dn-body ul, .dn-body ol { margin: 4px 0; padding-inline-start: 22px; }
@media (max-width: 640px) { .dnotes { resize: none; height: min(360px, 60vh); } }
.arena > .duel-controls { position: relative; padding-inline: 64px; }
.arena > .duel-controls .dn-btn { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .arena > .duel-controls { padding-inline: 14px; } .arena > .duel-controls .dn-btn { position: static; transform: none; margin-inline-end: auto; } }

/* ---------- Admin AI / Test lab / Voice: summary card, card heads with coloured icons (public/js/admin-ui.js) ---------- */
.adm-hi { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); }
.adm-hi .ico { width: 20px; height: 20px; }
.adm-ch { flex-wrap: wrap; }
.adm-ht { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.adm-ht h3 { font-size: 17px; }
.adm-hn { font-size: 13px; color: var(--muted); }
.adm-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.adm-sum { overflow: hidden; min-width: 0; }
.adm-sum > .adm-sum-lead { padding-top: 12px; }
.adm-sum > .adm-tiles { padding-top: 14px; }
.adm-sum > .adm-sum-lead + .adm-tiles { padding-top: 0; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 0 24px 18px; }
.adm-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.adm-tile > span { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.adm-tile > strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-tile > strong .aiz-s, .adm-tile > strong .vst-st { font-size: 17px; white-space: normal; }
.adm-tile > small { font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.adm-tile.warn { box-shadow: inset 3px 0 0 var(--gold); }
.adm-tile.bad { box-shadow: inset 3px 0 0 var(--danger); }
.adm-tile.ok { box-shadow: inset 3px 0 0 var(--ok); }
.adm-facts { display: flex; flex-direction: column; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.adm-facts p { margin: 0; }
.adm-facts > .aiz-more > summary { padding-inline: 0; }
.adm-facts > .aiz-more > .aiz-in { padding-bottom: 4px; }
.hg-models { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.adm-sum .aiz-alarms { border-top: 1px solid var(--line); }
.aiz-rt small + small { margin-top: 2px; font-size: 12.5px; line-height: 1.45; }
.aiz-rubsum { gap: 6px; padding-block: 14px 14px; }
.aiz-rubsum p { margin: 0; }
.aiz-rub { display: flex; flex-direction: column; }
@media (max-width: 720px) {
  .adm-facts { padding-inline: 16px; }
  .adm-tiles { padding-inline: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-tile > strong { font-size: 16px; }
  .adm-ch { padding-inline: 16px; }
}
.lab-steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
/* Voice tab cards (admin-heygen.js) */
.hg { gap: 20px; }
.hg-card > .vst-pad { padding: 14px 24px 18px; }
.hg-card .vst-tbl th:first-child, .hg-card .vst-tbl td:first-child { padding-inline-start: 24px; }
.hg-card .vst-tbl th:last-child, .hg-card .vst-tbl td:last-child { padding-inline-end: 24px; }
.hg-card .aiz-in > .vst-scroll { border-top: 1px solid var(--line); }
.hg-card .hg-langs { margin: 0; padding: 0 24px; }
.hg-two { gap: 0 24px; }
.hg-two .hg-sub { padding: 4px 24px 6px; margin: 0; }
.hg-warns { display: flex; flex-direction: column; gap: 8px; padding-bottom: 0; }
.hg-warns p { margin: 0; }
.adm-sum .vst-kv th { width: 38%; }
.adm-sum .ai-test { margin: 0; }
@media (max-width: 720px) {
  .hg-card > .vst-pad, .hg-card .hg-langs { padding-inline: 16px; }
  .hg-card .vst-tbl th:first-child, .hg-card .vst-tbl td:first-child { padding-inline-start: 16px; }
}

/* ---------- Inspect: badges and trophies almost full screen, tilting toward the mouse ---------- */
.modal.modal-insp { width: min(96vw, 900px); max-width: none; max-height: 96vh; background: transparent; box-shadow: none; border: 0; overflow: visible; padding: 0; animation: inspPop .22s cubic-bezier(.2, .9, .3, 1.15); }
.modal-back:has(.modal-insp) { background: rgba(8, 9, 14, .82); backdrop-filter: blur(6px); }
@keyframes inspPop { from { transform: scale(.35); opacity: 0; } to { transform: none; opacity: 1; } }
.insp-x { position: fixed; top: 18px; inset-inline-end: 18px; z-index: 2; }
.insp { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 12px 16px 24px; text-align: center; }
.insp-stage { display: grid; place-items: center; width: min(78vmin, 620px); height: min(64vmin, 520px); perspective: 1100px; cursor: grab; }
.insp-obj { --gx: 50%; --gy: 35%; position: relative; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .18s ease-out; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.insp-glare { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 45%); mix-blend-mode: soft-light; }
.insp.trophy-k .insp-glare { display: none; }
.insp .medal.xl { width: min(52vmin, 400px); height: min(52vmin, 400px); box-shadow: inset 0 0 0 calc(min(52vmin, 400px) * .03) rgba(255, 255, 255, .28), inset 0 0 0 calc(min(52vmin, 400px) * .07) rgba(0, 0, 0, .14), inset 0 -18px 30px rgba(0, 0, 0, .35), inset 0 12px 22px rgba(255, 255, 255, .35), 0 0 0 calc(min(52vmin, 400px) * .025) var(--m3); }
.insp .medal.xl .ico { width: 46%; height: 46%; }
.insp .medal.xl .medal-tier { bottom: -4%; font-size: clamp(16px, 4vmin, 30px); padding: .1em .55em; border-radius: .35em; }
.insp .trophy { width: min(50vmin, 380px); height: min(60vmin, 452px); }
.insp-info h2 { margin: 0; font-size: 26px; }
.insp-info p { margin: 6px 0 0; }
.insp-info .bd-tiers { margin: 16px auto 0; max-width: 460px; text-align: start; }
.insp-info .btn { margin-top: 14px; }
@media (max-width: 640px) { .insp-stage { width: 92vw; height: 56vh; } .insp-info h2 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .modal.modal-insp { animation: none; } .insp-obj { transition: none; } }

/* Cloudflare Turnstile: invisible for most visitors; a small check only when Cloudflare asks for one */
.cf-box:empty { display: none; }
.cf-box { display: flex; justify-content: center; margin: 0 0 14px; }
.cf-float { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; }

/* the free video, just above the profile card: a sidebar link with a small gold reward pill */
.side-vid:has(.vid-wrap:empty) { display: none; }
.side-vid .vid-wrap { display: block; }
.side-vid-btn { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: #d9dbe5; font: 700 15px/1 var(--font); cursor: pointer; text-align: start; }
.side-vid-btn:hover { background: #1f212c; color: #fff; }
.side-vid-btn > .ico { width: 26px; height: 26px; flex: none; }
.sv-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sv-txt b { font-weight: 700; font-size: 15px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-sub { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sv-sub .ico { width: 13px; height: 13px; }
.sv-sub i { font-style: normal; }
.sv-sub.wait { color: var(--faint); }
.side-vid-btn.wait { cursor: default; color: var(--faint); }
.side-vid-btn.wait > .ico { opacity: .55; filter: grayscale(.6); }
.side-vid-btn.wait:hover { background: none; color: var(--faint); }

/* New Duel: info and Debate TV settings next to the title */
.pt-tools { margin-inline-start: auto; display: inline-flex; gap: 4px; }
.pt-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pt-btn:hover { background: var(--surface-2); color: #fff; }
.pt-btn .ico { width: 18px; height: 18px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.info-list li { display: flex; flex-direction: column; gap: 2px; }
.info-list b { color: #fff; font-size: 14px; }
.info-list span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Debate TV settings */
.wt-sub { margin-inline-start: 14px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
.wt-sub.off { opacity: .5; }
.toggle-line.dis { cursor: default; }
/* Settings → Sound: the volume slider with its test button (wraps on phones: the slider full width, the button below) */
.set-vol label { flex: 0 0 auto; }
.set-range { flex: 1 1 160px; min-width: 0; accent-color: var(--accent); height: 4px; margin: 0 4px; cursor: pointer; }
.set-vol .btn { flex: 0 0 auto; }
.set-vol.dis { opacity: .45; }
.set-vol.dis .set-range { cursor: default; }
@media (max-width: 520px) { .set-vol { flex-wrap: wrap; } .set-vol .set-range { flex-basis: 100%; order: 2; margin: 4px 0; } .set-vol .btn { order: 3; margin-inline-start: auto; } }
.wt-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.wt-note .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.set-card h2 .ico, .modal-head h2 .ico { width: 24px; height: 24px; vertical-align: -5px; }

/* Debate TV page: two cards per row, each like the duel stage (Pro camera left, Contra camera right) */
.tv-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.tv-search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.tv-search > .ico { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.tv-search .input { width: 100%; padding-inline-start: 38px; }
.tv-fbtn { display: inline-flex; align-items: center; gap: 8px; }
.tv-fbtn.on { box-shadow: inset 0 0 0 1px var(--accent); color: #fff; }
.tv-fn { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 800 11px/18px var(--font); font-style: normal; text-align: center; }
.tvf { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin-bottom: 16px; }
.tvf[hidden] { display: none; }
.tvf .label { margin-top: 4px; }
.tvf-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tvf-row .chip { flex-direction: row; align-items: center; gap: 6px; height: 34px; padding: 0 12px; }
.tvf-row .chip .ico { width: 16px; height: 16px; }
.tvf-row .chip .flag { width: 18px; height: auto; }
.tvf #tvfreset { align-self: flex-start; margin-top: 6px; }
.tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tv-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tv-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #353a4d, 0 10px 24px rgba(0, 0, 0, .3); }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tv-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 92, 92, .14); color: #ff7a7a; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tv-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5c5c; animation: tvPulse 1.4s ease-in-out infinite; }
@keyframes tvPulse { 50% { opacity: .35; } }
.tv-meta { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tv-meta .ico { width: 14px; height: 14px; }
.tv-motion { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.3; }
.tv-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tv-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #12131a; }
.tv-tile .av-fill { position: absolute; inset: 0; }
.tv-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-tag { position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; background: rgba(10, 11, 16, .65); }
.tv-tag.pro { color: #6fd3ff; }
.tv-tag.contra { color: #ff9c7a; }
.tv-name { position: absolute; z-index: 2; inset-inline-start: 8px; bottom: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; background: rgba(10, 11, 16, .65); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tv-info { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.tv-fmt { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: #fff; }
.tv-fmt .ico { width: 22px; height: 22px; }
.tv-phase { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 800; color: #fff; }
.tv-phase small { color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .tv-live i { animation: none; } }
@media (max-width: 900px) { .tv-grid { grid-template-columns: 1fr; } }
/* Debate TV switch next to New Duel */
.tv-switch { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 6px; height: 32px; border-radius: 8px; cursor: pointer; }
.tv-switch:hover { background: var(--surface-2); }
.tv-switch > .ico { width: 22px; height: 22px; }
.switch.sm { width: 34px; height: 20px; }
.switch.sm span::after { width: 14px; height: 14px; }
.switch.sm input:checked + span::after { transform: translateX(14px); }
:where([dir="rtl"]) .switch.sm input:checked + span::after { transform: translateX(-14px); }

/* Debate TV viewers: emotes under the profile/timer row instead of the controls */
.arena-wrap.is-viewer .duel-controls { display: none; }
.emote-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; align-self: stretch; margin: 0; padding: 6px 14px 16px; border-radius: 0 0 var(--r) var(--r); background: var(--surface-2); }
/* the profile/timer row and the emotes form one block for viewers */
.arena-wrap.is-viewer .pbar-row { border-end-start-radius: 0; border-end-end-radius: 0; }
.eb-hint { color: var(--muted); font-size: 13px; font-weight: 700; }
.eb-list { position: relative; display: flex; align-items: center; gap: 6px; }
/* the throwables themselves (public/js/throwables.js), no box: a soft shadow, lift on hover, a glow + pill when picked */
.eb-btn { --kc: #ff7a5c; position: relative; width: 52px; height: 54px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .5)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), filter .2s; -webkit-tap-highlight-color: transparent; }
.eb-btn.pos { --kc: #35c2a5; }
.eb-btn .th-svg { width: 44px; height: 44px; display: block; }
/* hover only where there is a real pointer (a tap would leave the lift on and look picked) */
@media (hover: hover) { .eb-btn:hover { transform: translateY(-4px) scale(1.12); filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .42)); } }
.eb-btn:active { transform: translateY(-1px) scale(.92); transition-duration: .06s; }
.eb-btn.on { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--kc) 85%, transparent)) drop-shadow(0 8px 5px rgba(0, 0, 0, .42)); }
.eb-btn.on::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 20px; height: 4px; border-radius: 99px; translate: -50% 0; background: var(--kc); }
.eb-btn.on .th-svg { animation: ebBob 1.8s ease-in-out infinite; }
.eb-btn.on.pop .th-svg { animation: ebPop .38s cubic-bezier(.3, 1.6, .5, 1), ebBob 1.8s ease-in-out .38s infinite; }
.eb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* before the debate starts and after it ended nothing can be thrown */
.eb-btn:disabled { cursor: default; opacity: .4; filter: grayscale(.6) drop-shadow(0 3px 2px rgba(0, 0, 0, .4)); transform: none; }
.eb-list > .eb-btn:nth-child(3) { margin-inline-end: 14px; }
@keyframes ebBob { 50% { transform: translateY(-3px) rotate(-5deg); } }
@keyframes ebPop { 0% { transform: scale(.7); } 60% { transform: scale(1.2) rotate(6deg); } 100% { transform: none; } }
.eb-right { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.eb-viewers { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 800; }
.eb-viewers .ico { width: 16px; height: 16px; }
.arena-wrap.aiming .tile:not(.is-bot) { cursor: var(--aim, crosshair); }
.arena-wrap.aiming .tile:not(.is-bot):hover { box-shadow: 0 0 0 2px var(--accent); }
/* a thrown object (throw-fx.js): .tfx sits on the hit point; the object flies in (x linear, y on a lob, spinning and
   shrinking into the picture), then its kind's impact plays on .tfx-body and the generated pieces (.tp) */
.tfx { position: absolute; z-index: 1; width: 0; height: 0; pointer-events: none; } /* above the video, below the tile's labels */
.tfx.tfx-gone { opacity: 0; transition: opacity .18s; }
/* the camera-off note of a tile stays readable above the effects too (the photo itself stays below them) */
.tile .av-fill { z-index: auto; }
.tile .avf-note { z-index: 2; }
.tfx-fly { position: absolute; left: 0; top: 0; animation: tfxX var(--f) linear both; }
.tfx-arc { animation: tfxY var(--f) both; }
.tfx-obj { position: absolute; left: 0; top: 0; width: var(--sz); height: var(--sz); translate: -50% -50%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); animation: tfxSpin var(--f) cubic-bezier(.3, .6, .5, 1) both; }
.tfx-body { width: 100%; height: 100%; transform-origin: 50% 65%; }
.tfx .th-svg { display: block; width: 100%; height: 100%; }
@keyframes tfxX { from { transform: translateX(var(--sx)); } to { transform: none; } }
@keyframes tfxY { 0% { transform: translateY(var(--sy)); animation-timing-function: cubic-bezier(.2, .75, .45, 1); } 68% { transform: translateY(calc(var(--lob) * -1)); animation-timing-function: cubic-bezier(.55, 0, .85, .45); } 100% { transform: none; } }
@keyframes tfxSpin { 0% { rotate: var(--spin); scale: 1.9; opacity: 0; } 10% { opacity: 1; } 100% { rotate: 0deg; scale: 1; opacity: 1; } }
/* the object on impact */
.k-tomato .tfx-body { animation: tfxSquash .46s cubic-bezier(.2, .9, .3, 1) var(--f) both; }
.k-egg .tfx-body { animation: tfxCrack .14s ease-out var(--f) both; }
.k-boo .tfx-fly { z-index: 1; } /* the dust puffs up behind the bonked thumb */
.k-boo .tfx-body { transform-origin: 50% 50%; animation: tfxBonk 2.1s ease-out var(--f) both; }
.k-rose .tfx-body { transform-origin: 50% 92%; animation: tfxLand 2.1s ease-out var(--f) both; }
.k-clap .tfx-body { transform-origin: 50% 55%; animation: tfxClap 1.9s ease-out var(--f) both; }
.k-fire .tfx-body { transform-origin: 50% 88%; animation: tfxFlame 2s ease-out var(--f) both; }
@keyframes tfxSquash { 0% { transform: none; } 25% { transform: scale(1.5, .62); opacity: 1; } 55% { transform: scale(1.85, .42); opacity: .5; } 100% { transform: scale(2.05, .3); opacity: 0; } }
@keyframes tfxCrack { 0% { transform: none; } 50% { transform: scale(1.12, .9); opacity: 1; } 100% { transform: scale(1.14, .86); opacity: 0; } }
@keyframes tfxBonk { 0% { transform: none; } 6% { transform: scale(1.32, .7); } 14% { transform: scale(.88, 1.14) rotate(-14deg); } 24% { transform: rotate(12deg); } 34% { transform: rotate(-8deg); } 44% { transform: rotate(5deg); } 54% { transform: rotate(-2deg); } 66% { transform: none; opacity: 1; } 100% { transform: translateY(70%) rotate(24deg) scale(.85); opacity: 0; } }
@keyframes tfxLand { 0% { transform: none; } 10% { transform: scale(1.1, .9); } 22% { transform: scale(.96, 1.05) rotate(-4deg); } 36% { transform: rotate(5deg); } 50% { transform: rotate(-3deg); } 64% { transform: rotate(2deg); opacity: 1; } 100% { transform: translateY(-45%) rotate(-8deg) scale(.9); opacity: 0; } }
@keyframes tfxClap { 0% { transform: none; } 7% { transform: scale(1.4); } 14% { transform: scale(1.04, 1.12); } 21% { transform: scale(1.22, .94); } 28% { transform: scale(.94, 1.06); } 36% { transform: scale(1.12, .97); } 46% { transform: none; } 70% { transform: none; opacity: 1; } 100% { transform: translateY(-40%) scale(1.2); opacity: 0; } }
@keyframes tfxFlame { 0% { transform: none; } 8% { transform: scale(1.55, 1.45); } 16% { transform: scale(1.25, 1.4); } 26% { transform: scale(1.34, 1.52); } 36% { transform: scale(1.22, 1.38); } 48% { transform: scale(1.3, 1.48); } 62% { transform: scale(1.22, 1.4); opacity: 1; } 100% { transform: translateY(-30%) scale(.6, 1.7); opacity: 0; } }
/* the generated pieces: centred on the hit point, sizes and directions in css variables, start after the flight */
.tfx .tp { position: absolute; left: 0; top: 0; display: block; width: var(--s); height: var(--s); translate: -50% -50%; opacity: 0; animation-delay: calc(var(--f) + var(--d, 0ms)); animation-fill-mode: both; }
.tfx .tp.ring { border: 3px solid var(--c); border-radius: 50%; animation-name: tfxRing; animation-duration: .45s; animation-timing-function: ease-out; }
.tfx .tp.splat { animation: tfxSplat 2.1s cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--f); }
.tfx .tp.drop { border-radius: 50%; animation: tfxDrop 1.3s cubic-bezier(.15, .8, .3, 1) both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.drop.red { background: radial-gradient(circle at 35% 30%, #ff8a70, #d42a1e 55%, #8f0d10); }
.tfx .tp.drop.white { background: radial-gradient(circle at 35% 30%, #fff, #efe9dc 60%, #cfc5b2); }
/* a drip stays attached to the splat: the stem (stretched svg) grows down from its top, the drop rides on its end */
.tfx .tp.drip { --L: calc(var(--run) + var(--s) * .5); left: var(--x); top: var(--y); height: var(--L); translate: -50% 0; animation: tfxDripFade 1.7s linear both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.drip .th-drip { position: absolute; left: 20%; top: 0; width: 60%; height: 100%; transform-origin: 50% 0; animation: tfxDrip 1.7s cubic-bezier(.4, 0, .7, 1) both; animation-delay: inherit; }
.tfx .tp.drip b { position: absolute; left: 50%; top: 0; width: 66%; height: calc(var(--s) * .74); margin: calc(var(--s) * -.5) 0 0 -33%; border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%; animation: tfxDripEnd 1.7s cubic-bezier(.4, 0, .7, 1) both; animation-delay: inherit; }
.tfx .tp.drip.red b { background: radial-gradient(circle at 35% 62%, #ff8a70, #e0301f 45%, #9a0f12); }
.tfx .tp.drip.white b { background: radial-gradient(circle at 35% 62%, #fff, #f1ebdf 55%, #d2c8b5); }
.tfx .tp.shell { animation: tfxShell 1.1s linear both; animation-delay: var(--f); }
.tfx .tp.dust { border-radius: 50%; background: radial-gradient(circle, rgba(150, 154, 168, .9), rgba(118, 122, 138, .55) 45%, rgba(118, 122, 138, 0) 70%); animation: tfxDust 1s ease-out both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.bonk, .tfx .tp.ray { width: var(--s); height: var(--l); border-radius: 99px; animation: tfxRay .42s ease-out both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.bonk { background: #e3e6ef; }
.tfx .tp.ray { background: linear-gradient(#fff3b0, #f4b740); }
.tfx .tp.glow, .tfx .tp.flare { border-radius: 50%; mix-blend-mode: screen; animation: tfxGlow 1.2s ease-out both; animation-delay: var(--f); }
.tfx .tp.glow.pink { background: radial-gradient(circle, rgba(255, 150, 175, .6), rgba(255, 100, 140, .22) 45%, rgba(255, 100, 140, 0) 70%); }
.tfx .tp.glow.gold { background: radial-gradient(circle, rgba(255, 224, 130, .65), rgba(244, 183, 64, .25) 45%, rgba(244, 183, 64, 0) 70%); }
.tfx .tp.flare { background: radial-gradient(circle, rgba(255, 244, 190, .95), rgba(255, 176, 64, .65) 28%, rgba(255, 90, 40, .25) 50%, rgba(255, 90, 40, 0) 70%); animation-duration: 1.1s; }
.tfx .tp.petal { animation: tfxPetal 1.9s cubic-bezier(.25, .6, .4, 1) both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.spark { left: var(--x); top: var(--y); filter: drop-shadow(0 0 3px rgba(255, 255, 255, .85)); animation: tfxTwinkle .8s ease-in-out both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.star { animation: tfxStar 1.1s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
.tfx .tp.ember { left: var(--x); top: var(--y); border-radius: 50%; background: radial-gradient(circle, #fff6c4, #ffc23a 40%, #ff6a1f 70%, rgba(255, 90, 30, 0) 72%); animation: tfxEmber var(--t) ease-out both; animation-delay: calc(var(--f) + var(--d, 0ms)); }
@keyframes tfxRing { 0% { transform: scale(.2); opacity: 0; } 8% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes tfxSplat { 0% { transform: rotate(var(--r)) scale(.2); opacity: 0; } 6% { transform: rotate(var(--r)) scale(1.12); opacity: 1; } 14% { transform: rotate(var(--r)) scale(.96); } 22% { transform: rotate(var(--r)) scale(1); } 78% { transform: rotate(var(--r)) scale(1); opacity: .95; } 100% { transform: rotate(var(--r)) scale(1.03); opacity: 0; } }
@keyframes tfxDrop { 0% { transform: scale(.3); opacity: 0; } 8% { opacity: 1; } 30% { transform: translate(var(--dx), var(--dy)); } 70% { transform: translate(var(--dx), calc(var(--dy) + var(--s) * 1.5)) scale(.9, 1.15); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + var(--s) * 3)) scale(.7, 1.2); opacity: 0; } }
@keyframes tfxDripFade { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tfxDrip { 0% { transform: scaleY(0); } 30% { transform: scaleY(.55); } 80% { transform: scaleY(1); } 100% { transform: scaleY(1.05); } }
@keyframes tfxDripEnd { 0% { transform: translateY(0) scale(.4); } 30% { transform: translateY(calc(var(--L) * .55)) scale(.9); } 80% { transform: translateY(var(--L)) scale(1); } 100% { transform: translateY(calc(var(--L) * 1.05)) scale(.95, 1.1); } }
@keyframes tfxShell { 0% { transform: none; opacity: 0; animation-timing-function: cubic-bezier(.2, .7, .4, 1); } 3% { opacity: 1; } 35% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .5)); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .5); } 100% { transform: translate(calc(var(--dx) * 1.45), calc(var(--s) * 1.8)) rotate(var(--r)); opacity: 0; } }
@keyframes tfxDust { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.7); opacity: 0; } }
@keyframes tfxRay { 0% { transform: rotate(var(--a)) translateY(calc(var(--o) * -.6)) scaleY(.2); opacity: 0; } 30% { transform: rotate(var(--a)) translateY(calc(var(--o) * -1)) scaleY(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(calc(var(--o) * -1.5)) scaleY(.2); opacity: 0; } }
@keyframes tfxGlow { 0% { transform: scale(.2); opacity: 0; } 18% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes tfxPetal { 0% { transform: scale(.3); opacity: 0; } 12% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .4)) rotate(calc(var(--r) * .2)); opacity: 1; } 40% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .5)); } 70% { transform: translate(calc(var(--dx) * 1.1 + var(--s) * .5), calc(var(--dy) + var(--fall) * .6)) rotate(calc(var(--r) * .8)) scale(.95, .75); opacity: .95; } 100% { transform: translate(calc(var(--dx) * 1.15 - var(--s) * .3), calc(var(--dy) + var(--fall))) rotate(var(--r)) scale(.85); opacity: 0; } }
@keyframes tfxTwinkle { 0% { transform: scale(0); opacity: 0; } 45% { transform: scale(1) rotate(45deg); opacity: 1; } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes tfxStar { 0% { transform: scale(.2); opacity: 0; } 15% { opacity: 1; } 55% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .7)); opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1.1), calc(var(--dy) + var(--s) * 1.5)) rotate(var(--r)) scale(.6); opacity: 0; } }
@keyframes tfxEmber { 0% { transform: scale(.4); opacity: 0; } 12% { transform: translate(calc(var(--dx) * .15), calc(var(--rise) * -.12)); opacity: 1; } 40% { transform: translate(calc(var(--dx) * .5 + var(--s) * 1.5), calc(var(--rise) * -.45)); } 70% { transform: translate(calc(var(--dx) * .75 - var(--s)), calc(var(--rise) * -.72)) scale(.8); opacity: .9; } 100% { transform: translate(var(--dx), calc(var(--rise) * -1)) scale(.3); opacity: 0; } }
/* a small knock on the camera when something rotten hits */
.tile.tfx-shake { animation: tfxShake .32s ease-out; }
@keyframes tfxShake { 0%, 100% { translate: 0 0; } 20% { translate: -3px 2px; } 40% { translate: 3px -2px; } 60% { translate: -2px 1px; } 80% { translate: 1px 0; } }
/* reduced motion: the object simply fades in and out on the hit point (throw-fx.js animates the opacity) */
.tfx.calm .tfx-fly, .tfx.calm .tfx-arc, .tfx.calm .tfx-obj, .tfx.calm .tfx-body { animation: none; }
@media (max-width: 760px) { .emote-bar { grid-template-columns: 1fr; justify-items: center; } .eb-btn { width: 44px; height: 48px; } .eb-btn .th-svg { width: 36px; height: 36px; } .eb-hint { order: -1; } .eb-right:empty { display: none; } }
@media (prefers-reduced-motion: reduce) { .eb-btn.on .th-svg, .tile.tfx-shake { animation: none; } .tfx .tp { display: none; } }

/* LIVE and the viewer count, top right in the topic banner */
.tb-viewers { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; }
.tb-viewers[hidden] { display: none; }
.tbv-n { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; background: var(--surface-2); font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.tbv-n .ico { width: 20px; height: 20px; }
/* a long motion stays on two lines; a click shows all of it */
.topic-banner .tb-q.tb-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; text-align: start; cursor: pointer; width: 100%; }
.topic-banner .tb-q.tb-clamp.open { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.topic-banner .tb-q.tb-clamp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* a practice opponent's tile: the member's picture with a quiet "thinking" note */
.mb-state { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; background: rgba(12, 13, 19, .7); font-size: 13px; font-weight: 700; color: #fff; }

/* duel: after a reload the browser holds the sound until the first click (duel.js soundUnlock) */
.sound-pill { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 0; border-radius: 999px; background: var(--primary, #7c5cff); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); animation: sp-in .3s ease-out; }
.sound-pill .ico { width: 18px; height: 18px; }
@keyframes sp-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Home (signed in): app.js pageDashboard ---------- */
/* the areas and rows come from public/js/dash-layout.js (--dash-areas, --dash-rows) */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: var(--dash-areas, "head head" "play play" "next friends" "duels rating"); grid-template-rows: var(--dash-rows, none); gap: 24px; align-items: start; padding-bottom: 8px; }
.dash > * { min-width: 0; }
.dash-a-head { grid-area: head; margin-bottom: 0; }
.dash-a-play { grid-area: play; }
/* the row next to "next": the daily card as tall as lesson + topic (both stretch to the taller one); without it friends
   online sits there, at least as tall as the lesson cards, which keep their own height (friends can be much taller) */
.dash-a-next { grid-area: next; }
.dash.dash-has-daily .dash-a-next { align-self: stretch; }
.dash-a-daily { grid-area: daily; align-self: stretch; }
.dash-a-friends { grid-area: friends; }
.dash:not(.dash-has-daily) .dash-a-friends { align-self: stretch; }
.dash-a-next .totd { display: flex; flex-direction: column; }
.dash-a-next .totd .q { flex: 1; }
.dash-last .dl-cat { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: hsl(var(--h) 45% 30% / .45); }
.dash-last .dl-cat .ico { width: 30px; height: 30px; }
.dash-a-live { grid-area: live; }
/* a table wider than the card never shows through the right column */
.dash-a-duels { grid-area: duels; overflow: hidden; }
.dash-a-rating { grid-area: rating; }
.dash-foot { padding-top: 0; }
.dash .dh-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash .dh-who .sub-line { margin: 0; font-size: 13px; }
.dash-head .right strong { display: inline-flex; align-items: center; gap: 8px; }
.dash-head .right strong .delta { font-size: 13px; }
.dash-head .right strong .delta.up { color: var(--ok); }
.dash-head .right strong .delta.down { color: #ff8d98; }
.dash-tile .art .av { width: 64px; height: 64px; border-radius: 10px; }
.dash-tile .art svg:not(.ico) { width: 56px; height: 56px; }
.dash-play { padding: 20px; }
.dash-play h2 { font-size: 18px; margin: 0 0 14px; }
.play-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.play-tile { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-height: 132px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s, transform .15s; }
.play-tile:hover { background: var(--surface-3); transform: translateY(-2px); }
.play-tile .pt-art { width: 46px; height: 46px; display: grid; place-items: center; }
.play-tile .pt-art .ico { width: 40px; height: 40px; }
.play-tile .pt-art .av { width: 46px; height: 46px; border-radius: 10px; }
.play-tile .pt-txt { display: flex; flex-direction: column; gap: 3px; }
.play-tile b { font-size: 17px; }
.play-tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.play-tile.primary { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 -4px 0 var(--accent-edge); color: #fff; }
.play-tile.primary:hover { background: var(--accent-hi); }
.play-tile.primary small { color: #fff; opacity: .85; }
.dash-setup { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; color: var(--muted); font-size: 13px; }
.dash-setup .ico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.dash-tile { height: 100%; }
.dash-tile .art { height: 64px; }
.dash-prog { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 4px 0 2px; }
.dash-prog i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.dash-last .dl-motion { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-last .dl-res { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.dash-last .btn-row { gap: 8px; margin-top: auto; }
.dash-live .card-head h3 { display: flex; align-items: center; gap: 10px; }
.dash-live .dl-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.dash-live .dl-row:hover { background: var(--surface-2); }
.dash-live .dl-avs { display: flex; flex: none; }
.dash-live .dl-avs .av + .av { margin-inline-start: -8px; box-shadow: 0 0 0 2px var(--surface); }
.dash-live .dl-txt { display: flex; flex-direction: column; min-width: 0; }
.dash-live .dl-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.dash-live .dl-txt small { color: var(--muted); font-size: 12px; }
.dash-a-duels .card-head { gap: 12px; }
.dash-a-duels .card-head h3 { margin-inline-end: auto; }
.form-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 20px 14px; }
.form-row .dh-rsq { text-decoration: none; }
/* the recent duels next to the 340 px column on a narrow desktop (about 420–640 px): without rating, date and accuracy */
@media (min-width: 1001px) and (max-width: 1240px) {
  .dash .table.dh .dh-hide, .dash .table.dh .dh-c-acc { display: none; }
}
@media (max-width: 1000px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: none; }
  .dash > * { grid-area: auto; }
  .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dash { gap: 16px; }
  .play-tile { min-height: 0; padding: 14px; gap: 8px; }
  .play-tile:not(.primary) small { display: none; }
  .play-tile .pt-art, .play-tile .pt-art .av { width: 38px; height: 38px; }
  .play-tile .pt-art .ico { width: 34px; height: 34px; }
  .dash-setup { align-items: flex-start; }
  .dash-a-duels .card-head > .muted { display: none; }
}
@media (max-width: 760px) {
  /* the two "up next" tiles as compact rows: picture left, everything else right */
  .dash-tile > *:not(.art) { grid-column: 2; }
  .dash-tile .art { grid-row: 1 / span 6; height: 72px; }
  .dash-tile .art .av { width: 72px; height: 72px; }
  .dash-tile .dash-prog { margin-top: 6px; }
  .dash-last .btn-row { margin-top: 6px; }
}
@media (max-width: 640px) {
  .dash .table.dh .dh-c-acc { display: none; }
}
@media (max-width: 420px) {
  .dash-head { flex-wrap: wrap; }
  .dash-head .right { margin-inline-start: 0; width: 100%; flex-direction: row; align-items: center; gap: 10px; justify-content: flex-start; text-align: start; }
}

/* ---------- Online lobby (play.js: search and match) ---------- */
.arena-wrap.lobby-on { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.arena-wrap.lobby-on .side-col { display: none; }
.arena-wrap.lobby-on .stage { background: none; border: 0; padding: 0; min-height: 0; aspect-ratio: auto; overflow: visible; }
.lobby { display: flex; flex-direction: column; gap: 22px; }
.lb-topic { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-height: 96px; }
.lb-topic .lb-tico .ico { width: 40px; height: 40px; }
.lb-ttext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lb-tq { font-size: 22px; font-weight: 800; line-height: 1.3; }
.lb-tq.dim { color: var(--muted); }
.lb-topic .lb-cancel { margin-inline-start: auto; flex: none; }
.lb-topic .lb-cancel .ico { width: 14px; height: 14px; }
.lb-topic.landed { animation: lb-fade .5s ease-out; border-color: rgba(123, 92, 255, .45); }
@keyframes lb-fade { from { opacity: 0; transform: translateY(-4px); } }
.lb-searching { display: inline-flex; align-items: center; gap: 10px; }
.lb-searching .lb-time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.lb-draw { display: flex; align-items: stretch; gap: 12px; width: 100%; }
.lb-draw .slot.cat-slot { width: 280px; flex: none; height: 72px; display: flex; align-items: flex-start; }
.lb-draw .slot.cat-slot .reel { width: 100%; }
.lb-draw .slot.cat-slot .reel div { height: 72px; }
.lb-draw .slot.topic-slot { flex: 1; width: auto; }
.lb-duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 18px; }
.lb-vs { align-self: center; }
.lb-vs { font-size: 26px; font-weight: 900; color: var(--faint); }
.lb-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.lb-media { position: relative; }
/* an equipped frame grows outward, so your tile stays exactly as big as the opponent's */
.lb-media > .cf { margin: -8px; }
.lb-media > .cf.frame-laurel { margin: -7px; }
.lb-media > .cf.frame-marble { margin: -10px -24px; }
.lb-media > .cf.frame-owl { margin: -9px; }
.lb-media > .cf.frame-neon { margin: -4px; }
.lb-media > .cf.frame-scroll { margin: -16px -10px; }
.lb-media > .cf.frame-meander { margin: -12px; }
.lb-media > .cf.frame-bronze { margin: -10px; }
.lb-media > .cf.frame-ivy { margin: -6px; }
.lb-media > .cf.frame-diamond, .lb-media > .cf.frame-emerald, .lb-media > .cf.frame-gold-crest { margin: -10px; }
.lb-media > .cf.frame-silver { margin: -8px; }
.lb-media .cf-gem, .pv-slot .cf-gem { width: 40px; top: -17px; }
.lb-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; transition: box-shadow .1s; }
.lb-tile video { width: 100%; height: 100%; object-fit: cover; }
.lb-tile video.mirror { transform: scaleX(-1); }
.lb-tile .av-fill { position: absolute; inset: 0; }
.lb-tile.landed { animation: lb-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes lb-pop { from { transform: scale(.85); opacity: .3; } }
.lb-side { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.lb-side.on { opacity: 1; transform: none; }
.lb-side .side-tag { height: 30px; font-size: 15px; padding: 0 12px; }
.lb-who { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.lb-who b { font-size: 19px; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.lb-who .lb-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who b .flag { flex: none; }
.lb-who small { color: var(--muted); font-size: 13.5px; }
/* the spinning column of players while searching */
.lb-spin { position: absolute; inset: 0; overflow: hidden; display: flex; justify-content: center; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.lb-tile { container-type: size; }
.lb-spin-reel { display: flex; flex-direction: column; align-items: center; width: 100%; animation: lb-spin 6s linear infinite; will-change: transform; }
.lb-spin-it { height: 100cqh; width: 100%; display: grid; place-items: center; flex: none; }
.lb-spin-it .av { width: min(86cqh, 92cqw); height: min(86cqh, 92cqw); border-radius: 16px; font-size: 30cqh; }
@keyframes lb-spin { to { transform: translateY(-50%); } }
.lb-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lb-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lb-chip .ico { width: 16px; height: 16px; }
.lb-foot .btn { min-width: 220px; }
.lb-found { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lb-found > b { font-size: 18px; }
.lb-go { width: 240px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.lb-go i { display: block; height: 100%; width: 0; background: var(--accent); animation: lb-go linear forwards; }
@keyframes lb-go { to { width: 100%; } }
.lb-bots { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lb-bots-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lb-bots-row .opt { width: auto; }
@media (prefers-reduced-motion: reduce) { .lb-spin-reel { animation-duration: 12s !important; } }
@media (max-width: 760px) {
  .lobby { gap: 14px; }
  .lb-topic { padding: 14px 16px; min-height: 0; }
  .lb-tq { font-size: 17px; }
  .lb-duo { gap: 8px; }
  .lb-vs { font-size: 16px; }
  .lb-card { padding: 8px; gap: 8px; border-radius: 12px; }
  .lb-tile { aspect-ratio: 3 / 4; }
  .lb-who b { font-size: 15px; }
  .lb-who small { font-size: 12px; }
  .lb-draw { flex-direction: column; }
  .lb-draw .slot.cat-slot { width: 100%; height: 44px; }
  .lb-draw .slot.cat-slot .reel div { height: 44px; }
  .lb-draw .slot.topic-slot { flex: none; width: 100%; }
  .lb-side .side-tag { height: 24px; font-size: 12px; padding: 0 8px; }
  .lb-side { top: 8px; inset-inline-start: 8px; }
}

/* home: the four big start cards (app.js pageDashboard) */
.dash-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dash-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 20px; border-radius: 18px; color: #fff; text-decoration: none; overflow: hidden; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22); transition: transform .15s, filter .15s; }
.dash-card:hover { transform: translateY(-3px); filter: brightness(1.06); }
.dash-card::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none; }
.dash-card .dc-art { width: 64px; height: 64px; border-radius: 16px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.dash-card .dc-art .ico { width: 40px; height: 40px; }
.dash-card .dc-art .av { width: 64px; height: 64px; border-radius: 16px; }
.dash-card .dc-txt { display: flex; flex-direction: column; gap: 4px; }
.dash-card b { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.dash-card small { font-size: 13.5px; opacity: .9; line-height: 1.4; }
@media (max-width: 1240px) { .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-card { min-height: 190px; } }
.dash-card .dc-meta { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .18); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card .dc-meta .ico { flex: none; }
.dash-card .dc-meta .ico { width: 15px; height: 15px; }
.dash-card.dc-online { background: linear-gradient(150deg, #8f74ff, #6a4bf0 60%, #5236d4); }
.dash-card.dc-bots { background: linear-gradient(150deg, #ffcc5c, #f4b740 55%, #d99a1e); color: #2a1d02; }
.dash-card.dc-mentor { background: linear-gradient(150deg, #4fd8bb, #35c2a5 55%, #23977f); color: #062a22; }
.dash-card.dc-shop { background: linear-gradient(150deg, #ff8a5c, #ff6b4a 55%, #e04a2c); }
.dash-card.dc-bots .dc-meta, .dash-card.dc-mentor .dc-meta { background: rgba(0, 0, 0, .12); }
@media (max-width: 760px) {
  .dash-cards { gap: 10px; }
  .dash-card { min-height: 0; padding: 16px; gap: 10px; border-radius: 14px; }
  .dash-card .dc-art, .dash-card .dc-art .av { width: 48px; height: 48px; border-radius: 12px; }
  .dash-card .dc-art .ico { width: 30px; height: 30px; }
  .dash-card b { font-size: 17px; }
  .dash-card small { display: none; }
  .dash-card .dc-meta { font-size: 11.5px; padding: 4px 9px; }
  .dash-card:not(.dc-shop) .dc-meta { display: none; }
  .dash-card.dc-online small { display: block; font-size: 12.5px; }
}

/* home: next lesson card with its progress bar, friends online */
.dash-lesson { display: flex; flex-direction: column; gap: 12px; padding: 20px; color: inherit; text-decoration: none; transition: background .15s; }
.dash-lesson:hover { background: var(--surface-2); }
.dash-lesson .dl-head { display: flex; align-items: center; gap: 10px; }
.dash-lesson .dl-ico { width: 40px; height: 40px; display: grid; place-items: center; }
.dash-lesson .dl-ico .ico { width: 34px; height: 34px; }
.dash-lesson .dl-title { font-size: 17px; line-height: 1.35; flex: 1; }
.dash-lesson .dl-bar { display: flex; flex-direction: column; gap: 6px; }
.dash-lesson .dl-bar .dash-prog { height: 34px; margin: 0; border-radius: 5px; }
.dash-lesson .dl-bar .dash-prog i { border-radius: 5px; background: var(--ok); }
.dash-lesson .dl-bar span { font-size: 12.5px; color: var(--muted); }
.dash-friends { display: flex; flex-direction: column; }
.dash-friends .card-head h3 { display: flex; align-items: center; gap: 8px; }
.dash-friends .df-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.dash-friends .df-dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(53, 194, 165, .18); }
.dash-friends .df-body { display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 16px; flex: 1; }
.dash-friends .df-list { display: flex; flex-direction: column; }
.dash-friends .df-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 8px; color: inherit; text-decoration: none; }
.dash-friends .df-row:hover { background: var(--surface-2); }
.dash-friends .df-row .av { position: relative; }
.dash-friends .df-name { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; overflow: hidden; white-space: nowrap; }
.dash-friends .df-elo { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-friends .df-empty { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.4; padding: 6px 2px; flex: 1; }
.dash-friends .df-empty .ico { width: 34px; height: 34px; flex: none; }
.dash-friends .df-add { margin-top: auto; }

/* home header: win streak, rating and Drachmas in one row at the height of the name (Drachmas on the right, with
   a plus to the Drachma bundles in the shop, shown with the shop's coin pouch) */
.dash .dash-head { align-items: flex-start; }
.dash .dash-head h1 { min-width: 0; }
.dash .dash-head h1 > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash .dash-head h1 > :not(a) { flex: none; }
.dh-stats { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.dh-streak { display: inline-flex; align-items: center; }
.dh-elo { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.dh-elo strong { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: #fff; }
.dh-elo strong .delta { font-size: 13px; }
.dh-elo strong .delta.up { color: var(--ok); }
.dh-elo strong .delta.down { color: #ff8d98; }
.dh-elo > span { font-size: 12.5px; color: var(--muted); }
.dash-coins { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: #fff; text-decoration: none; font-size: 17px; transition: background .15s; }
.dash-coins:hover { background: var(--surface-2); }
.dash-coins .dc-pouch { width: 40px; height: 36px; display: grid; place-items: center; }
.dash-coins .dc-pouch svg { width: 44px; height: 40px; margin-top: -4px; }
.dash-coins b { font-variant-numeric: tabular-nums; }
.dash-coins .dc-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #062a22; }
.dash-coins .dc-plus .ico { width: 13px; height: 13px; }
@media (max-width: 640px) {
  .dash .dash-head { flex-wrap: wrap; }
  .dh-stats { width: 100%; margin-inline-start: 0; justify-content: flex-end; gap: 14px; }
  .dh-stats .dash-coins { margin-inline-start: auto; }
  .dh-stats .dh-streak { order: -1; }
  .dh-elo { align-items: flex-start; }
}


/* a player's name that leads to their profile: underlined on hover */
.plink { color: inherit; text-decoration: none; }
.plink:hover, .plink:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* start cards: Online and Shop show their icon on its own (no white plate), Bots a small stack of philosophers,
   Mentor the Mentor's portrait */
.dash-card .dc-art:has(.dc-glyph) { background: none; box-shadow: none; width: auto; height: 64px; justify-content: start; }
.dash-card .dc-art .dc-glyph { width: 60px; height: 60px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)) drop-shadow(0 6px 14px rgba(0, 0, 0, .28)); }
.dash-card.dc-shop .dc-glyph { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.dash-card.dc-online .dc-glyph { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.dash-card .dc-art:has(.dc-stack) { background: none; box-shadow: none; width: auto; align-self: flex-start; }
.dash-card .dc-art:has(.dc-glyph) { align-self: flex-start; }
.dash-card .dc-stack { display: flex; }
.dash-card .dc-stack .av { width: 60px; height: 60px; border-radius: 16px; border: 3px solid #f4b740; box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
.dash-card .dc-stack .av + .av { margin-inline-start: -22px; }
@media (max-width: 760px) {
  .dash-card .dc-art .dc-glyph { width: 44px; height: 44px; }
  .dash-card .dc-art:has(.dc-glyph) { height: 48px; }
  .dash-card .dc-stack .av { width: 44px; height: 44px; border-radius: 12px; }
  .dash-card .dc-stack .av + .av { margin-inline-start: -16px; }
}

/* home start cards: title only, white text on every card; the shop card shows its timer in place of a title */
.dash-card { color: #fff; justify-content: space-between; min-height: 200px; }
.dash-card.dc-bots, .dash-card.dc-mentor { color: #fff; }
.dash-card .dc-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.dash-card .dc-timer { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-card .dc-timer .ico { width: 22px; height: 22px; flex: none; }
@media (max-width: 760px) {
  .dash-card { min-height: 128px; }
  .dash-card .dc-title { font-size: 17px; }
  .dash-card .dc-timer { font-size: 13px; gap: 5px; }
  .dash-card .dc-timer .ico { width: 16px; height: 16px; }
}

/* home header strip: win streak | rating | Drachmas, one rounded bar with dividers */
.dh-stats { margin-inline-start: auto; display: flex; align-items: stretch; flex: none; gap: 0; padding: 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.dh-seg { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 54px; }
.dh-seg + .dh-seg { border-inline-start: 1px solid var(--line); }
.dh-stats .dh-elo { flex-direction: row; align-items: center; line-height: 1.1; }
.dh-stats .dh-elo > .ico { width: 26px; height: 26px; flex: none; }
.dh-stats .dh-v { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; }
.dh-stats .dh-v b { font-size: 21px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.dh-stats .dh-v .delta { font-size: 12.5px; }
.dh-stats .dh-v .delta.up { color: var(--ok); }
.dh-stats .dh-v .delta.down { color: #ff8d98; }
.dh-stats .dh-v small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.dh-stats .dash-coins { border: 0; border-radius: 0; background: none; padding: 8px 10px 8px 16px; font-size: 19px; }
.dh-stats .dash-coins:hover { background: var(--surface-2); }
.dh-stats .dash-coins > .ico { width: 26px; height: 26px; }
.dh-stats .dash-coins .dc-plus { width: 28px; height: 28px; flex: none; background: var(--gold); color: #3a2702; box-shadow: inset 0 -2px 0 var(--gold-edge); }
@media (max-width: 640px) {
  .dh-stats { width: 100%; }
  .dh-seg { padding: 6px 12px; min-height: 48px; flex: 1 1 auto; justify-content: center; min-width: 0; }
  .dh-seg.dh-streak { flex: none; }
  .dh-stats .dash-coins { justify-content: center; }
}

/* duel tables: accuracy as an icon, short numeric dates that stay inside the card */
.dh-acc-h { display: inline-grid; place-items: center; color: var(--muted); }
.dh-acc-h .ico { width: 17px; height: 17px; }
.table.dh .dh-date { font-size: 13px; padding-inline-end: 20px; }

/* start cards: icon (and the shop timer) on top, the title below; icons without outline */
.dash-card .dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-card .dc-timer { font-size: 15px; padding-top: 4px; }
.dash-card .dc-timer .ico { width: 17px; height: 17px; }
.dash-card .dc-art .dc-glyph, .dash-card.dc-shop .dc-glyph, .dash-card.dc-online .dc-glyph { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
@media (max-width: 760px) {
  .dash-card .dc-top { flex-direction: column; gap: 6px; }
  .dash-card .dc-timer { font-size: 12px; padding-top: 0; }
}
/* header strip: everything centred in its own field */
.dh-stats { align-items: stretch; }
.dh-seg { justify-content: center; align-items: center; }
.dh-stats .dh-streak .win-flame, .dh-stats .dh-streak > * { margin: 0; align-self: center; }
.dh-stats .dh-v { display: inline-flex; align-items: center; gap: 6px; }
.dh-stats .dash-coins .dc-plus { border-radius: 5px; }

/* start cards: the title row at the bottom (shop: clock and time right of the title); the rating field links to the
   leaderboards */
.dash-card .dc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-card .dc-bottom .dc-timer { padding-top: 0; font-size: 15px; font-weight: 700; }
a.dh-seg.dh-elo { color: inherit; text-decoration: none; transition: background .15s; }
a.dh-seg.dh-elo:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .dash-card .dc-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Admin -> AI -> Budget (public/js/admin-budget.js): the monthly spending brake */
.bud-bar { padding-block: 4px 12px; }
.bud-meter { position: relative; overflow: visible; }
.bud-meter i { max-width: 100%; }
.bud-warn { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); border-radius: 1px; }
.aiz-bud .bud-pct { width: 90px; }
/* Community > Clubs: the player's own clubs with their crest */
.fly-club .cbadge, .fly-club svg { width: 24px; height: 24px; flex: none; }
.fly-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Block exam (src/exam.js): the title in the duel's banner and the result (passed / not passed, the questions, the trophy) */
.tb-q.tb-exam { cursor: default; }
.modal-exam .modal-body { display: flex; flex-direction: column; gap: 14px; }
.ex-head { display: flex; align-items: center; gap: 20px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }
.ex-head.pass { background: linear-gradient(110deg, rgba(227, 178, 60, .16), rgba(227, 178, 60, .02) 70%), var(--surface-2); box-shadow: inset 0 0 0 1px rgba(227, 178, 60, .35); }
.ex-trophy { width: 84px; height: 100px; flex: none; color: #737a99; }
.ex-trophy.earned { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.ex-trophy.new { animation: ex-earn 1.4s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes ex-earn { 0% { transform: scale(.2) rotate(-18deg); opacity: 0; filter: brightness(2.2); } 55% { transform: scale(1.18) rotate(4deg); opacity: 1; } 75% { transform: scale(.96) rotate(-2deg); } 100% { transform: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); } }
@media (prefers-reduced-motion: reduce) { .ex-trophy.new { animation: none; } }
.ex-score { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex-score b { font-size: 34px; line-height: 1; font-weight: 900; }
.ex-head.pass .ex-score b { color: var(--gold); }
.ex-score small { color: var(--muted); font-size: 13px; }
.ex-done { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ok); }
.ex-done .ico { width: 16px; height: 16px; }
.ex-new { font-size: 13px; font-weight: 700; color: var(--gold); }
.ex-retry { display: flex; gap: 10px; align-items: flex-start; }
.ex-retry .ico { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }
.ex-items { display: flex; flex-direction: column; gap: 10px; }
.ex-item { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.ex-q { display: flex; gap: 10px; align-items: flex-start; }
.ex-q b { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; }
.ex-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; font-weight: 800; }
.ex-pts { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(255, 107, 74, .16); color: #ff9b85; }
.ex-pts.p1 { background: rgba(244, 183, 64, .16); color: var(--gold); }
.ex-pts.p2 { background: rgba(53, 194, 165, .16); color: var(--ok); }
.ex-item p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.ex-item small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ex-a { color: var(--muted); }
.ex-c { padding-inline-start: 10px; border-inline-start: 3px solid var(--accent-soft); }
.ex-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-hi); }
.ex-l .ico { width: 15px; height: 15px; }
@media (max-width: 520px) { .ex-head { gap: 14px; padding: 14px; } .ex-trophy { width: 64px; height: 76px; } .ex-score b { font-size: 28px; } }

/* Profile: the lesson trophies (passed block exams) next to the tournament trophies */
.tr-sub { padding: 14px 18px 0; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tr-cells.lesson .tr-cell .trophy { width: 56px; height: 66px; }
.tr-cell.unearned { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: #6b7290; }
.tr-cell.unearned:hover { background: var(--surface-2); }
.tr-cell.unearned b { color: var(--muted); }

/* ---------- Sidebar: the Membership entry ----------
   Free players: a gold label with a soft glow and the shared .btn-shine sweep now and then. Members: their plan's
   emblem in the plan colour, calm (no sales look). The sweep stops with prefers-reduced-motion (.btn-shine).
   The phone drawers' Membership foot (.bd-link.bd-ms, nav.js drawerHtml) has the same look. */
.nav-link.nav-ms, .bd-link.bd-ms { --shine: 0; margin-top: 4px; font-weight: 900; color: #ffd36e; background: none; box-shadow: none; }
.nav-link.nav-ms.btn-shine::after { display: none; }
/* the shine runs through the gold lettering itself (no frame, no box) */
.nav-link.nav-ms > span, .bd-link.bd-ms > .bd-txt { background: linear-gradient(100deg, #f4b740 0%, #ffd36e 30%, #fff6d8 45%, #ffd36e 60%, #f4b740 100%); background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .005em; animation: navMsSheen 5.2s ease-in-out 2.4s infinite; }
@keyframes navMsSheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.nav-link.nav-ms > .ico, .bd-link.bd-ms > .ico { color: var(--gold); filter: drop-shadow(0 0 6px rgba(244, 183, 64, .65)); }
.nav-link.nav-ms:hover, .nav-item.fly > .nav-link.nav-ms, .bd-link.bd-ms:hover, .bd-link.bd-ms.on { background: rgba(244, 183, 64, .08); box-shadow: none; }
.nav-link.nav-ms.nav-member, .bd-link.bd-ms.nav-member { color: hsl(var(--h) calc(80% * var(--ps, 1)) 76%); background: none; box-shadow: none; }
.nav-link.nav-ms.nav-member > span, .bd-link.bd-ms.nav-member > .bd-txt { background: none; color: hsl(var(--h) calc(85% * var(--ps, 1)) 80%); animation: none; }
.nav-link.nav-ms.nav-member > .ico, .bd-link.bd-ms.nav-member > .ico { color: hsl(var(--h) calc(85% * var(--ps, 1)) 66%); filter: drop-shadow(0 0 6px hsl(var(--h) calc(90% * var(--ps, 1)) 60% / .55)); }
.nav-link.nav-ms.nav-member:hover, .bd-link.bd-ms.nav-member:hover, .bd-link.bd-ms.nav-member.on { background: hsl(var(--h) calc(55% * var(--ps, 1)) 50% / .1); box-shadow: none; }
.bd-link.bd-ms { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .nav-link.nav-ms > span, .bd-link.bd-ms > .bd-txt { animation: none; background-position: 50% 0; } }


/* ---------- Admin quick panel (admins only, public/js/admin-quick.js) ---------- */
.aq-bubble { position: fixed; z-index: 125; inset-inline-end: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #9a82ff, var(--accent) 55%, var(--accent-edge)); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: transform .15s, box-shadow .15s; }
.aq-bubble:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.aq-bubble .ico { width: 22px; height: 22px; }
.aq-open .aq-bubble { background: var(--surface-3); }
/* an open dialog (admin modals, confirm) is never covered by the bubble */
body:has(.modal-back) .aq-bubble { display: none; }
.aq-hidden { display: none; }
.aq-back { display: none; }
.aq-open .aq-back { display: block; position: fixed; inset: 0; z-index: 126; background: rgba(8, 9, 14, .45); }
.aq-panel { position: fixed; z-index: 127; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--bg-fly);
  box-shadow: -18px 0 50px rgba(0, 0, 0, .5), inset 1px 0 0 var(--line); transform: translateX(105%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
[dir="rtl"] .aq-panel { transform: translateX(-105%); }
.aq-open .aq-panel { transform: none; visibility: visible; transition: transform .2s ease; }
.aq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.aq-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aq-title .ico { color: var(--accent-hi); }
.aq-title b { font-size: 17px; }
.aq-title small { color: var(--faint); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aq-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
.aq-x:hover { background: var(--surface); color: #fff; }
.aq-body { flex: 1; overflow-y: auto; padding: 6px 16px 28px; overscroll-behavior: contain; }
.aq-busy .aq-body { opacity: .6; pointer-events: none; }
.aq-load { display: grid; place-items: center; padding: 60px 0; }
.aq-err { padding: 18px 0; color: #ff8a93; }
.aq-sec { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.aq-sec:last-child { border-bottom: 0; }
.aq-sec h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aq-plan { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: hsl(var(--h) calc(45% * var(--ps, 1)) 40% / .14); box-shadow: inset 0 0 0 1px hsl(var(--h) calc(60% * var(--ps, 1)) 60% / .2); }
.aq-plan-g { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: hsl(var(--h) calc(60% * var(--ps, 1)) 50% / .18); color: var(--muted); }
.aq-plan-g .ico { width: 24px; height: 24px; }
.aq-plan-t { display: flex; flex-direction: column; min-width: 0; }
.aq-plan-t b { font-size: 16px; }
.aq-plan-t small { color: var(--muted); font-size: 12.5px; }
.aq-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 13.5px; }
.aq-kv dt { color: var(--faint); font-weight: 600; }
.aq-kv dd { margin: 0; text-align: end; font-weight: 700; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; }
.aq-kv dd small { flex-basis: 100%; color: var(--faint); font-weight: 600; font-size: 12px; }
.aq-coins { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.aq-coins .ico { width: 16px; height: 16px; }
.aq-act { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); }
.aq-act.aq-inline { flex-direction: row; align-items: center; gap: 12px; }
.aq-act.aq-inline .aq-at { flex: 1; min-width: 0; }
.aq-act.aq-inline .btn { flex: none; }
.aq-at b { display: block; font-size: 14.5px; }
.aq-at small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.aq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aq-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.aq-chip:hover { color: #fff; background: var(--surface-3); }
.aq-chip.on { color: #fff; background: hsl(var(--h, 255) calc(55% * var(--ps, 1)) 45% / .35); box-shadow: inset 0 0 0 1.5px hsl(var(--h, 255) calc(80% * var(--ps, 1)) 66%); }
.aq-chip .pg { width: 16px; height: 16px; }
.aq-row { display: flex; gap: 6px; }
.aq-num { flex: 1; min-width: 0; height: 36px; }
.aq-danger { color: #ff8a93; }
.aq-danger:hover { color: #fff; background: rgba(239, 77, 90, .3); }
.aq-confirm { padding: 24px 26px; }
.aq-confirm h3 { font-size: 19px; }
.aq-confirm p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.aq-warn { padding: 10px 12px; border-radius: 10px; background: rgba(239, 77, 90, .12); color: #ffc7cc !important; box-shadow: inset 0 0 0 1px rgba(239, 77, 90, .4); }
.aq-confirm-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.aq-modal { max-width: 440px; }
.aq-danger-fill, .aq-danger-fill:hover { color: #fff; }

/* ---------- Frame collection (2026-11, public/js/frames.js) ----------
   Every frame of the collection carries .cfx: the rim is the padding (--cfp), ornaments are sized in % of the frame
   with px limits (they scale from the 72 px look picker to a full duel tile) and sit on the rim, never deep in the
   picture. Only transform, opacity, filter and background-position move; prefers-reduced-motion stops all of it. */
.cf.cfx { padding: var(--cfp, 10px); border-radius: var(--cfr, 12px); }
.cf.cfx .cf-in { border-radius: var(--cfi, 7px); }
.cf.cfx .cf-in > .tile, .cf.cfx .cf-in > .pv-tile, .cf.cfx .cf-in > .lb-tile, .cf.cfx .cf-in > .sp-cam { border-radius: var(--cfi, 7px); }
.pv-slot > .cf.cfx, .lb-media > .cf.cfx { margin: calc(-1 * var(--cfp, 10px)); }
.cfx-top { left: 50%; top: 0; width: var(--ow, clamp(34px, 24%, 92px)); transform: translate(-50%, var(--oy, -64%)); }
.cfx-bot { left: 50%; bottom: 0; width: var(--ow, clamp(44px, 30%, 120px)); transform: translate(-50%, var(--oy, 58%)); }
.cfx-c, .cfx-jewel, .cfx-spark { position: absolute; z-index: 3; width: var(--cs, 16px); height: var(--cs, 16px); pointer-events: none; transform: translate(-50%, -50%); }
.cfx-c svg, .cfx-jewel svg, .cfx-spark svg { display: block; width: 100%; height: 100%; }
.cfx-c.tl, .cfx-jewel.tl, .cfx-spark.tl { left: calc(var(--cfp, 10px) / 2); top: calc(var(--cfp, 10px) / 2); }
.cfx-c.tr, .cfx-jewel.tr, .cfx-spark.tr { left: calc(100% - var(--cfp, 10px) / 2); top: calc(var(--cfp, 10px) / 2); }
.cfx-c.bl, .cfx-jewel.bl, .cfx-spark.bl { left: calc(var(--cfp, 10px) / 2); top: calc(100% - var(--cfp, 10px) / 2); }
.cfx-c.br, .cfx-jewel.br, .cfx-spark.br { left: calc(100% - var(--cfp, 10px) / 2); top: calc(100% - var(--cfp, 10px) / 2); }
/* a bevel line inside the rim, shared by the metal and stone frames */
.cf.cfx::before { content: ''; position: absolute; z-index: 2; inset: 3px; border-radius: calc(var(--cfr, 12px) - 3px); pointer-events: none; border: 1px solid var(--cfb, transparent); }

/* Black-Figure Vase (common): fired terracotta, black tongues pointing in from every side, palmettes on the corners */
.cf.frame-terracotta { --cfp: 11px; --cfr: 5px; --cfi: 3px; --cs: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M2.2 0h5.6v4.6a2.8 2.8 0 0 1-5.6 0z' fill='%231a100a'/%3E%3C/svg%3E") left top / 10px 10px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M2.2 10h5.6V5.4a2.8 2.8 0 0 0-5.6 0z' fill='%231a100a'/%3E%3C/svg%3E") left bottom / 10px 10px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M0 2.2v5.6h4.6a2.8 2.8 0 0 0 0-5.6z' fill='%231a100a'/%3E%3C/svg%3E") left top / 10px 10px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M10 2.2v5.6H5.4a2.8 2.8 0 0 1 0-5.6z' fill='%231a100a'/%3E%3C/svg%3E") right top / 10px 10px repeat-y,
    linear-gradient(160deg, #e08a4f, #c4632f 45%, #a94f24 75%, #c96a35);
  box-shadow: 0 0 0 1.5px #1a100a, 0 0 0 3px #c4632f, 0 0 0 4px #1a100a, 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-terracotta .cf-in { box-shadow: 0 0 0 1.5px #1a100a, 0 0 0 3px rgba(201, 106, 53, .9); }

/* Olive Wood (common): warm grain, darker mitred edges and two olive sprigs */
.cf.frame-olivewood { --cfp: 10px; --cfr: 8px; --cfi: 4px; --cfb: rgba(255, 232, 196, .28);
  background: repeating-linear-gradient(0deg, rgba(70, 40, 16, 0) 0 2px, rgba(70, 40, 16, .2) 2px 3px, rgba(255, 228, 186, .07) 3px 5px, rgba(70, 40, 16, 0) 5px 8px) top / 100% var(--cfp) no-repeat,
    repeating-linear-gradient(0deg, rgba(70, 40, 16, 0) 0 3px, rgba(70, 40, 16, .2) 3px 4px, rgba(255, 228, 186, .07) 4px 6px) bottom / 100% var(--cfp) no-repeat,
    repeating-linear-gradient(90deg, rgba(70, 40, 16, 0) 0 2px, rgba(70, 40, 16, .2) 2px 3px, rgba(255, 228, 186, .07) 3px 5px, rgba(70, 40, 16, 0) 5px 8px),
    radial-gradient(ellipse 30% 18% at 22% 70%, rgba(60, 32, 12, .35), transparent 70%), radial-gradient(ellipse 24% 14% at 80% 24%, rgba(60, 32, 12, .3), transparent 70%),
    linear-gradient(135deg, #b98a57, #9a6b3d 40%, #c39462 62%, #8a5d34);
  box-shadow: 0 0 0 1px #3b2410, 0 10px 24px rgba(0, 0, 0, .38); }
.cf.frame-olivewood .cf-in { box-shadow: 0 0 0 1px #3b2410, 0 0 0 2px rgba(255, 228, 186, .18); }
.cfx-sprig { width: clamp(34px, 27%, 96px); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.cfx-sprig.tl { left: 0; top: 0; transform: translate(-34%, -40%) scale(1, -1); }
.cfx-sprig.br { right: 0; bottom: 0; transform: translate(34%, 40%) scale(-1, 1); }

/* Tessera Mosaic (rare): small stone tiles in sea blue, ochre and white between dark grout and an ochre line */
.cf.frame-mosaic { --cfp: 11px; --cfr: 6px; --cfi: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%233b342c'/%3E%3Crect x='0.47' y='0.37' width='4.3' height='4.3' rx='.6' fill='%232f6f9f'/%3E%3Crect x='5.58' y='0.26' width='4.3' height='4.3' rx='.6' fill='%23245a8a'/%3E%3Crect x='10.55' y='0.58' width='4.3' height='4.3' rx='.6' fill='%23245a8a'/%3E%3Crect x='15.59' y='0.54' width='4.3' height='4.3' rx='.6' fill='%23d6a345'/%3E%3Crect x='20.41' y='0.35' width='4.3' height='4.3' rx='.6' fill='%232f6f9f'/%3E%3Crect x='25.21' y='0.21' width='4.3' height='4.3' rx='.6' fill='%233b80b3'/%3E%3Crect x='0.70' y='5.33' width='4.3' height='4.3' rx='.6' fill='%23d6a345'/%3E%3Crect x='5.59' y='5.43' width='4.3' height='4.3' rx='.6' fill='%23245a8a'/%3E%3Crect x='10.60' y='5.70' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='15.42' y='5.36' width='4.3' height='4.3' rx='.6' fill='%233b80b3'/%3E%3Crect x='20.27' y='5.62' width='4.3' height='4.3' rx='.6' fill='%233b80b3'/%3E%3Crect x='25.36' y='5.68' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='0.39' y='10.25' width='4.3' height='4.3' rx='.6' fill='%23e9dcc0'/%3E%3Crect x='5.56' y='10.55' width='4.3' height='4.3' rx='.6' fill='%238fb3c9'/%3E%3Crect x='10.60' y='10.27' width='4.3' height='4.3' rx='.6' fill='%232f6f9f'/%3E%3Crect x='15.21' y='10.63' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='20.60' y='10.34' width='4.3' height='4.3' rx='.6' fill='%23d6a345'/%3E%3Crect x='25.47' y='10.60' width='4.3' height='4.3' rx='.6' fill='%232f6f9f'/%3E%3Crect x='0.53' y='15.63' width='4.3' height='4.3' rx='.6' fill='%23b55a36'/%3E%3Crect x='5.49' y='15.63' width='4.3' height='4.3' rx='.6' fill='%23b55a36'/%3E%3Crect x='10.57' y='15.30' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='15.46' y='15.36' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='20.38' y='15.52' width='4.3' height='4.3' rx='.6' fill='%23d6a345'/%3E%3Crect x='25.53' y='15.49' width='4.3' height='4.3' rx='.6' fill='%23245a8a'/%3E%3Crect x='0.63' y='20.46' width='4.3' height='4.3' rx='.6' fill='%238fb3c9'/%3E%3Crect x='5.38' y='20.66' width='4.3' height='4.3' rx='.6' fill='%233b80b3'/%3E%3Crect x='10.49' y='20.29' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='15.67' y='20.55' width='4.3' height='4.3' rx='.6' fill='%23245a8a'/%3E%3Crect x='20.62' y='20.67' width='4.3' height='4.3' rx='.6' fill='%23d6a345'/%3E%3Crect x='25.56' y='20.33' width='4.3' height='4.3' rx='.6' fill='%23e9dcc0'/%3E%3Crect x='0.69' y='25.26' width='4.3' height='4.3' rx='.6' fill='%23b55a36'/%3E%3Crect x='5.23' y='25.66' width='4.3' height='4.3' rx='.6' fill='%231f4a75'/%3E%3Crect x='10.37' y='25.24' width='4.3' height='4.3' rx='.6' fill='%232f6f9f'/%3E%3Crect x='15.33' y='25.20' width='4.3' height='4.3' rx='.6' fill='%23d6a345'/%3E%3Crect x='20.32' y='25.27' width='4.3' height='4.3' rx='.6' fill='%233b80b3'/%3E%3Crect x='25.54' y='25.63' width='4.3' height='4.3' rx='.6' fill='%232f6f9f'/%3E%3C/svg%3E") 0 0 / 30px 30px, #3b342c;
  box-shadow: 0 0 0 1.5px #2a241e, 0 0 0 3px #d6a345, 0 0 0 4px #2a241e, 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-mosaic .cf-in { box-shadow: 0 0 0 1.5px #2a241e, 0 0 0 3px #d6a345; }

/* Minoan Spirals (rare): red ochre, running spirals in cream on every side, blue rosettes on the corners */
.cf.frame-minoan { --cfp: 12px; --cfr: 4px; --cfi: 2px; --cs: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cg fill='none' stroke='%23f2e3c2' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='3.3'/%3E%3Ccircle cx='18' cy='6' r='3.3'/%3E%3Cpath d='M6 9.3C10 9.3 14 2.7 18 2.7M18 9.3C22 9.3 26 2.7 30 2.7M-6 9.3C-2 9.3 2 2.7 6 2.7'/%3E%3C/g%3E%3Cg fill='%23e8b04a'%3E%3Ccircle cx='6' cy='6' r='1.4'/%3E%3Ccircle cx='18' cy='6' r='1.4'/%3E%3C/g%3E%3C/svg%3E") left 6px top 0 / 24px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cg fill='none' stroke='%23f2e3c2' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='3.3'/%3E%3Ccircle cx='18' cy='6' r='3.3'/%3E%3Cpath d='M6 9.3C10 9.3 14 2.7 18 2.7M18 9.3C22 9.3 26 2.7 30 2.7M-6 9.3C-2 9.3 2 2.7 6 2.7'/%3E%3C/g%3E%3Cg fill='%23e8b04a'%3E%3Ccircle cx='6' cy='6' r='1.4'/%3E%3Ccircle cx='18' cy='6' r='1.4'/%3E%3C/g%3E%3C/svg%3E") left 6px bottom 0 / 24px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24'%3E%3Cg transform='translate(12 0) rotate(90)'%3E%3Cg fill='none' stroke='%23f2e3c2' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='3.3'/%3E%3Ccircle cx='18' cy='6' r='3.3'/%3E%3Cpath d='M6 9.3C10 9.3 14 2.7 18 2.7M18 9.3C22 9.3 26 2.7 30 2.7M-6 9.3C-2 9.3 2 2.7 6 2.7'/%3E%3C/g%3E%3Cg fill='%23e8b04a'%3E%3Ccircle cx='6' cy='6' r='1.4'/%3E%3Ccircle cx='18' cy='6' r='1.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") left 0 top 6px / 12px 24px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24'%3E%3Cg transform='translate(12 0) rotate(90)'%3E%3Cg fill='none' stroke='%23f2e3c2' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='3.3'/%3E%3Ccircle cx='18' cy='6' r='3.3'/%3E%3Cpath d='M6 9.3C10 9.3 14 2.7 18 2.7M18 9.3C22 9.3 26 2.7 30 2.7M-6 9.3C-2 9.3 2 2.7 6 2.7'/%3E%3C/g%3E%3Cg fill='%23e8b04a'%3E%3Ccircle cx='6' cy='6' r='1.4'/%3E%3Ccircle cx='18' cy='6' r='1.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") right 0 top 6px / 12px 24px repeat-y,
    linear-gradient(180deg, #b23a22, #942d18);
  box-shadow: 0 0 0 1.5px #120c08, 0 0 0 4px #e8b04a, 0 0 0 5.5px #120c08, 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-minoan .cf-in { box-shadow: 0 0 0 1.5px #120c08, 0 0 0 3.5px #1f4f8f, 0 0 0 4.5px #120c08; }

/* Obsidian Edge (rare): black volcanic glass with sharp highlights and a cold violet sheen */
.cf.frame-obsidian { --cfp: 11px; --cfr: 12px; --cfi: 6px; --cfb: rgba(214, 200, 255, .32);
  background: linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, .22) 19%, transparent 21% 58%, rgba(190, 170, 255, .18) 59%, transparent 62%),
    linear-gradient(28deg, transparent 0 70%, rgba(150, 240, 255, .14) 71%, transparent 74%),
    radial-gradient(120% 90% at 18% 0%, #57447e 0%, transparent 46%), radial-gradient(90% 70% at 100% 100%, #2c4566 0%, transparent 50%), radial-gradient(60% 50% at 90% 0%, rgba(160, 120, 255, .35), transparent 70%),
    linear-gradient(160deg, #15131c, #050508 45%, #1d1828 70%, #07070b);
  box-shadow: 0 0 0 1px rgba(200, 186, 255, .45), 0 0 18px rgba(130, 100, 230, .22), 0 10px 28px rgba(0, 0, 0, .55); }
.cf.frame-obsidian .cf-in { box-shadow: 0 0 0 1px rgba(0, 0, 0, .9); }

/* Celestial Sphere (epic): night blue with twinkling stars, gold lines, an armillary sphere on the top edge */
.cf.frame-celestial { --cfp: 10px; --cfr: 12px; --cfi: 6px; --cfb: rgba(246, 215, 122, .7); --ow: clamp(30px, 17%, 64px); --oy: -66%;
  background: radial-gradient(1.2px 1.2px at 8% 40%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 22% 6%, #fff 60%, transparent 61%), radial-gradient(1.3px 1.3px at 64% 4%, #dfe8ff 60%, transparent 61%),
    radial-gradient(1px 1px at 96% 30%, #fff 60%, transparent 61%), radial-gradient(1.2px 1.2px at 94% 78%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 40% 96%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 3% 88%, #ffe9a6 60%, transparent 61%), radial-gradient(1px 1px at 76% 97%, #fff 60%, transparent 61%),
    linear-gradient(180deg, #1b2a5c, #0d1433 60%, #141c44);
  box-shadow: 0 0 0 1px #f6d77a, 0 0 0 2.5px #0a1030, 0 0 20px rgba(80, 110, 220, .35), 0 10px 28px rgba(0, 0, 0, .45); }
.cf.frame-celestial::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(1.6px 1.6px at 14% 4%, #fff 60%, transparent 61%), radial-gradient(1.6px 1.6px at 86% 5%, #fff 60%, transparent 61%), radial-gradient(1.8px 1.8px at 4% 60%, #fff 60%, transparent 61%),
    radial-gradient(1.6px 1.6px at 97% 52%, #fff 60%, transparent 61%), radial-gradient(1.8px 1.8px at 58% 96%, #fff 60%, transparent 61%), radial-gradient(1.6px 1.6px at 20% 95%, #fff 60%, transparent 61%);
  animation: cfxTwinkle 3.6s ease-in-out infinite; }
.cf.frame-celestial .cf-in { box-shadow: 0 0 0 1px rgba(246, 215, 122, .85), 0 0 0 2px #0a1030; }
.cfx-armillary { filter: drop-shadow(0 0 6px rgba(246, 215, 122, .35)) drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
@keyframes cfxTwinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* Oracle of Delphi (epic): plum smoke, a bronze tripod on the top edge whose violet smoke rises and fades */
.cf.frame-delphi { --cfp: 10px; --cfr: 12px; --cfi: 6px; --cfb: rgba(230, 200, 255, .3); --ow: clamp(30px, 17%, 64px); --oy: -76%;
  background: radial-gradient(60% 40% at 50% 0%, rgba(205, 160, 255, .45), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(120, 60, 170, .5), transparent 70%), radial-gradient(50% 60% at 100% 70%, rgba(90, 40, 140, .55), transparent 70%),
    linear-gradient(160deg, #3b1f52, #24123a 50%, #3a1c4e);
  box-shadow: 0 0 0 1px #c9a2ff, 0 0 0 2.5px #170a24, 0 0 22px rgba(170, 110, 255, .35), 0 10px 28px rgba(0, 0, 0, .45); animation: cfxBreath 6s ease-in-out infinite; }
.cf.frame-delphi .cf-in { box-shadow: 0 0 0 1px rgba(224, 190, 255, .55), 0 0 0 2px #170a24; }
.cfx-tripod { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.cfx-tripod .cfx-smoke { transform-box: fill-box; transform-origin: 50% 100%; animation: cfxSmoke 5s ease-in-out infinite; }
@keyframes cfxSmoke { 0% { transform: translateY(4px) scale(.9); opacity: .55; } 50% { transform: translateY(-2px) scale(1.04); opacity: 1; } 100% { transform: translateY(4px) scale(.9); opacity: .55; } }
@keyframes cfxBreath { 0%, 100% { box-shadow: 0 0 0 1px #c9a2ff, 0 0 0 2.5px #170a24, 0 0 16px rgba(170, 110, 255, .25), 0 10px 28px rgba(0, 0, 0, .45); } 50% { box-shadow: 0 0 0 1px #c9a2ff, 0 0 0 2.5px #170a24, 0 0 28px rgba(170, 110, 255, .45), 0 10px 28px rgba(0, 0, 0, .45); } }

/* Aurora (epic): ribbons of green, teal and violet drifting slowly around a dark rim */
.cf.frame-aurora { --cfp: 8px; --cfr: 14px; --cfi: 8px;
  background: linear-gradient(115deg, #06231c 0%, #0f6b52 14%, #2fe0a4 26%, #1a8fb0 38%, #3b5fd8 50%, #8a4fe0 62%, #2fe0a4 76%, #0f6b52 88%, #06231c 100%) 50% 50% / 170% 170%;
  box-shadow: 0 0 0 1px rgba(170, 255, 220, .5), 0 0 22px rgba(47, 224, 164, .3), 0 0 40px rgba(110, 80, 230, .2), 0 10px 28px rgba(0, 0, 0, .45); animation: cfxDrift 14s ease-in-out infinite alternate; }
.cf.frame-aurora::before { inset: 2px; border-radius: 12px; border-color: rgba(255, 255, 255, .22); }
.cf.frame-aurora .cf-in { box-shadow: 0 0 0 1px rgba(3, 20, 18, .9); }
@keyframes cfxDrift { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }

/* Byzantine Gold (legendary): gold tesserae, a string of pearls, garnets on the corners and sapphires on the sides */
.cf.frame-byzantine { --cfp: 13px; --cfr: 8px; --cfi: 4px; --cs: 19px;
  background: linear-gradient(135deg, rgba(255, 250, 225, .35), transparent 30% 70%, rgba(255, 248, 215, .25)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%237a520b'/%3E%3Crect x='0.35' y='0.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='4.35' y='0.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='8.35' y='0.35' width='3.3' height='3.3' rx='.4' fill='%23f6d77a'/%3E%3Crect x='12.35' y='0.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='16.35' y='0.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='20.35' y='0.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='0.35' y='4.35' width='3.3' height='3.3' rx='.4' fill='%23f6d77a'/%3E%3Crect x='4.35' y='4.35' width='3.3' height='3.3' rx='.4' fill='%23b8841f'/%3E%3Crect x='8.35' y='4.35' width='3.3' height='3.3' rx='.4' fill='%23c9932a'/%3E%3Crect x='12.35' y='4.35' width='3.3' height='3.3' rx='.4' fill='%23d9a83a'/%3E%3Crect x='16.35' y='4.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='20.35' y='4.35' width='3.3' height='3.3' rx='.4' fill='%23edc659'/%3E%3Crect x='0.35' y='8.35' width='3.3' height='3.3' rx='.4' fill='%23c9932a'/%3E%3Crect x='4.35' y='8.35' width='3.3' height='3.3' rx='.4' fill='%23f6d77a'/%3E%3Crect x='8.35' y='8.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='12.35' y='8.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='16.35' y='8.35' width='3.3' height='3.3' rx='.4' fill='%23c9932a'/%3E%3Crect x='20.35' y='8.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='0.35' y='12.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='4.35' y='12.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='8.35' y='12.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='12.35' y='12.35' width='3.3' height='3.3' rx='.4' fill='%23f6d77a'/%3E%3Crect x='16.35' y='12.35' width='3.3' height='3.3' rx='.4' fill='%23b8841f'/%3E%3Crect x='20.35' y='12.35' width='3.3' height='3.3' rx='.4' fill='%23b8841f'/%3E%3Crect x='0.35' y='16.35' width='3.3' height='3.3' rx='.4' fill='%23f6d77a'/%3E%3Crect x='4.35' y='16.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='8.35' y='16.35' width='3.3' height='3.3' rx='.4' fill='%23b8841f'/%3E%3Crect x='12.35' y='16.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='16.35' y='16.35' width='3.3' height='3.3' rx='.4' fill='%23d9a83a'/%3E%3Crect x='20.35' y='16.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='0.35' y='20.35' width='3.3' height='3.3' rx='.4' fill='%23c9932a'/%3E%3Crect x='4.35' y='20.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='8.35' y='20.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3Crect x='12.35' y='20.35' width='3.3' height='3.3' rx='.4' fill='%23b8841f'/%3E%3Crect x='16.35' y='20.35' width='3.3' height='3.3' rx='.4' fill='%23fbe7a1'/%3E%3Crect x='20.35' y='20.35' width='3.3' height='3.3' rx='.4' fill='%23e6b94a'/%3E%3C/svg%3E") 0 0 / 24px 24px, #7a520b;
  box-shadow: 0 0 0 1px #fff1c2, 0 0 0 2.5px #4a3005, 0 0 24px rgba(240, 190, 80, .3), 0 12px 30px rgba(0, 0, 0, .45); }
.cf.frame-byzantine::before { inset: auto; left: calc(var(--cfp) - 4px); top: calc(var(--cfp) - 4px); right: calc(var(--cfp) - 4px); bottom: calc(var(--cfp) - 4px); border: 2.5px dotted #fff6e0; border-radius: 6px; filter: drop-shadow(0 .5px .5px rgba(0, 0, 0, .5)); }
.cf.frame-byzantine::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 252, 230, .65) 50%, transparent 60% 100%) 100% 0 / 320% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cfGlint 8s ease-in-out infinite; }
.cf.frame-byzantine .cf-in { box-shadow: 0 0 0 1.5px #4a3005; }
.cfx-jewel { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.cfx-jewel.mt { left: 50%; top: calc(var(--cfp) / 2); } .cfx-jewel.mb { left: 50%; top: calc(100% - var(--cfp) / 2); }
.cfx-jewel.ml { left: calc(var(--cfp) / 2); top: 50%; } .cfx-jewel.mr { left: calc(100% - var(--cfp) / 2); top: 50%; }
.cfx-jewel.mt, .cfx-jewel.mb, .cfx-jewel.ml, .cfx-jewel.mr { width: calc(var(--cs) - 3px); height: calc(var(--cs) - 3px); }

/* Holographic (legendary): iridescent foil with fine lines, a light that sweeps across it and four sparkles */
.cf.frame-holo { --cfp: 9px; --cfr: 14px; --cfi: 8px; --cfb: rgba(255, 255, 255, .65); --cs: 13px;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 3px, rgba(255, 255, 255, .22) 3px 4px),
    linear-gradient(115deg, #ffc6f2 0%, #c4eaff 16%, #d4ffd8 30%, #fff1b8 44%, #f5c8ff 58%, #b8e4ff 72%, #d8ffe6 86%, #ffc6f2 100%) 0 0 / 260% 260%;
  box-shadow: 0 0 0 1px #ffffff, 0 0 0 2.5px #5d6478, 0 0 22px rgba(200, 180, 255, .4), 0 10px 28px rgba(0, 0, 0, .45); animation: cfxFoil 9s ease-in-out infinite alternate; }
.cf.frame-holo .cf-in { box-shadow: 0 0 0 1px rgba(60, 64, 84, .9), 0 0 0 2px rgba(255, 255, 255, .5); }
.cfx-spark { filter: drop-shadow(0 0 3px #e7d8ff); animation: cfTwinkle 3s ease-in-out infinite; }
.cfx-spark.tr { animation-delay: -.8s; } .cfx-spark.bl { animation-delay: -1.7s; } .cfx-spark.br { animation-delay: -2.3s; }
@keyframes cfxFoil { 0% { background-position: 0 0, 0% 40%; } 100% { background-position: 0 0, 100% 60%; } }

/* Parthenon at Dawn (limited): Pentelic marble, a gold line, the temple front lit by the rising sun */
.cf.frame-parthenon { --cfp: 11px; --cfr: 6px; --cfi: 3px; --cfb: rgba(214, 168, 80, .85); --ow: clamp(44px, 32%, 128px); --oy: -76%;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255, 196, 110, .55), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23a99c86' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M-10 30C20 20 40 50 70 40S110 10 130 26' stroke-width='1.1'/%3E%3Cpath d='M-10 92C24 100 46 74 80 86S112 112 130 100' stroke-width='.8'/%3E%3Cpath d='M40 -10C46 20 30 40 44 70S40 110 48 130' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, linear-gradient(160deg, #fbf3e4, #ead9bb 55%, #f6ead4);
  box-shadow: 0 0 0 1px #b49a72, 0 0 26px rgba(255, 170, 80, .28), 0 12px 30px rgba(0, 0, 0, .45); }
.cf.frame-parthenon .cf-in { box-shadow: 0 0 0 1px #8a6a3c, 0 0 0 2.5px rgba(214, 168, 80, .9); }
.cfx-temple { filter: drop-shadow(0 2px 3px rgba(60, 30, 0, .4)); }

/* Chariot of Helios (limited): rays of beaten gold around the rim, the blazing sun on the top edge, its rays turn slowly */
.cf.frame-helios { --cfp: 11px; --cfr: 14px; --cfi: 7px; --cfb: rgba(255, 246, 200, .8); --ow: clamp(36px, 22%, 86px); --oy: -60%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .16) 0 4deg, rgba(255, 255, 255, 0) 4deg 9deg),
    radial-gradient(120% 120% at 50% 0%, #fff0a8, #f7b928 40%, #d9780c 75%, #b25806);
  box-shadow: 0 0 0 1px #fff2b8, 0 0 0 2.5px #7a3a02, 0 0 30px rgba(255, 170, 40, .45), 0 12px 30px rgba(0, 0, 0, .45); }
.cf.frame-helios .cf-in { box-shadow: 0 0 0 1px #7a3a02, 0 0 0 2px rgba(255, 240, 180, .5); }
.cfx-sun { filter: drop-shadow(0 0 10px rgba(255, 190, 60, .6)); }
.cfx-sun .cfx-rays { transform-box: view-box; transform-origin: 50% 50%; animation: cfxSpin 60s linear infinite; }
@keyframes cfxSpin { to { transform: rotate(360deg); } }

/* Trident of Poseidon (limited): deep sea, white wave crests rolling along every side, the golden trident above */
.cf.frame-poseidon { --cfp: 11px; --cfr: 10px; --cfi: 5px; --ow: clamp(24px, 12%, 46px); --oy: -70%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cg transform='translate(20 10) rotate(180)'%3E%3Cpath d='M0 10V7.5C3 7.5 4.5 5.5 4.5 3.6 4.5 1.8 6 .6 7.8.6 9.8.6 11 2 11 3.6 11 5 10 5.8 9 5.8 8 5.8 7.4 5.1 7.6 4.2 8.6 4.6 9.4 4 9.2 3.3 8.9 2.3 7.4 2.1 6.6 3 5.6 4.2 6.2 7.5 9.6 7.5H20V10z' fill='%23e9f7ff'/%3E%3C/g%3E%3C/svg%3E") left top / 20px 10px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 10V7.5C3 7.5 4.5 5.5 4.5 3.6 4.5 1.8 6 .6 7.8.6 9.8.6 11 2 11 3.6 11 5 10 5.8 9 5.8 8 5.8 7.4 5.1 7.6 4.2 8.6 4.6 9.4 4 9.2 3.3 8.9 2.3 7.4 2.1 6.6 3 5.6 4.2 6.2 7.5 9.6 7.5H20V10z' fill='%23e9f7ff'/%3E%3C/svg%3E") left bottom / 20px 10px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='20'%3E%3Cg transform='translate(0 20) rotate(-90)'%3E%3Cpath d='M0 10V7.5C3 7.5 4.5 5.5 4.5 3.6 4.5 1.8 6 .6 7.8.6 9.8.6 11 2 11 3.6 11 5 10 5.8 9 5.8 8 5.8 7.4 5.1 7.6 4.2 8.6 4.6 9.4 4 9.2 3.3 8.9 2.3 7.4 2.1 6.6 3 5.6 4.2 6.2 7.5 9.6 7.5H20V10z' fill='%23e9f7ff'/%3E%3C/g%3E%3C/svg%3E") left top / 10px 20px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='20'%3E%3Cg transform='translate(10 0) rotate(90)'%3E%3Cpath d='M0 10V7.5C3 7.5 4.5 5.5 4.5 3.6 4.5 1.8 6 .6 7.8.6 9.8.6 11 2 11 3.6 11 5 10 5.8 9 5.8 8 5.8 7.4 5.1 7.6 4.2 8.6 4.6 9.4 4 9.2 3.3 8.9 2.3 7.4 2.1 6.6 3 5.6 4.2 6.2 7.5 9.6 7.5H20V10z' fill='%23e9f7ff'/%3E%3C/g%3E%3C/svg%3E") right top / 10px 20px repeat-y,
    linear-gradient(180deg, #0f6f8f, #0a4a6e 55%, #0d5f80);
  box-shadow: 0 0 0 1px #9fe6ff, 0 0 0 2.5px #04263a, 0 0 24px rgba(40, 170, 220, .35), 0 12px 30px rgba(0, 0, 0, .45); }
.cf.frame-poseidon .cf-in { box-shadow: 0 0 0 1px #04263a, 0 0 0 2px rgba(159, 230, 255, .55); }
.cfx-trident { filter: drop-shadow(0 0 6px rgba(255, 220, 120, .45)) drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }

/* Founder's Laurel: a gold band around a marble band, gold rosettes, the engraved plaque with laurel at the foot */
.cf.frame-founder { --cfp: 13px; --cfr: 10px; --cfi: 4px; --cs: 15px; --ow: clamp(64px, 48%, 180px); --oy: 56%;
  background: linear-gradient(160deg, #fff1c2 0%, #e9c45e 18%, #a8790f 43%, #f6dc8c 62%, #9c6f0c 84%, #e2bb52 100%);
  box-shadow: 0 0 0 1px rgba(255, 240, 190, .8), 0 0 0 2.5px #4d3405, 0 0 26px rgba(240, 196, 90, .32), 0 12px 30px rgba(0, 0, 0, .45); }
.cf.frame-founder::before { z-index: 0; inset: 4px; border-radius: 7px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23a99c86' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M-10 30C20 20 40 50 70 40S110 10 130 26' stroke-width='1.1'/%3E%3Cpath d='M-10 92C24 100 46 74 80 86S112 112 130 100' stroke-width='.8'/%3E%3Cpath d='M40 -10C46 20 30 40 44 70S40 110 48 130' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, linear-gradient(160deg, #fbf8f2, #e6e1d7 55%, #f4f0e8); box-shadow: inset 0 0 0 1px rgba(90, 60, 6, .5), 0 0 0 1px rgba(255, 246, 210, .8); }
.cf.frame-founder::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 4px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 252, 230, .7) 50%, transparent 60% 100%) 100% 0 / 320% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cfGlint 9s ease-in-out infinite; }
.cf.frame-founder .cf-in { box-shadow: 0 0 0 1px #8a6a1c, 0 0 0 2.5px rgba(233, 196, 94, .9); }
.cf.frame-founder .cfx-ros { --cfp: 4px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.cf.frame-founder .cfx-ros.tl { left: 6.5px; top: 6.5px; } .cf.frame-founder .cfx-ros.tr { left: calc(100% - 6.5px); top: 6.5px; }
.cf.frame-founder .cfx-ros.bl { left: 6.5px; top: calc(100% - 6.5px); } .cf.frame-founder .cfx-ros.br { left: calc(100% - 6.5px); top: calc(100% - 6.5px); }
.cfx-plaque { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)) drop-shadow(0 0 6px rgba(255, 215, 120, .25)); }

/* Tournament frames: polished metal with an enamel band in the colour of the format, the format's trophy on the top
   edge between two sprigs; champions in gold (with a slow glint), finalists in silver */
.cf[class*="frame-t"][class*="-champion"], .cf[class*="frame-t"][class*="-finalist"] { --cfp: 11px; --cfr: 12px; --cfi: 6px; --ow: clamp(44px, 30%, 116px); --oy: -66%; }
.cf.frame-tq-champion, .cf.frame-ts-champion, .cf.frame-te-champion {
  background: linear-gradient(160deg, #fff1c2 0%, #e9c45e 18%, #a8790f 43%, #f6dc8c 62%, #9c6f0c 84%, #e2bb52 100%);
  box-shadow: 0 0 0 1px rgba(255, 240, 190, .75), 0 0 0 2.5px #4d3405, 0 0 22px rgba(240, 196, 90, .28), 0 12px 30px rgba(0, 0, 0, .42); }
.cf.frame-tq-finalist, .cf.frame-ts-finalist, .cf.frame-te-finalist {
  background: linear-gradient(140deg, #ffffff 0%, #dfe5ee 14%, #9aa6b8 38%, #f4f7fb 58%, #8c98ab 80%, #d7dee8 100%);
  box-shadow: 0 0 0 1px #3a4352, 0 0 0 2px rgba(230, 238, 250, .25), 0 0 18px rgba(200, 215, 235, .18), 0 10px 26px rgba(0, 0, 0, .38); }
.cf.frame-tq-champion::before, .cf.frame-tq-finalist::before { --en: #b3122e; }
.cf.frame-ts-champion::before, .cf.frame-ts-finalist::before { --en: #1d4fb8; }
.cf.frame-te-champion::before, .cf.frame-te-finalist::before { --en: #0f7a4a; }
.cf.frame-tq-champion::before, .cf.frame-tq-finalist::before, .cf.frame-ts-champion::before, .cf.frame-ts-finalist::before, .cf.frame-te-champion::before, .cf.frame-te-finalist::before {
  inset: 4px; border-radius: 9px; border: 3px solid var(--en); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 1px 2px rgba(255, 255, 255, .35); }
.cf.frame-tq-champion::after, .cf.frame-ts-champion::after, .cf.frame-te-champion::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 4px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 252, 230, .7) 50%, transparent 60% 100%) 100% 0 / 320% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cfGlint 9s ease-in-out infinite; }
.cf[class*="-champion"].cfx .cf-in { box-shadow: 0 0 0 1px #4d3405; }
.cf[class*="-finalist"].cfx .cf-in { box-shadow: 0 0 0 1px #3a4352; }
.cfx-trophy { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }

/* Scholar of the Lyceum: ivory marble, a lapis band, the lamp of learning on the top edge, a gold stud per block */
.cf.frame-lyceum { --cfp: 11px; --cfr: 8px; --cfi: 4px; --ow: clamp(34px, 21%, 84px); --oy: -66%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23a99c86' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M-10 30C20 20 40 50 70 40S110 10 130 26' stroke-width='1.1'/%3E%3Cpath d='M-10 92C24 100 46 74 80 86S112 112 130 100' stroke-width='.8'/%3E%3Cpath d='M40 -10C46 20 30 40 44 70S40 110 48 130' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, linear-gradient(160deg, #fbf7ee, #e9e1d0 55%, #f6f0e2);
  box-shadow: 0 0 0 1px #8f7f60, 0 0 0 2.5px #1d3a78, 0 0 0 3.5px #c9a24a, 0 0 18px rgba(255, 215, 140, .2), 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-lyceum::before { inset: 4px; border-radius: 5px; border: 2px solid #1d3a78; box-shadow: 0 0 0 1px rgba(201, 162, 74, .9), inset 0 0 0 1px rgba(201, 162, 74, .9); }
.cf.frame-lyceum .cf-in { box-shadow: 0 0 0 1px #8f7f60; }
.cfx-lamp { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.cfx-lamp .cfx-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: cfxFlick 2.4s ease-in-out infinite; }
.cfx-lamp .cfx-halo { animation: cfxTwinkle 2.4s ease-in-out infinite; }
.cfx-studs { --ow: clamp(40px, 34%, 112px); --oy: 30%; bottom: calc(var(--cfp) / 2); transform: translate(-50%, 50%); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
@keyframes cfxFlick { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.94, 1.06); } 60% { transform: scale(1.04, .95); } }

/* Fire of Prometheus: forged iron glowing from within, flames rising at its feet */
.cf.frame-prometheus { --cfp: 10px; --cfr: 10px; --cfi: 5px; --cfb: rgba(255, 170, 90, .35);
  background: linear-gradient(0deg, rgba(255, 90, 0, .6), transparent 42%), radial-gradient(1.4px 1.4px at 20% 6%, #ffb35a 60%, transparent 62%), radial-gradient(1.2px 1.2px at 72% 4%, #ffd27a 60%, transparent 62%), radial-gradient(1.4px 1.4px at 97% 34%, #ff9a3a 60%, transparent 62%), radial-gradient(1.2px 1.2px at 3% 40%, #ffb35a 60%, transparent 62%),
    radial-gradient(90% 70% at 50% 110%, #ff6a00 0%, transparent 60%), linear-gradient(160deg, #3a2a24, #1b1310 50%, #2c1f1a);
  box-shadow: 0 0 0 1px #ff9a3a, 0 0 0 2.5px #160a04, 0 0 26px rgba(255, 110, 20, .45), 0 10px 28px rgba(0, 0, 0, .5); animation: cfxEmber 3.2s ease-in-out infinite; }
.cf.frame-prometheus .cf-in { box-shadow: 0 0 0 1px #160a04, 0 0 0 2px rgba(255, 140, 50, .55); }
.cfx-fire { bottom: 0; width: clamp(22px, 15%, 58px); filter: drop-shadow(0 0 6px rgba(255, 120, 20, .6)); }
.cfx-fire.l { left: 0; transform: translate(-30%, 22%); } .cfx-fire.r { right: 0; transform: translate(30%, 22%) scaleX(-1); }
.cfx-fire .cfx-flick { transform-box: fill-box; transform-origin: 50% 100%; animation: cfxFlick 1.8s ease-in-out infinite; }
.cfx-fire .cfx-flick.b { animation-delay: -.9s; }
@keyframes cfxEmber { 0%, 100% { box-shadow: 0 0 0 1px #ff9a3a, 0 0 0 2.5px #160a04, 0 0 18px rgba(255, 110, 20, .35), 0 10px 28px rgba(0, 0, 0, .5); } 50% { box-shadow: 0 0 0 1px #ffb15a, 0 0 0 2.5px #160a04, 0 0 30px rgba(255, 110, 20, .6), 0 10px 28px rgba(0, 0, 0, .5); } }

/* Wings of Nike: pearl and gold, the wings of victory spread along the top edge */
.cf.frame-nike { --cfp: 10px; --cfr: 12px; --cfi: 6px; --cfb: rgba(214, 168, 80, .8); --ow: clamp(56px, 50%, 200px); --oy: -58%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 30% 70%, rgba(255, 255, 255, .5)), linear-gradient(160deg, #fbf8f1, #e8e0cf 45%, #f7f1e4 65%, #ddd2bc);
  box-shadow: 0 0 0 1px #d9a83a, 0 0 0 2.5px #5e3d05, 0 0 22px rgba(255, 230, 170, .3), 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-nike .cf-in { box-shadow: 0 0 0 1px #5e3d05, 0 0 0 2px rgba(217, 168, 58, .8); }
.cfx-wings { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }

/* Thunder of Zeus: storm clouds, an electric line and the golden thunderbolt; now and then lightning flickers */
.cf.frame-zeus { --cfp: 10px; --cfr: 12px; --cfi: 6px; --cfb: rgba(160, 210, 255, .55); --ow: clamp(48px, 34%, 132px); --oy: -60%;
  background: radial-gradient(40% 60% at 10% 20%, rgba(150, 170, 200, .45), transparent 70%), radial-gradient(45% 55% at 85% 85%, rgba(120, 140, 175, .45), transparent 70%), radial-gradient(35% 50% at 60% 0%, rgba(170, 190, 220, .4), transparent 70%),
    linear-gradient(160deg, #3a4560, #1c2234 55%, #2a3248);
  box-shadow: 0 0 0 1px #9fd0ff, 0 0 0 2.5px #0b1020, 0 0 20px rgba(110, 170, 255, .3), 0 10px 28px rgba(0, 0, 0, .5); }
.cf.frame-zeus::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(220, 240, 255, .9), 0 0 30px rgba(160, 210, 255, .8); animation: cfxFlash 7s linear infinite; }
.cf.frame-zeus .cf-in { box-shadow: 0 0 0 1px #0b1020, 0 0 0 2px rgba(159, 208, 255, .6); }
.cfx-bolt { filter: drop-shadow(0 0 6px rgba(255, 220, 120, .5)) drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
@keyframes cfxFlash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 1; } 88.5% { opacity: .2; } 90% { opacity: .9; } 92% { opacity: 0; } }

/* School of Athens: fresco blue and ochre bands, a coffered vault on the top edge */
.cf.frame-athens { --cfp: 11px; --cfr: 8px; --cfi: 4px; --ow: clamp(40px, 26%, 100px); --oy: -76%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .08) 1px, transparent 1px) 0 0 / 14px 100%, linear-gradient(160deg, #d8b98a, #c49a62 45%, #d9bd90 70%, #b98a55);
  box-shadow: 0 0 0 1px #6e4f2a, 0 0 0 3px #7fa3c4, 0 0 0 4px #4a3520, 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-athens::before { inset: 4px; border-radius: 5px; border: 1.5px solid #7fa3c4; box-shadow: inset 0 0 0 1px rgba(74, 53, 32, .6); }
.cf.frame-athens .cf-in { box-shadow: 0 0 0 1px #4a3520, 0 0 0 2.5px #e9dcc0; }
.cfx-vault { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }

/* small previews: the corner pieces and wide ornaments shrink with the frame */
.lk-art .cf.cfx, .col-art .cf.cfx { --cs: 12px; }
@media (prefers-reduced-motion: reduce) {
  .cf.frame-celestial::after, .cf.frame-delphi, .cfx-tripod .cfx-smoke, .cf.frame-aurora, .cf.frame-byzantine::after, .cf.frame-holo, .cfx-spark, .cfx-sun .cfx-rays,
  .cf.frame-founder::after, .cf[class*="-champion"]::after, .cfx-lamp .cfx-flame, .cfx-lamp .cfx-halo, .cf.frame-prometheus, .cfx-fire .cfx-flick, .cf.frame-zeus::after { animation: none; }
}

/* Shop: limited editions – no numbers, a "Limited Edition" label and a soft light sweep over the card */
.ed-sold { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.ed-sold { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
/* "Limited Edition": a small stamped gold label that sits next to the rarity (shop cards, item dialog, collection) */
.lim-badge { display: inline-flex; align-items: center; flex: none; height: 19px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 900; line-height: 1; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #2a1a00;
  background: linear-gradient(180deg, #ffe7a3 0%, #f5c454 55%, #e0a22e 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 70, 0, .35), 0 1px 6px rgba(240, 180, 60, .25); }
.ed-rar .lim-badge, .ed-eye .lim-badge, .oc-rar .lim-badge { margin-inline-start: 4px; letter-spacing: .1em; }
/* the shine: a soft light passes over the product itself (.lim-gleam lies on the object and is clipped to it, so the dark
   stage around it stays dark) – one pseudo-element per card, only transform and opacity move; a pass every 8 s, the
   cards one after another (.lim-shine sets the delay --ld) */
.lim-gleam { position: absolute; inset: 0; z-index: 4; border-radius: 12px; overflow: hidden; pointer-events: none; }
.lim-shine .lim-gleam::after { content: ''; position: absolute; top: -25%; bottom: -25%; left: 0; width: 46%; opacity: 0;
  background: linear-gradient(100deg, transparent 8%, rgba(255, 244, 220, .1) 34%, rgba(255, 252, 242, .34) 50%, rgba(255, 244, 220, .1) 66%, transparent 92%);
  transform: translateX(-120%) skewX(-16deg); animation: lim-sweep 8s cubic-bezier(.45, .05, .35, 1) var(--ld, 0s) infinite; will-change: transform, opacity; }
@keyframes lim-sweep {
  0% { transform: translateX(-120%) skewX(-16deg); opacity: 0; }
  4% { opacity: 1; }
  20% { opacity: 1; }
  24%, 100% { transform: translateX(330%) skewX(-16deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .lim-shine .lim-gleam::after { animation: none; opacity: 0; } }
.sd-ed { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-ed { font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* room for ornaments that reach beyond the frame: the founder plaque below, top pieces when tiles are stacked */
.pv-slot:has(> .cf .cfx-plaque) { padding-bottom: 62px; }
.pv-slot:has(> .cf .cfx-top) { padding-top: 60px; }
.lb-media:has(> .cf .cfx-top) { margin-top: 30px; }
.lb-media:has(> .cf .cfx-plaque) { margin-bottom: 26px; }
.tiles > .cf.frame-founder { margin-bottom: 24px; }
@media (max-width: 560px) { .tiles > .cf.cfx:has(.cfx-top) { margin-top: 20px; } .pv-slot:has(> .cf .cfx-top) { padding-top: 44px; } .pv-slot:has(> .cf .cfx-plaque) { padding-bottom: 54px; } }
.col-how { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* ---------- Background collection (2026-11, public/js/backgrounds.js) ----------
   Motion only in previews (the live camera rasterises the scene once): stars twinkle (.bgt), lamp flames flicker (.bgf),
   dust drifts in the atelier light (.bgd). Opacity and transform of tiny shapes only; prefers-reduced-motion stops it. */
.sp-cam svg .bgt { animation: bgTw 3.6s ease-in-out infinite; }
.sp-cam svg .bgt:nth-of-type(3n) { animation-delay: -1.2s; animation-duration: 4.4s; }
.sp-cam svg .bgt:nth-of-type(3n + 1) { animation-delay: -2.5s; }
.sp-cam svg .bgf { transform-box: fill-box; transform-origin: 50% 100%; animation: bgFl 1.7s ease-in-out infinite; }
.sp-cam svg .bgd { animation: bgDr 9s ease-in-out infinite alternate; }
.sp-cam svg .bgd2 { animation-duration: 12s; animation-delay: -4s; }
@keyframes bgTw { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
@keyframes bgFl { 0%, 100% { transform: scale(1, 1); opacity: 1; } 30% { transform: scale(.92, 1.08); opacity: .9; } 60% { transform: scale(1.05, .94); } }
@keyframes bgDr { from { transform: translate(0, 0); } to { transform: translate(14px, 22px); } }
@media (prefers-reduced-motion: reduce) { .sp-cam svg .bgt, .sp-cam svg .bgf, .sp-cam svg .bgd { animation: none; } }

/* ---------- Name collection (2026-11): the name effects of data.js "The name collection" ----------
   CSS only: a text-clipped gradient (with an underline drawn by ::after for Greek Key and Founder's Gold). Every colour
   stays light enough to read from 13 px on the dark page and on lighter cards; motion moves background-position only
   (no JS, no layout) and rests between sweeps; prefers-reduced-motion stops it (.nx rule above). */
.nx-stone { background-image: radial-gradient(circle, rgba(90, 80, 66, .38) 0 .55px, transparent .9px), radial-gradient(circle, rgba(255, 255, 255, .5) 0 .5px, transparent .9px), linear-gradient(180deg, #faf7f0 0%, #d9d2c5 38%, #b3ab9c 62%, #ece6da 100%);
  background-size: 5px 5px, 7px 6px, 100% 100%; background-position: 0 0, 2px 3px, 0 0; }
.nx-papyrus { background-image: repeating-linear-gradient(90deg, rgba(140, 104, 44, .2) 0 1px, transparent 1px 3.5px), linear-gradient(180deg, #fbefc8 0%, #ead39a 55%, #d2b16c 100%); background-size: 100% 100%, 100% 100%; }
.nx-obsidian { background-image: linear-gradient(115deg, #a79fc8 0%, #f4f0ff 16%, #b3aad6 30%, #8f86b6 48%, #e2dbfb 64%, #a097c4 82%, #cfc7ef 100%); background-size: 100% 100%; }
.nx-sunset { background-image: linear-gradient(90deg, #ffd27a 0%, #ffa06a 32%, #ff7a96 62%, #c69bff 100%); background-size: 100% 100%; }
.nx-meander, .nx-founder { position: relative; padding-bottom: .16em; }
.nx-meander { background-image: linear-gradient(180deg, #b9d4ff 0%, #6f9cf0 55%, #9fc0ff 100%); background-size: 100% 100%; }
.nx-meander::after, .nx-founder::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .17em; min-height: 3px; background-repeat: repeat-x; background-size: auto 100%; pointer-events: none; }
.nx-meander::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 9H20M2 9V1.2H13V6.6H7V4' fill='none' stroke='%23e7b440' stroke-width='1.7'/%3E%3C/svg%3E"); }
.nx-stars { background-image: radial-gradient(circle, #fff 0 .85px, transparent 1.3px), radial-gradient(circle, #fff6cf 0 .6px, transparent 1.05px), linear-gradient(180deg, #b3c6ff 0%, #7b92f6 55%, #a593fb 100%);
  background-size: 9px 8px, 13px 11px, 100% 100%; background-position: 0 0, 4px 3px, 0 0; animation: nxStars 9s linear infinite; }
@keyframes nxStars { from { background-position: 0 0, 4px 3px, 0 0; } to { background-position: 18px -16px, -22px 25px, 0 0; } }
.nx-holo { background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%), linear-gradient(110deg, #ff9ad5, #ffe29a 18%, #9affc8 36%, #8ad8ff 54%, #c9a2ff 72%, #ff9ad5 100%);
  background-size: 260% 100%, 300% 100%; background-position: 100% 0, 0 0; animation: nxHolo 7s linear infinite; }
@keyframes nxHolo { from { background-position: 130% 0, 0 0; } to { background-position: -130% 0, -300% 0; } }
.nx-lightning { background-image: linear-gradient(100deg, transparent 0 44%, #fff 45.5%, #eaf5ff 47%, transparent 48.5%, transparent 51%, #fff 52%, transparent 53.5%), linear-gradient(180deg, #ffffff 0%, #d4e9ff 38%, #8ec0ff 72%, #c9e2ff 100%);
  background-size: 300% 100%, 100% 100%; background-position: 100% 0, 0 0; filter: drop-shadow(0 0 3px rgba(110, 170, 255, .55)); animation: nxBolt 4.6s linear infinite; }
@keyframes nxBolt { 0%, 84% { background-position: 100% 0, 0 0; } 90% { background-position: 50% 0, 0 0; } 92% { background-position: 30% 0, 0 0; } 96%, 100% { background-position: 0 0, 0 0; } }
/* earned: the founders' engraved gold on a laurel line, the champions' laurel glint, the scholars' ink, Prometheus' fire */
.nx-founder { background-image: linear-gradient(100deg, transparent 42%, rgba(255, 252, 235, .95) 50%, transparent 58%), linear-gradient(180deg, #fff3c2 0%, #f3c650 44%, #c8921a 62%, #ffe28e 100%);
  background-size: 250% 100%, 100% 100%; background-position: 100% 0, 0 0; animation: nxGlint 6.5s ease-in-out infinite; }
.nx-founder::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4H24' stroke='%23d9a530' stroke-width='1.2'/%3E%3Cg fill='%23f0c24c'%3E%3Cellipse cx='6' cy='4' rx='3.6' ry='1.5' transform='rotate(-24 6 4)'/%3E%3Cellipse cx='16' cy='4' rx='3.6' ry='1.5' transform='rotate(24 16 4)'/%3E%3C/g%3E%3C/svg%3E"); }
.nx-champion { background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 240, .95) 50%, transparent 58%), linear-gradient(180deg, #e6f5a8 0%, #9fd46a 45%, #6fae4a 62%, #f0cf5c 100%);
  background-size: 250% 100%, 100% 100%; background-position: 100% 0, 0 0; animation: nxGlint 5s ease-in-out infinite; }
@keyframes nxGlint { 0%, 50% { background-position: 100% 0, 0 0; } 85%, 100% { background-position: 0 0, 0 0; } }
.nx-scholar { background-image: linear-gradient(90deg, #f1e7cd 0 31%, #ffd36a 33.3% 64%, #f1e7cd 66.6% 100%); background-size: 300% 100%; background-position: 100% 0; animation: nxInk 9s ease-in-out infinite; }
@keyframes nxInk { 0% { background-position: 100% 0; } 38%, 78% { background-position: 50% 0; } 100% { background-position: 0 0; } }
.nx-prometheus { background-image: linear-gradient(0deg, #ff5a26 0%, #ff9a2a 22%, #ffe07a 44%, #ff9a2a 66%, #ff5a26 100%); background-size: 100% 200%; filter: drop-shadow(0 0 4px rgba(255, 110, 40, .45)); animation: nxFire 2.4s linear infinite; }
@keyframes nxFire { from { background-position: 0 0; } to { background-position: 0 -200%; } }

/* ---------- Drachma (public/js/drachma.js): the gold coin everywhere, amounts in warm gold tabular figures ----------
   The coin is an SVG sprite symbol (dr-s simplified for 12–22 px, dr-l detailed above). Motion: a rare glint on the
   balance coins, a count-up with a bounce and sparkles when the balance changes, the difference floating up once,
   twinkles on the shop bundles. Everything that moves stops with prefers-reduced-motion. */
.dr-ico { overflow: visible; filter: drop-shadow(0 1px 1.2px rgba(30, 16, 0, .55)); }
.dr-ico.dr-l, .dr-ico.dr-m { filter: drop-shadow(0 1.5px 2.5px rgba(30, 16, 0, .5)); }
.dr-coin { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; }
.dr-coin > .dr-ico { display: block; }
/* the glint: a narrow light band crossing the coin about every 11 s */
.dr-glint::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(118deg, transparent 40%, rgba(255, 250, 225, .95) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 120% 0;
  animation: drGlint 11s ease-in-out 3s infinite; }
@keyframes drGlint { 0%, 90% { background-position: 120% 0; } 97%, 100% { background-position: -20% 0; } }
.drx { position: relative; }
/* a coin inside running text ("You get [coin] 15 Drachmas …") */
.dr-ico.dr-in { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; margin: 0 .08em; }
.dr-n { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; color: #ffd36a;
  background: linear-gradient(180deg, #fff3c4 0%, #ffd668 42%, #f0ae2e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* on gold buttons and light surfaces the number keeps the button's ink */
.btn-gold .dr-n, .dr-pack-price .dr-n, .aq-chip .dr-n { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.btn-gold .dr-ico, .sd-cost .dr-ico { filter: drop-shadow(0 1px 1px rgba(60, 35, 0, .45)); }
/* the balance changes: the coin hops, the number glows warm while it counts */
.dr-up .dr-ico { animation: drHop .75s cubic-bezier(.3, 1.5, .5, 1); }
.dr-down .dr-ico { animation: drDip .5s ease-out; }
.dr-up .dr-n { animation: drGlow 1.3s ease-out; }
@keyframes drHop { 0% { transform: none; } 30% { transform: translateY(-22%) scale(1.22) rotate(-10deg); } 60% { transform: translateY(0) scale(.94) rotate(4deg); } 100% { transform: none; } }
@keyframes drDip { 0% { transform: none; } 40% { transform: scale(.86); } 100% { transform: none; } }
@keyframes drGlow { 0% { filter: none; } 25% { filter: drop-shadow(0 0 6px rgba(255, 196, 70, .85)); } 100% { filter: none; } }
.dr-delta { position: absolute; inset-inline-end: 0; bottom: 70%; z-index: 5; pointer-events: none; white-space: nowrap; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; color: #ffd668; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); animation: drDelta 1.6s ease-out forwards; }
.dr-delta.down { color: var(--muted); }
@keyframes drDelta { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.dr-sparks { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 4; }
.dr-sparks i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; opacity: 0; background: #fff6cf; box-shadow: 0 0 6px #ffd25a;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: drSpark .85s ease-out var(--d) forwards; }
@keyframes drSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(6px) scale(.4); } 40% { opacity: 1; transform: rotate(var(--a)) translateX(14px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(22px) scale(.2); } }
@media (prefers-reduced-motion: reduce) {
  .dr-glint::after, .dr-delta, .dr-sparks { display: none; }
  .dr-up .dr-ico, .dr-down .dr-ico, .dr-up .dr-n { animation: none; }
}
/* the places: sidebar, home strip, shop wallet, bundles, prices, membership, upsell, rewards, admin panel */
.me-coins.drx { gap: 4px; color: inherit; }
.me-coins .dr-coin, .me-coins .dr-ico { width: 15px; height: 15px; }
.me-coins .dr-n { font-size: 13.5px; }
.me-coins:hover .dr-n { filter: brightness(1.12); }
.dash-coins .dr-coin { width: 28px; height: 28px; }
.dh-stats .dash-coins > .dr-coin .dr-ico, .dash-coins .dr-coin .dr-ico { width: 28px; height: 28px; }
.dash-coins .dr-n { font-size: 20px; }
.s3-bal .drx { gap: 7px; }
.s3-bal .drx .dr-coin, .s3-bal .drx .dr-ico { width: 24px; height: 24px; }
.s3-bal .drx .dr-n { font-size: 19px; }
.dr-pack-amt.coins .dr-n { font-size: 26px; }
.rw-line > .dr-ico { width: 24px; height: 24px; }
.aq-coins .dr-ico { width: 16px; height: 16px; }
@media (max-width: 700px) { .dr-pack-amt.coins .dr-n { font-size: 20px; } }
/* where the difference floats: inside the home strip (it clips), next to the sidebar balance, over the shop wallet */
.dash-coins { position: relative; }
.dash-coins .dr-delta { bottom: auto; top: 1px; inset-inline-end: 50px; font-size: 11.5px; }
.me-coins .dr-delta { bottom: auto; top: 0; inset-inline-end: auto; inset-inline-start: 100%; margin-inline-start: 6px; font-size: 11.5px; }
.s3-bal .dr-delta { bottom: 92%; }

/* ---------- Profile: the Collection tab (app.js collectionTab) ---------- */
.pcol { display: flex; flex-direction: column; gap: 20px; }
.pcol-top { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pcol-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pcol-hd h3 { font-size: 19px; }
.pcol-toc { display: flex; gap: 8px; flex-wrap: wrap; }
.pcol-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pcol-toc a:hover { color: #fff; background: var(--surface-3); }
.pcol-toc a b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.pcol-sec { scroll-margin-top: 20px; }
.pcol-sec .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pcol-n { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcol-body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.pcol-sub { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pcol-sub span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; }
@media (max-width: 520px) { .pcol-sub span { white-space: normal; } .pcol-sub .ico { flex: none; } .pcol-sub i { min-width: 12px; } }
.pcol-sub .ico { width: 13px; height: 13px; }
.pcol-sub i { flex: 1; height: 1px; background: var(--line); }
.pcol-sub em { font-style: normal; font-variant-numeric: tabular-nums; }
.pcol-it { display: flex; flex-direction: column; width: 100%; }
.pcol-it .col-art { height: 132px; padding-top: 8px; overflow: hidden; }
.pcol-it .col-art > .cf, .pcol-it .col-art > .sp-cam { width: 112px; }
.pcol-it .col-art .cf .sp-cam { width: 100%; }
.pcol-it .col-art .nx-stage { font-size: 22px; padding: 4px 8px; min-height: 0; max-width: 100%; overflow: hidden; }
.pcol-it .col-meta { flex: 1; min-height: 72px; }
.pcol-it.eq { box-shadow: inset 0 0 0 1.5px rgba(53, 194, 165, .55); }
.pcol-it .col-ed { position: absolute; inset-inline-start: 8px; bottom: 7px; z-index: 3; padding: 2px 7px; border-radius: 999px; background: rgba(10, 11, 16, .72); color: #f3dc9a; font-size: 11px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(244, 196, 90, .35); }
.pcol-it.locked { filter: none; }
.pcol-it.locked .col-art > :not(.col-lock) { filter: saturate(.25) brightness(.62); }
.pcol-it.locked:hover { filter: none; }
.pcol-it.locked:hover .col-art > :not(.col-lock) { filter: saturate(.45) brightness(.78); }
.pcol-it .col-how { display: flex; align-items: flex-start; gap: 5px; }
.pcol-it .col-how .pg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
@media (max-width: 600px) {
  .pcol-top { padding: 16px; }
  .pcol-body { padding: 4px 12px 16px; }
  .pcol-it .col-art { height: 112px; }
  .pcol-it .col-art > .cf, .pcol-it .col-art > .sp-cam { width: 100px; }
}

/* ---------- Partner codes (partner.js): the field, the active code, discounted prices ---------- */
.pcode { max-width: 420px; margin: 0 auto; font-size: 14px; }
.pcode summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); font-weight: 700; list-style: none; padding: 6px 10px; border-radius: 999px; }
.pcode summary::-webkit-details-marker { display: none; }
.pcode summary:hover { color: var(--text); background: var(--surface); }
.pcode summary .ico { width: 16px; height: 16px; }
.pcode-f { display: flex; gap: 8px; margin-top: 8px; }
.pcode-f .input { flex: 1; min-width: 0; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.pcode-err { margin: 6px 2px 0; color: #ff9b8a; font-size: 13px; }
.pcode-on { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: var(--r-sm); background: rgba(53, 194, 165, .1); border: 1px solid rgba(53, 194, 165, .35); }
.pcode-on > .ico { flex: none; width: 18px; height: 18px; color: var(--ok); }
.pcode-t { flex: 1; min-width: 0; }
.pcode-t code { font-weight: 800; letter-spacing: .04em; }
.pcode-t small { display: block; color: var(--muted); font-size: 12.5px; }
.pcode-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: none; border: 0; color: var(--muted); cursor: pointer; }
.pcode-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.pcode-x .ico { width: 14px; height: 14px; }
.ms-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; }
.ms-bar .ms-period { margin: 0; }
.ms-pcbtn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ms-pcbtn .ico { width: 15px; height: 15px; }
.ms-pcbtn:hover { color: var(--text); background: var(--surface); }
.ms-pcbtn.on { color: #ffd98a; background: rgba(244, 183, 64, .1); box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .35); }
.ms-pcm { max-width: 380px; }
.ms-pcd { padding: 24px 24px 22px; }
.ms-pcd h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 18px; }
.ms-pcd h2 .ico { width: 18px; height: 18px; color: #ffd98a; }
.ms-pcd-f .pcode-f { display: flex; gap: 8px; }
.ms-pcd-f .input { flex: 1; min-width: 0; }
.ms-pcd-f .input:not(:placeholder-shown) { text-transform: uppercase; }
.ms-pcd-on { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.ms-pcd-on b { color: #ffd98a; font-size: 15px; }
.ms-pcd-on code { font-weight: 800; color: var(--text); }
.pc-partner, .ups-partner { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(244, 183, 64, .16); color: #ffd98a; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pc-partner .ico, .ups-partner .ico { width: 13px; height: 13px; }
.pc-partner, .ups-partner { min-width: 0; max-width: 100%; }
.pc-partner > span, .ups-partner > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ups-partner { max-width: 60%; }
.ups-partner { padding: 5px 11px; }
.ups-pr s { margin-inline-start: 8px; color: var(--faint); font-size: 14px; }
.ups-pterms { margin: -4px 0 12px; color: #ffd98a; font-size: 13px; font-weight: 700; text-align: center; }
.ups-pcode { margin: 10px 0 2px; }
.ups-pcode .pcode summary { font-size: 13px; }

/* ---------- Groups (org.js): group page, join page, sidebar entries, printable sheet ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.av-xs { width: 22px; height: 22px; font-size: 11px; border-radius: 5px; }
/* the group picture: the upload, else the initials on the plan colour */
.gpic { --h: 152; --ps: 1; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.gpic img { width: 100%; height: 100%; object-fit: cover; }
.gpic-em { background: linear-gradient(145deg, hsl(var(--h) calc(46% * var(--ps)) 46%), hsl(var(--h) calc(52% * var(--ps)) 30%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.gpic-em b { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.gpic-fly { width: 24px; height: 24px; border-radius: 6px; }
.gpic-fly.gpic-em b { font-size: 10px; }
.gpic-md { width: 52px; height: 52px; border-radius: 13px; }
.gpic-md.gpic-em b { font-size: 19px; }
.gpic-lg { width: 84px; height: 84px; border-radius: 20px; }
.gpic-lg.gpic-em b { font-size: 30px; }
.gpic-xl { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.gpic-xl.gpic-em { box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.gpic-xl.gpic-em b { font-size: 40px; }
/* sidebar (Community flyout and the phone accordion) */
.fly-group .fg-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fly-group .fg-txt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fly-group .fg-txt small { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .02em; }

.grp-page { max-width: 1080px; }
.grp-back { margin: -12px 0 10px -14px; }
.grp-hero { --h: 152; --ps: 1; position: relative; display: flex; align-items: center; gap: 26px; padding: 28px; overflow: hidden;
  background: radial-gradient(90% 160% at 0% 0%, hsl(var(--h) calc(45% * var(--ps)) 40% / .30), transparent 62%), var(--surface); }
.gh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gh-type { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gh-main h1 { font-size: 30px; overflow-wrap: anywhere; }
.gh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; }
.gh-ended { color: #ff9aa2; font-weight: 700; }
.gh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.grp-plan { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 7px; border-radius: 999px; background: hsl(var(--h) calc(40% * var(--ps, 1)) 50% / .16); color: var(--pc, #fff); font-size: 13.5px; white-space: nowrap; }
.grp-plan .pg { width: 18px; height: 18px; }
.grp-plan b { font-weight: 800; }
.grp-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #cfd3e2; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.grp-chip .ico { width: 14px; height: 14px; color: var(--muted); }
.gh-seats { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.grp-ring { position: relative; width: 84px; height: 84px; }
.grp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.grp-ring circle { fill: none; stroke-width: 7; }
.rg-bg { stroke: rgba(255, 255, 255, .07); }
.rg-fg { stroke: hsl(var(--h) calc(55% * var(--ps)) 58%); stroke-linecap: round; }
.rg-fg[stroke-dasharray^="0.0 "] { display: none; }
.rg-n { position: absolute; inset: 0; display: grid; place-items: center; }
.rg-n b { font-size: 24px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.grp-tabs { margin-top: 18px; }
.grp-hero + .grp-cols { margin-top: 18px; }

/* members */
.grp-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grp-search { position: relative; flex: 0 1 320px; }
.grp-search .ico { position: absolute; inset-inline-start: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.grp-search input { padding-inline-start: 40px; height: 42px; }
.grp-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.grp-m { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 14px; transition: background .15s; }
.grp-m:hover { background: #262a3a; }
.gm-top { display: flex; align-items: flex-start; gap: 8px; }
.gm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.gm-who:hover .gm-txt b { text-decoration: underline; text-underline-offset: 2px; }
.gm-txt { display: flex; flex-direction: column; min-width: 0; }
.gm-txt b { display: flex; align-items: center; gap: 6px; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-txt small { color: var(--faint); font-size: 13px; }
.gm-more { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--faint); }
.gm-more .ico { width: 20px; height: 20px; }
.gm-more:hover { background: var(--surface-2); color: #fff; }
.gm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.gm-stats { display: flex; gap: 16px; }
.gm-stat { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.gm-stat .ico { width: 17px; height: 17px; opacity: .85; }
.gm-stat b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.gm-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.grp-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.grp-pill.wait { background: rgba(244, 183, 64, .13); color: #f5cf7e; }
.grp-nohit { text-align: center; padding: 20px; }
.grp-mgr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--faint); font-size: 13px; font-weight: 700; }
.grp-mgr-foot { margin-top: 18px; }
.grp-peer { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); font-size: 14.5px; font-weight: 600; }
.grp-peer > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-peer.sm { gap: 6px; font-size: 13px; color: var(--muted); }
.grp-menu { display: flex; flex-direction: column; gap: 6px; }
.grp-menu-i { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); text-align: start; color: var(--text); }
.grp-menu-i:hover { background: var(--surface-3); }
.grp-menu-i .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }
.grp-menu-i span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grp-menu-i small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.grp-menu-i.quiet-bad b, .grp-menu-i.quiet-bad .ico { color: #ff9aa2; }
.grp-menu .faint { margin: 6px 2px 0; }

/* empty state */
.grp-empty-big { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 24px 44px; }
.grp-empty-big h2 { font-size: 24px; }
.grp-empty-big > p { max-width: 460px; }
.ge-art { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ge-art i { width: 40px; height: 40px; border-radius: 11px; border: 2px dashed #454b63; }
.ge-art i.f2 { width: 30px; height: 30px; border-radius: 9px; opacity: .55; }
.ge-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.ge-act .ico, .grp-wiz .btn .ico, .grp-invite .btn .ico, .gp-act .btn .ico, .grp-wiz-foot .btn .ico { width: 18px; height: 18px; margin-inline-end: 6px; }
.grp-wiz-foot .btn .ico:last-child:not(:first-child) { margin: 0 0 0 4px; }

/* invite */
.grp-invite { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: center; padding: 32px; }
.gi-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gi-qr .qr { width: 236px; height: 236px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.gi-qr small { color: var(--faint); font-size: 12.5px; font-weight: 700; }
.gi-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gi-main h2 { font-size: 24px; }
.gi-link { display: flex; gap: 8px; }
.gi-link .input { flex: 1; min-width: 0; height: 48px; font-size: 14.5px; color: #dfe2ee; background: var(--surface-2); }
.gi-link .btn { height: 48px; flex: none; }
.gi-code { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--surface-3); }
.gi-code span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gi-code b { font: 800 30px/1.1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; color: var(--text); white-space: pre; }
.gi-act { display: flex; gap: 8px; flex-wrap: wrap; }
.grp-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.grp-how > div { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.grp-how .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--faint); }

/* add accounts */
.grp-wiz { max-width: 720px; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.grp-wiz h2 { font-size: 22px; }
.grp-wiz > p.muted { margin-top: -8px; }
.grp-steps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; align-items: center; gap: 10px; counter-reset: s; }
.grp-steps li { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13.5px; font-weight: 700; }
.grp-steps li + li::before { content: ''; width: 28px; height: 2px; border-radius: 1px; background: var(--surface-3); margin-inline-end: 2px; }
.grp-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-style: normal; font-size: 13px; font-weight: 800; color: var(--muted); }
.grp-steps i .ico { width: 14px; height: 14px; }
.grp-steps li.on { color: var(--text); }
.grp-steps li.on i { background: var(--accent); color: #fff; }
.grp-steps li.done i { background: rgba(53, 194, 165, .18); color: var(--ok); }
.grp-seg { max-width: 360px; }
.grp-wiz .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.grp-wiz .field .label { margin: 0; }
.grp-wiz textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.grp-num { max-width: 180px; height: 48px; font-size: 18px; font-weight: 700; }
.grp-wiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.grp-over { color: #ffb4b9; font-weight: 700; }
.grp-namelist { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.grp-namelist span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: #d9dce8; }
.grp-namelist .more { background: none; color: var(--faint); }
.grp-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.grp-check:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .45); }
.grp-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.grp-check span { display: flex; flex-direction: column; gap: 3px; }
.grp-check small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.grp-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(244, 183, 64, .1); color: #f6dca0; font-size: 14px; margin: 0; }
.grp-warn .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.grp-sheet { max-width: none; }
.grp-creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.grp-cred { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--surface-3); background: rgba(255, 255, 255, .02); min-width: 0; }
.grp-cred small { color: var(--text); font-size: 13.5px; font-weight: 700; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-cred > span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.grp-cred b { font: 700 15.5px ui-monospace, 'SF Mono', Menlo, monospace; margin-bottom: 6px; overflow-wrap: anywhere; }
.grp-cred b.pw { color: #f6d58c; margin-bottom: 0; }
.grp-cred.big { margin: 4px 0; }
.gs-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* settings + member view */
.grp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grp-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.grp-card h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.grp-n { padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.gp-edit { display: flex; gap: 20px; align-items: flex-start; }
.gp-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gp-act { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-act label.busy { opacity: .7; pointer-events: none; }
.gs-rows { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface-2); padding: 2px 16px; }
.gs-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; font-size: 14px; }
.gs-row + .gs-row { border-top: 1px solid rgba(255, 255, 255, .05); }
.gs-row > span { flex: none; color: var(--muted); }
.gs-row > b { text-align: end; font-weight: 700; }
.grp-seat p.muted b { color: var(--pc, #fff); }
.grp-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.grp-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.grp-perks .ico { width: 22px; height: 22px; }
.grp-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 13.5px; margin: 0; }
.grp-note .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.grp-peers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 16px; }
.grp-card .grp-mgr-line { padding-top: 14px; border-top: 1px solid var(--line); }

/* groups list */
.grp-listhead { margin-bottom: 20px; }
.grp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.grp-li { display: flex; align-items: center; gap: 14px; padding: 16px; color: inherit; transition: background .15s; }
.grp-li:hover { background: #262a3a; }
.grp-li > .ico { width: 18px; height: 18px; color: var(--faint); }
.gl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gl-txt b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-txt small { color: var(--muted); font-size: 13px; }
.grp-role { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: #c4b6ff; font-size: 11.5px; font-weight: 800; }
.grp-empty { gap: 16px; }
.grp-empty b { color: var(--text); }

/* join page */
.grp-join { display: flex; justify-content: center; }
.grp-jcard { --h: 152; --ps: 1; position: relative; overflow: hidden; width: 100%; max-width: 460px; padding: 40px 30px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gj-glow { position: absolute; inset: 0 0 auto; height: 200px; background: radial-gradient(60% 100% at 50% 0%, hsl(var(--h) calc(50% * var(--ps)) 45% / .35), transparent 75%); pointer-events: none; }
.grp-jcard > :not(.gj-glow) { position: relative; }
.grp-jcard .gpic-xl { margin-bottom: 10px; }
.grp-jcard h1 { font-size: 28px; overflow-wrap: anywhere; }
.grp-jcard > .muted { margin-top: -4px; }
.gj-plan { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 4px; color: var(--muted); font-size: 14px; }
.gj-act { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.grp-jnote { display: flex; justify-content: center; gap: 8px; align-items: flex-start; margin: 0; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.grp-jnote .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.grp-jnote.ok { color: var(--ok); }
.grp-jnote.warn { color: #f6d58c; }

/* first log-in of an account from a group */
.org-first { display: flex; justify-content: center; }
.org-pw { width: 100%; max-width: 440px; padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.org-pw h1 { margin: 8px 0 0; font-size: 24px; }
.org-pw h1, .org-pw > p { text-align: center; }
.org-pw-ic { align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hi); }
.org-pw-ic .ico { width: 28px; height: 28px; }
.org-err { color: #ff9b8a; font-size: 13.5px; margin: 0; }

@media (max-width: 760px) {
  .grp-hero { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .grp-hero .gpic-xl { width: 76px; height: 76px; border-radius: 19px; }
  .grp-hero .gpic-xl.gpic-em b { font-size: 28px; }
  .gh-main { flex-basis: calc(100% - 92px); }
  .gh-main h1 { font-size: 23px; }
  .gh-seats { flex-direction: row; width: 100%; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
  .grp-ring { width: 52px; height: 52px; }
  .grp-ring circle { stroke-width: 8; }
  .rg-n b { font-size: 16px; }
  .grp-tabs button { padding: 0 12px; font-size: 14px; }
  .grp-tools { flex-wrap: wrap; }
  .grp-search { flex: 1 1 100%; }
  .grp-members, .grp-list { grid-template-columns: minmax(0, 1fr); }
  .grp-invite { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 18px; justify-items: center; }
  .gi-qr .qr { width: 200px; height: 200px; }
  .gi-main { width: 100%; }
  .gi-main h2 { font-size: 21px; }
  .gi-link { flex-direction: column; }
  .gi-code { justify-content: center; }
  .gi-code b { font-size: 26px; }
  .grp-how { grid-template-columns: minmax(0, 1fr); }
  .grp-wiz { padding: 20px 18px; }
  .grp-steps li span { display: none; }
  .grp-steps li.on span { display: inline; }
  .grp-wiz-foot .btn-lg { flex: 1; }
  .gs-act { width: 100%; }
  .gs-act .btn { flex: 1; }
  .grp-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grp-cols { grid-template-columns: minmax(0, 1fr); }
  .grp-card { padding: 20px 18px; }
  .gp-edit { flex-direction: column; align-items: center; text-align: center; }
  .gp-act { justify-content: center; }
  .grp-peers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grp-jcard { padding: 32px 20px 24px; }
  .ge-art i.f2 { display: none; }
  .grp-tabs { gap: 0; }
  .grp-tabs button { padding: 0 8px; gap: 5px; }
  .grp-tabs .tab-c, .grp-tabs .tab-n { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  .grp-tabs button .ico { display: none; }
  .gi-link .input { flex: none; }
}

/* the printed sheet of one-time passwords (A4; only #grp-print is printed while it exists) */
.grp-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body:has(#grp-print) > *:not(#grp-print) { display: none !important; }
  html:has(#grp-print), body:has(#grp-print) { background: #fff !important; color: #111 !important; color-scheme: light; }
  .grp-print { display: block; font: 12pt/1.4 var(--font); color: #111; }
  .grp-print header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4mm; border-bottom: 1.5pt solid #111; }
  .grp-print header h1 { font-size: 18pt; font-weight: 800; color: #111; }
  .grp-print header p { font-size: 10.5pt; color: #555; margin-top: 1mm; }
  .grp-print header img { width: auto; height: 8mm; }
  .gpr-how { list-style: none; counter-reset: st; margin: 4mm 0 5mm; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; font-size: 9.5pt; line-height: 1.35; color: #333; }
  .gpr-how li { counter-increment: st; display: flex; gap: 2mm; }
  .gpr-how li::before { content: counter(st); flex: none; display: grid; place-items: center; width: 5mm; height: 5mm; border-radius: 50%; background: #111; color: #fff; font-size: 8pt; font-weight: 800; }
  .gpr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1pt dashed #999; border-left: 1pt dashed #999; }
  .gpr-card { break-inside: avoid; height: 44mm; padding: 5mm 6mm; border-right: 1pt dashed #999; border-bottom: 1pt dashed #999; display: flex; flex-direction: column; gap: 1.5mm; }
  .gpr-name { font-size: 12.5pt; font-weight: 800; margin-bottom: 1mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gpr-blank { display: flex; align-items: flex-end; gap: 2mm; height: 6mm; border-bottom: .75pt solid #bbb; margin-inline-end: 10mm; }
  .gpr-blank span { font-size: 7.5pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #666; }
  .gpr-f { display: flex; flex-direction: column; }
  .gpr-f span { font-size: 7.5pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #666; }
  .gpr-f b { font: 700 14pt ui-monospace, Menlo, Consolas, monospace; color: #111; }
  .gpr-url { margin-top: auto; font-size: 8.5pt; color: #777; }
}

/* The Mentor speaks on the coaching pages: a small living portrait in the corner while his voice plays */
.mn-speaker { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 0 3px var(--accent); opacity: 0; transform: translateY(12px) scale(.9);
  transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.mn-speaker.on { opacity: 1; transform: none; }
.mn-speaker .av { width: 100%; height: 100%; border-radius: 50%; }
.mn-speaker .av svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .mn-speaker { width: 68px; height: 68px; right: 12px; bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .mn-speaker { transition: none; transform: none; } }

/* Mentor page (mentor.js pageMentorHub): the Play lobby's layout – the Mentor as a live camera on the left (.tile .bot-cam,
   a living portrait through anim.js LIVE_SEL), the training panel on the right, then "Your focus this week" and "From
   your last session" aligned to the two columns (stacked on small screens). */
.mn-bubble { position: relative; width: 100%; max-width: 560px; margin-top: 8px; padding: 16px 20px; border-radius: 16px; background: var(--surface-2); }
.mn-bubble::before { content: ''; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; border-radius: 3px; background: var(--surface-2); transform: translateX(-50%) rotate(45deg); }
.mn-bubble b { position: relative; display: block; font-size: 16.5px; }
.mn-bubble p { position: relative; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.mn-bubble .mn-voice-down { margin-top: 10px; }
.mn-below { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.mn-focus, .mn-last.card-pad { display: flex; flex-direction: column; gap: 10px; }
.mn-focus-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.mn-focus-top .eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.mn-focus-top .eyebrow .ico { width: 15px; height: 15px; color: var(--ok); }
.mn-focus-name { font-size: 22px; line-height: 1.25; }
.mn-focus-desc { color: #dfe1ea; font-size: 14.5px; line-height: 1.55; }
.mn-focus .mn-gbar { margin-top: 6px; }
.mn-focus .mn-gtrack i { width: 0; transition: width .6s ease; }
.mn-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: #dfe1ea; }
.mn-checks li { display: flex; align-items: flex-start; gap: 8px; }
.mn-checks .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); flex: none; }
.mn-focus-lock, .mn-focus-foot, .mn-review-box { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.mn-focus-lock { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; line-height: 1.45; }
.mn-focus-lock > .ico { width: 16px; height: 16px; color: var(--faint); flex: none; }
.mn-focus-lock > span { flex: 1; min-width: 180px; }
.mn-focus-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mn-focus-foot .btn .ico { width: 16px; height: 16px; }
.mn-review-box h3 { font-size: 14px; margin-bottom: 6px; }
.mn-empty { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.mn-empty-box { display: flex; flex-direction: column; gap: 12px; }
.mn-last-head { padding: 20px 20px 14px; }
.mn-last-motion { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.mn-last-head + .mn-row { border-top: 1px solid var(--line); }
.mn-below .mn-last .mn-row { flex-wrap: wrap; gap: 6px 12px; padding-top: 14px; padding-bottom: 10px; }
.mn-below .mn-last .mn-main { flex: 1 1 100%; }
.mn-below .mn-last .mn-act { min-width: 0; justify-content: flex-start; margin-inline-start: -10px; }
@media (max-width: 560px) {
  .mn-hist-duel .mn-row { flex-wrap: wrap; gap: 6px 12px; padding-top: 14px; padding-bottom: 10px; }
  .mn-hist-duel .mn-main { flex: 1 1 100%; }
  .mn-hist-duel .mn-act { min-width: 0; justify-content: flex-start; margin-inline-start: -10px; }
}
.mn-last-all { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--accent-hi); font-size: 14px; font-weight: 700; }
.mn-last-all:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.mn-last-all .ico { width: 16px; height: 16px; }
/* "Change focus" dialog */
.mn-fpick { display: flex; flex-direction: column; gap: 8px; }
.mn-fopt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: start; }
.mn-fopt:hover:not(:disabled) { background: var(--surface-3); }
.mn-fopt.on { box-shadow: inset 0 0 0 2px var(--ok); cursor: default; }
.mn-fopt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-fopt-main b { font-size: 15px; }
.mn-fopt-main small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.mn-fopt-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 104px; }
.mn-fval { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.mn-fval .mn-bar { width: 64px; }
.mn-fval b { font-size: 14px; font-variant-numeric: tabular-nums; }
.mn-fpick-note { margin-top: 6px; }
.mn-fweek { color: var(--ok); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mn-tag { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(244, 183, 64, .16); color: var(--gold); white-space: nowrap; }
.mn-tag.cur { background: rgba(53, 194, 165, .16); color: #74e3cb; }
@media (max-width: 900px) { .mn-below { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mn-bubble { padding: 14px 16px; }
  .mn-last-head { padding: 16px 16px 12px; }
  .mn-fopt { flex-wrap: wrap; gap: 8px 12px; }
  .mn-fopt-main { flex: 1 1 100%; }
  .mn-fopt-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .mn-focus .mn-gtrack i { transition: none; } }

/* the page: the camera (left) with your focus and your last session under it, the training panel and the more rows
   (right, Play's side column); on narrow screens one column in that order */
.mn-arena { grid-template-areas: "cam side" "chat side"; grid-template-rows: auto 1fr; align-items: start; }
.mn-arena > .mn-chat-area { grid-area: chat; }
.mn-arena > .mn-cam-col { grid-area: cam; }
.mn-arena > .side-col { grid-area: side; }
.mn-arena > .mn-below { grid-area: below; margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 24px; }
/* the camera (left) */
.mn-cam-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; min-height: 0;
  background: radial-gradient(90% 60% at 50% 0, hsl(160 55% 45% / .16), transparent 70%), var(--surface); }
.tile.mn-cam { width: min(100%, 520px); aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .28); }
.tile.mn-cam.sv-talking { box-shadow: 0 0 0 3px var(--ok), 0 18px 40px rgba(35, 151, 127, .3); }
.mn-cam .mn-dot.ok { box-shadow: 0 0 0 3px rgba(53, 194, 165, .25); }
.mn-cam-mode { position: absolute; inset-inline-start: 10px; top: 10px; z-index: 2; max-width: calc(100% - 20px); }
.mn-cam-mode .ico { color: var(--ok); }
.mn-cam-mode span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-cam-hear { position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 11, 16, .72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .12s; }
.mn-cam-hear:hover, .mn-cam-hear.on { background: var(--ok); color: #062a22; }
.mn-cam-hear:disabled { opacity: .55; cursor: not-allowed; background: rgba(10, 11, 16, .72); color: #fff; }
.mn-cam-hear .ico { width: 19px; height: 19px; }
.mn-cam-stage .mn-bubble { max-width: 680px; margin-top: 2px; text-align: center; }
/* what the Mentor asks for from the camera (the level check) and why a mode is his pick */
.mn-say-acts { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin-top: 12px; }
.mn-say-acts .btn { white-space: normal; height: auto; min-height: 36px; max-width: 100%; text-align: center; }
.mn-say-acts .btn .ico { width: 16px; height: 16px; }
.mn-say-skip { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.mn-say-skip:hover { color: var(--text); }
.mn-bubble .mn-say-pick { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; color: var(--gold); font-size: 14px; font-weight: 700; }
.mn-say-pick .ico { width: 15px; height: 15px; flex: none; }
.mn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the training panel (right) */
.mn-panel .panel-title .ico { color: var(--ok); }
.mn-panel .panel-title b { flex: 1; min-width: 0; }
.mn-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #1a1c26; }
.mn-tmode { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; align-content: center; min-height: 46px; padding: 8px 10px;
  border-radius: 9px; color: var(--muted); text-align: start; transition: background .12s, color .12s; }
.mn-tmode > .ico { grid-row: 1; width: 22px; height: 22px; opacity: .55; filter: saturate(.5); transition: opacity .15s, filter .15s; }
.mn-tmode b { font-size: 14px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.mn-tmode small { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; font-size: 12px; font-weight: 600; color: var(--faint); line-height: 1.3; }
.mn-tmode:hover:not(.on) { color: #fff; }
.mn-tmode:hover > .ico { opacity: .85; }
.mn-tmode.on { background: var(--surface-3); color: #fff; }
.mn-tmode.on > .ico { opacity: 1; filter: none; }
.mn-tmode.on small { color: var(--muted); }
/* Mentor's pick: a mark in the cell's corner (the reason is in the Mentor's bubble) */
.mn-pick { position: absolute; top: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(244, 183, 64, .16); color: var(--gold); }
.mn-pick .ico { width: 12px; height: 12px; }
.mn-tmode:has(.mn-pick) b { padding-inline-end: 16px; }
.mn-tbest { color: #9fe6d4; }
.mn-tbest::before { content: '·'; margin-inline-end: 4px; color: var(--faint); }
.mn-tmode:focus-visible, .mn-cam-hear:focus-visible, .mn-panel .select-btn:focus-visible, .mn-panel .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mn-panel .mode-tag { margin: 0 2px; }
.mn-panel .mode-tag .ico { color: var(--ok); }
.mn-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; padding: 0; list-style: none; }
.mn-flow li { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.mn-flow li b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-flow li.you { background: rgba(53, 194, 165, .14); color: #9fe6d4; }
.mn-flow li.you b { color: #d4f7ee; }
.mn-flow .mn-flow-sum { background: none; padding: 2px; color: var(--faint); }
.mn-opts { display: flex; flex-direction: column; gap: 14px; }
.mn-opts:empty { display: none; }
/* an option of a mode (Pressure, Speech): a segment with a second line, as tall as a device cell */
.mn-seg button { height: auto; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 6px; line-height: 1.2; }
.mn-seg button b { font-size: 14px; font-weight: 700; }
.mn-seg button small { font-size: 11.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.mn-seg button.on small { color: var(--muted); }
.mn-dev { margin-top: 0; }
.mn-used { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mn-used .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold); }
.mn-used b { color: var(--text); }
.mn-notips { margin-top: 10px; font-size: 13.5px; }
.mn-go { display: flex; flex-direction: column; gap: 8px; }
.mn-go .btn .ico { width: 18px; height: 18px; }
.mn-go .voice-down, .mn-go .voice-busy { margin: 0; }
.mn-panel .bp-note { margin-top: -6px; }
.mn-panel .ai-limit-wrap .ai-limit { margin: 0; }
.mn-panel .panel-foot { flex-wrap: wrap; row-gap: 6px; }
.mn-panel .panel-foot .ico { width: 16px; height: 16px; color: var(--ok); flex: none; }
.mn-panel .panel-foot > span:not(.sep) { min-width: 0; }
.mn-foot-focus { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.mn-foot-focus:hover, .mn-foot-focus:hover strong { color: var(--accent-hi); }
.mn-more { margin-top: 0; }
.mn-more .mode-row { min-height: 60px; padding: 12px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mn-more .mode-row:hover { background: var(--surface-2); }
.mn-more .mn-lock { margin-inline-start: 4px; vertical-align: 1px; }
/* below: focus and the last session, aligned to camera | panel */
.mn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: #9fe6d4; background: rgba(53, 194, 165, .14); }
.mn-chip .ico { width: 15px; height: 15px; }
.mn-last-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mn-last-mode .mn-score { min-width: 0; }
.mn-hist-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mn-hist-t .mn-last-mode { margin-top: 0; }
.mn-hist-duel .mn-hist-t h3 { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.mn-hist-duel .card-head { align-items: flex-start; }
.mn-hist-duel .card-head > .faint { flex: none; }
/* "How Mentor training works" */
.mn-info-modes, .mn-info-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mn-info-steps { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mn-info-modes li, .mn-info-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.mn-info-steps li { background: none; padding: 4px 2px; }
.mn-info-modes .ico, .mn-info-steps .ico { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--ok); }
.mn-info-modes span, .mn-info-steps span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-info-modes b, .mn-info-steps b { font-size: 14.5px; }
.mn-info-modes small, .mn-info-steps small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.mn-info-modes .mn-info-time { color: #9fe6d4; font-weight: 700; }
@media (max-width: 1060px) {
  .mn-arena { grid-template-areas: "cam" "side" "chat"; grid-template-rows: none; }
  .mn-arena > .mn-below { gap: 16px; }
  .tile.mn-cam { max-width: 680px; }
}
@media (max-width: 640px) {
  .mn-cam-stage { padding: 12px 12px 16px; gap: 12px; }
  .tile.mn-cam { aspect-ratio: 4 / 3; border-radius: 12px; }
  .mn-cam-stage .mn-bubble { padding: 12px 14px; }
  .mn-cam-stage .mn-bubble b { font-size: 15px; }
  .mn-cam-stage .mn-bubble p { font-size: 14px; }
}

/* Duel page: a Mentor training session (duel.js trainGame) – the mode chip, the feedback pause, the tips' scores and
   the session report (trainReport) */
.tr-chip.mode-chip .ico { color: #9fe6d4; }
.badge.badge-coach { background: rgba(53, 194, 165, .16); color: #9fe6d4; }
.tip-score { flex: none; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--acc-c); background: color-mix(in srgb, var(--acc-c) 14%, transparent); }
.modal-train .modal-body { display: flex; flex-direction: column; gap: 14px; }
.tr-head { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }
.tr-score { flex: none; display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.tr-score b { font-size: 44px; font-weight: 900; line-height: 1; color: var(--acc-c); }
.tr-score small { font-size: 16px; font-weight: 700; color: var(--faint); }
.tr-what { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tr-mode.mode-chip { color: #9fe6d4; background: rgba(53, 194, 165, .14); }
.tr-stat { font-size: 15px; font-weight: 700; color: #fff; }
.tr-early { font-size: 13.5px; color: var(--muted); }
.tr-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tr-bars li { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr) 26px; align-items: center; gap: 10px; font-size: 13.5px; }
.tr-bars li.best .tr-l { color: #fff; font-weight: 700; }
.tr-l { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-track { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.tr-track i { display: block; height: 100%; border-radius: 4px; background: var(--acc-c); }
.tr-bars b { text-align: end; font-variant-numeric: tabular-nums; }
.tr-best, .tr-next { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.tr-next { background: rgba(53, 194, 165, .1); box-shadow: inset 0 0 0 1px rgba(53, 194, 165, .28); }
.tr-best h4, .tr-next h4 { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.tr-best h4 .ico { width: 15px; height: 15px; color: var(--gold); }
.tr-next h4 .ico { width: 15px; height: 15px; color: var(--ok); }
/* the learning path after a strong session: the next mode */
.tr-try { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.tr-try:hover { background: var(--surface-3); }
.tr-try > .ico { width: 22px; height: 22px; flex: none; color: #9fe6d4; }
.tr-try span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-try b { font-size: 14.5px; }
.tr-try small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tr-try .chev { width: 16px; height: 16px; color: var(--muted); }
/* the strip under the stage of a training session: the round's instruction; the fix in Second Take's pause */
.tr-caption { display: flex; align-items: flex-start; gap: 10px; width: min(100%, 760px); margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: #dfe1ea; font-size: 14px; line-height: 1.5; }
.tr-caption[hidden] { display: none; }
.tr-caption > .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold); }
.tr-caption.is-fix { padding: 14px 16px; background: rgba(53, 194, 165, .1); box-shadow: inset 0 0 0 1px rgba(53, 194, 165, .3); }
.tr-caption.is-fix > .ico { width: 22px; height: 22px; color: var(--ok); }
.tr-caption .spinner { width: 20px; height: 20px; flex: none; border-width: 2px; margin: 1px 0 0; }
.tr-cap-t { min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.tr-cap-t b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #fff; font-size: 15px; }
.tr-cap-t .tip-ex { color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .tr-caption { margin-top: 10px; font-size: 13.5px; }
  .tr-head { gap: 14px; padding: 14px; }
  .tr-score b { font-size: 36px; }
  .tr-bars { gap: 9px; }
  .tr-bars li { grid-template-columns: minmax(0, 1fr) 24px; gap: 3px 10px; }
  .tr-l { grid-column: 1 / -1; white-space: normal; }
}

/* Insights: "Your debater profile" (train.js profileCard, free) */
.ins-prof h3 { display: flex; align-items: center; gap: 8px; }
.ins-prof h3 .ico { width: 20px; height: 20px; color: var(--accent-hi); }
.ins-prof > .btn { margin-top: 12px; }
.ins-prof-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ins-level { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: rgba(53, 194, 165, .14); color: #74e3cb; font-size: 13px; font-weight: 700; }
.ins-prof > p.muted { margin-top: 4px; }
.ins-crits { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.ins-crit { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 34px 38px; align-items: center; gap: 10px; font-size: 14px; }
.ins-crit-l { color: #dfe1ea; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.ins-crit-bar { display: block; height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.ins-crit-bar i { display: block; height: 100%; background: var(--acc-c); }
.ins-crit b { text-align: end; font-variant-numeric: tabular-nums; }
.ins-crit small { font-size: 12px; font-weight: 700; text-align: end; color: var(--faint); }
.ins-crit small.up { color: var(--ok); }
.ins-crit small.down { color: #ff8d98; }
.ins-habits { margin: 8px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: #dfe1ea; }
@media (max-width: 560px) { .ins-crit { grid-template-columns: minmax(0, 1fr) 52px 30px 34px; gap: 8px; } }

/* End of a duel (result-fx.js): confetti canvas for a win, a small rain cloud over the result mark for a loss */
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 200; pointer-events: none; }
.result-mark { position: relative; }
.fx-lose .result-mark { animation: fx-sink 1.4s cubic-bezier(.3,.7,.3,1) both; filter: saturate(.55); transition: filter .8s; }
@keyframes fx-sink { 0% { transform: none; } 30% { transform: translateY(5px) rotate(-7deg); } 55% { transform: translateY(3px) rotate(4deg); } 100% { transform: translateY(2px) rotate(0); } }
.fx-cloud { position: absolute; left: 50%; top: -30px; width: 64px; height: 70px; margin-left: -32px; color: #8d96a8; pointer-events: none;
  animation: fx-cloud-in .6s ease-out both; transition: opacity .6s, transform .6s; }
.fx-cloud svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.fx-cloud i { position: absolute; top: 24px; left: var(--x); width: 2px; height: 9px; border-radius: 2px; background: #7fb2e5; opacity: 0;
  animation: fx-drop .9s linear var(--d) 3; }
.fx-cloud.gone { opacity: 0; transform: translateY(-8px); }
@keyframes fx-cloud-in { from { opacity: 0; transform: translateY(-10px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes fx-drop { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(34px); } }
@media (prefers-reduced-motion: reduce) { .fx-lose .result-mark, .fx-cloud, .fx-cloud i { animation: none; } }
/* the judge's prose in the reader's language (public/js/verdict-text.js) */
.vt-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-bar > span:not(.spinner) { flex: 1 1 200px; }
.vt-bar .btn { flex: none; }

/* The speaking ring picker under the camera on Play Online (lit in the preview) */
.pv-ringpick { display: flex; justify-content: center; margin: -8px 0 10px; }

/* ---------- Ranked / Casual (public/js/play.js, duel.js bridge summary) ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #1a1c26; }
.mode-switch a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 7px; font-weight: 700; font-size: 14px; color: var(--muted); }
.mode-switch a .ico { width: 18px; height: 18px; }
.mode-switch a.on { background: var(--surface-3); color: #fff; }
.mode-switch a:hover:not(.on) { color: #fff; }
.mode-switch a:not(.on) .ico { opacity: .55; filter: saturate(.5); }
.mode-switch a:hover:not(.on) .ico { opacity: .85; }
/* narrow screens: the switch on top of the page (the settings panel sits below the camera preview there) */
.mode-top { display: none; }
@media (max-width: 1060px) {
  .mode-top { display: block; }
  .arena-wrap.lobby-on .mode-top { display: none; }
  .side-col .mode-switch { display: none; }
  .side-col .mode-tag { margin-top: 0; }
}
.mode-tag { display: flex; align-items: flex-start; gap: 8px; margin: 8px 2px 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.mode-tag .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
.mode-tag.casual .ico { color: var(--ok); }
.ch-head .mode-tag { margin: 8px 0 0; }
.mode-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: #9fe6d4; background: rgba(53, 194, 165, .14); }
.mode-chip.ranked { color: #a9d4ff; background: rgba(74, 168, 255, .14); }
.mode-chip .ico { width: 15px; height: 15px; }
.lb-tmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-pad.stack > .mode-chip { align-self: flex-start; }
.arch-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-casual { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: #9fe6d4; white-space: nowrap; }
.dh-casual .ico { width: 15px; height: 15px; }
.dh-sq.casual { opacity: .55; }
.tv-casual { color: #9fe6d4; font-weight: 700; }
.result-mark.casual { background: rgba(53, 194, 165, .14); color: var(--ok); }
.modal-bridge { max-width: 680px; }

.bridge { display: flex; flex-direction: column; gap: 14px; text-align: start; }
.br-head { display: flex; align-items: center; gap: 12px; }
.br-head .br-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(53, 194, 165, .14); color: var(--ok); }
.br-head .br-ico .ico { width: 22px; height: 22px; }
.br-head b { display: block; font-size: 15.5px; }
.br-head small { display: block; font-size: 13px; color: var(--muted); }
.br-text { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); color: #dfe1ea; font-size: 14.5px; }
.br-pos, .br-args { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.br-side, .br-arg { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; line-height: 1.45; color: #dfe1ea; }
.br-side.pro, .br-arg.pro { box-shadow: inset 3px 0 0 var(--pro); }
.br-side.contra, .br-arg.contra { box-shadow: inset 3px 0 0 var(--contra); }
.br-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.br-who b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-sec h4 { display: flex; align-items: center; gap: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.br-sec h4 .ico { width: 16px; height: 16px; color: var(--ok); }
.br-common ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.br-common li { position: relative; padding: 8px 12px 8px 32px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; color: #dfe1ea; }
.br-common li::before { content: ''; position: absolute; inset-inline-start: 13px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.br-core { padding: 16px 18px; border-radius: var(--r); background: rgba(53, 194, 165, .08); border: 1px solid rgba(53, 194, 165, .35); }
.br-core p { margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.35; color: #fff; }
.br-next p { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; color: #dfe1ea; }
.br-by { text-align: center; }
@media (max-width: 640px) {
  .br-pos, .br-args { grid-template-columns: 1fr; }
  .br-core p { font-size: 16px; }
}

/* ---------- Footer legal row, lobby note, verdict help (contact & legal pages) ---------- */
.footer .footer-legal { flex-basis: 100%; gap: 6px 16px; font-size: 12px; color: var(--faint); opacity: .9; }
.footer .footer-legal a { color: var(--faint); }
.footer .footer-legal a:hover { color: var(--muted); }
@media (max-width: 640px) { .footer { gap: 12px; } .footer .footer-legal { gap: 6px 14px; } }
.auth-legal { text-align: center; margin: 12px 0 0; line-height: 1.5; }
.auth-legal .link { font-weight: 600; }
.lobby-note { display: flex; gap: 8px; align-items: flex-start; margin: 8px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); max-width: 640px; }
.lobby-note .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; opacity: .8; }
.lobby-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(163, 169, 190, .4); }
.lobby-note a:hover { color: #fff; }
.lobby-note-narrow { display: none; }
/* wide screens: the note sits at the bottom of the preview column, next to the Play Bots card */
.arena:has(> .lobby-note-wide) { align-self: stretch; }
.lobby-note-wide { margin-top: auto; padding: 0 0 18px; }
@media (max-width: 1060px) { .lobby-note-wide { display: none; } .lobby-note-narrow { display: flex; margin-top: 4px; } }
.arena-wrap.lobby-on .lobby-note { display: none; }
.vd-help { text-align: center; margin: 14px 0 0; }
.vd-help .link { font-weight: 600; }
.dlg-result .vd-help { margin-top: 10px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-form [hidden] { display: none !important; }
.contact-intro { margin: 0 0 18px; font-size: 15px; }
.contact-form textarea.input { min-height: 160px; resize: vertical; line-height: 1.5; }
.contact-form .field small { line-height: 1.45; }
.contact-count { text-align: end; }
.contact-appeal { margin: -4px 0 16px; }
.contact-appeal .ico { color: var(--gold); }
.contact-duel { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.contact-duel > .ico { width: 18px; height: 18px; flex: none; color: var(--muted); margin-top: 2px; }
.contact-duel > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-duel small { color: var(--muted); font-size: 12.5px; }
.contact-duel .ok { color: #8fe0b0; display: inline-flex; gap: 4px; align-items: center; }
.contact-duel .ok .ico { width: 14px; height: 14px; }
.contact-duel .bad, p.contact-duel.bad { color: #ffb3ba; }
p.contact-duel { display: block; }
.contact-privacy { margin: 0 0 16px; }
.contact-side h3 { font-size: 16px; margin-bottom: 6px; }
.contact-done { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 40px 24px; }
.contact-done .result-mark { color: #8fe0b0; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 900px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; font-size: 13.5px; }
.legal-nav a { color: var(--muted); font-weight: 600; }
.legal-nav a:hover { color: #fff; }
.legal-nav a.on { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.legal-doc { padding: 36px 40px; line-height: 1.65; font-size: 15px; color: #d6d9e4; }
@media (max-width: 640px) { .legal-doc { padding: 24px 18px; font-size: 14.5px; } }
.legal-doc h1 { font-size: 28px; line-height: 1.25; margin-bottom: 4px; }
.legal-doc h2 { font-size: 18px; margin: 30px 0 10px; color: #fff; scroll-margin-top: 80px; }
.legal-doc section { scroll-margin-top: 80px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 12px; padding-inline-start: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc code { font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.legal-doc .link { font-weight: 600; word-break: break-word; }
.legal-date { margin-bottom: 14px !important; }
.legal-binding { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.legal-other { margin-top: -6px !important; }
.legal-other a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.legal-binding .ico { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.legal-toc { margin: 18px 0 8px; padding: 16px 20px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.legal-toc b { display: block; margin-bottom: 8px; color: #fff; }
.legal-toc ol { columns: 2; column-gap: 28px; margin: 0; }
.legal-toc li { break-inside: avoid; margin-bottom: 4px; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-ph { color: var(--gold); background: rgba(244, 183, 64, .1); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal-form { padding: 16px 20px; margin: 0 0 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.legal-form p { margin: 0 0 8px; }

/* the version label (version.js): small and muted, a click copies it – at the end of the footer's legal row, at the
   bottom of Settings and in the admin header */
.app-version { padding: 0; font: inherit; font-size: 11.5px; color: var(--faint); opacity: .75; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; cursor: copy; }
.app-version:hover { color: var(--muted); opacity: 1; }
.app-version[hidden] { display: none; }
.footer .footer-legal .footer-version { margin-inline-start: auto; }
.set-version { margin: 28px 0 0; text-align: center; }
.adm-version { margin-inline-start: auto; }
.contact-version { display: block; margin-top: 4px; }

/* Sparring (/train/sparring, sparring.js): the hub, Fallacy Flash, drills with a ring timer, the hunt with
   tappable sentences. Existing tokens and the home card look; everything that moves stops with prefers-reduced-motion. */
.page.sp-hub { max-width: 1080px; }
.sp-top { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.sp-top > .sp-head { flex: 1; min-width: 0; margin-bottom: 0; }
.sp-tools-h { color: var(--faint); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sp-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.sp-head-ico { flex: none; width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.sp-head-ico .ico { width: 46px; height: 46px; }
.sp-head-txt { flex: 1; min-width: 220px; }
.sp-head-txt h1 { font-size: 30px; line-height: 1.1; margin-top: 2px; }
.sp-head-txt > p { margin-top: 4px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.sp-chip .ico { width: 15px; height: 15px; }
.sp-chip.flame { color: var(--gold); }
.sp-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-head-row.sub { align-items: baseline; margin-top: 4px; }
.sp-head-row.sub > p { margin: 0; min-width: 0; }
.sp-streak { flex: none; margin: 0; }
.sp-left { flex: none; color: var(--faint); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-topics-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.sp-topics-link .ico { width: 15px; height: 15px; }
.sp-topics-link b { color: var(--text); font-weight: 700; }
.sp-topics-link:hover, .sp-topics-link:hover b { color: #fff; }
.sp-day-left { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.sp-day-left .ico { width: 15px; height: 15px; }
.sp-day-left b { font-variant-numeric: tabular-nums; color: #fff; }
/* Today */
.sp-today { position: relative; overflow: hidden; padding: 18px; border-radius: 18px; background: linear-gradient(150deg, #8f74ff, #6a4bf0 60%, #5236d4); color: #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22); }
.sp-today::after { content: ''; position: absolute; inset-inline-end: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.sp-today > * { position: relative; z-index: 1; }
.sp-today-head { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; font-size: 18px; }
.sp-day-done { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: #ffe08a; }
.sp-day-done .ico { width: 18px; height: 18px; }
.sp-today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-day { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s, transform .15s; }
.sp-day:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.sp-day-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--accent-edge); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.sp-day-ico .ico { width: 26px; height: 26px; }
.sp-day-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-day-txt small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sp-day-txt b { font-size: 16px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sp-day-txt i { font-style: normal; font-size: 12.5px; opacity: .8; }
.sp-day-end { flex: none; display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.sp-day-end .ico { width: 20px; height: 20px; }
.sp-day-end.ok { opacity: 1; color: #b9ffe9; font-size: 14px; }
.sp-day.done { background: rgba(0, 0, 0, .16); }
.sp-day.done .sp-day-ico { background: var(--ok); color: #06302a; }
.sp-today-why { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; opacity: .92; }
.sp-today-why .ico { width: 18px; height: 18px; flex: none; color: #ffe08a; }
.sp-today-why .link { color: #fff; text-decoration: underline; }
/* Rounds and drills */
.sp-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sp-mode { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border-radius: 16px; background: var(--surface); color: var(--text); transition: transform .15s, background-color .15s; }
.sp-mode:hover { transform: translateY(-3px); background-color: var(--surface-2); }
.sp-mode.m-flash { background: linear-gradient(160deg, rgba(123, 92, 255, .24), transparent 65%) var(--surface); }
.sp-mode.m-flash:hover { background: linear-gradient(160deg, rgba(123, 92, 255, .3), transparent 65%) var(--surface-2); }
.sp-mode-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.sp-mode-ico .ico { width: 26px; height: 26px; }
.m-flash .sp-mode-ico { background: linear-gradient(150deg, #ffcc5c, #f4b740 55%, #d99a1e); color: #2a1d02; }
.m-hunt .sp-mode-ico { background: linear-gradient(150deg, #ff8a5c, #ff6b4a 55%, #e04a2c); }
.m-steel .sp-mode-ico { background: linear-gradient(150deg, #6fb8ff, #3b9eff 55%, #1f7ad6); }
.sp-mode-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sp-mode-txt b { font-size: 18px; }
.sp-mode-txt small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sp-mode-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--faint); font-weight: 700; }
.sp-mode-foot .mn-lock { margin-inline-start: auto; }
.sp-free { margin-inline-start: auto; padding: 3px 9px; border-radius: 999px; background: rgba(53, 194, 165, .14); color: var(--ok); font-size: 12px; }
.sp-pips { display: inline-flex; gap: 4px; }
.sp-pips i { width: 18px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.sp-pips i.on { background: var(--gold); }
.sp-stars { display: inline-flex; gap: 1px; }
.sp-stars i { display: inline-grid; }
.sp-stars .ico { width: 16px; height: 16px; }
.sp-stars i:not(.on) .ico { filter: grayscale(1) brightness(.42); }
.sp-stars.pop i.on { animation: sp-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.55s + var(--d) * .2s); }
.sp-drills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sp-drill { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border-radius: 14px; background: var(--surface); color: var(--text); transition: transform .15s, background-color .15s; }
.sp-drill:hover { transform: translateY(-2px); background: var(--surface-2); }
.sp-drill-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); margin-bottom: 2px; }
.sp-drill-ico .ico { width: 20px; height: 20px; }
.sp-drill b { font-size: 15px; }
.sp-drill small { flex: 1; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sp-drill-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.sp-drill-foot i { font-style: normal; color: var(--faint); font-size: 12.5px; font-weight: 700; }
/* Fallacy Flash */
.sp-fl-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 24px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(244, 183, 64, .18), transparent 60%), var(--surface); }
.sp-fl-badge { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(150deg, #ffcc5c, #f4b740 55%, #d99a1e); color: #2a1d02; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 12px 30px rgba(244, 183, 64, .25); }
.sp-fl-badge .ico { width: 44px; height: 44px; }
.sp-fl-intro h1 { font-size: 30px; line-height: 1.1; }
.sp-tiers { width: 100%; max-width: 560px; }
.sp-tiers button { height: auto; min-height: 58px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sp-tiers button b { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; }
.sp-tiers button b .ico { width: 13px; height: 13px; }
.sp-tiers button small { font-size: 11.5px; color: var(--faint); font-weight: 600; line-height: 1.3; }
.sp-tiers button.locked { opacity: .6; }
.sp-tier-about { max-width: 520px; color: #dfe1ea; font-size: 15px; }
.sp-tier-about .faint { display: block; margin-top: 2px; font-size: 13.5px; }
.sp-fl-done { display: inline-flex; align-items: center; gap: 6px; }
.sp-fl-done .ico { width: 14px; height: 14px; color: var(--ok); }
.sp-fl-best { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; }
.sp-fl-best .ico { width: 16px; height: 16px; }
.sp-fl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp-fl-btns .btn small { font-weight: 600; opacity: .75; margin-inline-start: 2px; }
.btn.locked { opacity: .55; }
.sp-fl-hint { max-width: 460px; }
@media (hover: none) { .sp-keys-hint { display: none; } }
/* Your rounds: the Fallacy Flash records */
.sp-fl-row { min-height: 54px; }
.sp-fl-val { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-fl-val small { font-weight: 600; }
.sp-fl-val .sp-ok { width: 16px; height: 16px; color: var(--ok); }
.sp-fl .mn-signup { margin-top: 14px; }
.sp-play { max-width: 760px; }
/* wide screens: the round sits in the middle of the screen, with a bigger quote */
@media (min-width: 900px) and (min-height: 700px) {
  .page.sp-play { min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; }
  .sp-play .sp-card { min-height: 220px; padding: 32px 34px; }
  .sp-play .sp-q { font-size: 25px; }
}
.sp-hud { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 10px; }
.sp-quit { flex: none; width: 36px; padding: 0; justify-content: center; }
.sp-hud-prog { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.sp-dots { flex: 1; display: flex; gap: 5px; }
.sp-dots i { flex: 1; max-width: 34px; height: 8px; border-radius: 4px; background: var(--surface-3); transition: background .2s; }
.sp-dots i.cur { background: var(--accent-hi); }
.sp-dots i.ok { background: var(--ok); }
.sp-dots i.bad { background: var(--danger); }
.sp-hearts { display: inline-flex; gap: 4px; }
.sp-hearts i { display: inline-grid; color: var(--surface-3); }
.sp-hearts i.on { color: #ff5d73; }
.sp-hearts .ico { width: 22px; height: 22px; }
.sp-count { color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sp-combo { display: none; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(244, 183, 64, .16); color: var(--gold); font-weight: 800; white-space: nowrap; }
.sp-combo.on { display: inline-flex; }
.sp-combo .ico { width: 15px; height: 15px; }
.sp-combo small { font-size: 11.5px; font-weight: 600; color: #f1d79d; }
.sp-combo.pulse { animation: sp-pulse .5s ease; }
.sp-pts { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; min-width: 84px; }
.sp-pts b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-pts small { color: var(--faint); font-size: 12px; font-weight: 700; }
.sp-plus { position: absolute; inset-inline-end: 0; top: -8px; color: var(--ok); font-size: 18px; font-weight: 800; pointer-events: none; animation: sp-float .9s ease-out forwards; }
.sp-timebar { height: 6px; margin-bottom: 14px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.sp-timebar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ok), #6fe0c6); }
.sp-timebar.low i { background: var(--gold); }
.sp-card { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 180px; padding: 26px; }
.sp-q { margin: 0; padding-inline-start: 16px; border-inline-start: 4px solid var(--gold); color: #fff4dc; font-size: 21px; font-style: italic; line-height: 1.45; overflow-wrap: anywhere; }
.sp-q-name { color: #c4b6ff; font-weight: 800; }
.sp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sp-opts.k-fix { grid-template-columns: minmax(0, 1fr); }
.sp-opt { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 12px; border: 2px solid transparent; background: var(--surface); color: var(--text); font-size: 15.5px; font-weight: 700; text-align: start; transition: background-color .12s, border-color .12s, transform .12s; }
.sp-opt:hover:not(:disabled) { background: var(--surface-2); transform: translateY(-1px); }
.sp-opt:disabled { cursor: default; }
.sp-opts .sp-opt:disabled:not(.right):not(.wrong) { opacity: .5; }
.k-fix .sp-opt { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.sp-key { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 13px; font-weight: 800; }
.sp-opt-l { min-width: 0; overflow-wrap: anywhere; }
.sp-opt.right { border-color: var(--ok); background: rgba(53, 194, 165, .16); }
.sp-opt.right .sp-key { background: var(--ok); color: #06302a; }
.sp-opt.wrong { border-color: var(--danger); background: rgba(239, 77, 90, .16); animation: sp-shake .35s; }
.sp-opt.wrong .sp-key { background: var(--danger); color: #fff; }
.sp-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 12px; border-inline-start: 4px solid var(--danger); background: var(--surface); }
.sp-strip[hidden] { display: none; }
.sp-strip-txt { flex: 1; min-width: 200px; }
.sp-strip-txt p { margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sp-end { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 24px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(123, 92, 255, .24), transparent 60%), var(--surface); }
.sp-end-pts b { display: block; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sp-end-pts small { color: var(--muted); font-weight: 700; }
.sp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sp-badges:empty { display: none; }
.sp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 800; animation: sp-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.sp-badge .ico { width: 15px; height: 15px; }
.sp-badge.gold { background: rgba(244, 183, 64, .18); color: var(--gold); }
.sp-badge.ok { background: rgba(53, 194, 165, .16); color: var(--ok); }
.sp-badge.vio { background: var(--accent-soft); color: #c4b6ff; }
.sp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 520px; }
.sp-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-radius: 12px; background: var(--surface-2); }
.sp-stats b { font-size: 22px; font-variant-numeric: tabular-nums; }
.sp-stats small { color: var(--muted); font-size: 12.5px; text-wrap: balance; }
.sp-missed { width: 100%; max-width: 560px; text-align: start; }
.sp-missed h3 { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.sp-miss { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; column-gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); }
.sp-miss b { font-size: 14.5px; }
.sp-miss small { grid-column: 1; color: var(--muted); font-size: 13px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-miss .mn-chev { grid-column: 2; grid-row: 1 / span 2; }
.sp-miss:hover b { color: #fff; text-decoration: underline; }
/* Drills: ring timer, seconds chip, result with score ring, stars and best */
.mn-timer.sp-ring { gap: 8px; }
.sp-ring-svg { flex: none; width: 30px; height: 30px; transform: rotate(-90deg); }
.sp-ring-trk { fill: none; stroke: var(--surface-3); stroke-width: 4; }
.sp-ring-arc { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .5s linear, stroke .3s; }
.mn-timer.warn .sp-ring-arc, .mn-timer.over .sp-ring-arc { stroke: var(--gold); }
.mn-timer.warn b { color: var(--gold); }
.sp-sec { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sp-sec .ico { width: 14px; height: 14px; }
.sp-score { position: relative; flex: none; width: 78px; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sp-score svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.sp-score-trk { fill: none; stroke: var(--surface-3); stroke-width: 3; }
.sp-score-arc { fill: none; stroke: var(--acc-c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.sp-score b { position: relative; color: var(--acc-c); font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-score small { position: relative; color: var(--faint); font-size: 11px; font-weight: 700; }
.sp-res-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.sp-res-badges .sp-badge { padding: 3px 10px; font-size: 12.5px; animation-delay: .9s; }
/* Fallacy hunt: tappable sentences with an inline picker */
.sp-how { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; color: #dfe1ea; font-size: 14.5px; }
.sp-sents { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-sent-btn { width: 100%; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; border: 2px solid transparent; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15.5px; line-height: 1.5; text-align: start; transition: background-color .12s, border-color .12s; }
button.sp-sent-btn:hover { background: var(--surface-2); }
.sp-sent.marked .sp-sent-btn { border-color: rgba(123, 92, 255, .6); background: var(--accent-soft); }
.sp-sent.open .sp-sent-btn { border-color: var(--accent); border-end-start-radius: 0; border-end-end-radius: 0; }
.sp-sent-n { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 12.5px; font-weight: 800; }
.sp-sent-t { flex: 1 1 calc(100% - 40px); min-width: 0; }
.sp-sent-btn > .sp-tag { margin-inline-start: 36px; }
.sp-tags { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-inline-start: 36px; }
.sp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 12.5px; font-weight: 800; }
.sp-tag i { display: inline-grid; }
.sp-tag .ico { width: 12px; height: 12px; }
.sp-tag.mine { background: var(--accent); color: #fff; }
.sp-tags .sp-tag.mine { background: var(--surface-3); color: var(--muted); }
.sp-tag.ok { background: rgba(53, 194, 165, .18); color: var(--ok); }
.sp-tag.warn { background: rgba(244, 183, 64, .18); color: var(--gold); }
.sp-tag.miss { background: none; box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.sp-tag.bad { background: rgba(239, 77, 90, .18); color: #ff8d98; }
.reveal .sp-tag { animation: sp-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.25s + var(--d) * .15s); }
.sp-sent.done .sp-sent-btn { background: var(--surface-2); }
.sp-sent.done.marked .sp-sent-btn { border-color: transparent; }
.sp-picker { padding: 12px 14px 14px; border: 2px solid var(--accent); border-top: 0; border-end-start-radius: 12px; border-end-end-radius: 12px; background: var(--surface-2); }
.sp-picker-h { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.sp-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.sp-pick { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-align: start; }
.sp-pick:hover { border-color: var(--accent-hi); }
.sp-pick b { font-size: 14px; }
.sp-pick small { color: var(--muted); font-size: 12.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-pick.used { opacity: .6; }
.sp-hunt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-result .sp-sents { margin: 4px 0 8px; }
@keyframes sp-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sp-float { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
@keyframes sp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes sp-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.16); } }
@media (max-width: 1100px) { .sp-drills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sp-modes, .sp-today-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-mode { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px 14px; padding: 16px; }
  .sp-mode-foot { grid-column: 1 / -1; }
  .sp-drills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-drill:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sp-head-txt h1 { font-size: 26px; }
  .sp-head-ico { width: 56px; height: 56px; }
  .sp-head-ico .ico { width: 38px; height: 38px; }
}
@media (max-width: 600px) {
  .sp-streak.wflame.md .ico { width: 26px; height: 26px; }
  .sp-streak.wflame.md b { font-size: 22px; }
}
@media (max-width: 640px) {
  .sp-opts, .sp-picks { grid-template-columns: minmax(0, 1fr); }
  .sp-opt { min-height: 52px; }
  .sp-card { min-height: 150px; padding: 20px 18px; }
  .sp-q { font-size: 18px; }
  .sp-end-pts b { font-size: 52px; }
  .sp-fl-btns { flex-direction: column; align-self: stretch; }
  .sp-fl-btns .btn { width: 100%; justify-content: center; }
  .sp-combo small { display: none; }
  .sp-sent-btn { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-stars.pop i.on, .sp-badge, .reveal .sp-tag, .sp-opt.wrong, .sp-combo.pulse, .sp-plus { animation: none; }
  .sp-score-arc, .sp-ring-arc, .sp-mode, .sp-drill, .sp-day, .sp-opt, .sp-dots i { transition: none; }
  .sp-mode:hover, .sp-drill:hover, .sp-day:hover, .sp-opt:hover:not(:disabled) { transform: none; }
}

/* Shop: after a purchase – the piece on a lit stage with slowly turning rays, everything centred */
.sh-won { --rc: #b6bccd; align-items: center; text-align: center; padding: 0 26px 26px; overflow: hidden; }
.sh-won.r-rare { --rc: #7cc2ff; } .sh-won.r-epic { --rc: #c3a8ff; } .sh-won.r-legendary { --rc: #ffd27a; }
.sh-won-stage { position: relative; display: grid; place-items: center; width: calc(100% + 52px); margin: 0 -26px 4px; padding: 40px 20px 30px; background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, var(--surface-2)), var(--surface)); overflow: hidden; }
.sh-won-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; opacity: .5; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 30%, transparent) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%); animation: sh-rays 24s linear infinite; }
@keyframes sh-rays { to { transform: rotate(360deg); } }
.sh-won-art { position: relative; z-index: 1; animation: sh-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.sh-won-art > .cf, .sh-won-art > .sp-cam { width: 220px; max-width: 62vw; margin: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.sh-won-art > .sp-cam { border-radius: 12px; }
.sh-won-art .nx-stage { font-size: 34px; }
@keyframes sh-pop { from { transform: scale(.6) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-won-eye { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--rc); }
.sh-won h2 { margin: 0; font-size: 24px; line-height: 1.2; text-align: center; text-wrap: balance; }
.sh-won-act { flex-direction: column; align-items: stretch; justify-content: center; width: 100%; max-width: 300px; margin: 6px auto 0; }
.sh-won-act .btn { justify-content: center; }
.sh-eq .ico { width: 18px; height: 18px; }
.sh-eq.on { color: var(--ok); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sh-won-rays, .sh-won-art { animation: none; } }

/* Duel prep's lock on the Mentor page: a clear gold tag */
.mn-more .mn-lock.mn-lock-strong { padding: 2px 8px; border-radius: 999px; background: rgba(244, 183, 64, .16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .45); font-size: 12px; }
.mn-more .mn-lock.mn-lock-strong .ico { color: var(--gold); }

/* The Mentor chat (mentor-chat.js): under his camera – the messages, the bar (text, voice message, send) and Talk live */
.mn-chat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); }
.mn-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mn-chat-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; }
.mn-chat-head b .ico { width: 20px; height: 20px; color: var(--ok); }
.mn-chat-clear { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); }
.mn-chat-clear:hover { background: var(--surface-2); color: var(--text); }
.mn-chat-clear .ico { width: 16px; height: 16px; }
.mn-chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 340px; min-height: 120px; overflow-y: auto; padding: 4px 2px; scrollbar-width: thin; }
.mn-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.mn-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mn-msg.him { align-self: flex-start; background: var(--surface-2); border-end-start-radius: 4px; }
.mn-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 4px; }
.mn-msg-tag { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; opacity: .8; }
.mn-msg-tag .ico { width: 12px; height: 12px; }
.mn-msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.mn-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: mnDot 1.1s ease-in-out infinite; }
.mn-msg.typing i:nth-child(2) { animation-delay: .15s; } .mn-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mnDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.mn-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.mn-chat-bar { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 4px; padding: 5px 5px 5px 14px; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.mn-chat-bar:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.mn-chat-bar textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.45; padding: 7px 0; max-height: 140px; }
.mn-chat-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.mn-chat-ico:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.mn-chat-ico .ico { width: 18px; height: 18px; }
.mn-chat-send { background: var(--accent); color: #fff; }
.mn-chat-send:hover:not(:disabled) { background: var(--accent-hi); color: #fff; }
.mn-chat-ico:disabled { opacity: .5; cursor: not-allowed; }
.mn-chat-ico#mnChatRec.on { background: var(--danger); color: #fff; animation: mnRec 1.4s ease-in-out infinite; }
@keyframes mnRec { 50% { box-shadow: 0 0 0 6px rgba(239, 77, 90, .2); } }
.mn-chat-live { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 23px; background: rgba(53, 194, 165, .14); color: var(--ok); font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(53, 194, 165, .4); }
.mn-chat-live:hover { background: rgba(53, 194, 165, .24); }
.mn-chat-live .ico { width: 18px; height: 18px; }
.mn-chat-live.on { background: var(--ok); color: #062a22; animation: mnRec 1.6s ease-in-out infinite; }
.mn-chat-live.locked { background: rgba(244, 183, 64, .12); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .45); }
.mn-chat-lock { display: grid; place-items: center; }
.mn-chat-lock .ico { width: 13px; height: 13px; }
.mn-chat-state { min-height: 18px; margin: -4px 4px 0; font-size: 12.5px; color: var(--faint); }
.mn-chat-state.rec { color: var(--danger); font-weight: 700; }
.mn-chat-state.bad { color: var(--danger); }
.mn-chat-guest { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .mn-chat { padding: 12px; } .mn-chat-live span { display: none; } .mn-chat-live { width: 46px; padding: 0; justify-content: center; } .mn-chat-live .mn-chat-lock { position: absolute; top: -3px; inset-inline-end: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #2a1d00; } .mn-msg { max-width: 90%; } }
@media (prefers-reduced-motion: reduce) { .mn-msg.typing i, .mn-chat-ico#mnChatRec.on, .mn-chat-live.on { animation: none; } }

/* the live talk with the Mentor (mentor-live.js): the Mentor big and centred, the rest of the Mentor page hidden (the
   app's sidebar stays), the X in the stage's corner, what the talk is doing under him, the transcript below */
.mn-hub.mn-live .mn-arena { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cam"; grid-template-rows: none; max-width: 980px; }
.mn-hub.mn-live .side-col, .mn-hub.mn-live .mn-chat-area, .mn-hub.mn-live .mn-cam-mode, .mn-hub.mn-live .mn-cam-hear, .mn-hub.mn-live .mn-voice-down { display: none; }
.mn-live .mn-cam-col { gap: 16px; animation: mnLiveIn .25s ease-out; }
.mn-live .mn-cam-stage { padding: 28px 24px 18px; gap: 14px; }
.mn-live .tile.mn-cam { width: min(100%, 900px, max(320px, calc((100vh - 210px) * 4 / 3))); width: min(100%, 900px, max(320px, calc((100dvh - 210px) * 4 / 3))); max-width: none; }
.mn-live-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 11, 16, .72); color: #fff; }
.mn-live-x:hover { background: rgba(10, 11, 16, .9); }
.mn-live-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mn-live-x .ico { width: 20px; height: 20px; }
.mn-live-status { min-height: 21px; margin: 0; max-width: 680px; text-align: center; font-size: 14.5px; color: var(--muted); }
.mn-live-status.rec { color: var(--ok); font-weight: 700; }
.mn-live-status.bad { color: var(--danger); }
.mn-live-below { padding: 18px 20px 20px; border-radius: var(--r); background: var(--surface); }
.mn-live-txt { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15.5px; font-weight: 800; }
.mn-live-lines { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mn-tl { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.mn-tl b { font-size: 12.5px; font-weight: 800; color: var(--ok); }
.mn-tl.me b { color: var(--accent-hi); }
.mn-tl p { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.mn-tl.pending { opacity: .6; }
.mn-tl-dots { display: flex; gap: 4px; padding: 7px 0 4px; }
.mn-tl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: mnDot 1.1s ease-in-out infinite; }
.mn-tl-dots i:nth-child(2) { animation-delay: .15s; } .mn-tl-dots i:nth-child(3) { animation-delay: .3s; }
.mn-tl-empty { padding: 4px 2px; font-size: 14px; color: var(--faint); }
@keyframes mnLiveIn { from { opacity: 0; transform: scale(.985); } }
@media (max-width: 640px) {
  .mn-live .mn-cam-stage { padding: 12px 12px 14px; }
  .mn-live .tile.mn-cam { width: 100%; }
  .mn-live-x { top: 8px; inset-inline-end: 8px; }
  .mn-live-below { padding: 14px 14px 16px; }
  .mn-live-ask .dlg-act { flex-direction: column-reverse; }
  .mn-live-ask .dlg-act .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mn-live .mn-cam-col, .mn-tl-dots i { animation: none; } }

/* the admin quick panel's link to the full dashboard (the only one: the sidebar has no admin icon) */
.aq-dash { margin: 14px 16px 4px; justify-content: center; gap: 8px; }
.aq-dash .ico { width: 18px; height: 18px; }

/* Learn overview on phones: the block tabs as one swipeable row, compact lesson rows (title and length; the summary is
   on the lesson page), shorter block headers – the page stays the desktop design, just tighter */
@media (max-width: 760px) {
  .learn-page .learn-next { padding: 16px; gap: 14px; margin-bottom: 14px; }
  .learn-page .learn-next .ln-ico { width: 44px; height: 44px; } .learn-page .learn-next .ln-ico .ico { width: 26px; height: 26px; }
  .learn-page .learn-next .ln-t b { font-size: 17px; }
  .learn-page .learn-next .ln-t .muted { display: none; }
  .learn-page .track-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .learn-page .track-tabs::-webkit-scrollbar { display: none; }
  .learn-page .track-tab { flex: none; scroll-snap-align: start; padding: 9px 12px 12px; gap: 8px; border-radius: 12px; }
  .learn-page .track-tab b { white-space: nowrap; font-size: 13.5px; }
  .learn-page .track-tab .ico { width: 20px; height: 20px; }
  .learn-page .group-head { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; margin: 30px 0 10px; align-items: start; }
  .learn-page .group-head > .ico { width: 30px; height: 30px; grid-row: 1 / 3; margin-top: 2px; }
  .learn-page .group-head h2 { font-size: 19px; line-height: 1.25; }
  .learn-page .group-head p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .learn-page .group-head .block-progress { grid-column: 2; margin: 2px 0 0; font-size: 12.5px; }
  .learn-page .lesson-row { padding: 11px 14px; gap: 12px; }
  .learn-page .lesson-row small { display: none; }
  .learn-page .lesson-row b { font-size: 15px; line-height: 1.3; }
  .learn-page .lesson-row .state { width: 24px; height: 24px; }
  .learn-page .fl-entry { padding: 12px 14px; } .learn-page .fl-entry .t small { display: none; }
}

/* ---------- Replays (Clips): recording chip, the player on the duel page (public/js/replay.js) ---------- */
.tile .trec { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; }
.tile .trec i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 3px rgba(255, 77, 94, .25); animation: rec-pulse 1.6s ease-in-out infinite; }
.tile .trec.me { padding: 4px 9px; border-radius: 6px; background: rgba(10, 11, 16, .72); font-size: 12px; font-weight: 700; color: #ffd0d4; }
.tile .tstat:not(:empty) ~ .trec { top: 44px; }
@keyframes rec-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tile .trec i { animation: none; } }
.tile .rp-vid { z-index: 1; }
.tile.rp-on > video:not(.rp-vid) { visibility: hidden !important; }
.tile.rp-on .ph-wrap { z-index: 0; }
.tile .rp-ov { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tile .rp-chip { position: absolute; inset-inline-end: 10px; top: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(10, 11, 16, .72); font-size: 12px; font-weight: 700; color: #d8dbe6; }
.tile .rp-cap { position: absolute; inset-inline: 12px; bottom: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(10, 11, 16, .78); font-size: 14px; line-height: 1.4; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; animation: rp-cap-in .25s ease-out; }
@keyframes rp-cap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rp-wrap { width: 100%; max-width: 100%; box-sizing: border-box; }
.rp-wrap[hidden] { display: none; }
.rp-bar { margin: 12px -6px 0; padding: 12px 14px 10px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.arena-wrap.stream .rp-wrap { width: min(100%, calc(var(--tw) * 2 + 60px)); }
.arena-wrap.stream .rp-bar { margin: 10px 0 0; }
.arena-wrap.stream .stage:has(.rp-wrap:not([hidden])) { --tw: min(calc(50cqw - 30px), calc((100cqh - 262px) * 4 / 3)); --twt: min(calc(50cqw - 6px), calc((50cqh - 70px) * 4 / 3)); }
.rp-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rp-ph { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.rp-track { position: relative; height: 26px; cursor: pointer; touch-action: none; border-radius: 6px; outline-offset: 3px; }
.rp-track::before { content: ''; position: absolute; inset-inline: 0; top: 10px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.rp-seg { position: absolute; top: 10px; height: 6px; border-inline-end: 2px solid var(--surface-2); opacity: .55; }
.rp-seg.sp-pro { background: var(--pro); }
.rp-seg.sp-contra { background: var(--contra); }
.rp-seg.sp-none { background: var(--faint); }
.rp-fill { position: absolute; inset-inline-start: 0; top: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); pointer-events: none; mix-blend-mode: screen; }
.rp-head { position: absolute; top: 5px; width: 16px; height: 16px; margin-inline-start: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); pointer-events: none; }
.rp-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-ctl .btn { margin: 0; }
.rp-ctl .btn-icon, .pb-acts .btn-icon { width: 36px; padding: 0; justify-content: center; }
.rp-play { min-width: 96px; }
.rp-speed { padding: 3px; gap: 2px; }
.rp-speed button { height: 30px; padding: 0 9px; font-size: 13px; }
.rp-push { flex: 1; }
@media (max-width: 560px) {
  .rp-bar { margin: 10px 0 0; }
  .rp-ctl .rp-lbl { display: none; }
  /* the clip maker is the main thing on a phone: a labelled, full-width button as the last row */
  .rp-ctl .rp-clip { order: 10; flex: 1 1 100%; justify-content: center; color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--accent-hi); }
  .rp-ctl .rp-clip .rp-lbl { display: inline; }
  .rp-play { min-width: 0; }
  .rp-track { height: 32px; }
  .rp-track::before, .rp-seg, .rp-fill { top: 13px; }
  .rp-head { top: 6px; width: 20px; height: 20px; margin-inline-start: -10px; }
  /* touch targets of at least 44 px */
  .rp-ctl .btn { height: 44px; }
  .rp-ctl .btn-icon, .pb-acts .btn-icon { width: 44px; }
  .rp-speed button { height: 38px; padding: 0 12px; }
  /* replay open on a phone: both players side by side and shorter, the controls right under them (the score bar
     moves below), so the two videos and the controls fit on one screen */
  .stage:has(.rp-wrap:not([hidden])) { display: flex !important; flex-direction: column; align-items: stretch; }
  .stage:has(.rp-wrap:not([hidden])) > .tiles { width: 100%; }
  .stage:has(.rp-wrap:not([hidden])) > .tiles:not(.team) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .stage:has(.rp-wrap:not([hidden])) > .tiles .tile { aspect-ratio: 3 / 4; min-height: 0; }
  .stage:has(.rp-wrap:not([hidden])) > .tiles.team { gap: 6px; }
  .stage:has(.rp-wrap:not([hidden])) > .rp-wrap { order: 1; }
  .stage:has(.rp-wrap:not([hidden])) > .pbar-row { order: 2; }
  .stage:has(.rp-wrap:not([hidden])) > #stage-ov { order: 3; }
  .stage:has(.rp-wrap:not([hidden])) .tile .rp-cap { inset-inline: 6px; bottom: 6px; padding: 6px 8px; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stage:has(.rp-wrap:not([hidden])) .tile .rp-cap[hidden] { display: none; }
}
/* a finished duel with a replay: the poster play button over the cameras (the landing view of a shared link) */
.rp-poster { position: absolute; z-index: 6; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.rp-poster[hidden] { display: none; }
.rp-poster .rp-pbtn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .14); transition: transform .15s; }
.rp-poster .rp-pbtn .ico { width: 32px; height: 32px; margin-inline-start: 4px; }
.rp-poster:hover .rp-pbtn, .rp-poster:focus-visible .rp-pbtn { transform: scale(1.06); }
.rp-poster b { font-size: 15px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: rgba(10, 11, 16, .72); }
.rp-poster small { color: #d8dbe6; font-weight: 400; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rp-poster { top: 150px; } }
/* the stage scrolled into view (replay opened) stays clear of the sticky top bar */
@media (max-width: 760px) { .stage { scroll-margin-top: 64px; } }
.pb-acts { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.phasebar.mid .pb-acts .btn { margin: 4px 0 0; }
.rp-slot { display: contents; }
.phase-item.rp-jump, .tline.rp-jump { cursor: pointer; }
.phase-item.rp-jump:hover, .tline.rp-jump:hover { background: rgba(255, 255, 255, .04); }
.tline.rp-cur { box-shadow: inset 3px 0 0 var(--gold); background: rgba(244, 183, 64, .07); }
.duel-private .ico { width: 40px; height: 40px; opacity: .7; }
.dh-rp { display: inline-flex; vertical-align: -2px; color: var(--accent-hi); }
.dh-rp .ico { width: 13px; height: 13px; }
/* sharing (public/js/share.js) */
.share-body { display: flex; flex-direction: column; gap: 14px; }
.share-title { margin-top: 4px; overflow-wrap: anywhere; }
.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.share-grid.sm { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.share-net { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.share-grid.sm .share-net { flex-direction: row; justify-content: center; padding: 9px 10px; }
.share-net:hover { background: var(--surface-3); }
.share-net .sn-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.share-net .ico { width: 18px; height: 18px; }
.sn-whatsapp .sn-ico { background: #25d366; color: #fff; }
.sn-x .sn-ico { background: #000; color: #fff; }
.sn-telegram .sn-ico { background: #2aabee; color: #fff; }
.sn-reddit .sn-ico { background: #ff4500; color: #fff; }
.sn-facebook .sn-ico { background: #1877f2; color: #fff; }
.sn-linkedin .sn-ico { background: #0a66c2; color: #fff; }
.share-qr { display: grid; place-items: center; }
.share-qr .qr { width: 200px; height: 200px; border-radius: 8px; }
@media (max-width: 560px) { .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.modal-share .modal-body { padding-bottom: 20px; }
@media (max-width: 480px) {
  .modal-share .link-box { flex-direction: column; align-items: stretch; }
  .modal-share .link-box .input { flex: none; }
  .modal-share .link-box .btn { width: 100%; justify-content: center; }
}
.insp-act { justify-content: center; gap: 8px; }
.t-hero { position: relative; }
.t-share { position: absolute; inset-inline-end: 12px; top: 12px; }
.ls-share { margin-inline-start: auto; }
.ph-side-bot .btn.ph-share { width: 40px; height: 40px; padding: 0; justify-content: center; }
.ph-side-bot .btn.ph-share .ico { width: 18px; height: 18px; }
.page-head .tv-share { margin-inline-start: auto; }
.page-head .tv-share .ico { width: 18px; height: 18px; }
.dlg-act.rp-act { justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.dlg-act.rp-act:not(:has(.btn)) { display: none; }
.tile .rp-cap[hidden], .tile .rp-chip[hidden], .tile .trec[hidden] { display: none; }
/* ---------- Clip maker (public/js/clip-maker.js) and clip links (?t=&to=, public/js/replay.js) ---------- */
.rp-ctl .rp-clip { gap: 6px; }
.rp-ctl .rp-clip .ico { width: 17px; height: 17px; }
/* the clip range on a track: the clip maker's window, or a clip link (dashed) */
.rp-range { position: absolute; top: 4px; height: 18px; border-radius: 5px; background: rgba(123, 92, 255, .28); box-shadow: inset 0 0 0 2px var(--accent-hi); pointer-events: none; }
.rp-range[hidden] { display: none; }
.rp-range.rp-link { background: rgba(244, 183, 64, .16); box-shadow: inset 0 0 0 2px var(--gold); }
.rp-clipend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 8px; background: rgba(244, 183, 64, .12); font-size: 13.5px; font-weight: 700; }
.rp-clipend[hidden] { display: none; }
.rp-clipend .btn { margin: 0 0 0 auto; }
@media (max-width: 560px) { .rp-range { top: 6px; height: 20px; } }
/* the sheet */
.modal.modal-clip { max-width: 760px; }
.clip-body { padding-top: 16px; }
.clip-cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.clip-pv-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.clip-pv { width: 300px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0d0f14; box-shadow: 0 0 0 1px var(--line); }
.clip-pv[data-fmt="landscape"] { aspect-ratio: 16 / 9; }
.clip-pv[data-fmt="square"] { aspect-ratio: 1 / 1; }
.clip-pv canvas { display: block; width: 100%; height: 100%; }
.modal-clip[data-view="busy"] .clip-pv, .modal-clip[data-view="done"] .clip-pv { opacity: .55; }
.clip-pv-play { gap: 6px; min-height: 40px; }
.clip-ctl { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.clip-edit { display: flex; flex-direction: column; gap: 16px; }
.clip-edit[hidden], .clip-prog[hidden], .clip-done[hidden], .clip-note[hidden], .clip-pv-play[hidden] { display: none; }
.clip-sec { display: flex; flex-direction: column; gap: 8px; }
.clip-lbl { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.clip-len { margin-inline-start: 6px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
/* columns at least as wide as their label (the long first one, "Vertical (phone)", never wraps), equal when there is room */
.clip-fmt { grid-auto-columns: minmax(max-content, 1fr); }
.clip-fmt button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 8px; font-size: 13.5px; white-space: nowrap; }
.clip-fmt button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.clip-fi { flex: none; border: 2px solid currentColor; border-radius: 3px; }
.clip-fi-vertical { width: 10px; height: 17px; }
.clip-fi-landscape { width: 18px; height: 11px; }
.clip-fi-square { width: 14px; height: 14px; }
.clip-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
/* the range editor: the duel's phases, the window and its two handles (44 px touch targets) */
.clip-tl { position: relative; height: 44px; touch-action: none; cursor: pointer; }
.clip-tl::before { content: ''; position: absolute; inset-inline: 0; top: 19px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.clip-tl .rp-seg { top: 19px; }
.clip-tl .rp-range { top: 10px; height: 24px; pointer-events: auto; cursor: grab; touch-action: none; }
.rp-h { position: absolute; top: 0; width: 44px; height: 44px; margin-inline-start: -22px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; border-radius: 10px; outline: none; }
.rp-h::after { content: ''; width: 12px; height: 30px; border-radius: 4px; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .55), inset 0 0 0 3px var(--accent); }
.rp-h:focus-visible { box-shadow: 0 0 0 2px var(--accent-hi); }
:where([dir="rtl"]) .clip-tl { direction: ltr; }
.clip-times { display: flex; flex-direction: column; gap: 8px; }
.clip-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.clip-time .clip-tl-lbl { width: 46px; font-size: 13.5px; color: var(--muted); }
.clip-time output { min-width: 52px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.clip-time .btn { margin: 0; height: 40px; }
.clip-time .btn-icon { width: 40px; padding: 0; justify-content: center; }
.clip-note { margin: 0; line-height: 1.45; }
.clip-warn { padding: 8px 12px; border-radius: 8px; background: rgba(244, 183, 64, .12); color: #f3dca6; }
.clip-act { display: flex; flex-wrap: wrap; gap: 10px; }
.clip-act .btn { margin: 0; gap: 8px; }
.clip-act .btn-lg { flex: 1 1 auto; justify-content: center; }
.clip-act .btn small { font-weight: 600; opacity: .8; font-size: 13px; }
.clip-prog { display: flex; flex-direction: column; gap: 10px; }
.clip-prog .progress { height: 10px; border-radius: 5px; }
.clip-prog-txt { font-variant-numeric: tabular-nums; }
.clip-prog > .btn { align-self: flex-start; margin: 0; }
.clip-done { display: flex; flex-direction: column; gap: 12px; }
.clip-done-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.clip-done-head .ico { width: 20px; height: 20px; color: var(--ok); }
.clip-done .clip-act .btn[hidden] { display: none; }
.clip-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* phones: a bottom sheet, the preview on top */
@media (max-width: 600px) {
  .modal-back:has(.modal-clip) { padding: 0; place-items: end center; }
  .modal.modal-clip { max-width: none; border-radius: 16px 16px 0 0; max-height: 88vh; max-height: 88dvh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-clip .modal-head.left { padding: 16px 18px 12px; }
  .modal-clip .modal-head h2 { font-size: 19px; }
  .clip-body { padding: 14px 18px 20px; }
  .clip-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .clip-pv { width: 180px; }
  .clip-pv[data-fmt="landscape"] { width: min(342px, 100%); }
  .clip-pv[data-fmt="square"] { width: 240px; }
  .clip-act { flex-direction: column; }
  .clip-act .btn { width: 100%; justify-content: center; height: 48px; }
  .clip-fmt button { font-size: 12.5px; gap: 5px; padding: 0 6px; }
  .clip-fmt .clip-fi { display: none; }
}

/* ==== admin shell (public/js/admin.js, admin-ui.js): 7 sections, sub-views, strip, shared states ==== */
/* zero specificity: any explicit min-width wins; stops flex/grid children from widening the page at 390 px */
:where(.adm), :where(.adm) :where(div, section, form, span, p, dl, dd, label) { min-width: 0; }
.adm-head { flex-wrap: wrap; row-gap: 6px; margin-bottom: 20px; }
.adm-head .adm-version { font-size: 12px; color: var(--faint); }
.adm-nav { margin-bottom: 14px; }
.adm-nav button { position: relative; }
.adm-subnav { margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.adm-subnav::-webkit-scrollbar { display: none; }
.adm-subnav[hidden], .adm-subnav:empty { display: none; }
.adm-sub { display: inline-flex; width: auto; max-width: none; } /* every section's pills sized the same way: by their text */
.adm-sub button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; min-width: 88px; white-space: nowrap; }
.adm-sub .tab-n { min-width: 18px; height: 18px; font-size: 11px; }
.adm-tech > summary { font-weight: 600; font-size: 13px; color: var(--faint); }
.adm-tech .aiz-in { font-size: 13px; color: var(--muted); }
.adm-empty { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 24px; color: var(--muted); font-size: 14px; }
.adm-empty .ico { width: 20px; height: 20px; flex: none; color: var(--green, #3ecf8e); }
.adm-todo-row { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 14px; }
.adm-todo-row > span { flex: 1; }
.adm-todo-row .btn { flex: none; }
.adm-todo-alarms { margin: 0; padding: 12px 18px; }
@media (max-width: 600px) {
  .adm-nav { gap: 0; }
  .adm-nav button { flex-direction: column; justify-content: center; gap: 2px; height: 58px; padding: 0 10px; font-size: 11px; }
  .adm-nav button .ico { width: 20px; height: 20px; }
  .adm-nav button .tab-n { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  .adm-sub button { height: 34px; padding: 0 12px; min-width: 0; font-size: 13px; }
  .adm-todo-row { padding: 12px 16px; flex-wrap: wrap; }
  .adm #abody { padding-bottom: 80px; } /* the quick-panel bubble never covers the last row */
}
.adm-nav .adm-ts { display: none; }
/* phones: all seven sections fit side by side (short labels, no padding to spare) */
@media (max-width: 420px) {
  .adm-nav { justify-content: space-between; }
  .adm-nav button { flex: 1 1 auto; padding: 0 3px; min-width: 0; }
  .adm-nav button:has(.adm-ts) .adm-tl { display: none; }
  .adm-nav .adm-ts { display: inline; }
}
/* ==== end admin shell ==== */

/* ==== Admin: Today, Inbox, Platform and the quick panel (admin-today/-contact/-platform/-quick.js) ==== */
/* Today (public/js/admin-today.js) */
#adm-today-ov:not(:empty) { margin-top: 20px; }
.adm-todo-list .adm-todo-row:first-child { border-top: 0; }
.adm-todo-alarms + .adm-todo-list .adm-todo-row:first-child { border-top: 1px solid var(--line); }
.adm-todo-row > .adm-todo-lv { flex: none; width: 78px; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.adm-todo-row.red > .adm-todo-lv { color: #ff8d98; }
.adm-todo-row > .adm-todo-t { flex: 1 1 200px; overflow-wrap: anywhere; }
.adm-today-clear { padding-bottom: 16px; }
.adm-today-clear .adm-empty { padding-bottom: 2px; }
.adm-today-clear small { display: block; padding-inline: 54px 24px; color: var(--faint); font-size: 12px; }
.adm-today-now .adm-tiles { padding-top: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Platform (public/js/admin-platform.js) */
.adm-plat + .adm-plat { margin-top: 20px; }
.adm-plat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.card-head + div > .adm-plat-row:first-child { border-top: 0; }
.adm-plat-row > span:first-child { flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.adm-plat-row > span:first-child > b { font-size: 15px; }
.adm-plat-row small { font-size: 12.5px; line-height: 1.4; }
.adm-sw-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.adm-sw-num { width: 96px; height: 36px; }
.adm-plat .adm-tech .aiz-in { padding: 0 24px 16px; }
.adm-sw-demo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0; }
.adm-sw-demo > span { flex: 1 1 200px; }
.adm-legal-miss { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #ff8d98; }
.adm-legal-miss .aiz-s { white-space: normal; }
.adm-legal-lead { margin: 0; padding: 14px 24px 4px; font-size: 13.5px; }
.adm-legal-open { padding: 10px 24px 20px; }
#adm-legal > .aiz-more { margin-top: 10px; }
#adm-legal .aiz-in { padding: 4px 24px 20px; }
.acm-legal .field small { color: var(--faint); }
.acm-legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.acm-miss .input { box-shadow: inset 0 0 0 1.5px rgba(239, 77, 90, .6); }
.acm-tag { font-style: normal; margin-inline-start: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(239, 77, 90, .16); color: #ff8d98; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
/* Platform ▸ Email (public/js/admin-email.js): status line + health chips + tests, tabs, compact tables */
.aem-status { display: flex; flex-direction: column; gap: 10px; padding: 4px 24px 16px; }
.aem-verdict { display: flex; align-items: baseline; gap: 9px; margin: 0; font-size: 15px; font-weight: 700; }
.aem-verdict > .aiz-dot { position: relative; top: -1px; }
.aem-verdict small { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.aem-verdict.bad { color: #ff8d98; }
.aem-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aem-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 11px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; max-width: 100%; }
.aem-chip > b { font-weight: 700; color: var(--muted); }
.aem-chip > span { overflow-wrap: anywhere; }
.aem-chip.warn { box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .45); }
.aem-chip.bad { box-shadow: inset 0 0 0 1px rgba(239, 77, 90, .6); }
.aem-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.aem-out { margin: 0; font-size: 13px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.aem-out:empty { display: none; }
.aem-out .aiz-s { font-size: 13px; white-space: normal; }
.aem-tabbar { padding: 12px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aem-tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.aem-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #1b1404; font-size: 11px; font-weight: 800; }
#aem-tab { padding-bottom: 8px; }
#aem-tab > .adm-empty, #aem-tab > div > .adm-empty { padding-inline: 24px; }
.aem-tiles { padding-top: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.aem-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 18px 0 8px; padding: 0 24px; font-size: 14px; }
.aem-h small { font-weight: 500; font-size: 12.5px; }
.aem-lead, .aem-foot { margin: 12px 0; padding: 0 24px; font-size: 13px; }
.aem-more { padding: 8px 24px 0; }
.aem-bad { color: #ff8d98; font-weight: 700; }
.aem-sub { display: block; margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
.aem-stack td { vertical-align: middle; padding-block: 7px; }
.aem-stack td.aem-act { text-align: end; white-space: nowrap; }
.aem-rowact { display: inline-flex; gap: 6px; }
.aem-stack code { font-size: 12.5px; }
.aem-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; font-size: 13.5px; }
.aem-dl dt { color: var(--faint); }
.aem-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-plat .adm-tech.aiz-more { margin-top: 8px; }
.aem-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 24px; }
.aem-filter .input { width: auto; flex: 1 1 140px; min-width: 0; height: 36px; padding-block: 0; font-size: 13.5px; }
.aem-filter .aem-q { flex: 2 1 180px; }
.aem-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px 8px; border-top: 1px solid var(--line); font-size: 13px; }
.aem-note { display: flex; flex-direction: column; gap: 4px; margin: 12px 24px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; line-height: 1.45; }
.aem-note.warn { box-shadow: inset 3px 0 0 var(--gold); }
.aem-note > span { color: var(--muted); }
.aem-segrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 24px 4px; }
#aem-news > .aiz-more { margin-top: 14px; }
.aem-langs { padding-inline: 0; border-bottom: 0; }
.aem-comp { display: flex; flex-direction: column; }
.aem-bc .btn-row { flex-wrap: wrap; }
.aem-sws { display: flex; flex-direction: column; }
.aem-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 24px; border-top: 1px solid var(--line); cursor: pointer; }
.aem-sw:first-child { border-top: 0; }
.aem-sw.ro { cursor: default; }
.aem-sw > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aem-sw > span:first-child b { font-size: 14.5px; }
.aem-sw small { font-size: 12.5px; line-height: 1.4; }
.aem-sw-st { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.aem-sw-st em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #ff8d98; }
.aem-sws + .aiz-more { margin-top: 8px; }
.aem-check { margin: 0; font-size: 13.5px; line-height: 1.55; }
@media (max-width: 760px) {
  .aem-status, .aem-tabbar, .aem-h, .aem-lead, .aem-foot, .aem-more, .aem-filter, .aem-pager, .aem-segrow, .aem-sw { padding-inline: 16px; }
  .aem-note { margin-inline: 16px; }
  .aem-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #aem-tab > .adm-empty, #aem-tab > div > .adm-empty { padding-inline: 16px; }
  .aem-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .aem-dl dd { margin-bottom: 6px; }
}
@media (max-width: 600px) {
  /* tables become stacked rows: the first cell is the row's title, the others follow as small "Label value" pairs */
  .aem-stack thead { display: none; }
  .aem-stack, .aem-stack tbody { display: block; width: 100%; }
  .aem-stack tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .aem-stack tbody tr:last-child { border-bottom: 0; }
  .aem-stack.ai-tbl td, .aem-stack.ai-tbl tbody tr:last-child td { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; border: 0; text-align: start; min-width: 0; max-width: 100%; }
  .aem-stack.ai-tbl td:first-child { flex: 1 0 100%; font-weight: 700; }
  .aem-stack.ai-tbl td:not(:first-child)::before { content: attr(data-l); flex: none; color: var(--faint); font-size: 12px; font-weight: 700; }
  .aem-stack.ai-tbl td[data-l=""]::before { content: none; }
  .aem-stack .aem-v { min-width: 0; overflow-wrap: anywhere; }
  .aem-stack.ai-tbl td.aem-act { margin-inline-start: auto; }
  .aem-stack.ai-tbl td.aem-act:has(.aem-rowact:empty), .aem-stack.ai-tbl td.aem-act:has(.aem-v:empty) { display: none; }
  .aem-stack .aiz-s { white-space: normal; }
  .aem-stack .aem-sub { display: inline; margin: 0 0 0 6px; }
  .aem-filter .input, .aem-filter .aem-q { flex: 1 1 calc(50% - 4px); }
  .aem-tabs { gap: 4px; }
}
.adm-log-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.adm-chip { height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.adm-chip:hover { color: #fff; }
.adm-chip.on { color: #fff; background: var(--accent-soft, rgba(123, 92, 255, .2)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.adm-log-row { display: grid; grid-template-columns: 110px 110px minmax(0, 190px) minmax(0, 150px) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.adm-log-row:first-child { border-top: 0; }
.adm-log-row time { color: var(--faint); font-size: 12.5px; }
.adm-log-row > * { overflow-wrap: anywhere; }
.adm-log-act { font-weight: 700; }
.adm-log-more { padding: 12px 24px 16px; border-top: 1px solid var(--line); }
/* Inbox (public/js/admin-contact.js) */
.acm-sel { width: auto; min-width: 0; max-width: 100%; height: 36px; padding-block: 0; font-size: 13.5px; }
.acm-open { color: #ffcf6e; }
.acm-list { display: flex; flex-direction: column; }
.acm-row { display: grid; grid-template-columns: 110px 190px minmax(0, 1fr) 170px; gap: 14px; align-items: start; padding: 12px 24px; border-top: 1px solid var(--line); text-align: start; background: none; color: inherit; font: inherit; cursor: pointer; width: 100%; }
.acm-row:first-child { border-top: 0; }
.acm-row:hover { background: var(--surface-2); }
.acm-row small { display: block; color: var(--faint); font-size: 12px; overflow-wrap: anywhere; }
.acm-prev { color: var(--muted); font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.acm-modal { max-width: min(760px, calc(100vw - 32px)); }
.acm-detail { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.acm-dh { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-inline-end: 34px; }
.acm-dh h2 { font-size: 20px; margin: 0; }
.acm-meta { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.acm-meta dt { color: var(--faint); }
.acm-meta dd { margin: 0; overflow-wrap: anywhere; }
.acm-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14.5px; line-height: 1.55; }
.acm-eb { margin-bottom: 6px; }
.acm-reply textarea { min-height: 110px; }
/* Quick panel (public/js/admin-quick.js) */
.aq-dash { flex-wrap: wrap; }
.aq-todo { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--gold); color: #1b1404; }
.aq-todo.red { background: var(--danger); color: #fff; }
.aq-hint { color: var(--faint); font-size: 12px; }
.aq-fold > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.aq-fold > summary::-webkit-details-marker { display: none; }
.aq-fold > summary:hover { color: var(--text); }
.aq-fold > summary .ico { width: 15px; height: 15px; transition: transform .15s; }
.aq-fold[open] > summary .ico { transform: rotate(180deg); }
.aq-fold-in { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.aq-sec > .aq-fold:only-child > summary { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) {
  .acm-legal-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-log-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-inline: 16px; }
  .adm-log-row time { grid-column: 1 / -1; }
  .adm-log-row > small { grid-column: 1 / -1; }
  .acm-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-inline: 16px; }
  .acm-meta { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .acm-meta dd { margin-bottom: 6px; }
  .acm-detail { padding: 20px 18px; }
  .adm-plat-row, .adm-log-chips, .adm-log-more { padding-inline: 16px; }
  .adm-legal-lead { padding-inline: 16px; }
  .adm-legal-open, #adm-legal .aiz-in, .adm-plat .adm-tech .aiz-in { padding-inline: 16px; }
  .adm-today-clear small { padding-inline: 46px 16px; }
  .adm-today-now .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .adm-todo-list .adm-todo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; }
  .adm-todo-row > .adm-todo-lv { grid-area: 1 / 1; width: auto; }
  .adm-todo-row > .adm-todo-t { grid-area: 2 / 1; }
  .adm-todo-list .adm-todo-row > .btn { grid-area: 1 / 2 / 3 / 3; }
}
/* ==== end Admin: Today, Inbox, Platform, quick panel ==== */

/* ==== Admin: Moderation and Players (admin-moderation.js, admin-players.js) ==== */
/* Moderation (public/js/admin-moderation.js): "To decide" groups, history bar, auto-mod card */
.adm-mod-grp + .adm-mod-grp { margin-top: 28px; }
.adm-mod-gh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; }
.adm-mod-gh h3 { font-size: 17px; margin: 0; }
.adm-mod-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-3); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-mod-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.adm-mod-bar select { width: auto; max-width: 100%; }
.adm-mod-st { font-size: 12px; font-weight: 700; color: var(--muted); }
.adm-mod-st.warn { color: var(--gold); }
.adm-mod-raw { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.adm-mod-pad { padding: 16px 24px; }
.aiz-in > .adm-mod-pad { padding-top: 0; padding-bottom: 0; }
/* the thresholds fold inside the auto-mod form: flush with the form's fields */
#amf > .aiz-more > summary { padding-inline: 0; }
#amf > .aiz-more > .aiz-in { padding-bottom: 4px; }
.adm-mod-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.adm-mod-duel .adm-mod-row > span { flex: 1 1 200px; }
.adm-mod-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding-bottom: 0; }
.adm-mod-reasons { font-size: 15px; line-height: 1.4; }
.adm-mod-am .toggle { min-height: 44px; }
.adm-mod .plist .adm-flag { padding-block: 12px; }
/* the technical fold inside a report / auto-mod card: a quiet one-line toggle */
.adm-rep > .adm-tech { border-top: 0; margin-top: -2px; }
.adm-rep > .adm-tech > summary { padding: 2px 0; font-size: 12.5px; }
.adm-rep > .adm-tech .aiz-in { padding: 4px 0 0; }
.adm-rep .ar-head time { white-space: nowrap; }
/* Players (public/js/admin-players.js): list cards, player and club detail */
.adm-plr-find { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.adm-plr-find .input-icon { flex: 1 1 220px; }
.adm-plr-find select { flex: none; width: auto; max-width: 100%; }
.adm-plr-dr { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; vertical-align: middle; }
.adm-plr-dr .ico { width: 14px; height: 14px; }
.adm-plr-acts { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.adm-plr-arow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.adm-plr-al { flex: none; width: 96px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.adm-plr-btns { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.adm-plr-btns .btn .ico { flex: none; }
.adm-plr-user > .aiz-more, .adm-plr-acts > .aiz-more { border-top: 1px solid var(--line); }
.adm-plr-user > .aiz-more > summary, .adm-plr-acts > .aiz-more > summary { padding: 10px 0; }
.adm-plr-user .aiz-in, .adm-plr-acts .aiz-in { padding: 0 0 6px; }
.adm-plr-cact { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adm-plr-none { margin: 12px 0 0; }
@media (max-width: 600px) {
  .adm-mod-pad, .adm-plr-find { padding-inline: 16px; }
  .adm-mod-2 { grid-template-columns: minmax(0, 1fr); }
  .adm-mod .plist .adm-flag { padding-inline: 16px; }
  .adm-mod .adm-flag .af-txt { flex: 1 1 100%; }
  .adm-mod .adm-flag .person-act { margin-inline-start: auto; }
  .adm-plr-al { width: 100%; }
  .adm-user.adm-plr-user { padding: 22px 16px 18px; }
  .adm-plr-user .au-head { flex-wrap: wrap; gap: 12px; }
  .adm-plr-user .au-head .av { width: 56px; height: 56px; font-size: 24px; }
  .adm-plr-user .au-head > div:not(.av) { flex: 1 1 calc(100% - 72px); }
  .adm-plr-user .au-head h2 { font-size: 20px; overflow-wrap: anywhere; }
  .adm-plr-user .au-head > .btn { order: 3; }
}
/* ==== end Admin: Moderation, Players ==== */

/* ==== Admin: Business (admin-business/-stats/-partners/-shop.js) ==== */
/* Business (public/js/admin-business.js): page, lead lines, notes (Partners), folded cards */
.adm-biz { display: flex; flex-direction: column; gap: 20px; }
.adm-biz > .card { margin: 0; }
.adm-biz-lead { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.adm-biz-note { margin: 0; padding: 10px 24px 16px; font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.adm-biz-note code { font-size: 12px; overflow-wrap: anywhere; }
.adm-tile .link { font-size: inherit; }
.adm-biz-fold > .aiz-more { border-top: 0; }
.adm-biz-fold > .aiz-more > summary { padding-block: 16px; font-size: 15px; color: var(--text); }
.adm-biz .adm-empty { padding: 14px 24px; }
/* ==== Admin: Business ▸ Numbers & Payments (admin-stats.js, admin-business.js payments; prefix abz-) ==== */
.abz { gap: 24px; }
.abz-card > .card-head { margin-bottom: 18px; }
/* key numbers: label, big value, one muted line */
.abz-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 24px 22px; }
.abz-kpis.abz-k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.abz-kpis.abz-k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.abz-kpis.abz-k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.abz-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface-2); }
.abz-kl { font-size: 12px; font-weight: 700; color: var(--muted); }
.abz-kv { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abz-ks { font-size: 12.5px; line-height: 1.4; color: var(--faint); }
.abz-ks .aiz-s { font-size: 13px; font-weight: 700; color: var(--muted); }
.abz-ks .ast-meter { display: block; height: 6px; margin-top: 8px; }
.abz-kpi.ok { box-shadow: inset 3px 0 0 var(--ok); }
.abz-kpi.warn { box-shadow: inset 3px 0 0 var(--gold); }
.abz-kpi.bad { box-shadow: inset 3px 0 0 var(--danger); }
.abz-sm .abz-kpi { padding: 12px 14px; }
.abz-sm .abz-kv { font-size: 22px; }
@media (max-width: 1100px) { .abz-kpis.abz-k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .abz-kpis, .abz-kpis.abz-k5, .abz-kpis.abz-k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-inline: 16px; }
  .abz-kpis.abz-k4 { padding-inline: 0; }
  .abz-kpis > .abz-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .abz-kpi { padding: 14px; }
  .abz-kv { font-size: 24px; }
}
/* the period control: one segmented control between "This month" and the cards it applies to */
.abz-period { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 4px 0; }
.abz-pt { display: flex; flex-direction: column; gap: 2px; }
.abz-pt > span { font-size: 15px; font-weight: 800; color: var(--text); }
.abz-pt > small { font-size: 12.5px; color: var(--faint); }
.abz-seg { width: 300px; max-width: 100%; }
.abz-seg button { height: 36px; padding: 0 10px; white-space: nowrap; }
.abz-upd { margin-inline-start: auto; font-size: 12.5px; color: var(--faint); }
.abz-upd .link { font-size: inherit; }
@media (max-width: 600px) { .abz-seg { width: 100%; } .abz-upd { margin-inline-start: 0; } }
/* sections inside a card, sub-headings */
.abz-sec { padding: 0 24px 22px; }
.abz-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.abz-sh h4 { margin: 0; font-size: 13px; font-weight: 800; color: var(--text); }
.abz-sh h4 em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: rgba(239, 77, 90, .18); color: #ff9aa2; font-size: 11.5px; }
.abz-sh > span { font-size: 12.5px; color: var(--faint); }
.abz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.abz-two > div { min-width: 0; }
@media (max-width: 900px) { .abz-two { grid-template-columns: minmax(0, 1fr); } }
.abz-in { padding: 4px 24px 18px; }
.abz-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); overflow-wrap: anywhere; }
.abz-quiet { margin: 0; font-size: 13.5px; color: var(--faint); }
.abz-foot { margin: 0; font-size: 12.5px; color: var(--faint); }
.abz-fs { margin-inline-start: 6px; font-weight: 600; color: var(--faint); }
.abz-fs.bad { color: #ff9aa2; }
/* tables: no own side padding inside a section, numbers right-aligned and tabular */
.abz-tbl { font-size: 13.5px; }
.abz-tbl th { font-size: 11px; }
.abz-sec .abz-tbl th:first-child, .abz-sec .abz-tbl td:first-child { padding-inline-start: 0; }
.abz-sec .abz-tbl th:last-child, .abz-sec .abz-tbl td:last-child { padding-inline-end: 0; }
.abz-tbl td:first-child { white-space: nowrap; }
.abz-tbl .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.abz-n { display: inline-block; min-width: 4ch; margin-inline-end: 10px; text-align: end; color: var(--faint); font-size: 12px; }
.abz-nw { white-space: nowrap; }
/* a wide table (By channel …): scrolls inside its card, first column stays, a fade + hint while columns are hidden */
.abz-x { position: relative; }
.abz-x .abz-wide th:first-child, .abz-x .abz-wide td:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); }
.abz-x.can-scroll .abz-wide th:first-child, .abz-x.can-scroll .abz-wide td:first-child { box-shadow: inset -1px 0 0 var(--line); padding-inline-end: 12px; }
.abz-x::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 36px; pointer-events: none; opacity: 0; transition: opacity .15s; background: linear-gradient(to right, transparent, var(--surface)); }
.abz-x.can-scroll:not(.at-end)::after { opacity: 1; }
.abz-x-hint { margin: 8px 0 0; font-size: 12px; color: var(--faint); }
.aiz-more .abz-x-hint { padding-inline: 24px; }
@media (max-width: 760px) { .abz-sec, .abz-in { padding-inline: 16px; } .aiz-more .abz-x-hint { padding-inline: 16px; } }
/* "How … is counted" folds */
.abz-howf > summary { font-weight: 600; font-size: 13px; color: var(--faint); }
.abz-how { display: grid; gap: 10px; margin: 0; padding: 2px 24px 18px; font-size: 13px; line-height: 1.5; }
.abz-how > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 16px; }
.abz-how dt { font-weight: 700; color: var(--muted); }
.abz-how dd { margin: 0; color: var(--faint); overflow-wrap: anywhere; }
.abz-how dd .aiz-s { font-size: 13px; }
.abz-how-in { padding-top: 8px; }
@media (max-width: 600px) { .abz-how { padding-inline: 16px; } .abz-how > div { grid-template-columns: minmax(0, 1fr); } }
/* charts */
.abz .ast-chart { padding: 12px 14px 8px; }
.abz-ct { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.abz-ct h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.abz-ct > span { font-size: 12px; color: var(--faint); white-space: nowrap; }
.abz .ast-mrr { padding: 0; }
.abz .ast-charts { padding-top: 4px; }
/* Payments: problems, payment rows (table on wide screens, two lines on phones) */
.abz-alert { margin: 0 24px 24px; padding: 14px 16px 6px; border-radius: var(--r-sm); background: rgba(239, 77, 90, .07); box-shadow: inset 3px 0 0 var(--danger); }
.abz-rows { display: flex; flex-direction: column; font-size: 13.5px; }
.abz-pr { display: grid; grid-template-columns: 76px minmax(0, 1.1fr) minmax(0, 2fr) 90px 90px; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.abz-rows > .abz-pr:first-child { border-top: 0; }
.abz-ph { padding-block: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.abz-pr .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.abz-pw { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.abz-pp, .abz-pk { min-width: 0; overflow-wrap: anywhere; }
.abz-pk b { font-weight: 700; }
.abz-pk .aiz-s { font-size: 13.5px; font-weight: 700; }
.abz-pa { font-weight: 700; }
.abz-pr.is-refund .abz-pa, .abz-pr.is-refund .abz-pc { color: #ff9aa2; }
.abz-pr.is-gift .abz-pk b { color: #ffd98a; }
.abz-alert .abz-pr { border-top-color: rgba(239, 77, 90, .18); }
.abz-alert .abz-pc { display: none; }
.abz-alert .abz-pr { grid-template-columns: 76px minmax(0, 1.1fr) minmax(0, 2fr) 90px; }
.abz .aiz-more .abz-rows { padding: 0 24px 12px; }
.abz-sec > .aiz-more { margin-top: 4px; }
.abz-sec > .aiz-more > summary { padding-inline: 0; }
.abz .abz-sec > .aiz-more .abz-rows { padding-inline: 0; }
.abz-pcm { display: none; }
@media (max-width: 600px) {
  .abz-alert { margin-inline: 16px; }
  .abz-ph { display: none; }
  .abz-pr, .abz-alert .abz-pr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "p w"; gap: 2px 12px; }
  .abz-pk { grid-area: k; } .abz-pa { grid-area: a; } .abz-pp { grid-area: p; font-size: 12.5px; } .abz-pw { grid-area: w; text-align: end; font-size: 12.5px; color: var(--faint); }
  .abz-pc { display: none; }
  .abz-pcm { display: inline; }
  .abz-rows > .abz-ph + .abz-pr { border-top: 0; }
  .abz .aiz-more .abz-rows { padding-inline: 16px; }
  .abz .abz-sec > .aiz-more .abz-rows { padding-inline: 0; }
}
.adm-pay .aiz-more { border-top: 1px solid var(--line); }
/* ==== end Admin: Business ▸ Numbers & Payments ==== */
/* ==== Admin: Business ▸ review fixes (trial rows, touch hints) ==== */
/* Payments ▸ Latest trials: rows like the payment rows (public/js/admin-business.js trialRow) –
   Started · Player · Plan · Trial end · Status; on phones player + status, then plan · trial end and the start muted */
.abz-pr.abz-tr { grid-template-columns: 76px minmax(0, 1.1fr) minmax(0, 1.6fr) 76px minmax(96px, auto); }
.abz-tr .abz-te { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.abz-tr .abz-ts { font-weight: 400; }
.abz-tr .abz-ts .aiz-s { font-size: 13.5px; }
@media (max-width: 600px) {
  .abz-pr.abz-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "p s" "k w"; }
  .abz-tr .abz-pp { grid-area: p; font-size: 13.5px; font-weight: 700; }
  .abz-tr .abz-ts { grid-area: s; }
  .abz-tr .abz-pk { grid-area: k; font-size: 12.5px; color: var(--muted); }
  .abz-tr .abz-te { display: none; }
}
/* Numbers ▸ 12-month chart: the bars explain themselves on hover only – no "hover" hint on touch screens or phones
   (where it only wrapped the head), and every second month label on narrow phones */
@media (hover: none), (max-width: 600px) { .abz-hov { display: none; } }
@media (max-width: 420px) { .ast-mrr .ast-ax span:nth-child(even) { visibility: hidden; } }
/* ==== end Admin: Business ▸ review fixes ==== */
/* Payments: Stripe setup rows */
.adm-pay-hint { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.adm-pay-setup { display: flex; flex-direction: column; }
.adm-pay-sr { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 14px; }
.adm-pay-sr:first-child { border-top: 0; }
.adm-pay-sl { display: flex; flex-direction: column; gap: 3px; }
.adm-pay-sl code { font: 500 12px ui-monospace, monospace; color: var(--faint); text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.adm-pay-sv { overflow-wrap: anywhere; }
@media (max-width: 600px) { .adm-pay-sr { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; } }
/* Numbers (admin-stats.js) */
.ast-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 24px 20px; }
.ast-chart { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px 8px; min-width: 0; }
.ast-chart svg { display: block; width: 100%; height: 90px; margin-top: 6px; }
.ast-chart svg rect.b { fill: var(--accent-hi); }
.ast-chart svg rect.b:hover, .ast-chart svg g:hover rect.b { fill: #b3a1ff; }
.ast-chart svg line { stroke: var(--line); stroke-width: 1; }
.ast-chart .ast-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.ast-meter { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; overflow: visible; }
.ast-meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--accent-hi); }
.ast-meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.ast-utm { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ast-utm label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ast-out { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.ast-out code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 12.5px; overflow-wrap: anywhere; }
.ast-pre { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ast-ecpm { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ast-ecpm label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ast-ecpm input { width: 120px; }
.ast-mrr { padding: 0 24px 18px; }
.ast-mrr .ast-chart svg { height: 130px; }
.ast-mrr .ast-ax span { flex: 1; text-align: center; }
.ast-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; padding: 18px 24px 8px; }
.ast-goal { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; min-width: 0; }
.ast-goal.g-ok { box-shadow: inset 3px 0 0 var(--ok); } .ast-goal.g-warn { box-shadow: inset 3px 0 0 var(--gold); } .ast-goal.g-bad { box-shadow: inset 3px 0 0 var(--danger); }
.ast-goal header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ast-goal header > span { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ast-goal header .aiz-s { font-size: 12.5px; font-weight: 700; }
.ast-goal strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ast-goal strong small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ast-goal.g-ok .ast-meter i { background: var(--ok); } .ast-goal.g-warn .ast-meter i { background: var(--gold); } .ast-goal.g-bad .ast-meter i { background: var(--danger); }
@media (max-width: 760px) { .ast-charts { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; } .ast-goals { padding-inline: 16px; } }
/* Partners (admin-partners.js) */
.apt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; padding: 4px 24px 20px; }
.apt-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.apt-form .wide { grid-column: 1 / -1; }
.apt-form .chks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; color: var(--text); }
.apt-form .chks label { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.apt-form .act { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.apt-code { font: 800 13px ui-monospace, monospace; letter-spacing: .03em; }
.apt-note { margin: 0 24px 16px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 107, 74, .12); color: #ffb4a3; font-size: 13px; display: flex; gap: 8px; }
.apt-note .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.apt-row-off td { opacity: .5; }
.apt-org { display: flex; align-items: center; gap: 8px; }
.apt-org .plan-g, .apt-org svg { width: 20px; height: 20px; }
.apt-sub { display: block; font-size: 11.5px; color: var(--faint); }
.apt-btns { display: flex; gap: 2px; justify-content: flex-end; flex-wrap: nowrap; }
.apt-det { padding: 0 24px 20px; }
.apt-det h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.apt-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.apt-inline .input { max-width: 220px; }
.apt-danger { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .apt-form, .apt-det { padding-inline: 16px; } .apt-note { margin-inline: 16px; } }

.apt-chip { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 107, 74, .14); color: #ffb4a3; white-space: nowrap; cursor: help; }
.apt-chip .ico { width: 13px; height: 13px; }
/* Shop (admin-shop.js) */
.ash-mini { position: relative; display: inline-block; width: 64px; height: 48px; flex: none; vertical-align: middle; }
.ash-mini > .ash-mz { position: absolute; left: 0; top: 0; width: 240px; transform: scale(.2667); transform-origin: 0 0; pointer-events: none; }
.ash-mini > .ash-mz > .cf, .ash-mini > .ash-mz > .sp-cam { width: 240px; margin: 0; }
.ash-mini.t-name > .ash-mz .nx-stage { min-height: 180px; font-size: 52px; padding: 0; }
.ash-btns { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.ash-day-h .ash-btns { flex-wrap: wrap; }
.ash-days { padding: 0 24px 18px; }
.ash-day { border-top: 1px solid var(--line); padding: 14px 0 16px; }
.ash-day-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ash-day-h > b { font-size: 14.5px; }
.ash-day-h .ash-btns { margin-inline-start: auto; }
.ash-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.ash-badge.custom { background: rgba(120, 140, 255, .18); color: #c3cbff; }
.ash-badge.today { background: rgba(60, 200, 120, .14); color: var(--ok); }
.ash-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin-top: 10px; }
.ash-type > span { display: flex; gap: 6px; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ash-type.own > span { color: #c3cbff; }
.ash-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ash-row .ash-mini { border-radius: 6px; }
.ash-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ash-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 196, 80, .1); color: #ffd98a; }
.ash-chip.ev { background: rgba(110, 190, 255, .12); color: #a8dbff; }
.ash-chip .ico { width: 13px; height: 13px; }
.ash-pick { margin-top: 12px; padding: 12px 14px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.ash-scroll { max-height: min(56vh, 520px); overflow: auto; overscroll-behavior: contain; margin-top: 4px; padding-inline-end: 4px; }
.ash-fig { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; margin: 0; vertical-align: top; }
.ash-fig figcaption { width: 100%; font-size: 10.5px; line-height: 1.25; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ash-pick-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ash-pick-h .input { max-width: 260px; }
.ash-pick-h .act { margin-inline-start: auto; display: flex; gap: 8px; }
.ash-grp h4 { margin: 14px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ash-grp h4 em { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; }
.ash-grp h4 em.ok { color: var(--ok); }
.ash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.ash-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; }
.ash-opt:hover { background: rgba(255, 255, 255, .06); }
.ash-opt.on { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(120, 140, 255, .1); }
.ash-opt small { color: var(--faint); font-size: 10.5px; font-weight: 600; }
.ash-lim { color: #ffd27a; font-weight: 800; }
.ash-slot { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.ash-slot.big { background: rgba(120, 140, 255, .1); box-shadow: inset 0 0 0 1px rgba(120, 140, 255, .35); }
.ash-slot > small { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.ash-slot.big > small { color: #c3cbff; }
.ash-mv { display: flex; gap: 4px; }
.ash-mv button { width: 26px; height: 22px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--text); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.ash-mv button:disabled { opacity: .3; cursor: default; }
.ash-fig.lim figcaption { color: #ffd27a; }
.ash-opt .ash-ck { position: absolute; top: 5px; right: 6px; display: none; color: var(--accent); }
.ash-opt .ash-ck .ico { width: 14px; height: 14px; }
.ash-opt.on .ash-ck { display: block; }
.ash-opt[hidden] { display: none; }
@media (max-width: 900px) { .ash-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ash-days { padding-inline: 16px; } }

.ash-how { margin: 0; padding: 4px 24px 16px 42px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ash-grp-h { margin: 14px 24px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#ashplanc > .aiz-more .ash-days { padding-top: 4px; }
@media (max-width: 720px) { .adm-biz-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .adm-biz-note, .adm-pay-line, .adm-biz .adm-empty { padding-inline: 16px; }
  .adm-pay-grp > h4, .ash-grp-h { margin-inline: 16px; }
  .ash-how { padding-inline: 32px 16px; }
}
@media (max-width: 600px) {
  .adm-biz { gap: 16px; }
  .ash-types { grid-template-columns: minmax(0, 1fr); }
}
/* ==== end Admin: Business ==== */

/* ==== Admin: AI & voice (admin-ai/-budget/-heygen/-voices/-lab.js) ==== */
/* AI & voice -> AI (public/js/admin-ai.js): Status rows, cards that are one fold, budget sub-headings */
.aiz-card > .aiz-row:last-child { border-bottom: 0; }
#aiinc:empty { display: none; }
.aiz-srow .aiz-rt b { font-weight: 700; }
.aiz-srow .aiz-rt b .aiz-s { font-size: 15px; white-space: normal; }
.aiz-sact { flex: none; display: flex; gap: 8px; }
.aiz-srow + .aiz-alarms, .aiz-srow + .aiz-test, .aiz-srow + .aiz-more { border-top: 0; }
/* a card that is one fold: the summary is the card title */
.aiz-cfg > .aiz-more, .hg-more > .aiz-more:first-child, .lab-lang > .aiz-more { border-top: 0; }
.aiz-cfg > .aiz-more > summary, .hg-more > .aiz-more > summary, .lab-lang > .aiz-more > summary { padding-block: 16px; font-size: 15px; color: var(--text); }
.aiz-cfg > .aiz-more > summary .faint, .hg-more > .aiz-more > summary .faint, .lab-lang > .aiz-more > summary .faint { font-weight: 500; font-size: 13px; }
.aiz-cfgsec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aiz-cfgsec + .aiz-cfgsec { padding-top: 14px; border-top: 1px solid var(--line); }
.aiz-cfgsec > h3 { margin: 0; padding: 0 24px; font-size: 15px; }
.aiz-cfgsec > .aiz-pad { padding-block: 0 4px; }
.aiz-cfgsec > .aiz-pad .btn { align-self: flex-start; }
/* Budget card (public/js/admin-budget.js): two limits under small sub-headings */
.bud-h { margin: 0; padding: 16px 24px 10px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.bud > .card-head + .bud-h { border-top: 0; padding-top: 4px; }
.bud-tiles { padding-bottom: 6px; }
.bud .bud-bar { padding-block: 6px 14px; }
.bud .aiz-row + .bud-h { border-top: 0; }
.bud-err { padding-block: 4px 16px; }
.bud .aiz-help p { margin: 0 0 8px; }
/* AI & voice -> Voice (public/js/admin-heygen.js): the folded technical card */
.hg-more .aiz-in { gap: 4px; }
.hg-more .hg-sub { margin: 0; padding: 12px 24px 0; }
.hg-more .hg-sub small { font-weight: 400; font-size: 12.5px; }
.hg-more .aiz-in > .vst-pad { padding: 8px 24px 12px; }
.hg-more .aiz-in > .vst-scroll { border-top: 1px solid var(--line); }
.hg-more .hg-langs { margin-top: 10px; }
.hg-acts { margin-bottom: 10px; }
.hg-inl { margin-top: 6px; }
.hg .vst-kv td .hg-inl { height: 30px; padding: 0 10px; font-size: 13px; }
/* AI & voice -> Tests (public/js/admin-lab.js): the language checks fold */
.lab-lang .aiz-in > .aiz-help:first-child { padding-top: 2px; }
@media (max-width: 720px) {
  .aiz-cfgsec > h3 { padding: 0 16px; }
  .bud-h { padding-inline: 16px; }
  .hg-more .hg-sub { padding-inline: 16px; }
  .hg-more .aiz-in > .vst-pad { padding-inline: 16px; }
  .aiz-sact { width: 100%; }
  /* a switch row keeps its switch on the right */
  .aiz-row.aiz-click { flex-wrap: nowrap; }
}
/* ==== end Admin: AI & voice ==== */
/* ==== Admin: moderation report card – merged hints ==== */
/* "Also flagged: …" / "The player appealed this" inside a report card (public/js/admin-moderation.js) */
.ar-also { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ar-also .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
/* an urgent merged hint (ban suggested, strike 4, repeat offender) names its rule in red */
.ar-also-urgent { color: var(--danger); font-weight: 700; }
/* ==== end Admin: moderation report card – merged hints ==== */

/* ==== Shop event (public/js/shop.js event area, data.js event items; the winter set: frames.js, backgrounds.js, rings.css) ==== */
/* The event head (the hero of the shop page while an event runs, block "Shop themes"): title, subtitle, the time left, an emblem; the winter set brings
   night blue, falling snow and a snow drift. Motion: background-position
   of the snow only; prefers-reduced-motion stops it. */
.evx { margin-top: 40px; }
.evx-hd { position: relative; overflow: hidden; display: flex; align-items: center; gap: 32px; padding: 34px 44px 38px; border-radius: 18px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 196, 90, .18), transparent 60%), linear-gradient(140deg, #2b2116, #17120d);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .24), 0 18px 44px rgba(0, 0, 0, .35); }
.evx-tx { position: relative; z-index: 1; flex: 1; min-width: 0; }
.evx-kick { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: #ffd98a; background: rgba(255, 210, 122, .12); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .32); }
.evx-kick .ico { width: 14px; height: 14px; }
.evx-hd h2 { margin-top: 14px; font-size: 42px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.evx-hd p { margin-top: 10px; max-width: 580px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); text-wrap: pretty; }
.evx-ends { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .82); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.evx-ends .ico { width: 16px; height: 16px; }
.evx-ends b { color: #fff; font-weight: 800; }
.evx-em { position: relative; z-index: 1; flex: none; width: 168px; height: 168px; color: #ffd27a; filter: drop-shadow(0 0 20px rgba(255, 200, 100, .35)); }
.evx-em svg { display: block; width: 100%; height: 100%; }
.evx-em .evx-lf { fill: currentColor; opacity: .85; }
.evx-snow { display: none; }
/* the winter set: night blue, a warm glow from below, falling snow and a snow drift along the bottom */
.evx-winter .evx-hd { background: radial-gradient(70% 100% at 88% 0%, rgba(140, 180, 255, .3), transparent 62%), radial-gradient(60% 80% at 8% 110%, rgba(255, 186, 100, .2), transparent 62%),
    linear-gradient(160deg, #1d2d62 0%, #111c44 55%, #0b1230 100%);
  box-shadow: inset 0 0 0 1px rgba(190, 215, 255, .28), 0 18px 44px rgba(0, 0, 0, .42); }
.evx-winter .evx-hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='28' viewBox='0 0 220 28'%3E%3Cpath d='M0 28V16C18 9 36 11 58 14S96 6 124 10 172 18 196 13 214 12 220 14V28Z' fill='%23e9f0ff' opacity='.95'/%3E%3Cpath d='M0 28V21C26 17 52 19 80 21S130 16 160 19 204 22 220 20V28Z' fill='%23ffffff'/%3E%3C/svg%3E") left bottom / 220px 28px repeat-x; opacity: .92; }
/* the snow of the winter head: one tiled layer that falls by transform (composited, no repaint per frame); every tile
   height divides the 240px it travels, so the loop is seamless */
.evx-winter .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none; opacity: .75; overflow: hidden; border-radius: inherit; }
.evx-winter .evx-snow::before { content: ''; position: absolute; left: 0; right: 0; top: -240px; bottom: 0; will-change: transform; animation: evxSnow 16s linear infinite;
  background-image: radial-gradient(circle at 18% 24%, #fff 0 1.6px, transparent 2.3px), radial-gradient(circle at 64% 70%, rgba(255, 255, 255, .8) 0 1.1px, transparent 1.7px), radial-gradient(circle at 40% 50%, rgba(220, 235, 255, .7) 0 .9px, transparent 1.4px);
  background-size: 130px 120px, 90px 80px, 60px 60px; background-position: 0 0, 30px 10px, 12px 20px; }
@keyframes evxSnow { to { transform: translate3d(0, 240px, 0); } }
.evx-winter .evx-kick { color: #e2f0ff; background: rgba(200, 225, 255, .12); box-shadow: inset 0 0 0 1px rgba(200, 225, 255, .36); }
.evx-winter .evx-em { color: #eef5ff; filter: drop-shadow(0 0 22px rgba(160, 200, 255, .55)); }
.evx-winter .evx-em .evx-lf { fill: #b9d0ea; }
/* the note on an event item in the dialogs (its label: .evx-badge, block "Shop event days") */
.evx-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: #d4e4fb; background: rgba(120, 160, 255, .1); box-shadow: inset 0 0 0 1px rgba(150, 190, 255, .24); }
.evx-note .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #a9c8ff; }
@media (max-width: 760px) {
  .evx { margin-top: 30px; }
  .evx-hd { padding: 24px 20px 34px; border-radius: 14px; }
  .evx-hd h2 { margin-top: 12px; font-size: 28px; }
  .evx-hd p { font-size: 15px; }
  .evx-ends { margin-top: 16px; }
  .evx-em { position: absolute; right: -22px; top: -18px; width: 132px; height: 132px; opacity: .28; }
}

/* ---- winter frames (frames.js 'frame-winter-…') ---- */
/* Frosted Laurel (rare): pale veined marble under hoarfrost, frosted laurel sprigs, two snowflakes, an icy glint */
.cf.frame-winter-laurel { --cfp: 11px; --cfr: 10px; --cfi: 5px; --cfb: rgba(255, 255, 255, .85); --cs: 19px;
  background: radial-gradient(1.4px 1.4px at 10% 6%, #fff 60%, transparent 61%), radial-gradient(1.2px 1.2px at 46% 3%, #fff 60%, transparent 61%), radial-gradient(1.4px 1.4px at 82% 5%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 97% 40%, #fff 60%, transparent 61%), radial-gradient(1.3px 1.3px at 3% 64%, #fff 60%, transparent 61%), radial-gradient(1.2px 1.2px at 60% 97%, #fff 60%, transparent 61%),
    radial-gradient(120% 50% at 50% 0%, rgba(255, 255, 255, .9), transparent 60%), radial-gradient(60% 40% at 0% 100%, rgba(255, 255, 255, .6), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2393a6c4' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M-10 30C20 20 40 50 70 40S110 10 130 26' stroke-width='1.1'/%3E%3Cpath d='M-10 92C24 100 46 74 80 86S112 112 130 100' stroke-width='.8'/%3E%3Cpath d='M40 -10C46 20 30 40 44 70S40 110 48 130' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg fill='none' stroke='%23ffffff' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M4 18 9 13M9 13l-3-.4M9 13l-.4 3M9 13l3-3' stroke-width='.8'/%3E%3Cpath d='M14 6l3-3M17 3l.2 2M17 3h-2' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 22px 22px, linear-gradient(180deg, #ffffff 0%, #e6eef8 30%, #c9d8ec 72%, #aac2e0 100%);
  box-shadow: 0 0 0 1px #8ba3c2, 0 0 0 2.5px rgba(255, 255, 255, .55), 0 0 22px rgba(170, 210, 255, .35), 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-winter-laurel::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, .85) 50%, transparent 60% 100%) 100% 0 / 320% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: cfGlint 9s ease-in-out infinite; }
.cf.frame-winter-laurel .cf-in { box-shadow: 0 0 0 1px #5d7698, 0 0 0 2.5px rgba(225, 238, 255, .85); }
.cfx-frost { filter: drop-shadow(0 0 3px rgba(200, 230, 255, .85)) drop-shadow(0 2px 2px rgba(20, 40, 70, .45)); }
.cfx-flake { filter: drop-shadow(0 0 3px rgba(150, 200, 255, .95)) drop-shadow(0 1px 1px rgba(20, 40, 70, .6)); }
.cfx-flake svg { animation: cfxSpin 18s linear infinite; }
.cf.frame-winter-laurel .cfx-flake svg g { stroke: #5f80ad; stroke-width: 1.8; }
.cf.frame-winter-laurel .cfx-flake svg circle { fill: #5f80ad; }

/* Saturnalia Garland (epic): an evergreen bough with holly berries, a gold ribbon wound round it, three oil lamps on top */
.cf.frame-winter-garland { --cfp: 12px; --cfr: 12px; --cfi: 5px; --cs: 24px; --ow: clamp(56px, 42%, 176px); --oy: -58%;
  background: repeating-linear-gradient(135deg, transparent 0 15px, #8a5a0c 15px 15.6px, #f3cf6a 15.6px 17.4px, #fff3c2 17.4px 18px, #b8861c 18px 19.4px, transparent 19.4px 34px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg stroke='%233a0208' stroke-width='.4'%3E%3Ccircle cx='10' cy='12' r='2.3' fill='%23d41f30'/%3E%3Ccircle cx='13.6' cy='13.4' r='2.1' fill='%23b8101f'/%3E%3Ccircle cx='11' cy='15.6' r='2.2' fill='%23c8182b'/%3E%3Ccircle cx='33' cy='34' r='2.2' fill='%23d41f30'/%3E%3Ccircle cx='36.2' cy='32.4' r='2' fill='%23b8101f'/%3E%3C/g%3E%3Cg fill='%23ffc2c2'%3E%3Ccircle cx='9.3' cy='11.3' r='.7'/%3E%3Ccircle cx='32.3' cy='33.3' r='.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 46px 46px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect width='28' height='28' fill='%23143a20'/%3E%3Cg stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M9.1 4.2l-1.5 3' stroke='%233f8a4a'/%3E%3Cpath d='M9.1 32.2l-1.5 3' stroke='%233f8a4a'/%3E%3Cpath d='M10.2 1.6l-0.1 3.3' stroke='%2324572f'/%3E%3Cpath d='M10.2 29.6l-0.1 3.3' stroke='%2324572f'/%3E%3Cpath d='M11.7 6.7l-0.5 3.3' stroke='%233f8a4a'/%3E%3Cpath d='M26.5 17.7l-0.9 3.2' stroke='%2324572f'/%3E%3Cpath d='M-1.5 17.7l-0.9 3.2' stroke='%2324572f'/%3E%3Cpath d='M1.4 6.2l-0.6 3.4' stroke='%2324572f'/%3E%3Cpath d='M29.4 6.2l-0.6 3.4' stroke='%2324572f'/%3E%3Cpath d='M4 3.3l2.7 4' stroke='%232c6a38'/%3E%3Cpath d='M4 31.3l2.7 4' stroke='%232c6a38'/%3E%3Cpath d='M32 3.3l2.7 4' stroke='%232c6a38'/%3E%3Cpath d='M32 31.3l2.7 4' stroke='%232c6a38'/%3E%3Cpath d='M2.9 16l2.8 1.9' stroke='%233f8a4a'/%3E%3Cpath d='M30.9 16l2.8 1.9' stroke='%233f8a4a'/%3E%3Cpath d='M15.8 17.3l0 4.3' stroke='%235da35a'/%3E%3Cpath d='M13 25.9l1.6 3.4' stroke='%232c6a38'/%3E%3Cpath d='M13 -2.1l1.6 3.4' stroke='%232c6a38'/%3E%3Cpath d='M19.6 6.8l-1 4.1' stroke='%235da35a'/%3E%3Cpath d='M20.4 8.1l-3.4 0.2' stroke='%2324572f'/%3E%3Cpath d='M4.6 9.6l-4 0.8' stroke='%233f8a4a'/%3E%3Cpath d='M32.6 9.6l-4 0.8' stroke='%233f8a4a'/%3E%3Cpath d='M21.4 16l-3.5 1.5' stroke='%235da35a'/%3E%3Cpath d='M16.6 16.2l0.7 4.8' stroke='%235da35a'/%3E%3Cpath d='M13.3 18.6l4.5 0.9' stroke='%2324572f'/%3E%3Cpath d='M8 10.8l-1.6 2.8' stroke='%2324572f'/%3E%3Cpath d='M10 17.1l0.1 3.6' stroke='%235da35a'/%3E%3Cpath d='M3.6 6.9l1.7 4.7' stroke='%233f8a4a'/%3E%3Cpath d='M31.6 6.9l1.7 4.7' stroke='%233f8a4a'/%3E%3Cpath d='M4.7 11.2l2.2 2.7' stroke='%2324572f'/%3E%3Cpath d='M32.7 11.2l2.2 2.7' stroke='%2324572f'/%3E%3Cpath d='M24.2 7.8l1 3.8' stroke='%2324572f'/%3E%3Cpath d='M-3.8 7.8l1 3.8' stroke='%2324572f'/%3E%3Cpath d='M26.8 4.2l3.1 1.9' stroke='%232c6a38'/%3E%3Cpath d='M26.8 32.2l3.1 1.9' stroke='%232c6a38'/%3E%3Cpath d='M-1.2 4.2l3.1 1.9' stroke='%232c6a38'/%3E%3Cpath d='M-1.2 32.2l3.1 1.9' stroke='%232c6a38'/%3E%3Cpath d='M0.3 23.3l3.2 2' stroke='%232c6a38'/%3E%3Cpath d='M0.3 -4.7l3.2 2' stroke='%232c6a38'/%3E%3Cpath d='M28.3 23.3l3.2 2' stroke='%232c6a38'/%3E%3Cpath d='M28.3 -4.7l3.2 2' stroke='%232c6a38'/%3E%3Cpath d='M11.7 10.3l-1.1 5' stroke='%233f8a4a'/%3E%3Cpath d='M12.8 24.4l-4.5 0.7' stroke='%2324572f'/%3E%3Cpath d='M12.8 -3.6l-4.5 0.7' stroke='%2324572f'/%3E%3Cpath d='M11.1 11l0.2 4' stroke='%232c6a38'/%3E%3Cpath d='M1.9 5.8l3.4 1.9' stroke='%233f8a4a'/%3E%3Cpath d='M1.9 33.8l3.4 1.9' stroke='%233f8a4a'/%3E%3Cpath d='M29.9 5.8l3.4 1.9' stroke='%233f8a4a'/%3E%3Cpath d='M29.9 33.8l3.4 1.9' stroke='%233f8a4a'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 28px 28px, #143a20;
  box-shadow: 0 0 0 1px #e3b23c, 0 0 0 2.5px #0b1f12, 0 0 24px rgba(255, 170, 60, .28), 0 10px 26px rgba(0, 0, 0, .45); }
.cf.frame-winter-garland::before { inset: 3px; border-radius: 9px; border: 1px solid rgba(255, 230, 160, .35); box-shadow: inset 0 0 8px rgba(0, 0, 0, .55); }
.cf.frame-winter-garland .cf-in { box-shadow: 0 0 0 1px #0b1f12, 0 0 0 2.5px #e3b23c, 0 0 0 3.5px #0b1f12; }
.cfx-garland { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.cfx-garland .cfx-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: cfxFlick 2.2s ease-in-out infinite; }
.cfx-garland .cfx-halo { animation: cfxTwinkle 2.6s ease-in-out infinite; }
.cfx-garland svg > g:nth-last-of-type(2) .cfx-flame { animation-delay: -.8s; animation-duration: 1.9s; }
.cfx-garland svg > g:last-of-type .cfx-flame { animation-delay: -1.5s; }
.cfx-holly { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }

/* Solstice Star (legendary): night blue with stars, snow on the cornice, snow falling through the rim, the golden star */
.cf.frame-winter-solstice { --cfp: 11px; --cfr: 12px; --cfi: 6px; --cfb: rgba(225, 235, 255, .7); --cs: 15px; --ow: clamp(40px, 24%, 96px); --oy: -60%;
  background: radial-gradient(1.2px 1.2px at 8% 40%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 22% 6%, #fff 60%, transparent 61%), radial-gradient(1.3px 1.3px at 64% 4%, #dfe8ff 60%, transparent 61%),
    radial-gradient(1px 1px at 96% 30%, #fff 60%, transparent 61%), radial-gradient(1.2px 1.2px at 94% 78%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 40% 96%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 3% 88%, #ffe9a6 60%, transparent 61%), radial-gradient(70% 40% at 50% 0%, rgba(255, 214, 120, .22), transparent 70%),
    linear-gradient(180deg, #22346e, #0d1638 60%, #172458);
  box-shadow: 0 0 0 1px #dfe8ff, 0 0 0 2.5px #070d26, 0 0 26px rgba(120, 150, 255, .38), 0 12px 30px rgba(0, 0, 0, .5); }
.cf.frame-winter-solstice::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle at 20% 15%, #fff 0 1.1px, transparent 1.7px), radial-gradient(circle at 72% 42%, rgba(255, 255, 255, .85) 0 .8px, transparent 1.4px), radial-gradient(circle at 42% 78%, #fff 0 1.3px, transparent 1.9px), radial-gradient(circle at 88% 88%, rgba(230, 240, 255, .8) 0 .7px, transparent 1.2px); background-size: 34px 34px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: cfxSnowFall 7s linear infinite; }
@keyframes cfxSnowFall { from { background-position: 0 0; } to { background-position: 0 68px; } }
.cf.frame-winter-solstice .cf-in { box-shadow: 0 0 0 1px rgba(230, 238, 255, .85), 0 0 0 2px #070d26; }
.cfx-snowcap { left: -3px; right: -3px; top: 0; height: clamp(9px, 7%, 16px); transform: translateY(-48%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M0 8.6C4 3.4 8.6 2.2 13 4.8 17 .8 23.6 .8 28 4.6 32 2 37 2.8 40 7.6V11.4C37.4 12.6 35.2 12 33.4 12.8L32 15.6 30.4 12.6C24.4 13.4 18.6 11.8 13.2 12.8L11.8 15 10.2 12.6C6.4 12.9 3 11.8 0 11.4Z' fill='%23f7faff'/%3E%3Cpath d='M0 11.4C3 11.8 6.4 12.9 10.2 12.6 13 12.4 18 13.4 24 12.8 28 12.4 33 12.6 40 11.4' fill='none' stroke='%23a9bfe0' stroke-width='1'/%3E%3Cpath d='M3 7C6 5 9 4.6 12 6M18 4C21 2.8 24 3 27 5' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") left top / auto 100% repeat-x; filter: drop-shadow(0 1px 1.5px rgba(10, 20, 50, .5)); }
.cfx-star { filter: drop-shadow(0 0 10px rgba(255, 214, 120, .65)); }
.cfx-star .cfx-rays { transform-box: view-box; transform-origin: 50% 50%; animation: cfxSpin 90s linear infinite; }
.cfx-star .cfx-halo { animation: cfxStarPulse 4s ease-in-out infinite; }
@keyframes cfxStarPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.cf.frame-winter-solstice .cfx-flake svg g { stroke: #e6f1ff; }

/* ---- winter name effects (data.js 'name-winter-…'): light enough to read from 13 px ---- */
.nx-winter-frost { background-image: radial-gradient(circle, rgba(255, 255, 255, .95) 0 .6px, transparent 1px), linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%), linear-gradient(180deg, #ffffff 0%, #d6f6ff 34%, #7ccdf2 66%, #e2fbff 100%);
  background-size: 7px 6px, 260% 100%, 100% 100%; background-position: 0 0, 100% 0, 0 0; filter: drop-shadow(0 0 3px rgba(140, 200, 255, .55)); animation: nxWFrost 7s ease-in-out infinite; }
@keyframes nxWFrost { 0%, 55% { background-position: 0 0, 100% 0, 0 0; } 90%, 100% { background-position: 0 0, 0 0, 0 0; } }
.nx-winter-evergreen { position: relative; padding-bottom: .16em; background-image: linear-gradient(100deg, transparent 42%, rgba(255, 252, 235, .95) 50%, transparent 58%), linear-gradient(90deg, #9fe8b2 0%, #63c886 30%, #f2d36c 64%, #ffeaa8 84%, #ecbc4a 100%);
  background-size: 250% 100%, 100% 100%; background-position: 100% 0, 0 0; filter: drop-shadow(0 0 3px rgba(240, 200, 90, .35)); animation: nxGlint 6s ease-in-out infinite; }
.nx-winter-evergreen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .2em; min-height: 3px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4H24' stroke='%234f9a5a' stroke-width='1.3'/%3E%3Cg fill='%235fb06a'%3E%3Cellipse cx='5' cy='4' rx='3.4' ry='1.4' transform='rotate(-22 5 4)'/%3E%3Cellipse cx='17' cy='4' rx='3.4' ry='1.4' transform='rotate(22 17 4)'/%3E%3C/g%3E%3Ccircle cx='11' cy='4' r='1.9' fill='%23e0283a'/%3E%3C/svg%3E") left center / auto 100% repeat-x; }
/* the legendary one must read as the richest at a glance (review fix): silver starlight that deepens into night
   lavender, a warm gold base and a gold edge and halo, bigger star glints – the rare Ice Crystal stays pale cyan */
.nx-winter-solstice { background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), radial-gradient(circle, rgba(255, 244, 214, .95) 0 .7px, transparent 1.2px), linear-gradient(100deg, transparent 38%, #ffd66e 50%, transparent 62%), linear-gradient(180deg, #ffffff 0%, #eef0ff 20%, #aeb8f3 44%, #8a96e6 60%, #f0bd55 80%, #ffe5a0 100%);
  background-size: 11px 12px, 7px 9px, 250% 100%, 100% 100%; background-position: 0 0, 3px 2px, 100% 0, 0 0; filter: drop-shadow(0 0 .6px rgba(255, 212, 120, .95)) drop-shadow(0 0 5px rgba(255, 192, 90, .5)) drop-shadow(0 0 10px rgba(130, 150, 255, .35)); animation: nxWSnow 8s linear infinite; }
@keyframes nxWSnow { 0% { background-position: 0 0, 3px 2px, 100% 0, 0 0; } 60% { background-position: 0 28.8px, 3px 23.6px, 100% 0, 0 0; } 90% { background-position: 0 43.2px, 3px 34.4px, 0 0, 0 0; } 100% { background-position: 0 48px, 3px 38px, 0 0, 0 0; } }

/* falling snow in the winter backgrounds (previews only; the live camera rasterises the scene once) */
.sp-cam svg .bgsn { animation: bgSnow 6s linear infinite; }
.sp-cam svg .bgsn2 { animation-duration: 8.5s; animation-delay: -3s; }
@keyframes bgSnow { 0% { transform: translate(0, -10px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(8px, 26px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .evx-winter .evx-snow, .evx-winter .evx-snow::before, .cf.frame-winter-laurel::after, .cfx-flake svg, .cf.frame-winter-solstice::after, .cfx-star .cfx-rays, .cfx-star .cfx-halo, .cfx-garland .cfx-flame, .cfx-garland .cfx-halo,
  .sp-cam svg .bgsn { animation: none; }
}
/* the admin's event editor (admin-shop.js): the event items' tag */
.ash-evit { color: #a9c8ff; font-weight: 800; }
#ashpickev .ash-scroll > .ash-grp-h { margin: 16px 0 0; color: var(--text); }
/* ==== end Shop event ==== */

/* ==== E1 events: newyear, eros, philosophy (data.js event items; frames.js and backgrounds.js "E1 events", rings.css "E1 events") ==== */
/* The event heads (shop.js event area .evx-<set>): Kalends of Janus in midnight blue and gold with fireworks, Eros & Psyche
   in rose and blush with falling petals, Philosophy Week in night ink with the stoa and a lamp's glow. Motion moves
   background-position or opacity only; prefers-reduced-motion stops it (end of this block). */
.evx-newyear .evx-hd { background: radial-gradient(60% 90% at 84% 6%, rgba(255, 200, 90, .26), transparent 62%), radial-gradient(50% 80% at 6% 110%, rgba(110, 140, 255, .22), transparent 62%), linear-gradient(160deg, #18265a 0%, #0d1640 55%, #070b26 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .32), 0 18px 44px rgba(0, 0, 0, .42); }
.evx-newyear .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='260' viewBox='0 0 600 260'%3E%3Cg opacity='1'%3E%3Cpath d='M273.4 66L314 66' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='317.1' cy='66' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M272.8 69.9L301.1 80.2' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='303.4' cy='81.1' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M270.8 73.4L301.8 99.4' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='304.2' cy='101.4' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M267.7 75.9L282.8 102' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='284' cy='104.2' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M264 77.3L271 117.2' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='271.6' cy='120.3' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M260 77.3L254.8 107' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='254.3' cy='109.4' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M256.3 75.9L236 111' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='234.4' cy='113.7' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M253.2 73.4L230.1 92.7' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='228.2' cy='94.3' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M251.2 69.9L213.1 83.8' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='210.2' cy='84.9' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M250.6 66L220.4 66' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='217.9' cy='66' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M251.2 62.1L213.1 48.2' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='210.2' cy='47.1' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M253.2 58.6L230.1 39.3' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='228.2' cy='37.7' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M256.3 56.1L236 21' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='234.4' cy='18.3' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M260 54.7L254.8 25' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='254.3' cy='22.6' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M264 54.7L271 14.8' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='271.6' cy='11.7' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M267.7 56.1L282.8 30' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='284' cy='27.8' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M270.8 58.6L301.8 32.6' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='304.2' cy='30.6' r='3.3' fill='%23fff4c8'/%3E%3Cpath d='M272.8 62.1L301.1 51.8' stroke='%23ffd36a' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='303.4' cy='50.9' r='3.3' fill='%23fff4c8'/%3E%3Ccircle cx='262' cy='66' r='6.2' fill='%23fffbe6'/%3E%3C/g%3E%3Cg opacity='0.8'%3E%3Cpath d='M146.2 186L168 186' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='169.7' cy='186' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M145.5 188.7L160.2 195.7' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='161.4' cy='196.3' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M143.8 190.8L157.5 207.9' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='158.5' cy='209.2' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M141.4 192L145 207.8' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='145.3' cy='209.1' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M138.6 192L133.8 213.3' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='133.4' cy='214.9' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M136.2 190.8L126 203.5' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='125.2' cy='204.6' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M134.5 188.7L114.8 198.1' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='113.3' cy='198.9' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M133.8 186L117.6 186' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='116.3' cy='186' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M134.5 183.3L114.8 173.9' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='113.3' cy='173.1' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M136.2 181.2L126 168.5' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='125.2' cy='167.4' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M138.6 180L133.8 158.7' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='133.4' cy='157.1' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M141.4 180L145 164.2' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='145.3' cy='162.9' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M143.8 181.2L157.5 164.1' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='158.5' cy='162.8' r='1.8' fill='%23ffffff'/%3E%3Cpath d='M145.5 183.3L160.2 176.3' stroke='%23f3e7ff' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='161.4' cy='175.7' r='1.8' fill='%23ffffff'/%3E%3Ccircle cx='140' cy='186' r='3.4' fill='%23fffbe6'/%3E%3C/g%3E%3Cg opacity='0.8'%3E%3Cpath d='M360.4 26L376 26' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='377.2' cy='26' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M359.8 28.2L369.9 34' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='370.7' cy='34.5' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M358.2 29.8L366 43.3' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='366.6' cy='44.4' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M356 30.4L356 42' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='356' cy='43' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M353.8 29.8L346 43.3' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='345.4' cy='44.4' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M352.2 28.2L342.1 34' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='341.3' cy='34.5' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M351.6 26L336 26' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='334.8' cy='26' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M352.2 23.8L342.1 18' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='341.3' cy='17.5' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M353.8 22.2L346 8.7' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='345.4' cy='7.6' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M356 21.6L356 10' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='356' cy='9' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M358.2 22.2L366 8.7' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='366.6' cy='7.6' r='1.3' fill='%23ffe9a0'/%3E%3Cpath d='M359.8 23.8L369.9 18' stroke='%23ffb84a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='370.7' cy='17.5' r='1.3' fill='%23ffe9a0'/%3E%3Ccircle cx='356' cy='26' r='2.4' fill='%23fffbe6'/%3E%3C/g%3E%3Cg opacity='0.45'%3E%3Cpath d='M44 46L58 46' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='59.1' cy='46' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M43.4 48L52.5 53.2' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='53.2' cy='53.6' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M42 49.4L49 61.6' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='49.5' cy='62.5' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M40 50L40 60.4' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='61.3' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M38 49.4L31 61.6' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='30.5' cy='62.5' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M36.6 48L27.5 53.2' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='26.8' cy='53.6' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M36 46L22 46' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='20.9' cy='46' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M36.6 44L27.5 38.8' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='26.8' cy='38.4' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M38 42.6L31 30.4' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='30.5' cy='29.5' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M40 42L40 31.6' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='30.7' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M42 42.6L49 30.4' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='49.5' cy='29.5' r='1.1' fill='%23fff4c8'/%3E%3Cpath d='M43.4 44L52.5 38.8' stroke='%23ffd36a' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='53.2' cy='38.4' r='1.1' fill='%23fff4c8'/%3E%3Ccircle cx='40' cy='46' r='2.2' fill='%23fffbe6'/%3E%3C/g%3E%3C/svg%3E") right top / auto 100% no-repeat; animation: e1HdPop 4.8s ease-in-out infinite; }
.evx-newyear .evx-kick { color: #ffe2a0; background: rgba(255, 210, 122, .14); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .42); }
.evx-newyear .evx-em { color: #ffd77e; filter: drop-shadow(0 0 22px rgba(255, 200, 90, .55)); }
.evx-eros .evx-hd { background: radial-gradient(60% 90% at 88% 0%, rgba(255, 170, 200, .3), transparent 62%), radial-gradient(60% 80% at 4% 110%, rgba(255, 190, 160, .2), transparent 62%), linear-gradient(160deg, #5c2443 0%, #3e1631 55%, #24101f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 210, .3), 0 18px 44px rgba(0, 0, 0, .4); }
.evx-eros .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none; opacity: .75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='200' viewBox='0 0 220 200'%3E%3Cellipse cx='30' cy='30' rx='5' ry='3.1' transform='rotate(30 30 30)' fill='%23ff9fb8'/%3E%3Cellipse cx='140' cy='70' rx='4' ry='2.5' transform='rotate(-40 140 70)' fill='%23ffc2d2'/%3E%3Cellipse cx='90' cy='150' rx='6' ry='3.7' transform='rotate(70 90 150)' fill='%23f37a9a'/%3E%3Cellipse cx='190' cy='180' rx='3.6' ry='2.2' transform='rotate(10 190 180)' fill='%23ffd6e0'/%3E%3Cellipse cx='60' cy='110' rx='3' ry='1.9' transform='rotate(-10 60 110)' fill='%23ffb3c6'/%3E%3C/svg%3E") 0 0 / 300px 270px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='200' viewBox='0 0 220 200'%3E%3Cellipse cx='30' cy='30' rx='5' ry='3.1' transform='rotate(30 30 30)' fill='%23ff9fb8'/%3E%3Cellipse cx='140' cy='70' rx='4' ry='2.5' transform='rotate(-40 140 70)' fill='%23ffc2d2'/%3E%3Cellipse cx='90' cy='150' rx='6' ry='3.7' transform='rotate(70 90 150)' fill='%23f37a9a'/%3E%3Cellipse cx='190' cy='180' rx='3.6' ry='2.2' transform='rotate(10 190 180)' fill='%23ffd6e0'/%3E%3Cellipse cx='60' cy='110' rx='3' ry='1.9' transform='rotate(-10 60 110)' fill='%23ffb3c6'/%3E%3C/svg%3E") 140px 60px / 220px 200px; -webkit-mask: linear-gradient(100deg, transparent 0 34%, rgba(0, 0, 0, .35) 52%, #000 72%); mask: linear-gradient(100deg, transparent 0 34%, rgba(0, 0, 0, .35) 52%, #000 72%); animation: e1Petals 26s linear infinite; }
.evx-eros .evx-kick { color: #ffd3e0; background: rgba(255, 170, 200, .14); box-shadow: inset 0 0 0 1px rgba(255, 180, 205, .4); }
.evx-eros .evx-em { color: #ffb8cc; filter: drop-shadow(0 0 22px rgba(255, 140, 180, .5)); }
.evx-eros .evx-em .evx-lf { fill: #e8a598; }
.evx-philosophy .evx-hd { background: radial-gradient(46% 80% at 10% 104%, rgba(255, 176, 86, .3), transparent 64%), radial-gradient(60% 90% at 92% 0%, rgba(150, 175, 220, .2), transparent 62%), linear-gradient(160deg, #1f2c40 0%, #141e2e 55%, #0b111b 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 220, 192, .26), 0 18px 44px rgba(0, 0, 0, .42); }
.evx-philosophy .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 62% 14%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .8) 0 .8px, transparent 1.4px), radial-gradient(circle at 90% 10%, #fff 0 1.2px, transparent 1.8px), radial-gradient(circle at 70% 46%, rgba(255, 255, 255, .6) 0 .8px, transparent 1.4px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg opacity='.13'%3E%3Crect x='40' y='70' width='14' height='190' fill='%23e9dcc0'/%3E%3Crect x='43' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='48' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='37' y='64' width='20' height='7' fill='%23e9dcc0'/%3E%3Crect x='100' y='70' width='14' height='190' fill='%23e9dcc0'/%3E%3Crect x='103' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='108' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='97' y='64' width='20' height='7' fill='%23e9dcc0'/%3E%3Crect x='160' y='70' width='14' height='190' fill='%23e9dcc0'/%3E%3Crect x='163' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='168' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='157' y='64' width='20' height='7' fill='%23e9dcc0'/%3E%3Crect x='220' y='70' width='14' height='190' fill='%23e9dcc0'/%3E%3Crect x='223' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='228' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='217' y='64' width='20' height='7' fill='%23e9dcc0'/%3E%3Crect x='280' y='70' width='14' height='190' fill='%23e9dcc0'/%3E%3Crect x='283' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='288' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='277' y='64' width='20' height='7' fill='%23e9dcc0'/%3E%3Crect x='340' y='70' width='14' height='190' fill='%23e9dcc0'/%3E%3Crect x='343' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='348' y='70' width='1.6' height='190' fill='%231a2433' opacity='.35'/%3E%3Crect x='337' y='64' width='20' height='7' fill='%23e9dcc0'/%3E%3Crect x='22' y='50' width='356' height='13' fill='%23e9dcc0'/%3E%3Cpath d='M22 50 L 200 22 L 378 50 Z' fill='%23e9dcc0' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") right bottom / auto 92% no-repeat;
  animation: e1Stars 3.6s ease-in-out infinite alternate; }
.evx-philosophy .evx-kick { color: #f2e6c8; background: rgba(233, 220, 192, .12); box-shadow: inset 0 0 0 1px rgba(233, 220, 192, .36); }
.evx-philosophy .evx-em { color: #f1e4c2; filter: drop-shadow(0 0 20px rgba(255, 190, 110, .4)); }
.evx-philosophy .evx-em .evx-lf { fill: #9fb28a; }
@media (max-width: 760px) { .evx-newyear .evx-snow { opacity: .32; animation: none; background-size: auto 64%; } .evx-philosophy .evx-snow { opacity: .6; } }
@keyframes e1HdPop { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes e1Petals { from { background-position: 0 0, 140px 60px; } to { background-position: 80px 540px, 80px 460px; } }
@keyframes e1Stars { from { opacity: .7; } to { opacity: 1; } }

/* ---- frames (frames.js 'frame-<set>-…') ---- */
/* Gate of Janus (legendary): midnight blue flecked with gold between gold lines, golden sparks rising through the rim,
   the Janus coin above you and fireworks blooming in the corners one after another */
.cf.frame-newyear-janus { --cfp: 11px; --cfr: 12px; --cfi: 6px; --cs: 30px; --ow: clamp(60px, 40%, 196px); --oy: -58%;
  background: radial-gradient(1.3px 1.3px at 9% 5%, #ffe9a6 60%, transparent 61%), radial-gradient(1px 1px at 31% 3%, #fff 60%, transparent 61%), radial-gradient(1.3px 1.3px at 72% 5%, #ffe9a6 60%, transparent 61%),
    radial-gradient(1px 1px at 97% 34%, #fff 60%, transparent 61%), radial-gradient(1.3px 1.3px at 96% 70%, #ffd36a 60%, transparent 61%), radial-gradient(1px 1px at 58% 97%, #fff 60%, transparent 61%),
    radial-gradient(1.3px 1.3px at 3% 58%, #ffd36a 60%, transparent 61%), radial-gradient(1px 1px at 22% 96%, #ffe9a6 60%, transparent 61%),
    radial-gradient(70% 40% at 50% 0%, rgba(255, 200, 100, .26), transparent 70%), radial-gradient(60% 30% at 50% 100%, rgba(120, 150, 255, .2), transparent 70%),
    linear-gradient(180deg, #1d2c6c, #0c1440 55%, #17225c);
  box-shadow: 0 0 0 1px #f6d77a, 0 0 0 2.5px #060a20, 0 0 0 3.5px #c8921a, 0 0 26px rgba(255, 196, 90, .34), 0 12px 30px rgba(0, 0, 0, .5); }
.cf.frame-newyear-janus::before { inset: 4px; border-radius: 8px; border: 1px solid rgba(255, 214, 120, .62); box-shadow: inset 0 0 0 1px rgba(6, 10, 32, .6); }
.cf.frame-newyear-janus::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle at 22% 18%, #fff4c8 0 1px, transparent 1.6px), radial-gradient(circle at 70% 46%, #ffd36a 0 .9px, transparent 1.5px), radial-gradient(circle at 44% 80%, #fffbe6 0 1.2px, transparent 1.8px), radial-gradient(circle at 86% 90%, #ffc85a 0 .8px, transparent 1.3px); background-size: 32px 32px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: e1Rise 6s linear infinite; }
@keyframes e1Rise { from { background-position: 0 0; } to { background-position: 0 -64px; } }
.cf.frame-newyear-janus .cf-in { box-shadow: 0 0 0 1px #060a20, 0 0 0 2.5px #e7b440, 0 0 0 3.5px #060a20; }
.cfx-janus { filter: drop-shadow(0 0 9px rgba(255, 200, 90, .5)) drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.cfx-janus .cfx-rays { transform-box: view-box; transform-origin: 50% 51.3%; animation: cfxSpin 80s linear infinite; }
.cfx-janus .cfx-halo { animation: cfxStarPulse 4s ease-in-out infinite; }
.cfx-janus .cfx-sparks { animation: cfxTwinkle 2.4s ease-in-out infinite; }
.cfx-burst { filter: drop-shadow(0 0 4px rgba(255, 200, 90, .7)); }
.cfx-burst svg { transform-origin: 50% 50%; animation: e1Burst 4s ease-out infinite; }
.cfx-burst.tr svg { animation-delay: -1s; } .cfx-burst.br svg { animation-delay: -2s; } .cfx-burst.bl svg { animation-delay: -3s; }
@keyframes e1Burst { 0% { transform: scale(.25); opacity: 0; } 8% { opacity: 1; } 50% { transform: scale(1); opacity: 1; } 80% { transform: scale(1.08); opacity: .35; } 100% { transform: scale(1.12); opacity: 0; } }

/* Garland of Roses (epic): soft pink marble with grey-rose veins between rose-gold lines, a slow rose-gold gleam, a garland
   of roses with a ribbon on top, roses in the lower corners, a bud and a butterfly that beats its wings */
.cf.frame-eros-roses { --cfp: 11px; --cfr: 12px; --cfi: 6px; --cfb: rgba(255, 255, 255, .6); --cs: 32px; --ow: clamp(70px, 52%, 270px); --oy: -50%;
  background: radial-gradient(120% 50% at 50% 0%, rgba(255, 255, 255, .5), transparent 60%), radial-gradient(60% 40% at 100% 100%, rgba(255, 255, 255, .35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23a8687a' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M-10 26C22 14 42 46 72 36S112 8 130 22' stroke-width='1'/%3E%3Cpath d='M-10 90C24 100 48 72 82 84S112 110 130 98' stroke-width='.7'/%3E%3Cpath d='M44 -10C50 20 32 42 46 72S42 110 50 130' stroke-width='.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' opacity='.5' stroke-width='.6'%3E%3Cpath d='M-10 60C30 52 60 70 130 56'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, linear-gradient(160deg, #fbdbe2 0%, #f0b4c2 38%, #f8cfd8 62%, #e29daf 100%);
  box-shadow: 0 0 0 1px #b8746a, 0 0 0 2.5px #fadbd0, 0 0 0 3.5px #9a5a52, 0 0 24px rgba(255, 150, 185, .32), 0 10px 26px rgba(0, 0, 0, .4); }
.cf.frame-eros-roses::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 240, 236, .9) 50%, transparent 60% 100%) 100% 0 / 320% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: cfGlint 8s ease-in-out infinite; }
.cf.frame-eros-roses .cf-in { box-shadow: 0 0 0 1px #9a5a52, 0 0 0 2.5px #eeb3a4, 0 0 0 3.5px rgba(110, 50, 50, .55); }
.cfx-roses { filter: drop-shadow(0 2px 3px rgba(70, 10, 30, .45)); }
.cfx-c.cfx-rose { width: calc(var(--cs) * 1.15); height: calc(var(--cs) * 1.15); filter: drop-shadow(0 1px 2px rgba(70, 10, 30, .55)); }
.cfx-c.cfx-fly { width: calc(var(--cs) * 1.25); height: calc(var(--cs) * 1.25); }
.cfx-fly { filter: drop-shadow(0 1px 2px rgba(70, 10, 30, .5)); animation: e1Hover 5s ease-in-out infinite; }
.cfx-fly .cfx-wl, .cfx-fly .cfx-wr > g { transform-box: view-box; transform-origin: 50% 50%; animation: e1Flap 3.2s ease-in-out infinite; }
@keyframes e1Flap { 0%, 52%, 100% { transform: scaleX(1); } 60% { transform: scaleX(.22); } 68% { transform: scaleX(1); } 76% { transform: scaleX(.3); } 84% { transform: scaleX(1); } }
@keyframes e1Hover { 0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); } 50% { transform: translate(-50%, -62%) rotate(6deg); } }

/* Philosopher's Scroll (epic): papyrus with fibres and lines of writing in the margins, wooden rods with turned knobs at the
   top and bottom, the owl of Athena in red wax on the corner, an oil lamp's warm light moving slowly over the papyrus */
.cf.frame-philosophy-scroll { --cfp: 12px; --cfr: 3px; --cfi: 2px; --cs: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='40' viewBox='0 0 10 40'%3E%3Cpath d='M1 3h2.2M4.1 3h1.4M6.4 3h3' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 7.6h3.2M5.1 7.6h2.4' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 12.2h1.6M3.5 12.2h2.8M7.2 12.2h1.2' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 16.8h2.6M4.5 16.8h3.6' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 21.4h3.4M5.3 21.4h1.2M7.4 21.4h1.8' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 26h1.8M3.7 26h2.2M6.8 26h2.4' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 30.6h2.8M4.7 30.6h3' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 35.2h2M3.9 35.2h1.4M6.2 35.2h2.6' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") left 1px top 18px / 10px 40px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='40' viewBox='0 0 10 40'%3E%3Cpath d='M1 3h2.2M4.1 3h1.4M6.4 3h3' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 7.6h3.2M5.1 7.6h2.4' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 12.2h1.6M3.5 12.2h2.8M7.2 12.2h1.2' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 16.8h2.6M4.5 16.8h3.6' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 21.4h3.4M5.3 21.4h1.2M7.4 21.4h1.8' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 26h1.8M3.7 26h2.2M6.8 26h2.4' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 30.6h2.8M4.7 30.6h3' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M1 35.2h2M3.9 35.2h1.4M6.2 35.2h2.6' stroke='%233e2a12' stroke-width='1.05' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") right 1px top 34px / 10px 40px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg stroke='%23a07a3a' opacity='.22' stroke-width='.6'%3E%3Cpath d='M0 4h60'/%3E%3Cpath d='M0 11h60'/%3E%3Cpath d='M0 19h60'/%3E%3Cpath d='M0 27h60'/%3E%3Cpath d='M0 33h60'/%3E%3Cpath d='M0 41h60'/%3E%3Cpath d='M0 48h60'/%3E%3Cpath d='M0 56h60'/%3E%3C/g%3E%3Cg stroke='%23fff6dc' opacity='.25' stroke-width='.5'%3E%3Cpath d='M0 7h60'/%3E%3Cpath d='M0 23h60'/%3E%3Cpath d='M0 37h60'/%3E%3Cpath d='M0 52h60'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 60px 60px,
    radial-gradient(40% 30% at 0% 50%, rgba(120, 80, 30, .18), transparent 70%), radial-gradient(40% 30% at 100% 40%, rgba(120, 80, 30, .16), transparent 70%),
    linear-gradient(90deg, #d4b274 0%, #ead2a0 10%, #f3e3ba 50%, #ead09c 90%, #cfac6c 100%);
  box-shadow: 0 0 0 1px #8a6a3a, 0 0 18px rgba(255, 190, 110, .18), 0 10px 26px rgba(0, 0, 0, .45); }
.cf.frame-philosophy-scroll::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 110, .55), rgba(255, 170, 80, .18) 55%, transparent) 0 0 / 46% 140% no-repeat; mix-blend-mode: soft-light;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: e1Lamp 9s ease-in-out infinite alternate; }
@keyframes e1Lamp { 0% { background-position: -10% 10%; opacity: .8; } 50% { opacity: 1; } 100% { background-position: 110% 90%; opacity: .85; } }
.cf.frame-philosophy-scroll .cf-in { box-shadow: 0 0 0 1px #5e4020, 0 0 0 2px rgba(255, 244, 214, .55), 0 0 0 3px rgba(94, 64, 32, .35); }
.cfx-rod { left: -7px; right: -7px; top: 0; height: clamp(9px, 7%, 15px); transform: translateY(-50%); border-radius: 999px;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(94, 62, 28, .18) 22px 23px), linear-gradient(180deg, #6e4a22 0%, #c9a46a 16%, #f6e7c2 40%, #e6cd98 60%, #b08850 82%, #5e3e1c 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .45), inset 0 0 0 .5px rgba(60, 36, 12, .6); }
.cfx-rod.bot { top: auto; bottom: 0; transform: translateY(50%); }
.cfx-rod::before, .cfx-rod::after { content: ''; position: absolute; left: 0; top: 50%; height: 170%; aspect-ratio: .82; border-radius: 42% / 50%; transform: translate(-62%, -50%);
  background: radial-gradient(circle at 34% 30%, #f0c48a 0 8%, #c07c3e 30%, #7a4620 62%, #3a200c 100%); box-shadow: 0 1px 2px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(40, 20, 6, .7); }
.cfx-rod::after { left: 100%; transform: translate(-38%, -50%); }
.cf.frame-philosophy-scroll { --ow: clamp(24px, 10%, 50px); --oy: 34%; }
.cfx-seal { filter: drop-shadow(0 2px 2px rgba(40, 8, 4, .55)); }

/* ---- name effects (data.js 'name-<set>-…'): light enough to read from 13 px on dark and lighter cards ---- */
/* New Year's Gold (rare): fresh-minted gold with tiny sparks rising like confetti and a glint now and then */
.nx-newyear-gold { background-image: radial-gradient(circle, #fff 0 .7px, transparent 1.2px), radial-gradient(circle, rgba(255, 244, 214, .95) 0 .55px, transparent 1px), linear-gradient(100deg, transparent 40%, rgba(255, 253, 240, .95) 50%, transparent 60%), linear-gradient(180deg, #fff6d2 0%, #ffd65c 38%, #e3a52a 62%, #ffe9a2 100%);
  background-size: 13px 17px, 9px 11px, 260% 100%, 100% 100%; background-position: 0 0, 5px 4px, 100% 0, 0 0; filter: drop-shadow(0 0 .6px rgba(90, 56, 6, .85)) drop-shadow(0 1px 0 rgba(20, 28, 80, .55)) drop-shadow(0 0 4px rgba(255, 196, 80, .45)); animation: e1NyGold 7s linear infinite; }
@keyframes e1NyGold { 0% { background-position: 0 0, 5px 4px, 100% 0, 0 0; } 60% { background-position: 0 -20.4px, 5px -9.2px, 100% 0, 0 0; } 85% { background-position: 0 -28.9px, 5px -14.7px, 0 0, 0 0; } 100% { background-position: 0 -34px, 5px -18px, 0 0, 0 0; } }
/* Rose Gold (rare): polished rose gold, a soft blush gleam passing through */
.nx-eros-rosegold { background-image: linear-gradient(100deg, transparent 40%, rgba(255, 246, 244, .95) 50%, transparent 60%), linear-gradient(180deg, #ffeae2 0%, #f8c2b2 34%, #e0907e 58%, #ffd7ca 100%);
  background-size: 260% 100%, 100% 100%; background-position: 100% 0, 0 0; filter: drop-shadow(0 0 .6px rgba(110, 40, 50, .85)) drop-shadow(0 1px 0 rgba(90, 30, 40, .45)) drop-shadow(0 0 4px rgba(255, 150, 175, .42)); animation: nxGlint 6.5s ease-in-out infinite; }
/* Lamplight (epic): ivory letters, the warm glow of an oil lamp moving slowly through them, the light flickering */
.nx-philosophy-lamp { background-image: radial-gradient(closest-side, #ffd27a 0%, #ffb347 38%, rgba(255, 170, 70, 0) 100%), linear-gradient(180deg, #fff6e0 0%, #ecd8aa 46%, #d2b276 70%, #f0deb4 100%);
  background-size: 46% 260%, 100% 100%; background-repeat: no-repeat; background-position: -30% 50%, 0 0; filter: drop-shadow(0 0 .6px rgba(60, 36, 12, .9)) drop-shadow(0 1px 0 rgba(60, 36, 12, .55)) drop-shadow(0 0 4px rgba(255, 170, 70, .4)); animation: e1Lampname 9s ease-in-out infinite alternate, e1Flicker 2.2s ease-in-out infinite; }
@keyframes e1Lampname { from { background-position: -30% 50%, 0 0; } to { background-position: 130% 50%, 0 0; } }
@keyframes e1Flicker { 0%, 100% { filter: drop-shadow(0 0 .6px rgba(60, 36, 12, .9)) drop-shadow(0 1px 0 rgba(60, 36, 12, .55)) drop-shadow(0 0 4px rgba(255, 170, 70, .4)); } 40% { filter: drop-shadow(0 0 .6px rgba(60, 36, 12, .9)) drop-shadow(0 1px 0 rgba(60, 36, 12, .55)) drop-shadow(0 0 6px rgba(255, 180, 80, .6)); } 70% { filter: drop-shadow(0 0 .6px rgba(60, 36, 12, .9)) drop-shadow(0 1px 0 rgba(60, 36, 12, .55)) drop-shadow(0 0 3px rgba(255, 160, 60, .32)); } }

/* ---- backgrounds (backgrounds.js): previews only (the live camera rasterises the scene once) ---- */
/* fireworks bloom (bgfw), butterflies beat their wings and drift (bgbf / bgbw), petals float (bgpt) */
.sp-cam svg .bgfw { transform-box: fill-box; transform-origin: 50% 50%; animation: e1BgBurst 4.2s ease-out infinite; }
.sp-cam svg .bgfw2 { animation-delay: -1.4s; animation-duration: 4.8s; }
.sp-cam svg .bgfw3 { animation-delay: -2.8s; animation-duration: 3.8s; }
@keyframes e1BgBurst { 0% { transform: scale(.82); opacity: .55; } 12% { opacity: 1; } 55% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.06); opacity: .55; } }
.sp-cam svg .bgbf { animation: e1BgDrift 7s ease-in-out infinite alternate; }
.sp-cam svg .bgbf:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
.sp-cam svg .bgbw { transform-box: fill-box; transform-origin: 100% 50%; animation: e1Flap 2.4s ease-in-out infinite; }
.sp-cam svg .bgbw.r { transform-origin: 0 50%; }
.sp-cam svg .bgpt { animation: e1BgPetal 11s linear infinite; }
.sp-cam svg .bgpt:nth-of-type(3n) { animation-duration: 14s; animation-delay: -6s; }
@keyframes e1BgDrift { from { transform: translate(0, 0); } to { transform: translate(10px, -12px); } }
@keyframes e1BgPetal { 0% { transform: translate(0, -12px) rotate(0deg); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translate(24px, 40px) rotate(160deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .evx-newyear .evx-snow, .evx-eros .evx-snow, .evx-philosophy .evx-snow, .cf.frame-newyear-janus::after, .cfx-janus .cfx-rays, .cfx-janus .cfx-halo, .cfx-janus .cfx-sparks, .cfx-burst svg,
  .cf.frame-eros-roses::after, .cfx-fly, .cfx-fly .cfx-wl, .cfx-fly .cfx-wr > g, .cf.frame-philosophy-scroll::after,
  .sp-cam svg .bgfw, .sp-cam svg .bgbf, .sp-cam svg .bgbw, .sp-cam svg .bgpt { animation: none; }
}
/* ==== end E1 events ==== */

/* ==== Builder R: New badge (the drop calendar and the shop drop are gone) ==== */
/* "New": a small label next to the rarity in a new item's first week (data.js isNewItem) */
.new-badge { display: inline-flex; align-items: center; flex: none; height: 19px; margin-inline-start: 4px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 900; line-height: 1; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: #04241a; background: linear-gradient(180deg, #8ff5c8, #3fd69a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 6px rgba(60, 220, 150, .25); }
/* ==== end Builder R ==== */

/* ==== E2 events: olympia, hades (data.js event items; frames.js and backgrounds.js "E2 events", rings.css "E2 events") ==== */
/* The event heads (shop.js event area .evx-<set>): Games of Olympia in summer sky, bronze and olive with the sun's slow rays,
   Nights of Hades in underworld violet with an ember glow from below and embers rising. Motion moves background-position,
   transform or opacity only; prefers-reduced-motion stops it (end of this block). */
.evx-olympia .evx-hd { background: radial-gradient(52% 90% at 86% -8%, rgba(255, 226, 140, .42), transparent 64%), radial-gradient(60% 80% at 0% 110%, rgba(140, 170, 90, .28), transparent 62%),
    linear-gradient(165deg, #2c5f8e 0%, #2a4f6e 38%, #3e4a3a 72%, #4a3a22 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .34), 0 18px 44px rgba(0, 0, 0, .4); }
.evx-olympia .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.evx-olympia .evx-snow::before { content: ''; position: absolute; right: -170px; top: -230px; width: 520px; height: 520px; border-radius: 50%; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, .55) 0 3deg, transparent 3deg 15deg); -webkit-mask: radial-gradient(closest-side, transparent 18%, #000 30%, transparent 100%); mask: radial-gradient(closest-side, transparent 18%, #000 30%, transparent 100%);
  animation: e2Spin 120s linear infinite; }
.evx-olympia .evx-snow::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cg transform='translate(0 10) scale(1 -1)'%3E%3Cpath d='M0 8.6H10M8.2 8.6V1.4H1.8V6.2H5.6V3.6' fill='none' stroke='%234a2608' stroke-width='1.35' stroke-linecap='square'/%3E%3Cpath d='M0 9.5H10' stroke='%23ffe2b0' stroke-width='.5' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") left bottom 6px / 15px 15px repeat-x, linear-gradient(0deg, rgba(200, 138, 74, .35), transparent); }
.evx-olympia .evx-kick { color: #ffe3b0; background: rgba(240, 196, 138, .16); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .45); }
.evx-olympia .evx-em { color: #ffd27a; filter: drop-shadow(0 0 22px rgba(255, 210, 110, .55)); }
.evx-olympia .evx-em .evx-lf { fill: #b9c98e; }
.evx-hades .evx-hd { background: radial-gradient(60% 70% at 50% 120%, rgba(255, 120, 40, .34), transparent 64%), radial-gradient(50% 90% at 90% 0%, rgba(150, 90, 230, .34), transparent 62%),
    linear-gradient(165deg, #2a1840 0%, #1a1030 52%, #0e0818 100%);
  box-shadow: inset 0 0 0 1px rgba(190, 150, 255, .3), 0 18px 44px rgba(0, 0, 0, .48); }
.evx-hades .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='29.4' cy='33.6' r='0.6' fill='%23ff7a2a' opacity='0.7'/%3E%3Ccircle cx='30.4' cy='4.7' r='1.3' fill='%23ffb45a' opacity='0.7'/%3E%3Ccircle cx='17.1' cy='46.9' r='1.1' fill='%23ff7a2a' opacity='0.7'/%3E%3Ccircle cx='14.1' cy='40.3' r='0.6' fill='%23ffb45a' opacity='0.7'/%3E%3Ccircle cx='10.6' cy='3' r='1.3' fill='%23ffb45a' opacity='0.6'/%3E%3Ccircle cx='26.7' cy='57.3' r='0.7' fill='%23ff7a2a' opacity='0.8'/%3E%3Ccircle cx='40.3' cy='16.8' r='0.7' fill='%23ffb45a' opacity='0.7'/%3E%3C/svg%3E") 0 0 / 60px 60px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='29.4' cy='33.6' r='0.6' fill='%23ff7a2a' opacity='0.7'/%3E%3Ccircle cx='30.4' cy='4.7' r='1.3' fill='%23ffb45a' opacity='0.7'/%3E%3Ccircle cx='17.1' cy='46.9' r='1.1' fill='%23ff7a2a' opacity='0.7'/%3E%3Ccircle cx='14.1' cy='40.3' r='0.6' fill='%23ffb45a' opacity='0.7'/%3E%3Ccircle cx='10.6' cy='3' r='1.3' fill='%23ffb45a' opacity='0.6'/%3E%3Ccircle cx='26.7' cy='57.3' r='0.7' fill='%23ff7a2a' opacity='0.8'/%3E%3Ccircle cx='40.3' cy='16.8' r='0.7' fill='%23ffb45a' opacity='0.7'/%3E%3C/svg%3E") 23px 31px / 90px 90px; -webkit-mask: linear-gradient(0deg, #000, transparent 90%); mask: linear-gradient(0deg, #000, transparent 90%); animation: e2Embers 9s linear infinite; }
.evx-hades .evx-hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none; opacity: .8;
  background: radial-gradient(40% 100% at 20% 100%, rgba(190, 150, 255, .32), transparent 70%), radial-gradient(40% 100% at 70% 100%, rgba(150, 110, 230, .28), transparent 70%); animation: e2Mist 7s ease-in-out infinite alternate; }
.evx-hades .evx-kick { color: #e6d4ff; background: rgba(180, 140, 255, .14); box-shadow: inset 0 0 0 1px rgba(190, 150, 255, .42); }
.evx-hades .evx-em { color: #ffb46a; filter: drop-shadow(0 0 22px rgba(255, 130, 50, .5)); }
.evx-hades .evx-em .evx-lf { fill: #b9a2dc; }
@keyframes e2Spin { to { transform: rotate(360deg); } }
@keyframes e2Embers { from { background-position: 0 0, 23px 31px; } to { background-position: 30px -240px, 0 -330px; } }
@keyframes e2Mist { from { transform: translateX(-3%); opacity: .6; } to { transform: translateX(3%); opacity: .95; } }
@media (max-width: 760px) { .evx-olympia .evx-snow::before { right: -220px; top: -260px; } }

/* ---- frames (frames.js 'frame-<set>-…') ---- */
/* Olive Crown of Olympia (legendary): polished bronze with a Greek key running round, bronze studs in the corners, a slow
   gleam; the kotinos with its red ribbons before the summer sun on top (rays turn, the ribbons stir), runners in black
   figure on terracotta medallions in the lower corners */
.cf.frame-olympia-kotinos { --cfp: 12px; --cfr: 9px; --cfi: 4px; --cfb: rgba(255, 232, 190, .55); --cs: 32px; --ow: clamp(78px, 52%, 256px); --oy: -62%;
  background: radial-gradient(circle at 6px 6px, #fff3d6 0 1.2px, #e8b878 1.8px 3.2px, #8a5220 3.8px 4.6px, #3e2208 5px, transparent 5.6px), radial-gradient(circle at calc(100% - 6px) 6px, #fff3d6 0 1.2px, #e8b878 1.8px 3.2px, #8a5220 3.8px 4.6px, #3e2208 5px, transparent 5.6px), radial-gradient(circle at 6px calc(100% - 6px), #fff3d6 0 1.2px, #e8b878 1.8px 3.2px, #8a5220 3.8px 4.6px, #3e2208 5px, transparent 5.6px), radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #fff3d6 0 1.2px, #e8b878 1.8px 3.2px, #8a5220 3.8px 4.6px, #3e2208 5px, transparent 5.6px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M0 8.6H10M8.2 8.6V1.4H1.8V6.2H5.6V3.6' fill='none' stroke='%234a2608' stroke-width='1.35' stroke-linecap='square'/%3E%3Cpath d='M0 9.5H10' stroke='%23ffe2b0' stroke-width='.5' opacity='.7'/%3E%3C/svg%3E") left 6px top 1px / 10px 10px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cg transform='translate(0 10) scale(1 -1)'%3E%3Cpath d='M0 8.6H10M8.2 8.6V1.4H1.8V6.2H5.6V3.6' fill='none' stroke='%234a2608' stroke-width='1.35' stroke-linecap='square'/%3E%3Cpath d='M0 9.5H10' stroke='%23ffe2b0' stroke-width='.5' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") left 6px bottom 1px / 10px 10px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cg transform='rotate(-90 5 5)'%3E%3Cpath d='M0 8.6H10M8.2 8.6V1.4H1.8V6.2H5.6V3.6' fill='none' stroke='%234a2608' stroke-width='1.35' stroke-linecap='square'/%3E%3Cpath d='M0 9.5H10' stroke='%23ffe2b0' stroke-width='.5' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") left 1px top 6px / 10px 10px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cg transform='rotate(90 5 5)'%3E%3Cpath d='M0 8.6H10M8.2 8.6V1.4H1.8V6.2H5.6V3.6' fill='none' stroke='%234a2608' stroke-width='1.35' stroke-linecap='square'/%3E%3Cpath d='M0 9.5H10' stroke='%23ffe2b0' stroke-width='.5' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") right 1px top 6px / 10px 10px repeat-y,
    radial-gradient(70% 40% at 50% 0%, rgba(255, 236, 170, .5), transparent 70%),
    linear-gradient(160deg, #f6d29a 0%, #d99a58 22%, #a8642a 46%, #e7b070 64%, #b87638 82%, #e9bb7c 100%);
  box-shadow: 0 0 0 1px #3e2208, 0 0 0 2.5px #e7b070, 0 0 0 3.5px #3e2208, 0 0 28px rgba(255, 200, 110, .36), 0 12px 30px rgba(0, 0, 0, .5); }
.cf.frame-olympia-kotinos::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 246, 220, .85) 50%, transparent 60% 100%) 100% 0 / 320% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: cfGlint 8s ease-in-out infinite; }
.cf.frame-olympia-kotinos .cf-in { box-shadow: 0 0 0 1px #3e2208, 0 0 0 2.5px #f0c48a, 0 0 0 3.5px #3e2208; }
.cfx-kotinos { filter: drop-shadow(0 0 8px rgba(255, 210, 110, .45)) drop-shadow(0 3px 3px rgba(40, 20, 0, .55)); }
.cfx-kotinos .cfx-rays { transform-box: view-box; transform-origin: 50% 51.9%; animation: e2Spin 80s linear infinite; }
.cfx-kotinos .cfx-halo { animation: e2Pulse 4s ease-in-out infinite; }
.cfx-kotinos .cfx-tn { animation: e2Ribbon 3.6s ease-in-out infinite; }
.cfx-kotinos .cfx-tn.r { animation-delay: -1.8s; }
.cfx-c.cfx-runner { filter: drop-shadow(0 2px 2px rgba(30, 14, 0, .6)); }
@keyframes e2Pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes e2Ribbon { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(4deg); } }
/* Asphodel Meadow (rare): dark basalt with violet veins, a smouldering ember glow along the bottom with embers drifting up the
   rim, pale asphodels rising from the lower corners (they sway, their glow breathes), Persephone's pomegranate on top */
.cf.frame-hades-asphodel { --cfp: 12px; --cfr: 10px; --cfi: 5px; --cfb: rgba(200, 160, 255, .42); --ow: clamp(26px, 14%, 60px); --oy: -54%;
  background: radial-gradient(1.3px 1.3px at 12% 96%, #ffb45a 60%, transparent 61%), radial-gradient(1.1px 1.1px at 58% 97%, #ff8a3a 60%, transparent 61%), radial-gradient(1.2px 1.2px at 88% 95%, #ffc46a 60%, transparent 61%),
    radial-gradient(1px 1px at 30% 4%, #d8c0ff 60%, transparent 61%), radial-gradient(1px 1px at 76% 3%, #e6d8ff 60%, transparent 61%),
    radial-gradient(90% 44% at 50% 106%, rgba(255, 120, 40, .75), transparent 72%), radial-gradient(30% 60% at 0% 100%, rgba(255, 110, 40, .35), transparent 70%), radial-gradient(30% 60% at 100% 100%, rgba(255, 110, 40, .35), transparent 70%), radial-gradient(70% 40% at 50% 0%, rgba(160, 110, 240, .3), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-10 34C18 24 34 52 62 40S104 12 130 28' stroke='%23a978f0' stroke-width='1.2' opacity='.75'/%3E%3Cpath d='M-10 94C20 104 44 76 78 88S110 112 130 100' stroke='%23c99aff' stroke-width='.9' opacity='.6'/%3E%3Cpath d='M46 -10C52 18 34 42 48 70S44 108 52 130' stroke='%238a5ad0' stroke-width='.8' opacity='.65'/%3E%3Cpath d='M62 40l10 8M78 88l-8 10' stroke='%23c89aff' stroke-width='.5' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, linear-gradient(160deg, #4a3c5e 0%, #261e34 36%, #3a2e4c 62%, #1e1628 100%);
  box-shadow: 0 0 0 1px #9a7ad8, 0 0 0 2.5px #0c0814, 0 0 24px rgba(150, 100, 255, .3), 0 8px 22px rgba(255, 100, 30, .16), 0 10px 26px rgba(0, 0, 0, .45); }
.cf.frame-hades-asphodel::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: var(--cfp); border-radius: inherit; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='29.4' cy='33.6' r='0.6' fill='%23ff7a2a' opacity='0.7'/%3E%3Ccircle cx='30.4' cy='4.7' r='1.3' fill='%23ffb45a' opacity='0.7'/%3E%3Ccircle cx='17.1' cy='46.9' r='1.1' fill='%23ff7a2a' opacity='0.7'/%3E%3Ccircle cx='14.1' cy='40.3' r='0.6' fill='%23ffb45a' opacity='0.7'/%3E%3Ccircle cx='10.6' cy='3' r='1.3' fill='%23ffb45a' opacity='0.6'/%3E%3Ccircle cx='26.7' cy='57.3' r='0.7' fill='%23ff7a2a' opacity='0.8'/%3E%3Ccircle cx='40.3' cy='16.8' r='0.7' fill='%23ffb45a' opacity='0.7'/%3E%3C/svg%3E") 0 0 / 46px 46px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: e2Rise 7s linear infinite, e2Smoulder 3.2s ease-in-out infinite alternate; }
@keyframes e2Rise { from { background-position: 0 0; } to { background-position: 0 -92px; } }
@keyframes e2Smoulder { from { opacity: .45; } to { opacity: 1; } }
.cf.frame-hades-asphodel .cf-in { box-shadow: 0 0 0 1px #0c0814, 0 0 0 2.5px rgba(196, 160, 255, .7), 0 0 0 3.5px #0c0814; }
.cfx-asph { bottom: 0; width: clamp(28px, 19%, 84px); filter: drop-shadow(0 0 3px rgba(210, 180, 255, .7)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.cfx-asph.bl { left: 0; transform: translate(-28%, 20%); } .cfx-asph.br { right: 0; transform: translate(28%, 20%) scaleX(-1); }
.cfx-asph svg { transform-origin: 20% 100%; animation: e2Sway 6s ease-in-out infinite alternate; }
.cfx-asph.br svg { animation-delay: -3s; }
.cfx-asph .cfx-glow { animation: e2Pulse 3.8s ease-in-out infinite; }
.cfx-pome { filter: drop-shadow(0 0 5px rgba(255, 110, 60, .45)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
@keyframes e2Sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2deg); } }

/* ---- name effects (data.js 'name-<set>-…'): light enough to read from 13 px on dark and lighter cards ---- */
/* Victor's Bronze (rare): sun-warmed polished bronze, a bright glint passing through now and then */
.nx-olympia-bronze { background-image: linear-gradient(100deg, transparent 40%, rgba(255, 250, 230, .95) 50%, transparent 60%), linear-gradient(180deg, #fff3da 0%, #f8d098 26%, #d08840 48%, #94521e 60%, #e4a868 78%, #ffdca6 100%);
  background-size: 260% 100%, 100% 100%; background-position: 100% 0, 0 0; filter: drop-shadow(0 0 .6px rgba(60, 28, 4, .9)) drop-shadow(0 1px 0 rgba(60, 28, 4, .5)) drop-shadow(0 0 4px rgba(255, 180, 90, .38)); animation: e2Glint 6s ease-in-out infinite; }
@keyframes e2Glint { 0%, 55% { background-position: 100% 0, 0 0; } 90%, 100% { background-position: 0 0, 0 0; } }
/* Embers of Hades (epic): pale violet letters that glow like coals from below, embers rising through them, the glow breathing */
.nx-hades-ember { background-image: radial-gradient(circle, #fff2c8 0 .7px, transparent 1.2px), radial-gradient(circle, #ffb45a 0 .6px, transparent 1.1px), linear-gradient(180deg, #f6efff 0%, #dcc6ff 26%, #c6a4ff 40%, #ff9452 60%, #ffbe62 76%, #ffd98a 100%);
  background-size: 11px 15px, 8px 11px, 100% 100%; background-position: 0 0, 4px 5px, 0 0; filter: drop-shadow(0 0 .6px rgba(30, 10, 50, .95)) drop-shadow(0 1px 0 rgba(30, 10, 50, .6)) drop-shadow(0 0 4px rgba(255, 120, 40, .45));
  animation: e2NameRise 6s linear infinite, e2Coals 2.8s ease-in-out infinite alternate; }
@keyframes e2NameRise { from { background-position: 0 0, 4px 5px, 0 0; } to { background-position: 0 -30px, 4px -39px, 0 0; } }
@keyframes e2Coals { from { filter: drop-shadow(0 0 .6px rgba(30, 10, 50, .95)) drop-shadow(0 1px 0 rgba(30, 10, 50, .6)) drop-shadow(0 0 3px rgba(255, 110, 30, .3)); }
  to { filter: drop-shadow(0 0 .6px rgba(30, 10, 50, .95)) drop-shadow(0 1px 0 rgba(30, 10, 50, .6)) drop-shadow(0 0 6px rgba(255, 130, 50, .6)) drop-shadow(0 0 10px rgba(170, 110, 255, .3)); } }

/* ---- backgrounds (backgrounds.js): previews only (the live camera rasterises the scene once) ---- */
/* dust drifting in the sun (bgds), embers rising (bghe), souls and mist drifting (bgso), the river's sheen (bgwv) */
.sp-cam svg .bgds { animation: e2BgDust 9s ease-in-out infinite alternate; }
.sp-cam svg .bgds:nth-of-type(3n) { animation-duration: 12s; animation-delay: -5s; }
.sp-cam svg .bghe { animation: e2BgEmber 6s linear infinite; }
.sp-cam svg .bghe:nth-of-type(2n) { animation-duration: 8s; animation-delay: -3s; }
.sp-cam svg .bghe:nth-of-type(3n) { animation-duration: 7s; animation-delay: -5s; }
.sp-cam svg .bgso { animation: e2BgSoul 10s ease-in-out infinite alternate; }
.sp-cam svg .bgso:nth-of-type(2n) { animation-duration: 13s; animation-delay: -6s; }
.sp-cam svg .bgwv { animation: e2BgWave 5s ease-in-out infinite alternate; }
@keyframes e2BgDust { from { transform: translate(0, 0); opacity: .35; } to { transform: translate(14px, -8px); opacity: .9; } }
@keyframes e2BgEmber { 0% { transform: translate(0, 10px); opacity: 0; } 15% { opacity: 1; } 80% { opacity: .8; } 100% { transform: translate(6px, -46px); opacity: 0; } }
@keyframes e2BgSoul { from { transform: translate(0, 0); opacity: .4; } to { transform: translate(-10px, -14px); opacity: .85; } }
@keyframes e2BgWave { from { transform: translateX(-6px); opacity: .5; } to { transform: translateX(6px); opacity: .95; } }
@media (prefers-reduced-motion: reduce) {
  .evx-olympia .evx-snow::before, .evx-hades .evx-snow, .evx-hades .evx-hd::after, .cf.frame-olympia-kotinos::after, .cfx-kotinos .cfx-rays, .cfx-kotinos .cfx-halo, .cfx-kotinos .cfx-tn,
  .cf.frame-hades-asphodel::after, .cfx-asph svg, .cfx-asph .cfx-glow, .nx-olympia-bronze, .nx-hades-ember,
  .sp-cam svg .bgds, .sp-cam svg .bghe, .sp-cam svg .bgso, .sp-cam svg .bgwv { animation: none; }
}
/* ==== end E2 events ==== */

/* ==== Review fixes 9007: New Year head, distinct event name effects ==== */
/* New Year head: the bursts stay on the emblem side, fading out before the text column */
.evx-newyear .evx-snow { background-size: auto 78%; background-position: right 150px top 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 48%, #000 74%); mask-image: linear-gradient(90deg, transparent 0 48%, #000 74%); }
@media (max-width: 760px) {
  .evx-newyear .evx-snow { background-size: auto 30%; background-position: right 8px top 4px; opacity: .5;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 58%, #000 82%); mask-image: linear-gradient(90deg, transparent 0 58%, #000 82%); }
}
/* event name effects that read as their own (not one more gold or bronze):
   New Year's Gold – gold under a midnight-blue outline with confetti of gold, white, rose and ice blue */
.nx-newyear-gold { background-image: radial-gradient(circle, #fff 0 .9px, transparent 1.4px), radial-gradient(circle, #9fd0ff 0 .9px, transparent 1.4px), radial-gradient(circle, #ff9cc0 0 .85px, transparent 1.3px),
    linear-gradient(100deg, transparent 40%, rgba(255, 253, 240, .95) 50%, transparent 60%), linear-gradient(180deg, #fff6d2 0%, #ffd65c 38%, #e3a52a 62%, #ffe9a2 100%);
  background-size: 13px 17px, 11px 14px, 15px 12px, 260% 100%, 100% 100%; background-position: 0 0, 6px 5px, 3px 9px, 100% 0, 0 0;
  -webkit-text-stroke: .035em #142a78; paint-order: stroke fill;
  filter: drop-shadow(0 0 .6px rgba(10, 20, 70, .95)) drop-shadow(0 1px 0 rgba(10, 20, 70, .7)) drop-shadow(0 0 5px rgba(110, 150, 255, .55)); animation: fxNyGold 7s linear infinite; }
@keyframes fxNyGold { 0% { background-position: 0 0, 6px 5px, 3px 9px, 100% 0, 0 0; } 60% { background-position: 0 -20.4px, 6px -11.8px, 3px -1.8px, 100% 0, 0 0; } 85% { background-position: 0 -28.9px, 6px -18.8px, 3px -6.3px, 0 0, 0 0; } 100% { background-position: 0 -34px, 6px -23px, 3px -9px, 0 0, 0 0; } }
/* Victor's Bronze – bronze weathered to a verdigris patina at the foot, an olive-green halo and a strong victor's glint */
.nx-olympia-bronze { background-image: linear-gradient(100deg, transparent 38%, rgba(255, 252, 236, 1) 50%, transparent 62%), linear-gradient(180deg, #ffe9c6 0%, #eeb172 24%, #c47a3a 46%, #8a6a3a 62%, #4fa688 80%, #8fe0c2 100%);
  background-size: 240% 100%, 100% 100%; filter: drop-shadow(0 0 .6px rgba(20, 40, 24, .95)) drop-shadow(0 1px 0 rgba(20, 40, 24, .55)) drop-shadow(0 0 5px rgba(120, 200, 140, .45)); animation: e2Glint 4.2s ease-in-out infinite; }
/* Lamplight – truly ivory letters; only the moving lamp glow is warm */
.nx-philosophy-lamp { background-image: radial-gradient(closest-side, #ffd896 0%, #ffbe66 34%, rgba(255, 180, 90, 0) 100%), linear-gradient(180deg, #fffdf6 0%, #f7f0de 48%, #e7dbbf 72%, #fffaf0 100%); }
/* Embers of Hades – clearly violet letters, the ember only at the lower edge (and in the sparks) */
.nx-hades-ember { background-image: radial-gradient(circle, #fff2c8 0 .7px, transparent 1.2px), radial-gradient(circle, #ffb45a 0 .6px, transparent 1.1px), linear-gradient(180deg, #f3eaff 0%, #d6bcff 28%, #b892ff 54%, #9d72f2 72%, #ff8c4c 90%, #ffc274 100%); }
@media (prefers-reduced-motion: reduce) { .nx-newyear-gold, .nx-olympia-bronze { animation: none; } }
/* ==== end Review fixes 9007 ==== */

/* ==== Admin ▸ Shop (admin-shop.js): how the shop works, the plan, the events list and editor, the
   limited editions and their dialogs. English only. The page is a container: the lists fold to two lines in narrow
   content (admin sidebar, phones) ==== */
.ash-page { container-type: inline-size; }
#ashhow .ash-how { padding-top: 16px; padding-bottom: 12px; font-size: 13.5px; }
.ash-now { display: flex; gap: 12px; align-items: flex-start; margin: 0 24px 20px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ash-now b { color: var(--text); }
.ash-now > .ico { width: 22px; height: 22px; flex: none; }
.ash-lead { margin: 16px 24px 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* the theme swatches (data.js SHOP_EVENT_THEMES) */
.ash-sw { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); background: linear-gradient(135deg, #6b7182, #2c303c); }
.ash-sw.th-winter { background: linear-gradient(135deg, #f2f8ff 0%, #9fcdf5 40%, #3a6aa3 75%, #1d3358 100%); }
.ash-sw.th-newyear { background: radial-gradient(circle at 70% 30%, #ffe27a 0 16%, rgba(255, 210, 90, .35) 17% 26%, transparent 27%), linear-gradient(135deg, #2f2770, #0e0a2c); }
.ash-sw.th-eros { background: linear-gradient(135deg, #ffe0e8, #f27a9e 50%, #9b2c56); }
.ash-sw.th-olympia { background: linear-gradient(170deg, #9ad8ff 0 48%, #f4cc72 49%, #b8763a); }
.ash-sw.th-hades { background: radial-gradient(ellipse at 50% 115%, #ff8a3a 0 28%, rgba(255, 120, 40, .3) 40%, transparent 60%), linear-gradient(180deg, #34154c, #120818); }
.ash-sw.th-philosophy { background: linear-gradient(135deg, #f6ead0, #d6bc80 50%, #3e5c8a); }
.ash-sw.th-neutral { background: linear-gradient(135deg, #8a90a2, #3a3f4d); }
/* the plan: a limited edition's copies left under its name */
.ash-limtag { display: block; width: 100%; font-size: 10px; line-height: 1.25; font-weight: 700; text-align: center; color: #ffd27a; }
.ash-limtag b { display: block; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ash-limtag.out { color: #ff9f9f; }
/* events: one row each – swatch, title + status line, dates (UTC, Berlin under it), buttons */
.ash-evs { display: flex; flex-direction: column; padding: 0 24px 8px; }
.aiz-in > .ash-evs { padding-top: 4px; }
.ash-ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ash-ev:first-child { border-top: 0; }
.ash-ev > .ash-sw { width: 40px; height: 40px; border-radius: 10px; align-self: start; }
.ash-ev-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ash-ev-t > b { font-size: 15px; }
.ash-ev-t > small { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ash-ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.ash-ev-meta .aiz-s { font-size: 12.5px; color: var(--text); }
.ash-when { display: flex; flex-direction: column; gap: 2px; text-align: end; }
.ash-when b { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ash-when small { font-size: 12px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ash-kept { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; font-size: 12.5px; font-weight: 700; color: var(--faint); cursor: help; }
.ash-kept .ico { width: 14px; height: 14px; }
#ashevc .ash-grp-h { margin-top: 18px; }
/* limited editions: a table on wide content, two-line cards in narrow content */
/* one grid for the head and every row (subgrid): the columns line up whatever buttons a row has */
.ash-lrs { display: grid; grid-template-columns: minmax(150px, 1.6fr) 64px 64px 104px minmax(120px, 1.3fr) 104px auto; column-gap: 14px; padding: 0 24px 10px; }
.ash-lr { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
/* "Change supply" and "Remove" stacked: the button column stays narrow, the item names keep their room */
.ash-lr > .ash-btns { flex-direction: column; align-items: stretch; }
.ash-lr-head { padding: 10px 0 8px; border-top: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ash-lr-it { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ash-lr-it > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ash-lr-it b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ash-lr-it small, .ash-lr-st small, .ash-lr-src small { font-size: 12px; color: var(--faint); }
.ash-lr-it small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ash-lr-n { text-align: end; font-variant-numeric: tabular-nums; }
.ash-lr-n > span { display: none; }
.ash-lr-left { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.ash-bar { display: block; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ash-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.ash-lr-st { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ash-lr-st .aiz-s { font-size: 13.5px; }
.ash-lr-src { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ash-lr.out .ash-lr-it b { color: var(--muted); }
.ash-lr.out .ash-mini { opacity: .55; }
@container (max-width: 900px) {
  .ash-ev { grid-template-columns: auto minmax(0, 1fr); }
  .ash-ev > .ash-when, .ash-ev > .ash-btns { grid-column: 2; }
  .ash-ev > .ash-when { text-align: start; }
  .ash-ev > .ash-btns { justify-content: flex-start; }
  .ash-lr-head { display: none; }
  .ash-lrs { display: block; }
  .ash-lr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; align-items: start; padding: 14px 0; }
  .ash-lr-left { gap: 3px; }
  .ash-lr:nth-child(2) { border-top: 0; }
  .ash-lr-it { grid-column: 1 / -1; }
  .ash-lr-n { text-align: start; }
  .ash-lr-n > span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
  .ash-lr-st { grid-column: 1 / span 2; }
  .ash-lr > .ash-btns { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
}
@container (max-width: 520px) {
  .ash-when b, .ash-when small { white-space: normal; }
  .ash-ev-t > small { white-space: normal; }
}
@media (max-width: 760px) {
  .ash-now { margin-inline: 16px; }
  .ash-lead { margin-inline: 16px; }
  .ash-evs, .ash-lrs { padding-inline: 16px; }
}
/* the dialogs: event editor, change supply, make an item limited */
.ash-dlg-h { padding: 24px 64px 16px 28px; border-bottom: 1px solid var(--line); }
.ash-dlg-h h2 { margin: 0; font-size: 21px; }
.ash-dlg-h p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ash-dlg-b { display: flex; flex-direction: column; gap: 14px; padding: 18px 28px 24px; }
.ash-dlg-b label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ash-dlg-b label small { font-size: 12px; font-weight: 500; color: var(--faint); }
.ash-dlg-b label small:empty { display: none; }
.ash-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ash-inrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ash-inrow > .input { flex: 1 1 180px; min-width: 0; }
.ash-thprev { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.ash-note { display: flex; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: #c3cbff; }
.ash-note .ico { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.ash-dur { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.ash-dur:empty { display: none; }
.ash-dur.bad { color: #ff9f9f; }
.ash-items-h { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--muted); }
.ash-items-h b { font-weight: 700; }
.ash-items-h .ok { color: var(--ok); }
.ash-dlg .ash-pick { margin-top: 6px; }
.ash-dlg .ash-scroll { max-height: min(40vh, 420px); }
.ash-dlg .ash-scroll > .ash-grp-h { margin: 16px 0 0; color: var(--text); }
.ash-dlg .ash-scroll > .ash-grp-h:first-child { margin-top: 6px; }
.ash-dlg .ash-scroll > .adm-empty { padding: 14px 0; }
.ash-err { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #ffd4d4; background: rgba(255, 90, 90, .1); box-shadow: inset 0 0 0 1px rgba(255, 110, 110, .4); }
.ash-err[hidden] { display: none; }
.ash-err .ico { width: 18px; height: 18px; flex: none; }
.ash-err.warn { color: #ffe6ad; background: rgba(255, 196, 80, .09); box-shadow: inset 0 0 0 1px rgba(255, 196, 80, .35); }
.ash-limhead { display: flex; align-items: center; gap: 16px; }
.ash-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.ash-facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ash-facts dd { margin: 0; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ash-hints { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-inline-start: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ash-narrow { max-width: 240px; }
.ash-dlg-b .input:disabled { opacity: .5; cursor: not-allowed; }
/* the buttons (and an error or overlap warning above them) stay at the bottom of a long dialog */
.ash-foot { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; margin: 0 -28px -24px; padding: 12px 28px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.ash-foot > .dlg-act { margin-top: 0; }
@media (max-width: 600px) {
  .ash-f2 { grid-template-columns: minmax(0, 1fr); }
  .ash-dlg-h { padding: 20px 56px 14px 18px; }
  .ash-dlg-b { padding: 16px 18px 20px; }
  .ash-narrow { max-width: none; }
  .ash-foot { margin: 0 -18px -20px; padding: 12px 18px 16px; }
}
/* ==== end Admin ▸ Shop ==== */
/* ==== Admin ▸ Shop: event days (admin-shop.js): the 14-day strip, an event's item in the large place ("Event ·
   <title>"), today's event items, the editor's "In the large places" plan. .ash-th.th-<theme> sets --evc (r, g, b),
   the event's colour ==== */
.ash-th { --evc: 168, 174, 192; }
.ash-th.th-winter { --evc: 159, 205, 245; }
.ash-th.th-newyear { --evc: 255, 215, 94; }
.ash-th.th-eros { --evc: 242, 122, 158; }
.ash-th.th-olympia { --evc: 244, 204, 114; }
.ash-th.th-hades { --evc: 255, 138, 58; }
.ash-th.th-philosophy { --evc: 214, 188, 128; }
/* the strip of the 14 days */
.ash-plan-top { padding: 18px 24px 4px; }
.ash-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.ash-sd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 7px 2px 10px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: inherit; cursor: pointer; }
.ash-sd:hover { background: rgba(255, 255, 255, .07); }
.ash-sd > small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ash-sd > b { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ash-sd > i { position: absolute; left: 7px; right: 7px; bottom: 4px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.ash-sd.ev { background: rgba(var(--evc), .1); box-shadow: inset 0 0 0 1px rgba(var(--evc), .3); }
.ash-sd.ev > i { background: rgb(var(--evc)); }
.ash-sd.ev > small { color: rgba(var(--evc), .85); }
.ash-sd.today { box-shadow: inset 0 0 0 2px var(--ok); }
.ash-sd.own::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #9aa6ff; }
.ash-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ash-legend > span { display: block; }
.ash-legend b { color: var(--text); font-weight: 700; }
.ash-lg { display: inline-block; width: 14px; height: 4px; margin-inline-end: 7px; border-radius: 99px; vertical-align: middle; background: rgb(var(--evc)); }
.ash-lg.rot { background: rgba(255, 255, 255, .22); }
/* an event day: its badge, the event's item in the large place, a day opened from the strip */
.ash-badge.ev { display: inline-flex; align-items: center; gap: 5px; background: rgba(var(--evc), .14); color: rgb(var(--evc)); }
.ash-badge.ev .ico { width: 11px; height: 11px; }
.ash-slot.ev { background: rgba(var(--evc), .1); box-shadow: inset 0 0 0 1px rgba(var(--evc), .45); }
.ash-slot.ev > small { color: rgb(var(--evc)); }
.ash-evtag { display: block; width: 100%; font-size: 10px; line-height: 1.25; font-weight: 700; text-align: center; color: rgb(var(--evc, 168, 174, 192)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ash-evtag b { display: block; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ash-fig.ev figcaption { color: var(--text); }
.ash-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ash-day { scroll-margin-top: 16px; }
.ash-day.flash { animation: ash-flash 1.4s ease-out; }
@keyframes ash-flash { from { background: rgba(120, 140, 255, .14); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ash-day.flash { animation: none; } }
/* "Right now" during an event: today's event items */
.ash-now.ash-th.ev { background: rgba(var(--evc), .07); box-shadow: inset 0 0 0 1px rgba(var(--evc), .28); }
.ash-now > .ash-sw { width: 32px; height: 32px; border-radius: 9px; }
.ash-now-t { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ash-now-f { display: flex; flex-wrap: wrap; gap: 10px; }
/* the editor: the fixed items of a started event, the large places plan */
.ash-fixed { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.ash-fp { display: flex; flex-direction: column; gap: 6px; }
.ash-items-h { flex-wrap: wrap; row-gap: 2px; }
.ash-fp-rows { display: flex; flex-direction: column; padding: 4px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.ash-fp-r { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ash-fp-r:first-child { border-top: 0; }
.ash-fp-l { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ash-fp-it { display: flex; flex-wrap: wrap; gap: 10px; }
.ash-times { display: block; width: 100%; font-size: 10.5px; font-weight: 800; text-align: center; color: #c3cbff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ash-times.none { color: #ff9f9f; }
.ash-fp-f.now .ash-mini { border-radius: 6px; box-shadow: 0 0 0 2px var(--ok); }
.ash-fp-f.now .ash-times { color: var(--ok); }
.ash-fp-none { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--faint); }
p.ash-fp-none { padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
@container (max-width: 640px) {
  .ash-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 760px) { .ash-plan-top { padding-inline: 16px; } }
@media (max-width: 600px) {
  .ash-fp-r { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
/* ==== end Admin ▸ Shop: event days ==== */

/* ==== Shop themes (public/js/shop.js event days: .shx on the page root, .shx-<theme>, html.shx-page-<theme>; prefix shx-) ==== */
/* While a shop event runs the whole shop page wears the event's theme (data.js SHOP_EVENT_THEMES, GET /api/shop events[].theme).
   One theme = one set of tokens on .shx-<theme> plus its art:
     --shx-sky    the page background (a fixed layer behind the page, .shx-sky)     --shx-base  the colour under it (<body>)
     --shx-ink    headings                --shx-soft / --shx-faint  text            --shx-acc / --shx-acc-2  accents
     --shx-line   hairlines (also --line)  --shx-card  the panels of the sections     --shx-chip  small chips and notes
     --shx-own    the owned chip           --shx-mark  the theme's sign (a mask image) before section titles and on owned chips
   The page's own colours (--line, --muted, --faint) follow the tokens, so every piece of the shop inside picks them up.
   Motion: transform / opacity only (snow falls as two composited layers, candle flames breathe), stopped by
   prefers-reduced-motion. The event head itself is .evx-<theme> .evx-hd (blocks "Shop event", "E1 events", "E2 events"). */
.shx { --shx-base: var(--bg); --shx-sky: var(--bg); --shx-ink: #fff; --shx-soft: var(--muted); --shx-faint: var(--faint); --shx-acc: #ffd27a; --shx-acc-2: var(--accent-hi);
  --shx-line: rgba(255, 255, 255, .1); --shx-card: rgba(255, 255, 255, .03); --shx-chip: rgba(255, 255, 255, .06); --shx-own: var(--ok); --shx-mark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%201.5l2.3%207.6%207.7.2-6.3%204.6%202.4%207.6L12%2016.9l-6.1%204.6%202.4-7.6L2%209.3l7.7-.2z'%20fill='%23000'/%3E%3C/svg%3E");
  --line: var(--shx-line); --muted: var(--shx-soft); --faint: var(--shx-faint); position: relative; }
.shx > :not(.shx-sky) { position: relative; z-index: 1; }
.shx-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--shx-sky); }
.shx-glow { position: absolute; inset: 0; }
.shx-fall { display: none; position: absolute; left: -240px; right: 0; top: -720px; bottom: 0; will-change: transform; animation: shxFall 48s linear infinite; }
.shx-fall.b { animation-duration: 30s; }
@keyframes shxFall { to { transform: translate3d(240px, 720px, 0); } }
@keyframes shxRise { from { transform: translate3d(0, 720px, 0); } to { transform: translate3d(120px, 0, 0); } }
html.shx-page body { background: var(--shx-page-base, var(--bg)); }
/* a section of the shop that is off screen (shop.js, IntersectionObserver): its item previews and art stand still */
.ed-off, .ed-off *, .ed-off *::before, .ed-off *::after { animation-play-state: paused !important; }

/* the head of the page: "Shop" and the wallet in the theme's ink */
.shx .s3-head h1 { color: var(--shx-ink); text-shadow: 0 0 28px color-mix(in srgb, var(--shx-acc) 30%, transparent); }
/* the event head (.evx-hd of the event block) as the page's hero: taller, the text in its own column, the art on the right */
.shx-hero { margin-top: 22px; }
.shx-hero .evx-hd { min-height: 300px; padding: 54px 44px 46px; }
.shx-hero .evx-tx { max-width: 640px; }
.shx-hero .evx-hd h2 { font-size: 46px; }
.shx-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.shx-when .evx-ends { margin-top: 0; }
.shx-until { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap;
  color: #2a1a00; background: linear-gradient(180deg, #fff0c4, #f2c45a 60%, #d99e2c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 12px rgba(255, 190, 80, .25); }
.shx-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--shx-soft);
  background: var(--shx-chip); box-shadow: inset 0 0 0 1px var(--shx-line); }
.shx-note > .ico { width: 17px; height: 17px; flex: none; color: var(--shx-acc); }
.shx-note > span { flex: 1; min-width: 0; }
.shx-note .ed-i { flex: none; }
/* the contents line and the sections: panels on the sky, the title with the theme's sign and a short line under it */
.shx .ed-toc { margin-top: 26px; }
.shx .ed-toc-nav a { color: var(--shx-soft); }
.shx .ed-toc-nav a:hover { color: var(--shx-ink); }
/* phones: the category tabs are pills – in the theme's colours, not the app's slate */
@media (max-width: 700px) {
  .shx .ed-toc-nav a { background: color-mix(in srgb, var(--shx-acc) 10%, var(--shx-base)); box-shadow: inset 0 0 0 1px var(--shx-line); }
}
.shx .ed-sec { margin-top: 40px; padding: 30px 34px 10px; border-radius: 20px; background: var(--shx-card); box-shadow: inset 0 0 0 1px var(--shx-line), 0 20px 50px rgba(0, 0, 0, .22); }
.shx .ed-sec#drachmas { padding-bottom: 30px; }
.shx .ed-hd h2 { color: var(--shx-ink); }
.shx .ed-hd h2::before { content: ''; flex: none; width: 22px; height: 22px; background: var(--shx-acc); -webkit-mask: var(--shx-mark) center / contain no-repeat; mask: var(--shx-mark) center / contain no-repeat; }
.shx-sub { margin-top: 8px; max-width: 660px; font-size: 15.5px; line-height: 1.5; color: var(--shx-soft); text-wrap: pretty; }
.shx .ed-spread, .shx .ed-spec { border-top-color: var(--shx-line); }
.shx .ed-own { color: var(--shx-own); }
/* owned: the theme's sign instead of the check mark (a snow crystal at the Saturnalia) */
.shx .ed-own .ico { display: none; }
.shx .ed-own::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--shx-mark) center / contain no-repeat; mask: var(--shx-mark) center / contain no-repeat; }
.shx .ed-i { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--shx-soft) 50%, transparent); color: var(--shx-soft); }
.shx .dr-pack { background: color-mix(in srgb, var(--shx-card) 100%, rgba(0, 0, 0, .25)); border-color: var(--shx-line); }
.shx .dr-pack.best { border-color: color-mix(in srgb, var(--shx-acc) 60%, transparent); }
.shx .ed-exit { border-top-color: var(--shx-line); }
/* you own all of it / nothing to show yet */
.shx-done { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 18px; border-radius: 14px; font-size: 16px; font-weight: 800; color: var(--shx-ink);
  background: color-mix(in srgb, var(--shx-acc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shx-acc) 40%, transparent); }
.shx-done svg { width: 44px; height: 44px; flex: none; color: var(--shx-acc); }
.shx-done .evx-lf { fill: currentColor; opacity: .8; }

/* ---- Saturnalia ('winter'): a winter night over the marble – snow, evergreen and gold garlands, candlelight, laurel ---- */
.shx-winter { --shx-base: #0a1028; --shx-ink: #f4f8ff; --shx-soft: #b9c8e6; --shx-faint: #8090b6; --shx-acc: #ffd27a; --shx-acc-2: #bfe0ff;
  --shx-line: rgba(180, 205, 255, .17); --shx-card: linear-gradient(180deg, rgba(22, 36, 82, .62), rgba(12, 20, 50, .66)); --shx-chip: rgba(170, 200, 255, .08); --shx-own: #bfe3ff; --shx-mark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cg%20stroke='%23000'%20stroke-width='2.2'%20stroke-linecap='round'%20fill='none'%3E%3Cpath%20d='M12%202v20M12%205.5l-3-2.5M12%205.5l3-2.5M12%2018.5l-3%202.5M12%2018.5l3%202.5'%20/%3E%3Cpath%20d='M3.3%207l17.4%2010M5.8%209.6l-3.6.7M5.8%209.6l-1.2-3.4M18.2%2014.4l3.6-.7M18.2%2014.4l1.2%203.4'%20/%3E%3Cpath%20d='M3.3%2017l17.4-10M5.8%2014.4l-1.2%203.4M5.8%2014.4l-3.6-.7M18.2%209.6l1.2-3.4M18.2%209.6l3.6.7'/%3E%3C/g%3E%3C/svg%3E");
  --shx-sky: radial-gradient(70% 42% at 84% -4%, rgba(130, 175, 255, .3), transparent 70%), radial-gradient(55% 40% at 4% 102%, rgba(255, 176, 88, .16), transparent 70%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .55) 0 .8px, transparent 1.3px) 0 0 / 230px 190px, radial-gradient(circle at 64% 44%, rgba(220, 232, 255, .45) 0 .7px, transparent 1.2px) 0 0 / 170px 210px,
    linear-gradient(180deg, #0d1a44 0%, #0b1536 38%, #0a1129 72%, #0a1028 100%); }
html.shx-page-winter body { --shx-page-base: #0a1028; }
.shx-winter .shx-glow { background: radial-gradient(46% 30% at 30% 6%, rgba(110, 225, 200, .09), transparent 70%), radial-gradient(40% 26% at 68% 2%, rgba(150, 140, 255, .1), transparent 70%); }
/* the winter sky's snow: two viewport-sized layers (only 360px taller than the screen) that fall by exactly one tile
   (every tile height divides 360px: a seamless loop) and sway a little sideways */
.shx-winter .shx-fall { display: block; left: -24px; right: -24px; top: -360px; animation: shxSnow 24s linear infinite; }
.shx-winter .shx-fall.b { animation-duration: 15s; }
@keyframes shxSnow { 0% { transform: translate3d(0, 0, 0); } 25% { transform: translate3d(14px, 90px, 0); } 50% { transform: translate3d(0, 180px, 0); } 75% { transform: translate3d(-14px, 270px, 0); } 100% { transform: translate3d(0, 360px, 0); } }
.shx-winter .shx-fall.a { opacity: .75; background: radial-gradient(circle at 20% 15%, #fff 0 1.3px, transparent 1.9px) 0 0 / 180px 180px, radial-gradient(circle at 72% 58%, rgba(235, 243, 255, .85) 0 1px, transparent 1.6px) 0 0 / 120px 120px,
  radial-gradient(circle at 44% 82%, rgba(255, 255, 255, .7) 0 .8px, transparent 1.3px) 0 0 / 80px 90px; }
.shx-winter .shx-fall.b { opacity: .5; background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .9) 0 2px, rgba(255, 255, 255, .25) 3px, transparent 4.5px) 0 0 / 240px 180px, radial-gradient(circle at 80% 85%, rgba(225, 238, 255, .8) 0 1.6px, transparent 3.4px) 0 0 / 360px 360px; }
/* the hero: the evergreen garland along the top, candles on the snow, a snowy temple far back */
.shx-winter.shx .evx-hd { padding-top: 64px; }
.shx-garland { position: absolute; left: 0; right: 0; top: -4px; height: 56px; z-index: 2; pointer-events: none; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='56'%20viewBox='0%200%20200%2056'%3E%20%3Cdefs%3E%3CradialGradient%20id='b'%20cx='.35'%20cy='.35'%20r='.7'%3E%3Cstop%20offset='0'%20stop-color='%23fff4c4'/%3E%3Cstop%20offset='.45'%20stop-color='%23f0bf4c'/%3E%3Cstop%20offset='1'%20stop-color='%239a6410'/%3E%3C/radialGradient%3E%3C/defs%3E%20%3Cpath%20d='M-6%205Q100%2044%20206%205'%20fill='none'%20stroke='%23123a24'%20stroke-width='14'%20stroke-linecap='round'/%3E%20%3Cpath%20d='M-6%205Q100%2044%20206%205'%20fill='none'%20stroke='%231f5a35'%20stroke-width='10'%20stroke-dasharray='1.6%202.4'/%3E%20%3Cpath%20d='M-6%202Q100%2040%20206%202'%20fill='none'%20stroke='%233f8a4f'%20stroke-width='5'%20stroke-dasharray='1%203.5'/%3E%20%3Cpath%20d='M-6%209Q100%2048%20206%209'%20fill='none'%20stroke='%232c6f40'%20stroke-width='4'%20stroke-dasharray='1%204'/%3E%20%3Cpath%20d='M-6%2012Q100%2050%20206%2012'%20fill='none'%20stroke='%23f3c75a'%20stroke-width='2.6'%20stroke-dasharray='0%206.5'%20stroke-linecap='round'/%3E%20%3Cpath%20d='M100%2026v9'%20stroke='%23d9a640'%20stroke-width='1.2'/%3E%20%3Ccircle%20cx='100'%20cy='41'%20r='6.5'%20fill='url(%23b)'/%3E%3Cpath%20d='M97.6%2034.6h4.8v2h-4.8z'%20fill='%23c99a3a'/%3E%20%3Cg%20fill='%23c8283a'%3E%3Ccircle%20cx='3'%20cy='9'%20r='2.6'/%3E%3Ccircle%20cx='-2'%20cy='12'%20r='2.4'/%3E%3Ccircle%20cx='197'%20cy='9'%20r='2.6'/%3E%3Ccircle%20cx='202'%20cy='12'%20r='2.4'/%3E%3Ccircle%20cx='200'%20cy='6'%20r='2.2'/%3E%3Ccircle%20cx='0'%20cy='6'%20r='2.2'/%3E%3C/g%3E%20%3Cg%20fill='%23ffe3a0'%20opacity='.85'%3E%3Ccircle%20cx='2.2'%20cy='8.2'%20r='.8'/%3E%3Ccircle%20cx='196.2'%20cy='8.2'%20r='.8'/%3E%3C/g%3E%20%3Cg%20fill='%23e3b24c'%3E%3Cellipse%20cx='-8'%20cy='0'%20rx='3'%20ry='8'%20transform='rotate(-50%20-8%200)'/%3E%3Cellipse%20cx='8'%20cy='0'%20rx='3'%20ry='8'%20transform='rotate(50%208%200)'/%3E%3Cellipse%20cx='192'%20cy='0'%20rx='3'%20ry='8'%20transform='rotate(-50%20192%200)'/%3E%3Cellipse%20cx='208'%20cy='0'%20rx='3'%20ry='8'%20transform='rotate(50%20208%200)'/%3E%3C/g%3E%20%3C/svg%3E") 0 0 / 200px 56px repeat-x;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.shx-temple { position: absolute; right: 120px; bottom: 8px; width: 230px; height: 106px; opacity: .13; pointer-events: none; }
.shx-temple .tp, .shx-temple .tc { fill: #cfe0ff; }
.shx-temple .ts { fill: #fff; stroke: none; }
.shx-temple path.ts:first-of-type { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.shx-candles { position: absolute; right: 52px; bottom: 12px; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.shx-candles .c { position: relative; display: block; width: 11px; height: 34px; border-radius: 2px 2px 1px 1px; background: linear-gradient(90deg, #d9c7a0, #fff8e6 45%, #e6d6b0 70%, #c9b48a);
  box-shadow: 0 -6px 18px rgba(255, 190, 100, .28); }
.shx-candles .c1 { height: 50px; } .shx-candles .c2 { height: 26px; }
.shx-candles .c::before { content: ''; position: absolute; left: 50%; top: -4px; width: 1.4px; height: 5px; margin-left: -.7px; background: #3a2a1a; }
.shx-candles .c b { position: absolute; left: 50%; bottom: calc(100% + 2px); width: 9px; height: 15px; margin-left: -4.5px; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; transform-origin: 50% 90%;
  background: radial-gradient(circle at 50% 72%, #fffbe6 0 22%, #ffd36a 48%, #ff9a30 70%, rgba(255, 120, 30, 0) 76%); animation: shxFlick 2.6s ease-in-out infinite; }
.shx-candles .c1 b { animation-delay: -.9s; } .shx-candles .c2 b { animation-delay: -1.7s; }
.shx-candles .c b::after { content: ''; position: absolute; left: 50%; top: 40%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 100, .34), transparent); }
@keyframes shxFlick { 0%, 100% { transform: scale(1, 1) rotate(-2deg); opacity: .95; } 35% { transform: scale(.94, 1.08) rotate(2deg); opacity: 1; } 70% { transform: scale(1.04, .95) rotate(-1deg); opacity: .88; } }
.shx-winter .shx-until { color: #3a2400; }
.shx-winter .evx-ends { background: rgba(6, 12, 34, .45); }
/* section panels: a fine frost line along the top edge of each */
.shx-winter .ed-sec { background: var(--shx-card); }
.shx-winter .ed-sec::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(220, 235, 255, .55), transparent); }
.shx-winter .ed-own .ico { color: #bfe3ff; }
.shx-winter .dr-pack { background: linear-gradient(180deg, rgba(30, 50, 104, .8), rgba(14, 24, 60, .85)); }
.shx-winter .dr-pack.best { box-shadow: 0 0 0 1px rgba(255, 210, 122, .35), 0 10px 30px rgba(255, 190, 80, .12); }
.shx-winter .shx-note { background: rgba(14, 26, 64, .7); }
.shx-winter .shx-done { background: linear-gradient(180deg, rgba(20, 34, 80, .85), rgba(12, 22, 58, .85)); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .45), 0 0 28px rgba(255, 210, 122, .08); }

/* ---- the other themes: their sky and tokens (the heads keep their own art, blocks "E1 events" / "E2 events") ---- */
.shx-newyear { --shx-base: #0d0818; --shx-ink: #fff6ee; --shx-soft: #d9c6de; --shx-faint: #9c88a8; --shx-acc: #ffdca8; --shx-line: rgba(255, 190, 220, .17);
  --shx-card: linear-gradient(180deg, rgba(58, 26, 80, .6), rgba(24, 10, 40, .66)); --shx-chip: rgba(255, 190, 220, .08); --shx-own: #ffe0b8;
  --shx-sky: radial-gradient(60% 40% at 86% -2%, rgba(255, 200, 140, .18), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(255, 120, 180, .14), transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 0 .8px, transparent 1.3px) 0 0 / 210px 180px, linear-gradient(180deg, #24123f 0%, #170c2c 45%, #0d0818 100%); }
/* midnight violet (the day before, Saturnalia, is navy): the head of the shop too */
.shx-newyear .shx-hero.evx-newyear .evx-hd { background: radial-gradient(60% 90% at 84% 6%, rgba(255, 200, 120, .24), transparent 62%), radial-gradient(50% 80% at 6% 110%, rgba(255, 120, 180, .2), transparent 62%), linear-gradient(160deg, #3a1d5c 0%, #231240 55%, #120a26 100%); }
html.shx-page-newyear body { --shx-page-base: #0d0818; }
.shx-newyear .shx-fall { display: block; }
.shx-newyear .shx-fall.a { opacity: .6; background: radial-gradient(circle at 20% 20%, #ffd36a 0 1.2px, transparent 1.8px) 0 0 / 180px 180px, radial-gradient(circle at 70% 60%, #fff4c8 0 1px, transparent 1.6px) 0 0 / 120px 144px, radial-gradient(circle at 40% 80%, #ff9cc0 0 1px, transparent 1.5px) 0 0 / 240px 240px; }
.shx-newyear .shx-fall.b { display: none; }
.shx-eros { --shx-base: #1c0c19; --shx-ink: #fff2f6; --shx-soft: #e6c2cf; --shx-faint: #b08898; --shx-acc: #ffb3c8; --shx-line: rgba(255, 190, 210, .17);
  --shx-card: linear-gradient(180deg, rgba(84, 30, 62, .5), rgba(46, 16, 38, .6)); --shx-chip: rgba(255, 190, 210, .08); --shx-own: #ffc9d8;
  --shx-sky: radial-gradient(60% 40% at 88% -2%, rgba(255, 160, 195, .24), transparent 70%), radial-gradient(55% 40% at 2% 102%, rgba(255, 190, 150, .14), transparent 70%), linear-gradient(180deg, #3d1631 0%, #2a1024 50%, #1c0c19 100%); }
html.shx-page-eros body { --shx-page-base: #1c0c19; }
.shx-eros .shx-fall.a { display: block; opacity: .55; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%3E%20%3Cellipse%20cx='30'%20cy='30'%20rx='5'%20ry='3.1'%20transform='rotate(30%2030%2030)'%20fill='%23ff9fb8'%20opacity='.8'/%3E%20%3Cellipse%20cx='150'%20cy='80'%20rx='4'%20ry='2.5'%20transform='rotate(-40%20150%2080)'%20fill='%23ffc2d2'%20opacity='.7'/%3E%20%3Cellipse%20cx='90'%20cy='170'%20rx='5.6'%20ry='3.5'%20transform='rotate(70%2090%20170)'%20fill='%23f37a9a'%20opacity='.7'/%3E%20%3Cellipse%20cx='205'%20cy='205'%20rx='3.6'%20ry='2.2'%20transform='rotate(10%20205%20205)'%20fill='%23ffd6e0'%20opacity='.7'/%3E%20%3C/svg%3E") 0 0 / 240px 240px; }
.shx-olympia { --shx-base: #18202a; --shx-ink: #fff8ea; --shx-soft: #d8d0b8; --shx-faint: #a39a82; --shx-acc: #ffd27a; --shx-line: rgba(255, 220, 160, .18);
  --shx-card: linear-gradient(180deg, rgba(36, 62, 90, .52), rgba(32, 38, 34, .6)); --shx-chip: rgba(255, 220, 160, .08); --shx-own: #e6efc0;
  --shx-sky: radial-gradient(50% 42% at 86% -6%, rgba(255, 226, 140, .32), transparent 70%), radial-gradient(60% 40% at 0% 104%, rgba(140, 170, 90, .2), transparent 70%), linear-gradient(180deg, #24547e 0%, #22405a 30%, #26302c 66%, #18202a 100%); }
html.shx-page-olympia body { --shx-page-base: #18202a; }
.shx-hades { --shx-base: #0c0716; --shx-ink: #f6efff; --shx-soft: #cbb9e8; --shx-faint: #8f7cae; --shx-acc: #ffb46a; --shx-line: rgba(190, 150, 255, .17);
  --shx-card: linear-gradient(180deg, rgba(46, 26, 74, .55), rgba(22, 12, 38, .65)); --shx-chip: rgba(190, 150, 255, .08); --shx-own: #e0ccff;
  --shx-sky: radial-gradient(60% 34% at 50% 108%, rgba(255, 120, 40, .22), transparent 70%), radial-gradient(50% 40% at 92% -4%, rgba(150, 90, 230, .28), transparent 70%), linear-gradient(180deg, #221336 0%, #160c26 50%, #0c0716 100%); }
html.shx-page-hades body { --shx-page-base: #0c0716; }
.shx-hades .shx-fall.a { display: block; opacity: .6; animation-name: shxRise; animation-duration: 40s;
  background: radial-gradient(circle at 30% 30%, #ffb45a 0 1.1px, transparent 1.7px) 0 0 / 180px 180px, radial-gradient(circle at 75% 70%, #ff7a2a 0 .9px, transparent 1.5px) 0 0 / 120px 144px;
  -webkit-mask: linear-gradient(0deg, #000, transparent 85%); mask: linear-gradient(0deg, #000, transparent 85%); }
.shx-philosophy { --shx-base: #0b111b; --shx-ink: #fbf6ea; --shx-soft: #d3cab4; --shx-faint: #9a927e; --shx-acc: #f1e4c2; --shx-line: rgba(233, 220, 192, .16);
  --shx-card: linear-gradient(180deg, rgba(30, 44, 64, .55), rgba(14, 22, 34, .62)); --shx-chip: rgba(233, 220, 192, .07); --shx-own: #e9dcc0;
  --shx-sky: radial-gradient(46% 36% at 6% 104%, rgba(255, 176, 86, .2), transparent 70%), radial-gradient(60% 40% at 92% -4%, rgba(150, 175, 220, .16), transparent 70%),
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .5) 0 .8px, transparent 1.3px) 0 0 / 220px 200px, linear-gradient(180deg, #19273b 0%, #121c2b 50%, #0b111b 100%); }
html.shx-page-philosophy body { --shx-page-base: #0b111b; }
/* 'neutral' (an event of the admin's own, e.g. a DebateCon): a clean festival look in the app's violet and gold */
.shx-neutral { --shx-base: #15131f; --shx-ink: #fff; --shx-soft: #b6b2d0; --shx-faint: #807c9e; --shx-acc: #ffd27a; --shx-line: rgba(170, 150, 255, .16);
  --shx-card: linear-gradient(180deg, rgba(48, 38, 96, .4), rgba(26, 24, 44, .55)); --shx-chip: rgba(170, 150, 255, .08); --shx-own: var(--ok);
  --shx-sky: radial-gradient(55% 40% at 88% -4%, rgba(123, 92, 255, .3), transparent 70%), radial-gradient(50% 36% at 0% 104%, rgba(244, 183, 64, .14), transparent 70%), linear-gradient(180deg, #1f1b36 0%, #18162a 50%, #15131f 100%); }
html.shx-page-neutral body { --shx-page-base: #15131f; }
.evx-neutral .evx-hd { background: radial-gradient(60% 90% at 88% 0%, rgba(150, 120, 255, .4), transparent 62%), radial-gradient(50% 80% at 4% 110%, rgba(255, 196, 90, .18), transparent 62%), linear-gradient(155deg, #2d2560 0%, #1d1940 55%, #121026 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 160, 255, .3), 0 18px 44px rgba(0, 0, 0, .4); }
.evx-neutral .evx-snow { display: block; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 30% 30%, #ffd27a 0 1.4px, transparent 2px) 0 0 / 120px 90px, radial-gradient(circle at 70% 70%, #c3b2ff 0 1.2px, transparent 1.8px) 0 0 / 90px 110px;
  -webkit-mask: linear-gradient(90deg, transparent 30%, #000 75%); mask: linear-gradient(90deg, transparent 30%, #000 75%); }
.evx-neutral .evx-em { color: #ffd27a; }
.evx-neutral .evx-em .evx-lf { fill: #c3b2ff; }

/* New Year head in the hero: the bursts stay in the art column right of the text (they crowded the end of the title) */
.shx-hero.evx-newyear .evx-snow { left: auto; width: 46%; background-size: auto 74%; background-position: right 36px top 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* ---- limited editions in the rotation (any shop day): a sold-out piece dimmed (no counts are shown) ---- */
.ed-it.is-sold .ed-obj { filter: grayscale(.55) brightness(.78); }
.ed-it.is-sold .ed-name { color: var(--muted); }

@media (max-width: 760px) {
  .shx-hero { margin-top: 16px; }
  .shx-hero .evx-hd { min-height: 0; padding: 30px 20px 40px; }
  .shx-winter.shx .evx-hd { padding-top: 52px; }
  .shx-hero .evx-hd h2 { font-size: 30px; }
  .shx-hero .evx-em { top: 10px; }
  .shx-winter .shx-hero .evx-em { top: 30px; }
  .shx-garland { height: 50px; background-size: 180px 50px; }
  /* the second small piece of a flipped spread (backgrounds) kept no gap to the divider (the flip rule outweighed it) */
  .ed-spread.flip .ed-side > .ed-it + .ed-it { padding-inline-start: 14px; }
  .ed-spread.flip .ed-side > .ed-it:first-child { padding-inline-end: 14px; }
  .shx-temple { display: none; }
  .shx-candles { right: 18px; bottom: 10px; gap: 7px; transform: scale(.78); transform-origin: 100% 100%; }
  /* the candles stand below the date chips (longer "Ends in" texts reached into them) */
  .shx-winter.shx .shx-hero .evx-hd { padding-bottom: 72px; }
  /* the kicker pill stays on one line in every language */
  .evx-kick { font-size: 11px; letter-spacing: .08em; }
  .shx-note { align-items: flex-start; font-size: 13.5px; }
  .shx .ed-sec { margin-top: 28px; padding: 22px 14px 6px; border-radius: 16px; }
  .shx .ed-sec#drachmas { padding-bottom: 18px; }
  .shx .ed-hd h2::before { width: 18px; height: 18px; }
  .shx-sub { font-size: 14.5px; }
  .shx-hero.evx-newyear .evx-snow { left: 0; width: auto; background-size: auto 34%; background-position: right 6px top 4px; opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 56%, #000 80%); mask-image: linear-gradient(90deg, transparent 0 56%, #000 80%); }
}
@media (prefers-reduced-motion: reduce) {
  /* as specific as the themes' own rules (.shx-winter .shx-fall, .shx-hades .shx-fall.a): a media query adds nothing */
  .shx-fall, .shx-page .shx-fall, .shx-page .shx-fall.a, .shx-page .shx-fall.b, .shx-candles .c b { animation: none; }
}
/* ==== end Shop themes ==== */

/* ==== Drachma packs 2D ====
   The four Drachma bundles in the shop (shop.js bundle, pictures: drachma-art.js): one card each – a tab on the top edge
   for a tagged bundle (Most popular: violet, Best value: gold), the flat picture on a warm light that grows with the
   bundle, the name, the amount, the bonus and the price. The whole card buys. Hover: the card rises, the object lifts,
   the top coin bobs, the sparkles twinkle, the treasury's ring of light turns; none of it with prefers-reduced-motion.
   Event themes (.shx …, "Shop themes") only recolour the card. */
.dr-pack { --dpk-glow: .08; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: center; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
.dr-pack.dr-purse { --dpk-glow: .11; }
.dr-pack.dr-chest { --dpk-glow: .14; }
.dr-pack.dr-treasury { --dpk-glow: .19; }
.dr-pack:hover { transform: translateY(-3px); border-color: rgba(244, 183, 64, .45); box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .7); }
.dr-pack:active { transform: translateY(-1px); }
.dr-pack:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dr-pack.best { border-color: rgba(244, 183, 64, .55); }
.dr-pack.pop { border-color: rgba(143, 116, 255, .5); }
.dr-pack-tag { position: absolute; z-index: 2; top: 0; left: 50%; transform: translateX(-50%); max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 12px 5px; border-radius: 0 0 10px 10px; font-size: 11px; font-weight: 800; letter-spacing: .03em; line-height: 1.35; color: #2a1d00; background: var(--gold); }
.dr-pack.pop .dr-pack-tag { color: #fff; background: var(--accent); }
/* the picture on its light */
.dr-pack-art { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin: 24px 0 10px; }
.dr-pack-art::before { content: ''; position: absolute; z-index: -1; inset: -6% -10% 0; background: radial-gradient(closest-side, rgba(255, 196, 92, var(--dpk-glow)), rgba(255, 196, 92, calc(var(--dpk-glow) * .45)) 55%, rgba(255, 196, 92, 0)); transition: opacity .3s; opacity: .85; }
.dr-pack:hover .dr-pack-art::before { opacity: 1; }
.dpa { display: block; width: 100%; height: 100%; overflow: visible; }
.dpa-obj, .dpa-gr { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.dpa-gr { transform-box: fill-box; transform-origin: 50% 50%; }
.dpa-sp { transform-box: fill-box; transform-origin: 50% 50%; }
.dpa-top { transform-box: fill-box; transform-origin: 50% 100%; }
.dr-pack:hover .dpa-obj { transform: translateY(-3px); }
.dr-pack:hover .dpa-gr { transform: scale(.94); }
.dr-pack:hover .dpa-top { animation: dpaBob 1.8s ease-in-out infinite; }
.dr-pack:hover .dpa-sp { animation: dpaTwinkle 1.6s ease-in-out infinite; }
.dr-pack:hover .dpa-sp:nth-of-type(2n) { animation-delay: -.55s; }
.dr-pack:hover .dpa-sp:nth-of-type(3n) { animation-delay: -1.1s; }
.dr-pack:hover .dpa-rays { animation: dpaTurn 30s linear infinite; }
@keyframes dpaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes dpaTwinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.45); opacity: .5; } }
@keyframes dpaTurn { to { transform: rotate(360deg); } }
.dr-pack-name { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dr-pack-amt.coins { margin-top: 2px; font-size: 26px; gap: 8px; }
.dr-pack-amt.coins .ico { width: 25px; height: 25px; }
/* the price sits at the foot of every card (margin-top: auto), so the buttons of a row line up even when a bonus wraps */
.dr-pack-bonus { min-height: 19px; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.dr-pack-price { align-self: stretch; display: grid; place-items: center; height: 42px; margin-top: auto; border-radius: 10px; font-size: 15px; font-weight: 800; color: #fff; background: var(--surface-2); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); transition: background .2s, color .2s, box-shadow .2s; }
.dr-pack:hover .dr-pack-price, .dr-pack.best .dr-pack-price { background: var(--gold); color: #2a1d00; box-shadow: inset 0 -4px 0 var(--gold-edge); }
/* event themes: the tabs keep their colours, the light takes the theme's accent */
.shx .dr-pack-art::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--shx-acc) calc(var(--dpk-glow) * 100%), transparent), color-mix(in srgb, var(--shx-acc) calc(var(--dpk-glow) * 45%), transparent) 55%, transparent); }
.shx .dr-pack.pop { border-color: color-mix(in srgb, var(--accent-hi) 55%, transparent); }
@media (max-width: 700px) {
  .dr-pack { padding: 0 10px 10px; border-radius: 14px; }
  .dr-pack-art { margin: 22px 0 6px; }
  .dr-pack-name { font-size: 10.5px; letter-spacing: .12em; }
  .dr-pack-amt.coins { font-size: 20px; gap: 6px; }
  .dr-pack-amt.coins .ico { width: 20px; height: 20px; }
  .dr-pack-bonus { margin-bottom: 8px; font-size: 12px; }
  .dr-pack-price { height: 40px; margin-top: auto; }
  .dr-pack-tag { font-size: 10.5px; padding: 3px 9px 4px; max-width: calc(100% - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .dr-pack, .dr-pack-art::before, .dpa-obj, .dpa-gr { transition: none; }
  .dr-pack:hover, .dr-pack:hover .dpa-obj, .dr-pack:hover .dpa-gr { transform: none; }
  .dr-pack:hover .dpa-top, .dr-pack:hover .dpa-sp, .dr-pack:hover .dpa-rays { animation: none; }
}
/* ==== end Drachma packs 2D ==== */

/* ==== Shop event days (public/js/shop.js eventBadge / spread, app.js collection; prefix ev-) ====
   The rotation goes on while an event runs: the large piece of each category is the event item of the day (.ed-feat.ev-pick,
   a name effect: .ed-row.ev-pick), the two smaller ones are the daily items. An event item wears "Event · <event>" next to
   its rarity wherever it stands (.evx-badge, in the colours of its set: .ev-<set>). The event's light behind the large
   piece takes the theme's accent (--shx-acc). Motion: none of its own. */
.evx-badge { --evb-ink: #fff; --evb-bg: linear-gradient(180deg, #8f74ff 0%, #6a4ce6 60%, #5236c4 100%); --evb-ic: #ffd98a; --evb-edge: rgba(40, 20, 120, .45); --evb-glow: rgba(140, 110, 255, .3);
  display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 100%; height: 20px; margin-inline-start: 4px; padding: 0 8px 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 900; line-height: 1; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  color: var(--evb-ink); background: var(--evb-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 var(--evb-edge), 0 1px 8px var(--evb-glow); }
.evx-badge > .ico { flex: none; width: 11px; height: 11px; color: var(--evb-ic); }
.evx-badge > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.evx-badge.ev-winter { --evb-ink: #10224a; --evb-bg: linear-gradient(180deg, #f6faff 0%, #d4e5fb 58%, #a9c6ee 100%); --evb-ic: #3f6fb8; --evb-edge: rgba(30, 60, 120, .3); --evb-glow: rgba(140, 180, 255, .3); }
.evx-badge.ev-newyear { --evb-ink: #fff3cf; --evb-bg: linear-gradient(180deg, #34479a 0%, #1d2a6a 60%, #141d52 100%); --evb-ic: #ffd36a; --evb-edge: rgba(255, 214, 120, .5); --evb-glow: rgba(255, 200, 90, .22); }
.evx-badge.ev-eros { --evb-ink: #4a0f26; --evb-bg: linear-gradient(180deg, #ffe6ee 0%, #ffbacd 58%, #f38aa8 100%); --evb-ic: #c2265a; --evb-edge: rgba(130, 20, 60, .3); --evb-glow: rgba(255, 140, 180, .3); }
.evx-badge.ev-olympia { --evb-ink: #f6ffe4; --evb-bg: linear-gradient(180deg, #86aa5e 0%, #5d8240 58%, #46682e 100%); --evb-ic: #ffe08a; --evb-edge: rgba(30, 50, 10, .45); --evb-glow: rgba(190, 220, 120, .25); }
.evx-badge.ev-hades { --evb-ink: #fff1e8; --evb-bg: linear-gradient(180deg, #55338a 0%, #36205e 58%, #241442 100%); --evb-ic: #ffb46a; --evb-edge: rgba(255, 150, 80, .5); --evb-glow: rgba(255, 130, 50, .22); }
.evx-badge.ev-philosophy { --evb-ink: #2b2416; --evb-bg: linear-gradient(180deg, #fdf6e2 0%, #ebdfc2 58%, #cfbd94 100%); --evb-ic: #8a6a2e; --evb-edge: rgba(90, 70, 30, .35); --evb-glow: rgba(240, 220, 170, .22); }
/* its own line right under the rarity (shop cards, the item dialog) */
.ev-line { display: flex; min-width: 0; margin: 2px 0 8px; }
.ev-line .evx-badge { margin-inline-start: 0; }
.ed-feat .ev-line { margin: 0 0 10px; }
.ed-feat .ev-line .evx-badge { height: 22px; padding-inline: 7px 9px; font-size: 11px; }
.ed-feat .ev-line .evx-badge > .ico { width: 12px; height: 12px; }
.ed-row .ev-line { margin: 2px 0 6px; }
.sd-body > .ev-line { margin: 6px 0 0; }
.sd-body > .evx-badge { align-self: flex-start; margin: 6px 0 0; }
.sh-won-eye .evx-badge { margin-inline-start: 8px; }
/* the large piece of an event day: the event's light behind it, the lamp always a little lit */
.ev-pick .ed-stage::before { opacity: .9; background: radial-gradient(closest-side, color-mix(in srgb, var(--shx-acc, #ffd27a) 24%, transparent), color-mix(in srgb, var(--shx-acc, #ffd27a) 7%, transparent) 62%, transparent); }
.ev-pick .ed-lamp { opacity: .5; }
.ev-pick .ed-lamp::before { background: linear-gradient(180deg, color-mix(in srgb, var(--shx-acc, #ffd27a) 22%, transparent), color-mix(in srgb, var(--shx-acc, #ffd27a) 6%, transparent) 55%, transparent 92%); }
.ev-pick .ed-it:hover .ed-lamp, .ev-pick .ed-it.held .ed-lamp { opacity: 1; }
/* the event's name effect of the day heads the specimen sheet: a soft band in the event's light, an accent on its edge */
.ed-row.ev-pick { position: relative; padding-inline: 18px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--shx-acc, #ffd27a) 11%, transparent), transparent 72%); }
.ed-row.ev-pick::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--shx-acc, #ffd27a); box-shadow: 0 0 12px color-mix(in srgb, var(--shx-acc, #ffd27a) 60%, transparent); }
[dir="rtl"] .ed-row.ev-pick::before { left: auto; right: 0; }
/* the daily timer under the event's hero */
.shx-hero + .s3-today, .shx-done + .s3-today { margin-top: 22px; }
.shx .s3-today { color: var(--shx-soft); }
.shx .s3-timer b { color: var(--shx-ink); }
.shx-note > .ico { align-self: flex-start; margin-top: 1px; }
@media (max-width: 760px) {
  .ed-row.ev-pick { padding-inline: 14px 10px; }
  .ed-feat .ev-line .evx-badge { height: 21px; font-size: 10.5px; }
}
/* ==== end Shop event days ==== */

/* ==== Eros shop theme (public/js/shop.js erosArt / erosSky / EROS_BOW, the shop page of the event 'eros' – Eros & Psyche) ==== */
/* The event tokens (one set per theme, for the shop page and for the site-wide event layer): set on the shop page root
   (.shx-<theme>), on <html> while the shop page wears the theme (html.shx-page-<theme>) and on any element with
   data-event-theme="<theme>" (e.g. <html data-event-theme="eros"> on every page while the event runs).
     --ev-accent    the theme's main colour (lights, marks, the owned chip)   --ev-accent-2  its second colour (metal / ice)
     --ev-glow      a glow colour with its alpha (halos, drop shadows)          --ev-ink       light text on the theme's dark
     --ev-soft      secondary text on the dark                                  --ev-deep      the darkest base colour (night)
     --ev-surface   a translucent tint for panels                               --ev-line      hairlines and rims
     --ev-pill      the gradient of a solid pill (the "Until …" date)           --ev-on-accent text on --ev-pill / --ev-accent
     --ev-mark      the theme's sign as a mask image (snow crystal, butterfly): mask: var(--ev-mark) center / contain no-repeat
   The app is dark-only (no light colour scheme), so one set serves both prefers-color-scheme values. */
:is(.shx-winter, html.shx-page-winter, [data-event-theme="winter"]) {
  --ev-accent: #ffd27a; --ev-accent-2: #bfe0ff; --ev-glow: rgba(150, 190, 255, .42); --ev-ink: #f4f8ff; --ev-soft: #b9c8e6; --ev-deep: #0a1028;
  --ev-surface: rgba(30, 52, 116, .3); --ev-line: rgba(180, 205, 255, .2); --ev-on-accent: #3a2400;
  --ev-pill: linear-gradient(180deg, #fff0c4, #f2c45a 60%, #d99e2c); --ev-mark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cg%20stroke='%23000'%20stroke-width='2.2'%20stroke-linecap='round'%20fill='none'%3E%3Cpath%20d='M12%202v20M12%205.5l-3-2.5M12%205.5l3-2.5M12%2018.5l-3%202.5M12%2018.5l3%202.5'%20/%3E%3Cpath%20d='M3.3%207l17.4%2010M5.8%209.6l-3.6.7M5.8%209.6l-1.2-3.4M18.2%2014.4l3.6-.7M18.2%2014.4l1.2%203.4'%20/%3E%3Cpath%20d='M3.3%2017l17.4-10M5.8%2014.4l-1.2%203.4M5.8%2014.4l-3.6-.7M18.2%209.6l1.2-3.4M18.2%209.6l3.6.7'/%3E%3C/g%3E%3C/svg%3E"); }
:is(.shx-eros, html.shx-page-eros, [data-event-theme="eros"]) {
  --ev-accent: #ffa9c2; --ev-accent-2: #f4b39f; --ev-glow: rgba(255, 140, 180, .42); --ev-ink: #fff1f4; --ev-soft: #ecc6d2; --ev-deep: #1c0a18;
  --ev-surface: rgba(122, 38, 86, .28); --ev-line: rgba(255, 190, 210, .22); --ev-on-accent: #4a1626;
  --ev-pill: linear-gradient(180deg, #ffe8de 0%, #f7bca8 55%, #dc8e7b 100%); --ev-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23000'%3E%3Cpath d='M11.3 11.2C9.6 5 4.2 2 2.2 4.6.9 6.4 2.4 10.2 6.2 11.6c1.8.7 3.6.6 5.1-.4z'/%3E%3Cpath d='M11.2 12.8c-3.4-.2-6.8 2-6.2 5 .4 2 3.2 2.2 4.8.2 1-1.3 1.4-3.2 1.4-5.2z'/%3E%3Cpath d='M12.7 11.2C14.4 5 19.8 2 21.8 4.6c1.3 1.8-.2 5.6-4 7-1.8.7-3.6.6-5.1-.4z'/%3E%3Cpath d='M12.8 12.8c3.4-.2 6.8 2 6.2 5-.4 2-3.2 2.2-4.8.2-1-1.3-1.4-3.2-1.4-5.2z'/%3E%3Crect x='11.2' y='8' width='1.6' height='11' rx='.8'/%3E%3C/g%3E%3Cpath d='M12 8.6c-.6-2.4-1.6-3.8-2.8-4.4M12 8.6c.6-2.4 1.6-3.8 2.8-4.4' stroke='%23000' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---- Eros & Psyche ('eros'): a spring night of love – wine-dark sky under a crescent moon, pink marble, rose gold,
   roses, Psyche's butterflies and her oil lamp. Sibling of Saturnalia: the same hero (garland on top, a temple far back,
   a light at the right foot, a ledge along the bottom), sky layers and panels in its own colours.
   Motion: transform / opacity only (petals fall as two composited layers, butterflies beat their wings and cross the sky
   slowly, the lamp flame breathes); prefers-reduced-motion stops all of it (end of this block). */
.shx-eros { --shx-base: var(--ev-deep); --shx-ink: var(--ev-ink); --shx-soft: var(--ev-soft); --shx-faint: #b48b9c; --shx-acc: var(--ev-accent); --shx-acc-2: var(--ev-accent-2);
  --shx-line: var(--ev-line); --shx-card: linear-gradient(180deg, rgba(92, 30, 70, .58), rgba(44, 13, 38, .66)); --shx-chip: rgba(255, 190, 210, .08); --shx-own: #ffc9d8; --shx-mark: var(--ev-mark);
  --shx-sky: radial-gradient(30% 24% at 84% 4%, rgba(255, 228, 238, .2), transparent 70%), radial-gradient(60% 40% at 0% 104%, rgba(255, 110, 155, .16), transparent 70%),
    radial-gradient(circle at 12% 18%, rgba(255, 240, 244, .5) 0 .8px, transparent 1.3px) 0 0 / 250px 210px, radial-gradient(circle at 64% 44%, rgba(255, 214, 226, .4) 0 .7px, transparent 1.2px) 0 0 / 190px 230px,
    linear-gradient(180deg, #3b1230 0%, #2b0d25 40%, #210a1d 72%, #1c0a18 100%); }
html.shx-page-eros body { --shx-page-base: #1c0a18; }
.shx-eros .shx-glow { background: radial-gradient(40% 28% at 28% 4%, rgba(255, 160, 195, .1), transparent 70%), radial-gradient(30% 22% at 70% 0%, rgba(255, 200, 180, .08), transparent 70%); }
/* the petals: two viewport-sized layers that drift down and to the right by exactly one tile (240 x 360: seamless) */
.shx-eros .shx-fall { display: block; left: -240px; right: 0; top: -360px; bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='360' viewBox='0 0 240 360'%3E%3Cpath transform='translate(30 40) rotate(30) scale(0.9)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ff9fb8' opacity='0.9'/%3E%3Cpath transform='translate(30 40) rotate(30) scale(0.9)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(150 90) rotate(-50) scale(0.72)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffc4d3' opacity='0.85'/%3E%3Cpath transform='translate(150 90) rotate(-50) scale(0.72)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(96 180) rotate(75) scale(1)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f37a9a' opacity='0.8'/%3E%3Cpath transform='translate(96 180) rotate(75) scale(1)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(206 230) rotate(12) scale(0.66)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd8e2' opacity='0.9'/%3E%3Cpath transform='translate(206 230) rotate(12) scale(0.66)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(54 290) rotate(-20) scale(0.8)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f2b0a0' opacity='0.85'/%3E%3Cpath transform='translate(54 290) rotate(-20) scale(0.8)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(180 330) rotate(140) scale(0.58)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ff9fb8' opacity='0.7'/%3E%3Cpath transform='translate(180 330) rotate(140) scale(0.58)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(120 20) rotate(200) scale(0.5)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd8e2' opacity='0.7'/%3E%3Cpath transform='translate(120 20) rotate(200) scale(0.5)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='74' cy='120' r='1' fill='%23ffe0d4' opacity='.8'/%3E%3Ccircle cx='214' cy='160' r='.8' fill='%23ffe0d4' opacity='.7'/%3E%3Ccircle cx='20' cy='210' r='.9' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='160' cy='280' r='.8' fill='%23ffe0d4' opacity='.7'/%3E%3C/svg%3E") 0 0 / 240px 360px; animation: erosFall 38s linear infinite; }
.shx-eros .shx-fall.a { opacity: .5; }
.shx-eros .shx-fall.b { opacity: .32; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='360' viewBox='0 0 240 360'%3E%3Cpath transform='translate(60 70) rotate(20) scale(1.5)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffb0c4' opacity='0.75'/%3E%3Cpath transform='translate(60 70) rotate(20) scale(1.5)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(190 200) rotate(-60) scale(1.25)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f48aa6' opacity='0.7'/%3E%3Cpath transform='translate(190 200) rotate(-60) scale(1.25)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(100 310) rotate(110) scale(1.35)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f6bba9' opacity='0.7'/%3E%3Cpath transform='translate(100 310) rotate(110) scale(1.35)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") 60px 0 / 240px 360px; animation-duration: 24s; }
@keyframes erosFall { 0% { transform: translate3d(0, 0, 0); } 25% { transform: translate3d(76px, 90px, 0); } 50% { transform: translate3d(104px, 180px, 0); } 75% { transform: translate3d(180px, 270px, 0); } 100% { transform: translate3d(240px, 360px, 0); } }
/* Psyche's butterflies: the wings beat (scaleX from the body); in the sky three cross the page slowly */
.shx-bf { position: absolute; display: block; width: 30px; aspect-ratio: 40 / 32; pointer-events: none; }
.shx-bf svg { display: block; width: 100%; height: 100%; overflow: visible; }
.shx-bf .w1 { fill: #ffb3c8; } .shx-bf .w2 { fill: #ff8fb0; } .shx-bf .w3 { fill: #fff2f5; opacity: .85; }
.shx-bf .bd { stroke: #5a1c3a; stroke-width: 1.8; stroke-linecap: round; } .shx-bf .an { fill: none; stroke: #f4b39f; stroke-width: .9; stroke-linecap: round; }
.shx-bf .eb-wl, .shx-bf .eb-wr { transform-box: fill-box; animation: erosWing 1.5s ease-in-out infinite; }
.shx-bf .eb-wl { transform-origin: 100% 50%; } .shx-bf .eb-wr { transform-origin: 0% 50%; }
@keyframes erosWing { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(.32); } 60% { transform: scaleX(.4); } }
.shx-sky .shx-bf { top: 0; left: 0; opacity: .5; filter: drop-shadow(0 0 8px rgba(255, 150, 190, .35)); will-change: transform; animation: erosCross 96s linear infinite; }
.shx-sky .shx-bf.s1 { top: 24vh; width: 28px; animation-delay: -30s; transform: translate3d(30vw, 0, 0); }
.shx-sky .shx-bf.s2 { top: 60vh; width: 20px; opacity: .36; animation-duration: 124s; animation-delay: -84s; transform: translate3d(64vw, 0, 0); }
.shx-sky .shx-bf.s3 { top: 84vh; width: 24px; opacity: .42; animation-duration: 110s; animation-delay: -8s; transform: translate3d(12vw, 0, 0); }
.shx-sky .shx-bf.s2 .eb-wl, .shx-sky .shx-bf.s2 .eb-wr { animation-duration: 1.2s; }
.shx-sky .shx-bf.s3 .eb-wl, .shx-sky .shx-bf.s3 .eb-wr { animation-duration: 1.8s; }
@keyframes erosCross { 0% { transform: translate3d(-8vw, 0, 0) rotate(8deg); } 25% { transform: translate3d(22vw, -7vh, 0) rotate(-6deg); } 50% { transform: translate3d(50vw, 2vh, 0) rotate(10deg); }
  75% { transform: translate3d(78vw, -9vh, 0) rotate(-4deg); } 100% { transform: translate3d(108vw, -3vh, 0) rotate(6deg); } }

/* ---- the hero: moonlit wine-dark night, the rose garland on top, the pavilion, the lamp, the marble ledge ---- */
.shx-eros .shx-hero .evx-hd { padding-top: 72px; padding-bottom: 58px;
  background: radial-gradient(22% 44% at 91% 27%, rgba(255, 230, 238, .2), transparent 70%), radial-gradient(30% 56% at 80% 50%, rgba(255, 150, 190, .12), transparent 70%), radial-gradient(54% 80% at 4% 112%, rgba(255, 120, 160, .24), transparent 64%),
    radial-gradient(40% 60% at 96% 100%, rgba(255, 186, 120, .16), transparent 66%), linear-gradient(160deg, #5c2146 0%, #3e1434 52%, #250a21 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 214, .3), 0 18px 44px rgba(0, 0, 0, .42); }
.shx-eros .shx-hero .evx-hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='30' viewBox='0 0 240 30'%3E%3Cpath d='M0 18h240v12H0z' fill='%23f2d7dd'/%3E%3Cpath d='M0 18h240v1.6H0z' fill='%23fff5f7'/%3E%3Cpath d='M0 27h240v3H0z' fill='%23d9b0ba'/%3E%3Cpath d='M8 21c20 3 30-1 48 3s34-1 50 2M120 20c16 4 40 0 52 4s30 0 60 2' fill='none' stroke='%23c9929f' stroke-width='.7' opacity='.7'/%3E%3Cpath transform='translate(40 16.6) rotate(96) scale(0.9)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f27a9b' opacity='1'/%3E%3Cpath transform='translate(40 16.6) rotate(96) scale(0.9)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(52 17.4) rotate(70) scale(0.7)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffb0c4' opacity='1'/%3E%3Cpath transform='translate(52 17.4) rotate(70) scale(0.7)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(150 16.8) rotate(-84) scale(0.85)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ff9fb8' opacity='1'/%3E%3Cpath transform='translate(150 16.8) rotate(-84) scale(0.85)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(204 17.2) rotate(100) scale(0.7)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f2b0a0' opacity='1'/%3E%3Cpath transform='translate(204 17.2) rotate(100) scale(0.7)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 240px 30px repeat-x; opacity: .95; }
.shx-eros .shx-hero h2 { text-shadow: 0 0 34px rgba(255, 140, 185, .38); }
.shx-eros .shx-hero .evx-hd p { color: rgba(255, 236, 242, .84); }
.shx-eros .shx-hero .evx-kick { color: #ffe0e8; background: rgba(255, 170, 200, .14); box-shadow: inset 0 0 0 1px rgba(255, 190, 212, .42); }
.shx-eros .shx-hero .evx-kick .ico { color: var(--ev-accent-2); }
.shx-eros .shx-until { color: var(--ev-on-accent); background: var(--ev-pill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 2px 14px rgba(255, 150, 170, .28); }
.shx-eros .evx-ends { color: rgba(255, 232, 240, .84); background: rgba(30, 6, 26, .5); box-shadow: inset 0 0 0 1px rgba(255, 190, 212, .24); }
/* the petals of the head: one tiled layer falling by transform, only over the art (masked off the text) */
.shx-eros .shx-hero .evx-snow { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; opacity: .8; background: none; animation: none;
  -webkit-mask: linear-gradient(100deg, transparent 0 40%, rgba(0, 0, 0, .4) 56%, #000 74%); mask: linear-gradient(100deg, transparent 0 40%, rgba(0, 0, 0, .4) 56%, #000 74%); }
.shx-eros .shx-hero .evx-snow::before { content: ''; position: absolute; left: -240px; right: 0; top: -360px; bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='360' viewBox='0 0 240 360'%3E%3Cpath transform='translate(30 40) rotate(30) scale(0.9)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ff9fb8' opacity='0.9'/%3E%3Cpath transform='translate(30 40) rotate(30) scale(0.9)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(150 90) rotate(-50) scale(0.72)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffc4d3' opacity='0.85'/%3E%3Cpath transform='translate(150 90) rotate(-50) scale(0.72)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(96 180) rotate(75) scale(1)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f37a9a' opacity='0.8'/%3E%3Cpath transform='translate(96 180) rotate(75) scale(1)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(206 230) rotate(12) scale(0.66)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd8e2' opacity='0.9'/%3E%3Cpath transform='translate(206 230) rotate(12) scale(0.66)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(54 290) rotate(-20) scale(0.8)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23f2b0a0' opacity='0.85'/%3E%3Cpath transform='translate(54 290) rotate(-20) scale(0.8)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(180 330) rotate(140) scale(0.58)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ff9fb8' opacity='0.7'/%3E%3Cpath transform='translate(180 330) rotate(140) scale(0.58)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Cpath transform='translate(120 20) rotate(200) scale(0.5)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd8e2' opacity='0.7'/%3E%3Cpath transform='translate(120 20) rotate(200) scale(0.5)' d='M0 4.6C-2 2.4-2.4-1-1.4-3.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='74' cy='120' r='1' fill='%23ffe0d4' opacity='.8'/%3E%3Ccircle cx='214' cy='160' r='.8' fill='%23ffe0d4' opacity='.7'/%3E%3Ccircle cx='20' cy='210' r='.9' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='160' cy='280' r='.8' fill='%23ffe0d4' opacity='.7'/%3E%3C/svg%3E") 0 0 / 240px 360px; will-change: transform; animation: erosFall 30s linear infinite; }
/* the garland: rose-gold ribbon swags with sage leaves and blush beads, a cluster of roses where two swags meet, a heart in each */
.shx-roses { position: absolute; left: 0; right: 0; top: -4px; height: 70px; z-index: 2; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60' viewBox='0 0 200 60'%3E%3Cdefs%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe7dc'/%3E%3Cstop offset='.5' stop-color='%23f0ad97'/%3E%3Cstop offset='1' stop-color='%23b8706a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath transform='translate(11.7 12.1) rotate(-20.7) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(29.3 17.1) rotate(155.9) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(47 21) rotate(-27.5) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%238db592'/%3E%3Cpath transform='translate(64.7 23.8) rotate(149) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(82.3 25.4) rotate(-34.6) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(100 26) rotate(141.8) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%238db592'/%3E%3Cpath transform='translate(117.7 25.4) rotate(-41.8) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(135.3 23.8) rotate(134.6) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(153 21) rotate(-48.9) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%238db592'/%3E%3Cpath transform='translate(170.7 17.1) rotate(127.7) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(188.3 12.1) rotate(-55.7) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath d='M-6 6Q100 46 206 6' fill='none' stroke='%238e4a4c' stroke-width='8.5'/%3E%3Cpath d='M-6 6Q100 46 206 6' fill='none' stroke='%23e7a28e' stroke-width='5.6'/%3E%3Cpath d='M-6 4.4Q100 44.4 206 4.4' fill='none' stroke='%23ffe3d8' stroke-width='1.3' stroke-opacity='.9'/%3E%3Cpath d='M-6 12Q100 52 206 12' fill='none' stroke='%23ffd3df' stroke-width='2.4' stroke-dasharray='0 7.4' stroke-linecap='round'/%3E%3Cpath d='M100 26v8' stroke='%23e7a28e' stroke-width='1.3'/%3E%3Cpath d='M100 48c-1.2-1.6-6.6-4.6-6.6-8.2 0-2.4 2-3.8 3.8-3.6 1.4.1 2.4 1 2.8 2 .4-1 1.4-1.9 2.8-2 1.8-.2 3.8 1.2 3.8 3.6 0 3.6-5.4 6.6-6.6 8.2z' fill='url(%23h)' stroke='%239e5a54' stroke-width='.6'/%3E%3Cpath d='M96 38.6c.6-.8 1.6-1 2.4-.6' fill='none' stroke='%23fff' stroke-opacity='.8' stroke-width='.9' stroke-linecap='round'/%3E%3Cpath transform='translate(-14 12) rotate(160) scale(1.1)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(14 12) rotate(20) scale(1.1)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(186 12) rotate(160) scale(1.1)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(214 12) rotate(20) scale(1.1)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%236f9a76'/%3E%3Cpath transform='translate(-4 16) rotate(110) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%238db592'/%3E%3Cpath transform='translate(196 16) rotate(110) scale(0.9)' d='M0 0C3-3.4 8-3.4 11 0 8 3.4 3 3.4 0 0Z' fill='%238db592'/%3E%3Cg transform='translate(-11 8) scale(0.92)'%3E%3Ccircle r='7.4' fill='%23c93d68'/%3E%3Cpath d='M-7 1C-6-5 0-8 5-5.6 8-3.4 7.8 2 4 5.6-1 8.8-7 6-7 1Z' fill='%23e2557f'/%3E%3Cpath d='M-4.6 0C-4.4-3.4-1-5 2-3.6 4.2-2.4 4-.4 2.6 1.6.6 3.6-3.2 3.4-4.6 0Z' fill='%23f27a9b'/%3E%3Cpath d='M0-2.6c1.8 0 2.4 1.8 1 2.8-1.6 1-3.4-.4-2.6-2.2.8-1.6 3.6-1.8 4.6.2' fill='none' stroke='%239e2450' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M-5.6-2.6C-4.6-5.4-1.6-6.8 1.2-6.4' fill='none' stroke='%23ffd0dc' stroke-opacity='.7' stroke-width='1' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(189 8) scale(0.92)'%3E%3Ccircle r='7.4' fill='%23c93d68'/%3E%3Cpath d='M-7 1C-6-5 0-8 5-5.6 8-3.4 7.8 2 4 5.6-1 8.8-7 6-7 1Z' fill='%23e2557f'/%3E%3Cpath d='M-4.6 0C-4.4-3.4-1-5 2-3.6 4.2-2.4 4-.4 2.6 1.6.6 3.6-3.2 3.4-4.6 0Z' fill='%23f27a9b'/%3E%3Cpath d='M0-2.6c1.8 0 2.4 1.8 1 2.8-1.6 1-3.4-.4-2.6-2.2.8-1.6 3.6-1.8 4.6.2' fill='none' stroke='%239e2450' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M-5.6-2.6C-4.6-5.4-1.6-6.8 1.2-6.4' fill='none' stroke='%23ffd0dc' stroke-opacity='.7' stroke-width='1' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(11 10) scale(0.74)'%3E%3Ccircle r='7.4' fill='%23c93d68'/%3E%3Cpath d='M-7 1C-6-5 0-8 5-5.6 8-3.4 7.8 2 4 5.6-1 8.8-7 6-7 1Z' fill='%23e2557f'/%3E%3Cpath d='M-4.6 0C-4.4-3.4-1-5 2-3.6 4.2-2.4 4-.4 2.6 1.6.6 3.6-3.2 3.4-4.6 0Z' fill='%23f27a9b'/%3E%3Cpath d='M0-2.6c1.8 0 2.4 1.8 1 2.8-1.6 1-3.4-.4-2.6-2.2.8-1.6 3.6-1.8 4.6.2' fill='none' stroke='%239e2450' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M-5.6-2.6C-4.6-5.4-1.6-6.8 1.2-6.4' fill='none' stroke='%23ffd0dc' stroke-opacity='.7' stroke-width='1' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(211 10) scale(0.74)'%3E%3Ccircle r='7.4' fill='%23c93d68'/%3E%3Cpath d='M-7 1C-6-5 0-8 5-5.6 8-3.4 7.8 2 4 5.6-1 8.8-7 6-7 1Z' fill='%23e2557f'/%3E%3Cpath d='M-4.6 0C-4.4-3.4-1-5 2-3.6 4.2-2.4 4-.4 2.6 1.6.6 3.6-3.2 3.4-4.6 0Z' fill='%23f27a9b'/%3E%3Cpath d='M0-2.6c1.8 0 2.4 1.8 1 2.8-1.6 1-3.4-.4-2.6-2.2.8-1.6 3.6-1.8 4.6.2' fill='none' stroke='%239e2450' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M-5.6-2.6C-4.6-5.4-1.6-6.8 1.2-6.4' fill='none' stroke='%23ffd0dc' stroke-opacity='.7' stroke-width='1' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(0 4) scale(1.2)'%3E%3Ccircle r='7.4' fill='%23c93d68'/%3E%3Cpath d='M-7 1C-6-5 0-8 5-5.6 8-3.4 7.8 2 4 5.6-1 8.8-7 6-7 1Z' fill='%23e2557f'/%3E%3Cpath d='M-4.6 0C-4.4-3.4-1-5 2-3.6 4.2-2.4 4-.4 2.6 1.6.6 3.6-3.2 3.4-4.6 0Z' fill='%23f27a9b'/%3E%3Cpath d='M0-2.6c1.8 0 2.4 1.8 1 2.8-1.6 1-3.4-.4-2.6-2.2.8-1.6 3.6-1.8 4.6.2' fill='none' stroke='%239e2450' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M-5.6-2.6C-4.6-5.4-1.6-6.8 1.2-6.4' fill='none' stroke='%23ffd0dc' stroke-opacity='.7' stroke-width='1' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(200 4) scale(1.2)'%3E%3Ccircle r='7.4' fill='%23c93d68'/%3E%3Cpath d='M-7 1C-6-5 0-8 5-5.6 8-3.4 7.8 2 4 5.6-1 8.8-7 6-7 1Z' fill='%23e2557f'/%3E%3Cpath d='M-4.6 0C-4.4-3.4-1-5 2-3.6 4.2-2.4 4-.4 2.6 1.6.6 3.6-3.2 3.4-4.6 0Z' fill='%23f27a9b'/%3E%3Cpath d='M0-2.6c1.8 0 2.4 1.8 1 2.8-1.6 1-3.4-.4-2.6-2.2.8-1.6 3.6-1.8 4.6.2' fill='none' stroke='%239e2450' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M-5.6-2.6C-4.6-5.4-1.6-6.8 1.2-6.4' fill='none' stroke='%23ffd0dc' stroke-opacity='.7' stroke-width='1' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 234px 70px repeat-x; filter: drop-shadow(0 4px 6px rgba(30, 0, 20, .45)); }
/* the crescent moon over the pavilion */
.shx-moon { position: absolute; right: 64px; top: 84px; width: 40px; height: 40px; border-radius: 50%; pointer-events: none; transform: rotate(-24deg);
  box-shadow: inset 10px -3px 0 0 #fff0ec; filter: drop-shadow(0 0 12px rgba(255, 220, 232, .7)); }
.shx-moon::after { content: ''; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 220, 232, .16), transparent); }
/* the round pavilion of pink marble far back on the ledge, small under the emblem's wreath (it overlaps the wreath by
   20px at most) and clear of the lamp's step */
.shx-tholos { position: absolute; right: 152px; bottom: 18px; width: 126px; height: 78px; opacity: .24; pointer-events: none; }
.shx-tholos .tp, .shx-tholos .tc { fill: #ffd9e3; }
.shx-tholos .ts { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .7; }
/* Psyche's oil lamp on a marble step, its flame breathing and its warm light on the night */
.shx-lamp { position: absolute; right: 30px; bottom: 22px; width: 120px; height: 70px; pointer-events: none; }
.shx-lamp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.shx-lamp .pl { fill: #f6dfe4; } .shx-lamp .pl2 { fill: #e7c2cb; }
.shx-lamp .hd { fill: none; stroke: #e9a690; stroke-width: 3.4; stroke-linecap: round; }
.shx-lamp .ho { fill: #5a2434; } .shx-lamp .rim { fill: none; stroke: #ffe3d6; stroke-width: 1.2; stroke-linecap: round; opacity: .7; }
.shx-lamp b { position: absolute; left: 92px; bottom: 37px; width: 11px; height: 19px; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; transform-origin: 50% 90%;
  background: radial-gradient(circle at 50% 72%, #fffbe6 0 22%, #ffd36a 48%, #ff9a50 70%, rgba(255, 120, 60, 0) 76%); animation: shxFlick 2.8s ease-in-out infinite; }
.shx-lamp b::after { content: ''; position: absolute; left: 50%; top: 40%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 140, .36), rgba(255, 150, 160, .1) 60%, transparent); }
/* two butterflies in the head, resting in the air near the emblem and over the lamp */
.shx-hero .shx-bf { z-index: 1; filter: drop-shadow(0 0 10px rgba(255, 150, 190, .45)); animation: erosHover 7s ease-in-out infinite; }
.shx-hero .shx-bf.h1 { right: 306px; top: 118px; width: 34px; --r: -14deg; transform: rotate(var(--r)); }
.shx-hero .shx-bf.h2 { right: 54px; bottom: 124px; width: 24px; --r: 16deg; transform: rotate(var(--r)); animation-delay: -3s; }
.shx-hero .shx-bf.h2 .eb-wl, .shx-hero .shx-bf.h2 .eb-wr { animation-duration: 1.9s; animation-delay: -.6s; }
@keyframes erosHover { 0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r)); } 50% { transform: translate3d(4px, -8px, 0) rotate(calc(var(--r) + 6deg)); } }
/* the emblem: rose-gold leaves around Eros' bow and his heart-tipped arrow */
.shx-eros .evx-em { color: #ffc2d3; filter: drop-shadow(0 0 22px rgba(255, 140, 185, .5)); }
.shx-eros .evx-em .evx-lf, .shx-eros .shx-done .evx-lf { fill: #eaa894; opacity: .9; }
.eb-str { stroke: #ffe9e2; stroke-width: 1.1; opacity: .85; }
.eb-bow { stroke: #f6b8a2; stroke-width: 4.4; }
.eb-sh { stroke: #fff0ea; stroke-width: 2.6; }
.eb-fl { fill: #ffc2d3; }
.eb-hd { fill: #ff7ea3; }

/* ---- the page: notes, panels with a rose-gold line and a small heart on top, the Drachma counter as gifts ---- */
.shx-eros .shx-note { background: rgba(48, 12, 40, .72); }
.shx-eros .ed-sec::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 200, 186, .6) 30%, rgba(255, 200, 186, .6) 70%, transparent); }
.shx-eros .ed-sec::after { content: ''; position: absolute; left: 50%; top: -5px; width: 12px; height: 11px; margin-left: -6px; background: var(--ev-accent-2); filter: drop-shadow(0 0 6px rgba(255, 170, 150, .6));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11'%3E%3Cpath d='M6 10.4C4.6 9 .4 6.6.4 3.4.4 1.6 1.8.4 3.4.4 4.6.4 5.6 1.2 6 2.2 6.4 1.2 7.4.4 8.6.4c1.6 0 3 1.2 3 3 0 3.2-4.2 5.6-5.6 7z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11'%3E%3Cpath d='M6 10.4C4.6 9 .4 6.6.4 3.4.4 1.6 1.8.4 3.4.4 4.6.4 5.6 1.2 6 2.2 6.4 1.2 7.4.4 8.6.4c1.6 0 3 1.2 3 3 0 3.2-4.2 5.6-5.6 7z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.shx-eros .ed-hd h2::before { background: linear-gradient(135deg, #ffd0dc, var(--ev-accent) 55%, var(--ev-accent-2)); }
.shx-eros .shx-sub { color: #f1cbd6; }
.shx-eros .dr-pack { background: linear-gradient(180deg, rgba(98, 32, 74, .8), rgba(46, 13, 40, .88)); }
.shx-eros .dr-pack:hover { border-color: rgba(255, 190, 170, .55); }
.shx-eros .dr-pack.best { border-color: rgba(247, 188, 168, .7); box-shadow: 0 0 0 1px rgba(247, 188, 168, .32), 0 10px 30px rgba(255, 140, 170, .14); }
.shx-eros .dr-pack.best .dr-pack-tag { color: var(--ev-on-accent); background: var(--ev-pill); }
/* "Most popular": rose instead of the app's violet */
.shx-eros .dr-pack.pop { border-color: rgba(255, 169, 194, .45); }
.shx-eros .dr-pack.pop .dr-pack-tag { color: #fff1f4; background: linear-gradient(180deg, #e0628f, #b83a6c); }
.shx-eros .dr-pack-price { background: rgba(24, 4, 20, .5); box-shadow: inset 0 0 0 1px rgba(255, 190, 210, .2), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.shx-eros .dr-pack:hover .dr-pack-price, .shx-eros .dr-pack.best .dr-pack-price { color: var(--ev-on-accent); background: var(--ev-pill); box-shadow: inset 0 -4px 0 #b86e64; }
.shx-eros .dr-pack-bonus { color: #ffc2d3; }
.shx-eros .shx-done { background: linear-gradient(180deg, rgba(86, 26, 66, .85), rgba(44, 12, 38, .88)); box-shadow: inset 0 0 0 1px rgba(247, 188, 168, .5), 0 0 28px rgba(255, 150, 180, .1); }
.shx-eros .shx-done svg { color: #ffc2d3; }

@media (max-width: 760px) {
  .shx-eros .shx-hero .evx-hd { padding-top: 54px; padding-bottom: 84px; }
  .shx-roses { height: 54px; background-size: 180px 54px; }
  .shx-eros .shx-hero .evx-em { top: 30px; }
  .shx-moon, .shx-tholos, .shx-hero .shx-bf.h1 { display: none; }
  .shx-lamp { right: 10px; bottom: 16px; transform: scale(.72); transform-origin: 100% 100%; }
  .shx-hero .shx-bf.h2 { right: auto; left: 22px; bottom: 30px; width: 22px; }
  .shx-eros .shx-hero .evx-snow { -webkit-mask: linear-gradient(180deg, #000, rgba(0, 0, 0, .3) 60%, transparent); mask: linear-gradient(180deg, #000, rgba(0, 0, 0, .3) 60%, transparent); opacity: .55; }
  .shx-sky .shx-bf.s2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shx-eros .shx-fall, .shx-eros .shx-hero .evx-snow::before, .shx-sky .shx-bf, .shx-hero .shx-bf, .shx-bf .eb-wl, .shx-bf .eb-wr, .shx-lamp b { animation: none; }
}
/* ==== end Eros shop theme ==== */
/* ==== Admin ▸ Payments: Stripe product pictures (admin-business.js productsCell) ==== */
.adm-spts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-spt { display: block; width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.adm-spt img { display: block; width: 100%; height: 100%; }
.adm-spt:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--muted); }
.adm-spt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-spt.bad { box-shadow: 0 0 0 2px var(--danger); }
@media (prefers-reduced-motion: reduce) { .adm-spt, .adm-spt:hover { transition: none; transform: none; } }
/* ==== end Stripe product pictures ==== */

/* ==== Site event layer (public/js/event-site.js: while a shop event runs every page shows it, softly; prefix evs-) ==== */
/* <html data-event-theme="<theme>"> carries the event tokens (--ev-*: winter and eros in the block "Eros shop theme", the
   other themes below, from the colours of their shop presets). The frame: a thin line in the theme's colours along the
   top of the window, a glow and two slow layers of flakes / petals / sparks at the top of the sidebar (phones: the top
   bar), the theme's sign after "Shop" in the menu. The home page: the banner (.evs-banner) or, folded, its chip
   (.evs-chip); the dashboard's Shop tile: the event's name (.dc-evtag). Calm pages (duels, Debate TV, training, lessons:
   html[data-evs-calm]) keep only the still accents. Motion: transform / opacity only; prefers-reduced-motion stops it.
   The app is dark-only (no light colour scheme): one set of colours serves both prefers-color-scheme values. */
:is(.shx-newyear, html.shx-page-newyear, [data-event-theme="newyear"]) {
  /* midnight violet, champagne and rose (Saturnalia, the day before, is navy, ice and gold) */
  --ev-accent: #ffdca8; --ev-accent-2: #ff9cc0; --ev-glow: rgba(255, 130, 190, .38); --ev-ink: #fff6ee; --ev-soft: #d9c6de; --ev-deep: #0d0818;
  --ev-surface: rgba(92, 40, 118, .32); --ev-line: rgba(255, 190, 220, .22); --ev-on-accent: #3a1430;
  --ev-pill: linear-gradient(180deg, #fff3e2, #ffd2a4 48%, #f3a0bd); --ev-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12.0 7.7L12.0 4.0M15.0 9.0L16.9 7.1M16.3 12.0L20.0 12.0M15.0 15.0L16.9 16.9M12.0 16.3L12.0 20.0M9.0 15.0L7.1 16.9M7.7 12.0L4.0 12.0M9.0 9.0L7.1 7.1' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12.0' cy='1.7' r='1.4' fill='%23000'/%3E%3Ccircle cx='18.4' cy='5.6' r='1.15' fill='%23000'/%3E%3Ccircle cx='22.3' cy='12.0' r='1.4' fill='%23000'/%3E%3Ccircle cx='18.4' cy='18.4' r='1.15' fill='%23000'/%3E%3Ccircle cx='12.0' cy='22.3' r='1.4' fill='%23000'/%3E%3Ccircle cx='5.6' cy='18.4' r='1.15' fill='%23000'/%3E%3Ccircle cx='1.7' cy='12.0' r='1.4' fill='%23000'/%3E%3Ccircle cx='5.6' cy='5.6' r='1.15' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23000'/%3E%3C/svg%3E"); }
:is(.shx-olympia, html.shx-page-olympia, [data-event-theme="olympia"]) {
  --ev-accent: #ffd27a; --ev-accent-2: #bcd58e; --ev-glow: rgba(255, 214, 120, .38); --ev-ink: #fff8ea; --ev-soft: #d8d0b8; --ev-deep: #18202a;
  --ev-surface: rgba(36, 84, 126, .3); --ev-line: rgba(255, 220, 160, .22); --ev-on-accent: #3a2400;
  --ev-pill: linear-gradient(180deg, #fff1c8, #f4c860 60%, #d39a2a); --ev-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.2c1.9 2.5 3.8 4.3 3.8 6.6a3.8 3.8 0 0 1-7.6 0c0-1.5.8-2.6 1.7-3.4.1 1.1.6 1.7 1.3 1.9-.4-1.9 0-3.5.8-5.1z' fill='%23000'/%3E%3Cpath d='M6.8 11.6h10.4l-1.9 3.2H8.7z' fill='%23000'/%3E%3Cpath d='M10.1 15.6h3.8l-1.1 7.2h-1.6z' fill='%23000'/%3E%3C/svg%3E"); }
:is(.shx-hades, html.shx-page-hades, [data-event-theme="hades"]) {
  --ev-accent: #ffb46a; --ev-accent-2: #c3a0ff; --ev-glow: rgba(160, 100, 240, .42); --ev-ink: #f6efff; --ev-soft: #cbb9e8; --ev-deep: #0c0716;
  --ev-surface: rgba(70, 36, 120, .3); --ev-line: rgba(190, 150, 255, .22); --ev-on-accent: #2e1000;
  --ev-pill: linear-gradient(180deg, #ffe2bd, #ffaa5c 58%, #e0702e); --ev-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 3.6 3.4 5.4 4.9 8.2 1.6 2.9 1.4 6.4-.6 8.8A6.6 6.6 0 0 1 5.4 15c0-2.8 1.4-4.6 2.8-6 .1 1.8.9 3 2.1 3.4-.6-3.6.2-7.4 1.7-10.9z' fill='%23000'/%3E%3Cpath d='M12.2 13.2c1.6 1.6 2.4 3 2.1 4.6a2.4 2.4 0 0 1-4.7-.2c-.1-1.3.6-2.3 1.4-3 .2.7.6 1 1.1 1.1-.2-.9-.1-1.6.1-2.5z' fill='%23fff'/%3E%3C/svg%3E"); }
:is(.shx-philosophy, html.shx-page-philosophy, [data-event-theme="philosophy"]) {
  --ev-accent: #f1e4c2; --ev-accent-2: #ffbe72; --ev-glow: rgba(255, 186, 100, .32); --ev-ink: #fbf6ea; --ev-soft: #d3cab4; --ev-deep: #0b111b;
  --ev-surface: rgba(40, 60, 90, .32); --ev-line: rgba(233, 220, 192, .2); --ev-on-accent: #2e2410;
  --ev-pill: linear-gradient(180deg, #fff8e6, #ecdcb4 58%, #c9ad74); --ev-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4.6 3.2l3.6 2.6c1.2-.5 2.5-.8 3.8-.8s2.6.3 3.8.8l3.6-2.6v8.6c0 2.2-.6 4.4-1.8 6.1C16.2 20.3 14.2 22 12 22s-4.2-1.7-5.6-4.1C5.2 16.2 4.6 14 4.6 11.8zM9 13.4a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm6 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zM12 13.6l-1.2 1.8h2.4z' fill='%23000'/%3E%3C/svg%3E"); }
:is(.shx-neutral, html.shx-page-neutral, [data-event-theme="neutral"]) {
  --ev-accent: #ffd27a; --ev-accent-2: #b4a4ff; --ev-glow: rgba(123, 92, 255, .4); --ev-ink: #ffffff; --ev-soft: #b6b2d0; --ev-deep: #15131f;
  --ev-surface: rgba(64, 48, 140, .3); --ev-line: rgba(170, 150, 255, .22); --ev-on-accent: #3a2400;
  --ev-pill: linear-gradient(180deg, #fff0c4, #f2c45a 60%, #d99e2c); --ev-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.3 7.6 7.7.2-6.3 4.6 2.4 7.6L12 16.9l-6.1 4.6 2.4-7.6L2 9.3l7.7-.2z' fill='%23000'/%3E%3C/svg%3E"); }
/* the two ambient layers of each theme (a: fine, 160 x 200; b: fewer and larger, 220 x 280); --evs-dir 1 falls, -1 rises */
[data-event-theme="winter"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Ccircle cx='6' cy='80.2' r='1.04' fill='%23cfe2ff' opacity='0.67'/%3E%3Ccircle cx='61.6' cy='118.5' r='1.39' fill='%23cfe2ff' opacity='0.85'/%3E%3Ccircle cx='26.9' cy='12.9' r='0.83' fill='%23ffffff' opacity='0.57'/%3E%3Ccircle cx='125' cy='34.3' r='1.30' fill='%23ffffff' opacity='0.80'/%3E%3Ccircle cx='78.9' cy='25.5' r='0.94' fill='%23ffffff' opacity='0.62'/%3E%3Ccircle cx='93.2' cy='8.5' r='0.82' fill='%23ffffff' opacity='0.56'/%3E%3Ccircle cx='28.2' cy='43.7' r='1.03' fill='%23cfe2ff' opacity='0.66'/%3E%3Ccircle cx='14.9' cy='150.2' r='1.51' fill='%23cfe2ff' opacity='0.91'/%3E%3Ccircle cx='85.7' cy='115.2' r='1.05' fill='%23ffffff' opacity='0.67'/%3E%3Ccircle cx='148.3' cy='52.6' r='0.89' fill='%23cfe2ff' opacity='0.60'/%3E%3Ccircle cx='114.2' cy='59.9' r='1.51' fill='%23cfe2ff' opacity='0.90'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Ccircle cx='6' cy='125.8' r='1.91' fill='%23ffffff' opacity='0.69'/%3E%3Ccircle cx='15.4' cy='236.6' r='2.01' fill='%23e1edff' opacity='0.73'/%3E%3Ccircle cx='113.6' cy='131.3' r='2.07' fill='%23ffffff' opacity='0.76'/%3E%3Ccircle cx='64.6' cy='64.6' r='2.31' fill='%23ffffff' opacity='0.87'/%3E%3Ccircle cx='35.2' cy='107.9' r='2.19' fill='%23ffffff' opacity='0.81'/%3E%3C/svg%3E"); }
[data-event-theme="newyear"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Ccircle cx='6' cy='129.6' r='1.24' fill='%23ff9cc0' opacity='0.90'/%3E%3Ccircle cx='49.4' cy='130.8' r='0.77' fill='%23ff9cc0' opacity='0.59'/%3E%3Ccircle cx='40.8' cy='80.1' r='0.98' fill='%23ff9cc0' opacity='0.73'/%3E%3Ccircle cx='105.7' cy='178.5' r='1.12' fill='%23fff4c8' opacity='0.82'/%3E%3Ccircle cx='28.9' cy='38.5' r='0.89' fill='%23ff9cc0' opacity='0.67'/%3E%3Ccircle cx='102' cy='72.9' r='0.73' fill='%23ffd36a' opacity='0.57'/%3E%3Ccircle cx='141.7' cy='68.8' r='0.76' fill='%23fff4c8' opacity='0.59'/%3E%3Ccircle cx='70.2' cy='183.6' r='1.16' fill='%23ff9cc0' opacity='0.84'/%3E%3Cpath transform='translate(6 79.9) rotate(353) scale(0.79)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23fff4c8' opacity='0.99'/%3E%3Cpath transform='translate(125.1 164.6) rotate(352) scale(0.79)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23fff4c8' opacity='0.99'/%3E%3Cpath transform='translate(143.5 162.7) rotate(306) scale(0.76)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23fff4c8' opacity='0.94'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Cpath transform='translate(6 69.3) rotate(304) scale(1.04)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffc2d8' opacity='0.94'/%3E%3Cpath transform='translate(171.8 21.3) rotate(260) scale(0.99)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffd36a' opacity='0.89'/%3E%3Cpath transform='translate(172.3 150.9) rotate(197) scale(0.92)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffd36a' opacity='0.82'/%3E%3Cpath transform='translate(191.1 145.2) rotate(299) scale(1.03)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffc2d8' opacity='0.93'/%3E%3C/svg%3E"); }
[data-event-theme="eros"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Cpath transform='translate(6 40.6) rotate(288) scale(0.40)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffe2e9' opacity='0.92'/%3E%3Cpath transform='translate(24.9 155.4) rotate(349) scale(0.42)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffe2e9' opacity='0.99'/%3E%3Cpath transform='translate(68.7 26.6) rotate(41) scale(0.31)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffe2e9' opacity='0.65'/%3E%3Cpath transform='translate(67 90.9) rotate(243) scale(0.38)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd6cb' opacity='0.87'/%3E%3Cpath transform='translate(76.8 64.5) rotate(173) scale(0.36)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffe2e9' opacity='0.79'/%3E%3Cpath transform='translate(119.6 13.6) rotate(25) scale(0.31)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffc2d3' opacity='0.63'/%3E%3Ccircle cx='6' cy='159.1' r='0.87' fill='%23fff0ea' opacity='0.96'/%3E%3Ccircle cx='50.5' cy='90.6' r='0.70' fill='%23fff0ea' opacity='0.71'/%3E%3Ccircle cx='59.9' cy='135.2' r='0.81' fill='%23fff0ea' opacity='0.86'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Cpath transform='translate(6 12.8) rotate(136) scale(0.47)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd3de' opacity='0.75'/%3E%3Cpath transform='translate(120.2 74) rotate(13) scale(0.42)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffd3de' opacity='0.61'/%3E%3Cpath transform='translate(23.1 170.5) rotate(225) scale(0.50)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffc2d3' opacity='0.85'/%3E%3Cpath transform='translate(109.6 225.9) rotate(341) scale(0.54)' d='M0 7C-6 4-7-3-3-6C-1.6-7 0-5.6 0-5.6S1.6-7 3-6C7-3 6 4 0 7Z' fill='%23ffc2d3' opacity='0.98'/%3E%3C/svg%3E"); }
[data-event-theme="olympia"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Ccircle cx='6' cy='139.5' r='1.18' fill='%23ffe6a0' opacity='0.92'/%3E%3Ccircle cx='148.4' cy='180.1' r='1.19' fill='%23ffe6a0' opacity='0.93'/%3E%3Ccircle cx='96.5' cy='161.1' r='1.18' fill='%23ffe6a0' opacity='0.92'/%3E%3Ccircle cx='28.3' cy='191.3' r='1.13' fill='%23fff3cf' opacity='0.89'/%3E%3Ccircle cx='124.8' cy='90.5' r='1.09' fill='%23ffe6a0' opacity='0.86'/%3E%3Ccircle cx='137.1' cy='142.3' r='0.67' fill='%23ffd27a' opacity='0.60'/%3E%3Ccircle cx='151.7' cy='169.4' r='0.90' fill='%23ffe6a0' opacity='0.74'/%3E%3Ccircle cx='143.4' cy='129.5' r='0.67' fill='%23ffd27a' opacity='0.59'/%3E%3Ccircle cx='6' cy='165.8' r='0.74' fill='%23fff3cf' opacity='0.64'/%3E%3Ccircle cx='80.1' cy='82.7' r='0.68' fill='%23ffd27a' opacity='0.60'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Cpath transform='translate(6.1 26.8) rotate(153) scale(0.63)' d='M0-6C3-3 3 3 0 6-3 3-3-3 0-6Z' fill='%23a3c070' opacity='0.77'/%3E%3Cpath transform='translate(51.4 144.2) rotate(284) scale(0.71)' d='M0-6C3-3 3 3 0 6-3 3-3-3 0-6Z' fill='%23a3c070' opacity='0.92'/%3E%3Cpath transform='translate(101.3 18) rotate(21) scale(0.56)' d='M0-6C3-3 3 3 0 6-3 3-3-3 0-6Z' fill='%23b9d48a' opacity='0.62'/%3E%3Ccircle cx='6.1' cy='238.3' r='1.57' fill='%23ffe6a0' opacity='0.98'/%3E%3Ccircle cx='207.8' cy='196.9' r='1.06' fill='%23ffe6a0' opacity='0.60'/%3E%3Ccircle cx='160.1' cy='37.6' r='1.08' fill='%23ffe6a0' opacity='0.61'/%3E%3C/svg%3E"); }
[data-event-theme="hades"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Ccircle cx='6' cy='99.9' r='3.1' fill='%23ffb46a' opacity='.18'/%3E%3Ccircle cx='6' cy='99.9' r='1.2' fill='%23ffb46a'/%3E%3Ccircle cx='111.7' cy='29' r='2.7' fill='%23ffb46a' opacity='.18'/%3E%3Ccircle cx='111.7' cy='29' r='1.0' fill='%23ffb46a'/%3E%3Ccircle cx='138.3' cy='174.9' r='4.2' fill='%23ffb46a' opacity='.18'/%3E%3Ccircle cx='138.3' cy='174.9' r='1.6' fill='%23ffb46a'/%3E%3Ccircle cx='118.4' cy='59.9' r='4.1' fill='%23ffb46a' opacity='.18'/%3E%3Ccircle cx='118.4' cy='59.9' r='1.6' fill='%23ffb46a'/%3E%3Ccircle cx='122.7' cy='129.5' r='2.4' fill='%23ffb46a' opacity='.18'/%3E%3Ccircle cx='122.7' cy='129.5' r='0.9' fill='%23ffb46a'/%3E%3Ccircle cx='15.5' cy='147.3' r='2.7' fill='%23ffb46a' opacity='.18'/%3E%3Ccircle cx='15.5' cy='147.3' r='1.0' fill='%23ffb46a'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Ccircle cx='6.1' cy='181.8' r='3.4' fill='%23ff8a3a' opacity='.18'/%3E%3Ccircle cx='6.1' cy='181.8' r='1.3' fill='%23ff8a3a'/%3E%3Ccircle cx='156.2' cy='249.6' r='3.2' fill='%23ff8a3a' opacity='.18'/%3E%3Ccircle cx='156.2' cy='249.6' r='1.2' fill='%23ff8a3a'/%3E%3Ccircle cx='10.8' cy='57.2' r='2.8' fill='%23ff8a3a' opacity='.18'/%3E%3Ccircle cx='10.8' cy='57.2' r='1.1' fill='%23ff8a3a'/%3E%3Ccircle cx='45.9' cy='137.5' r='3.1' fill='%23ff8a3a' opacity='.18'/%3E%3Ccircle cx='45.9' cy='137.5' r='1.2' fill='%23ff8a3a'/%3E%3Ccircle cx='6.1' cy='54.8' r='1.01' fill='%23c9a2ff' opacity='0.78'/%3E%3Ccircle cx='121.8' cy='16.7' r='0.92' fill='%23c9a2ff' opacity='0.68'/%3E%3Ccircle cx='49.9' cy='249' r='1.17' fill='%23c9a2ff' opacity='0.97'/%3E%3C/svg%3E"); }
[data-event-theme="philosophy"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Ccircle cx='6.1' cy='188.6' r='0.53' fill='%23fff6df' opacity='0.57'/%3E%3Ccircle cx='51.7' cy='50.5' r='0.86' fill='%23fff6df' opacity='0.82'/%3E%3Ccircle cx='79' cy='190.2' r='0.50' fill='%23f1e4c2' opacity='0.55'/%3E%3Ccircle cx='85.7' cy='67.2' r='0.82' fill='%23ffcf8a' opacity='0.79'/%3E%3Ccircle cx='12.1' cy='162.5' r='1.00' fill='%23f1e4c2' opacity='0.93'/%3E%3Ccircle cx='17' cy='113.3' r='0.74' fill='%23ffcf8a' opacity='0.73'/%3E%3Ccircle cx='53.5' cy='108' r='0.58' fill='%23ffcf8a' opacity='0.61'/%3E%3Ccircle cx='65' cy='46.6' r='0.69' fill='%23f1e4c2' opacity='0.69'/%3E%3Ccircle cx='131.3' cy='180.3' r='1.02' fill='%23fff6df' opacity='0.94'/%3E%3Ccircle cx='103.3' cy='15' r='0.60' fill='%23f1e4c2' opacity='0.62'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Ccircle cx='6.1' cy='209.9' r='1.41' fill='%23ffd9a0' opacity='0.81'/%3E%3Ccircle cx='18.6' cy='122.1' r='1.64' fill='%23f1e4c2' opacity='0.96'/%3E%3Ccircle cx='167.3' cy='20.2' r='1.05' fill='%23f1e4c2' opacity='0.59'/%3E%3Ccircle cx='36.6' cy='173.9' r='1.45' fill='%23f1e4c2' opacity='0.84'/%3E%3Ccircle cx='11.6' cy='16.7' r='1.11' fill='%23ffd9a0' opacity='0.62'/%3E%3C/svg%3E"); }
[data-event-theme="neutral"] { --evs-amb-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Ccircle cx='6.1' cy='10.5' r='0.66' fill='%23ffffff' opacity='0.59'/%3E%3Ccircle cx='150.7' cy='99.8' r='0.81' fill='%23c8baff' opacity='0.71'/%3E%3Ccircle cx='134.7' cy='83.2' r='0.86' fill='%23ffd27a' opacity='0.75'/%3E%3Ccircle cx='8.4' cy='80' r='1.01' fill='%23ffffff' opacity='0.86'/%3E%3Ccircle cx='108' cy='26.5' r='0.76' fill='%23ffffff' opacity='0.67'/%3E%3Ccircle cx='52.1' cy='182.7' r='0.88' fill='%23c8baff' opacity='0.76'/%3E%3Ccircle cx='63.5' cy='20.5' r='0.88' fill='%23c8baff' opacity='0.76'/%3E%3Ccircle cx='138.2' cy='180.4' r='1.05' fill='%23c8baff' opacity='0.89'/%3E%3Cpath transform='translate(6.1 158.8) rotate(225) scale(0.63)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffe39a' opacity='0.85'/%3E%3Cpath transform='translate(114 136.7) rotate(241) scale(0.63)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffe39a' opacity='0.87'/%3E%3C/svg%3E"); --evs-amb-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='280' viewBox='0 0 220 280'%3E%3Cpath transform='translate(6.1 96.9) rotate(233) scale(0.89)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23b8a8ff' opacity='0.86'/%3E%3Cpath transform='translate(123.3 227.5) rotate(197) scale(0.86)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffd27a' opacity='0.82'/%3E%3Cpath transform='translate(76.8 59.4) rotate(83) scale(0.77)' d='M0-5L1.1-1.1 5 0 1.1 1.1 0 5-1.1 1.1-5 0-1.1-1.1Z' fill='%23ffd27a' opacity='0.69'/%3E%3C/svg%3E"); }
[data-event-theme] { --evs-dir: 1; }
[data-event-theme="olympia"], [data-event-theme="hades"], [data-event-theme="philosophy"] { --evs-dir: -1; }

/* ---- the frame ---- */
/* a thin line along the top of the window */
html[data-event-theme] body::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 45; pointer-events: none; opacity: .8;
  background: linear-gradient(90deg, transparent, var(--ev-accent) 16%, var(--ev-accent-2) 50%, var(--ev-accent) 84%, transparent); box-shadow: 0 0 12px var(--ev-glow); }
/* the glow and the drifting layers behind the top of the sidebar / the top bar (z-index -1: above the bar's own
   background, below everything in it) */
.evs-amb { position: absolute; inset: 0 0 auto 0; height: 250px; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(90% 70% at 22% 0%, color-mix(in srgb, var(--ev-glow) 55%, transparent), transparent 72%);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent); mask: linear-gradient(180deg, #000 30%, transparent); }
.evs-amb > i, .evs-bfx > i { position: absolute; inset-inline: 0; top: calc(-1 * var(--evs-h)); bottom: calc(-1 * var(--evs-h)); will-change: transform;
  animation: evsDrift var(--evs-t) linear infinite; }
.evs-amb > .a, .evs-bfx > .a { --evs-h: 200px; --evs-t: 30s; background: var(--evs-amb-a) 0 0 / 160px 200px; opacity: .5; }
.evs-amb > .b, .evs-bfx > .b { --evs-h: 280px; --evs-t: 46s; background: var(--evs-amb-b) 40px 0 / 220px 280px; opacity: .34; }
@keyframes evsDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(var(--evs-dir) * var(--evs-h)), 0); } }
/* the petals of Eros: small and light, a bit stronger than the other themes' fine dots so they read as blush, not grey */
[data-event-theme="eros"] .evs-amb > .a { opacity: .95; }
[data-event-theme="eros"] .evs-amb > .b { opacity: .72; }
/* the Shop entry wears the theme's sign (its tooltip: "Now on: Saturnalia") */
.nav-link.nav-ev .evs-navmk { flex: none; width: 14px; height: 14px; margin-inline-start: auto; background: var(--ev-accent);
  -webkit-mask: var(--ev-mark) center / contain no-repeat; mask: var(--ev-mark) center / contain no-repeat; filter: drop-shadow(0 0 5px var(--ev-glow));
  animation: evsBreathe 4.8s ease-in-out infinite; }
@keyframes evsBreathe { 0%, 100% { opacity: .7; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
/* calm pages: the still accents only */
html[data-evs-calm] .evs-amb > i { display: none; }
html[data-evs-calm] .nav-link.nav-ev .evs-navmk { animation: none; opacity: .85; }

/* ---- the home page: the banner ---- */
.evs-home-land { margin-bottom: 26px; }
:where(.dash-a-ev) { grid-area: ev; } /* phones: .dash > * { grid-area: auto } wins */
.evs-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 20px 58px 20px 22px; border-radius: 18px; color: var(--ev-ink);
  background: radial-gradient(55% 140% at 100% 0%, color-mix(in srgb, var(--ev-glow) 60%, transparent), transparent 70%),
    radial-gradient(45% 120% at 0% 100%, var(--ev-surface), transparent 72%), linear-gradient(120deg, color-mix(in srgb, var(--ev-deep) 82%, #2a2d3c), var(--ev-deep));
  box-shadow: inset 0 0 0 1px var(--ev-line), 0 14px 40px rgba(0, 0, 0, .24); }
.evs-banner::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ev-accent) 75%, transparent) 30%, color-mix(in srgb, var(--ev-accent-2) 75%, transparent) 70%, transparent); }
/* the flakes of the banner: over the emblem and the far end only (the text stays clear) */
.evs-bfx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .5) 16%, transparent 30%, transparent 64%, #000 92%); mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .5) 16%, transparent 30%, transparent 64%, #000 92%); }
.evs-bfx > .a { opacity: .6; }
.evs-bfx > .b { opacity: .42; }
.evs-em { position: relative; flex: none; display: grid; place-items: center; width: 78px; height: 78px; }
.evs-em svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.evs-em .evs-lf { fill: var(--ev-accent-2); opacity: .75; }
.evs-em .evs-mk { width: 40%; height: 40%; background: var(--ev-accent); -webkit-mask: var(--ev-mark) center / contain no-repeat; mask: var(--ev-mark) center / contain no-repeat; }
.evs-em { filter: drop-shadow(0 0 16px var(--ev-glow)); }
.evs-btx { min-width: 0; }
.evs-kick { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ev-accent); }
.evs-kick .ico { width: 14px; height: 14px; }
.evs-banner .evs-title { margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ev-ink); text-shadow: 0 0 26px var(--ev-glow); text-wrap: balance; }
.evs-banner .evs-title:focus { outline: none; }
.evs-banner .evs-title:focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 3px; border-radius: 4px; }
.evs-banner .evs-sub { margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--ev-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.evs-bside { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.evs-when { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.evs-until, .evs-ends { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.evs-until { color: var(--ev-ink); box-shadow: inset 0 0 0 1px var(--ev-line); background: color-mix(in srgb, var(--ev-accent) 10%, transparent); }
.evs-ends { color: var(--ev-soft); background: rgba(0, 0, 0, .28); }
.evs-ends .ico { width: 14px; height: 14px; }
.evs-ends b { color: var(--ev-ink); font-variant-numeric: tabular-nums; }
.btn.evs-cta { gap: 6px; height: 40px; padding: 0 14px 0 18px; border: 0; border-radius: 12px; font-weight: 800; color: var(--ev-on-accent); background: var(--ev-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 6px 18px color-mix(in srgb, var(--ev-glow) 70%, transparent); white-space: nowrap; }
.btn.evs-cta:hover { filter: brightness(1.06); color: var(--ev-on-accent); }
.btn.evs-cta .ico { width: 18px; height: 18px; }
.evs-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ev-soft); background: rgba(0, 0, 0, .18); }
.evs-x:hover { color: var(--ev-ink); background: rgba(0, 0, 0, .32); }
.evs-x .ico { width: 15px; height: 15px; }
/* folded: a small chip that opens the banner again */
.evs-chiprow { display: flex; }
.evs-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 34px; padding: 0 10px 0 11px; border-radius: 999px; font-size: 13px; color: var(--ev-soft);
  background: linear-gradient(120deg, color-mix(in srgb, var(--ev-deep) 80%, #2a2d3c), var(--ev-deep)); box-shadow: inset 0 0 0 1px var(--ev-line); }
.evs-chip:hover { color: var(--ev-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ev-accent) 50%, transparent), 0 0 18px color-mix(in srgb, var(--ev-glow) 50%, transparent); }
.evs-chip b { color: var(--ev-ink); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evs-chip span { white-space: nowrap; }
.evs-chip .ico { width: 15px; height: 15px; flex: none; }
.evs-chmk { flex: none; width: 15px; height: 15px; background: var(--ev-accent); -webkit-mask: var(--ev-mark) center / contain no-repeat; mask: var(--ev-mark) center / contain no-repeat; }
/* the dashboard's Shop tile: the event's name in its colours */
.dash-card .dc-evtag { position: absolute; top: 18px; inset-inline-end: 18px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 110px); padding: 5px 11px 5px 9px;
  border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--ev-ink); white-space: nowrap;
  background: color-mix(in srgb, var(--ev-deep) 80%, transparent); box-shadow: inset 0 0 0 1px var(--ev-line), 0 4px 14px rgba(0, 0, 0, .2); }
.dash-card .dc-evtag i { flex: none; width: 13px; height: 13px; background: var(--ev-accent); -webkit-mask: var(--ev-mark) center / contain no-repeat; mask: var(--ev-mark) center / contain no-repeat; }
.dash-card .dc-evtag-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a long event name wraps onto a second line instead of being cut ("Calendes de Janus", "Eros & Psyché") */
.dash-card .dc-evtag { border-radius: 12px; white-space: normal; align-items: flex-start; }
.dash-card .dc-evtag i { margin-top: 1px; }
.dash-card .dc-evtag-t { white-space: normal; text-overflow: clip; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
/* a long countdown (French "2 h 53 min 37 s") moves under the title instead of running past the card's edge */
.dash-card .dc-bottom { flex-wrap: wrap; row-gap: 2px; }
.dash-card.dc-shop-ev { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), 0 0 0 1px color-mix(in srgb, var(--ev-accent) 34%, transparent), 0 10px 30px color-mix(in srgb, var(--ev-glow) 45%, transparent); }

@media (max-width: 1000px) {
  .evs-banner { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 16px 48px 16px 16px; }
  .evs-bside { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  /* the text runs to the right edge here: the flakes stay over the emblem's column */
  .evs-bfx { -webkit-mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .5) 13%, transparent 22%); mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .5) 13%, transparent 22%); }
  .evs-when { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .evs-banner { padding: 14px 44px 16px 14px; border-radius: 16px; }
  .evs-em { width: 56px; height: 56px; }
  .evs-bfx { -webkit-mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .5) 15%, transparent 21%); mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .5) 15%, transparent 21%); }
  .evs-banner .evs-title { font-size: 18px; }
  .evs-banner .evs-sub { display: none; } /* phones: compact – the subtitle is on the festival shop */
  .evs-bside { gap: 10px; }
  .btn.evs-cta { width: 100%; height: 38px; justify-content: center; }
  .evs-x { top: 10px; inset-inline-end: 10px; }
  /* phones: a long event name wraps onto a second line instead of being cut ("Eros & Psyche", "Kalends of Janus") */
  .dash-card .dc-evtag { top: 12px; inset-inline-end: 10px; max-width: calc(100% - 66px); padding: 5px 9px 5px 7px; font-size: 11px; }
  .evs-home-land { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .evs-amb > i, .evs-bfx > i, .nav-link.nav-ev .evs-navmk { animation: none; }
}
/* ==== end Site event layer ==== */

/* ---- Admin quick panel: event design preview (admin-quick.js, event-preview.js) ---- */
.aq-evpill { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 140; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 12px; border-radius: 99px; background: rgba(14, 16, 28, .92); color: var(--ev-ink, #fff); font-size: 12.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--ev-accent, var(--line)), 0 8px 24px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.aq-evpill > .ico { color: var(--ev-accent, var(--gold)); flex: none; }
.aq-evpill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-evpill b { color: var(--ev-accent, #fff); }
.aq-evpill-x { flex: none; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--ev-accent, var(--surface-3)); color: #1a1020; font-weight: 800; font-size: 12px; }
.aq-evpill-x:hover { filter: brightness(1.08); }
.aq-evpill.aq-hidden { display: none; }
@media (max-width: 760px) { .aq-evpill { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* ===== staff roles: admin dashboard (roles-ui) – role chips, read-only notes, Team card, quick-panel role label ===== */
.adm-ro { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.adm-ro .ico { width: 15px; height: 15px; flex: none; opacity: .8; }
form .adm-ro, .card .adm-ro { margin: 10px 0 0; }
.adm-locked .switch { opacity: .55; }
.adm-role-chip, .atm-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--accent-soft); color: #c4b6ff; }
.adm-role-chip { margin-inline-start: 4px; }
[data-role="owner"].atm-chip, [data-role="owner"].adm-role-chip, .adm-tags .t.a[data-role="owner"] { background: rgba(244, 183, 64, .16); color: var(--gold); }
[data-role="moderator"].atm-chip, [data-role="moderator"].adm-role-chip, .adm-tags .t.a[data-role="moderator"] { background: rgba(239, 77, 90, .15); color: #ff8d98; }
[data-role="support"].atm-chip, [data-role="support"].adm-role-chip, .adm-tags .t.a[data-role="support"] { background: rgba(64, 186, 244, .15); color: #8fd6ff; }
[data-role="finance"].atm-chip, [data-role="finance"].adm-role-chip, .adm-tags .t.a[data-role="finance"] { background: rgba(70, 200, 130, .15); color: #8fe3b4; }
[data-role="shop_manager"].atm-chip, [data-role="shop_manager"].adm-role-chip, .adm-tags .t.a[data-role="shop_manager"] { background: rgba(236, 110, 200, .15); color: #f5a6dd; }
[data-role="tech"].atm-chip, [data-role="tech"].adm-role-chip, .adm-tags .t.a[data-role="tech"] { background: rgba(80, 210, 210, .14); color: #8fe6e6; }
[data-role="analyst"].atm-chip, [data-role="analyst"].adm-role-chip, .adm-tags .t.a[data-role="analyst"] { background: var(--surface-3); color: #d8dbe6; }
.atm-lead { font-size: 13px; margin: 0 0 12px; }
.atm-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto; gap: 8px; align-items: center; margin-bottom: 14px; }
.atm-add .atm-desc { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }
.atm-list { display: flex; flex-direction: column; }
.atm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.atm-row:first-child { border-top: 0; }
.atm-who { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; }
.atm-who b { overflow-wrap: anywhere; }
.atm-who small { font-size: 12px; }
.atm-you { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.atm-ctl { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.atm-sel { height: 32px; padding-block: 0; width: auto; min-width: 140px; }
.atm-self { margin-inline-start: auto; font-size: 12px; }
.atm-leg { display: flex; flex-direction: column; gap: 12px; }
.atm-leg-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.atm-leg-dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 3px 10px; margin: 6px 0 0; font-size: 12.5px; }
.atm-leg-dl dt { color: var(--muted); font-weight: 700; }
.atm-leg-dl dd { margin: 0; overflow-wrap: anywhere; }
.atm-mine { margin-bottom: 10px; }
.atm-mine-d { margin: 0; font-size: 14px; }
.atm-mine-n { margin: 8px 0 0; font-size: 12.5px; }
.adm-team .aiz-more { margin-top: 12px; }
.aq-bub-role { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); max-width: 76px; padding: 1px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  color: #e6e3ff; font-style: normal; font-size: 9.5px; font-weight: 800; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
@media (max-width: 560px) {
  .atm-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .atm-add .btn { grid-column: 1 / -1; }
  .atm-ctl { margin-inline-start: 0; width: 100%; }
  .atm-sel { flex: 1; min-width: 0; }
  .atm-rm-l { display: none; }
}
.adm-team { padding-bottom: 8px; }
.adm-team > .atm-lead, .adm-team > .atm-add, .adm-team > .atm-list, .adm-team > .adm-ro, .adm-team > .atm-mine { margin-inline: 24px; }
.adm-team > .atm-lead { margin-top: 14px; }
.adm-team > .adm-ro { margin-bottom: 12px; }
.adm-team > .aiz-more summary { padding-inline: 24px; }
.adm-team > .aiz-more .aiz-in { padding: 0 24px 16px; }
@media (max-width: 560px) {
  .adm-team > .atm-lead, .adm-team > .atm-add, .adm-team > .atm-list, .adm-team > .adm-ro, .adm-team > .atm-mine { margin-inline: 16px; }
  .adm-team > .aiz-more summary { padding-inline: 16px; }
  .adm-team > .aiz-more .aiz-in { padding: 0 16px 14px; }
}
/* ===== end staff roles (roles-ui) ===== */

/* ===== staff roles: review fixes (fix) – read-only forms look read-only, "you cannot decide" note ===== */
.adm-locked > .adm-ro:first-child { margin: 0 0 12px; }
.adm-locked .input:disabled, .adm-locked textarea:disabled, .adm-locked select:disabled { opacity: .6; cursor: not-allowed; }
.adm-mod-nodecide .ico { color: var(--muted); }
/* ===== end staff roles review fixes (fix) ===== */

/* ===== judge fairness ===== */
/* Admin -> AI & voice -> AI -> "Judge fairness" (public/js/admin-fair.js) */
.aiz-fact { display: flex; align-items: center; gap: 14px; flex: none; }
.aiz-spark { display: inline-block; width: 96px; height: 20px; color: var(--muted); overflow: visible; }
.aiz-spark polyline { fill: none; stroke: currentColor; stroke-opacity: .5; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.aiz-spark circle { fill: var(--ok); }
.aiz-spark circle.warn { fill: var(--gold); }
.aiz-spark circle.bad { fill: var(--danger); }
.aiz-spark circle.off { fill: var(--surface); stroke: var(--faint); stroke-width: 1; }
.aiz-fair { list-style: none; margin: 0; padding: 12px 24px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.aiz-fair li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; font-size: 13.5px; line-height: 1.45; }
.aiz-fn .aiz-s { font-weight: 700; font-size: 13.5px; }
.aiz-fl { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.aiz-fnote { padding-block: 12px; border-bottom: 1px solid var(--line); }
.aiz-fack { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.aiz-fcase { margin: 0 24px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.aiz-fcase:first-child { padding-top: 0; }
.aiz-fcase p { margin: 0 0 4px; overflow-wrap: anywhere; }
.aiz-fex { list-style: none; margin: 6px 0; padding: 0 0 0 10px; border-inline-start: 2px solid var(--line); display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.aiz-fex li { overflow-wrap: anywhere; }
/* set v2: the critical manipulation probe, the backup engine's row, an injected attempt */
.aiz-ftag { margin-inline-start: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--danger); border: 1px solid currentColor; vertical-align: 1px; white-space: nowrap; }
.aiz-fair li.aiz-fcrit { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.aiz-fsub { padding-block: 10px; }
.aiz-fsub .aiz-rt b .aiz-s { font-size: 14px; }
.aiz-fatt { display: inline; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
.aiz-fsubcases { padding-top: 10px; }
@media (max-width: 720px) {
  .aiz-fair, .aiz-fack { padding-inline: 16px; }
  .aiz-fcase { margin: 0 16px; }
}
@media (max-width: 560px) {
  .aiz-fair li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aiz-fl { padding-inline-start: 15px; }
  .aiz-fact { width: 100%; justify-content: space-between; }
}
/* real duels (src/judge-real.js): a heading over its lines, the details tables */
.aiz-fhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 12px 24px 0; font-size: 13.5px; }
.aiz-fhead small { color: var(--faint); }
.aiz-fhead + .aiz-fair { padding-top: 8px; }
.aiz-rgrp td { font-weight: 700; padding-top: 10px; }
@media (max-width: 720px) { .aiz-fhead { padding-inline: 16px; } }
/* ===== end judge fairness ===== */
/* ===== duel language guard card (public/js/admin-lang.js) ===== */
.lg-mode .aiz-rt { flex: 1; }
.lg-seg { width: 300px; flex: none; }
.lg-seg button { height: 32px; font-size: 13px; }
.lg-seg button:disabled { cursor: default; }
.lg-seg button:disabled:not(.on) { opacity: .55; }
.lg-ok { color: var(--ok); font-weight: 700; }
.lg-fields { line-height: 1.6 !important; }
.lg-matrix { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; vertical-align: middle; }
.lg-matrix .aiz-s { font-size: 12.5px; font-weight: 700; }
.lg-nums { border-bottom: 1px solid var(--line); }
.lg-nums .ai-tbl-wrap { border: 0; }
.lg-tot td:first-child { color: var(--muted); }
.lg-review { list-style: none; margin: 0; padding: 0 24px; display: flex; flex-direction: column; }
.lg-r { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lg-r:first-child { padding-top: 0; }
.lg-rm { color: var(--muted); overflow-wrap: anywhere; }
.lg-rx { margin: 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lg-ra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-tag { display: inline-block; margin-inline-start: 8px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); vertical-align: 1px; }
.lg-tag.warn { color: var(--gold); border-color: rgba(244, 183, 64, .5); }
@media (max-width: 720px) {
  .lg-seg { width: 100%; }
  .lg-review { padding-inline: 16px; }
}
/* ===== end duel language guard card ===== */

/* ===== Email: the pages behind email links, the banner, the settings parts (public/js/email-pages.js, settings.js) ===== */
.em-page { max-width: 560px; margin: 0 auto; padding: 56px 16px 40px; }
.em-card { padding: 32px 28px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.em-card h1 { font-size: 24px; line-height: 1.25; }
.em-card p { margin: 0; line-height: 1.55; }
.em-card form { text-align: start; margin-top: 8px; }
.em-card .center-load { min-height: 96px; }
.em-mark { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 4px; background: var(--accent-soft); color: #c4b6ff; }
.em-mark .ico { width: 30px; height: 30px; }
.em-mark.em-ok { background: rgba(53, 194, 165, .16); color: var(--ok); }
.em-mark.em-bad { background: rgba(239, 77, 90, .14); color: #ff8d98; }
.em-mark.em-key { background: rgba(244, 183, 64, .16); color: var(--gold); }
.em-act { justify-content: center; margin-top: 8px; }
.em-note { margin-top: 12px; text-align: center; line-height: 1.5; }
.auth-forgot { align-self: flex-end; font-weight: 600; }
.auth-news { margin-bottom: 16px; }
.em-banner { margin-inline-start: var(--side-w); display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: rgba(123, 92, 255, .14); border-bottom: 1px solid var(--accent-edge); color: #e4defe; font-size: 14px; }
.em-banner[hidden] { display: none; }
.em-banner > .ico { width: 18px; height: 18px; color: #c4b6ff; flex: none; }
.em-banner > span { flex: 1; min-width: 0; }
.em-banner.em-banner-bad { background: rgba(244, 183, 64, .12); border-bottom-color: var(--gold-edge); color: #ffe2a6; }
.em-banner.em-banner-bad > .ico { color: var(--gold); }
.emb-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); flex: none; }
.emb-x:hover { background: var(--surface-2); color: #fff; }
.emb-x .ico { width: 16px; height: 16px; }
.em-badge { vertical-align: 2px; margin-inline-start: 6px; }
.em-badge .ico { width: 12px; height: 12px; }
.em-badge-bad { background: rgba(239, 77, 90, .16); color: #ff8d98; }
.em-notice { margin: 4px 0 12px; }
.em-notice > span { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.em-pact { gap: 8px; }
.em-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: start; }
.em-cats { transition: opacity .15s; }
.em-cats.em-dim { opacity: .5; }
.em-consent { margin: 4px 0 10px; }
.em-freq { margin-bottom: 6px; }
.set-stack { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 899px) {
  .em-banner { margin-inline-start: 0; padding: 8px 12px; }
}
@media (max-width: 520px) {
  .em-page { padding-top: 24px; }
  .em-card { padding: 24px 18px; }
  .em-card h1 { font-size: 21px; }
  .em-line { flex-direction: column; align-items: flex-start; }
}
/* ===== end email ===== */

/* ===== About page (/about, public/js/about.js) ===== */
.about-lead { font-size: 18px; color: var(--muted); max-width: 760px; margin: -4px 0 24px; line-height: 1.55; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.about-sec { line-height: 1.6; color: #d6d9e4; }
.about-sec h2 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.about-sec p + p { margin-top: 10px; }
.about-sec ul { margin: 0; padding-inline-start: 20px; }
.about-sec li { margin-bottom: 8px; }
#about-judge, #about-fairness, #about-safety { grid-column: 1 / -1; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-lead { font-size: 16px; } }
/* ===== end About page ===== */

/* ===== Official addresses (public/js/contact-mail.js): one discreet line per place ===== */
.ups-help { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--faint); text-align: start; overflow-wrap: anywhere; }
.ups-help a { color: var(--muted); }
.set-help { margin-top: 10px; overflow-wrap: anywhere; }
.contact-mail p + p { margin-top: 8px; }
.contact-mail a, .empty .link { overflow-wrap: anywhere; }
/* ===== end official addresses ===== */

/* ===== native app (Capacitor shell, public/js/native.js; html.is-app is set in index.html before anything renders) =====
   The WebView draws edge to edge (viewport-fit=cover, SystemBars insetsHandling 'css'): the page keeps clear of the
   notch, the status bar, the home indicator and the Android navigation bar with env(safe-area-inset-*). */
:root { --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px); --sa-r: env(safe-area-inset-right, 0px); }
.is-app body { padding-left: var(--sa-l); padding-right: var(--sa-r); }
.is-app .side { padding-top: calc(14px + var(--sa-t)); padding-bottom: calc(14px + var(--sa-b)); padding-left: calc(10px + var(--sa-l)); }
.is-app .main { padding-bottom: var(--sa-b); }
@media (min-width: 900px) { .is-app .main { padding-top: var(--sa-t); } }
@media (max-width: 899px) { .is-app .topbar { height: calc(56px + var(--sa-t)); padding-top: var(--sa-t); } html.is-app.bnav-on .main { padding-bottom: var(--bn-lift); } }
.is-app .modal-back { padding: calc(20px + var(--sa-t)) calc(20px + var(--sa-r)) calc(20px + var(--sa-b)) calc(20px + var(--sa-l)); }
.is-app .modal { max-height: calc(100vh - 40px - var(--sa-t) - var(--sa-b)); max-height: calc(100dvh - 40px - var(--sa-t) - var(--sa-b)); }
.is-app .toast, .is-app .cf-float { bottom: calc(24px + var(--sa-b)); }
.is-app .npop-wrap, .is-app .npanel, .is-app .aq-bubble { bottom: calc(16px + var(--sa-b)); }
.is-app .aq-panel { padding-top: var(--sa-t); padding-bottom: var(--sa-b); }
.is-app .modwarn, .is-app .insp-x { top: calc(18px + var(--sa-t)); }
.is-app .sound-pill { bottom: calc(96px + var(--sa-b)); }
.is-app .mn-speaker { bottom: calc(18px + var(--sa-b)); }
.is-app .arena-wrap { padding-bottom: calc(48px + var(--sa-b)); }
.is-app .arena-wrap.stream .arena { height: calc(100dvh - 32px - var(--sa-t) - var(--sa-b)); }
/* no ads and nothing to buy in the app (App Store 3.1.1 / 3.1.3): ad slots, the free-video Drachma button, the "+" to the
   Drachma counter and the "members get double" hint never show; the JS draws none of them either */
.is-app .ad-slot, .is-app [data-vid], .is-app .ck-banner, .is-app .dc-plus, .is-app .dy-hint, .is-app .dr-pack, .is-app #drachmas { display: none !important; }
/* the plain line instead of a purchase ("Manage your membership on debatteur.com"): no link, no price, no button */
.app-ms-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.app-ms-note .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.app-ms-note.app-ms-inline { font-size: 13.5px; }
.app-ms-note.app-ms-big { padding: 18px 20px; border-radius: var(--r); background: var(--surface); color: var(--text); font-size: 16px; font-weight: 600; }
.app-ms .ms-cur { margin-bottom: 16px; }
.app-ms-dlg { text-align: center; }
.app-ms-dlg .dlg-art { display: grid; place-items: center; margin-bottom: 8px; color: var(--gold, #e8b84a); }
.vl-dlg .app-ms-note { padding: 10px 12px; }
/* in-app purchases (public/js/iap.js, shop.js appMembership): store prices, renewal terms, restore / manage */
.app-iap-plans { margin-top: 4px; }
.app-ms .ms-bar { margin: 4px 0 16px; }
.app-iap-pc .pc-nm small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.app-iap-price b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-iap-price small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.app-iap-pc .pc-adds ul { margin: 0; }
.app-iap-load { margin: 18px 0; text-align: center; }
.app-iap-terms { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.app-iap-terms p { margin: 0; }
.app-iap-terms .app-iap-legal { margin-top: 8px; font-weight: 600; }
.app-iap-act { display: flex; justify-content: center; margin: 14px 0 8px; }
.ms-store-note { max-width: 760px; margin: 10px auto 0; }
/* the offline overlay (Network plugin): above everything, inside the safe area */
.app-offline { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #12131a; padding: calc(24px + var(--sa-t)) calc(24px + var(--sa-r)) calc(24px + var(--sa-b)) calc(24px + var(--sa-l)); }
.app-offline-box { max-width: 340px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-offline-box h2 { font-size: 22px; }
.app-offline-box p { color: var(--muted); line-height: 1.5; }
.app-offline .app-off-ico { width: 56px; height: 56px; color: var(--muted); }
/* Settings -> This device (only in the app) */
.set-dev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.set-dev-row + .set-dev-row { border-top: 1px solid var(--line); }
.set-dev-row small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.mic-warn .btn { margin-inline-start: auto; }
/* Admin -> Email: the push health line (admin-email.js pushLine) */
.aem-push { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; flex-wrap: wrap; }
.aem-push small { color: var(--muted); }
/* ===== end native app ===== */

/* ==== Phone shop (public/js/shop.js phoneHtml, ≤ 899 px: the mobile web and the app) ====
   The desktop magazine made for a phone: a header with the Drachma balance up front, category chips that stay at the top
   while the page scrolls, a two-column card grid with large previews (the day's large piece spans both columns), rarity
   accents, price pills with the coin and the owned / equipped / sold out states, the item as a bottom sheet over the
   page and the bar (its action row stays at the bottom edge, above the home indicator). Everything sits inside the phone
   query: the desktop shop is untouched. */
@media (max-width: 899px) {
  .page.shm { --shm-gap: 10px; max-width: 640px; padding: 14px 16px 28px; }
  .shm .r-common, .shm-sheet .r-common { --rc: #9aa1b5; }
  .shm .r-rare, .shm-sheet .r-rare { --rc: #7cc2ff; }
  .shm .r-epic, .shm-sheet .r-epic { --rc: #c3a8ff; }
  .shm .r-legendary, .shm-sheet .r-legendary { --rc: #ffd27a; }
  .shm-head { display: flex; flex-direction: column; gap: 12px; }
  .shm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
  .shm-top h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
  .shm-timer { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--faint); white-space: nowrap; }
  .shm-timer .ico { width: 14px; height: 14px; flex: none; }
  .shm-timer b { color: var(--muted); font-variant-numeric: tabular-nums; }
  .shm-wallet {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 14px 14px 16px; border-radius: 18px;
    background: radial-gradient(120% 150% at 0% 0%, rgba(244, 183, 64, .16), transparent 62%), var(--surface);
    box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .24);
  }
  .shm-wl { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 120px; }
  .shm-wl small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .shm-wl .coins.shm-bal { font-size: 28px; gap: 8px; line-height: 1.1; }
  .shm-get { flex: 0 1 auto; height: 44px; padding: 0 14px; gap: 6px; margin-inline-start: auto; font-size: 14.5px; border-radius: 12px; }
  .shm-get .ico { width: 18px; height: 18px; }
  .shm-get > span { white-space: nowrap; }

  /* the category chips: sticky at the top of the scrolling page, scrolling sideways on their own */
  .shm-chips {
    position: sticky; top: 0; z-index: 6; margin: 16px -16px 0; padding: 10px 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .shm-chips-in { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .shm-chips-in::-webkit-scrollbar { display: none; }
  .shm-chip {
    flex: none; height: 36px; padding: 0 15px; border-radius: 18px; background: var(--surface); color: var(--muted);
    font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line);
    -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, box-shadow .15s;
  }
  .shm-chip.on { background: var(--accent); color: #fff; box-shadow: inset 0 -3px 0 var(--accent-edge); }
  .shm-chip[data-cat="drachmas"]:not(.on) { color: #ffd36e; box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .3); }

  .shm-body { scroll-margin-top: 58px; }
  .shm-sec { margin-top: 18px; }
  .shm-sec[hidden] { display: none; }
  .shm-h { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
  .shm-h .ed-i { transform: none; }
  .shm-sub { margin: -6px 2px 12px; color: var(--muted); font-size: 13.5px; }
  .shm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--shm-gap); }

  /* a card: the preview on a stage lit in the rarity's colour, the rarity line on top, the name, the price pill */
  .shm-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border-radius: 16px; overflow: hidden;
    text-align: start; color: inherit; background: var(--surface); -webkit-tap-highlight-color: transparent; transition: transform .16s ease;
  }
  .shm-card::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 26%, var(--line)); pointer-events: none; }
  .shm-card::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 2; height: 3px; background: linear-gradient(90deg, transparent, var(--rc) 30%, var(--rc) 70%, transparent); opacity: .9; }
  .shm-card:active { transform: scale(.975); }
  .shm-card:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
  .shm-card.wide { grid-column: 1 / -1; }
  .shm-pv {
    position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 16px 12px; overflow: hidden;
    background: radial-gradient(70% 62% at 50% 48%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 72%), linear-gradient(180deg, #2a2e3d, #1f222d);
  }
  .shm-card.wide .shm-pv { aspect-ratio: 2 / 1; padding: 16px 18px; }
  .shm-pv > .cf, .shm-pv > .sp-cam { width: 88%; margin: 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
  .shm-card.wide .shm-pv > .cf, .shm-card.wide .shm-pv > .sp-cam { width: min(52%, 300px); }
  .shm-pv > .sp-cam { border-radius: 10px; }
  .shm-pv .cf .sp-cam { width: 100%; }
  .shm-pv > .cf.frame-owl { margin-top: 12%; }
  .shm-pv.nm { aspect-ratio: 3 / 2; padding: 10px 6px; }
  .shm-card.wide .shm-pv.nm { aspect-ratio: 3 / 1; }
  .shm-pv.nm .nx-stage { width: 100%; height: auto; min-height: 0; padding: 4px 8px; font-size: 26px; line-height: 1.15; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
  .shm-card.wide .shm-pv.nm .nx-stage { font-size: 40px; }
  .shm-card.is-sold .shm-pv { filter: saturate(.35) brightness(.8); }
  .shm-card.ev-pick::after { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--shx-acc, #ffd27a) 55%, transparent); }
  .shm-tags { position: absolute; top: 11px; inset-inline-start: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 20px); pointer-events: none; }
  .shm-tags .lim-badge, .shm-tags .new-badge { margin: 0; max-width: 100%; overflow: hidden; }
  .shm-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px 12px; }
  .shm-rar { min-width: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shm-name { min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shm-card.wide .shm-name { font-size: 18px; }
  .shm-info .ev-line { margin: 2px 0; }
  .shm-info .evx-badge { max-width: 100%; overflow: hidden; }
  .shm-pill {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 30px; margin-top: 7px; padding: 0 12px 0 8px;
    border-radius: 15px; background: rgba(244, 183, 64, .12); box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .32); color: #ffd36e;
    font-size: 14px; font-weight: 800; white-space: nowrap;
  }
  .shm-pill .coins { font-size: 14.5px; gap: 5px; }
  .shm-pill .ico { width: 15px; height: 15px; flex: none; }
  .shm-pill.own { padding: 0 12px 0 9px; background: rgba(53, 194, 165, .12); box-shadow: inset 0 0 0 1px rgba(53, 194, 165, .36); color: var(--ok); }
  .shm-pill.eq { padding: 0 12px 0 9px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(143, 116, 255, .5); color: #cdbfff; }
  .shm-pill.sold { padding: 0 12px; background: var(--surface-2); box-shadow: none; color: var(--faint); }

  .shm .shm-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--shm-gap); }
  .shm-coll { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px; border-radius: 16px; background: var(--surface); color: inherit; box-shadow: inset 0 0 0 1px var(--line); }
  .shm-coll-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
  .shm-coll-ico .ico { width: 26px; height: 26px; }
  .shm-coll-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
  .shm-coll-t b { font-size: 15.5px; }
  .shm-coll-t small { color: var(--muted); font-size: 13px; font-weight: 600; }
  .shm-coll-t .ed-bar { width: 100%; max-width: 200px; margin-top: 4px; }
  .shm-coll .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }

  /* the item as a bottom sheet: over the page and the bar, the grabber on top, the action row pinned to its bottom edge */
  html .modal-back.shm-back { align-items: end; place-items: end center; padding: 0; overflow: hidden; animation: shmFade .2s ease both; }
  html .modal.shm-sheet {
    width: 100%; max-width: 640px; max-height: calc(100dvh - var(--sa-t) - 28px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0, 0, 0, .5); outline: none;
    animation: shmUp .3s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s ease;
  }
  .shm-grab { position: absolute; top: 8px; left: 50%; z-index: 4; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255, 255, 255, .38); }
  .shm-sheet .modal-close { top: 16px; z-index: 4; background: rgba(0, 0, 0, .25); color: #fff; }
  .shm-sheet .sd-art { padding: 40px 22px 24px; }
  .shm-sheet .sd-art > .cf, .shm-sheet .sd-art > .sp-cam { max-width: 300px; }
  .shm-sheet .sd-body { padding: 18px 20px 0; }
  .shm-sheet .sd-body h2 { font-size: 23px; }
  .shm-sheet .sd-act {
    position: sticky; bottom: 0; z-index: 3; margin: 14px -20px 0; padding: 14px 20px calc(16px + var(--sa-b));
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 18px);
  }
  .shm-sheet .sd-act .btn { flex: 1 1 100%; min-height: 52px; }
  .shm-sheet .sd-need { margin: -6px 0 0; padding-bottom: calc(16px + var(--sa-b)); }
}
@media (max-width: 360px) {
  .page.shm { padding-inline: 12px; }
  .shm-chips { margin-inline: -12px; }
  .shm-chips-in { padding-inline: 12px; }
  .shm-get { flex: 1 1 100%; }
  .shm-wl .coins.shm-bal { font-size: 26px; }
  .shm-info { padding: 9px 10px 11px; }
  .shm-pill { padding-inline-end: 10px; }
}
@keyframes shmUp { from { transform: translateY(100%); } }
@keyframes shmFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .shm-chip, .shm-card, html .modal.shm-sheet { transition: none; }
  html .modal-back.shm-back, html .modal.shm-sheet { animation: none; }
}
/* ==== end Phone shop ==== */
