/* Drawstrike's match screen: the board on its cutting mat, with an inked HUD built like a MOBA's. On a computer the
   ability dock sits at the bottom centre (portrait, Q E R F tiles, items, gold), team portraits hang from the top and
   the map sits bottom right; on a touch screen the skills keep their thumb arc. Dela Gothic One for numbers, keys and
   shouts, Zen Kaku Gothic New for everything else; square panels with ink borders and hard ink shadows. */
:root { --ink: #141416; --paper: #fbfbf8; --blue: #2350e6; --red: #e3342c; --green: #1f9d55; --gold: #b98a00; --coin: #f5c400; --purple: #7b3fe4; --pink: #f0509a; --hi: #ffe146; --mat: #23504a; --tone: #9a9da6; --display: 'Dela Gothic One', 'Arial Black', sans-serif; --text: 'Zen Kaku Gothic New', 'Helvetica Neue', Arial, sans-serif; --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--mat); font-family: var(--text); font-weight: 700; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud > .topbar, #hud > .feed, #hud > .banner, #hud > .hint, #hud > .dead, #hud > .recalling { pointer-events: none; }   /* shown over the board, never in the way of a click */
.ic { display: block; flex: none; }
button { font-family: inherit; color: var(--ink); cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.screentone { background: radial-gradient(circle, rgba(20,20,22,.13) 1.1px, transparent 1.3px) 0 0 / 7px 7px, var(--paper); }

/* ---- the top bar: Blue Pen's portraits, the score and clock, Red Pen's portraits ------------------------------------ */
.topbar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
.tteam { display: flex; gap: 4px; padding-top: 6px; }
.tteam.t0 { flex-direction: row; } .tteam.t1 { flex-direction: row; }
.tp { position: relative; width: 44px; height: 44px; background: #fff; border: 3px solid var(--ink); border-bottom: 6px solid var(--tc); box-shadow: 2px 2px 0 var(--ink); display: block; font-style: normal; overflow: hidden; }
.tp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tp b { position: absolute; right: -1px; bottom: -1px; background: var(--ink); color: #fff; font: 400 10px/1 var(--display); padding: 2px 3px 1px; }
.tp em { position: absolute; inset: 0; display: none; place-items: center; font: 400 17px var(--display); color: #fff; text-shadow: 0 0 3px #000, 1px 1px 0 #000; font-style: normal; }
.tp.ko img { filter: grayscale(1) contrast(.7); opacity: .45; } .tp.ko { background: #3a3c44; } .tp.ko em { display: grid; }
.tp.me { outline: 3px solid var(--hi); outline-offset: 1px; }
.score { display: flex; align-items: stretch; gap: 3px; background: var(--ink); padding: 0 3px 3px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%); font-family: var(--display); font-weight: 400; }
.score b { display: grid; place-items: center; min-width: 62px; padding: 3px 12px 1px; font-size: 26px; line-height: 1.15; color: #fff; }
.score .blue { background: var(--blue); padding-left: 20px; } .score .red { background: var(--red); padding-right: 20px; }
.score .clk { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); min-width: 82px; padding: 2px 10px 4px; gap: 3px; }
.score #clock { font-size: 17px; line-height: 1; white-space: nowrap; }
.score #dayBar { display: block; height: 4px; width: 0; align-self: stretch; background: #e8a000; transition: width .3s linear; max-width: 100%; }
.score #dayBar.night { background: #3346b8; }

/* ---- the map, the pings, the wallet ---------------------------------------------------------------------------------- */
#mini { position: absolute; top: 8px; left: calc(8px + var(--safe-l)); width: 168px; height: 168px; border-radius: 2px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); touch-action: none; cursor: crosshair; }
.wallet { position: absolute; top: 8px; right: calc(8px + var(--safe-r)); display: flex; gap: 6px; }
.chip { background: var(--paper); border: 3px solid var(--ink); border-radius: 2px; padding: 2px 9px; font-weight: 900; font-size: 15px; line-height: 24px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
button.chip:hover { background: #fffbe0; } button.chip:active { transform: translate(2px, 2px); box-shadow: none; }
.chip.gold i, .purse i { color: var(--coin); font-style: normal; margin-right: 4px; -webkit-text-stroke: 1px var(--ink); }
.chip.gold.can, .purse.can { background: var(--hi); }
.pingbtn { position: absolute; top: 182px; left: calc(8px + var(--safe-l)); font-size: 17px; }
.pings { position: absolute; top: 216px; left: calc(8px + var(--safe-l)); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--paper); border: 3px solid var(--ink); border-radius: 2px; padding: 7px; box-shadow: 4px 4px 0 var(--ink); }
.pings button { background: #fff; border: 2.5px solid var(--ink); border-radius: 2px; padding: 4px 9px; font-weight: 900; font-size: 14px; white-space: nowrap; text-align: left; }
.pings button:hover { background: var(--hi); }
.pings small { grid-column: 1 / -1; font-size: 11px; color: #666; }
.sound { position: absolute; right: 8px; top: 48px; background: var(--paper); border: 3px solid var(--ink); border-radius: 2px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 4px 4px 0 var(--ink); }
.sound label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.talkset { border-top: 2px solid var(--rule, #e3e5e8); margin: 2px 0 0; padding: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; } .talkset b { grid-column: 1 / -1; font-weight: 900; font-size: 12.5px; }   /* how chatty heroes are: Lots, Some, Quiet, Off */ .sound input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---- you: portrait, bars, items (touch: top left, beside the map) ---------------------------------------------------- */
.dock { pointer-events: none; }
.mecard { position: absolute; left: calc(186px + var(--safe-l)); top: 8px; display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 3px solid var(--ink); border-radius: 2px; padding: 6px 10px 6px 6px; box-shadow: 4px 4px 0 var(--ink); pointer-events: none; }
.portrait { position: relative; width: 56px; height: 56px; flex: none; }
.portrait canvas { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); display: block; }
.portrait b { position: absolute; right: -7px; bottom: -5px; background: var(--ink); color: #fff; border: 2px solid var(--paper); font-size: 13px; line-height: 1; padding: 3px 5px 2px; font-family: var(--display); font-weight: 400; min-width: 22px; text-align: center; }
.portrait svg { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.portrait svg circle { fill: none; stroke: var(--purple); stroke-width: 3.2; stroke-dasharray: 0 100; stroke-linecap: butt; transition: stroke-dasharray .3s; }
.bars { width: 172px; }
.bars .nm { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .hp, .bars .mp { position: relative; height: 14px; border: 2.5px solid var(--ink); border-radius: 1px; background: #fff; margin-top: 3px; overflow: hidden; }
.bars .mp { height: 9px; }
.bars .hp i, .bars .mp i { position: absolute; inset: 0; width: 100%; transition: width .15s; }
.bars .hp i { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1.5px), rgba(20,20,22,.28) calc(10% - 1.5px) 10%), var(--green); }
.bars .hp.low i { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1.5px), rgba(20,20,22,.28) calc(10% - 1.5px) 10%), var(--red); }
.bars .mp i { background: var(--blue); }
.bars .hp span, .bars .mp span { position: absolute; inset: 0; font-size: 10px; font-weight: 900; text-align: center; line-height: 9px; color: var(--ink); text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.bars .mp span { display: none; }
.items { display: grid; grid-template-columns: repeat(6, 25px); gap: 3px; margin-top: 4px; }
.items i { width: 25px; height: 25px; border: 2px solid var(--ink); border-radius: 1px; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 900; }
.items i.empty { border-style: dashed; opacity: .4; }
.purse { display: none; }

/* ---- the skill buttons (touch: an arc around the attack button, the ultimate a step further out) ------------------- */
.pad { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); width: 350px; height: 300px; pointer-events: none; }
.pad > * { pointer-events: auto; position: absolute; }
.atk { right: 0; bottom: 0; width: 104px; height: 104px; border-radius: 50%; background: var(--hi); border: 4px solid var(--ink); font-size: 44px; box-shadow: 4px 4px 0 var(--ink); touch-action: none; }
.atk .ai { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; } .atk .ai .ic { width: 46%; height: auto; }
.atk.on, .atk:active { transform: translate(2px, 2px) scale(.95); box-shadow: 1px 1px 0 var(--ink); background: #ffd81a; }
.sk { width: 70px; height: 70px; border-radius: 50%; background: var(--el, var(--ink)); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 0; touch-action: none; overflow: visible; isolation: isolate; }
.sk::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(rgba(20,20,22,.7) calc(var(--cd, 0) * 1turn), transparent 0); pointer-events: none; z-index: 1; }
.sk .gl { position: absolute; inset: 0; display: grid; place-items: center; font: 400 34px/1 var(--display); color: var(--gc, #fff); pointer-events: none; }
.sk.ult .gl { font-size: 40px; }
.sk .gl .ic { width: 50%; height: auto; } .sk.ult .gl .ic { width: 52%; }
.sk .nm { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); max-width: 92px; background: var(--paper); border: 2px solid var(--ink); padding: 0 5px; font-size: 10px; font-weight: 900; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; pointer-events: none; }
.sk .cdt { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; text-shadow: 2px 2px 0 var(--ink), 0 0 3px var(--ink); pointer-events: none; z-index: 3; }
.sk .pips, .sk .cost { display: none; }
.sk[data-i="0"] { right: 136px; bottom: 17px; } .sk[data-i="1"] { right: 100px; bottom: 100px; } .sk[data-i="2"] { right: 17px; bottom: 136px; }
.sk.ult { right: 196px; bottom: 128px; width: 82px; height: 82px; border-width: 5px; }
.sk.ult::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle, rgba(20,20,22,.25) 1.1px, transparent 1.3px) 0 0 / 6px 6px; pointer-events: none; }
.sk.ult.up { animation: ultup 1.4s ease-in-out infinite; }
@keyframes ultup { 0%, 100% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 0 var(--hi); } 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 7px var(--hi); } }
.sk.spell { right: 228px; bottom: 22px; width: 58px; height: 58px; background: var(--paper); }
.sk.spell .gl, .sk.act .gl { color: var(--ink); font-size: 26px; }
.sk.act { right: 292px; bottom: 74px; width: 50px; height: 50px; background: var(--paper); } .sk.act .gl { font-size: 22px; }
.sk.spell .nm, .sk.act .nm { bottom: -12px; }
.sk.locked { filter: grayscale(1); opacity: .4; } .sk.locked .gl::after { content: '🔒'; position: absolute; font-size: 13px; right: 2px; bottom: 2px; }
.sk.nomana::after { background: conic-gradient(rgba(20,20,22,.7) calc(var(--cd, 0) * 1turn), rgba(35,80,230,.5) 0); }
.sk.ready { animation: ready .4s; }
@keyframes ready { 50% { transform: scale(1.15); } }
.key { position: absolute; left: -5px; top: -6px; background: var(--ink); color: #fff; font: 400 10px/1 var(--display); border-radius: 1px; padding: 3px 4px 2px; font-style: normal; z-index: 4; pointer-events: none; }
body.touch .key { display: none; }
.mini-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); font-size: 20px; box-shadow: 2px 2px 0 var(--ink); touch-action: none; }
.mini-btn:active { transform: translate(2px, 2px); box-shadow: none; }
#minionBtn { right: 112px; bottom: 192px; width: 40px; height: 40px; font-size: 17px; } #recallBtn { right: 298px; bottom: 10px; } #shopBtn { display: none; }
#minionBtn.on { background: var(--hi); }
.stick { position: absolute; left: calc(24px + var(--safe-l)); bottom: calc(24px + var(--safe-b)); width: 150px; height: 150px; border-radius: 50%; border: 3px dashed rgba(251,251,248,.6); background: rgba(20,20,22,.2); touch-action: none; display: none; }
body.touch .stick { display: block; }
.knob { position: absolute; left: 45px; top: 45px; width: 60px; height: 60px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.cancel { position: absolute; right: 140px; bottom: 310px; background: #fff; border: 3px dashed var(--red); color: var(--red); border-radius: 2px; padding: 6px 12px; font-weight: 900; }
.cancel.hot { background: var(--red); color: #fff; }

/* ---- a computer: the MOBA dock at the bottom centre ------------------------------------------------------------------- */
body:not(.touch) .dock { position: absolute; left: 50%; bottom: 0; width: 820px; height: 128px; margin-left: -410px; transform-origin: 50% 100%; pointer-events: auto; isolation: isolate; }
body:not(.touch) .dock::before, body:not(.touch) .dock::after { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 100%, 0 100%); }
body:not(.touch) .dock::before { background: var(--ink); }
body:not(.touch) .dock::after { inset: 4px 4px 0; clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%); background: radial-gradient(circle, rgba(20,20,22,.07) 1px, transparent 1.2px) 0 0 / 6px 6px, var(--paper); }
body:not(.touch) .mecard, body:not(.touch) .bars, body:not(.touch) .pad { position: static; display: contents; }
body:not(.touch) .portrait { position: absolute; left: 36px; top: 20px; width: 86px; height: 86px; z-index: 2; }
body:not(.touch) .portrait canvas { width: 86px; height: 86px; border-width: 4px; }
body:not(.touch) .portrait b { font-size: 16px; right: -4px; bottom: -4px; padding: 4px 6px 3px; }
body:not(.touch) .bars .nm { position: absolute; left: 40px; top: -27px; max-width: 300px; z-index: 2; background: var(--ink); color: #fff; font: 400 15px/1 var(--display); padding: 6px 16px 5px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
body:not(.touch) .bars .hp { position: absolute; left: 140px; top: 86px; width: 388px; height: 19px; margin: 0; z-index: 2; border-width: 3px; }
body:not(.touch) .bars .mp { position: absolute; left: 140px; top: 107px; width: 388px; height: 12px; margin: 0; z-index: 2; border-width: 3px; border-top-width: 0; }
body:not(.touch) .bars .hp span { font-size: 11px; line-height: 13px; } body:not(.touch) .bars .mp span { display: block; font-size: 9px; line-height: 9px; color: #fff; text-shadow: 0 0 2px var(--ink); }
body:not(.touch) .items { position: absolute; left: 548px; top: 12px; margin: 0; grid-template-columns: repeat(3, 36px); gap: 4px; z-index: 2; }
body:not(.touch) .items i { width: 36px; height: 36px; font-size: 20px; border-width: 2.5px; background: #fff; }
body:not(.touch) .purse { display: flex; align-items: center; justify-content: center; position: absolute; left: 548px; top: 94px; width: 116px; height: 26px; z-index: 2; background: #fff; border: 2.5px solid var(--ink); font: 400 15px/1 var(--display); padding: 0; pointer-events: auto; }
body:not(.touch) .purse:hover { background: #fffbe0; } body:not(.touch) .purse.can:hover { background: #ffd81a; }
body:not(.touch) #goldBtn { display: none; }
body:not(.touch) .sk { border-radius: 2px; width: 60px; height: 60px; top: 14px; right: auto; bottom: auto; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
body:not(.touch) .sk[data-i="0"] { left: 140px; } body:not(.touch) .sk[data-i="1"] { left: 206px; } body:not(.touch) .sk[data-i="2"] { left: 272px; }
body:not(.touch) .sk.ult { left: 340px; top: 10px; width: 66px; height: 66px; border-width: 4px; }
body:not(.touch) .sk.spell { left: 418px; top: 20px; width: 52px; height: 52px; }
body:not(.touch) .sk.act { left: 476px; top: 20px; width: 52px; height: 52px; }
body:not(.touch) .sk .gl { bottom: 16px; font-size: 26px; }
body:not(.touch) .sk.ult .gl { font-size: 30px; bottom: 17px; }
body:not(.touch) .sk.spell .gl, body:not(.touch) .sk.act .gl { bottom: 14px; font-size: 21px; }
body:not(.touch) .sk .nm { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border: none; border-top: 2.5px solid var(--ink); padding: 0 3px; font-size: 9.5px; line-height: 14px; text-align: center; background: var(--paper); }
body:not(.touch) .sk.spell .nm, body:not(.touch) .sk.act .nm { line-height: 12px; font-size: 9px; }
body:not(.touch) .sk .cdt { bottom: 16px; font-size: 21px; }
body:not(.touch) .sk .pips { display: block; position: absolute; left: 0; bottom: -10px; height: 5px; width: calc(var(--rank, 0) * 9px - 3px); background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 9px); pointer-events: none; }
body:not(.touch) .sk .cost { display: block; position: absolute; right: -4px; top: -7px; background: var(--blue); color: #fff; font: 400 9px/1 var(--display); padding: 3px 3px 2px; text-decoration: none; z-index: 4; pointer-events: none; }
body:not(.touch) .sk .cost:empty { display: none; }
body:not(.touch) .sk:hover { transform: translateY(-2px); }
body:not(.touch) .sk.ult.up { animation: ultupsq 1.4s ease-in-out infinite; }
@keyframes ultupsq { 0%, 100% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 0 var(--hi); } 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px var(--hi); } }
body:not(.touch) .key { left: -6px; top: -7px; font-size: 11px; padding: 3px 5px 2px; }
body:not(.touch) .atk { left: 744px; right: auto; top: 66px; bottom: auto; width: 46px; height: 46px; font-size: 20px; border-width: 3px; border-radius: 2px; box-shadow: 2px 2px 0 var(--ink); }
body:not(.touch) .atk .key { left: auto; right: -6px; top: -8px; font-size: 8px; }
body:not(.touch) .mini-btn { border-radius: 2px; width: 46px; height: 46px; font-size: 20px; }
body:not(.touch) #recallBtn { left: 684px; right: auto; top: 14px; bottom: auto; } body:not(.touch) #shopBtn { display: block; left: 736px; right: auto; top: 14px; bottom: auto; }
body:not(.touch) #minionBtn { left: 690px; right: auto; top: 66px; bottom: auto; width: 46px; height: 46px; font-size: 18px; }
body:not(.touch) .mini-btn .key { left: -6px; top: -7px; font-size: 10px; }
body:not(.touch) .mini-btn:hover, body:not(.touch) .atk:hover { background: #fffbe0; } body:not(.touch) #minionBtn.on { background: var(--hi); }
body:not(.touch) #mini { top: auto; left: auto; bottom: 12px; right: calc(12px + var(--safe-r)); width: 196px; height: 196px; border: none; }
body:not(.touch) .pingbtn { top: auto; left: auto; bottom: 218px; right: calc(12px + var(--safe-r)); }
body:not(.touch) .pings { top: auto; left: auto; bottom: 256px; right: calc(12px + var(--safe-r)); }
.sktip { position: absolute; transform: translateX(-50%); width: 270px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 0 0 8px; pointer-events: none; z-index: 6; }
.sktip header { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 5px 10px 4px; }
.sktip header .gl { width: 28px; height: 28px; display: grid; place-items: center; background: var(--el, var(--ink)); border: 2px solid #fff; font: 400 17px/1 var(--display); color: #fff; flex: none; }
.sktip header .gl .ic { width: 18px; height: 18px; } .sktip header .gl { font-size: 16px; }
.sktip header b { font: 400 15px/1.1 var(--display); } .sktip header .k { margin-left: auto; font: 400 12px var(--display); background: #fff; color: var(--ink); padding: 2px 5px 1px; }
.sktip p { margin: 7px 10px 6px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.sktip .tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 10px; } .sktip .tags span { font-size: 11.5px; font-weight: 900; border: 2px solid var(--ink); padding: 0 6px; } .sktip .tags .mana { color: var(--blue); border-color: var(--blue); }

/* ---- the kill feed and the announcer ------------------------------------------------------------------------------- */
.feed { position: absolute; right: calc(8px + var(--safe-r)); top: 50px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; pointer-events: none; }
.feed > div { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 2px 6px 2px 2px; font-size: 13px; font-weight: 900; animation: feedin .28s cubic-bezier(.2, 1.4, .5, 1); max-width: 340px; }
.feed .kp { display: flex; align-items: center; gap: 5px; color: var(--tc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.feed .kp img, .feed .kp .gx { width: 26px; height: 26px; border: 2px solid var(--tc); background: #fff; object-fit: contain; flex: none; display: grid; place-items: center; font-size: 14px; }
.feed .gx .ic, .dead .gx .ic { width: 70%; height: auto; color: var(--tc); }
.feed .kx { font: 400 14px var(--display); color: var(--ink); } .feed small { font-size: 10.5px; color: #666; }
.feed .mine { background: #fff6c2; } .feed .died { background: #ffe9e7; }
.feed .ping { padding: 3px 9px; } .feed .ping .b { color: var(--blue); }
@keyframes feedin { from { transform: translateX(30px); opacity: 0; } }
.banner { position: absolute; top: 19%; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; white-space: nowrap; opacity: 0; --bc: var(--ink); }
.banner .bx { position: relative; display: inline-block; isolation: isolate; font: 400 46px/1.05 var(--display); color: #fff; padding: 10px 40px 8px; text-shadow: 3px 3px 0 var(--ink); }
.banner .bx::before { content: ''; position: absolute; inset: 0; background: var(--bc); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); transform: skewX(-14deg); z-index: -1; }
.banner .bx::after { content: ''; position: absolute; inset: -46px -70px; z-index: -2; background: repeating-conic-gradient(from 0deg, var(--ink) 0deg 1.1deg, transparent 1.1deg 7deg); -webkit-mask: radial-gradient(closest-side, transparent 52%, #000 64%, transparent 100%); mask: radial-gradient(closest-side, transparent 52%, #000 64%, transparent 100%); opacity: .6; }
.banner small { display: block; width: max-content; margin: 12px auto 0; font: 900 17px var(--text); color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 2px 14px; }
.banner.on { animation: bannerIn 2.6s forwards; }
@keyframes bannerIn { 0% { opacity: 0; transform: translate(-50%, 0) scale(1.9) rotate(-6deg); } 9% { opacity: 1; transform: translate(-50%, 0) scale(.94) rotate(1deg); } 15% { transform: translate(-50%, 0) scale(1) rotate(0); } 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px) scale(1); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- upgrade picks, knocked out, recall, hints ------------------------------------------------------------------- */
.picks { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: flex; gap: 12px; align-items: stretch; }
body:not(.touch) .picks { bottom: 168px; }
.picks .lbl { position: absolute; top: -34px; left: 0; right: 0; text-align: center; } .picks .lbl span { display: inline-block; background: var(--purple); color: #fff; font: 400 15px var(--display); padding: 4px 14px 3px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: skewX(-10deg); }
.picks button { position: relative; width: 210px; background: var(--paper); border: 4px solid var(--ink); border-radius: 2px; padding: 10px 12px 10px; text-align: left; box-shadow: 5px 5px 0 var(--ink); animation: pop .3s; border-top: 8px solid var(--purple); }
.picks button b { display: block; font-size: 16px; font-weight: 900; } .picks button small { display: block; font-size: 12.5px; line-height: 1.3; margin-top: 3px; font-weight: 500; } .picks button em { font-style: normal; font-size: 11px; color: var(--purple); font-weight: 900; }
.picks button:hover { transform: translateY(-4px); background: #fffbe0; box-shadow: 5px 9px 0 var(--ink); }
.picks button .key { left: auto; right: -6px; top: -14px; font-size: 13px; padding: 4px 6px 3px; }
.dead { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--paper); border: 4px solid var(--ink); border-top: 10px solid var(--red); box-shadow: 6px 6px 0 var(--ink); padding: 10px 26px 12px; pointer-events: none; min-width: 250px; }
.dead .dby { display: flex; align-items: center; gap: 10px; } .dead .dby img, .dead .dby .gx { width: 48px; height: 48px; border: 3px solid var(--tc, var(--ink)); background: #fff; object-fit: contain; display: grid; place-items: center; font-size: 24px; }
.dead .dby b { display: block; font: 400 24px/1.1 var(--display); color: var(--red); } .dead .dby small { display: block; font-size: 14px; } .dead .dby small span { color: var(--tc); font-weight: 900; }
.dead .dt { order: 3; font: 400 54px/1 var(--display); color: var(--ink); margin-top: 2px; } .dead > small { order: 2; font-size: 13px; color: #5d6068; margin-top: 8px; }
.recalling { position: absolute; left: 50%; bottom: 33%; transform: translateX(-50%); background: var(--blue); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 4px 16px; font-weight: 900; color: #fff; pointer-events: none; }
body:not(.touch) .recalling { bottom: 176px; }
.hint { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); background: var(--paper); border: 3px solid var(--ink); border-left: 10px solid var(--hi); border-radius: 2px; padding: 7px 16px; font-weight: 900; max-width: min(540px, 90vw); text-align: center; pointer-events: none; box-shadow: 4px 4px 0 var(--ink); animation: pop .3s; }
.lobbybox .btn, .panel .btn { cursor: pointer; }

/* ---- panels: shop, scores, the end ----------------------------------------------------------------------------- */
.panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 20px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--paper); border: 4px solid var(--ink); border-radius: 2px; box-shadow: 8px 8px 0 var(--ink); padding: 14px 16px; animation: panelin .18s ease-out; }
@keyframes panelin { from { transform: translate(-50%, -48%); opacity: 0; } }
.panel h2 { margin: 0; font-size: 24px; font-family: var(--display); font-weight: 400; }
.panel .x { flex: none; background: #fff; border: 3px solid var(--ink); border-radius: 2px; width: 38px; height: 38px; font-size: 18px; font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.panel .x:hover { background: var(--hi); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .linkish { background: none; border: none; text-decoration: underline; font-weight: 700; padding: 0; }
.btn { background: #fff; border: 3px solid var(--ink); border-radius: 2px; padding: 6px 16px; font-weight: 900; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; display: inline-block; color: var(--ink); }
.btn:hover { background: #f0f1ec; } .btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.primary { background: var(--hi); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); } .btn.primary:hover { background: #ffd81a; } .btn.primary:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.big { font-size: 20px; padding: 10px 24px; font-family: var(--display); font-weight: 400; }

.shop { width: min(900px, calc(100vw - 20px)); height: min(640px, calc(100vh - 24px)); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.sh-head { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; background: var(--ink); color: #fff; flex: none; }
.sh-head h2 { color: #fff; } .sh-gold { font: 400 24px var(--display); color: var(--hi); } .sh-gold i { color: var(--coin); font-style: normal; margin-right: 5px; }
.sh-auto { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; } .sh-auto input { width: 18px; height: 18px; accent-color: var(--hi); }
.sh-path { display: flex; align-items: center; gap: 4px; padding: 10px 16px; border-bottom: 3px solid var(--ink); flex: none; overflow-x: auto; background: radial-gradient(circle, rgba(20,20,22,.09) 1.1px, transparent 1.3px) 0 0 / 7px 7px, var(--paper); }
.sh-path .sh-lbl { font: 400 14px var(--display); margin-right: 8px; white-space: nowrap; }
.sh-path .arr { font: 400 18px var(--display); color: var(--tone); font-style: normal; }
.sh-path .st { position: relative; flex: none; width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 2px; background: #fff; display: grid; place-items: center; padding: 0 0 12px; box-shadow: 2px 2px 0 var(--ink); }
.sh-path .st span { font-size: 24px; line-height: 1; } .sh-path .st small { position: absolute; left: 0; right: 0; bottom: 0; font: 400 9.5px/13px var(--display); background: var(--ink); color: var(--hi); }
.sh-path .st.own { background: #e9f6ee; } .sh-path .st.own::after { content: '✓'; position: absolute; right: -8px; top: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; border: 2px solid var(--ink); font: 900 12px/16px var(--text); }
.sh-path .st.next { background: var(--hi); transform: translateY(-3px); box-shadow: 3px 5px 0 var(--ink); } .sh-path .st.next small { background: var(--red); color: #fff; }
.sh-path .st:hover { transform: translateY(-3px); }
.sh-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px 1fr; }
.sh-rail { display: flex; flex-direction: column; border-right: 3px solid var(--ink); background: #f1f2ed; overflow-y: auto; }
.sh-rail button { background: none; border: none; border-bottom: 2px solid #d9dbd6; padding: 10px 14px; text-align: left; font-size: 15px; font-weight: 900; border-left: 8px solid transparent; }
.sh-rail button:hover { background: #fffbe0; } .sh-rail button.on { background: var(--ink); color: #fff; border-left-color: var(--hi); }
.itemgrid { overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-content: start; }
.item { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 2px; padding: 8px 10px 9px; text-align: left; display: grid; grid-template-columns: 50px 1fr; column-gap: 10px; row-gap: 1px; align-content: start; box-shadow: 3px 3px 0 var(--ink); }
.item .ic { grid-row: 1 / 5; width: 50px; height: 50px; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 27px; background: var(--paper); }
.item b { font-size: 15px; font-weight: 900; line-height: 1.2; } .item .cost { font: 400 13px var(--display); color: var(--gold); } .item small { font-size: 12px; line-height: 1.3; font-weight: 500; } .item .st { font-size: 11.5px; color: #3f4148; font-weight: 900; }
.item:hover { background: #fffbe0; transform: translateY(-2px); } .item:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.item.next { background: #fffbe0; box-shadow: 3px 3px 0 var(--ink), inset 0 -6px 0 var(--hi); } .item.next::before { content: 'Next'; position: absolute; right: -4px; top: -10px; background: var(--red); color: #fff; font: 400 11px/1 var(--display); padding: 4px 6px 3px; border: 2px solid var(--ink); }
.item.owned { opacity: .55; } .item.owned::after { content: '✓ Yours'; position: absolute; right: 8px; top: 8px; color: var(--green); font-size: 12px; font-weight: 900; }
.item.cant .cost { color: #a3a5ad; } .item.cant .ic { filter: grayscale(.8); opacity: .7; }

.board { width: min(860px, calc(100vw - 20px)); padding: 0; }
.board .bhead { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; background: var(--ink); color: #fff; } .board .bhead h2 { color: #fff; }
.bteams { display: grid; grid-template-columns: 1fr; gap: 0; }
.bteam header { display: flex; align-items: baseline; gap: 12px; padding: 6px 16px 4px; background: var(--tc); color: #fff; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.bteam header b { font: 400 18px var(--display); } .bteam header span { font-size: 13px; }
table.scores { width: 100%; border-collapse: collapse; font-size: 14px; } table.scores td, table.scores th { padding: 4px 8px; border-bottom: 1.5px solid #e3e5e8; text-align: left; white-space: nowrap; } table.scores th { font-size: 11.5px; color: #5d6068; font-weight: 900; }
table.scores td.num { font-family: var(--display); font-weight: 400; } table.scores tr.me td { background: #fff6c2; } table.scores tr.ko td { color: #8c8f98; } table.scores tr.ko img { filter: grayscale(1); opacity: .6; }
.who { display: flex; align-items: center; gap: 8px; } .who img { width: 32px; height: 32px; border: 2.5px solid var(--tc, var(--ink)); background: #fff; object-fit: contain; flex: none; } .who span { font-weight: 900; overflow: hidden; text-overflow: ellipsis; max-width: 180px; } .who small { display: block; font-size: 11px; color: var(--red); }
.rg .ic { width: 15px; height: 15px; }
.rg { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--rc); color: #fff; font: 400 13px/1 var(--display); border: 2px solid var(--ink); }
.its { font-size: 16px; letter-spacing: 1px; }

.end { width: min(1000px, calc(100vw - 20px)); padding: 0; box-shadow: 10px 10px 0 var(--ink); z-index: 8; }
body.over #hud::after { content: ''; position: absolute; inset: 0; background: rgba(14,16,24,.5); z-index: 7; animation: fadein .3s; }
body.over #feed, body.over .wallet, body.over #mini, body.over .pingbtn, body.over .pings, body.over #hint, body.over #banner, body.over #picks { display: none !important; }   /* the end screen stands alone */
@keyframes fadein { from { opacity: 0; } }   /* the board dims behind the end screen */
.stamp { position: relative; overflow: hidden; text-align: center; padding: 30px 10px 22px; border-bottom: 4px solid var(--ink); --wc: var(--green); background: var(--paper); }
.stamp.lose { --wc: var(--red); }
.stamp::before { content: ''; position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px; background: repeating-conic-gradient(from 0deg, var(--wc) 0deg 1.4deg, transparent 1.4deg 6deg); -webkit-mask: radial-gradient(circle, transparent 9%, #000 20%); mask: radial-gradient(circle, transparent 9%, #000 20%); opacity: .5; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp h1 { position: relative; display: inline-block; margin: 0; padding: 6px 46px 4px; font: 400 clamp(46px, 9vw, 88px)/1.05 var(--display); color: #fff; background: var(--wc); border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); transform: rotate(-3deg) skewX(-10deg); text-shadow: 4px 4px 0 var(--ink); animation: stampin .45s cubic-bezier(.2, 1.5, .5, 1) both; }
.stamp h1.win, .stamp h1.lose { color: #fff; }
@keyframes stampin { from { transform: rotate(-12deg) skewX(-10deg) scale(2.2); opacity: 0; } to { transform: rotate(-3deg) skewX(-10deg) scale(1); opacity: 1; } }
.emeta { position: relative; margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; } .emeta span { background: var(--paper); border: 2.5px solid var(--ink); padding: 1px 10px; font-size: 14px; font-weight: 900; }
.egrid { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 16px; align-items: start; }
.mvp { position: relative; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: #fff; text-align: center; padding: 0 0 10px; border-top: 10px solid var(--tc); }
.mvp .rib { display: block; background: var(--hi); border-bottom: 3px solid var(--ink); font: 400 14px/1 var(--display); padding: 7px 4px 6px; }
.mvp img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; border-bottom: 2.5px solid var(--ink); }
.mvp b { display: block; font: 400 19px/1.15 var(--display); margin: 8px 8px 2px; } .mvp span { font-size: 13px; font-weight: 900; color: #3f4148; }
.etables { display: grid; gap: 12px; min-width: 0; overflow-x: auto; } .etables .bteam { border: 3px solid var(--ink); } .etables .bteam header { border-top: none; }
.end .clipbox { margin: 0 16px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; } .clipbox video { width: min(460px, 100%); border: 3px solid var(--ink); border-radius: 2px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.rewards { text-align: center; margin: 4px 16px 0; font-size: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rewards:empty { display: none; } .rewards > * { background: #e9f6ee; border: 2.5px solid var(--ink); padding: 3px 12px; font-weight: 900; } .rewards > b { background: var(--hi); } .rewards small { background: #f1f2ed; font-weight: 700; }
.rate { margin: 14px auto 0; max-width: 460px; text-align: center; font-weight: 900; } .rate .faces { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.rate .faces button { font-size: 26px; width: 54px; height: 50px; border: 3px solid var(--ink); border-radius: 2px; background: #fff; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); } .rate .faces button.on { background: var(--hi); transform: translateY(-3px); }
.ratemore { display: flex; gap: 8px; margin-top: 8px; } .ratemore textarea { flex: 1; font: 500 14px var(--text); border: 3px solid var(--ink); border-radius: 2px; padding: 6px 8px; resize: none; }
.ebtns { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 14px 16px 16px; margin-top: 14px; background: var(--paper); border-top: 3px solid var(--ink); }   /* always in reach, however long the tables */

/* ---- loading, the lobby, and the VS screen ------------------------------------------------------------------------ */
.loading { position: absolute; inset: 0; background-color: var(--mat); background-image: linear-gradient(rgba(232,244,234,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(232,244,234,.16) 1px, transparent 1px), linear-gradient(rgba(232,244,234,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(232,244,234,.07) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; color: #eef4ee; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 5; overflow: hidden; }
/* the page's backdrop (data-mat, see style.css): the lobby and the VS screen sit on the board at night */
:root[data-mat="arena"], :root[data-mat="night"] { --mat: #11152a; } :root[data-mat="paper"] { --mat: #eef1f4; }
:root[data-mat="arena"] .loading { background: radial-gradient(55% 60% at 0% 0%, rgba(35,80,230,.42), transparent 70%), radial-gradient(55% 60% at 100% 0%, rgba(227,52,44,.34), transparent 70%), radial-gradient(130% 100% at 50% 40%, rgba(8,10,22,.2), rgba(5,6,14,.9) 80%), linear-gradient(rgba(20,26,62,.74), rgba(20,26,62,.74)), url(/arena.jpg) center / cover no-repeat; }
:root[data-mat="night"] .loading { background: radial-gradient(55% 60% at 0% 0%, rgba(35,80,230,.42), transparent 70%), radial-gradient(55% 60% at 100% 0%, rgba(227,52,44,.34), transparent 70%), radial-gradient(130% 100% at 50% 30%, #1a2042, #0a0c18 80%); }
:root[data-mat="paper"] .loading { background-image: linear-gradient(rgba(134,189,230,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(134,189,230,.5) 1px, transparent 1px), linear-gradient(rgba(134,189,230,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(134,189,230,.22) 1px, transparent 1px); color: var(--ink); }
:root[data-mat="paper"] .ldlogo { color: var(--ink); }
.ldlogo { position: relative; z-index: 0; font: 400 clamp(40px, 7vw, 64px)/1 var(--display); color: #eef4ee; }
.ldlogo span { position: relative; padding: 0 3px; } .ldlogo span::before { content: ''; position: absolute; z-index: -1; left: -4px; right: -9px; top: 30%; bottom: -4px; background: var(--red); transform: skewX(-20deg) rotate(-2deg); }
#loadTxt { font-size: 18px; font-weight: 900; text-align: center; }
.loading:not(.vsmode) #loadTxt:not(:has(.lobbybox))::after { content: ''; display: block; width: 120px; height: 6px; margin: 12px auto 0; background: linear-gradient(90deg, var(--hi) 0 40%, transparent 40%) 0 0 / 200% 100% no-repeat, rgba(238,244,238,.18); animation: inkbar 1s linear infinite; }
@keyframes inkbar { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
.lobbybox { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: 2px; padding: 0 0 18px; text-align: center; width: min(560px, 92vw); line-height: 1.5; font-weight: 700; }
.lobbybox h2 { margin: 0 0 12px; font: 400 22px var(--display); background: var(--ink); color: #fff; padding: 9px 12px 7px; }
.lobbyp { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 16px; } .lobbyp span { border: 2.5px solid var(--ink); border-left: 8px solid var(--tc); padding: 1px 10px; font-weight: 900; background: #fff; }
.lobbybox p { margin: 12px 16px 4px; } .lobbybox .lt { font: 400 24px var(--display); color: var(--red); }
.lobbybox input { width: min(420px, 86vw); margin-top: 8px; font: inherit; padding: 5px 9px; border: 3px solid var(--ink); border-radius: 2px; }
.lobbybox .btn { margin: 10px 4px 0; }
.loading.vsmode { justify-content: flex-start; padding: 0; gap: 0; }
.loading.vsmode > .ldlogo, .loading.vsmode > #loadTxt { display: none; }
.loading.out { animation: vsout .26s ease-in forwards; } @keyframes vsout { to { opacity: 0; transform: scale(1.04); } }
.vs { position: absolute; inset: 0; color: var(--ink); display: grid; grid-template-rows: 1fr auto 1fr auto; align-items: center; padding: 2.5vh 3vw 2vh; gap: 1vh; }
.vs::before { content: ''; position: absolute; left: 50%; top: 50%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; background: repeating-conic-gradient(from 0deg, rgba(238,244,238,.22) 0deg .8deg, transparent .8deg 5deg); -webkit-mask: radial-gradient(circle, transparent 7%, #000 22%); mask: radial-gradient(circle, transparent 7%, #000 22%); pointer-events: none; }
.vrow { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.4vw, 18px); height: 100%; min-height: 0; }
.vrow::before { content: ''; position: absolute; left: -6vw; right: -6vw; top: 22%; bottom: 22%; background: var(--tc); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(-2.5deg); }
.vrow.t0 { --tc: var(--blue); } .vrow.t1 { --tc: var(--red); }
.vtag { font: 400 clamp(18px, 3.4vh, 30px)/1 var(--display); color: #fff; background: var(--tc); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 8px 18px 6px; white-space: nowrap; transform: skewX(-14deg) rotate(-3deg); }
.vtag.t0 { --tc: var(--blue); } .vtag.t1 { --tc: var(--red); }
.vcard { position: relative; z-index: 1; height: 100%; max-height: 300px; aspect-ratio: 3 / 4; display: flex; flex-direction: column; background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); animation: vin .42s cubic-bezier(.2, 1.3, .5, 1) backwards; animation-delay: calc(var(--k) * 70ms); min-width: 0; }
.vrow.t1 .vcard { animation-name: vinr; }
@keyframes vin { from { transform: translateX(-60vw) skewX(-12deg); } } @keyframes vinr { from { transform: translateX(60vw) skewX(12deg); } }
.vcard canvas { flex: 1; min-height: 0; width: 100%; display: block; background: radial-gradient(circle, rgba(20,20,22,.07) 1px, transparent 1.2px) 0 0 / 6px 6px, #fff; }
.vrole { display: flex; align-items: center; gap: 6px; background: var(--rc); color: #fff; border-top: 3px solid var(--ink); padding: 3px 7px 2px; font-size: clamp(10px, 1.6vh, 13px); font-weight: 900; white-space: nowrap; overflow: hidden; }
.vrole .ic { width: 1.3em; height: 1.3em; }
.vname { font: 400 clamp(11px, 2vh, 16px)/1.2 var(--display); padding: 4px 7px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 2.5px solid var(--ink); }
.vtime { position: absolute; right: 5px; top: 3px; font-size: clamp(14px, 2.4vh, 20px); color: #e8a000; } .vtime.night { color: #3346b8; }
.vyou { position: absolute; left: -4px; top: -14px; z-index: 2; background: var(--hi); border: 3px solid var(--ink); font: 400 12px/1 var(--display); padding: 4px 7px 3px; font-style: normal; }
.vcard.me { outline: 4px solid var(--hi); outline-offset: 2px; }
.vmid { position: relative; display: flex; align-items: center; justify-content: center; gap: 3vw; z-index: 2; }
.vmid b { font: 400 clamp(46px, 11vh, 104px)/1 var(--display); color: #fff; background: var(--ink); padding: 4px 34px 0; transform: skewX(-14deg) rotate(-3deg); box-shadow: 7px 7px 0 var(--red), -7px -7px 0 var(--blue); animation: vsslam .5s cubic-bezier(.2, 1.6, .5, 1) .3s backwards; }
@keyframes vsslam { from { transform: skewX(-14deg) rotate(-3deg) scale(3); opacity: 0; } }
.vfoot b { display: inline-block; font: 900 1em var(--text); color: var(--ink); background: var(--paper); border: 2.5px solid var(--ink); padding: 0 10px; margin: 0 4px 4px; }
.vfoot { position: relative; z-index: 2; margin: 0; text-align: center; font-size: clamp(12px, 1.9vh, 15px); color: #eef4ee; } .vfoot small { display: block; color: rgba(238,244,238,.7); font-size: .85em; margin-top: 2px; }

/* ---- smaller screens and touch ------------------------------------------------------------------------------------ */
@media (max-width: 1220px) { body:not(.touch) .dock { transform: scale(.86); } body:not(.touch) .picks { bottom: 150px; } body:not(.touch) #mini { width: 170px; height: 170px; } body:not(.touch) .pingbtn { bottom: 192px; } body:not(.touch) .pings { bottom: 230px; } .tp { width: 38px; height: 38px; } }
@media (max-width: 1060px) { body:not(.touch) .dock { transform: scale(.74); } body:not(.touch) #mini { width: 150px; height: 150px; } body:not(.touch) .pingbtn { bottom: 172px; } body:not(.touch) .pings { bottom: 210px; } .tteam { display: none; } }
@media (max-width: 900px), (max-height: 560px) {
  body.touch #mini { width: 118px; height: 118px; }
  body.touch .mecard { left: calc(134px + var(--safe-l)); padding: 4px 8px 4px 4px; gap: 8px; } body.touch .bars { width: 124px; } body.touch .portrait, body.touch .portrait canvas { width: 42px; height: 42px; }
  body.touch .items { grid-template-columns: repeat(6, 18px); gap: 2px; } body.touch .items i { width: 18px; height: 18px; font-size: 10px; border-width: 1.5px; }
  body.touch .pad { transform: scale(.82); transform-origin: right bottom; }
  .tteam { display: none; } .topbar { top: auto; bottom: calc(4px + var(--safe-b)); } .score { clip-path: none; padding: 3px; box-shadow: 3px 3px 0 var(--ink); } .score b { min-width: 42px; font-size: 18px; padding: 1px 8px; } .score .blue { padding-left: 8px; } .score .red { padding-right: 8px; } .score .clk { min-width: 64px; } .score #clock { font-size: 14px; }
  .chip { font-size: 13px; padding: 0 7px; }
  .banner .bx { font-size: 28px; padding: 7px 24px 5px; } .banner small { font-size: 13px; margin-top: 8px; } .banner { top: 22%; }
  .picks { bottom: 50%; } .picks button { width: 160px; padding: 7px 9px; } .picks button small { font-size: 11.5px; }
  .hint { top: 80px; font-size: 14px; padding: 5px 12px; }
  body.touch .pingbtn { top: 132px; } body.touch .pings { top: 166px; }
  .dead { top: auto; bottom: 21%; padding: 6px 16px 8px; min-width: 0; border-top-width: 7px; } .dead .dt { font-size: 34px; } .dead > small { margin-top: 4px; font-size: 12px; } .dead .dby b { font-size: 20px; } .dead .dby img, .dead .dby .gx { width: 38px; height: 38px; }
  .sh-body { grid-template-columns: 112px 1fr; } .sh-rail button { padding: 7px 10px; font-size: 13px; border-left-width: 6px; } .sh-path { padding: 6px 10px; } .sh-path .st { width: 44px; height: 44px; } .sh-path .st span { font-size: 19px; } .itemgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 8px; gap: 8px; } .item { grid-template-columns: 40px 1fr; } .item .ic { width: 40px; height: 40px; font-size: 22px; }
  .egrid { grid-template-columns: 150px 1fr; padding: 10px; gap: 10px; } .stamp { padding: 16px 10px 12px; } .stamp h1 { font-size: 48px; padding: 4px 30px 2px; box-shadow: 6px 6px 0 var(--ink); } .emeta { margin-top: 12px; } .mvp b { font-size: 15px; } .ebtns { padding: 8px 10px 10px; } .ebtns .btn.big { font-size: 17px; padding: 8px 18px; }
  .vs { padding: 1.5vh 2vw 1vh; } .vcard { border-width: 3px; box-shadow: 4px 4px 0 var(--ink); } .vyou { top: -10px; font-size: 10px; } .vmid b { box-shadow: 5px 5px 0 var(--red), -5px -5px 0 var(--blue); }
}
@media (max-width: 640px) { .egrid { grid-template-columns: 1fr; } .mvp { display: grid; grid-template-columns: 90px 1fr; text-align: left; align-items: center; } .mvp .rib { grid-column: 1 / -1; } .mvp img { grid-row: span 2; border-bottom: none; border-right: 2.5px solid var(--ink); } }
@media (max-height: 460px) { body.touch .pad { transform: scale(.7); } body.touch .stick { transform: scale(.8); transform-origin: left bottom; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---- an ultimate's cut-in: a slashed panel across the screen, the hero in its pose, the name slammed in ----------- */
#hud > .cutin { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.cutin { --rot: -4deg; --bh: min(30vh, 240px); } .cutin.other { --rot: 3deg; --bh: min(17vh, 124px); }
.cutin .ci { position: absolute; left: -10vw; right: -10vw; top: 30%; height: var(--bh); display: flex; align-items: center; gap: 2.4vw; padding: 0 12vw 0 calc(10vw + 7vw); border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink); box-shadow: inset 0 12px 0 var(--el), 0 10px 0 rgba(20,20,22,.35);
  background: linear-gradient(104deg, var(--paper) 0 calc(17vw + var(--bh) * 1.3), var(--ink) 0 calc(17vw + var(--bh) * 1.3 + 9px), var(--tc) 0); transform: rotate(var(--rot)) translateX(-120%); }
.cutin.go .ci { animation: ciin 1.1s cubic-bezier(.2, .9, .3, 1) forwards; }
.cutin.other .ci { top: 15%; border-width: 4px; box-shadow: inset 0 7px 0 var(--el); }
.cutin.other.go .ci { animation-duration: .85s; }
@keyframes ciin { 0% { transform: rotate(var(--rot)) translateX(-120%); } 14% { transform: rotate(var(--rot)) translateX(0); } 80% { transform: rotate(var(--rot)) translateX(1.5%); } 100% { transform: rotate(var(--rot)) translateX(130%); } }
.ci-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.22) 34px 36px, transparent 36px 61px, rgba(20,20,22,.16) 61px 63px); background-size: 400px 100%; animation: ciline .25s linear infinite; }
@keyframes ciline { to { background-position: -400px 0; } }
.ci img { position: relative; flex: none; height: 142%; aspect-ratio: 1; align-self: flex-end; margin-bottom: -4px; animation: cipic 1.1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cipic { 0% { transform: translateX(-24vw) scale(.9); } 18% { transform: translateX(0) scale(1.06); } 100% { transform: translateX(1.5vw) scale(1.1); } }
.ci-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ci-t small { font: 900 clamp(13px, 1.6vw, 18px) var(--text); color: #fff; background: var(--ink); padding: 2px 10px; }
.ci-t b { font: 400 clamp(28px, 4.8vw, 64px)/1 var(--display); color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--el); white-space: nowrap; animation: cislam 1.1s cubic-bezier(.2, 1.6, .4, 1) both; }
.cutin.other .ci-t b { font-size: clamp(20px, 3vw, 40px); -webkit-text-stroke-width: 6px; text-shadow: 4px 4px 0 var(--el); }
@keyframes cislam { 0%, 8% { transform: scale(1.8) translateX(10vw); opacity: 0; } 22% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.04) translateX(1vw); opacity: 1; } }
.ci-t span { font: 900 clamp(14px, 1.8vw, 22px) var(--text); background: #fff; color: var(--ink); border: 3px solid var(--ink); padding: 4px 12px; transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); max-width: 46vw; animation: cisay 1.1s ease-out both; }
.cutin.other .ci-t span { display: none; }
@keyframes cisay { 0%, 24% { opacity: 0; transform: rotate(-2deg) translateY(12px); } 34% { opacity: 1; transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .cutin.go .ci { animation: none; clip-path: none; } .ci-lines, .ci img, .ci-t b, .ci-t span { animation: none; } }

/* a skill's tile shows the hero itself doing the move (public/skillicon.js); round on a phone, square in the dock */
.sk .gl.pic { border-radius: inherit; overflow: hidden; }
.sk .gl.pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sk .gl.pic .elb { display: none; }
body:not(.touch) .sk .gl.pic .elb { display: grid; place-items: center; position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; background: var(--el); color: var(--gc, #fff); border: 1.5px solid var(--ink); font-style: normal; }
body:not(.touch) .sk .gl.pic .elb .ic { width: 11px; height: 11px; }
.sk.locked .gl.pic img { filter: grayscale(1) contrast(.8); }
