/* versus.css — VERSUS mode screens (elevated set, owner picks Aug 2026):
   the jukebox picker, the split-flood backing screen, and the ceremony
   scorecard with the judges' table. The fight itself wears arcade.css
   unchanged. Magenta is the mode's colour; each fighter brings his own. */

/* the versus page reserves its scrollbar gutter: page height varies between
   screens, and a scrollbar popping in used to shrink the whole layout a beat */
html { scrollbar-gutter: stable; }
/* width:100% matters: .screen-body centers children shrink-to-fit, so without
   it the wrap's width follows the widest strip page and wobbles per slide */
.jb-wrap { width: 100%; margin: 0 auto; padding: 10px 18px 90px; }

/* ── the marquee ── */
.jb-marq { text-align: center; padding: 8px 0 4px; }
/* the marquee matches THE CARD's headline scale (arcade .tott-head), with a
   20px floor so phones read it as a title, not a label */
.jb-mark, .vs-mark { font-family: var(--pixel); font-size: clamp(20px, 3.3vw, 24px); letter-spacing: 6px; color: var(--mag);
  text-shadow: 0 0 14px rgba(224, 86, 200, .65), 0 0 44px rgba(224, 86, 200, .3); }
.jb-tag { font-family: var(--mono); font-size: var(--fs-lead); color: var(--dim); margin-top: 6px; }

/* ── the corners: two colour floods, FIGHT front and centre over them ── */
.jb-top { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; margin-bottom: 34px; min-height: 340px; align-items: stretch; }
.jb-half { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px 10px; cursor: pointer; border-radius: 10px; }
.jb-half.a { background: linear-gradient(160deg, color-mix(in srgb, var(--pcol, #1a1a2c) 26%, transparent), transparent 72%); }
.jb-half.b { background: linear-gradient(200deg, color-mix(in srgb, var(--pcol, #1a1a2c) 26%, transparent), transparent 72%); }
.jb-half.empty { border: 2px dashed #33334c; cursor: default; }
.jb-half canvas { width: 160px; height: 160px; image-rendering: pixelated;
  filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--pcol, #000) 55%, transparent)); }
.jb-plate { font-family: var(--pixel); font-size: var(--fs-label); letter-spacing: 1px; color: #0a0e16;
  background: var(--pcol, var(--dim)); padding: 6px 14px; border-radius: 4px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--pcol, #000) 55%, transparent); }
.jb-ctag { font-family: var(--mono); font-size: var(--fs-small); letter-spacing: 2px; }
.jb-half.a .jb-ctag { color: var(--red); } .jb-half.b .jb-ctag { color: var(--blu); }
.jb-release { font-family: var(--mono); font-size: var(--fs-small); color: var(--dim); opacity: 0; transition: opacity .12s; }
.jb-half:hover .jb-release, .jb-half:focus-visible .jb-release { opacity: 1; }
.jb-hint { font-family: var(--pixel); font-size: var(--fs-nano); color: var(--dim); letter-spacing: 1px; line-height: 1.9; text-align: center; }
.jb-sub { font-family: var(--mono); font-size: var(--fs-small); color: #4a5262; }
/* desktop: VS holds the centre with FIGHT right under it (owner). Phones get
   the straddle at the cards' bottom edge instead, clear of the nameplates.
   FIGHT is a grid SIBLING of the cards — it must always be absolutely placed,
   or the corners grid adopts it as a stretched third cell (the Aug 5 bug). */
.jb-center { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.jb-fight { position: absolute; left: 50%; top: 50%; transform: translateX(-50%); z-index: 3; }
.jb-vs { font-family: var(--pixel); font-size: var(--fs-head); color: var(--ylw);
  text-shadow: 0 0 12px rgba(255, 210, 63, .5), 0 2px 8px rgba(0, 0, 0, .8); transform: skew(-8deg); }
.jb-fight { pointer-events: auto; font-family: var(--pixel); font-size: var(--fs-head); letter-spacing: 6px;
  color: var(--mag); border: 2px solid var(--mag); border-radius: 12px; padding: 18px 48px; min-height: 44px;
  background: rgba(10, 10, 18, .9); cursor: pointer; text-shadow: 0 0 10px rgba(224, 86, 200, .6);
  animation: jb-hum 1.6s ease-in-out infinite; }
.jb-fight[disabled] { opacity: .45; cursor: default; animation: none; text-shadow: none; }
@keyframes jb-hum { 50% { box-shadow: 0 0 26px rgba(224, 86, 200, .45); } }
@media (prefers-reduced-motion: reduce) { .jb-fight { animation: none; } }

/* ── tabs + the roster strip: one row, paged, alphabetical ── */
.jb-tabs { display: flex; justify-content: center; margin: 14px 0 12px; }
.jb-tab { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 2px; padding: 11px 20px; min-height: 44px;
  background: #10101c; border: 2px solid #2c2c44; color: var(--dim); cursor: pointer; }
.jb-tab:first-child { border-radius: 8px 0 0 8px; }
.jb-tab:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.jb-tab.on { color: var(--mag); border-color: var(--mag); background: rgba(224, 86, 200, .1); }
.jb-strip { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: stretch; }
.jb-arr { font-family: var(--pixel); font-size: var(--fs-head); color: var(--ink); background: #141422;
  border: 2px solid #2c2c44; border-radius: 10px; cursor: pointer; min-height: 44px; }
.jb-arr:hover, .jb-arr:focus-visible { border-color: var(--mag); color: var(--mag); outline: none; }
.jb-arr[disabled] { opacity: .25; cursor: default; border-color: #2c2c44; color: var(--ink); }
.jb-window { overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.jb-page { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.jb-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #141422;
  border: 2px solid #262638; border-radius: 8px; padding: 9px 4px 6px; cursor: pointer; height: 118px; overflow: hidden; }
.jb-chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--pcol, transparent); opacity: 0; transition: opacity .12s; }
.jb-chip canvas { width: 54px; height: 54px; image-rendering: pixelated; flex: 0 0 auto; }
.jb-chip span { font-family: var(--mono); font-size: var(--fs-small); color: var(--ink); line-height: 1.15;
  text-align: center; height: 2.3em; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jb-chip:hover, .jb-chip:focus-visible { border-color: var(--pcol, var(--mag)); outline: none;
  box-shadow: 0 0 14px color-mix(in srgb, var(--pcol, var(--mag)) 35%, transparent); }
.jb-chip:hover::after { opacity: 1; }
.jb-chip.in-a { border-color: var(--red); } .jb-chip.in-b { border-color: var(--blu); }
.jb-chip.in-a::after, .jb-chip.in-b::after { opacity: 1; }
.jb-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.jb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c44; }
.jb-dots i.on { background: var(--mag); }
@media (max-width: 600px) {
  .jb-wrap { padding: 10px 10px 90px; }
  .jb-top { grid-template-columns: 1fr 1fr; gap: 10px; min-height: 250px; }
  .jb-half canvas { width: 104px; height: 104px; }
  .jb-page { grid-template-columns: repeat(4, 1fr); }
  .jb-fight { letter-spacing: 3px; padding: 12px 22px;
    position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 3; }
}

/* ── the split flood: the wager ── */
.sf-stage { position: relative; width: 100%; min-height: 520px; margin-top: 12px; overflow: hidden; border-radius: 10px; }
.sf-half { position: absolute; top: 0; bottom: 0; width: 58%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; cursor: pointer; transition: filter .15s; padding: 0 4%; }
.sf-half.a > * { transform: translateX(-9%); }
.sf-half.b > * { transform: translateX(9%); }
.sf-half.a { left: 0; clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pcol) 44%, #0a0a12), color-mix(in srgb, var(--pcol) 16%, #0a0a12)); }
.sf-half.b { right: 0; clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(240deg, color-mix(in srgb, var(--pcol) 44%, #0a0a12), color-mix(in srgb, var(--pcol) 16%, #0a0a12)); }
.sf-half:hover, .sf-half:focus-visible, .sf-half.on { filter: brightness(1.25); outline: none; }
.sf-half.dim { filter: saturate(.45) brightness(.55); }
.sf-half canvas { width: 210px; height: 210px; image-rendering: pixelated; }
.sf-name { font-family: var(--pixel); font-size: var(--fs-title); letter-spacing: 2px; color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .5); text-align: center; }
.sf-line { font-family: var(--mono); font-size: var(--fs-body); color: rgba(255, 255, 255, .92); text-align: center;
  max-width: 340px; line-height: 1.45; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); font-style: italic; }
.sf-cta { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 2px; color: rgba(255, 255, 255, .88);
  background: rgba(0, 0, 0, .35); padding: 10px 16px; border-radius: 6px; margin-top: 4px; }
.sf-half.on .sf-cta { color: var(--ylw); background: rgba(10, 10, 18, .6); }
.sf-seam { position: absolute; left: 50%; top: -4%; bottom: -4%; width: 10px; transform: translateX(-50%) skew(-14deg);
  background: linear-gradient(180deg, var(--ylw), #fff, var(--ylw)); box-shadow: 0 0 26px rgba(255, 210, 63, .7); z-index: 2; }
.sf-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; text-align: center; }
@media (max-width: 600px) {
  /* the badge and FIGHT live in a reserved band under the fighters on phones —
     never over a name (owner) */
  .sf-stage { padding-bottom: 84px; }
  .sf-mid { top: auto; bottom: 10px; transform: translateX(-50%); }
}
.sf-who, .sf-fight { min-width: 268px; box-sizing: border-box; }
.sf-who { font-family: var(--pixel); font-size: var(--fs-head); letter-spacing: 2px; color: var(--ylw);
  text-shadow: 0 0 16px rgba(0, 0, 0, .9), 0 0 20px rgba(255, 210, 63, .8);
  background: rgba(10, 10, 18, .82); padding: 12px 18px; border-radius: 10px; border: 2px solid var(--ylw); }
.sf-fight { font-family: var(--pixel); font-size: var(--fs-head); letter-spacing: 4px; color: var(--ylw);
  background: rgba(10, 10, 18, .88); padding: 14px 34px; border-radius: 10px; border: 2px solid var(--ylw);
  cursor: pointer; min-height: 44px; text-shadow: 0 0 12px rgba(255, 210, 63, .7);
  animation: jb-hum 1.6s ease-in-out infinite; box-shadow: 0 0 22px rgba(255, 210, 63, .35); }
.sf-key { font-family: var(--mono); font-size: var(--fs-small); color: var(--dim); margin-top: 10px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7); }
.sf-note { font-family: var(--mono); font-size: var(--fs-lead); color: var(--dim); text-align: center;
  margin-top: 14px; line-height: 1.5; }
/* the row is ALWAYS in the layout: the button appearing must never shove the
   stage upward (owner caught the jump) */
.sf-footrow { min-height: 56px; display: flex; justify-content: center; align-items: center; margin-top: 4px; }
.sf-again { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 1px; color: var(--dim);
  background: #1a1a2c; border: 2px solid #3a3a55; border-radius: 8px; cursor: pointer;
  min-height: 44px; padding: 12px 16px; }
.sf-again:hover, .sf-again:focus-visible { border-color: var(--mag); color: var(--mag); outline: none; }
@media (max-width: 720px) { .sf-line { display: none; } }
@media (max-width: 600px) {
  .sf-stage { min-height: 340px; }
  .sf-half canvas { width: 116px; height: 116px; }
  .sf-name { font-size: var(--fs-head); }
}

/* ── the ceremony scorecard ── */
.sc-body { position: relative; overflow: hidden; }
.sc-rays { position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--pcol, var(--ylw)) 20%, transparent), transparent 58%); }
.sc-rays::before { content: ""; position: absolute; left: 50%; top: 20%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    color-mix(in srgb, var(--pcol, var(--ylw)) 9%, transparent) 0deg 7deg, transparent 7deg 26deg);
  animation: champrays 44s linear infinite; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .sc-rays::before { animation: none; } }
.sc-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; }
.sc-top canvas { width: 170px; height: 170px; image-rendering: pixelated;
  filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--pcol) 55%, transparent)); }
.sc-win { font-family: var(--pixel); font-size: var(--fs-title); letter-spacing: 3px; text-align: center; }
.sc-win .nm { color: var(--pcol); text-shadow: 0 0 18px color-mix(in srgb, var(--pcol) 70%, transparent); }
.sc-win .ws { color: var(--ylw); text-shadow: 0 0 16px rgba(255, 210, 63, .6); }
.sc-verdict { font-family: var(--mono); font-size: var(--fs-lead); color: var(--dim); text-align: center; }
.sc-called { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 2px; color: var(--ylw);
  text-shadow: 0 0 12px rgba(255, 210, 63, .55); }
.sc-panel { position: relative; z-index: 1; background: rgba(20, 20, 34, .9); border: 2px solid #262638;
  border-radius: 10px; padding: 16px; margin-top: 16px; border-top: 3px solid var(--pcol, #262638); }
.sc-panel.sc-poll, .sc-panel.sc-wars { border-top-color: #262638; }
.sc-eyebrow { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 3px; color: var(--mag); }
.sc-panel p { font-family: var(--mono); font-size: var(--fs-body); color: var(--ink); line-height: 1.55; margin: 10px 0 0; }
/* the judges' table: three paper cards */
.jd-table { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.jd-card { background: #f4efe2; color: #1a1610; border-radius: 6px; padding: 12px;
  transform: rotate(-1.2deg); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.jd-card:nth-child(2) { transform: rotate(.8deg); }
.jd-card:nth-child(3) { transform: rotate(-.4deg); }
.jd-h { font-family: var(--mono); font-size: var(--fs-small); letter-spacing: 2px; color: #6b5f47;
  border-bottom: 1px solid #c9bfa8; padding-bottom: 6px; text-align: center; }
.jd-score { font-family: var(--pixel); font-size: var(--fs-title); text-align: center; margin: 10px 0 4px; color: #1a1610;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.jd-score > span:not(.jd-nm) { white-space: nowrap; }
.jd-nm { font-family: var(--mono); font-size: var(--fs-small); letter-spacing: 1px; color: #6b5f47; flex: 1; min-width: 0; line-height: 1.15; }
.jd-nm:first-child { text-align: right; }
.jd-nm:last-child { text-align: left; }
.jd-for { font-family: var(--mono); font-size: var(--fs-body); text-align: center; color: #6b5f47; }
.jd-note { font-family: var(--mono); font-size: var(--fs-body); color: #3c3428; margin-top: 8px; line-height: 1.4; font-style: italic; }
@media (max-width: 720px) { .jd-table { grid-template-columns: 1fr; } .jd-card, .jd-card:nth-child(2), .jd-card:nth-child(3) { transform: none; } }
/* the poll */
.sc-bar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin-top: 12px; border: 1px solid #2c2c44; }
.sc-bar .l { display: flex; align-items: center; padding: 0 10px; font-family: var(--pixel); font-size: var(--fs-nano);
  color: #0a0e16; white-space: nowrap; }
.sc-bar .r { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px;
  font-family: var(--pixel); font-size: var(--fs-nano); color: #0a0e16; white-space: nowrap; }
.sc-you { font-family: var(--mono); font-size: var(--fs-body); color: var(--ink); margin-top: 10px; }
.sc-fine { font-family: var(--mono); font-size: var(--fs-small); color: var(--dim); margin-top: 10px; line-height: 1.5; }
.vd-btns { position: relative; z-index: 1; display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.vd-btn { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 1px; padding: 12px 16px;
  border-radius: 8px; border: 2px solid #3a3a55; background: #1a1a2c; color: var(--ink); cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; text-decoration: none; }
.vd-btn:hover, .vd-btn:focus-visible { border-color: var(--mag); outline: none; }
.vd-btn.hot { border-color: var(--mag); color: var(--mag); background: rgba(224, 86, 200, .1); }

/* ── shared: footer links + closed screen ── */
.vs-foot { display: flex; gap: 22px; justify-content: center; margin-top: 16px; }
.vs-foot a { font-family: var(--mono); font-size: var(--fs-body); color: var(--cyan); text-decoration: none;
  padding: 6px 10px; min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; }
.vs-foot a:hover { color: #8ce8f4; text-decoration: underline; }

/* THE RECORD's paper-book family (vs-rec/rec-*/lg-*) moved to system.css —
   the arcade's run book wears the same paper (Aug 2026). */
/* replay stamps on the scorecard */
.sc-flip { font-family: var(--pixel); font-size: var(--fs-small); color: var(--ylw);
  border: 1px solid var(--ylw); border-radius: 6px; display: inline-block; padding: 6px 10px;
  margin-top: 10px; letter-spacing: 1px; }
.sc-stand { font-family: var(--mono); font-size: var(--fs-body); color: var(--dim); margin-top: 10px; }
.vs-closed { text-align: center; padding-top: 90px; }
.vs-closed p { font-family: var(--mono); font-size: var(--fs-lead); color: var(--dim); margin-top: 14px; }
.vs-closed a { color: var(--mag); }

/* scorecard headings carry real weight (owner: no fine print on a ceremony) */
.sc-eyebrow { font-size: var(--fs-label); }
.sc-fine { font-size: var(--fs-body); }
.vd-btn.gold { border-color: var(--ylw); color: var(--ylw); background: rgba(255, 210, 63, .12); }
.vd-btn.gold:hover, .vd-btn.gold:focus-visible { border-color: var(--ylw); box-shadow: 0 0 14px rgba(255, 210, 63, .35); }

/* ── the application desk ── */
.ap-panel { position: relative; background: rgba(20, 20, 34, .9); border: 2px solid #262638;
  border-radius: 10px; padding: 18px; margin-top: 16px; text-align: left; }
.ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ap-l { font-family: var(--mono); font-size: var(--fs-body); color: var(--dim); display: flex;
  flex-direction: column; gap: 6px; text-align: left; }
.ap-wide { grid-column: 1 / -1; }
.ap-in { background: #0d0d18; color: var(--ink); border: 2px solid #2c2c44; border-radius: 8px;
  font-family: var(--mono); font-size: var(--fs-body); padding: 10px 12px; min-height: 44px; }
.ap-in:focus { outline: none; border-color: var(--ylw); }
.ap-chips { display: flex; gap: 10px; }
.ap-chip { font-family: var(--pixel); font-size: var(--fs-nano); letter-spacing: 1px; padding: 12px 18px;
  border-radius: 8px; border: 2px solid #3a3a55; background: #1a1a2c; color: var(--ink); cursor: pointer; min-height: 44px; }
.ap-chip.on { border-color: var(--ylw); color: var(--ylw); background: rgba(255, 210, 63, .1); }
.ap-msg { font-family: var(--mono); font-size: var(--fs-body); color: var(--dim); min-height: 1.3em; margin-top: 12px; }
.ap-msg.err { color: var(--red); }
.ap-done { font-family: var(--mono); font-size: var(--fs-body); color: var(--ink); line-height: 1.55; margin-top: 12px; }
@media (max-width: 600px) { .ap-form { grid-template-columns: 1fr; } }
/* the picker's HOME is an anchor (it leaves the app), not the arcade's button —
   same face, no link underline */
.hud a.home-corner { text-decoration: none; }
.hud a.home-corner:hover { text-decoration: none; }
