/* Pick'ems: the app layer over g2.css (the G2 style sheet, used as it is; docs/STYLE.md).
   This file only adds what the design doesn't draw: the real phone and desktop shell, the forms
   and lists of the other screens, and the states the mock leaves out (rounds, results, locked).
   It uses g2.css's tokens and no colour of its own. */

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums;
  --tabs-h: 0px;
}
body.has-tabs { --tabs-h: calc(48px + env(safe-area-inset-bottom)); padding-bottom: var(--tabs-h); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead: g2's .mast, without the mock's 50px status-bar gap */
.mast { gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 10px; }
.brand { text-decoration: none; flex: none; }
.brand .logo { height: 26px; width: auto; }
.grp { flex: 1; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { .grp { display: none; } }
.who { flex: none; font: 700 13px/1.2 var(--font-ui); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.who.pending { visibility: hidden; }
.who.me .av { width: 32px; height: 32px; font-size: 14px; }

.topnav { display: none; }
body.bare .mast { display: none; }

/* Bottom tabs: g2's .tabs, fixed to the screen instead of the mock's frame */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 0 0 env(safe-area-inset-bottom); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; backdrop-filter: blur(10px); }
.tabs[hidden] { display: none; }
.tabs a { text-decoration: none; }

main { width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; flex: 1; font-family: var(--font-ui); }
main.flush { padding: 0 0 8px; font-family: var(--font-poster); }
main.flush > .cardview, main.flush > .fightscreen, main.flush > .cn { margin: 0; }

/* The card: poster, crew block, banners. The things below the banners keep the 16px edge. */
.cardview > .tb, .cardview > .about { margin: 14px 16px 0; }
.ban.main { height: 96px; }
.hf { min-width: 0; padding-bottom: 22px; }
.hf b { font-size: min(21px, calc((50vw - 44px) / var(--w, 5))); }
.ban.main .hf b { font-size: min(25px, calc((50vw - 44px) / var(--w, 5))); }
.hf[disabled] { cursor: default; }
.ban-more { max-width: 72%; overflow: hidden; text-overflow: ellipsis; }
.hc-under .g2-cta { width: 100%; }
.hc-lock { min-width: 0; }
.hc-lock span { flex-wrap: wrap; }
.poster h1 span { font-size: min(50px, calc(88vw / var(--n, 5.6))); overflow-wrap: anywhere; padding: 0 8px; text-align: center; }
.poster .photo, .half .photo { object-fit: contain; object-position: bottom center; filter: brightness(.62); }
.half .photo { filter: none; }
.half:not(.on) .photo { filter: none; }

/* The fight screen */
.x { top: max(14px, env(safe-area-inset-top)); padding: 6px 0; z-index: 3; }
.half[disabled] { cursor: default; }
.half b { overflow-wrap: anywhere; }
.half.won { filter: none; }
.won-tag { display: block; width: max-content; margin-top: 8px; font: 800 11px/1 var(--font-ui); letter-spacing: .12em; background: var(--win-bg); color: var(--win); padding: 5px 8px; border-radius: 20px; }
.half.b .won-tag { margin-left: auto; }
.fhead { margin: 12px 16px 0; font: 700 11px/1.3 var(--font-ui); letter-spacing: .1em; color: var(--muted-2); }
.fightscreen .hint { margin-top: 10px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; }
.result small, .others small, .league small, .rlabel { display: block; font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .14em; color: var(--muted); }
.result b { font-size: 19px; font-style: italic; font-weight: 800; line-height: 1.1; }
.result .pts { text-align: right; flex: none; }
.result .pts b { font-size: 26px; color: var(--win); }
.how .rounds { margin-top: 4px; }
.how .rlabel { margin-top: 12px; }
.how button[disabled] { cursor: default; opacity: 1; }
.saved { margin: 8px 16px 0; font: 600 13px/1.2 var(--font-ui); color: var(--win); min-height: 16px; }
.cr, .gs { min-width: 0; }
.cr .wait { display: block; margin-top: 8px; font: 400 12px/1.3 var(--font-ui); color: var(--muted-2); }
.gs b { overflow-wrap: anywhere; }
.sp i { min-width: 0; }
.league { margin: 12px 16px 0; }
.league div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.league span { font: 400 12px/1.2 var(--font-ui); padding: 4px 8px; border-radius: 20px; white-space: nowrap; }
.league span b { font-weight: 700; }
.league .r { background: #2a0e0c; color: var(--red-text); }
.league .b { background: #0e1834; color: var(--blue-text); }
.others { margin: 14px 16px 0; }
.others > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; font: 400 14px/1.5 var(--font-ui); }
.others .r { color: var(--red-text); }
.others .b { color: var(--blue-text); text-align: right; }
.others .b small, .others .r small { display: inline; letter-spacing: 0; color: var(--muted-2); font-weight: 400; }
.tr.l5 .debut { font: 700 11px/1 var(--font-ui); letter-spacing: .1em; color: var(--muted-2); font-style: normal; }
.moretape summary { padding: 12px 0; cursor: pointer; font: 700 11px/1 var(--font-ui); letter-spacing: .12em; color: var(--muted); list-style: none; text-align: center; }
.moretape summary::-webkit-details-marker { display: none; }
.moretape summary::after { content: " +"; }
.moretape[open] summary::after { content: " −"; }
.lf em { font-style: italic; }
.fine { font: 400 12px/1.4 var(--font-ui); color: var(--muted-2); }
p.fine { margin: 4px 16px 0; }
.dock { bottom: var(--tabs-h); z-index: 5; margin-top: 8px; }
.dock .cta { width: 100%; }
button.cta[disabled] { opacity: .5; cursor: default; }

/* The ranks */
.bhead { padding-top: max(20px, env(safe-area-inset-top)); }
.bhead h1 { font-family: var(--font-condensed); }
.pc { min-width: 0; }
.pc b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br b { width: auto; min-width: 36px; }

/* The other screens take the same parts: the page, cards, condensed capitals for headings, the white button */
h1 { font: italic 800 28px/1.05 var(--font-poster); margin: 10px 0 6px; letter-spacing: -.02em; }
h2 { font: italic 800 18px/1.2 var(--font-poster); margin: 26px 0 10px; }
.cardview > .tb h2, .cardview > .about h2 { margin-top: 0; }
.sub { color: var(--muted); margin: 0 0 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.vstack > * + * { margin-top: 12px; }
.pagehead { margin: 6px 0 14px; }
.pagehead h1 { margin: 0; }
header.ph { margin: 4px 0 14px; }
header.ph small { display: block; font: 600 12px/1.3 var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
header.ph h1 { margin: 2px 0 0; }

.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; }
a.card { display: block; text-decoration: none; }
a.card:hover { border-color: #44454d; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #34353c;
  background: #141418; color: var(--text); font-weight: 700; text-decoration: none;
}
.btn:active, .cta:active { transform: scale(.98); }
.btn.primary { background: #fff; color: var(--bg); border-color: #fff; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
/* a long label wraps: room above and below its lines, centred */
.btn.block { padding-block: 10px; line-height: 1.3; text-align: center; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
main:not(.flush) .cta { width: 100%; }

label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.field small { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px;
  background: #141418; border: 1.5px solid #34353c; border-radius: 10px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #fff; outline: none; }
.error { color: var(--red-text); font-size: 14px; margin: 8px 0; }
.error:empty { display: none; }
.note { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid #34353c; background: #141418; font-weight: 700; font-size: 15px; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--bg); }
.chip.round { min-width: 44px; padding: 0; }

.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); margin-bottom: 8px; cursor: pointer; }
.option input { margin-top: 4px; accent-color: #fff; width: 18px; height: 18px; flex: none; }
.option b { display: block; }
.option:has(input:checked) { border-color: #fff; }

/* Your pickems */
.pk { display: flex; gap: 12px; align-items: center; }
.pk-date { flex: none; width: 52px; text-align: center; border-radius: 10px; padding: 6px 0; background: var(--bg); border: 1px solid var(--line-2); line-height: 1.05; }
.pk-date b { display: block; font: italic 800 22px/1.05 var(--font-poster); }
.pk-date span { font: 700 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.pk-name { font: italic 800 17px/1.2 var(--font-poster); overflow-wrap: anywhere; }
.pk-meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
/* a long name wraps (nothing is cut); the date, the badge and the buttons keep their size */
.pk > .grow { min-width: 0; }
.pk > .pk-date, .pk > .badge, .pk > .btn { flex: none; }
.badge { display: inline-block; font: 800 11px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 20px; background: #141418; color: var(--muted); white-space: nowrap; }
.badge.live { background: var(--red); color: #fff; }
.badge.todo { background: var(--gold); color: var(--bg); }
.badge.done { background: var(--win-bg); color: var(--win); }

/* A list in a card (players, the results desk, the model league) */
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.board li:first-child { border-top: 0; }
.board .rk { font: italic 800 18px/1 var(--font-poster); color: var(--faint); text-align: center; }
.board .nm { font: 700 16px/1.25 var(--font-condensed); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pt { text-align: right; font: italic 800 20px/1 var(--font-poster); }
.board .pt small { display: block; font: 400 11px/1.4 var(--font-ui); color: var(--muted-2); }

.share { display: flex; gap: 8px; }
.share input { font-size: 14px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabs-h)); transform: translateX(-50%) translateY(20px);
  background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 12px; font: 700 15px/1.3 var(--font-ui);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; z-index: 50; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--red); color: #fff; }

.skel { background: linear-gradient(90deg, var(--surface) 0%, #1e1e24 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.2s ease infinite; border-radius: 12px; height: 88px; margin: 0 16px 12px; }
main:not(.flush) .skel { margin: 0 0 12px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Signed out */
.poster.landing { margin: 0 -16px; }
.poster.landing h1 span { font-size: min(50px, 13vw); }
.hero { padding: 16px 0 4px; }
.lead.pitch { margin-top: 16px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0; }
.steps { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font: italic 800 15px/1 var(--font-poster); }

.pk-foot a { color: inherit; }
.res { display: grid; gap: 8px; }
.res .chips { gap: 6px; }
details.card summary { list-style: none; }
details.card summary::-webkit-details-marker { display: none; }


/* A 320px phone: the guide drops the poster names to 42px */
@media (max-width: 340px) {
  .poster h1 span { font-size: min(42px, calc(88vw / var(--n, 5.6))); }
  .hc-lock b { font-size: 32px; }
  .ring { width: 84px; height: 84px; }
  .half b { font-size: 27px; }
}

/* Desktop: g2's calm desktop (.cd). A top bar with the tabs replaces the bottom bar; the poster runs
   the full width; everything else sits in one centred 720px column. */
@media (min-width: 900px) {
  body.has-tabs { padding-bottom: 0; --tabs-h: 0px; }
  .tabs { display: none !important; }
  body.bare .mast { display: flex; }
  .mast { gap: 28px; height: 58px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .brand .logo { height: 28px; }
  .topnav:not([hidden]) { display: flex; gap: 22px; flex: 1; align-self: stretch; }
  .topnav a { display: flex; align-items: center; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); text-decoration: none; border-bottom: 2px solid transparent; }
  .topnav a.on { color: #fff; border-color: #fff; }
  .topnav a:hover { color: #fff; }
  .grp { flex: none; font: 13px/1.2 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
  main.flush { max-width: none; }
  .cardview > :not(.poster), main.flush > .fightscreen, main.flush > .cn { max-width: 720px; margin-left: auto; margin-right: auto; }
  .cardview > .tb, .cardview > .about { margin-top: 14px; }
  .poster { height: 340px; }
  .poster h1 span { font-size: min(68px, calc(90vw / var(--n, 5.6))); }
  .poster h1 em { font-size: 28px; }
  .poster.landing { margin: 0 calc(50% - 50vw); }
  .hc-under { padding-top: 18px; }
  .bans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ban.main { grid-column: 1 / -1; }
  .hf b { font-size: min(19px, calc(150px / var(--w, 5))); }
  .ban.main .hf b { font-size: min(26px, calc(310px / var(--w, 5))); }
  .grp-rank { display: inline; }
  .x { top: 14px; }
  .bhead { padding-top: 28px; }
  .dock { position: static; background: none; }
}
.cardview .card { font-family: var(--font-ui); }
.br > .av { color: var(--bg); }
.tb .saved { margin: 8px 0 0; }

/* Once there's a result the red half's YOUR PICK moves up beside ‹ CARD, clear of the corner line */
.vsplit.done .half.r.on::before { top: max(14px, env(safe-area-inset-top)); left: auto; right: 16px; }
.grp-rank { display: none; }
@media (min-width: 900px) { .grp-rank { display: inline; } }

/* The hub: search, places, fighters, events (the design's search and fighter screens) */
.sx { margin: 14px 16px 0; cursor: text; }
.sx input {
  flex: 1; min-width: 0; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none;
  font: italic 800 36px/1.1 var(--font-poster); letter-spacing: -.02em; color: var(--text); text-transform: uppercase; caret-color: var(--gold);
}
.sx input::placeholder { color: var(--faint); font-size: 22px; letter-spacing: .02em; }
.sx input::-webkit-search-cancel-button { filter: invert(1); }
.sx:focus-within { border-bottom-color: var(--gold); }
.sx.static b { overflow-wrap: anywhere; }
.results:empty { min-height: 40vh; }
a.city { display: block; text-decoration: none; }
.ev .t { min-width: 0; overflow-wrap: anywhere; }
.fx b { font-size: min(19px, calc((50vw - 54px) / var(--w, 5))); }
.fx .photo { object-fit: contain; object-position: top center; }
.fpost .photo { object-fit: contain; object-position: bottom right; }
.fpost .rec { top: max(14px, env(safe-area-inset-top)); }
.fpost .nm { right: 16px; }
.fpost .nm b { overflow-wrap: anywhere; }
.strip.three { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.hubnote { margin: 10px 16px 0; }
/* the credit a free licence photo needs, under the fighter's poster */
.photo-credit { margin: 6px 16px 0; font: 400 11px/1.4 var(--font-ui); color: var(--faint); overflow-wrap: anywhere; }
.photo-credit a { color: var(--muted-2); }
.lf .O i { background: var(--line-2); color: var(--text-2); font-size: 12px; }
.lf a { color: inherit; text-decoration: none; }
.lf span { min-width: 0; }
.lf small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf em { flex: none; }
.allfights summary { margin: 4px 16px 0; padding: 14px 0; cursor: pointer; font: 700 11px/1 var(--font-ui); letter-spacing: .12em; color: var(--muted); list-style: none; }
.allfights summary::-webkit-details-marker { display: none; }
.allfights summary::after { content: " +"; }
.allfights[open] summary::after { content: " −"; }
a.hf { text-decoration: none; cursor: pointer; }
a.hf:not([href]) { cursor: default; }
.hf.r.won { background: var(--red); color: #fff; }
.hf.b.won { background: var(--blue); color: #fff; }
.ban.info span.ban-more { cursor: default; }
.eventpage .strip { margin-top: 0; }
.eventpage .hc-under { padding-top: 14px; }
.hint a { color: var(--text-2); }
@media (min-width: 900px) {
  .hub > :not(.poster), .hub > .results > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .hub .fg { grid-template-columns: repeat(4, 1fr); }
  .fx b { font-size: min(19px, calc(130px / var(--w, 5))); }
  .fpost { margin-top: 16px !important; }
  .fpost .x, .fpost .rec { top: 16px; }
}

/* The structure: the top bar (sports, search, you), the sports strip on a phone, a pickem's own tabs,
   home, a card's pickems, profiles and people. Same parts and tokens as the rest. */
.mast { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.tsearch { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--text-2); text-decoration: none; }
.tsearch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tsearch span { display: none; }
.tsearch.on { color: var(--gold); }
.sports { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 10px; background: var(--bg); position: sticky; top: 58px; z-index: 19; }
.sports::-webkit-scrollbar { display: none; }
.sports[hidden] { display: none; }
/* more chips wait off the edge: it fades there (set by fadeStrip in app.js) */
.sports[data-fade=end] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.sports[data-fade=start] { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); }
.sports[data-fade=both] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.sports a, .sports span { flex: none; font: 800 12px/1 var(--font-poster); font-style: italic; letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.sports a.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.sports .soon, .topnav .soon { color: var(--faint); cursor: default; }
.soon small { font: 700 9px/1 var(--font-ui); font-style: normal; letter-spacing: .08em; margin-left: 5px; color: var(--muted-2); }
body.bare .sports { display: none; }

.ptabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(10,10,12,.96); border-bottom: 1px solid var(--line); font-family: var(--font-poster); }
.ptabs a { text-align: center; padding: 13px 0; font-weight: 800; font-style: italic; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #7d7e86; text-decoration: none; }
.ptabs a.on { color: var(--bg); background: var(--gold); }
main:not(.flush) > .ptabs:first-child, main.flush > .ptabs:first-child { margin: 0 -16px 8px; }
main.flush > .ptabs:first-child { margin: 0 0 0; }
.cardview > .ptabs { margin: 0; }

.pnow { margin: 8px 0 18px; }
.pnow > small { display: block; font: 700 11px/1 var(--font-ui); letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.pnow-card { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; text-decoration: none; background: linear-gradient(100deg, #2a0e0c, #0e1834); border: 1px solid var(--line-2); }
.pnow-card div { flex: 1; min-width: 0; padding: 14px; }
.pnow-card b { display: block; font: italic 800 18px/1.15 var(--font-poster); }
.pnow-card span { display: block; margin-top: 4px; font: 400 13px/1.3 var(--font-ui); color: var(--text-2); }
.pnow-card em { display: grid; place-items: center; padding: 0 16px; background: var(--gold); color: var(--bg); font: italic 800 15px/1 var(--font-poster); }

.epks { margin: 4px 16px 0; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 14px; background: #111115; }
.epks > small { display: block; font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.epk { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); text-decoration: none; }
.epks > small + .epk { border-top: 0; }
.epk a { text-decoration: none; }
.epk b { display: block; font: 700 16px/1.25 var(--font-condensed); color: #fff; }
.epk small { display: block; font: 400 12px/1.3 var(--font-ui); color: var(--muted-2); }
.epk.add b { color: var(--text-2); }
.epks .fine { margin: 6px 0 10px; }

.feed.flat { margin: 0; }
.feed.flat a { color: inherit; text-decoration: none; }
.lead { font: 400 15px/1.45 var(--font-ui); color: var(--text-2); margin: 10px 0 0; }
.lead b { color: #fff; }
.hc-under .btn { font-family: var(--font-ui); }
.cardview > .steps { margin: 18px 16px; }
.chips.tog { margin: 0 18px 12px; }
.chips.tog .chip { min-height: 34px; font-family: var(--font-ui); font-size: 13px; }
.chips.lg { padding: 0 16px; }
a.br { color: inherit; text-decoration: none; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }

.prof { display: flex; gap: 16px; align-items: center; margin: 12px 0 14px; }
.prof h1 { margin: 0; }
.av.big { width: 72px; height: 72px; font-size: 32px; flex: none; }
.pstrip { border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; }

.ppl { padding: 0 16px; display: grid; gap: 2px; }
.pp { display: flex; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--line); font-family: var(--font-ui); }
.pp .av { width: 32px; height: 32px; font-size: 14px; }
.pp b { display: block; font: 700 16px/1.2 var(--font-condensed); }
.pp small { color: var(--muted-2); font-size: 12px; }
.card.pk .av { width: 34px; height: 34px; font-size: 15px; flex: none; }
.board a.nm { display: block; color: inherit; text-decoration: none; }

@media (min-width: 900px) {
  .sports { display: none; }
  .topnav:not([hidden]) { gap: 18px; overflow: hidden; }
  .topnav .soon { display: flex; align-items: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #55565e; border-bottom: 2px solid transparent; white-space: nowrap; }
  .tsearch { min-width: 240px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #141418; }
  .tsearch span { display: inline; font: 400 13px/1 var(--font-ui); color: var(--muted-2); }
  .grp { display: none; }
  main.flush > .ptabs:first-child, .cardview > .ptabs { max-width: 720px; margin-left: auto; margin-right: auto; }
  .epks { margin: 14px auto 0; max-width: 688px; }
}
.board li > div { min-width: 0; }
.board li > div .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { .hub .epks { margin: 0 16px; } }
@media (min-width: 900px) { .hub > .epks { max-width: 688px; margin: 0 auto; } }
.chips .chip { display: inline-flex; align-items: center; }

/* The poster's fighters: inner aligned, toward the names, almost the full height */
.poster .photo { width: auto; height: 94%; max-width: 60%; bottom: 0; }
.pr .photo { left: auto; right: 47%; max-width: 53%; object-position: bottom right; }
.pb .photo { right: auto; left: 47%; max-width: 53%; object-position: bottom left; }
@media (min-width: 900px) { .pr .photo { right: 53%; max-width: 47%; } .pb .photo { left: 53%; max-width: 47%; } }

/* The card: one fight per row in its part of the card, each fighter's picture on the inner
   side by the middle, the name on the outside */
.hd.seg { margin: 22px 16px 8px; letter-spacing: .06em; }
.hf { position: relative; overflow: hidden; }
.hf .photo, .hf .sil { position: absolute; bottom: 0; height: 100%; width: auto; max-width: 62%; object-fit: contain; pointer-events: none; }
.hf.r .photo, .hf.r .sil { right: 9%; object-position: bottom right; }
.hf.b .photo, .hf.b .sil { left: 9%; object-position: bottom left; }
.hf svg.sil { width: 64px; height: 64px; fill: rgba(0,0,0,.28); }
.hf img.photo { width: auto; height: 100%; }
.hf:not(.on) .photo { filter: saturate(.55) brightness(.75); }
.hf b, .hf small { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.65); }
.ban.main .hf .photo { max-width: 66%; }
/* On a phone the name and the picture share the half: the name fits in about 72% of it and the picture
   takes what is left, always inside the banner (a surname never sits under its fighter's picture) */
@media (max-width: 899px) {
  .hf { container-type: inline-size; }
  .hf b { font-size: min(21px, calc(62cqw / var(--w, 5))); }
  .ban.main .hf b { font-size: min(25px, calc(62cqw / var(--w, 5))); }
  .hf .photo, .hf .sil { max-width: max(0px, calc(100% - 22px - min(24.2px * var(--w, 5), 72cqw))); }
  .ban.main .hf .photo { max-width: max(0px, calc(100% - 22px - min(28.8px * var(--w, 5), 72cqw))); }
  .hf.r .photo, .hf.r .sil { right: 0; }
  .hf.b .photo, .hf.b .sil { left: 0; }
}
@media (min-width: 900px) {
  .bans { display: flex; flex-direction: column; gap: 6px; }
  .ban { height: 96px; }
  .ban.main { height: 120px; }
  .hf b { font-size: min(26px, calc(300px / var(--w, 5))); }
  .ban.main .hf b { font-size: min(30px, calc(310px / var(--w, 5))); }
  .hf.r .photo, .hf.r .sil { right: 12%; }
  .hf.b .photo, .hf.b .sil { left: 12%; }
}
@media (min-width: 900px) { .topnav:not([hidden]) { overflow-x: auto; scrollbar-width: none; min-width: 0; } .topnav::-webkit-scrollbar { display: none; } }

/* Fight rows: the record sits above the name, and the name sits on the bottom edge */
.hf { justify-content: flex-end; padding-top: 0; padding-bottom: 10px; }
.hf small { order: -1; margin-bottom: 2px; }
/* the fight's number and its pill are one tag on the top edge, clear of the faces and the names */
.ban .ban-more { bottom: auto; top: 0; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 0; border-radius: 0 0 10px 10px; border-top: 0; }
.ban-no { background: var(--gold); color: var(--bg); font-weight: 800; padding: 3px 6px; letter-spacing: .08em; }

/* The pick screen: the two fighters side by side, red left and blue right, cut on the same slant as the
   card's rows; the finish and round straight under them; the details fold open below */
.vsplit { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 300px; }
.half { align-items: flex-end; padding: 14px; }
.half.r { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); padding-top: 14px; }
.half.b { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-top: 0; margin-left: -12%; }
.half div { position: relative; z-index: 1; margin: 0 !important; }
.half b { font-size: min(31px, calc((50vw - 34px) / var(--w, 6))); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.half .photo, .half .sil { position: absolute; bottom: 0; height: 88%; width: auto; max-width: 92%; }
.half.r .photo, .half.r .sil { right: 10%; left: auto; object-position: bottom right; }
.half.b .photo, .half.b .sil { left: 10%; right: auto; object-position: bottom left; }
.half.on::before { top: 52px !important; bottom: auto !important; z-index: 2; }
.half.r.on::before { left: 14px !important; right: auto !important; }
.half.b.on::before { right: 14px !important; left: auto !important; }
.vs { top: 46%; }
.vsplit .x { z-index: 3; }
details.fold { margin: 14px 16px 0; border-top: 1px solid var(--line); }
details.fold > summary { padding: 14px 0 4px; cursor: pointer; list-style: none; font: italic 800 15px/1 var(--font-poster); letter-spacing: .02em; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: " +"; color: var(--gold); }
details.fold[open] > summary::after { content: " −"; }
details.tape.fold { padding: 0; }
.l5fold .hd { margin-left: 0; }
.l5fold .lf { padding: 0; }
@media (min-width: 900px) { .vsplit { height: 380px; } .half b { font-size: min(40px, calc(560px / var(--w, 6))); } }
.hf[disabled] { cursor: pointer; }

/* Card part headers centred; the pick screen's pictures half as tall, the names under them, clear of the
   faces; the crew's split runs the full width */
.hd.seg { text-align: center; }
.ban .ban-more { padding: 3px 9px; }
.vsplit { height: 170px; }
.half { padding: 0; }
.half .photo, .half .sil { height: 100%; max-width: 70%; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 16px 0; }
.nside { min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.nside.b { text-align: right; }
.nside[disabled] { cursor: default; }
.nside small { display: block; font: 700 11px/1.3 var(--font-ui); letter-spacing: .1em; color: var(--muted); }
.nside b { display: block; margin-top: 2px; font: italic 800 min(26px, calc((50vw - 30px) / var(--w, 6)))/0.95 var(--font-poster); letter-spacing: -.02em; overflow-wrap: anywhere; }
.nside.r b { color: var(--red-text); }
.nside.b b { color: var(--blue-text); }
.nside.on b::after { content: " ✓"; color: var(--gold); }
.nside .won-tag, .nside .hc-on { display: inline-block; margin-top: 6px; }
.half.on::before { top: 10px !important; bottom: auto !important; }
.half.r.on::before { left: 12px !important; right: auto !important; }
.half.b.on::before { right: 12px !important; left: auto !important; }
.vs { top: 50%; font-size: 18px; }
.crewwide { margin: 12px 16px 0; }
@media (min-width: 900px) { .vsplit { height: 220px; } .nside b { font-size: min(34px, calc(330px / var(--w, 6))); } }

/* Every tab of a pickem wears the same poster; the Crew and Settings pages keep the page's 16px edge and its
   type. The card's parts are gold bands, like the next event in a list */
.tabpage { padding: 4px 16px 24px; font-family: var(--font-ui); }
.tabpage header.ph { margin-top: 14px; }
.cardview > .cn > .bhead { padding-top: 18px; }
.hd.seg { margin: 18px 0 8px; padding: 9px 16px; background: var(--gold); color: var(--bg); text-align: center;
  font: italic 800 15px/1 var(--font-poster); letter-spacing: .1em; }
@media (min-width: 900px) {
  .tabpage, .cardview > .hd.seg { max-width: 720px; margin-left: auto; margin-right: auto; }
  .cardview > .hd.seg { margin-top: 18px; }
}
.crewwide { display: grid; gap: 8px; }
.gs.pnb { border-style: solid; border-color: var(--gold); }
.gs.pnb small { color: var(--gold); }
.cardview > .lf, .fightscreen > .lf { padding: 0 16px; }

/* Pick screen: the W/L row under each name, the fight's facts in the middle between the names, and the last
   five fights side by side when opened */
.names { grid-template-columns: 1fr auto 1fr; align-items: start; }
.finfo { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; text-align: center;
  font: 700 10px/1.2 var(--font-ui); letter-spacing: .1em; color: var(--muted-2); max-width: 92px; }
.finfo span:first-child { color: var(--gold); }
.l5row { display: flex; gap: 2px; margin-top: 6px; }
.nside.b .l5row { justify-content: flex-end; }
.l5row i { font-style: normal; font: 800 10px/1 var(--font-ui); width: 17px; height: 17px; display: grid; place-items: center; background: var(--win-bg); color: var(--win); }
.l5row i.L { background: var(--loss-bg); color: var(--red-text); }
.l5row i.D, .l5row i.NC { background: var(--line-2); color: var(--text-2); }
.l5row .debut { font: 700 10px/1 var(--font-ui); letter-spacing: .1em; color: var(--muted-2); font-style: normal; }
.l5two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l5two .hd { margin: 10px 0 4px; font-size: 12px; }
.l5two .lf { padding: 0; }
.l5two .lf div { gap: 6px; }
.l5two .lf i { width: 26px; height: 26px; font-size: 13px; }
.l5two .lf b { font-size: 13px; }
.l5two .lf em { font-size: 11px; }
.l5two .b .lf div { flex-direction: row-reverse; text-align: right; }
@media (max-width: 340px) { .finfo { max-width: 70px; } }
.cardview > .fill { margin: 14px 16px 0; }
.fill select { flex: 1; min-width: 0; }
@media (min-width: 900px) { .cardview > .fill { max-width: 688px; margin-left: auto; margin-right: auto; } }

/* the names share the row with the fight's facts: size them to their third */
.nside b { font-size: min(24px, calc((50vw - 72px) / var(--w, 6))); overflow-wrap: normal; }
.nside small { white-space: nowrap; }
@media (min-width: 900px) { .nside b { font-size: min(34px, calc(300px / var(--w, 6))); } }

/* Footer: the beansinside mark and its name */
.pk-bi img { height: 16px; width: 16px; border-radius: 4px; }
.bi-name { font: 600 13px/1 ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--text-2); }
.pk-foot p a { color: var(--text-2); }
.sports a.soon, .topnav a.soon { cursor: pointer; text-decoration: none; }

/* Places are links: an arena or a city in a list, on the poster, in a fighter's history */
.when a, a.plc { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.ev small a.plc { pointer-events: auto; }
div.ev a { color: inherit; text-decoration: none; }
.ev .d { color: inherit; text-decoration: none; }
.lf small a.plc { display: inline; }
.vcard a.plc { font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.poster .when { pointer-events: auto; }

/* A venue's header picture (a free photo with its credit) or, with none, a plain panel in the same shape */
.vphoto { margin: 14px 16px 0; padding: 0; position: relative; }
.vphoto img, .vphoto.none { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; clip-path: polygon(0 0,100% 0,100% 100%,8% 100%,0 88%); }
.vphoto img { object-fit: cover; background: var(--surface); }
.vphoto.none { width: auto; display: flex; align-items: center; justify-content: center; border: 0;
  aspect-ratio: 16 / 6; background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #1a1a20 14px 28px); }
.vphoto.none span { font: 800 italic 13px/1 var(--font-poster); letter-spacing: .16em; color: var(--faint); }
.vphoto figcaption { margin: 6px 0 0; }
.vphoto figcaption a { color: var(--text-2); }
.vphoto + .city { margin-top: 10px; }

/* Nicknames: in italics, with the real name */
i.nick { display: block; font: italic 600 12px/1.2 var(--font-ui); letter-spacing: .01em; color: var(--muted); text-transform: none; }
.fx i.nick { position: relative; color: rgba(255,255,255,.8); font-size: 11px; margin-bottom: 2px; }
.nside i.nick { margin-top: 2px; }
.fpost .nm small { font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 14px; }

/* Signed-out home: the three steps sit centred under the poster, each number above its words */
.cardview > .steps { max-width: 440px; margin: 26px auto; padding: 0 16px; gap: 18px; justify-items: center; text-align: center; }
.cardview > .steps li { flex-direction: column; align-items: center; gap: 6px; }
.cardview > .steps li::before { background: var(--gold); color: var(--bg); border-color: var(--gold); }
@media (min-width: 900px) {
  .cardview > .steps { max-width: 720px; grid-template-columns: repeat(3, 1fr); align-items: start; }
}
main#main:focus, main#main:focus-visible, h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }   /* the page focuses main after each move, for screen readers; no ring needed there */

/* A finished fight reads as finished: the winner in full corner colour with a WIN tag, the loser dimmed,
   how it ended in the middle; your pick marked right or wrong */
.ban.done .hf.won.r { background: var(--red); color: #fff; }
.ban.done .hf.won.b { background: var(--blue); color: #fff; }
.ban.done .hf.lost .photo { filter: grayscale(1) brightness(.6); }
.ban.even .hf { filter: saturate(.5) brightness(.8); }
.wintag { position: absolute; top: 6px; z-index: 2; font: 800 10px/1 var(--font-ui); font-style: normal; letter-spacing: .14em;
  background: var(--gold); color: var(--bg); padding: 3px 6px; }
.hf.r .wintag { left: 14px; }
.hf.b .wintag { right: 14px; }

.hf.on.right b::after { content: " ✓"; color: var(--gold); }
.hf.on.wrong b::after { content: " ✗"; color: #fff; opacity: .8; }
.ban.done .ban-more { background: var(--surface); color: #fff; }

/* Loading: nothing for the first 0.3 s (most pages are back by then), then slim rows the width of the
   real column, never full-width bars */
.skel { height: 56px; max-width: 688px; margin: 12px auto !important; opacity: 0; border-radius: 10px;
  animation: skelin .25s .3s ease forwards, skel 1.4s .3s ease infinite; }
main.flush .skel { margin: 12px 16px !important; }
@media (min-width: 900px) { main.flush .skel { margin: 12px auto !important; } }
.skel + .skel { height: 40px; max-width: 520px; }
.skel + .skel + .skel { max-width: 600px; }
@keyframes skelin { to { opacity: .7; } }

/* Coming up rows carry their global pickem's action on the right */
.evact { flex: none; margin-left: auto; font: italic 800 12px/1 var(--font-poster); letter-spacing: .06em; padding: 8px 10px; border-radius: 8px;
  border: 1.5px solid currentColor; background: none; color: inherit; text-decoration: none; cursor: pointer; }
.ev.up .evact { background: var(--bg); color: var(--gold); border-color: var(--bg); }
.evact.off { opacity: .55; cursor: default; }
.epk.add.solo { margin: 0 16px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; display: block; text-decoration: none; }
@media (min-width: 900px) { .hub > .epk.add.solo { max-width: 688px; margin: 0 auto; } }

/* The top bar, bigger: taller, larger tab text and hit areas; coming-soon sports are plain tabs, a little dimmer */
.mast { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 12px; }
.brand .logo { height: 30px; }
.sports { top: 66px; padding-bottom: 12px; gap: 8px; }
.sports a, .sports span { font-size: 14px; padding: 10px 15px; }
.sports .soon, .topnav .soon { color: var(--muted-2); opacity: .8; }
.sports a.soon.on, .topnav a.soon.on { opacity: 1; }
.tsearch svg { width: 26px; height: 26px; }
.who.me .av { width: 36px; height: 36px; font-size: 16px; }
@media (min-width: 900px) {
  .mast { height: 72px; padding: 0 36px; gap: 32px; }
  .brand .logo { height: 34px; }
  .topnav:not([hidden]) { gap: 26px; }
  .topnav a { font-size: 16px; letter-spacing: .07em; padding: 0 2px; }
  .topnav .soon { font-size: 16px; color: var(--muted-2); }
  .tsearch { min-width: 280px; padding: 11px 14px; }
  .tsearch span { font-size: 14px; }
}

/* the motion kit (pnb-motion.css) dims the corner you didn't pick and the loser; under reduced motion the shimmer stops */
.pnb-reduced .skel { animation: none; }
/* Bright by default: dimming means something (the corner you didn't pick, or the loser) */
.half:not(.on) { filter: none; }
.hf:not(.on) .photo { filter: none; }
.ban.done .hf:not(.won):not(.lost) { filter: none; }
/* The fighters are the buttons: they lift on hover, press on tap, and say PICK until one is chosen */
.vsplit.open .half, .ban:not(.locked) .hf { cursor: pointer; }   /* press and hover: pnb-motion.css */
.vsplit.open .half:not(.on)::after { content: "PICK"; position: absolute; bottom: 10px; z-index: 2; font: 800 11px/1 var(--font-ui); letter-spacing: .16em;
  color: #fff; border: 1.5px solid rgba(255,255,255,.85); padding: 5px 9px; border-radius: 3px; background: rgba(0,0,0,.25); }
.vsplit.open .half.r:not(.on)::after { left: 12px; }
.vsplit.open .half.b:not(.on)::after { right: 12px; }
.vsplit.open.picked .half:not(.on)::after { opacity: .7; }
.ban.nudge { animation: nudge 1.1s ease .6s 2; }
@keyframes nudge { 50% { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold); } }
@media (prefers-reduced-motion: reduce) { .ban.nudge { animation: none; } }
.half.on::before { top: auto !important; bottom: 10px !important; }   /* YOUR PICK where PICK sat, clear of ‹ CARD */

/* The card's own page: two ways in, then where you stand once it's under way */
.hc-under .btn.mk { margin-top: 10px; font-family: var(--font-ui); }
.pkstrip { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); text-decoration: none; }
.epks > small + .pkstrip { border-top: 0; }
.pkstrip b { display: block; font: 700 16px/1.25 var(--font-condensed); color: #fff; }
.pkstrip small { display: block; font: 400 12px/1.3 var(--font-ui); color: var(--muted-2); }
.pkstrip em { flex: none; text-align: right; font: italic 800 24px/1 var(--font-poster); color: var(--gold); }
.pkstrip em small { font: 700 10px/1.4 var(--font-ui); letter-spacing: .08em; color: var(--muted); font-style: normal; }
.epks.mine { margin-bottom: 12px; }
.pnbline { text-align: center; }

/* Pick reminders on the account page */
.acct-remind .acct-hd { margin-top: 0; }
.acct-remind-chips { margin-bottom: 12px; }
.acct-custom { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.acct-custom label.field { margin: 0; flex: 0 1 140px; }
.acct-custom input { width: 100%; }
.acct-custom .btn { min-height: 44px; }
.acct-remind .acct-now { margin: 12px 0 0; font-weight: 600; }
.acct-remind .note { margin: 10px 0 0; }

/* Share: the button under a pickem's score or picks, Save image beside it once picture cards exist */
.hc-under .sharebtn, .hc-under .sharerow { margin-top: 10px; font-family: var(--font-ui); }
.sharerow { display: flex; gap: 8px; }
.sharerow .sharebtn { flex: 1; margin-top: 0; }
.pkshare { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); }
.epks > small + .pkshare { border-top: 0; }
.pkshare .pkstrip { flex: 1; border-top: 0; min-width: 0; }
.pkshare > .btn, .pkshare > .sharerow { flex: none; }

/* Privacy (#/privacy): plain reading, one column */
.privpage { max-width: 640px; }
.privpage .priv h2 { margin-top: 26px; }
.privpage ul { margin: 8px 0 0; padding-left: 20px; }
.privpage li { margin: 0 0 10px; line-height: 1.5; color: var(--text-2); }
.privpage .priv p { line-height: 1.5; color: var(--text-2); }
.credits { max-width: 720px; }
.creditlist { list-style: none; padding: 0 !important; }
.creditlist li { padding: 8px 0; border-top: 1px solid var(--line, rgba(255,255,255,.1)); overflow-wrap: anywhere; }
.creditlist .cname { display: block; font-weight: 600; }
.creditlist .lic { white-space: nowrap; }
.privpage .priv a { color: var(--text); text-underline-offset: 3px; }
.pk-foot .pk-priv { color: var(--text-2); text-underline-offset: 3px; }

/* the invite link, shown in full and wrapped so the code is never cut off */
.invlink { font-size: 14px; line-height: 1.4; color: var(--muted); word-break: break-all; overflow-wrap: anywhere; user-select: all; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; }

/* A short phone (320x568): a shorter poster, so the first screen holds the main button above the tabs */
@media (max-width: 899px) and (max-height: 640px) {
  .poster { height: 190px; }
  /* the names centre in the room above the date line (which can take two lines), a little smaller */
  .poster h1 { bottom: 54px; top: 6px; }
  .poster h1 span, .poster.landing h1 span { font-size: min(40px, calc(76vw / var(--n, 5.6))); }
  .poster h1 em { font-size: 18px; margin: 2px 0; }
}

.welcome { margin: 12px 14px; gap: 10px; }
/* Keyboard focus, in the G2 look (a gold outline) on every control. The corners are cut to a slant by
   clip-path, which would clip an outline drawn outside them, so theirs is drawn inside; fields keep the ring
   whatever their own border rule says (body raises the weight past the type-specific input rules) */
body input:focus-visible, body select:focus-visible, body textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: #fff; }
.half:focus-visible, .hf:focus-visible { outline: 4px solid var(--gold); outline-offset: -6px; filter: brightness(1.25); }
.half:focus-visible { z-index: 2; }
.how button:focus-visible, .chip:focus-visible, .cta:focus-visible, .ban-more:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nside { display: block; cursor: pointer; }
.nside.locked { cursor: default; }
.res .tbox { display: flex; align-items: center; gap: 8px; }
.res .tbox span { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.res .tbox input { width: 96px; max-width: 120px; }
fieldset.qset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.qset > legend { padding: 0; font: italic 800 18px/1.2 var(--font-poster); margin: 26px 0 10px; }

/* A narrow screen or very large text (390 wide at 200% text is 195 CSS px): the wordmark shrinks, so search and
   Sign in stay on screen instead of being pushed off the edge */
@media (max-width: 899px) {
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand .logo { max-width: 100%; object-fit: contain; object-position: left center; }
}
@media (max-width: 300px) { .mast { gap: 8px; padding-left: 10px; padding-right: 10px; } }
.note.signedout { margin: 0 0 12px; }

/* The hub (js/hub.js, js/fight.js): the fight screen's way up to each fighter's page, a long stance set smaller
   so it is never cut, and the fighter page's folded career numbers */
.nside .fpage { display: inline-block; margin-top: 4px; padding: 6px 0; min-height: 24px; font: 700 11px/1.2 var(--font-ui); letter-spacing: .1em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.nside .fpage:hover { color: var(--text); }
.strip b.long { font-size: 17px; height: 34.8px; line-height: 34.8px; }
.morenums .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0 16px; }
.morenums .nums div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.morenums dt { font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .1em; color: var(--muted-2); }
.morenums dd { margin: 0; font-style: italic; font-weight: 800; font-size: 18px; color: var(--text); }
@media (max-width: 420px) { .morenums .nums { grid-template-columns: 1fr; } }
