/* =====================================================================
   V2 — the face before the iOS port (3 Dec 2026)
   =====================================================================
   Loaded last, on top of style.css / cards.css / feed.css / split.css.
   A dark competitive-gaming dashboard in the crew's gold: tonal cards on a near-black
   ground, numbers in inset wells, no hairlines anywhere (separation is tone and
   space), one control height, and type on a real scale. Unbounded carries display
   and numbers; Onest carries everything you read and press.
   The signature move is the row that turns over: a player's main as a full render on
   an angled gold slab, with the aura and the record beside it (.ps). */

:root {
  --v-ground: #121211;
  --v-card: #1b1a18;
  --v-card-2: #242320;
  --v-card-3: #2e2c28;
  --v-well: #0d0d0c;
  --v-text: #f2eee5;
  --v-text-2: #a7a194;
  --v-text-3: #6f6b63;
  --v-gold: #f6c243;
  --v-gold-2: #d9a52e;
  --v-gold-ink: #1c1505;
  --v-gold-tint: rgba(246, 194, 67, .1);
  --v-live: #3bd16f;
  --v-loss: #ef5a5f;
  --v-r-card: 14px;
  --v-r-ctl: 10px;
  --v-ctl: 40px;
  --v-ctl-sm: 32px;
  --v-ease: cubic-bezier(.22, 1, .36, 1);

  /* the old names, re-pointed, so every screen not rewritten here still moves with it */
  --bg: var(--v-ground);
  --card: var(--v-card);
  --card-border: transparent;
  --text: var(--v-text);
  --cream: var(--v-text);
  --gold: var(--v-gold);
  --green: var(--v-live);
  --radius: var(--v-r-card);
}

html { background: var(--v-ground); }
body {
  background: var(--v-ground);
  color: var(--v-text);
  font-family: var(--font-body);
  font-size: 13px; line-height: 1.45;
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(246, 194, 67, .32); color: var(--v-text); }
:focus-visible { outline: 2px solid var(--v-gold); outline-offset: 2px; }
input, textarea { caret-color: var(--v-gold); }
.fire-bg { background: var(--v-ground) !important; }

/* ---------- top bar ---------- */
body .topbar { padding: 14px 16px 16px; max-width: 552px; }
body .topbar-logo { height: 28px; }
body .nav-utils { gap: 8px; }
body .dmbtn, body .notifbtn, body .mojobtn {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--v-r-ctl);
  display: grid; place-items: center;
  background: var(--v-card); color: var(--v-text-2); box-shadow: none;
  transition: background .15s, color .15s;
}
body .dmbtn svg, body .notifbtn svg, body .mojobtn svg { width: 17px; height: 17px; }
body .dmbtn:hover, body .dmbtn.on, body .notifbtn:hover, body .mojobtn:hover {
  background: var(--v-card-2); color: var(--v-gold); border: 0;
}
body .notifbtn .notifcount, body .mojobtn .mojocount, body .dmbtn .dmcount {
  font-family: var(--font-body); font-weight: 800; font-size: 9px; letter-spacing: 0;
  min-width: 15px; height: 15px; line-height: 15px; padding: 0 4px; border-radius: 8px;
  border: 2px solid var(--v-ground); box-sizing: content-box;
}

/* ---------- tab bar ---------- */
body .tabbar {
  background: rgba(18, 18, 17, .94);
  border-top: 0;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .45);
}
/* icons only, no labels */
body .tb { color: var(--v-text-3); min-height: 46px; gap: 0; padding: 6px 2px; transition: color .15s; }
body .tb:hover { color: var(--v-text-2); }
body .tb-ico { width: 21px; height: 21px; }
body .tb.on { color: var(--v-gold); }
body .tb.on::before { display: none; }
body .tb-face { width: 21px; height: 21px; border-radius: 7px; }
body .tb-ava { border-radius: 7px; }
body .tb.on .tb-face { box-shadow: 0 0 0 2px var(--v-gold); }
body .tb-key {
  width: 44px; height: 30px; border-radius: var(--v-r-ctl);
  background: var(--v-gold); color: var(--v-gold-ink);
  box-shadow: 0 6px 16px -6px rgba(246, 194, 67, .55);
}
body .tb-dot { top: 10px; margin-right: -15px; width: 6px; height: 6px; box-shadow: 0 0 0 2px var(--v-ground); }

/* ---------- buttons: one family, two heights ---------- */
body .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--v-ctl); padding: 0 18px;
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  border: 0; border-radius: var(--v-r-ctl); box-shadow: none;
  background: var(--v-card-2); color: var(--v-text);
  transition: background .15s, color .15s, filter .15s, transform .1s;
}
body .btn:hover:not(:disabled) { filter: none; background: var(--v-card-3); }
body .btn:active:not(:disabled) { transform: scale(.98); }
body .btn.gold { background: var(--v-gold); color: var(--v-gold-ink); }
body .btn.gold:hover:not(:disabled) { background: #ffd05a; }
body .btn.ghost { background: var(--v-card-2); color: var(--v-text); border: 0; }
body .btn.ghost:hover:not(:disabled) { background: var(--v-card-3); color: var(--v-text); }
body .btn.red { background: rgba(239, 90, 95, .14); color: var(--v-loss); }
body .btn.red:hover:not(:disabled) { background: rgba(239, 90, 95, .22); }
body .btn.green { background: var(--v-live); color: #04210e; }
body .btn.green:hover:not(:disabled) { background: #52dd82; }
body .btn.sm { min-height: var(--v-ctl-sm); padding: 0 14px; font-size: 10.5px; letter-spacing: .08em; border-radius: 9px; }
body .btn:disabled { opacity: .4; }

/* RETAR on any row: the small gold control, the same height everywhere */
body .challenge-mini, body .challenge-mini.arena {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  height: var(--v-ctl-sm); min-width: 64px; padding: 0 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1;
  background: var(--v-gold); color: var(--v-gold-ink);
  border: 0; border-radius: 9px; box-shadow: none; transform: none;
  transition: background .15s, transform .1s;
}
body .challenge-mini:hover { filter: none; background: #ffd05a; }
body .challenge-mini:active { transform: scale(.97); }
body .challenge-mini.arena.owed { background: var(--v-gold); color: var(--v-gold-ink); box-shadow: 0 0 0 2px var(--v-ground), 0 0 0 3.5px rgba(246, 194, 67, .6); }
body .ar-busy {
  font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: .02em;
  text-transform: none; color: var(--v-text-3); background: none; border: 0; padding: 0;
}

/* ---------- toasts ---------- */
body .toast {
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0;
  text-transform: none; color: var(--v-text);
  background: var(--v-card-3); border: 0; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
}
body .toast.err { background: #3a1e1f; color: #ffd6d7; border: 0; }
body.has-tabbar .toasts { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

/* ---------- the corner cards: a ready-check, an arrival, a message ---------- */
body .readybar { top: 72px; right: 12px; width: min(calc(100vw - 24px), 320px); gap: 8px; }
body .readycard { background: var(--v-card-3); border-radius: var(--v-r-card); padding: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .75); }
body .arrivalcard:hover { background: #36332e; }
body .readycard-msg { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .01em; text-transform: none; color: var(--v-text); line-height: 1.35; }
body .arrivalcard .readycard-msg { color: var(--v-text); }
body .readycard-sub { font-size: 11.5px; color: var(--v-text-2); }
body .readycard-sub:empty { display: none; }
body .readycard-btns { display: flex; gap: 8px; margin-top: 12px; }
body .readycard-btns .btn { flex: 1; }
body .readycard .btn.ghost { background: var(--v-card-2); }

/* ---------- sheets ---------- */
body .modal-back { background: rgba(5, 5, 5, .72); }
body .modal:focus { outline: none; }
body .modal { background: var(--v-card); border: 0; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
body .modal h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0;
  text-transform: none; color: var(--v-text);
}
body .modal-back.sheet { align-items: flex-end; padding: 0; z-index: 70; animation: v-fade .2s ease-out both; }
body .modal.sheet {
  max-width: 520px; width: 100%; text-align: left;
  border-radius: 20px 20px 0 0;
  padding: 26px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 78vh; max-height: 78dvh;
  animation: v-rise .26s var(--v-ease) both;
}
body .modal.sheet::before {
  content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 2px; background: var(--v-card-3);
}
@media (min-width: 640px) {
  body .modal-back.sheet { align-items: center; padding: 18px; }
  body .modal.sheet { max-width: 400px; border-radius: 20px; padding: 26px 18px 18px; }
  body .modal.sheet::before { display: none; }
}
@keyframes v-fade { from { opacity: 0; } }
@keyframes v-rise { from { transform: translateY(28px); opacity: 0; } }

.ls-well {
  font-family: var(--font-head); font-weight: 500; font-size: 12px; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* the challenge sheet: ladders as centred buttons, numbers to their right */
.ls-list { display: flex; flex-direction: column; gap: 8px; }
.ls-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; align-items: stretch; }
.ls-row.solo { grid-template-columns: minmax(0, 1fr); }
.ls-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 44px; border: 0; border-radius: 12px;
  background: var(--v-card-2); color: var(--v-text); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; text-align: center;
  transition: background .2s, color .2s, transform .1s;
}
.ls-btn:hover:not(:disabled) { background: var(--v-card-3); }
.ls-btn:active:not(:disabled) { transform: scale(.985); }
.ls-btn:disabled { opacity: .35; cursor: default; }
.ls-btn.owed { box-shadow: inset 0 0 0 1.5px rgba(246, 194, 67, .7); }
.ls-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-ico {
  position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  color: var(--v-gold);
}
.ls-ico svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s, transform .3s var(--v-ease); }
.ls-ico svg:last-child { opacity: 0; transform: scale(.4); }
.ls-btn.joining { background: var(--v-card-3); }
.ls-btn.joining .ls-ico svg:first-child { animation: v-nudge .7s ease-in-out infinite; }
.ls-btn.in { background: var(--v-gold); color: var(--v-gold-ink); }
.ls-btn.in .ls-ico { color: var(--v-gold-ink); }
.ls-btn.in .ls-ico svg:first-child { opacity: 0; transition: none; }
.ls-btn.in .ls-ico svg:last-child { opacity: 1; transform: none; }
@keyframes v-nudge { 50% { transform: translateX(3px); } }
.ls-well {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 12px; background: var(--v-well);
}
.ls-well b { font-weight: 500; font-size: 13px; color: var(--v-text); line-height: 1; }
.ls-well span { font-size: 10px; color: var(--v-text-3); line-height: 1; }
.ls-well.empty { background: transparent; }

/* THE FORMATS — BO3 · BO5 · FT5 · FT10. One tag shape on every surface that shows a
   set; the first-to sets wear the gold tint, because a FT10 is an event. */
.fmt-tag {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 18px; padding: 0 6px; border-radius: 6px;
  background: var(--v-card-2); color: var(--v-text-2);
  font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: .06em;
  line-height: 1; font-style: normal; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.fmt-tag.ft { background: var(--v-gold-tint); color: var(--v-gold); }
.fmt-tag.on-gold { margin-left: 10px; background: rgba(28, 21, 5, .14); color: var(--v-gold-ink); }
.fmt-pips { display: flex; gap: 3px; }
.fmt-pips i { width: 10px; height: 3px; border-radius: 2px; background: var(--v-card-3); }
.fmt-pips.many i { width: 5px; }

/* the RETAR sheet: ladders pick (when there is a choice), a format sends */
.fmt-sheet { display: flex; flex-direction: column; gap: 16px; }
.ls-btn.pick.on { background: var(--v-card-3); box-shadow: inset 0 0 0 1.5px var(--v-gold); }
.ls-btn.pick.owed:not(.on) { box-shadow: none; }
.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fmt-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 76px; padding: 0 12px; border: 0; border-radius: 12px;
  background: var(--v-card-2); color: var(--v-text); cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.fmt-btn:hover:not(:disabled) { background: var(--v-card-3); }
.fmt-btn:active:not(:disabled) { transform: scale(.98); }
.fmt-btn:focus-visible { outline: 2px solid var(--v-gold); outline-offset: 2px; }
.fmt-btn:disabled { opacity: .35; cursor: default; }
.fmt-name { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .02em; line-height: 1; }
.fmt-btn .fmt-pips i { background: var(--v-text-3); transition: background .15s; }
.fmt-btn:hover:not(:disabled) .fmt-pips i { background: var(--v-gold); }
.fmt-btn.sent { background: var(--v-gold); color: var(--v-gold-ink); }
.fmt-btn.sent .fmt-pips i { background: var(--v-gold-ink); }

/* where the tag sits on each surface */
body .readycard-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
body .readycard-sub > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .dj-pend-txt { align-items: center; }
body .dj-line { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; }
.mh-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mh-pips.many { gap: 3px; }
.mh-pips.many i { width: 7px; }
body .fm-mid { flex-direction: column; gap: 6px; }
body .res-board .voy-bo .fmt-tag, body .voy-bo .fmt-tag { vertical-align: middle; }
body .rm-said { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- avatars: rounded squares ---------- */
.plr-ava .ava, .dj-fight-ava .ava, .ps-face .ava, #board .rankrow .ava {
  display: grid; place-items: center; width: 100%; height: 100%; flex: none;
  border: 0; border-radius: 10px; overflow: hidden; box-shadow: none;
}
.plr-ava .ava img, .dj-fight-ava .ava img, .ps-face .ava img, #board .rankrow .ava img { width: 100%; height: 100%; object-fit: cover; }
.plr-ava .ava .hatmark, .dj-fight-ava .ava .hatmark, .ps-face .ava .hatmark, #board .rankrow .ava .hatmark { width: 66%; height: 66%; object-fit: contain; }
/* the green light, everywhere it is drawn */
.plr-dot {
  position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--v-live); box-shadow: 0 0 0 2px var(--v-card); display: none;
}
.plr.on .plr-dot, .dj-fight.live .plr-dot { display: block; }

/* ---------- the dojo ---------- */
body .app { padding: 8px 16px 6px; }
/* one column, the top bar's, for the ladder too: this is a phone app first */
body:not(.on-split):not(.on-pager) .app:has(#board) { max-width: 552px; margin-left: auto; margin-right: auto; }
body .dojo { max-width: 520px; padding: 0 0 48px; gap: 12px; }

/* you */
body .dj-you { gap: 12px; padding: 4px 0 12px; }
body .dj-you-me { gap: 12px; max-width: calc(100% - 132px); }
.dj-you-face { position: relative; flex: 0 0 auto; width: 52px; height: 52px; }
body .dj-you-ava {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  overflow: hidden; border: 0; box-shadow: none;
}
.dj-you-dot {
  position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--v-card-3); box-shadow: 0 0 0 3px var(--v-ground);
  transition: background .25s, box-shadow .25s;
}
.dj-you-dot.on { background: var(--v-live); }
body .dj-you-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .01em;
  text-transform: uppercase; color: var(--v-text);
}
body .dj-pills { gap: 6px; }
body .dj-pill {
  height: 28px; min-width: 40px; padding: 0 9px; display: inline-grid; place-items: center;
  font-family: var(--font-head); font-weight: 500; font-size: 11px; letter-spacing: 0;
  background: var(--v-gold-tint); color: var(--v-gold); border: 0; border-radius: 8px;
}
body .dj-pill:hover { filter: none; background: rgba(246, 194, 67, .18); }
body .dj-pill.zz { background: var(--v-card); color: var(--v-text-2); }
body .dj-pill.zz:hover { background: var(--v-card-2); color: var(--v-text); }
body .dj-pill.zz svg { display: block; width: 15px; height: 15px; }
body .dj-pill.more { min-width: 28px; background: var(--v-card); color: var(--v-text-2); border: 0; font-size: 13px; }
body .dj-incog {
  width: 36px; height: 36px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-card); color: var(--v-text-3); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
body .dj-incog svg { width: 19px; height: 19px; }
body .dj-incog:hover { border: 0; color: var(--v-text); background: var(--v-card-2); }
body .dj-incog.on { background: var(--v-text); color: var(--v-ground); }

/* friends */
body .dojo .dj-friends, body .dj-main { margin-top: 0; }
.dj-friends .fr-list, .dj-friends .plr-list { display: flex; flex-direction: column; gap: 6px; }
.plr { position: relative; border-radius: var(--v-r-card); background: var(--v-card); cursor: pointer; transition: background .15s; }
.plr:hover { background: #1f1e1b; }
.plr.off { background: transparent; }
.plr.off:hover { background: var(--v-card); }
/* one line, the board row's columns: face · name · main · the ask */
.plr-main {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto minmax(62px, max-content);
  align-items: center; gap: 10px; padding: 8px 8px 8px 10px; min-height: 48px;
}
.plr-main.bare { grid-template-columns: 32px minmax(0, 1fr) auto; padding-right: 13px; }
.plr-ava { position: relative; width: 32px; height: 32px; }
.plr-ava .ava { border-radius: 8px; }
.plr.off .plr-ava { opacity: .45; }
.plr-tag { min-width: 0; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--v-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plr.off .plr-tag { color: var(--v-text-3); }
.plr-sub { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.plr-sub .micon { width: 18px; height: 18px; object-fit: contain; }
.plr.off .plr-sub { opacity: .5; }
.plr-act { display: flex; justify-content: flex-end; }
.plr-act .challenge-mini { min-width: 62px; padding: 0 10px; font-size: 10px; }
.plr.open, .plr.open:hover { background: var(--v-card); }
.plr.open > .plr-main, #board .rankrow.open > .rr { display: none; }
body .fr-more {
  align-self: flex-start; margin-top: 6px; height: var(--v-ctl-sm); padding: 0 14px;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--v-card); color: var(--v-text-2); border: 0; border-radius: 9px;
}
body .fr-more:hover { background: var(--v-card-2); color: var(--v-text); border: 0; }
/* the fold: offline friends behind one row of their faces. Two grid rows trade
   heights, so the faces shrink away while the rows grow in, and back. */
.fr-fold { scroll-margin-top: 96px; }
.dj-friends .fr-list + .fr-fold { margin-top: 6px; }
.fr-shut, .fr-drawer { display: grid; transition: grid-template-rows .42s var(--v-ease), opacity .32s var(--v-ease); }
.fr-shut > div, .fr-drawer > div { min-height: 0; overflow: hidden; }
.fr-shut { grid-template-rows: 1fr; }
.fr-drawer { grid-template-rows: 0fr; opacity: 0; }
.fr-open .fr-shut { grid-template-rows: 0fr; opacity: 0; }
.fr-open .fr-drawer { grid-template-rows: 1fr; opacity: 1; }
.fr-pile {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 8px 8px 10px;
  background: transparent; border: 0; border-radius: var(--v-r-card); color: var(--v-text-3);
  cursor: pointer; transition: background .15s, color .15s;
}
.fr-pile:hover { background: var(--v-card); color: var(--v-text-2); }
.fr-faces { display: flex; }
.fr-pile .fr-face {
  position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border: 0; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 2.5px var(--v-ground); filter: brightness(.68) saturate(.75);
  transition: box-shadow .15s, filter .15s;
}
.fr-pile .fr-face + .fr-face { margin-left: -9px; }
.fr-pile .fr-face:nth-child(1) { z-index: 5; }
.fr-pile .fr-face:nth-child(2) { z-index: 4; }
.fr-pile .fr-face:nth-child(3) { z-index: 3; }
.fr-pile .fr-face:nth-child(4) { z-index: 2; }
.fr-pile .fr-face img { width: 100%; height: 100%; object-fit: cover; }
.fr-pile .fr-face .hatmark { width: 66%; height: 66%; object-fit: contain; }
.fr-pile:hover .fr-face { box-shadow: 0 0 0 2.5px var(--v-card); filter: none; }
.fr-n { margin-left: 10px; font-family: var(--font-head); font-weight: 500; font-size: 11px; letter-spacing: .02em; }
.fr-chev { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; }
.fr-chev svg { width: 15px; height: 15px; }
.fr-foot { display: flex; align-items: center; margin-top: 6px; }
body .fr-foot .fr-more { margin-top: 0; }
.fr-up {
  display: grid; place-items: center; flex: none; width: 0; height: var(--v-ctl-sm); padding: 0;
  margin-right: 0; overflow: hidden; opacity: 0; border: 0; border-radius: 9px;
  background: var(--v-card); color: var(--v-text-2); cursor: pointer;
  transition: width .42s var(--v-ease), margin .42s var(--v-ease), opacity .3s, background .15s, color .15s;
}
.fr-up svg { width: 15px; height: 15px; transform: rotate(180deg); }
.fr-up:hover { background: var(--v-card-2); color: var(--v-text); }
.fr-open .fr-up { width: var(--v-ctl-sm); margin-right: 6px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fr-shut, .fr-drawer, .fr-up { transition: none; }
}
body .dj-find { background: var(--v-card); border: 0; border-radius: var(--v-r-card); padding: 20px 16px; text-align: center; }
body .dj-none { color: var(--v-text-2); font-size: 13px; }

/* the stack */
body .dojo > [data-reports-host]:not(:empty) { margin-top: 12px; }
body .dj-stack { gap: 8px; margin-top: 0; }
body .dj-item {
  background: var(--v-card); border: 0; border-radius: var(--v-r-card);
  padding: 16px; box-shadow: none;
}
body .dj-item.live { border: 0; }
body .dj-sleep {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px; color: var(--v-text); text-decoration: none;
  transition: background .15s, transform .12s var(--v-ease);
}
body .dj-sleep:hover { background: #1f1e1b; color: var(--v-text); text-decoration: none; }
body .dj-sleep:active { transform: scale(.99); }
.dj-sleep-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--v-well); display: grid; place-items: center; }
.dj-sleep-ico .rr-zz { width: 20px; height: 20px; color: var(--v-text-2); }
.dj-sleep-ico .rr-zz svg { width: 20px; height: 20px; }
.dj-sleep-name {
  min-width: 0; font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body .dj-vs { gap: 12px; }
body .dj-vs-side { gap: 8px; }
body .dj-vs-ava { width: 40px; height: 40px; border-radius: 11px; border: 0; }
body .dj-vs-side.win .dj-vs-ava { box-shadow: 0 0 0 2px var(--v-card), 0 0 0 3.5px var(--v-gold); }
body .dj-vs-side b { font-family: var(--font-body); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; color: var(--v-text-3); }
body .dj-vs-side.win b { color: var(--v-text); }
body .dj-vs-score {
  font-family: var(--font-head); font-weight: 500; font-size: 26px; letter-spacing: 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--v-well); border-radius: 12px; padding: 8px 14px;
}
body .dj-vs-score i { color: var(--v-text-3); }
body .dj-vs-score i.win { color: var(--v-gold); }
body .dj-vs-score em { font-size: 0; width: 8px; height: 2px; background: var(--v-card-3); border-radius: 1px; }
body .dj-acts { gap: 16px; margin-top: 16px; }
body .dj-claim .dj-acts .btn.gold { min-width: 128px; }
body .dj-link { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--v-text-3); text-decoration: none; }
body .dj-link:hover { color: var(--v-text); }

body .dj-fight { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; }
body .dj-fight.live { background: linear-gradient(90deg, rgba(59, 209, 111, .08), rgba(59, 209, 111, 0) 60%), var(--v-card); }
.dj-fight-ava { position: relative; width: 40px; height: 40px; }
.dj-fight:not(.live) .dj-fight-ava { opacity: .55; }
.dj-fight-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dj-fight-who b { font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--v-text); }
.dj-fight-who span { font-size: 11px; font-weight: 500; color: var(--v-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body .dj-pend {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px;
  background: var(--v-card); border: 0; border-radius: var(--v-r-card);
}
body .dj-pend-ava { width: 36px; height: 36px; flex-basis: 36px; margin: 2px; }
body .dj-pend-ava .dj-ava { border-radius: 10px; }
body .dj-pend-ava::after { border-radius: 13px; inset: -4px; }
body .dj-pend-txt > b { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--v-text); text-transform: none; }
body .dj-pend-sc { font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-gold); font-style: normal; }
body .dj-pend-x {
  width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: var(--v-card-2); color: var(--v-text-3); display: grid; place-items: center;
}
body .dj-pend-x:hover { background: var(--v-card-3); color: var(--v-text); border: 0; }

/* results */
body .dojo .dj-results { margin-top: 24px; }
body .dj-main-h { border: 0; padding: 0 2px 8px; margin: 0; background: none; }
body .dj-main-t b, body .dj-results .dj-main-t b {
  font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--v-text-3);
}
body .dj-tail { gap: 2px; margin-top: 0; }
body .dj-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 0; border-radius: 10px; font-size: 12.5px; color: var(--v-text-3);
}
body .dj-line:hover { background: var(--v-card); }
body .dj-line-w, body .dj-results .dj-line-w { font-weight: 700; color: var(--v-text); text-align: right; }
body .dj-line-s { font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-gold); }
body .dj-line-tag { font-size: 10px; border: 0; background: var(--v-card-2); border-radius: 6px; padding: 3px 6px; }
body .dj-more { display: inline-block; margin: 10px 12px 0; font-size: 11.5px; font-weight: 600; color: var(--v-text-3); }
body .dj-more:hover { color: var(--v-gold); }

/* ---------- the row's other face ---------- */
.row-face[hidden] { display: none; }
.ps {
  /* One art column for every character, so the numbers line up row to row. */
  --art: 112px;
  display: grid; grid-template-columns: var(--art) minmax(0, 1fr);
  min-height: 124px;
  border-radius: var(--v-r-card); overflow: hidden; background: var(--v-card);
  animation: v-face .26s var(--v-ease) both;
}
@keyframes v-face { from { opacity: 0; transform: translateY(4px); } }
.ps-art { position: relative; overflow: hidden; background: var(--v-card-2); }
/* gold from the left edge to an angled cut, hairline stripes on the dark side */
.ps-art::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-62deg, transparent 0 9px, rgba(246, 194, 67, .07) 9px 10px);
}
.ps-slab {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #ffd666 0%, var(--v-gold) 45%, var(--v-gold-2) 100%);
  clip-path: polygon(0 0, 72% 0, 51.5% 100%, 0 100%);
}
/* Cropped in on the character, the face (--fx, --fy from CHAR_FOCUS) set at the same
   spot in every panel: centred, a little above the middle. --z is the render's
   height as a multiple of the panel's, so the crop holds at any panel width. */
.ps-art img {
  position: absolute; left: 50%; top: 38%;
  width: auto; height: calc(var(--z, 1.6) * 100%); max-width: none;
  transform: translate(calc(var(--fx, .5) * -100%), calc(var(--fy, .2) * -100%));
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55));
}
@media (min-width: 480px) { .ps { --art: 152px; } }
.ps-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 14px 14px 14px; min-width: 0; }
.ps-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.ps-tag {
  font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--v-text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ps-tag:hover { color: var(--v-gold); }
.ps-tag small { margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--v-text-3); }
.ps-nums { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ps-aura { font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: -.01em; color: var(--v-text); }
.ps-rec { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--v-text-3); }
.ps-rec i { font-style: normal; }
.ps-rec i.w { color: var(--v-text); }
.ps-rec em { width: 6px; height: 2px; border-radius: 1px; background: var(--v-card-3); }
.ps-face { width: 18px; height: 18px; display: inline-block; }
.ps-face .ava { border-radius: 5px !important; }
.ps-nums.solo { justify-content: flex-start; }
.ps-nums.solo .ps-rec { gap: 10px; font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.ps-nums.solo .ps-rec em { width: 10px; height: 3px; border-radius: 2px; }
.ps-nums.solo .ps-face { width: 26px; height: 26px; }
.ps-nums.solo .ps-face .ava { border-radius: 7px !important; }
.ps-nums.solo .ps-wait { width: 20px; height: 20px; border-radius: 5px; }
.ps-wait { display: inline-block; width: 12px; height: 10px; border-radius: 3px; background: var(--v-card-3); animation: v-pulse 1s ease-in-out infinite; }
@keyframes v-pulse { 50% { opacity: .4; } }
.ps-bar { position: relative; height: 6px; border-radius: 3px; background: var(--v-card-3); overflow: hidden; }
.ps-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--v-gold); transition: width .5s var(--v-ease); }
.ps-bar.none i { width: 0; }
.ps-pct { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 500; font-size: 10.5px; line-height: 1; min-height: 11px; }
.ps-pct b { font-weight: 500; color: var(--v-gold); }
.ps-pct span { color: var(--v-text-3); }

/* ---------- RANKINGS ---------- */
body #app .ladpick { margin: 0 0 12px; }
body .ladpick-btn {
  grid-template-columns: minmax(0, 1fr) auto; padding: 0 14px; min-height: 48px; align-items: center;
  background: var(--v-card); border: 0; border-radius: var(--v-r-card);
}
body .ladpick-btn:hover, body .ladpick-btn[aria-expanded="true"] { background: var(--v-card-2); }
body .lp-now {
  grid-row: 1; margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .02em; color: var(--v-text);
}
body .lp-chev { grid-row: 1; width: 16px; height: 16px; color: var(--v-text-3); }
body .ladpick-menu { top: calc(100% + 6px); padding: 6px; gap: 2px; background: var(--v-card-2); border: 0; border-radius: var(--v-r-card); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .8); }
body .ladpick-row { background: transparent; border-radius: 10px; padding: 12px; }
body .ladpick-row:hover { background: var(--v-card-3); }
body .ladpick-row.on { background: var(--v-card-3); }
body .lp-nm b { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; }
body .lp-nm small { color: var(--v-text-3); font-size: 11px; }
body .lp-at { font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-gold); }
body .ladpick-all { color: var(--v-text-3); font-size: 11.5px; font-weight: 600; border: 0; padding: 12px; }

/* the onboarding card, the active-bout banner, the challenge panel */
body .onboard-progress { background: var(--v-card); border: 0; border-radius: var(--v-r-card); box-shadow: none; }
body .onboard-progress * { border-color: transparent !important; }
body .op-heading b { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--v-text); }
body .op-heading > span { font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-text-3); }
body .op-next { color: var(--v-text-2); font-size: 11.5px; }
body .rejoin-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--v-gold); color: var(--v-gold-ink); border: 0; border-radius: var(--v-r-card);
  padding: 12px 12px 12px 16px; box-shadow: none;
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
body .rejoin-banner .btn.gold, body #rejoin-btn {
  background: var(--v-gold-ink) !important; color: var(--v-gold) !important;
  font-size: 10.5px !important; padding: 0 14px !important; min-height: var(--v-ctl-sm);
}
body .chpanel > * { border: 0 !important; border-radius: var(--v-r-card) !important; background: var(--v-card) !important; box-shadow: none !important; }

/* tier labels and the shelf: words in the gutter, no rules */
body .tierband {
  margin: 16px 2px 2px; padding: 0; border: 0; background: none;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--v-text-3);
}
body .tierband::before, body .tierband::after, body .shelfline::before, body .shelfline::after { display: none !important; }
body .tierband.pit { color: var(--v-text-3); }
body .tierband.tops { color: var(--v-gold); }
body .shelfline {
  margin: 22px 2px 2px; padding: 0; border: 0; background: none;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--v-text-3);
}

/* the row */
#board { gap: 6px; margin-top: 4px; }
#board .rankrow:not(.frozen) {
  display: block; padding: 0; gap: 0;
  background: var(--v-card); color: var(--v-text);
  border: 0; border-radius: var(--v-r-card); box-shadow: none; isolation: auto;
  transition: background .15s, transform .12s;
}
#board .rankrow:not(.frozen)::before, #board .rankrow:not(.frozen)::after { display: none; }
#board .rankrow:not(.frozen):hover { background: #1f1e1b; transform: none; box-shadow: none; }
#board .rankrow:not(.frozen):active { transform: scale(.995); }
/* rank · face · name · mains · the ask. Mains and the ask sit in fixed columns so
   they line up down the board whether or not a row has a button. */
#board .rr {
  --act: 62px;
  display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) 51px minmax(var(--act), max-content);
  align-items: center; gap: 8px; padding: 8px 8px 8px 6px; min-height: 48px;
}
#board .rr-pos {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-text-2);
}
#board .rankrow.podium .rr-pos { color: var(--v-gold); }
.rr-mv { display: block; width: 9px; height: 9px; color: var(--v-text-3); }
.rr-mv svg { display: block; width: 100%; height: 100%; }
.rr-mv.up { color: var(--v-live); }
.rr-mv.down { color: var(--v-loss); transform: rotate(180deg); }
.rr-mv.adj { color: var(--v-text-3); }
.rr-mv.new { width: 6px; height: 6px; margin: 2px 0; border-radius: 50%; background: var(--v-gold); }
#board .ava-wrap { position: relative; width: 32px; height: 32px; display: block; }
#board .rankrow .ava { border-radius: 8px; }
#board .ava-dot {
  position: absolute; right: -2px; bottom: -2px; left: auto; top: auto;
  width: 7px; height: 7px; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none;
}
#board .ava-dot.on { background: var(--v-live); box-shadow: 0 0 0 2px var(--v-card); }
#board .rr-who { display: block; min-width: 0; overflow: hidden; }
#board .rr-who .tag, #board .rankrow.lower .rr-who .tag, #board .rankrow.wildcard .rr-who .tag {
  display: block; min-width: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .03em; text-shadow: none;
  text-transform: uppercase; color: var(--v-text); line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rr-sub { display: flex; align-items: center; justify-content: flex-start; gap: 3px; white-space: nowrap; overflow: hidden; }
.rr-sub .micon { flex: none; width: 15px; height: 15px; object-fit: contain; }
.rr-crew { margin-left: 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--v-text-3); }
#board .rowactions {
  position: static; transform: none; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
}
#board .rr .challenge-mini { min-width: var(--act); padding: 0 10px; font-size: 10px; }
#board .rr .ar-busy { white-space: nowrap; }
/* you are the gold plate */
#board .rankrow.me:not(.frozen) { background: var(--v-gold); }
#board .rankrow.me:not(.frozen):hover { background: #ffcd55; }
#board .rankrow.me .rr-pos, #board .rankrow.me .rr-who .tag { color: var(--v-gold-ink); }
#board .rankrow.me .rr-crew { color: rgba(28, 21, 5, .6); }
#board .rankrow.me .ava-dot.on { box-shadow: 0 0 0 2.5px var(--v-gold); }
#board .rankrow.me .rr-mv.up { color: #0d5a29; }
#board .rankrow.me .rr-mv.down { color: #8b1d22; }
#board .rankrow.me .rr-mv.adj { color: rgba(28, 21, 5, .5); }
#board .rankrow.me .rr-mv.new { background: var(--v-gold-ink); }
#board .rankrow.me.open { background: var(--v-card); }
#board .rankrow.shelved:not(.me) { background: transparent; }
#board .rankrow.shelved:not(.me):hover { background: var(--v-card); }
/* ABISMO: off the ranked list, aura intact. The spot becomes the abyss mark, the stale arrows
   go with it, and the dim is on the face and the mains, never on the name. */
#board .rankrow.shelved, #board .rankrow.shelved:hover, #board .rankrow.shelved:focus-within { opacity: 1; filter: none; }
#board .rankrow.shelved:not(.me) .ava-wrap, #board .rankrow.shelved:not(.me) .rr-sub { opacity: .45; filter: grayscale(1); }
#board .rankrow.shelved:not(.me) .rr-who .tag { color: var(--v-text-2); }
.rr-zz { display: grid; place-items: center; width: 16px; height: 16px; color: var(--v-text-3); }
.rr-zz svg { display: block; width: 16px; height: 16px; }
/* you, asleep: not the gold plate, which is a spot on the list, but your card ringed in gold */
#board .rankrow.shelved.me:not(.frozen) { background: var(--v-card); box-shadow: inset 0 0 0 1.5px var(--v-gold); }
#board .rankrow.shelved.me:not(.frozen):hover { background: #1f1e1b; }
#board .rankrow.shelved.me .rr-who .tag { color: var(--v-text); }
#board .rankrow.shelved.me .rr-zz { color: var(--v-gold); }
#board .rankrow.shelved.me .ava-dot.on { box-shadow: 0 0 0 2px var(--v-card); }
/* the spot one set hands back: an inset well, gold */
.rr-wake {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px;
  border-radius: 9px; background: var(--v-well); color: var(--v-gold);
  font-family: var(--font-head); font-weight: 600; font-size: 12px; white-space: nowrap;
}
.rr-wake svg { display: block; width: 9px; height: 9px; }
.rr-wake b { font-weight: inherit; }
#board .rankrow.wildcard:not(.me) { background: linear-gradient(90deg, rgba(34, 211, 238, .1), rgba(34, 211, 238, 0) 55%), var(--v-card); }
#board .rankrow.open { background: transparent; }
#board .rankrow.pulse { animation: none; }
/* the challenge marker and the share button, at row height */
#board .chbadge { position: static; }
#board .sharebtn {
  width: 32px; height: 32px; border: 0; border-radius: 9px; display: grid; place-items: center;
  background: rgba(28, 21, 5, .12); color: var(--v-gold-ink); box-shadow: none;
}
#board .sharebtn svg { width: 15px; height: 15px; }
#board .sharebtn2 {
  height: 32px; padding: 0 10px; border: 0; border-radius: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .06em;
  background: var(--v-gold-ink); color: var(--v-gold);
}
#board .vypill {
  height: 32px; padding: 0 10px; border: 0; border-radius: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .08em;
  background: var(--v-card-2); color: var(--v-text);
}
body .board-hint { color: var(--v-text-3); font-size: 12.5px; }

/* ---------- the match ---------- */
body .match-main, body #match-main { background: none; border: 0; box-shadow: none; padding: 0; }
body .match-chat { background: var(--v-card); border: 0; border-radius: var(--v-r-card); box-shadow: none; padding: 12px; }
body .chatmsg { background: var(--v-card-2); font-size: 13px; }
body .chatmsg.mine { background: rgba(246, 194, 67, .14); }
body .chatform input { height: var(--v-ctl); border: 0; border-radius: var(--v-r-ctl); background: var(--v-well); color: var(--v-text); font-family: var(--font-body); font-size: 13px; padding: 0 14px; }
body .chatform input:focus { background: var(--v-well); outline: 2px solid var(--v-gold); outline-offset: 0; }
body .chatform .btn { min-height: var(--v-ctl); padding: 0 16px !important; font-size: 11px !important; }
body .backbtn { width: 36px; height: 36px; border: 0; border-radius: var(--v-r-ctl); background: var(--v-card); color: var(--v-text-2); display: grid; place-items: center; }
body .backbtn svg { width: 18px; height: 18px; }
body #topbar-title { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--v-text); }
body .match-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 12px; background: var(--v-card); border-radius: var(--v-r-card);
}
/* Each fighter's picture: a plain square, name and game bars beside it. */
.mh-side:has(.mh-face) { flex-direction: row; align-items: center; gap: 14px; }
.mh-side:last-child:has(.mh-face) { flex-direction: row-reverse; align-items: center; }
.mh-who { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh-side:last-child .mh-who { align-items: flex-end; }
.mh-face { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--v-card-2); }
.mh-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-face.preset img { object-fit: contain; padding: 14%; }
@media (max-width: 560px) {
  .mh-side:has(.mh-face), .mh-side:last-child:has(.mh-face) { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mh-side:last-child:has(.mh-face) { align-items: flex-end; }
  .mh-face { width: 52px; height: 52px; border-radius: 12px; }
}
.mh-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh-side:last-child { align-items: flex-end; text-align: right; }
.mh-side b { font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--v-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-side.me b { color: var(--v-text); }
.mh-pips { display: flex; gap: 4px; }
.mh-pips i { width: 16px; height: 4px; border-radius: 2px; background: var(--v-card-3); }
.mh-side.me .mh-pips i.on { background: var(--v-gold); }
.mh-side:not(.me) .mh-pips i.on { background: var(--v-text-2); }
.mh-score {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 12px; background: var(--v-well);
  font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1;
}
.mh-score b:first-child { color: var(--v-gold); font-weight: 600; }
.mh-score b:last-child { color: var(--v-text); font-weight: 600; }
.mh-score em { width: 8px; height: 2px; border-radius: 1px; background: var(--v-card-3); }
body .phase-banner {
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 14px;
  padding: 0; border: 0; background: none; text-align: center;
}
body .phase-banner > span:first-child {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--v-text);
}
body .phase-banner .phase-sub { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--v-text-2); text-transform: none; letter-spacing: 0; }
body .stagechars { gap: 8px; margin-bottom: 12px; }
body .pickpill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px;
  background: var(--v-card); border: 0; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--v-text-2);
}
body .pickpill.locked { background: var(--v-card-2); color: var(--v-text); box-shadow: inset 0 0 0 1.5px rgba(59, 209, 111, .5); }
body .pickpill .micon { width: 22px; height: 22px; }
body .scvs { font-family: var(--font-head); font-size: 10px; color: var(--v-text-3); }
body .report-note { color: var(--v-text-3); font-size: 12px; }
body .stagegrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
body .stagegrid > .stagecard { flex: 0 0 calc((100% - (var(--cols, 3) - 1) * 8px) / var(--cols, 3)); min-width: 0; }
@media (max-width: 560px) { body .stagegrid > .stagecard { flex-basis: calc((100% - (var(--cols-sm, 2) - 1) * 8px) / var(--cols-sm, 2)); } }
body .stagecard { border: 0; border-radius: 12px; box-shadow: none; }
body .stagecard:not(:disabled):hover { border: 0; box-shadow: 0 0 0 2px var(--v-gold); transform: none; }
body .stagecard.struck { border: 0; box-shadow: none; }
body .stagecard.chosen { border: 0; box-shadow: 0 0 0 2px var(--v-live); }
body .stagecard .sname { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
body .charsearch {
  height: var(--v-ctl); padding: 0 14px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-card); color: var(--v-text); font-family: var(--font-body); font-size: 13px;
}
body .charsearch::placeholder { color: var(--v-text-3); }
body .charsearch:focus { outline: 2px solid var(--v-gold); outline-offset: 0; border: 0; }
body .chargrid { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); padding: 2px; }
body .charcard {
  border: 0; border-radius: 12px; background: var(--v-card); padding: 10px 4px 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 10.5px; color: var(--v-text-2);
}
body .charcard .cicon { width: 34px; height: 34px; }
body .charcard:not(:disabled):hover { border: 0; background: var(--v-card-2); }
body .charcard.sel { border: 0; background: var(--v-gold-tint); box-shadow: inset 0 0 0 1.5px var(--v-gold); color: var(--v-text); }
body .lockrow { margin-top: 12px; }
body .pickstatus { gap: 8px; margin-top: 12px; }
body .matchcard { border: 0; border-radius: var(--v-r-card); box-shadow: none; }
body .mc-name { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
body .playpanel { padding: 16px 0 4px; }
body .reportbtns { gap: 10px; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; }
body .reportbtns .btn { font-size: 13px; min-height: 52px; padding: 0 16px; letter-spacing: .1em; }
/* PERDÍ is the one red button that stays red: the site-wide .btn.red → gold rule below
   is for ABANDONAR and friends, but a loss has to read as a loss next to the green. */
body .reportbtns .btn.red, body .reportbtns .btn.red:hover:not(:disabled) { background: var(--v-loss); color: #2a0608; }
body .reportbtns .btn.red:hover:not(:disabled) { background: #ff6e72; }
body .gamelog { color: var(--v-text-3); font-size: 12px; background: var(--v-card); border-radius: var(--v-r-card); padding: 12px 16px; }
body .match-tools { gap: 8px; margin-top: 16px; }
body .match-tools .btn { font-size: 10.5px; min-height: var(--v-ctl-sm); padding: 0 14px; }

/* the report sheet's two edged boxes: a tint instead of a bar down one side */
body .rep-card.in, body .rep-counts.ranked { border-left: 0; background: var(--v-gold-tint); }

@media (prefers-reduced-motion: reduce) {
  .ps, .modal.sheet, .modal-back.sheet, .ls-btn.joining .ls-ico svg:first-child { animation: none !important; }
}

/* =====================================================================
   THE REST OF THE APP — profile, timeline, ladders, messages, store, admin
   The same rules as the core loop: the page is the ground (no panel around a
   whole screen), the top bar names the screen so nothing inside repeats it,
   tonal cards, wells for numbers, one control family, no hairlines.
   ===================================================================== */

/* ---------- the page ---------- */
body .card {
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  padding: 0; margin: 4px auto 28px; max-width: 552px;
}
body .card.wide { max-width: 552px; }
body .card.wide.adminpage { max-width: 760px; }
body .card h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .02em;
  color: var(--v-text); margin: 0 0 14px;
}
/* the top bar already says LADDERS / MENSAJES / ELIGE UNA LADDER */
body .sea-page-head h2, body .dmpage > h2, body .joinflow > h2, body .joinflow-step { display: none; }
/* section labels, the same voice as DIOSES / TOPS on the board */
body .section-title, body .card .section-title {
  display: block;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--v-text-3); margin: 0 0 8px; padding: 0; border: 0;
}
body .section-title small { display: none; }
body .section-title::after, body .card .section-title::after { display: none; }
body .board-hint { color: var(--v-text-3); font-size: 12px; padding: 28px 0; text-align: center; }

/* ---------- the footer: a small seal, quiet ---------- */
body .footer { background: none; }
body .footer::before { opacity: .22; }
body .ft-inner { padding: 28px 0 22px; }
body .ft-seal { width: 64px; margin-bottom: 8px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
body .ft-tag { font-size: 10px; color: var(--v-text-3); opacity: 1; }

/* ---------- fields ---------- */
body .field { margin-bottom: 12px; }
body .field label, body .optrow {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--v-text-3); margin-bottom: 6px;
}
body .field label small { display: none; }
body .field input, body .field select, body .field textarea,
body .modal input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
body .modal select, body .modal textarea,
body .card input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
body .card select, body .card textarea {
  width: 100%; min-height: var(--v-ctl); padding: 0 14px;
  border: 0; border-radius: var(--v-r-ctl); box-shadow: none;
  background: var(--v-well); color: var(--v-text);
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0;
  transition: box-shadow .15s;
}
body .field textarea, body .modal textarea, body .card textarea { padding: 11px 14px; line-height: 1.45; }
body .field input:focus, body .field select:focus, body .field textarea:focus,
body .modal input:focus, body .modal select:focus, body .modal textarea:focus,
body .card input:focus, body .card select:focus, body .card textarea:focus {
  outline: 0; box-shadow: inset 0 0 0 1.5px var(--v-gold);
}
body .card input::placeholder, body .card textarea::placeholder,
body .modal input::placeholder, body .modal textarea::placeholder { color: #8a857c; }
body .form-error { color: var(--v-loss); font-size: 12px; }
body .form-alt, body .modal-sub { color: var(--v-text-2); font-size: 13px; line-height: 1.5; }

/* ---------- the quiet button: every ghost, flat and outline button ---------- */
body .btn.ghost, body .btn.flat, body .btn.outline {
  background: var(--v-card-2); color: var(--v-text); border: 0; box-shadow: none;
}
body .btn.ghost:hover, body .btn.flat:hover, body .btn.outline:hover { background: var(--v-card-3); color: var(--v-text); }
body .btn.ghost.on { background: var(--v-gold-tint); color: var(--v-gold); }
body .btn.red { background: var(--v-gold); color: var(--v-gold-ink); border: 0; }
body .btn.xs { min-height: 28px; padding: 0 10px; font-size: 10px; border-radius: 8px; }
body .btn.block { width: 100%; }

/* ---------- tabs: one segmented control ---------- */
body .fscope, body .admintabs {
  display: flex; gap: 2px; padding: 3px; margin: 0 0 14px;
  background: var(--v-well); border: 0; border-radius: 12px;
}
body .fscope button, body .admintabs > .admintab {
  flex: 1; height: 34px; border: 0; border-radius: 9px; background: transparent; box-shadow: none;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--v-text-3); cursor: pointer;
  transition: background .2s var(--v-ease), color .2s;
}
body .fscope button.on, body .admintabs > .admintab.on {
  background: var(--v-card-3); color: var(--v-text);
}

/* ---------- notifications ---------- */
body .notifmenu {
  border: 0; border-radius: 14px; background: var(--v-card); padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
}
body .nt-head { padding: 8px 10px 10px; border: 0; }
body .nt-head b { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--v-text-3); }
body .nt-clear { font-family: var(--font-body); font-size: 11px; color: var(--v-text-3); }
body .nt-clear:hover { color: var(--v-text); }
body .nt-list { display: flex; flex-direction: column; gap: 2px; }
body .nt-list > * {
  border: 0 !important; border-radius: 10px; box-shadow: none !important;
  padding: 10px 12px; gap: 10px; font-size: 12.5px; line-height: 1.4; color: var(--v-text-2);
  background: transparent; transition: background .15s;
}
body .nt-list > *:hover { background: var(--v-card-2); }
body .nt-list > .unread { background: var(--v-gold-tint); color: var(--v-text); }
body .nt-list > *::before { display: none !important; }
body .nt-dot { width: 6px; height: 6px; background: transparent; }
body .nt-row.unread .nt-dot { background: var(--v-gold); }
body .nt-when { font-family: var(--font-head); font-size: 10px; color: var(--v-text-3); }
body .nt-empty { color: var(--v-text-3); font-size: 12px; padding: 18px 10px; }

/* ---------- centred dialogs (everything that is not a sheet) ---------- */
body .modal:not(.sheet) {
  border: 0; border-radius: 18px; background: var(--v-card); padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
body .modal:not(.sheet) h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  color: var(--v-text); margin: 0 0 10px;
}
body .modal .btns { gap: 8px; margin-top: 16px; }
body .modal-x { color: var(--v-text-3); }

/* ---------- profile ---------- */
body .profile-head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center;
  gap: 14px; padding: 4px 0 0; border: 0;
}
body .pava-wrap { position: relative; width: 64px; height: 64px; flex: none; }
body .profile-ava {
  width: 64px; height: 64px; flex: none; border: 0; border-radius: 16px; box-shadow: none;
  background: var(--v-card-2); font-size: 32px;
}
body .profile-ava .hatmark { width: 66%; height: 66%; object-fit: contain; }
body .pava-wrap:focus-visible .profile-ava { box-shadow: 0 0 0 2px var(--v-gold); }
body .pres { right: -3px; bottom: -3px; width: 13px; height: 13px; border: 0; background: transparent; box-shadow: none; }
body .pres.on { background: var(--v-live); box-shadow: 0 0 0 3px var(--v-ground); }
body .profile-name-row { align-items: baseline; gap: 8px; }
body .profile-id .ptag { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: .01em; color: var(--v-text); }
body .profile-id .pname, body .profile-name-row .preal { color: var(--v-text-3); font-size: 12px; margin-top: 0; }
body .profile-crews { margin-top: 5px; font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; color: var(--v-gold); }
body .card.rank-open .profile-crews { color: var(--v-gold); }
body .profile-id .pstatus { display: none; }
body .profile-head > .ptag-streak { background: var(--v-card-2); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); padding: 8px 12px; }
body .ptag-streak .ps-num { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
body .ptag-streak .ps-note { font-family: var(--font-body); font-size: 10px; color: var(--v-text-3); letter-spacing: .04em; }
body .card .profile-actions, body.on-profile .app > .card .profile-actions {
  grid-column: 1 / -1; margin: 0; width: auto; display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: flex-start; gap: 6px;
}
body .profile-actions .btn, body .profile-actions .btn.ghost {
  min-height: var(--v-ctl-sm); padding: 0 12px; border-radius: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-shadow: none;
}
body .profile-actions .btn.ghost { background: var(--v-card); color: var(--v-text-2); }
body .profile-actions .btn.ghost:hover:not(:disabled) { background: var(--v-card-2); color: var(--v-text); }
body .profile-actions .btn.ghost.on, body .profile-actions .btn.xmash.on { background: var(--v-gold-tint); color: var(--v-gold); }
/* the record, as a flipped row shows it */
body .pf-rec { display: grid; gap: 8px; margin: 18px 0 22px; padding: 16px; border-radius: var(--v-r-card); background: var(--v-card); }
body .pf-rec-n { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: -.01em; }
body .pf-rec-n b { font-weight: 600; color: var(--v-text); }
body .pf-rec-n i { font-style: normal; color: var(--v-text-3); }
body .pf-rec-n em { width: 10px; height: 3px; border-radius: 2px; background: var(--v-card-3); }
body .pf-block { margin: 0 0 22px; padding: 0; border: 0; background: none; }
body .pf-stands { display: flex; flex-direction: column; gap: 6px; border: 0; border-radius: 0; background: none; overflow: visible; }
body .pf-stand {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 14px;
  border: 0; border-radius: var(--v-r-card); background: var(--v-card); color: var(--v-text);
  transition: background .15s, transform .12s;
}
body .pf-stand:hover { background: #1f1e1b; }
body .pf-stand:active { transform: scale(.995); }
body .pf-stand-name { flex: 1; min-width: 0; font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .pf-stand-aura {
  height: 32px; min-width: 52px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px;
  background: var(--v-well); font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-text);
}
body .pf-stand-pos { width: 56px; display: flex; align-items: baseline; justify-content: flex-end; gap: 2px; font-family: var(--font-head); }
body .pf-stand-pos b { font-weight: 600; font-size: 15px; color: var(--v-gold); }
body .pf-stand-pos small { font-size: 10px; color: var(--v-text-3); }
body .pf-stand.zz .pf-stand-pos { align-items: center; }
body .trophycase { gap: 6px; }
body .tc-tile { border: 0; border-radius: 12px; background: var(--v-card); box-shadow: none; }
body .tc-name { font-family: var(--font-body); font-size: 10px; color: var(--v-text-2); letter-spacing: .02em; }
body .art-gallery { gap: 6px; }
body .ag-tile { border: 0; border-radius: 12px; box-shadow: none; background: var(--v-card); }
body .ag-opp { font-family: var(--font-body); font-size: 10px; }
body .mainschips { gap: 6px; }
body .mainchip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px;
  border: 0; border-radius: 9px; background: var(--v-card); box-shadow: none;
  font-family: var(--font-body); font-size: 11px; color: var(--v-text-2);
}
body .mainchip .micon { width: 20px; height: 20px; margin: 0; }
body .mainwr { font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-text); }
body .card.rank-open h2, body .card.rank-open .section-title { color: var(--v-text-3); }
body .wallwrap { max-width: 552px; margin: 0 auto; }
/* One column at every width, like every other page: the phone's stack with the
   wall under it, both in the 552px measure. */
/* logros: the phone's crest chips, with a name you can read */
body .pf-trophies .tc-tile { flex: 0 0 84px; gap: 6px; padding: 10px 6px 9px; border-radius: 12px; }
body .pf-trophies .tc-art { width: 36px; height: 36px; }
body .pf-trophies .tc-name {
  max-width: 100%; font-weight: 700; font-size: 9px; line-height: 1.2; letter-spacing: .04em;
  text-align: center; white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance;
}
/* museo: capped at four, so it is one row on a phone too */
body .pf-museo { display: block; }
/* the phone swipes both shelves; with a pointer and room they wrap */
@media (min-width: 641px) {
  body .pf-trophies .trophycase { display: flex; flex-wrap: wrap; gap: 6px; }
}


/* ---------- sponsors: the strip over a board and under a fight ----------
   A card like every other row, one fixed height, the marks at one optical height
   in their own colours. No glow, no tint: the card is the plate. */
body .sponsorstrip {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; margin: 0 0 12px; padding: 10px 18px;
  border-radius: var(--v-r-card); background: var(--v-card);
}
body .sponsorlist { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; min-width: 0; }
body .sponsor { display: inline-flex; align-items: center; max-width: 132px; transition: opacity .15s; }
body .sponsor img { display: block; height: auto; max-height: 26px; width: auto; max-width: 132px; object-fit: contain; filter: none; }
body .sponsor .sponsor-name {
  font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--v-text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body a.sponsor:hover { transform: none; opacity: .8; }
body a.sponsor:hover img { filter: none; }
body .sponsor-x { font-size: 10px; color: var(--v-text-3); }
#match-sponsors .sponsorstrip { margin: 12px 0 0; }
@media (max-width: 560px) {
  body .sponsorstrip { min-height: 50px; padding: 10px 14px; }
  body .sponsorlist { gap: 8px 16px; }
  body .sponsor, body .sponsor img { max-width: 104px; }
  body .sponsor img { max-height: 22px; }
}


/* ---------------------------------------------------------------------
   TIMELINE — posts, the event band and the composer, in the same tones.
   The plate is a card now, inside the gutter like every other card; the
   dot screen goes, the wash stays as the only colour the plate carries.
   --------------------------------------------------------------------- */
body .card.wide.feedwrap { --gut: 0px; max-width: 552px; }
body .feedlist { gap: 22px; margin-top: 16px; }
body .fpost { padding-top: 0; }

/* composer */
body .wallbox { gap: 10px; margin: 0 0 18px; padding: 0; }
body .wb-ava { width: 36px; height: 36px; border-radius: 10px; background: var(--v-card-2); }
body .wb-text { min-height: 64px; font-size: 13px; }
body .wb-text::placeholder { color: #8a857c; }
body .wb-beats { margin-top: 10px; }
body .wb-beats-head {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
  color: var(--v-text-3); margin-bottom: 6px;
}
body .wb-beat {
  height: var(--v-ctl-sm); padding: 0 24px 0 6px; gap: 6px; border-radius: 9px;
  background: var(--v-card); color: var(--v-text-2); font-size: 11px;
  transition: background .15s, color .15s;
}
body .wb-beat:hover { background: var(--v-card-2); }
body .wb-beat.on { background: var(--v-gold-tint); color: var(--v-gold); }
body .wb-foot { margin-top: 10px; gap: 12px; }
body .wb-count { font-family: var(--font-head); font-size: 10px; color: var(--v-text-3); }
body .wb-count.low { color: var(--v-gold); }
body .wall-locked { margin: 0 0 18px; padding: 0; font-size: 12px; color: var(--v-text-2); }

/* the header line */
body .fp-head { gap: 8px; padding: 0 0 8px; }
body .fp-faces .fp-ava { width: 22px; height: 22px; border: 0; border-radius: 7px; background: var(--v-card-2); }
body .fp-faces.two .fp-ava + .fp-ava { margin-left: -5px; box-shadow: 0 0 0 2px var(--v-ground); }
body .fp-who { font-size: 11.5px; color: var(--v-text-2); }
body .fp-who a, body .fp-who b {
  font-family: var(--font-body); font-weight: 700; font-size: 11.5px; letter-spacing: .03em; color: var(--v-text);
}

/* the plate */
body .fm {
  min-height: 132px; padding: 14px 16px; border-radius: var(--v-r-card);
  background: var(--v-card);
}
body .fm-tex { display: none; }
body .fm.m-gold .fm-glow, body .fm.m-crown .fm-glow {
  background: radial-gradient(120% 100% at 50% 0%, rgba(246, 194, 67, .09), transparent 60%);
}
body .fm.m-fire .fm-glow, body .fm.m-ember .fm-glow {
  background: radial-gradient(120% 100% at 50% 100%, rgba(239, 90, 95, .1), transparent 60%);
}
body .fm.has-art .fm-glow { background: none; }
body .fm-label {
  top: 12px; font-family: var(--font-body); font-weight: 700; font-size: 10px;
  letter-spacing: .12em; color: var(--v-text-3);
}
body .fm.m-fire .fm-label, body .fm.m-ember .fm-label { color: var(--v-loss); }
body .fm.has-art .fm-label { color: var(--v-text); }
body .fm-duel { gap: 10px; margin-top: 10px; }
body .fm-side { gap: 8px; }
body .fm-ava {
  width: clamp(44px, 12vw, 64px); height: clamp(44px, 12vw, 64px);
  border: 0; border-radius: 14px; background: var(--v-card-2);
}
body .fm-side.win .fm-ava { box-shadow: 0 0 0 2px var(--v-gold); }
body .fm.has-art .fm-side.win .fm-ava { box-shadow: 0 0 0 2px var(--v-gold), 0 4px 12px rgba(0, 0, 0, .55); }
body .fm-tag {
  font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .03em; color: var(--v-text-2);
}
body .fm-side.win .fm-tag { color: var(--v-text); }
body .fm-score {
  gap: 6px; padding: 0 14px; height: 48px; border: 0; border-radius: 12px; box-shadow: none;
  background: var(--v-well); color: var(--v-text);
  font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 5vw, 24px);
}
body .fm-score i { opacity: 1; color: var(--v-text-3); font-weight: 400; }
body .fm-swords { border: 0; border-radius: 12px; background: rgba(239, 90, 95, .12); }

/* under the plate */
body .fp-bar { gap: 14px; padding: 10px 2px 0; }
body .fp-act { color: var(--v-text-2); font-family: var(--font-head); font-weight: 500; font-size: 10.5px; transition: transform .12s var(--v-ease), color .15s; }
body .fp-act:hover { color: var(--v-text); }
body .fp-act svg { width: 18px; height: 18px; }
body .gg-glyph { border-width: 1.5px; border-radius: 6px; font-family: var(--font-body); font-weight: 800; }
body .fp-act.gg.on { color: var(--v-gold); }
body .fp-act.gg.on .gg-glyph { background: var(--v-gold); border-color: var(--v-gold); color: var(--v-gold-ink); }
body .fp-body { padding: 0 2px; }
body .fp-caption, body .fp-line { font-size: 13px; color: var(--v-text); }
body .fp-line a, body .fp-line b, body .fp-caption b { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--v-text); }
body .fp-stamp { margin-top: 8px; font-family: var(--font-head); font-size: 9.5px; letter-spacing: .04em; color: var(--v-text-3); }
body .fp-viewall { font-size: 11.5px; color: var(--v-text-2); }
body .fp-viewall:hover { color: var(--v-text); }
body .fw-note p { color: var(--v-text); }

/* comments */
body .fp-clist { gap: 9px; }
body .fc { gap: 9px; }
body .fc-ava { width: 24px; height: 24px; border-radius: 7px; background: var(--v-card-2); }
body .fc-body { font-size: 12.5px; }
body .fc-tag { font-family: var(--font-body); font-weight: 700; font-size: 11.5px; letter-spacing: .03em; color: var(--v-text); }
body .fc-text { color: var(--v-text); }
body .fc-time { font-family: var(--font-head); font-size: 9px; color: var(--v-text-3); }
body .fc-del { color: var(--v-text-3); }
body .fp-back, body .fp-link { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; color: var(--v-text-2); }
body .fp-back:hover, body .fp-link:hover { color: var(--v-text); }
body .post-top { margin: 0 0 14px; }

/* the band between fights: one tonal card, rows split by space, not rules */
body .fgroup { margin: 0; border-radius: var(--v-r-card); background: var(--v-card); padding: 4px 0; }
body .fgroup > .fev + .fev { border-top: 0; }
body.purge-on .fgroup { background: var(--v-card); }
body .fev-row { gap: 10px; padding: 8px 12px; }
body .fev-text { color: var(--v-text-2); }
body .fev-main { font-size: 11px; }
body .fev-line a, body .fev-line b { font-family: var(--font-body); font-weight: 700; font-size: 1em; letter-spacing: .03em; color: var(--v-text); }
body .fev-when { font-family: var(--font-head); font-size: .8em; color: var(--v-text-3); }
body .fev-thread { color: var(--v-text-2); }
body .fev-cap { color: var(--v-text); }
body .fev .fev-comments { padding: 0 12px; }
body .fline { padding: 0; font-size: 12.5px; color: var(--v-text-2); }
body .fline-text a, body .fline-text b { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; color: var(--v-text); }
body .fline-time { font-family: var(--font-head); font-size: 9.5px; color: var(--v-text-3); }

/* who reacted */
body .rxw-total { background: var(--v-card-2); font-family: var(--font-head); font-weight: 500; color: var(--v-text); }
body a.rxw-row:hover { background: var(--v-card-2); }
body .rxw-ava { border-radius: 9px; background: var(--v-card-2); }
body .rxw-room { background: var(--v-card-3); }
body .rxw-tag { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .03em; color: var(--v-text); }
body .rxw-row.crowd .rxw-tag { color: var(--v-text-2); }
body .rxw-face b { font-family: var(--font-head); font-weight: 500; color: var(--v-text-2); }


/* ---------------------------------------------------------------------
   LADDERS — the directory. One row per board, the same tonal row as the
   board itself: name and state on top, size, run and podium under it, the
   one action on the right. The headings go; the icons carry the columns.
   --------------------------------------------------------------------- */
body .sea-page-head { flex-direction: row; justify-content: flex-end; margin: 0 0 12px; }
body .sea-page-head > .btn { margin: 0; }
body .seatable-wrap { overflow: visible; margin: 0; }
body .seatable, body .seatable tbody { display: block; width: 100%; min-width: 0; }
body .seatable thead { display: none; }
body .seatable tbody { display: flex; flex-direction: column; gap: 8px; }
body .seatr {
  display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  column-gap: 14px; row-gap: 8px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: var(--v-r-card); background: var(--v-card);
  transition: background .15s;
}
body .seatr:hover { background: #1f1e1b; }
body .seatr > td { display: block; }
body .seatr > td, body .seatr:hover > td, body .seatr.mine > td, body .seatr.mine:hover > td {
  padding: 0; background: none; min-width: 0; width: auto;
  font-family: var(--font-body); font-size: 11px; color: var(--v-text-2); line-height: 1.3;
}
body .seatr.closed > td { opacity: 1; }
body .seatr.closed > td:not(.sea-c-acts) { opacity: .55; }
body .seatr > .sea-c-name { grid-column: 1 / 5; grid-row: 1; display: flex; align-items: center; gap: 8px; }
body .seatr > td:nth-child(2), body .seatr > td:nth-child(6) { display: none; }
body .seatr > td:nth-child(3) { grid-column: 1; grid-row: 2; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21c.8-4 3.8-6 7.5-6s6.7 2 7.5 6'/%3E%3C/svg%3E"); }
body .seatr > td:nth-child(4) { grid-column: 2; grid-row: 2; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 17.5 3 6V3h3l11.5 11.5M13 19l6-6M16 16l4 4M19 21l2-2M14.5 6.5 18 3h3v3l-3.5 3.5M5 14l4 4M7 17l-3 3M3 19l2 2'/%3E%3C/svg%3E"); }
body .seatr > td:nth-child(5) { grid-column: 3; grid-row: 2; white-space: nowrap; color: var(--v-text-3); }
body .seatr > .sea-c-gods { grid-column: 4; grid-row: 2; justify-self: start; }
body .seatr > .sea-c-acts {
  grid-column: 5; grid-row: 1 / 3; align-self: center;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 6px;
}
body .seatr > td.sea-c-n {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-weight: 500; font-size: 11px; color: var(--v-text);
}
body .seatr > .sea-c-n::before {
  content: ''; width: 13px; height: 13px; flex: none; background: var(--v-text-3);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
body .seaname-go {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; color: var(--v-text);
}
body .seaname-go:hover { color: var(--v-gold); }
body .stchip, body .sea-c-name .stchip {
  flex: none; margin: 0; height: 20px; padding: 0 7px; display: inline-flex; align-items: center;
  border: 0; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
}
/* a running ladder is the normal case: only Registro and closed say anything */
body .sea-c-name .stchip.open { display: none; }
@media (max-width: 479px) {
  body .seatr > td:nth-child(5):not(:has(.stagemenu)) { display: none; }
  body .seatr:not(:has(.stagemenu)) > .sea-c-gods { grid-column: 3 / 5; }
}
body .stchip.open, body .stchip.approved { background: rgba(59, 209, 111, .12); color: var(--v-live); border: 0; }
body .stchip.pending { background: var(--v-gold-tint); color: var(--v-gold); border: 0; }
body .stchip.used { background: var(--v-card-2); color: var(--v-text-3); border: 0; }
body .stchip.denied { background: rgba(239, 90, 95, .12); color: var(--v-loss); border: 0; }
body .stagemenu > summary, body .stagenow {
  height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 9.5px; letter-spacing: .08em;
}
body .stagemenu > summary { background: var(--v-gold-tint); color: var(--v-gold); }
body .stagenow { padding: 0; color: var(--v-text-3); }
body .stagemenu-pop { border-radius: 10px; padding: 4px; background: var(--v-card-3); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .8); }
body .stagemenu-pop button { border-radius: 7px; font-family: var(--font-body); font-weight: 700; font-size: 11px; color: var(--v-text); }
body .stagemenu-pop button:hover { background: var(--v-gold-tint); color: var(--v-gold); }
body .sea-c-gods .sgods { gap: 4px; }
body .sea-c-gods .ava, body .sgod .ava.sm { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; }
body .sea-c-gods .sgods.empty { color: var(--v-text-3); font-size: 11px; font-style: normal; }
body .btn.seabig { height: var(--v-ctl-sm); min-height: var(--v-ctl-sm); padding: 0 14px; font-size: 10.5px; letter-spacing: .08em; }
body .sealeave { font-size: 10px; color: var(--v-text-3); }
body .sealeave:hover { color: var(--v-text-2); text-decoration: none; }
body .joinchip {
  height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 9.5px; letter-spacing: .08em;
}
body .joinchip.shut { background: var(--v-card-2); color: var(--v-text-3); }
body .joinchip.wait { background: var(--v-gold-tint); color: var(--v-text-2); }
body .joinchip.in { background: var(--v-gold-tint); color: var(--v-gold); }
body .joinchip.open { background: rgba(59, 209, 111, .12); color: var(--v-live); }
body .seacog {
  width: var(--v-ctl-sm); height: var(--v-ctl-sm); border: 0; border-radius: 9px;
  background: var(--v-card-2); color: var(--v-text-2); font-size: 15px;
  transition: background .15s, color .15s;
}
body .seacog:hover { background: var(--v-card-3); color: var(--v-text); border: 0; }


/* ---------------------------------------------------------------------
   MESSAGES — the list as tonal rows, the thread as two tones of bubble.
   --------------------------------------------------------------------- */
body .reachpair { gap: 6px; }
body .reachbtn, body .reachbtn.blue, body .reachbtn.red {
  height: var(--v-ctl-sm); padding: 0 12px; display: inline-flex; align-items: center; border-radius: 9px;
  background: var(--v-gold); color: var(--v-gold-ink);
  font-family: var(--font-body); font-weight: 800; font-size: 10.5px; letter-spacing: .08em;
  transition: background .15s, transform .12s var(--v-ease);
}
body .reachbtn:hover { filter: none; background: #ffd25e; }
body .reachbtn:active { transform: scale(.96); }
body .card.wide.dmpage { max-width: 552px; }
body .dmlist { gap: 6px; }
body .dmrow {
  gap: 12px; min-height: 60px; padding: 10px 12px; border: 0; border-radius: var(--v-r-card);
  background: var(--v-card); transition: background .15s;
}
body .dmrow:hover { background: #1f1e1b; }
body .dmrow .ava, body .dmwho .ava { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--v-card-2); box-shadow: none; border: 0; }
body .dmrow-who b { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; color: var(--v-text); }
body .dmrow-last { font-size: 12px; color: var(--v-text-3); }
body .dmrow.unread .dmrow-last { color: var(--v-text); }
body .dmrow-when { font-family: var(--font-head); font-size: 9.5px; color: var(--v-text-3); }
body .dmrow-n { background: var(--v-gold); color: var(--v-gold-ink); font-family: var(--font-head); font-weight: 600; }
/* the top bar already carries the way back */
body .dmback { display: none; }
body .dmhead { gap: 10px; margin-bottom: 8px; }
body .dmwho { gap: 10px; color: var(--v-text); }
body .dmwho .ava { flex-basis: 36px; width: 36px; height: 36px; }
body .dmwho b { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
body .dmreach { margin-left: auto; }
body .dmmsg { padding: 8px 12px; border-radius: 16px; background: var(--v-card-2); color: var(--v-text); }
body .dmmsg.mine { background: #3a3019; }
body .dmmsg:not(.mine):not(.first) { border-top-left-radius: 6px; }
body .dmmsg:not(.mine):not(.last) { border-bottom-left-radius: 6px; }
body .dmmsg.mine:not(.first) { border-top-right-radius: 6px; }
body .dmmsg.mine:not(.last) { border-bottom-right-radius: 6px; }
body .dmmsg-body { font-size: 13px; }
body .dmmsg-at { font-family: var(--font-head); font-size: 8.5px; color: var(--v-text-3); }
body .dmtick, body .dmtick.delivered { color: var(--v-text-3); }
body .dmtick.read { color: var(--v-gold); }
body .dmtrash { color: var(--v-text-3); }
body .dmform { gap: 8px; margin-top: 10px; }
body .dmform input { min-height: var(--v-ctl); padding: 0 14px; border-radius: var(--v-r-ctl); background: var(--v-well); color: var(--v-text); font-size: 13px; }
body .dmform input::placeholder { color: #8a857c; }
body .dmform input:focus { background: var(--v-well); box-shadow: inset 0 0 0 1.5px var(--v-gold); }
body .buzzbtn, body .gifbtn { width: var(--v-ctl); min-height: var(--v-ctl); border-radius: var(--v-r-ctl); background: var(--v-card-2); }
body .gifbtn { width: auto; padding: 0 12px; color: var(--v-text-2); font-family: var(--font-body); font-weight: 800; }
body .buzzbtn:hover, body .gifbtn:hover { background: var(--v-card-3); }
body .dmform .btn.gold { min-height: var(--v-ctl); padding: 0 16px; }
body .dmfan { border-radius: 14px; background: var(--v-card-3); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .8); }


/* ---------------------------------------------------------------------
   RESULT — the end of a set: the score in a card, the games as rows,
   the rate as the one gold number. (Gooby's screen is not touched here.)
   --------------------------------------------------------------------- */
body .resultscreen { padding-top: 8px; }
body .res-board { margin: 0 auto 14px; padding: 14px 16px 18px; border: 0; border-radius: var(--v-r-card); background: var(--v-card); }
body .res-board .voy-top { margin-bottom: 12px; padding: 0; }
body .res-board .voy-mode, body .res-board .voy-bo {
  font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .1em; color: var(--v-text-3);
}
body .res-board .voy-scoreline { gap: 12px; }
body .res-board .voy-scoreline b { font-family: var(--font-head); font-weight: 600; font-size: 40px; color: var(--v-text); }
body .res-board .voy-scoreline i { width: 16px; height: 3px; color: var(--v-text-3); }
body .resultscreen.won .res-board .voy-line > .voy-scoreline b:first-child,
body .resultscreen.lost .res-board .voy-line > .voy-scoreline b:last-child { color: var(--v-gold); }
body .res-board .voy-f { gap: 8px; }
body .res-board .voy-ava { width: 28px; height: 28px; border-radius: 8px; background: var(--v-card-2); }
body .res-board .voy-tag { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; color: var(--v-text); }
@media (min-width: 561px) {
  body .res-board .voy-scoreline b { font-size: 52px; }
  body .res-board .voy-ava { width: 36px; height: 36px; border-radius: 10px; }
  body .res-board .voy-tag { font-size: 15px; }
}
body .res-top { margin-bottom: 18px; }
body .btn.big-cta { max-width: none; height: 52px; padding: 0 22px; border-radius: 12px; font-size: 13px; letter-spacing: .14em; }
body .res-top .rm-said { font-size: 13px; color: var(--v-text-2); }
body .res-chat { margin-bottom: 22px; }
body .res-chat .res-chatbox { height: 240px; }
@media (min-width: 1000px) { body .res-chat .res-chatbox { height: min(560px, calc(100vh - 40px)); } }
body .res-games { gap: 6px; margin-bottom: 22px; }
body .res-game { gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--v-card); }
body .res-game.won, body .res-game.lost { box-shadow: none; }
body .rg-n { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--v-text-3); }
body .rg-pic { border-radius: 6px; filter: none; }
body .rg-stage { font-size: 12.5px; color: var(--v-text); }
body .rg-stage small { font-size: 10px; color: var(--v-text-3); }
body .rg-chars i { font-family: var(--font-body); font-size: 9px; color: var(--v-text-3); }
body .rg-out { font-family: var(--font-body); font-weight: 800; font-size: 10px; letter-spacing: .08em; }
body .res-game.won .rg-out { color: var(--v-live); }
body .res-game.lost .rg-out { color: var(--v-loss); }
body .res-rate { gap: 10px; margin-bottom: 8px; }
body .rr-k { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; color: var(--v-text-3); }
body .rr-v { font-family: var(--font-head); font-weight: 600; color: var(--v-gold); }
body .rr-v b { font-size: 36px; font-weight: 600; }
body .rr-v i { font-size: 15px; }
body .rr-d { font-family: var(--font-head); font-weight: 600; font-size: 11px; }
body .rr-d.up { color: var(--v-live); }
body .rr-d.down { color: var(--v-loss); }
body .res-h2h { font-size: 11px; letter-spacing: .02em; color: var(--v-text-3); margin-bottom: 20px; }
body .res-actions { gap: 8px; }
body .res-exit { display: flex; width: fit-content; margin: 8px auto 0; }


/* join flow: the same tonal row */
body .joinflow { margin: 4px auto 28px; width: min(552px, 100%); }
body .joinflow-list { gap: 8px; }
body .joinflow-row { min-height: 60px; padding: 10px 12px 10px 14px; border-radius: var(--v-r-card); background: var(--v-card); }
body .joinflow-name b { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; }
body .joinflow-name span { font-size: 11px; color: var(--v-text-3); }
body .joinflow-row .btn { min-height: var(--v-ctl-sm); height: var(--v-ctl-sm); padding: 0 14px; }


/* ---------------------------------------------------------------------
   START A LADDER — the offer on open ground, in the app's own scale.
   --------------------------------------------------------------------- */
body .seasonoffer { gap: 28px; padding: 28px 4px 12px; }
body .offer-headline {
  font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--v-text);
}
@media (min-width: 561px) { body .offer-headline { font-size: 28px; } }
body .offer-amount { font-family: var(--font-head); font-weight: 600; font-size: 44px; color: var(--v-gold); }
body .offer-usd { font-size: 11.5px; color: var(--v-text-3); }
body .offer-art { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; color: var(--v-text-2); }
body .offer-tiers { gap: 8px; }
body .offer-tier {
  flex: 1 1 0; padding: 16px 10px 14px; border: 0; border-radius: var(--v-r-card);
  background: var(--v-card); opacity: 1; transition: box-shadow .2s var(--v-ease), background .15s;
}
body .offer-tier:not(.on) .offer-amount { color: var(--v-text-2); }
body .offer-tier.on { box-shadow: inset 0 0 0 1.5px var(--v-gold); background: #201e1a; }
body .offer-tier .offer-amount { font-size: 30px; }
@media (hover: hover) and (pointer: fine) { body .offer-tier:not(.on):hover { opacity: 1; background: #1f1e1b; } }
body .offer-buy form { margin-top: 22px; gap: 10px; }
body .offer-name, body .card .offer-name {
  min-height: var(--v-ctl); padding: 0 14px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-well); text-align: left; font-size: 13px;
}
body .offer-name:focus { box-shadow: inset 0 0 0 1.5px var(--v-gold); }
/* the button on this page is the page's one action */
body .seasonoffer .btn.flat { background: var(--v-gold); color: var(--v-gold-ink); }
body .seasonoffer .btn.flat:hover { background: #ffd25e; }
body .offer-fine { margin-top: 16px; font-size: 11px; color: var(--v-text-3); }
body .fine-purge { color: var(--v-text-2); }
body .billnotice { border: 0; border-radius: 12px; background: var(--v-card); }


/* ---------------------------------------------------------------------
   MOJOS — the pack is a well inside the sheet, not a framed box in it.
   --------------------------------------------------------------------- */
body .mojo-pack { margin-top: 16px; padding: 18px 16px 16px; border: 0; border-radius: var(--v-r-card); background: var(--v-well); }
body .mojo-pack-label { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; color: var(--v-text-2); }
body .mojo-pack .btn + .btn { margin-top: 8px; }
body .mojo-pack-note { font-size: 11px; color: var(--v-text-3); }
body .ask .mojo-pack-label { color: var(--v-gold); }
body .ask-later { color: var(--v-text-3); }
body .ask-later:hover { color: var(--v-text-2); }
body .modal h3.ask-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; color: var(--v-text); }
body .ask-line { font-size: 13px; color: var(--v-text-2); }
body .mb-head { font-family: var(--font-body); font-weight: 700; color: var(--v-text-3); }
body .mb-list { background: var(--v-well); border-radius: var(--v-r-card); }
body .mb-n { color: var(--v-text-3); }
body .mb-tag { color: var(--v-text); }
body .mb-row.first .mb-n, body .mb-row.first .mb-tag { color: var(--v-gold); }


/* ---------------------------------------------------------------------
   SIGNED OUT — the rite keeps its seal; everything you type into and
   press joins the app's controls. The rise is quicker and closer.
   --------------------------------------------------------------------- */
body .nav-burger { width: 36px; height: 36px; border: 0; border-radius: var(--v-r-ctl); background: var(--v-card); }
body .nav-burger-bar { width: 16px; background: var(--v-text); }
body .rite { max-width: 400px; padding: 0 4px; }
body .rite > * { animation-duration: .45s; animation-timing-function: var(--v-ease); }
body .rite > *:nth-child(2) { animation-delay: .04s; }
body .rite > *:nth-child(3) { animation-delay: .08s; }
body .rite > *:nth-child(4) { animation-delay: .12s; }
body .rite > *:nth-child(5) { animation-delay: .16s; }
body .rite > *:nth-child(6) { animation-delay: .2s; }
body .rite > *:nth-child(7) { animation-delay: .24s; }
body .rite-seal { width: 168px; height: 168px; margin: 8px 0 20px; }
body .rite-seal-mark.is-gooby { width: 52px; height: 52px; }
body .rite-kicker { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; margin-left: 0; color: var(--v-text-3); opacity: 1; }
body .rite-title {
  margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.1;
  letter-spacing: 0; color: var(--v-text); text-shadow: none;
}
body .rite-whisper { font-size: 13px; line-height: 1.55; color: var(--v-text-2); opacity: 1; }
body .rite-form { margin-top: 24px; gap: 12px; }
body .rite-field > span {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
  color: var(--v-text-3); opacity: 1; margin: 0 0 6px;
}
body .rite-field:focus-within > span { color: var(--v-text-2); }
body .rite-field input {
  min-height: var(--v-ctl); padding: 0 14px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-well); color: var(--v-text); font-size: 14px; transition: box-shadow .15s;
}
body .rite-field input:focus { border: 0; box-shadow: inset 0 0 0 1.5px var(--v-gold); }
body .rite-field input::placeholder { color: #8a857c; opacity: 1; }
body .rite-field .crewctl { width: var(--v-ctl); height: var(--v-ctl); flex-basis: var(--v-ctl); border: 0; border-radius: var(--v-r-ctl); background: var(--v-card-2); }
body .rite-check-label { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; color: var(--v-text-3); opacity: 1; }
body .rite-check { color: var(--v-text-2); }
body .rite-check input { border-color: var(--v-text-3); border-radius: 5px; }
body .rite-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--v-text-3); }
body .rite-err { color: var(--v-loss); font-size: 12px; }
body .rite-submit {
  margin-top: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-gold); color: var(--v-gold-ink);
  font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: .14em;
  transition: background .15s, transform .12s var(--v-ease);
}
body .rite-submit > span { margin-left: 0; }
body .rite-submit::before { display: none; }
body .rite-submit:hover, body .rite-submit:focus-visible { color: var(--v-gold-ink); background: #ffd25e; box-shadow: none; letter-spacing: .14em; }
body .rite-submit:focus-visible { outline: 2px solid var(--v-gold); outline-offset: 2px; }
body .rite-submit:active { transform: scale(.98); }
body .rite-alt { margin-top: 22px; font-size: 12px; letter-spacing: 0; color: var(--v-text-3); }
body .rite-alt a { margin-left: 4px; padding: 0; border: 0; font-size: 11.5px; letter-spacing: .06em; color: var(--v-text); }
body .rite-alt a:hover { color: var(--v-gold); }
body .rite-alt-tight { margin-top: 10px; }
/* Google / Discord: one quiet control each, the provider's own mark in its own colours */
body .rite-oauth { width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
body .rite-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: var(--v-r-ctl);
  background: var(--v-card-2); color: var(--v-text); text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; letter-spacing: 0;
  transition: background .15s, transform .12s var(--v-ease);
}
body .rite-oauth-btn:hover, body .rite-oauth-btn:focus-visible { background: var(--v-card-3); color: var(--v-text); }
body .rite-oauth-btn:active { transform: scale(.98); }
body .oauth-mark { width: 18px; height: 18px; flex: none; }
/* on sign-up they come before the long form: the short way in, first */
body .rite-whisper + .rite-oauth { margin-top: 24px; }
/* the outside account a new player is finishing with */
body .rite-who {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--v-ctl); padding: 0 14px; border-radius: var(--v-r-ctl);
  background: var(--v-card); color: var(--v-text-2); font-size: 13px;
}
body .rite-who .oauth-mark { width: 16px; height: 16px; }
body .rite-who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a link wearing the gold button: the dead reset link's way out */
body .rite-submit-link {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 100%; margin-top: 24px; text-decoration: none;
}


/* ---------------------------------------------------------------------
   GODMODE — a light pass: tonal rows and panels, quiet icon buttons, the
   tabs on one line that scrolls instead of wrapping.
   --------------------------------------------------------------------- */
body .admintabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body .admintabs::-webkit-scrollbar { display: none; }
body .admintabs > .admintab { flex: 1 0 auto; padding: 0 12px; white-space: nowrap; }
body .adminbar { padding: 10px 12px; border: 0; border-radius: var(--v-r-card); background: var(--v-card); }
body .adminlist { gap: 6px; }
body .adminrow { padding: 10px 12px; border: 0; border-radius: var(--v-r-card); background: var(--v-card); }
body .admininfo b { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--v-text); }
body .crewpos { font-family: var(--font-head); font-weight: 600; color: var(--v-gold); }
body .adminsub { font-size: 11px; color: var(--v-text-3); }
body .crewkey { margin: 0 2px 10px; font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--v-text-3); }
body .crewact { border: 0; background: var(--v-card-2); color: var(--v-text-2); }
body .crewact:hover { border: 0; background: var(--v-card-3); color: var(--v-text); }
body .crewacts .rolesel, body .card .crewacts select { min-height: 32px; height: 32px; width: auto; min-width: 104px; max-width: none; padding: 0 26px 0 10px; font-size: 12px; }
body .eventbox { border: 0; border-radius: var(--v-r-card); background: var(--v-card); }
body .eventbox.on { box-shadow: inset 0 0 0 1.5px var(--v-loss); }
body .eventbox b { font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; color: var(--v-text); }
body .rolechip { border: 0; border-radius: 6px; }


/* =====================================================================
   MOTION — short, and only where something changed: a screen arriving,
   a dialog or menu opening, a press, a bar finding its length. Exits stay
   instant. Everything here stands down under reduced motion.
   ===================================================================== */
@keyframes v-enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes v-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes v-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes v-toast-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes v-bar { from { transform: scaleX(0); } }

/* a new screen (markScreenEntry in app.js); backwards fill, so nothing is left
   transformed once it lands */
#screen.v-in { animation: v-enter .24s var(--v-ease) backwards; }
#pager.v-in { animation: v-fade .2s ease-out backwards; }
body.on-rite #screen.v-in { animation: none; }

/* dialogs and the bell's menu */
body .modal-back:not(.sheet) { animation: v-fade .18s ease-out both; }
body .modal:not(.sheet):not(.bare):not(:has(.ask)) { animation: v-pop .24s var(--v-ease) both; }
body .notifmenu:not([hidden]) { transform-origin: top right; animation: v-drop .18s var(--v-ease) both; }

/* a toast rises in and fades just before it is taken away (toast() removes it at 4.2s) */
body .toast { animation: v-pop .24s var(--v-ease) both, v-toast-out .2s ease-in 3.95s forwards; }

/* presses */
body .tb-ico, body .tb-face { transition: transform .15s var(--v-ease); }
body .tb:active .tb-ico, body .tb:active .tb-face { transform: scale(.88); }
body .dmrow:active, body .nt-row:active { background: var(--v-card-2); }
body .crewact:active, body .seacog:active, body .wb-beat:active { transform: scale(.94); }
body .crewact, body .seacog { transition: background .15s, color .15s, transform .12s var(--v-ease); }
body .offer-tier:active { transform: scale(.98); }

/* the win bar grows to its length when it appears */
.ps-bar:not(.none) i { transform-origin: left center; animation: v-bar .42s var(--v-ease) .06s backwards; }

@media (prefers-reduced-motion: reduce) {
  #screen.v-in, #pager.v-in, body .modal-back, body .modal, body .notifmenu, body .toast,
  .ps-bar i, body .rite > *, .fpost.fresh, .fline.fresh { animation: none !important; }
  body .tb:active .tb-ico, body .tb:active .tb-face, body .crewact:active, body .seacog:active,
  body .wb-beat:active, body .offer-tier:active, body .dj-sleep:active, body .btn:active:not(:disabled) { transform: none; }
}

/* Back to the fight — every screen but the fight, while a set is on (syncFightReturn). */
#fight-return {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 70;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 0 18px 0 14px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--v-gold); color: #1a1406; white-space: nowrap;
  font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  animation: fr-in .22s ease-out;
}
#fight-return .fr-score { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .72; overflow: hidden; text-overflow: ellipsis; }
#fight-return .fr-dot { width: 8px; height: 8px; border-radius: 4px; background: #e8204f; flex: none; animation: fr-pulse 1.4s ease-in-out infinite; }
#fight-return:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes fr-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fr-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { #fight-return, #fight-return .fr-dot { animation: none; } }

/* Signed out, under the burger's breakpoint: the way in stays in the bar (renderNavAcct). */
.nav-guest { display: none; }
@media (max-width: 640px) {
  .nav-guest { display: inline-flex; align-items: center; gap: 4px; }
  .nav-guest a { white-space: nowrap; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .nav-guest .guest-in { color: var(--v-text-2); padding: 0 8px; }
  .nav-guest .guest-up {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--v-gold); color: #1a1406;
    box-shadow: 0 0 0 0 rgba(246,194,67,.55), 0 0 18px rgba(246,194,67,.35);
    animation: guest-glow 2.4s ease-in-out infinite;
  }
  /* the two are in the bar now; the dropdown doesn't need them again */
  body .mainnav a[data-view="login"], body .mainnav a[data-view="request"] { display: none; }
}
@keyframes guest-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246,194,67,.5), 0 0 14px rgba(246,194,67,.28); }
  50% { box-shadow: 0 0 0 5px rgba(246,194,67,0), 0 0 24px rgba(246,194,67,.5); }
}
@media (prefers-reduced-motion: reduce) { .nav-guest .guest-up { animation: none; } }

/* ---------- stats face corner: RETAR + message ---------- */
.ps-act { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ps-msg {
  display: grid; place-items: center; width: var(--v-ctl-sm); height: var(--v-ctl-sm); border-radius: 9px;
  background: var(--v-card-2); color: var(--v-text-2); transition: background .15s, color .15s;
}
.ps-msg svg { width: 16px; height: 16px; }
.ps-msg:hover, .ps-msg:focus-visible { background: var(--v-card-3); color: var(--v-text); }
/* the line above a share preview that says why it is being shared */
body .modal h3.share-lead { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-transform: none; color: var(--v-text); margin: 2px 0 14px; }
body .share-note { margin-top: 12px; color: var(--v-text-2); font-size: 13px; line-height: 1.45; }

/* ---------- the sign-up sheet (signed out, once a load) ---------- */
body .modal-back.sheet:has(.gate-sheet) { background: rgba(5, 5, 5, .38); }
body .modal.sheet:has(.gate-sheet) { padding-top: 30px; }
.gs-faces { display: flex; align-items: center; margin-bottom: 16px; }
.gs-faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--v-card); background: var(--v-card-3); }
.gs-faces img + img { margin-left: -10px; }
.gs-faces b { margin-left: 10px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--v-text-2); font-variant-numeric: tabular-nums; }
body .modal h3.gs-h { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.035em; text-transform: none; color: var(--v-text); margin: 0 0 18px; }
.gs-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; border-radius: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: filter .15s, transform .12s var(--v-ease);
}
.gs-btn + .gs-btn { margin-top: 8px; }
.gs-btn .oauth-mark { width: 19px; height: 19px; }
.gs-btn:active { transform: scale(.98); }
.gs-btn.google { background: #fff; color: #1f1f1f; }
.gs-btn.discord { background: #5865f2; color: #fff; }
.gs-btn.discord .oauth-mark path { fill: #fff; }
.gs-btn.mail { background: var(--v-card-2); color: var(--v-text); }
.gs-btn:hover { filter: brightness(1.06); color: inherit; }
.gs-btn.google:hover { color: #1f1f1f; } .gs-btn.discord:hover { color: #fff; } .gs-btn.mail:hover { color: var(--v-text); }
.gs-alt { margin-top: 16px; font-size: 12px; color: var(--v-text-3); text-align: center; }
.gs-alt a { margin-left: 4px; color: var(--v-gold); font-weight: 600; text-decoration: none; }

/* ---------- the share sheet's card: the Wrapped podium's foil frame, lean and deal-in ---------- */
body .share-card { display: flex; justify-content: center; margin: 4px auto 0; perspective: 900px; }
body .share-card-in {
  position: relative; display: block; padding: 6px; border-radius: 18px;
  background: linear-gradient(125deg, #3a2c10 0%, #8a6420 26%, #f6c243 42%, #fff4cc 50%, #f6c243 58%, #8a6420 74%, #3a2c10 100%);
  background-size: 260% 260%;
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, .7);
  transform-style: preserve-3d; transition: transform .35s var(--v-ease);
  animation: v-foil 5s ease-in-out infinite alternate, v-deal .9s cubic-bezier(.2, .9, .25, 1) backwards;
}
body .share-card-in .share-preview { margin: 0; border: 0; border-radius: 12px; display: block; }
/* a soft light that follows the lean across the card */
body .share-card-in::after {
  content: ''; position: absolute; inset: 6px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) 0%, rgba(255, 244, 204, .16), transparent 55%);
}
@keyframes v-foil { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
@keyframes v-deal { from { opacity: 0; transform: rotateY(-70deg) translateY(18px) scale(.92); } }
@media (prefers-reduced-motion: reduce) { body .share-card-in { animation: none; } }

/* ---------- FX: challenge sent, game reported, set won / lost ---------- */
.fx-sheet { position: fixed; z-index: 90; pointer-events: none; overflow: hidden; }
.fx-ring {
  position: absolute; border-radius: 50%; mix-blend-mode: screen; transform: scale(.03); opacity: 0;
  animation: fx-ring 1.05s cubic-bezier(.16, .7, .25, 1) forwards;
}
.fx-ring.green { background: radial-gradient(circle, transparent 52%, rgba(59, 209, 111, .0) 56%, rgba(59, 209, 111, .45) 63%, rgba(196, 255, 214, .85) 66%, rgba(59, 209, 111, .35) 69%, transparent 75%); }
.fx-ring.red { background: radial-gradient(circle, transparent 52%, rgba(239, 90, 95, .0) 56%, rgba(239, 90, 95, .45) 63%, rgba(255, 190, 186, .8) 66%, rgba(239, 90, 95, .35) 69%, transparent 75%); }
.fx-ring.gold { background: radial-gradient(circle, transparent 48%, rgba(246, 194, 67, .0) 52%, rgba(246, 194, 67, .5) 61%, rgba(255, 244, 204, .95) 65%, rgba(246, 194, 67, .45) 69%, transparent 76%); }
.fx-ring.thin { animation-duration: 1.25s; filter: blur(1px); }
.fx-ring.thin.gold { background: radial-gradient(circle, transparent 60%, rgba(255, 236, 170, .7) 65%, transparent 70%); }
.fx-ring.thin.green { background: radial-gradient(circle, transparent 60%, rgba(160, 255, 190, .65) 65%, transparent 70%); }
@keyframes fx-ring { 0% { transform: scale(.03); opacity: 1; } 70% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
/* the wash behind each ring */
.fx-sheet::before { content: ''; position: absolute; inset: 0; opacity: 0; animation: fx-wash .9s ease-out forwards; }
.fx-sheet.win::before { background: rgba(59, 209, 111, .10); }
.fx-sheet.loss::before { background: rgba(239, 90, 95, .10); }
.fx-sheet.bold::before { background: radial-gradient(circle at 50% 50%, rgba(246, 194, 67, .16), transparent 70%); }
.fx-sheet.victory::before { background: radial-gradient(circle at 50% 30%, rgba(246, 194, 67, .22), rgba(59, 209, 111, .06) 60%, transparent 80%); animation-duration: 1.6s; }
.fx-sheet.defeat::before { background: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, .3) 20%, rgba(4, 4, 4, .86) 100%); animation: fx-lightsout 2.3s linear forwards; }
@keyframes fx-wash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-bruise { 0% { opacity: 0; } 15% { opacity: 1; } 55% { opacity: .8; } 100% { opacity: 0; } }
/* the bits */
.fx-bit { position: absolute; border-radius: 2px; animation: fx-bit 1.15s cubic-bezier(.15, .75, .3, 1) both; }
.fx-bit.g { background: var(--v-gold); }
.fx-bit.gr { background: var(--v-live); }
.fx-bit.w { background: #fff4cc; }
.fx-bit.c { background: #3a3732; }
@keyframes fx-bit {
  0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--rot)) scale(1); opacity: 0; }
}
/* the screen takes the hit */
.fx-jolt { animation: fx-jolt .45s cubic-bezier(.3, .7, .3, 1); }
@keyframes fx-jolt { 0% { transform: none; } 18% { transform: scale(1.012) translate(0, -3px); } 40% { transform: translate(-5px, 2px); } 62% { transform: translate(4px, -1px); } 82% { transform: translate(-2px, 0); } 100% { transform: none; } }
.fx-thud { animation: fx-thud .6s cubic-bezier(.3, .7, .3, 1); }
@keyframes fx-thud { 0% { transform: none; } 20% { transform: translateY(9px) scale(.992); } 45% { transform: translate(-4px, 3px); } 70% { transform: translate(3px, 1px); } 100% { transform: none; } }
.resultscreen.fx-drain { animation: fx-drain 1.6s ease-out; }
@keyframes fx-drain { 0% { filter: none; } 20% { filter: grayscale(.85) brightness(.75); } 100% { filter: none; } }
/* the pressed report button answers */
.reportbtns .btn.fx-press { animation: fx-press .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes fx-press { 0% { transform: scale(1); } 30% { transform: scale(.94); } 65% { transform: scale(1.04); } 100% { transform: scale(1); } }
/* the shine on the panels: a gloss band swept across each one, its edge lit */
.fx-gloss {
  position: absolute; overflow: hidden; opacity: 0;
  animation: fx-gloss .85s cubic-bezier(.2, .7, .3, 1) both;
}
.fx-gloss::before {
  content: ''; position: absolute; inset: 0; background-size: 260% 100%; background-repeat: no-repeat;
  animation: fx-sweep .85s cubic-bezier(.25, .6, .25, 1) both; animation-delay: inherit;
}
.fx-gloss.green { box-shadow: inset 0 0 0 2px rgba(59, 209, 111, .9), inset 0 0 36px rgba(59, 209, 111, .35), 0 0 28px rgba(59, 209, 111, .35); }
.fx-gloss.green::before { background-image: linear-gradient(105deg, transparent 38%, rgba(59, 209, 111, .25) 44%, rgba(225, 255, 233, .75) 50%, rgba(59, 209, 111, .3) 56%, transparent 62%); }
.fx-gloss.red { box-shadow: inset 0 0 0 2px rgba(239, 90, 95, .9), inset 0 0 36px rgba(239, 90, 95, .38), 0 0 28px rgba(239, 90, 95, .35); }
.fx-gloss.red::before { background-image: linear-gradient(105deg, transparent 38%, rgba(239, 90, 95, .28) 44%, rgba(255, 214, 210, .7) 50%, rgba(239, 90, 95, .32) 56%, transparent 62%); }
.fx-gloss.gold { box-shadow: inset 0 0 0 2px rgba(246, 194, 67, .95), inset 0 0 40px rgba(246, 194, 67, .35), 0 0 32px rgba(246, 194, 67, .4); }
.fx-gloss.gold::before { background-image: linear-gradient(105deg, transparent 36%, rgba(246, 194, 67, .3) 43%, rgba(255, 248, 220, .85) 50%, rgba(246, 194, 67, .35) 57%, transparent 64%); }
@keyframes fx-gloss { 0% { opacity: 0; } 12% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-sweep { from { background-position: var(--from, 130%) 0; } to { background-position: var(--to, -30%) 0; } }
/* each panel answers the hit */
.fx-pop { animation: fx-pop .55s cubic-bezier(.2, .9, .3, 1.35) both; }
@keyframes fx-pop { 0% { transform: none; } 30% { transform: scale(1.018); } 100% { transform: none; } }
/* the white-hot frame at impact */
.fx-flash { position: absolute; inset: 0; opacity: 0; animation: fx-flash .32s ease-out both; }
.fx-flash.green { background: rgba(200, 255, 215, .22); }
.fx-flash.red { background: rgba(255, 120, 120, .24); }
.fx-flash.gold { background: rgba(255, 240, 190, .26); }
@keyframes fx-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
/* rings hit harder */
.fx-ring { animation-duration: .95s; }
.fx-ring.thin.red { background: radial-gradient(circle, transparent 60%, rgba(255, 170, 165, .65) 65%, transparent 70%); }
/* losing is a crash: the lights cut out with a flicker, then come back */
@keyframes fx-lightsout { 0% { opacity: 0; } 6% { opacity: 1; } 11% { opacity: .45; } 16% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
/* each panel drops hard, the colour knocked out of it, bounces once and recovers */
.fx-wilt { animation: fx-crash 1s cubic-bezier(.55, 0, .45, 1) both; }
.fx-wilt-long { animation: fx-crash 1.5s cubic-bezier(.55, 0, .45, 1) both; }
@keyframes fx-crash {
  0% { filter: none; transform: none; }
  9% { filter: grayscale(.95) brightness(.6); transform: translateY(10px); }
  17% { transform: translateY(5px); }
  25% { filter: grayscale(.95) brightness(.62); transform: translateY(8px); }
  65% { filter: grayscale(.9) brightness(.66); transform: translateY(7px); }
  100% { filter: none; transform: none; }
}
/* the pressed PERDÍ slams in, dims to brick, and comes back */
.reportbtns .btn.fx-sink { animation: fx-sink 1.05s cubic-bezier(.55, 0, .45, 1) both; }
@keyframes fx-sink {
  0% { transform: none; filter: none; }
  8% { transform: translateY(5px) scale(.95); filter: saturate(.4) brightness(.55); }
  18% { transform: translateY(3px) scale(.97); }
  60% { transform: translateY(3px) scale(.97); filter: saturate(.45) brightness(.6); }
  100% { transform: none; filter: none; }
}
/* ash: dull squares drifting down */
.fx-ash { position: absolute; border-radius: 1px; opacity: 0; animation: fx-ash 2.6s cubic-bezier(.3, 0, .6, 1) both; }
.fx-ash.c { background: #3a3732; }
.fx-ash.d { background: #57524a; }
@keyframes fx-ash {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  15% { opacity: .9; }
  80% { opacity: .6; }
  100% { transform: translate(var(--drift), var(--fall)) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fx-sheet, .fx-jolt, .fx-thud, .fx-drain, .fx-press, .fx-pop, .fx-wilt, .fx-wilt-long, .fx-sink { animation: none !important; } }
.match-tools { transition: opacity .25s ease, filter .25s ease; }
.match-tools.fx-recede { opacity: .22; filter: grayscale(1); }
