/* SPIDERVERSES DRAFT: trading cards on a comic page. Same family as rank / track / daily. */
:root {
  --paper: #f3ecda; --paper2: #e9e0c8; --card: #fffaf0; --ink: #141210; --red: #e3262f; --cyan: #1fb7d6; --yellow: #ffe14d; --blue: #2b59c3; --pink: #ff2bd6; --mute: #6d6556;
  --display: 'Bangers', Impact, sans-serif; --marker: 'Permanent Marker', cursive; --mono: 'Space Mono', monospace; --body: 'Comic Neue', 'Comic Sans MS', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 700 16px/1.45 var(--body); overflow-x: clip;
  background: radial-gradient(circle, #0000001c 1px, transparent 1.6px) 0 0 / 6px 6px, var(--paper); }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; color: inherit; }
input { font: inherit; }
.ic { width: 1em; height: 1em; vertical-align: -.14em; flex-shrink: 0; }
[hidden] { display: none !important; }

/* masthead */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: var(--ink); color: var(--paper); border-bottom: 5px solid var(--red); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; flex-shrink: 0; }
.brand .mark { display: inline-flex; color: var(--red); filter: drop-shadow(2px 2px 0 #000); }
.brand .mark .ic { width: 34px; height: 34px; }
.brand span:last-child { font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1; text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
.brand b { font-family: var(--marker); font-weight: 400; font-size: 20px; color: var(--yellow); text-shadow: none; margin-left: 4px; rotate: -4deg; display: inline-block; }
.sis { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.sis a, .sis .hb { font-family: var(--display); font-size: 19px; letter-spacing: .05em; line-height: 1; padding: 7px 11px 5px; color: var(--paper); text-decoration: none; border: 2px solid transparent; background: none; }
.sis a:hover, .sis .hb:hover { border-color: #ffffff44; }
.sis .hb { display: inline-flex; gap: 6px; align-items: center; background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 3px 3px 0 var(--red); margin-right: 8px; }

main { max-width: 1240px; margin: 0 auto; padding: 22px 22px 40px; }
.loading { font-family: var(--display); font-size: 26px; padding: 40px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); font-family: var(--display); font-size: 20px; letter-spacing: .05em; line-height: 1;
  padding: .45em .8em .35em; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: translate .08s, box-shadow .08s; }
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn.red { background: var(--red); color: #fff; } .btn.x { background: var(--ink); color: #fff; } .btn.y { background: var(--yellow); }
.btn:disabled { opacity: .45; cursor: not-allowed; translate: none; box-shadow: 4px 4px 0 var(--ink); }
.btn.sm { font-size: 16px; padding: .4em .65em .3em; box-shadow: 3px 3px 0 var(--ink); }
.btn.big { font-size: 28px; padding: .4em 1em .3em; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin: 4px 0 22px; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; background: var(--yellow); border: 3px solid var(--ink); padding: 4px 10px 3px; box-shadow: 3px 3px 0 var(--ink); rotate: -2deg; }
.hero h1 { margin: 12px 0 4px; font: 400 clamp(44px, 7.4vw, 92px)/.86 var(--display); letter-spacing: .01em; color: #fff; -webkit-text-stroke: 2px var(--ink);
  text-shadow: -4px 0 var(--cyan), 4px 0 var(--red), 7px 7px 0 var(--ink); }
.hero p { margin: 8px 0 0; max-width: 620px; font-size: 18px; }
.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rules span { display: inline-flex; gap: 6px; align-items: center; font: 700 12px var(--mono); letter-spacing: .08em; background: var(--card); border: 2px solid var(--ink); padding: 4px 9px; box-shadow: 2px 2px 0 var(--ink); }
.rules .ic { color: var(--red); }

/* challenge banner */
.foe { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 0 0 22px; padding: 14px 18px; background: var(--ink); color: var(--paper); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); rotate: -.4deg; }
.foe .who small { display: block; font: 700 11px var(--mono); letter-spacing: .16em; color: var(--yellow); }
.foe .who b { display: block; font: 400 clamp(26px, 3.4vw, 40px)/.95 var(--display); letter-spacing: .02em; color: #fff; text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
.foe .who span { font-size: 14px; color: #cfc6b0; }
.foe .faces { display: flex; gap: 6px; }
.foe .faces img { width: 46px; height: 62px; object-fit: cover; border: 3px solid var(--paper); background: #333; }
.foe .faces img.cap { width: 58px; height: 78px; border-color: var(--yellow); }
.foe .sc { font: 400 46px/.85 var(--display); background: var(--red); color: #fff; border: 3px solid var(--paper); padding: 8px 12px 2px; text-align: center; }
.foe .sc small { display: block; font: 700 9px var(--mono); letter-spacing: .14em; }
.foe .faces { justify-self: end; }

/* builder layout */
.build { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip { font-family: var(--display); font-size: 18px; letter-spacing: .05em; line-height: 1; padding: 7px 12px 5px; border: 3px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--red); }
.tools .sp-r { margin-left: auto; display: flex; gap: 6px; align-items: center; font: 700 12px var(--mono); color: var(--mute); }
.tools select { font: 700 13px var(--mono); border: 3px solid var(--ink); background: var(--card); padding: 5px 6px; box-shadow: 3px 3px 0 var(--ink); }

/* the cards */
.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.sp { position: relative; text-align: left; display: flex; flex-direction: column; padding: 0; background: var(--card); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: translate .1s, box-shadow .1s, rotate .1s; }
.sp:hover { translate: -3px -3px; box-shadow: 8px 8px 0 var(--ink); rotate: -.6deg; }
.sp .im { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--ink); border-bottom: 4px solid var(--ink); }
.sp .im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .25s; }
.sp:hover .im img { scale: 1.05; }
.sp .im::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #0000002e 1px, transparent 1.4px) 0 0 / 4px 4px; mix-blend-mode: multiply; pointer-events: none; }
.cost { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; gap: 4px; align-items: center; font: 400 22px/1 var(--display); background: var(--yellow); border: 3px solid var(--ink); padding: 4px 8px 1px; box-shadow: 2px 2px 0 var(--ink); }
.cost .ic { width: 16px; height: 16px; margin-top: -3px; }
.role { position: absolute; bottom: 8px; right: -4px; z-index: 2; font: 700 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: 3px 10px 3px 8px; border: 2px solid var(--ink); }
.r-Leader { background: var(--red); } .r-Bruiser { background: var(--ink); } .r-Genius { background: var(--blue); } .r-Speedster { background: #11a36b; } .r-Wildcard { background: var(--pink); }
.sp .tx { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp .tx b { font: 400 22px/1 var(--display); letter-spacing: .02em; }
.sp .tx small { display: block; margin-top: 1px; font: 700 10px/1.3 var(--mono); color: var(--mute); }
.sp .pw { margin: 0; font-size: 13px; line-height: 1.25; font-weight: 700; flex: 1; }
.kind { position: absolute; top: 8px; right: 8px; z-index: 2; font: 700 9px var(--mono); letter-spacing: .12em; background: var(--card); border: 2px solid var(--ink); padding: 2px 6px; }
.stats { display: grid; gap: 3px; }
.stat { display: grid; grid-template-columns: 16px 1fr 18px; gap: 6px; align-items: center; font: 700 11px var(--mono); }
.stat .ic { width: 14px; height: 14px; }
.bar { height: 9px; border: 2px solid var(--ink); background: var(--paper2); display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; padding: 1px; }
.bar i { background: transparent; } .bar i.f { background: var(--red); }
.stat.iq .bar i.f { background: var(--blue); } .stat.agi .bar i.f { background: #11a36b; }

.sp.on { box-shadow: 5px 5px 0 var(--red); outline: 4px solid var(--red); outline-offset: -2px; }
.sp.on::before { content: "DRAFTED"; position: absolute; z-index: 4; top: 34%; left: 50%; translate: -50% -50%; rotate: -12deg; font: 400 38px/1 var(--display); letter-spacing: .06em; color: var(--red);
  background: var(--card); border: 4px solid var(--red); padding: 6px 12px 2px; box-shadow: 4px 4px 0 var(--ink); pointer-events: none; }
.sp.on .im img { filter: saturate(.4) brightness(.7); }
.sp.no { opacity: .5; }
.sp.no:hover { translate: none; rotate: none; box-shadow: 5px 5px 0 var(--ink); }
.sp .need { position: absolute; z-index: 4; top: 34%; left: 50%; translate: -50% -50%; white-space: nowrap; font: 700 12px var(--mono); letter-spacing: .1em; background: var(--ink); color: #fff; padding: 4px 8px; }

/* team panel */
.team { position: sticky; top: 84px; background: var(--card); border: 4px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); }
.team > h2 { margin: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 8px; background: var(--ink); color: #fff; font: 400 28px/1 var(--display); letter-spacing: .05em; }
.team > h2 small { font: 700 11px var(--mono); letter-spacing: .1em; color: var(--yellow); }
.tb { padding: 12px 14px 16px; display: grid; gap: 12px; }
.budget { display: grid; gap: 5px; }
.budget .lbl { display: flex; justify-content: space-between; font: 700 12px var(--mono); letter-spacing: .08em; }
.budget .lbl b { font: 400 20px/1 var(--display); letter-spacing: .04em; }
.coins { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.coins i { height: 14px; border: 2px solid var(--ink); background: var(--paper2); transform: skewX(-12deg); }
.coins i.f { background: var(--yellow); } .coins i.over { background: var(--red); }
.slots { display: grid; gap: 7px; }
.slot { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 8px; align-items: center; min-height: 58px; padding: 5px; border: 3px solid var(--ink); background: #fff; }
.slot img { width: 46px; height: 46px; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); }
.slot .n b { display: block; font: 400 19px/1 var(--display); letter-spacing: .02em; }
.slot .n small { font: 700 10px var(--mono); color: var(--mute); }
.slot.empty { border-style: dashed; background: transparent; grid-template-columns: 1fr; place-items: center; font: 400 18px var(--display); letter-spacing: .06em; color: #14121066; }
.slot.cap { background: #fff6c9; box-shadow: inset 5px 0 0 var(--yellow); }
.ib { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--card); padding: 0; }
.ib .ic { width: 17px; height: 17px; }
.ib.capb { color: #b9ab84; } .ib.capb.on { color: var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.ib:hover { background: var(--paper2); }
.score { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px; background: var(--ink); color: #fff; }
.score .num { font: 400 54px/.85 var(--display); background: var(--red); border: 3px solid #fff; padding: 8px 10px 2px; min-width: 92px; text-align: center; rotate: -3deg; }
.score .num small { display: block; font: 700 9px var(--mono); letter-spacing: .14em; margin-bottom: 2px; }
.score .bd { font: 700 12px/1.6 var(--mono); color: #cfc6b0; }
.score .bd b { color: #fff; }
.syns { display: flex; flex-wrap: wrap; gap: 6px; }
.syn { display: inline-flex; gap: 5px; align-items: center; font: 700 11px var(--mono); padding: 3px 8px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.syn .ic { color: var(--red); }
.syns .none { font: 700 12px var(--mono); color: var(--mute); }
.linkish { background: none; border: 0; padding: 0; font: 700 12px var(--mono); color: var(--blue); text-decoration: underline; justify-self: start; }
.field { display: grid; gap: 4px; }
.field label { font: 700 11px var(--mono); letter-spacing: .12em; }
.field .in { display: flex; gap: 6px; }
.field input { flex: 1; min-width: 0; font: 400 22px/1 var(--display); letter-spacing: .03em; border: 3px solid var(--ink); background: #fff; padding: 8px 10px 5px; }
.field input.h { font: 700 15px var(--mono); padding: 9px 10px; }
.field input:focus { outline: 3px solid var(--yellow); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lock { width: 100%; font-size: 30px; }
.hint { margin: 0; font: 700 12px var(--mono); color: var(--mute); }

/* mobile team bar */
.mbar { display: none; }

/* team view */
.tv { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.sheet { position: relative; background: var(--card); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 22px; overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 85% 10%, #e3262f12 0 6deg, transparent 6deg 12deg); pointer-events: none; }
.sheet > * { position: relative; }
.sheet h1 { margin: 12px 0 2px; font: 400 clamp(40px, 6vw, 78px)/.88 var(--display); color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: -4px 0 var(--cyan), 4px 0 var(--red), 7px 7px 0 var(--ink); overflow-wrap: anywhere; }
.sheet .by { font-size: 17px; } .sheet .by b { background: var(--ink); color: #fff; padding: 1px 8px; }
.roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.roster .sp { cursor: default; } .roster .sp:hover { translate: none; rotate: none; box-shadow: 5px 5px 0 var(--ink); } .roster .sp:hover .im img { scale: 1; }
.roster .sp.cap { box-shadow: 5px 5px 0 var(--red); }
.roster .sp .tx b { font-size: 19px; } .roster .sp .pw { display: none; }
.capflag { position: absolute; z-index: 3; top: -16px; left: 50%; translate: -50% 0; display: inline-flex; gap: 4px; align-items: center; font: 400 15px/1 var(--display); letter-spacing: .06em; background: var(--yellow); border: 3px solid var(--ink); padding: 4px 8px 2px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.sumrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; }
.bignum { font: 400 72px/.82 var(--display); background: var(--red); color: #fff; border: 4px solid var(--ink); padding: 10px 14px 2px; box-shadow: 6px 6px 0 var(--ink); rotate: -3deg; }
.bignum small { display: block; font: 700 11px var(--mono); letter-spacing: .14em; margin-bottom: 3px; }
.totals { display: flex; gap: 14px; font: 700 14px var(--mono); }
.totals span { display: inline-flex; gap: 5px; align-items: center; }
.side { display: grid; gap: 16px; }
.panel { background: var(--card); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 16px; }
.panel h3 { margin: 0 0 10px; font: 400 26px/1 var(--display); letter-spacing: .04em; }
.panel p { margin: 0 0 12px; }
.panel .acts .btn { flex: 1 1 auto; }
.url { font: 700 12px var(--mono); background: #fff; border: 2px dashed var(--ink); padding: 8px; word-break: break-all; margin: 10px 0 0; }
.preview { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: radial-gradient(circle, #ffffff14 1px, transparent 1.5px) 0 0 / 7px 7px, radial-gradient(ellipse at 50% 50%, #3a0b12, #141210 70%); display: grid; place-items: center; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.preview img.ok { opacity: 1; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--cyan); opacity: 0; box-shadow: 0 0 24px var(--cyan), inset 0 0 24px #e3262f88; animation: portal 2.4s steps(12) infinite; }
.rings i:nth-child(2) { border-color: var(--red); box-shadow: 0 0 24px var(--red); animation-delay: .8s; }
.rings i:nth-child(3) { border-color: var(--yellow); box-shadow: 0 0 24px var(--yellow); animation-delay: 1.6s; }
@keyframes portal { 0% { transform: scale(.15) rotate(0); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.5) rotate(90deg); opacity: 0; } }
.rt { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; gap: 4px; color: #fff; padding: 0 16px; }
.rt small { font: 700 10px var(--mono); letter-spacing: .24em; color: #cfc6b0; }
.rt b { font: 400 clamp(20px, 3vw, 30px)/1 var(--display); letter-spacing: .03em; text-shadow: -3px 0 var(--cyan), 3px 0 var(--red); animation: rglitch 1.2s steps(2) infinite; }
@keyframes rglitch { 50% { text-shadow: 3px 0 var(--cyan), -3px 0 var(--red); translate: 1px 0; } }

/* battle */
.arena { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 8px; }
.vsb { position: absolute; left: 50%; top: 120px; translate: -50% 0; z-index: 5; width: 120px; height: 120px; display: grid; place-items: center; font: 400 58px/1 var(--display); color: #fff; -webkit-text-stroke: 2px var(--ink);
  background: var(--red); clip-path: polygon(50% 0, 61% 22%, 85% 10%, 78% 36%, 100% 46%, 79% 59%, 90% 86%, 62% 76%, 50% 100%, 39% 77%, 11% 88%, 21% 60%, 0 48%, 22% 36%, 14% 10%, 39% 22%); filter: drop-shadow(5px 5px 0 var(--ink)); }
.corner { position: relative; background: var(--card); border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.corner.a { rotate: -.6deg; box-shadow: 9px 9px 0 var(--cyan), 9px 9px 0 3px var(--ink); } .corner.b { rotate: .6deg; box-shadow: 9px 9px 0 var(--red), 9px 9px 0 3px var(--ink); }
.corner.win::after { content: "LEADING"; position: absolute; top: -18px; right: 14px; font: 400 18px/1 var(--display); letter-spacing: .08em; background: var(--yellow); border: 3px solid var(--ink); padding: 5px 10px 3px; box-shadow: 3px 3px 0 var(--ink); rotate: 4deg; }
.corner h2 { margin: 0; font: 400 clamp(30px, 3.6vw, 48px)/.9 var(--display); letter-spacing: .02em; color: #fff; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 var(--ink); overflow-wrap: anywhere; }
.corner.a h2 { text-shadow: -3px 0 var(--cyan), 4px 4px 0 var(--ink); } .corner.b h2 { text-shadow: 3px 0 var(--red), 4px 4px 0 var(--ink); }
.corner .mg { font: 700 13px var(--mono); color: var(--mute); margin-top: -6px; }
.faces5 { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 6px; align-items: end; }
.faces5 figure { margin: 0; position: relative; }
.faces5 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 3px solid var(--ink); background: var(--ink); display: block; }
.faces5 figure:first-child img { aspect-ratio: 3 / 4.3; border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.faces5 figcaption { font: 400 13px/1.05 var(--display); letter-spacing: .02em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faces5 figure:first-child figcaption { font-size: 16px; }
.faces5 .cr { position: absolute; top: -12px; left: 50%; translate: -50% 0; color: var(--yellow); filter: drop-shadow(1px 1px 0 #000) drop-shadow(-1px -1px 0 #000); }
.faces5 .cr .ic { width: 26px; height: 26px; }
.paper { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 700 12px var(--mono); }
.paper b { font: 400 34px/.9 var(--display); background: var(--ink); color: #fff; padding: 5px 9px 1px; }
.votebtn { font-size: 30px; }
.corner.mine .votebtn { background: var(--yellow); }
.tally { display: grid; gap: 4px; }
.tally .tr { height: 26px; border: 3px solid var(--ink); background: var(--paper2); position: relative; overflow: hidden; }
.tally .tr i { position: absolute; inset: 0 auto 0 0; background: var(--cyan); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.corner.b .tally .tr i { background: var(--red); }
.tally .tl { display: flex; justify-content: space-between; font: 700 12px var(--mono); }
.tally .tl b { font: 400 22px/1 var(--display); }
.bact { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 6px; }

/* recent battles */
.feed { max-width: 1240px; margin: 0 auto; padding: 0 22px 30px; }
.feed h3 { display: inline-block; margin: 0 0 14px; font: 400 32px/1 var(--display); letter-spacing: .04em; background: var(--yellow); border: 3px solid var(--ink); padding: 6px 14px 2px; box-shadow: 4px 4px 0 var(--ink); rotate: -1deg; }
.fl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fb { display: grid; grid-template-columns: 56px 1fr auto 1fr 56px; gap: 8px; align-items: center; padding: 8px; background: var(--card); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; transition: translate .08s, box-shadow .08s; }
.fb:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--red); }
.fb img { width: 56px; height: 70px; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); }
.fb b { font: 400 16px/1 var(--display); letter-spacing: .02em; overflow-wrap: anywhere; }
.fb b:last-of-type { text-align: right; }
.fb i { font: 400 20px var(--display); font-style: normal; color: var(--red); }

/* dialog */
dialog { padding: 0; border: 5px solid var(--ink); background: var(--paper); color: var(--ink); width: min(640px, 94vw); max-height: 90vh; box-shadow: 14px 14px 0 #000a; }
dialog::backdrop { background: #141210d9; }
.close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.close .ic { width: 20px; height: 20px; }
.dl { padding: 22px; }
.dl h3 { margin: 0 0 12px; display: inline-block; font: 400 34px/1 var(--display); letter-spacing: .04em; background: var(--yellow); border: 3px solid var(--ink); padding: 6px 14px 2px; box-shadow: 4px 4px 0 var(--ink); rotate: -1deg; }
.dl ol { margin: 6px 0 14px; padding-left: 22px; } .dl li { margin: 4px 0; }
.dl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl td { border-top: 2px solid #1412101f; padding: 6px 4px; vertical-align: top; }
.dl td:first-child { font: 400 18px/1.1 var(--display); letter-spacing: .03em; white-space: nowrap; }
.dl td:last-child { font: 400 20px var(--display); color: var(--red); text-align: right; }
.dl .roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; } .dl .roles .role { position: static; }

#toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 120; display: none; font: 400 19px var(--display); letter-spacing: .04em;
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 8px 16px 5px; white-space: nowrap; }
.foot { max-width: 1240px; margin: 10px auto 0; padding: 18px 22px 30px; border-top: 4px solid var(--ink); font-size: 13px; font-weight: 400; }
.foot p { margin: 6px 0; } .foot .tmdb { color: var(--mute); }

@media (max-width: 1060px) {
  .build, .tv { grid-template-columns: 1fr; }
  .team { position: static; }
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1060px) and (min-width: 721px) { .team .tb { grid-template-columns: 1fr 1fr; } .team .tb > .slots { grid-row: span 4; } }
@media (max-width: 720px) {
  .top { padding: 8px 12px; gap: 8px; } .brand span:last-child { font-size: 24px; } .brand .mark .ic { width: 28px; height: 28px; }
  .sis a { display: none; } .sis .hb { margin: 0; font-size: 17px; }
  main { padding: 16px 12px 30px; } .feed { padding: 0 12px 24px; }
  .hero { grid-template-columns: 1fr; }
  .foe { grid-template-columns: 1fr auto; } .foe .faces { grid-column: 1 / -1; justify-self: start; }
  .pool { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sp .tx { padding: 6px 7px 8px; } .sp .tx b { font-size: 18px; } .sp .pw { font-size: 12px; } .sp.on::before { font-size: 28px; }
  .tools .sp-r { margin-left: 0; }
  .build > .team { display: none; }
  dialog .team { box-shadow: none; border: 0; }
  .mbar { display: grid; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px;
    background: var(--ink); color: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow), 6px 6px 0 3px var(--ink); }
  .mbar .ms { display: flex; gap: 4px; }
  .mbar .ms span { width: 34px; height: 42px; border: 2px dashed #ffffff66; display: block; overflow: hidden; }
  .mbar .ms span.f { border: 2px solid var(--yellow); } .mbar .ms img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mbar .mp { font: 700 11px var(--mono); margin-top: 3px; color: var(--yellow); }
  .mbar .btn { font-size: 18px; box-shadow: 3px 3px 0 var(--red); }
  body.building { padding-bottom: 86px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roster .sp.cap { grid-column: span 2; }
  .arena { grid-template-columns: 1fr; gap: 40px; } .vsb { position: relative; left: auto; top: auto; translate: none; justify-self: center; margin: -26px 0; width: 96px; height: 96px; font-size: 44px; }
  .corner.a, .corner.b { rotate: none; }
  .bignum { font-size: 56px; }
  .fb { grid-template-columns: 44px 1fr auto 1fr 44px; } .fb img { width: 44px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .rings i, .rt b { animation: none; } .rings i:first-child { opacity: .6; transform: scale(.8); } .sp, .sp .im img { transition: none; } }

/* the squad panel always fits the window: middle scrolls, Lock In stays pinned */
.team { display: flex; flex-direction: column; max-height: calc(100vh - 104px); }
.team > h2 { flex-shrink: 0; }
.team .tb { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 14px; }
.team .tf { flex-shrink: 0; display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 4px solid var(--ink); background: var(--paper); }
.team .tf .lock { font-size: 26px; }
.team .tf .acts .btn { flex: 1; }
.slot { min-height: 52px; }
.slot .n { min-width: 0; }
.slot .n b, .slot .n small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster .kind { display: none; }
.faces5 { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
dialog .team { max-height: calc(90vh - 10px); }
@media (max-width: 1060px) { .build > .team { max-height: none; } .build > .team .tb { overflow: visible; } }
@media (max-width: 720px) { .corner { padding: 14px; } .corner h2 { font-size: 32px; } .bact .btn { flex: 1 1 auto; } }
/* once the card is in, it covers the loader completely */
.preview img { z-index: 3; }
.preview:has(img.ok) .rings, .preview:has(img.ok) .rt { display: none; }

/* the family of sites */
.more { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; } .more b { font: 400 18px var(--display); letter-spacing: .04em; }

/* ---------- the arena ---------- */
.sis a.nv { display: inline-block; }
.sis a.nv.on { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.mts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.mts.one { grid-template-columns: 1fr; gap: 8px; }
.mt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--card); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.mt.own { background: #fff6c9; box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 3px var(--ink); }
.mf { display: flex; gap: 3px; align-items: flex-end; }
.mf img { width: 26px; height: 36px; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); }
.mf img.cap { width: 40px; height: 54px; }
.mi { min-width: 0; } .mi a { color: var(--ink); text-decoration: none; }
.mi b { display: block; font: 400 21px/1 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi small { font: 700 11px var(--mono); color: var(--mute); }
.ms { font: 400 28px/1 var(--display); background: var(--ink); color: #fff; padding: 5px 8px 2px; }
.brs { display: grid; gap: 12px; }
.br { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 12px; align-items: center; padding: 8px; background: var(--card); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; transition: translate .08s, box-shadow .08s; }
.br:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--red); }
.br.need { box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 3px var(--ink); }
.br img { width: 58px; height: 76px; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); }
.bm { min-width: 0; }
.bn { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.bn b { font: 400 20px/1 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn b:last-child { text-align: right; } .bn i { font: 400 18px var(--display); font-style: normal; color: var(--red); }
.bbar { height: 14px; margin-top: 6px; border: 2px solid var(--ink); background: var(--red); position: relative; }
.bbar i { position: absolute; inset: 0 auto 0 0; background: var(--cyan); border-right: 2px solid var(--ink); }
.bt { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font: 700 11px var(--mono); }
.bt em { font-style: normal; background: var(--yellow); padding: 0 4px; }
.pick { display: grid; gap: 8px; }
.pk { display: grid; grid-template-columns: auto auto auto auto auto minmax(0, 1fr) auto; gap: 4px; align-items: end; text-align: left; padding: 8px; background: var(--card); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pk:hover { box-shadow: 5px 5px 0 var(--red); } .pk.on { background: #fff6c9; }
.pk img { width: 24px; height: 32px; object-fit: cover; border: 2px solid var(--ink); } .pk img.cap { width: 34px; height: 46px; }
.pk b { font: 400 20px/1 var(--display); margin-left: 8px; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk span { font: 400 24px/1 var(--display); background: var(--ink); color: #fff; padding: 4px 7px 1px; align-self: center; }
.wl { display: flex; gap: 8px; margin-bottom: 10px; } .wl span { flex: 1; text-align: center; font: 700 10px var(--mono); border: 2px solid var(--ink); padding: 4px; background: #fff; }
.wl b { display: block; font: 400 28px/1 var(--display); }
.rr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 2px solid #1412101a; color: var(--ink); text-decoration: none; }
.rr b { font: 400 17px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rr small { font: 700 12px var(--mono); }
.rs { font: 700 9px var(--mono); letter-spacing: .1em; padding: 3px 6px; border: 2px solid var(--ink); }
.rs.w { background: #11a36b; color: #fff; } .rs.l { background: var(--red); color: #fff; } .rs.d { background: var(--paper2); }
.nextb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 22px auto 0; padding: 14px; max-width: 720px; background: var(--ink); color: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); font: 700 13px var(--mono); }
.feed .arl { margin: 0 0 14px 12px; vertical-align: 6px; }
.hero .acts { align-self: end; }
@media (max-width: 720px) {
  .sis a.nv { display: inline-block; font-size: 17px; padding: 6px 7px 4px; }
  .sis .hb { font-size: 0; gap: 0; padding: 7px 9px; } .sis .hb .ic { font-size: 18px; }
  .mts { grid-template-columns: 1fr; }
  .mt { grid-template-columns: auto minmax(0, 1fr) auto; } .mt .btn { grid-column: 1 / -1; }
  .br { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; } .br img { width: 44px; height: 58px; } .bn b { font-size: 16px; }
}

/* team cards: faces + name + score on top, the button underneath (names never get cut) */
.mts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mt { grid-template-columns: auto minmax(0, 1fr) auto; } .mt > .btn { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .top { gap: 6px; padding: 8px 10px; }
  .brand { gap: 6px; } .brand span:last-child { font-size: 19px; } .brand b { font-size: 14px; margin-left: 2px; } .brand .mark .ic { width: 24px; height: 24px; }
  .sis { gap: 2px; } .sis a.nv { font-size: 15px; padding: 5px 6px 3px; } .sis .hb { padding: 6px 7px; margin-left: 2px; }
}
