/* 20.10.2026 all languages: font stacks as variables. html[data-script] (set by js/langs.js) adds Noto fallbacks for the
   scripts Cinzel and Barlow do not cover; those fonts are loaded only for these languages. */
:root { --ff-d: Cinzel, Georgia, serif; --ff-c: "Barlow Condensed", "Arial Narrow", sans-serif; --ff-b: "Barlow", system-ui, sans-serif; }
:root[data-script="cyrl"] { --ff-d: Cinzel, "Noto Serif", Georgia, serif; --ff-c: "Barlow Condensed", "Roboto Condensed", "Noto Sans", "Arial Narrow", sans-serif; --ff-b: "Barlow", "Noto Sans", system-ui, sans-serif; }
:root[data-script="jpan"] { --ff-d: Cinzel, "Noto Serif JP", serif; --ff-c: "Barlow Condensed", "Noto Sans JP", sans-serif; --ff-b: "Barlow", "Noto Sans JP", system-ui, sans-serif; }
:root[data-script="kore"] { --ff-d: Cinzel, "Noto Serif KR", serif; --ff-c: "Barlow Condensed", "Noto Sans KR", sans-serif; --ff-b: "Barlow", "Noto Sans KR", system-ui, sans-serif; }
:root[data-script="hans"] { --ff-d: Cinzel, "Noto Serif SC", serif; --ff-c: "Barlow Condensed", "Noto Sans SC", sans-serif; --ff-b: "Barlow", "Noto Sans SC", system-ui, sans-serif; }
/* CJK has no capitals and full-width glyphs: wide Latin tracking would tear the words apart */
:root[data-script="jpan"] *, :root[data-script="kore"] *, :root[data-script="hans"] * { letter-spacing: normal !important; }
/* SHIELDWALL HD - page frame like the other arcade games, LoL style HUD and menus inside the screen */
:root {
  --orange: #FF5E00; --gold: #c8aa6e; --gold2: #f0e6d2; --gold3: #785a28; --navy: #010a13; --navy2: #091428; --hex: #0ac8b9; --hex2: #cdfafa;
  --hp: #1fae4d; --hp2: #5ee07c; --red: #c2271c;
  --u: 1px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--orange); color: #000; font-family: var(--ff-c); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 12px 10px 20px; touch-action: manipulation; }
.top { width: min(1280px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.top a.back { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: #000; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.top a.back:hover { color: #fff; }
.sticker { display: inline-block; padding: 5px 10px; background: #000; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 0 0 3px #fff; }
.langs { display: inline-flex; gap: 2px; background: #0c0c0c; border: 2px solid #2a2a2a; border-radius: 999px; padding: 3px; }
.langs button { padding: 4px 10px; border-radius: 999px; border: 0; background: none; color: #9a938d; font: inherit; font-weight: 700; letter-spacing: .1em; font-size: 12px; cursor: pointer; }
.langs button.on { background: var(--orange); color: #000; }
.device { position: relative; width: min(1280px, 100%); border-radius: 22px; background: linear-gradient(180deg, #262626 0%, #141414 38%, #070707 100%); border: 3px solid #0b0b0b; box-shadow: 0 0 0 3px rgba(255, 150, 80, .55), 0 22px 46px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .16); padding: 12px; }
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #05080e; border-radius: 12px; overflow: hidden; border: 2px solid #000; container-type: size; user-select: none; -webkit-user-select: none; }
@media (orientation: portrait) and (max-width: 700px) { .screen { aspect-ratio: 3 / 4.2; } .device { padding: 6px; border-radius: 16px; } }
#gl, #ov2d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ov2d { pointer-events: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 52%, transparent 55%, rgba(2, 4, 10, .55) 100%); }
.hurt { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 45%, rgba(170, 10, 10, .85) 100%); transition: opacity .08s; }
.hint { width: min(1280px, 100%); display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 10px; flex-wrap: wrap; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.hint .legal a { color: #000; }
.hint .btns { display: inline-flex; gap: 8px; }
.hint button { font: inherit; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 2px solid #000; background: #000; color: var(--orange); cursor: pointer; }
.hint button.on { background: #fff; color: #000; }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; display: none; font-size: clamp(10px, 1.55cqh, 16px); color: var(--gold2); }
.hud.on { display: block; }
.h-top { position: absolute; top: 1.4em; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 1em; }
.h-chip { display: flex; align-items: center; gap: .4em; margin-top: .55em; padding: .3em .8em .3em .6em; background: linear-gradient(180deg, rgba(9, 20, 40, .92), rgba(1, 10, 19, .92)); border: 1px solid var(--gold3); border-radius: 3px; font-weight: 800; font-size: 1.15em; letter-spacing: .04em; min-width: 5.2em; }
.h-chip svg { width: 1.15em; height: 1.15em; color: var(--gold); flex: none; }
.h-chip b { color: var(--gold2); font-variant-numeric: tabular-nums; }
.h-clock { display: flex; flex-direction: column; align-items: center; padding: .25em 1.4em .5em; background: linear-gradient(180deg, rgba(9, 20, 40, .95), rgba(1, 10, 19, .92)); border: 1px solid var(--gold); border-top: 0; clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); min-width: 9em; }
.h-clock b { font-family: var(--ff-d); font-weight: 700; font-size: 2em; line-height: 1.05; color: var(--gold2); font-variant-numeric: tabular-nums; text-shadow: 0 0 .5em rgba(200, 170, 110, .45); }
.h-clock span { font-weight: 800; letter-spacing: .25em; font-size: .78em; color: var(--hex2); }
.h-tl { position: relative; width: 8em; height: .28em; margin-top: .3em; background: #1e2328; border: 1px solid #3c3c41; }
.h-tl i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold3), var(--gold)); transform-origin: left; transform: scaleX(0); }
.h-tl em { position: absolute; top: -.25em; width: 2px; height: .8em; background: var(--gold2); margin-left: -1px; }
.h-tl em.m3 { background: var(--red); margin-left: -2px; }
.h-boss { position: absolute; top: 6.6em; left: 50%; transform: translate(-50%, -.6em); width: min(40em, 70%); opacity: 0; transition: opacity .3s, transform .3s; text-align: center; }
.h-boss.on { opacity: 1; transform: translate(-50%, 0); }
.h-bname { font-family: var(--ff-d); font-weight: 900; letter-spacing: .12em; font-size: 1.15em; color: #f3dca7; text-shadow: 0 2px 4px #000, 0 0 12px rgba(194, 39, 28, .8); text-transform: uppercase; margin-bottom: .25em; }
.h-bbar { position: relative; height: 1em; background: #10070a; border: 1px solid var(--gold); box-shadow: 0 0 0 2px rgba(1, 10, 19, .9), 0 0 18px rgba(194, 39, 28, .45); overflow: hidden; }
.h-bbar i { position: absolute; inset: 0; transform-origin: left; }
.h-bbar i#h-bfill { background: linear-gradient(180deg, #ff5a43 0%, #c2271c 45%, #7a0f0a 100%); }
.h-bbar i.lag { background: #e8d9a8; }
.h-panel { position: absolute; left: 50%; bottom: .9em; transform: translateX(-50%); display: flex; align-items: flex-end; gap: .6em; padding: .55em .8em .6em .55em; background: linear-gradient(180deg, rgba(9, 20, 40, .93), rgba(1, 10, 19, .96)); border: 1px solid var(--gold3); border-top-color: var(--gold); border-radius: 4px 4px 2px 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 8px 28px rgba(0, 0, 0, .6); }
.h-port { position: relative; width: 5.6em; height: 5.6em; flex: none; border-radius: 50%; border: .2em solid var(--gold); box-shadow: 0 0 0 .15em var(--navy), 0 0 1em rgba(200, 170, 110, .35); overflow: hidden; background: #000; margin-top: -1.8em; }
.h-port img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-lv { position: absolute; left: 50%; bottom: -.1em; transform: translateX(-50%); min-width: 1.9em; padding: .05em .35em; background: var(--navy); border: 1px solid var(--gold); border-radius: 1em; font-weight: 800; font-size: .95em; text-align: center; color: var(--gold2); }
.h-main { display: flex; flex-direction: column; gap: .32em; }
.h-slots { display: flex; gap: .35em; }
.slot { position: relative; width: 3.5em; height: 3.5em; border: 1px solid var(--gold3); background: #0b1018; box-shadow: inset 0 0 0 1px #000; }
.slot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.slot.empty img { display: none; }
.slot.empty { background: repeating-linear-gradient(45deg, #0b1018 0 6px, #0e1520 6px 12px); }
.slot .pips { position: absolute; left: 0; right: 0; bottom: -.32em; display: flex; justify-content: center; gap: .14em; }
.slot .pips i { width: .5em; height: .5em; transform: rotate(45deg); background: #1e2328; border: 1px solid #000; }
.slot .pips i.on { background: var(--gold); box-shadow: 0 0 .3em rgba(240, 230, 210, .7); }
.slot.empty .pips { display: none; }
.slot .cd { position: absolute; inset: 0; background: rgba(1, 10, 19, .62); transform-origin: top; transform: scaleY(0); pointer-events: none; }
.slot.evo { border-color: #ffd98a; box-shadow: 0 0 0 1px #000, 0 0 .9em rgba(255, 196, 80, .85); animation: evoGlow 1.6s ease-in-out infinite; }
.slot.evo .pips i.on { background: #ffcf6a; }
@keyframes evoGlow { 50% { box-shadow: 0 0 0 1px #000, 0 0 1.5em rgba(255, 140, 40, .95); } }
.h-hp { position: relative; height: 1.35em; background: #0a0d10; border: 1px solid #000; box-shadow: 0 0 0 1px var(--gold3); overflow: hidden; }
.h-hp i { position: absolute; inset: 0; transform-origin: left; }
.h-hp i#h-hpfill { background: linear-gradient(180deg, var(--hp2) 0%, var(--hp) 50%, #0f6b2c 100%); }
.h-hp i.lag { background: #e8d9a8; opacity: .85; }
.h-hp.low i#h-hpfill { background: linear-gradient(180deg, #ff6a4a 0%, #c2271c 55%, #6e0f08 100%); }
.h-hp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, .55) calc(10% - 1px) 10%); pointer-events: none; }
.h-hp span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9em; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; z-index: 1; font-variant-numeric: tabular-nums; }
.h-xp { position: relative; height: .45em; background: #0a0d10; border: 1px solid #000; box-shadow: 0 0 0 1px #2a2a3a; overflow: hidden; }
.h-xp i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #6a3fc0, #b98cff); box-shadow: 0 0 .5em #b98cff; }
.h-pass { display: grid; grid-template-columns: repeat(3, 2.1em); grid-auto-rows: 2.1em; gap: .25em; align-self: center; }
.pslot { position: relative; border: 1px solid #3c3c41; background: #0b1018; }
.pslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslot.empty img { display: none; }
.pslot b { position: absolute; right: -.2em; bottom: -.3em; font-size: .72em; font-weight: 800; color: var(--gold2); background: var(--navy); border: 1px solid var(--gold3); padding: 0 .2em; line-height: 1.2; }
.pslot.max { border-color: var(--gold); }
.pslot.max b { color: #ffcf6a; }
.h-minibox { position: absolute; right: 1em; bottom: 1em; width: 9.6em; height: 9.6em; border-radius: 50%; border: .2em solid var(--gold3); box-shadow: 0 0 0 .12em var(--navy), 0 0 0 .25em var(--gold3), 0 6px 18px rgba(0, 0, 0, .6); background: var(--navy); overflow: hidden; }
.h-minibox canvas { width: 100%; height: 100%; display: block; }
.h-pause { position: absolute; top: 1em; right: 1em; pointer-events: auto; width: 2.6em; height: 2.6em; border-radius: 50%; border: 1px solid var(--gold); background: rgba(1, 10, 19, .8); color: var(--gold2); font: 800 1em var(--ff-c); letter-spacing: .05em; cursor: pointer; }

/* ---------- banner ---------- */
.banner { position: absolute; left: 0; right: 0; top: 17%; padding: .15em 0; background: linear-gradient(90deg, transparent 15%, rgba(1, 6, 12, .55) 38%, rgba(1, 6, 12, .55) 62%, transparent 85%); text-align: center; pointer-events: none; opacity: 0; transform: scale(.92); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.4, .4, 1); font-family: var(--ff-d); font-weight: 900; color: #f3dca7; letter-spacing: .14em; font-size: clamp(18px, 5.2cqh, 54px); text-shadow: 0 3px 6px #000, 0 0 24px rgba(255, 150, 60, .55); text-transform: uppercase; }
.banner small { display: block; font-family: var(--ff-c); font-weight: 800; font-size: .42em; letter-spacing: .3em; color: var(--hex2); margin-top: .2em; text-shadow: 0 2px 4px #000; }
.banner::before, .banner::after { content: ""; display: block; height: 1px; width: min(520px, 60%); margin: .25em auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.banner.on { opacity: 1; transform: none; }

/* ---------- overlays ---------- */
.ov { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3cqh 3cqw; color: var(--gold2); background: radial-gradient(ellipse at 50% 40%, rgba(9, 20, 40, .82), rgba(1, 6, 12, .94)); overflow-y: auto; z-index: 5; }
.ov.on { display: flex; }
.ov h2 { font-family: var(--ff-d); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: #f0e6d2; margin: 0 0 .3em; font-size: clamp(18px, 5cqh, 44px); text-shadow: 0 0 22px rgba(200, 170, 110, .5), 0 3px 4px #000; }
.ov .sub { margin: 0 0 1.2em; color: var(--hex2); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(12px, 2cqh, 18px); }
.ov .fine { color: #8c8a84; font-size: clamp(11px, 1.7cqh, 14px); letter-spacing: .04em; margin: .8em 0 0; font-weight: 600; }
.lbtn { position: relative; font: 800 clamp(13px, 2.3cqh, 20px) var(--ff-c); letter-spacing: .22em; text-transform: uppercase; color: var(--gold2); padding: .7em 2.2em; min-width: 11em; border: 2px solid var(--gold); background: linear-gradient(180deg, #1e2328 0%, #0a0f14 100%); cursor: pointer; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000; transition: filter .15s, box-shadow .15s, transform .1s; }
.lbtn:hover:not(:disabled), .lbtn:focus-visible { filter: brightness(1.25); box-shadow: inset 0 0 0 1px #000, 0 0 16px rgba(200, 170, 110, .55); outline: none; }
.lbtn:active:not(:disabled) { transform: translateY(1px); }
.lbtn.play { color: #f0fbfb; border-color: var(--hex); background: linear-gradient(180deg, #0f4c55 0%, #0a323c 50%, #06202a 100%); box-shadow: inset 0 0 0 1px #000, 0 0 18px rgba(10, 200, 185, .35); }
.lbtn.play:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #000, 0 0 28px rgba(10, 200, 185, .7); }
.lbtn:disabled { opacity: .45; cursor: wait; }
.col { display: flex; flex-direction: column; gap: .7em; }
.row { display: flex; gap: .8em; flex-wrap: wrap; justify-content: center; margin-top: 1.2em; }

/* title (game client look: logo in the storm sky, menu bar along the bottom, the splash art stays free) */
.ov.title { background: #000; display: none; padding: 0; text-align: left; overflow: hidden; }
.ov.title.on { display: block; }
.splash { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.splash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 46% 30%; animation: kb 30s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-.8%, .6%); } }
.splash::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 46% 42% at 16% 20%, rgba(1, 6, 12, .78), rgba(1, 6, 12, 0) 100%),
  linear-gradient(0deg, rgba(1, 6, 12, .96) 0%, rgba(1, 6, 12, .82) 15%, rgba(1, 6, 12, 0) 36%),
  radial-gradient(ellipse 85% 85% at 50% 45%, transparent 60%, rgba(1, 4, 10, .55) 100%); }
.tfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.tcol { position: absolute; z-index: 2; left: 4.5cqw; top: 5cqh; width: 37cqw; display: flex; flex-direction: column; align-items: flex-start; }
.kick { font-family: var(--ff-d); font-weight: 700; letter-spacing: .7em; color: var(--gold); font-size: clamp(10px, 2.2cqh, 18px); margin: 0 0 .1em .2em; text-shadow: 0 2px 4px #000; }
.logo { margin: 0; line-height: 0; }
.logo img { width: 31cqw; max-width: 460px; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .85)) drop-shadow(0 0 18px rgba(255, 110, 30, .25)); }
.tag { margin: .5em 0 0 .2em; max-width: 31em; font-size: clamp(12px, 2.1cqh, 18px); font-weight: 600; color: #e6dccb; letter-spacing: .03em; text-shadow: 0 2px 3px #000, 0 0 8px #000; }
.tbar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 2cqw; padding: 0 4.5cqw 4.5cqh; }
.tbar::before { content: ""; position: absolute; left: 4.5cqw; right: 4.5cqw; top: -1.6cqh; height: 1px; background: linear-gradient(90deg, rgba(200, 170, 110, .7), rgba(200, 170, 110, .15) 60%, transparent); }
.tleft { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tlabel { font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(10px, 1.7cqh, 14px); color: var(--hex2); margin-bottom: .5em; text-shadow: 0 1px 2px #000; }
.stages { display: flex; flex-wrap: wrap; gap: .4em; }
.stages button { font: 700 clamp(11px, 1.9cqh, 16px) var(--ff-c); letter-spacing: .12em; text-transform: uppercase; color: #a09b8c; padding: .45em 1em; border: 1px solid #463714; background: rgba(1, 10, 19, .78); cursor: pointer; transition: color .15s, border-color .15s, box-shadow .15s; }
.stages button:hover { color: var(--gold2); border-color: var(--gold3); }
.stages button.on { color: var(--gold2); border-color: var(--gold); box-shadow: inset 0 0 0 1px #000, 0 0 14px rgba(200, 170, 110, .4); background: linear-gradient(180deg, rgba(42, 33, 18, .9), rgba(10, 8, 5, .9)); }
.tright { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.tbtns { display: flex; gap: .8em; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lbtn.big { font-size: clamp(16px, 3.2cqh, 28px); padding: .7em 2.6em; min-width: 9em; letter-spacing: .3em; }
.lbtn.big::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(10, 200, 185, .45); pointer-events: none; }
.load { position: relative; width: min(24em, 100%); height: 1.5em; margin-top: .8em; border: 1px solid var(--gold3); background: rgba(1, 10, 19, .8); overflow: hidden; }
.load i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #0a323c, var(--hex)); transition: transform .2s; }
.load span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: clamp(11px, 1.7cqh, 14px); letter-spacing: .12em; color: #fff; text-shadow: 0 1px 2px #000; }
.load.done { opacity: 0; transition: opacity .6s .4s; }
.ov.title .fine { color: #b8b1a2; text-shadow: 0 1px 2px #000; margin: .8em 0 0; font-size: clamp(10px, 1.5cqh, 13px); }

/* skin selection (LoL style skin card: painted 16:9 splash, name plate, arrows, dots; swipe on touch) */
.skinsel { position: absolute; z-index: 2; right: 4.5cqw; top: 6cqh; width: 30cqw; max-width: 460px; display: flex; flex-direction: column; align-items: flex-end; }
.skinsel .tlabel { margin-bottom: .6em; }
.skbox { display: flex; align-items: center; gap: .5cqw; width: 100%; }
.skarr { flex: none; width: clamp(28px, 5.5cqh, 44px); height: clamp(40px, 9cqh, 70px); border: 1px solid var(--gold3); background: rgba(1, 10, 19, .78); color: var(--gold2); font: 700 clamp(22px, 4.6cqh, 38px)/1 var(--ff-d); cursor: pointer; transition: border-color .15s, box-shadow .15s, color .15s; padding: 0 0 .12em; }
.skarr:hover, .skarr:focus-visible { border-color: var(--gold); color: #fff; box-shadow: 0 0 14px rgba(200, 170, 110, .45); outline: none; }
.skcard { --c0: #d9d4ca; --c1: #ff6a10; --c2: #2a3446; position: relative; flex: 1; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--gold); background: #05080e; box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(1, 10, 19, .85), 0 0 0 5px var(--gold3), 0 12px 30px rgba(0, 0, 0, .7), 0 0 26px rgba(200, 170, 110, .25); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.skcard:focus-visible { box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(1, 10, 19, .85), 0 0 0 5px var(--hex), 0 0 26px rgba(10, 200, 185, .5); }
.skcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; animation: skIn .35s ease-out both; }
@keyframes skIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.skcard .skph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .3em; background: radial-gradient(ellipse 70% 90% at 30% 35%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%), linear-gradient(135deg, var(--c2) 0%, #05080e 55%, color-mix(in srgb, var(--c0) 30%, #05080e) 100%); }
.skcard.ph img { display: none; }
.skcard.ph .skph { display: flex; }
.skph i { width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c1); box-shadow: 0 0 18px var(--c1), inset 0 0 14px var(--c1); background: radial-gradient(circle at 50% 40%, var(--c0), var(--c2) 70%); opacity: .9; }
.skph b { font-family: var(--ff-d); font-weight: 900; font-size: clamp(14px, 3.4cqh, 30px); letter-spacing: .12em; color: #fff; text-shadow: 0 2px 6px #000, 0 0 16px var(--c1); text-transform: uppercase; }
.skph span { font-weight: 700; font-size: clamp(10px, 1.6cqh, 13px); letter-spacing: .25em; text-transform: uppercase; color: var(--hex2); text-shadow: 0 1px 2px #000; }
.skname { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: .6em; padding: 1.4em .8em .45em; background: linear-gradient(0deg, rgba(1, 6, 12, .92), rgba(1, 6, 12, 0)); }
.skname b { min-width: 0; font-family: var(--ff-d); font-weight: 700; font-size: clamp(13px, 2.8cqh, 24px); letter-spacing: .08em; line-height: 1.1; color: var(--gold2); text-shadow: 0 2px 4px #000; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; hyphens: auto; }   /* 20.10.2026 i18n: two lines instead of an ellipsis */
.skname span { flex: none; font-weight: 800; font-size: clamp(10px, 1.6cqh, 13px); letter-spacing: .14em; color: var(--gold); }
.skcard.ph .skname b { visibility: hidden; }
/* 20.10.2026 i18n: on narrow cards (phone portrait) the skin name gets two smaller lines instead of an ellipsis after 4 letters */
.skcard { container: skc / inline-size; }
@container skc (max-width: 260px) {
  .skname { align-items: flex-end; gap: .35em; padding: 1em .5em .35em; }
  .skname b { font-size: 11.5px; letter-spacing: .02em; line-height: 1.08; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; hyphens: auto; }
  .skname span { display: none; }   /* the dots below show the position, the name gets the whole width */
}
.skcard.ld img { opacity: 0; animation: none; }
.skcard.ld .skph { display: flex; }
.skcard.ld .skph > * { visibility: hidden; }
.skdots { display: flex; gap: .45em; justify-content: center; align-self: center; margin-top: .7em; }
.skdots button { width: .7em; height: .7em; padding: 0; border: 1px solid var(--gold3); background: rgba(1, 10, 19, .8); transform: rotate(45deg); cursor: pointer; font-size: clamp(10px, 1.8cqh, 15px); }
.skdots button.on { background: var(--gold); border-color: var(--gold2); box-shadow: 0 0 8px rgba(200, 170, 110, .8); }
.crest.lvc { width: clamp(44px, 11cqh, 84px); height: clamp(44px, 11cqh, 84px); margin-bottom: .6cqh; box-shadow: 0 0 0 3px var(--navy), 0 0 0 4px var(--gold3), 0 0 26px rgba(10, 200, 185, .45); }
.crest.lvc img { width: 100%; height: 100%; object-fit: cover; filter: none; }

/* level up cards (arena augment look) */
.ov.level { background: radial-gradient(ellipse at 50% 45%, rgba(9, 20, 40, .55), rgba(1, 6, 12, .85)); backdrop-filter: blur(2px); }
.cards { display: flex; gap: 2.2cqw; justify-content: center; align-items: stretch; flex-wrap: nowrap; }
.card { position: relative; width: clamp(130px, 25cqw, 250px); min-height: clamp(180px, 46cqh, 330px); display: flex; flex-direction: column; align-items: center; padding: 2.4cqh 1.2cqw 2cqh; cursor: pointer; text-align: center; background: linear-gradient(180deg, #16202e 0%, #0a1018 60%, #070b10 100%); border: 2px solid #8a8f96; box-shadow: 0 0 0 1px #000, 0 12px 30px rgba(0, 0, 0, .65); transition: transform .18s, box-shadow .18s, filter .18s; animation: cardIn .45s cubic-bezier(.2, 1.3, .4, 1) both; color: var(--gold2); font: inherit; }
.card:nth-child(2) { animation-delay: .07s; } .card:nth-child(3) { animation-delay: .14s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.9); } }
.card::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, .07); pointer-events: none; }
.card:hover, .card:focus-visible { transform: translateY(-8px); box-shadow: 0 0 0 1px #000, 0 0 30px rgba(205, 250, 250, .35), 0 18px 36px rgba(0, 0, 0, .7); outline: none; }
.card.gold { border-color: var(--gold); background: linear-gradient(180deg, #2a2112 0%, #120e08 60%, #0a0805 100%); }
.card.gold:hover { box-shadow: 0 0 0 1px #000, 0 0 34px rgba(240, 200, 110, .55), 0 18px 36px rgba(0, 0, 0, .7); }
.card.prism { border-color: transparent; background: linear-gradient(180deg, #1d1530, #0b0814) padding-box, linear-gradient(135deg, #ff7ad9, #7ad1ff, #ffe17a, #a17aff) border-box; animation: cardIn .45s cubic-bezier(.2, 1.3, .4, 1) both, prism 2.4s linear infinite; }
@keyframes prism { 50% { box-shadow: 0 0 0 1px #000, 0 0 40px rgba(190, 140, 255, .7), 0 18px 36px rgba(0, 0, 0, .7); } }
.card .ic { width: clamp(64px, 22cqh, 150px); height: clamp(64px, 22cqh, 150px); border: 2px solid var(--gold3); box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .6); object-fit: cover; background: #000; }
.card.prism .ic { border-color: #e9d1ff; box-shadow: 0 0 22px rgba(190, 140, 255, .7); }
.card.gold .ic { border-color: var(--gold); }
.card .tagl { margin-top: 1.4cqh; font-weight: 800; font-size: clamp(10px, 1.7cqh, 14px); letter-spacing: .24em; text-transform: uppercase; color: var(--hex2); }
.card.prism .tagl { color: #ffd6fb; }
.card.gold .tagl { color: #ffd98a; }
.card b { display: block; margin: .3em 0 .45em; font-family: var(--ff-d); font-weight: 700; font-size: clamp(14px, 3.1cqh, 26px); letter-spacing: .04em; line-height: 1.1; color: #f0e6d2; }
.card .desc { font-weight: 600; font-size: clamp(12px, 2.3cqh, 19px); line-height: 1.25; color: #c9c3b6; }
.card .lvl { display: flex; gap: .3em; margin-top: auto; padding-top: 1.4cqh; }
.card .lvl i { width: .62em; height: .62em; transform: rotate(45deg); background: #1e2328; border: 1px solid #000; font-size: clamp(11px, 1.8cqh, 15px); }
.card .lvl i.on { background: var(--gold); } .card .lvl i.nw { background: var(--hex); box-shadow: 0 0 6px var(--hex); }
.card .key { position: absolute; top: .6em; left: .7em; font-weight: 800; font-size: clamp(11px, 1.8cqh, 15px); color: #6f6a60; }

/* pause / over / settings */
.ov.over { background: radial-gradient(ellipse at 50% 30%, rgba(60, 8, 6, .55), rgba(1, 6, 12, .94) 70%); }
.ov.over.win { background: radial-gradient(ellipse at 50% 30%, rgba(80, 60, 20, .5), rgba(1, 6, 12, .92) 70%); }
.crest { position: relative; width: clamp(64px, 17cqh, 130px); height: clamp(64px, 17cqh, 130px); margin-bottom: 1.2cqh; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 3px var(--navy), 0 0 0 4px var(--gold3), 0 0 30px rgba(194, 39, 28, .55); overflow: hidden; background: #000; flex: none; }
.crest img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.85) brightness(.75) sepia(.3) hue-rotate(-20deg); }
.crest::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(120, 10, 6, .5)); }
.ov.over.win .crest { box-shadow: 0 0 0 3px var(--navy), 0 0 0 4px var(--gold3), 0 0 34px rgba(255, 200, 90, .65); }
.ov.over.win .crest img { filter: none; }
.ov.over.win .crest::after { display: none; }
.ov.over h2 { color: #f3dca7; text-shadow: 0 0 24px rgba(194, 39, 28, .7), 0 3px 4px #000; }
.ov.over.win h2 { text-shadow: 0 0 26px rgba(255, 200, 90, .7), 0 3px 4px #000; }
.pbuild { display: flex; gap: .4em; flex-wrap: wrap; justify-content: center; margin: .3em 0 1.4em; }
.pbuild img { width: clamp(30px, 6.5cqh, 52px); height: clamp(30px, 6.5cqh, 52px); border: 1px solid var(--gold3); object-fit: cover; }
.pbuild img.e { border-color: #ffd98a; box-shadow: 0 0 10px rgba(255, 196, 80, .7); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(7em, 1fr)); gap: .5em; margin: .4em 0 1em; }
.stats div { padding: .5em .9em; border: 1px solid var(--gold3); background: rgba(1, 10, 19, .7); }
.stats span { display: block; font-weight: 700; font-size: clamp(10px, 1.7cqh, 13px); letter-spacing: .2em; text-transform: uppercase; color: #8c8a84; }
.stats b { font-family: var(--ff-d); font-weight: 700; font-size: clamp(16px, 3.6cqh, 30px); color: var(--gold2); font-variant-numeric: tabular-nums; }
.setl { display: flex; flex-direction: column; gap: .5em; width: min(30em, 92%); margin-bottom: .6em; }
.srow { display: flex; align-items: center; gap: .8em; padding: .45em .8em; border: 1px solid #1e2328; background: rgba(1, 10, 19, .7); font-size: clamp(13px, 2.2cqh, 17px); }
.srow b { flex: 1; text-align: left; font-weight: 700; letter-spacing: .05em; }
.srow input[type=range] { width: 7em; accent-color: var(--hex); }
.tog, .segs button { font: 800 .85em var(--ff-c); letter-spacing: .14em; text-transform: uppercase; padding: .3em .9em; border: 1px solid var(--gold3); background: #0a0f14; color: #8c8a84; cursor: pointer; min-width: 4.4em; }
.tog.on, .segs button.on { color: #f0fbfb; border-color: var(--hex); background: #0a323c; }
.segs { display: inline-flex; gap: 2px; }
.ov.set .fine { margin-bottom: .9em; }
.ov.set { z-index: 6; background: radial-gradient(ellipse at 50% 40%, rgba(9, 20, 40, .97), rgba(1, 6, 12, .99)); }
.ov.rot { z-index: 7; }
.rotico { width: 54px; height: 84px; border: 3px solid var(--gold); border-radius: 9px; margin-bottom: 1em; animation: rot 2s ease-in-out infinite; }
@keyframes rot { 40%, 60% { transform: rotate(-90deg); } }
.ov.err { z-index: 8; }
.ov.err a { color: var(--hex2); }

/* fullscreen: the screen fills the viewport */
.screen.nw-fs-on { aspect-ratio: auto !important; border-radius: 0 !important; }
/* fullscreen: the arcade's exit button sits in the top right corner, the pause button moves left of it */
.screen.nw-fs-on .h-pause { right: calc(1em + 46px); }
.screen.nw-fs-on #gl, .screen.nw-fs-on #ov2d { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* small screens (phones in landscape, short windows) */
@container (max-height: 420px) {
  .hud { font-size: 9px; }
  .h-minibox { width: 7.5em; height: 7.5em; }
  .card { min-height: 0; padding: 1.4cqh 1cqw; }
  .card .desc { font-size: 12px; }
  .ov.title .fine { display: none; }
  .tag { display: none; }
  .skinsel { width: 24cqw; top: 4cqh; }
  .skinsel .tlabel, .skdots { display: none; }
  .crest.lvc { display: none; }
  .tbar { padding-bottom: 3cqh; }
  .lbtn.big { padding: .55em 1.8em; }
}
@container (max-width: 520px) {
  .hud { font-size: 9px; }
  .h-pass { display: none; }
  .h-minibox { width: 6.6em; height: 6.6em; top: 4.4em; bottom: auto; right: .6em; }
  .h-chip { min-width: 0; font-size: 1em; }
  .ov.title.on { display: flex; flex-direction: column; justify-content: flex-end; }
  .tcol { position: relative; left: auto; top: auto; width: 100%; align-items: center; text-align: center; margin-bottom: 2.4cqh; }
  .kick { margin-left: .7em; }
  .tag, .ov.title .fine, .tlabel { display: none; }
  .skinsel { position: relative; right: auto; top: auto; width: 84cqw; max-width: none; margin: 0 auto 2cqh; align-items: center; }
  .logo img { width: 78cqw; }
  .tbar { position: relative; flex-direction: column; align-items: stretch; padding: 0 5cqw 4cqh; gap: 1.6cqh; }
  .tbtns { flex-wrap: nowrap; }
  .tbtns .lbtn { min-width: 0; flex: 1; padding-left: .8em; padding-right: .8em; }
  .tbar::before { display: none; }
  .tleft { align-items: center; }
  .stages { justify-content: center; }
  .tright { align-items: stretch; }
  .tbtns { justify-content: center; }
  .load { width: 100%; }
  .splash::after { background: linear-gradient(0deg, rgba(1, 6, 12, .97) 0%, rgba(1, 6, 12, .8) 45%, rgba(1, 6, 12, 0) 70%); }
  .splash img { object-position: 45% 20%; }
  .cards { flex-direction: column; gap: 1.2cqh; }
  .card { width: 88cqw; min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 3.5cqw; text-align: left; padding: 1.4cqh 3cqw; align-items: center; }
  .card .ic { width: 13cqh; height: 13cqh; grid-row: 1 / span 3; }
  .card .tagl { margin-top: 0; grid-column: 2; }
  .card b { grid-column: 2; margin: .1em 0 .2em; }
  .card .desc { grid-column: 2; font-size: 13px; }
  .card .lvl { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .hint { font-size: 12px; } .top a.back { font-size: 13px; } }

/* phones in landscape: the battlefield takes the whole viewport height, the page frame shrinks */
@media (orientation: landscape) and (max-height: 520px) {
  body { padding: 4px 8px 10px; }
  .top { margin-bottom: 4px; width: 100%; }
  .top a.back { font-size: 12px; }
  .sticker { font-size: 10px; padding: 3px 8px; box-shadow: 0 0 0 2px #fff; }
  .langs button { padding: 2px 8px; font-size: 11px; }
  .device { width: 100%; padding: 4px; border-radius: 12px; }
  .screen { aspect-ratio: auto; height: calc(100vh - 58px); height: calc(100dvh - 58px); border-radius: 8px; }
  .hint { width: 100%; }
}

/* desktop and tablets in landscape: the whole frame fits the window height (laptops with 768 or 800 px), like the other arcade games */
@media (min-width: 1000px) and (min-height: 521px) and (orientation: landscape) {
  .top, .hint, .device { width: min(1280px, 100%, calc((100vh - 150px) * 16 / 9 + 34px)); width: min(1280px, 100%, calc((100dvh - 150px) * 16 / 9 + 34px)); }
}

/* ===================== 15.10.2026: account link, daily, results, juice, photo mode, co-op placeholder ===================== */
a.lbtn { display: inline-block; text-decoration: none; text-align: center; }
.lbtn[hidden] { display: none !important; }
.lbtn.sm { min-width: 0; padding: .55em 1.4em; font-size: clamp(12px, 2cqh, 16px); }

/* title: account chip, main menu link, daily chip, hero note */
.acct { display: flex; align-items: center; justify-content: flex-end; gap: .7em; margin-bottom: .7em; font-size: clamp(11px, 1.8cqh, 15px); flex-wrap: wrap; }
.acc-chip { font-weight: 700; letter-spacing: .08em; color: var(--gold2); text-shadow: 0 1px 2px #000; }
.acc-chip:empty { display: none; }
.acc-chip.in::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; border-radius: 50%; background: var(--hex); box-shadow: 0 0 6px var(--hex); vertical-align: .05em; }
.acc-chip.off { color: #ffcf9a; padding: .15em .7em; border: 1px solid rgba(255, 150, 80, .55); background: rgba(40, 18, 6, .75); border-radius: 999px; }
.acc-menu { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--hex2); text-decoration: none; padding: .25em .8em; border: 1px solid rgba(205, 250, 250, .35); background: rgba(1, 10, 19, .7); }
.acc-menu:hover, .acc-menu:focus-visible { color: #fff; border-color: var(--hex); outline: none; box-shadow: 0 0 12px rgba(10, 200, 185, .45); }
.stages button.daily { color: #ffd98a; border-color: #8a6a2a; background: linear-gradient(180deg, rgba(48, 34, 10, .88), rgba(14, 10, 4, .9)); }
.stages button.daily::before { content: "\2605"; margin-right: .4em; color: #ffcf6a; }
.stages button.daily.on { color: #fff3d6; border-color: #ffcf6a; box-shadow: inset 0 0 0 1px #000, 0 0 16px rgba(255, 200, 90, .5); }
.heronote { margin: .4em 0 0 .2em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(10px, 1.6cqh, 13px); color: var(--hex2); text-shadow: 0 1px 2px #000; }
.heronote:empty { display: none; }

/* callouts (multi kills, streaks, milestones, boss down): text only, under the banner line */
.callout { position: absolute; left: 0; right: 0; top: 28%; z-index: 3; text-align: center; pointer-events: none; opacity: 0; transform: scale(.6); font-family: var(--ff-d); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: #fff3d6; font-size: clamp(16px, 4.2cqh, 40px); text-shadow: 0 3px 5px #000, 0 0 18px rgba(255, 150, 60, .7); transition: opacity .18s, transform .28s cubic-bezier(.2, 1.6, .4, 1); }
.callout.on { opacity: 1; transform: none; }
.callout small { display: block; font-family: var(--ff-c); font-weight: 800; font-size: .48em; letter-spacing: .32em; color: var(--hex2); margin-top: .1em; }
.callout.multi.t1 { color: #f0e6d2; }
.callout.multi.t2 { color: #ffd98a; }
.callout.multi.t3 { color: #ffb14a; font-size: clamp(18px, 5cqh, 48px); }
.callout.multi.t4 { color: #ff7a3a; font-size: clamp(20px, 6cqh, 58px); text-shadow: 0 3px 6px #000, 0 0 26px rgba(255, 90, 30, .9); }
.callout.streak { color: #cdfafa; text-shadow: 0 3px 5px #000, 0 0 18px rgba(10, 200, 185, .8); }
.callout.mile { top: 31%; font-size: clamp(18px, 5.2cqh, 50px); }
.callout.boss { top: 30%; font-size: clamp(22px, 7cqh, 66px); color: #ffe3a8; text-shadow: 0 4px 8px #000, 0 0 30px rgba(255, 200, 90, .9); }
.callout.kms { font-size: clamp(14px, 3.2cqh, 30px); color: #e6dccb; }

/* badge toasts (top left) */
.toasts { position: absolute; left: 1em; top: 1em; z-index: 4; display: flex; flex-direction: column; gap: .5em; pointer-events: none; font-size: clamp(10px, 1.6cqh, 15px); }
.toast { display: flex; align-items: center; gap: .7em; min-width: 15em; max-width: 22em; padding: .5em .9em .5em .5em; background: linear-gradient(90deg, rgba(42, 33, 18, .95), rgba(1, 10, 19, .92)); border: 1px solid var(--gold); box-shadow: 0 0 0 1px #000, 0 8px 22px rgba(0, 0, 0, .6), 0 0 18px rgba(200, 170, 110, .35); color: var(--gold2); animation: toastIn .45s cubic-bezier(.2, 1.4, .4, 1) both; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateX(-30px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-40px); } }
.toast img { width: 2.8em; height: 2.8em; border: 1px solid var(--gold); object-fit: cover; flex: none; }
.toast span { display: block; font-weight: 800; font-size: .75em; letter-spacing: .28em; text-transform: uppercase; color: #ffcf6a; }
.toast b { display: block; font-family: var(--ff-d); font-weight: 700; font-size: 1.1em; line-height: 1.15; }
.toast em { display: block; font-style: normal; font-weight: 600; font-size: .85em; color: #b8b1a2; }

/* boss down: white flash and a small camera punch (the canvas only, cheap on the GPU) */
.h-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255, 246, 220, .85), rgba(255, 220, 160, .25) 60%, transparent 85%); }
.h-flash.on { animation: koFlash .7s ease-out both; }
@keyframes koFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
.screen.bossko #gl, .screen.bossko #ov2d { animation: koPunch 1.1s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes koPunch { 0% { transform: scale(1.06); } 15% { transform: scale(1.07); } 100% { transform: none; } }

/* photo mode */
.photo-ui { position: absolute; inset: 0; z-index: 6; display: none; pointer-events: none; }
.photo-ui.on { display: block; }
.ph-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .3em 1em; padding: .8em 1em 1.6em; background: linear-gradient(180deg, rgba(1, 6, 12, .75), rgba(1, 6, 12, 0)); color: var(--gold2); font-size: clamp(11px, 1.9cqh, 16px); text-shadow: 0 1px 2px #000; }
.ph-top b { font-family: var(--ff-d); font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.ph-hint { font-weight: 600; letter-spacing: .04em; color: #d6cfc0; }
.ph-msg { flex-basis: 100%; text-align: center; font-style: normal; font-weight: 700; color: var(--hex2); }
.ph-msg:empty { display: none; }
.ph-bar { position: absolute; left: 0; right: 0; bottom: 1.2em; display: flex; justify-content: center; align-items: center; gap: .7em; flex-wrap: wrap; pointer-events: auto; padding: 0 1em; }
.ph-bar .lbtn { min-width: 0; }
.ph-ico { width: 2.6em; height: 2.6em; border-radius: 50%; border: 1px solid var(--gold); background: rgba(1, 10, 19, .8); color: var(--gold2); font: 700 clamp(16px, 3cqh, 24px)/1 Georgia, serif; cursor: pointer; }
.ph-ico:hover, .ph-ico:focus-visible { border-color: var(--hex); color: #fff; outline: none; }

/* co-op placeholder */
.ov.coop { z-index: 6; }
.ov.coop .fine { color: var(--hex2); letter-spacing: .3em; font-weight: 800; }

/* ---------- results ---------- */
.ov.over { justify-content: flex-start; padding: 2.5cqh 2.5cqw; }
.res { margin: auto 0; width: min(100%, 1060px); display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.res-head { display: flex; align-items: center; justify-content: center; gap: 1.2em; margin-bottom: 1.6cqh; }
.res-head .crest { margin: 0; width: clamp(54px, 13cqh, 110px); height: clamp(54px, 13cqh, 110px); }
.rh-txt h2 { margin: 0; }
.rh-txt .sub { margin: .2em 0 0; letter-spacing: .14em; font-size: clamp(11px, 1.8cqh, 16px); }
.res-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.4cqw; }
.res-run, .res-acc { padding: 1.4cqh 1.4cqw; border: 1px solid var(--gold3); background: linear-gradient(180deg, rgba(9, 20, 40, .82), rgba(1, 10, 19, .9)); box-shadow: inset 0 0 0 1px #000; min-width: 0; }
.res h3 { margin: 1.4cqh 0 .7cqh; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; font-size: clamp(10px, 1.7cqh, 14px); color: var(--hex2); }
.res-acc > h3:first-child { margin-top: 0; }
.res-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.res-stats div { padding: .4em .7em; border: 1px solid #2a2a33; background: rgba(1, 10, 19, .7); }
.res-stats div.big { border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 170, 110, .25); }
.res-stats span { display: block; font-weight: 700; font-size: clamp(9px, 1.5cqh, 12px); letter-spacing: .18em; text-transform: uppercase; color: #8c8a84; }
.res-stats b { font-family: var(--ff-d); font-weight: 700; font-size: clamp(15px, 3.2cqh, 28px); color: var(--gold2); font-variant-numeric: tabular-nums; }
.res-stats div.big b { color: #fff3d6; }
.res-best { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em .7em; margin-top: 1cqh; font-size: clamp(12px, 2cqh, 17px); }
.res-best:empty { display: none; }
.res-best span { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8c8a84; font-size: .85em; }
.res-best b { font-family: var(--ff-d); color: var(--gold2); font-size: 1.2em; }
.res-best small { color: #6f6a60; font-weight: 600; }
.newrec { font-style: normal; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #1a0f02; background: linear-gradient(180deg, #ffe39a, #f0a830); padding: .1em .6em; transform: rotate(-3deg); box-shadow: 0 0 16px rgba(255, 190, 70, .7); animation: recIn .6s cubic-bezier(.2, 1.8, .4, 1) .5s both; }
@keyframes recIn { from { opacity: 0; transform: rotate(-3deg) scale(2.2); } }
.res-dmg { display: flex; flex-direction: column; gap: .45em; }
.drow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7em; }
.drow img { width: clamp(26px, 5.4cqh, 42px); height: clamp(26px, 5.4cqh, 42px); border: 1px solid var(--gold3); object-fit: cover; }
.drow.evo img { border-color: #ffd98a; box-shadow: 0 0 8px rgba(255, 196, 80, .7); }
.dmid { min-width: 0; }
.dname { display: flex; align-items: center; gap: .6em; font-size: clamp(11px, 1.9cqh, 16px); }
.dname b { font-weight: 700; color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dname .pips { display: inline-flex; gap: .2em; flex: none; }
.dname .pips i { width: .45em; height: .45em; transform: rotate(45deg); background: #1e2328; border: 1px solid #000; }
.dname .pips i.on { background: var(--gold); }
.dbar { position: relative; height: .55em; margin-top: .25em; background: #0a0d10; border: 1px solid #000; box-shadow: 0 0 0 1px #2a2a33; overflow: hidden; }
.dbar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #7a0f0a, #c2271c 40%, #ff9a3a); transition: transform .9s cubic-bezier(.2, .8, .3, 1); }
.drow.evo .dbar i { background: linear-gradient(90deg, #6a3fc0, #b98cff 50%, #ffe17a); }
.dval { text-align: right; font-variant-numeric: tabular-nums; }
.dval b { display: block; font-weight: 800; color: var(--gold2); font-size: clamp(12px, 2cqh, 17px); }
.dval span { font-weight: 700; font-size: clamp(9px, 1.4cqh, 12px); color: #8c8a84; letter-spacing: .1em; }
.rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.rw { padding: .45em .6em; border: 1px solid #2a2a33; background: rgba(1, 10, 19, .7); text-align: center; }
.rw b { display: block; font-family: var(--ff-d); font-weight: 700; font-size: clamp(15px, 3cqh, 26px); color: #fff3d6; font-variant-numeric: tabular-nums; }
.rw span { font-weight: 700; font-size: clamp(9px, 1.4cqh, 12px); letter-spacing: .16em; text-transform: uppercase; color: #8c8a84; }
.rw .ico, .goldline .ico, .passed .ico { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 50%; vertical-align: -.15em; }
.rw.xp .ico { background: radial-gradient(circle at 35% 35%, #e3d3ff, #8a5ce0 60%, #3c1f80); }
.rw.gold .ico, .goldline .ico { background: radial-gradient(circle at 35% 35%, #fff2b8, #f2b630 55%, #8a5a10); box-shadow: 0 0 6px rgba(255, 190, 60, .6); }
.rw.pass .ico { background: radial-gradient(circle at 35% 35%, #cdfafa, #0ac8b9 60%, #06404a); }
.acclv { position: relative; display: flex; align-items: center; gap: .8em; margin-top: 2.6cqh; }
.lvb { flex: none; width: 2.8em; height: 2.8em; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle at 50% 35%, #2a2112, #0a0805); box-shadow: 0 0 0 2px var(--navy), 0 0 12px rgba(200, 170, 110, .35); font-size: clamp(12px, 2.2cqh, 18px); }
.lvb b { font-family: var(--ff-d); font-weight: 900; color: #fff3d6; }
.lvb.up { animation: lvPop .7s cubic-bezier(.2, 1.8, .4, 1); box-shadow: 0 0 0 2px var(--navy), 0 0 26px rgba(255, 200, 90, .9); }
@keyframes lvPop { 0% { transform: scale(1.6); } 100% { transform: none; } }
.lvmid { flex: 1; min-width: 0; }
.lvcap { display: flex; justify-content: space-between; gap: .6em; font-size: clamp(10px, 1.6cqh, 13px); }
.lvcap span { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #8c8a84; }
.lvcap em { font-style: normal; font-weight: 700; color: var(--gold2); font-variant-numeric: tabular-nums; }
.lvbar { position: relative; height: .8em; margin-top: .3em; background: #0a0d10; border: 1px solid #000; box-shadow: 0 0 0 1px var(--gold3); overflow: hidden; }
.lvbar i { position: absolute; inset: 0; transform-origin: left; transition: transform .55s cubic-bezier(.3, .7, .3, 1); }
.lvbar i.gain { background: #fff3d6; opacity: .75; }
.lvbar i:not(.gain) { background: linear-gradient(90deg, #6a3fc0, #b98cff); box-shadow: 0 0 .5em #b98cff; }
.lvup { position: absolute; right: 0; top: -1.3em; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: #ffcf6a; font-size: clamp(10px, 1.7cqh, 14px); text-shadow: 0 0 10px rgba(255, 190, 70, .8); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s; }
.lvup.on { opacity: 1; transform: none; }
.goldline { margin-top: .8cqh; font-weight: 700; color: var(--gold2); font-size: clamp(11px, 1.8cqh, 15px); }
.goldline span { margin-left: .4em; }
.quests { display: flex; flex-direction: column; gap: .4em; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 30% auto; align-items: center; gap: .6em; font-size: clamp(11px, 1.8cqh, 15px); font-weight: 600; color: #d6cfc0; }
.qrow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow b { font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; text-align: right; min-width: 4.5em; }
.qrow.done b { color: var(--hex); }
.qbar { height: .5em; background: #0a0d10; border: 1px solid #000; box-shadow: 0 0 0 1px #2a2a33; overflow: hidden; }
.qbar i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #0a323c, var(--hex)); }
.badges { display: flex; flex-wrap: wrap; gap: .4em; }
.bchip { display: inline-flex; align-items: center; gap: .45em; padding: .25em .7em .25em .25em; border: 1px solid var(--gold); background: rgba(42, 33, 18, .8); animation: toastIn .5s both; }
.bchip img { width: 1.9em; height: 1.9em; object-fit: cover; }
.bchip b { font-family: var(--ff-d); font-size: clamp(11px, 1.8cqh, 15px); color: #fff3d6; }
.passed { margin-top: 1.2cqh; padding: .5em .8em; border: 1px solid var(--hex); background: rgba(10, 50, 60, .55); color: #f0fbfb; font-weight: 700; font-size: clamp(12px, 2cqh, 16px); }
.passed .ico { background: radial-gradient(circle at 35% 35%, #cdfafa, #0ac8b9 60%, #06404a); margin-right: .4em; }
.dranks ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25em; }
.dranks li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: .5em; padding: .25em .6em; border: 1px solid #1e2328; background: rgba(1, 10, 19, .7); font-size: clamp(11px, 1.8cqh, 15px); }
.dranks li.me { border-color: var(--gold); background: rgba(42, 33, 18, .8); }
.dranks li em { font-style: normal; font-weight: 800; color: #8c8a84; }
.dranks li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gold2); font-weight: 700; }
.dranks li b { font-variant-numeric: tabular-nums; color: #fff3d6; }
.res-note { display: flex; flex-direction: column; align-items: flex-start; gap: .8em; }
.res-note b { font-weight: 700; font-size: clamp(13px, 2.3cqh, 19px); color: var(--gold2); line-height: 1.25; }
.res-note p { margin: 0; color: #b8b1a2; font-weight: 600; font-size: clamp(11px, 1.8cqh, 15px); }
.res-note.off b { color: #ffcf9a; }
/* 21.10.2026: the weekly Thing rank and new collection book entries under the account part */
.res-note.rtline { margin-top: 1em; padding-top: .8em; border-top: 1px solid #1e2328; gap: .35em; }
.res-cards { display: flex; align-items: center; gap: .9em; margin-top: 1em; padding-top: .8em; border-top: 1px solid #1e2328; }
.res-cards .rc-row { display: flex; flex: none; }
.res-cards .rc-back { --rc: #9aa3ad; position: relative; width: clamp(26px, 4.6cqh, 40px); aspect-ratio: 600 / 840; border-radius: 4px; margin-left: -.55em; border: 2px solid var(--rc);
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.14), transparent 55%), linear-gradient(160deg, #1d2833, #0c1117); box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 10px color-mix(in srgb, var(--rc) 40%, transparent);
  animation: rcIn .5s calc(var(--i, 0) * .12s) both cubic-bezier(.2,.8,.2,1); }
.res-cards .rc-back:first-child { margin-left: 0; }
.res-cards .rc-back i { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); border: 2px solid var(--rc); opacity: .85; }
.res-cards .rc-back.dup { opacity: .55; }
.res-cards .rc-back.r-rare { --rc: #4aa3ff; } .res-cards .rc-back.r-epic { --rc: #b46cff; } .res-cards .rc-back.r-legendary { --rc: #ffb02e; }
.res-cards .rc-txt { display: flex; flex-direction: column; gap: .25em; min-width: 0; }
.res-cards .rc-txt b { color: var(--gold2); font-size: clamp(13px, 2.2cqh, 18px); }
.res-cards .rc-txt span { color: #b8b1a2; font-weight: 600; font-size: clamp(11px, 1.8cqh, 15px); }
.res-cards .rc-open { color: var(--gold2); font-weight: 700; font-size: clamp(11px, 1.8cqh, 15px); text-decoration: underline; text-underline-offset: 3px; }
@keyframes rcIn { from { transform: translateY(8px) rotateY(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .res-cards .rc-back { animation: none; } }
.res-wait { display: flex; align-items: center; gap: .7em; color: #b8b1a2; font-weight: 700; font-size: clamp(12px, 2cqh, 16px); }
.res-wait i { width: 1.1em; height: 1.1em; border-radius: 50%; border: 2px solid var(--gold3); border-top-color: var(--hex); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.res .row { margin-top: 1.6cqh; }
.res-acc:empty { display: none; }
@container (max-width: 760px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2cqh; }
  .res-head { justify-content: flex-start; }
  .res-run, .res-acc { padding: 1.2cqh 3cqw; }
}
@container (max-width: 520px) {
  .ov.over { padding: 2cqh 3cqw; }
  .res-head .crest { width: 12cqw; height: 12cqw; }
  .res-stats div { padding: .3em .45em; }
  .res .row { gap: .5em; }
  .res .row .lbtn { flex: 1; min-width: 0; padding-left: .6em; padding-right: .6em; letter-spacing: .12em; }
  .toasts { left: .5em; top: 4.6em; font-size: 10px; }
  .toast { min-width: 0; max-width: 70cqw; }
  .ph-hint { display: none; }
  .acct { justify-content: center; margin-bottom: .3em; font-size: 11px; }
  .skinsel { width: 70cqw; margin-bottom: 1.4cqh; }
  .tcol { margin-bottom: 1.2cqh; }
}
@container (max-height: 420px) {
  .res-head { margin-bottom: .8cqh; }
  .res-head .crest { display: none; }
  .callout { top: 24%; }
  .ph-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .callout, .toast, .newrec, .bchip, .lvb.up { animation: none !important; transition: none !important; } }

/* ===================== 15.10.2026: hero selection (Eldruna, Domsgard, Skaedra) ===================== */
.herosel { margin: 1.4cqh 0 0 .2em; }
.herosel .tlabel { margin-bottom: .6em; }
.heroes { display: flex; gap: 1.1cqw; }
.hbtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35em; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #a09b8c; -webkit-tap-highlight-color: transparent; }
.hbtn img { display: block; width: clamp(44px, 10.5cqh, 92px); height: clamp(44px, 10.5cqh, 92px); object-fit: cover; border: 2px solid var(--gold3); box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .6); filter: saturate(.55) brightness(.72); transition: filter .15s, border-color .15s, box-shadow .15s, transform .15s; background: #05080e; }
.hbtn b { font: 700 clamp(10px, 1.8cqh, 15px) var(--ff-d); letter-spacing: .08em; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.hbtn:hover img, .hbtn:focus-visible img { filter: saturate(.9) brightness(.95); border-color: var(--gold); }
.hbtn:focus-visible { outline: none; }
.hbtn:focus-visible img { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--hex), 0 6px 16px rgba(0, 0, 0, .6); }
.hbtn.on { color: var(--gold2); }
.hbtn.on img { filter: none; border-color: var(--gold); box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(1, 10, 19, .9), 0 0 0 4px var(--gold), 0 0 22px rgba(200, 170, 110, .55); transform: translateY(-2px); }
/* one skin only (Domsgard, Skaedra for now): no arrows and dots, the card stays */
.skinsel.single .skarr, .skinsel.single .skdots { visibility: hidden; }
@container (max-height: 420px) {
  .herosel { margin-top: .8cqh; }
  .herosel .tlabel { display: none; }
  .hbtn img { width: clamp(38px, 13cqh, 60px); height: clamp(38px, 13cqh, 60px); }
  .hbtn b { font-size: 10px; }
}
@container (max-width: 520px) {
  /* phones upright: the hero row takes room, so logo and skin card shrink; the chosen name stays over the logo */
  .herosel { margin: .8cqh 0 0; align-self: center; }
  .heroes { gap: 5cqw; justify-content: center; }
  .hbtn img { width: clamp(36px, 12cqw, 60px); height: clamp(36px, 12cqw, 60px); }
  .hbtn b { display: none; }
  .heronote { margin: .3em 0 0; }
  .logo img { width: 62cqw; }
  .skinsel { width: 50cqw; margin-bottom: 1cqh; }
  .tcol { margin-bottom: .6cqh; }
  .skinsel.single .skarr { display: none; }
  .skinsel.single .skdots { display: none; }
}

/* ---------- co-op (15.10.2026): lobby, in-run team panel, edge level up cards, downed note, quick messages, results ---------- */
.ov.coop { z-index: 6; justify-content: flex-start; padding-top: 4cqh; }
.ov.coop .cp { width: min(94cqw, 1000px); display: flex; flex-direction: column; align-items: center; margin: auto 0; }
.cp-pane { width: 100%; display: flex; flex-direction: column; align-items: center; }
.cp-pane[hidden] { display: none; }
.cp-acts { display: flex; flex-wrap: wrap; gap: 1em 1.4em; justify-content: center; align-items: center; }
.cp-join { display: flex; gap: .5em; align-items: stretch; }
.cp-join input { width: 7.2em; font: 800 clamp(16px, 3cqh, 26px) var(--ff-c); letter-spacing: .32em; text-transform: uppercase; text-align: center; color: var(--gold2); background: rgba(1, 10, 19, .85); border: 2px solid var(--gold3); padding: .25em .3em .25em .6em; outline: none; }
.cp-join input:focus { border-color: var(--hex); box-shadow: 0 0 14px rgba(10, 200, 185, .35); }
.cp-join .lbtn { min-width: 7em; }
.cp-local { margin-top: 1em; display: flex; gap: .5em; align-items: center; color: #a09b8c; font-weight: 700; font-size: clamp(11px, 1.8cqh, 14px); cursor: pointer; }
.cp-local[hidden] { display: none; }
.cp-msg { min-height: 1.4em; margin: .9em 0 0; color: #ffcf9a; font-weight: 700; letter-spacing: .04em; font-size: clamp(12px, 2cqh, 16px); }
.ov.coop .fine { max-width: 46em; line-height: 1.4; }
.cp-codebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6em 1.6em; margin: 0 0 1.2cqh; }
.cp-codeval { display: flex; flex-direction: column; align-items: center; }
.cp-codeval .tlabel { margin-bottom: .1em; }
.cp-codebox b { font: 800 clamp(26px, 6.2cqh, 54px)/1 var(--ff-c); letter-spacing: .32em; padding-left: .32em; color: #fff3d6; text-shadow: 0 0 20px rgba(255, 200, 90, .45), 0 3px 4px #000; user-select: all; -webkit-user-select: all; }
.cp-share { display: flex; gap: .5em; }
.cp-share .lbtn { min-width: 0; padding: .55em 1.2em; font-size: clamp(11px, 1.9cqh, 16px); }
.cp-cols { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2cqw; text-align: left; }
.cp-left, .cp-right { padding: 1.4cqh 1.4cqw; border: 1px solid var(--gold3); background: linear-gradient(180deg, rgba(9, 20, 40, .82), rgba(1, 10, 19, .9)); box-shadow: inset 0 0 0 1px #000; min-width: 0; }
.cp-right .tlabel:not(:first-child) { margin-top: 1.2cqh; }
.cp-left small { color: #8c8a84; letter-spacing: .1em; }
.cp-players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45em; }
.cp-players li { --pc: var(--gold); position: relative; display: flex; align-items: center; gap: .7em; padding: .35em .6em .35em .35em; border: 1px solid #2a2a33; border-left: 4px solid var(--pc); background: rgba(1, 10, 19, .75); min-height: 3.1em; }
.cp-players li.empty { justify-content: center; color: #5d5a54; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(10px, 1.6cqh, 13px); border-left-color: #2a2a33; border-style: dashed; }
.cp-players img { width: clamp(30px, 6cqh, 46px); height: clamp(30px, 6cqh, 46px); object-fit: cover; border: 1px solid var(--pc); flex: none; }
.cp-players li > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cp-players b { font: 700 clamp(12px, 2.2cqh, 18px) var(--ff-d); color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-players span { font-weight: 700; font-size: clamp(10px, 1.6cqh, 13px); letter-spacing: .12em; color: #8c8a84; text-transform: uppercase; }
.cp-players em { font-style: normal; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(10px, 1.6cqh, 13px); color: #8c6a4a; }
.cp-players em.ok { color: #7ed957; }
.cp-players i.emo { position: absolute; right: .6em; top: -.9em; font-style: normal; font-weight: 800; font-size: clamp(11px, 1.8cqh, 14px); padding: .1em .55em; background: #f4efe6; color: #1a1410; border: 2px solid var(--pc); border-radius: 6px; opacity: 0; transform: translateY(4px); pointer-events: none; }
.cp-players i.emo.on { animation: cpemo 2.6s ease forwards; }
@keyframes cpemo { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 8% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.cp-heroes { display: flex; gap: 1em; }
.cp-heroes .hbtn img { width: clamp(40px, 8cqh, 70px); height: clamp(40px, 8cqh, 70px); }
.cp-maps button:disabled { cursor: default; opacity: .75; }
.cp-maps button.on:disabled { opacity: 1; }
.cp-emotes { display: flex; flex-wrap: wrap; gap: .35em; }
.cp-emotes button, .cp-emo-list button { font: 700 clamp(11px, 1.8cqh, 15px) var(--ff-c); letter-spacing: .06em; color: var(--gold2); padding: .35em .8em; border: 1px solid var(--gold3); background: rgba(1, 10, 19, .85); cursor: pointer; }
.cp-emotes button:hover, .cp-emo-list button:hover { border-color: var(--gold); color: #fff3d6; }
.ov.coop .row .lbtn[hidden] { display: none; }
.ov.coop .cp-back { margin-top: 1.4cqh; }
.ov.coop[data-pane="cp-room"] .cp-back, .ov.coop[data-pane="cp-gone"] .cp-back, .ov.coop[data-pane="cp-soon"] .cp-back { display: none; }
.cp-run { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 3; font-size: clamp(10px, 1.55cqh, 16px); color: var(--gold2); }
.cp-run.on { display: block; }
.cp-team { position: absolute; left: 1em; top: 34%; display: flex; flex-direction: column; gap: .45em; }
.cp-team .tm { --pc: var(--gold); display: flex; align-items: center; gap: .5em; padding: .3em .55em .3em .3em; background: rgba(1, 10, 19, .78); border: 1px solid #2a2a33; border-left: 3px solid var(--pc); min-width: 10em; }
.cp-team img { width: 2.3em; height: 2.3em; object-fit: cover; border: 1px solid var(--pc); }
.cp-team .tm > div { display: flex; flex-direction: column; gap: .25em; min-width: 0; flex: 1; }
.cp-team b { font: 700 .95em var(--ff-c); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.cp-team i { display: block; height: .45em; background: #12161c; border: 1px solid #000; overflow: hidden; }
.cp-team em { display: block; height: 100%; background: linear-gradient(180deg, var(--hp2), var(--hp)); transform-origin: left; }
.cp-team .tm[data-st="down"] { border-color: #e0452e; animation: cpdown 1s ease-in-out infinite; }
.cp-team .tm[data-st="down"] em { background: #e0452e; }
.cp-team .tm[data-st="out"], .cp-team .tm[data-st="gone"] { opacity: .4; }
.cp-team .tm[data-st="out"] img, .cp-team .tm[data-st="gone"] img { filter: grayscale(1); }
@keyframes cpdown { 50% { box-shadow: 0 0 12px rgba(224, 69, 46, .8); } }
.cp-cards { position: absolute; right: 1em; top: 22%; width: 13.5em; display: none; flex-direction: column; gap: .4em; pointer-events: auto; animation: cpin .25s ease-out; }
.cp-cards.on { display: flex; }
@keyframes cpin { from { opacity: 0; transform: translateX(30%); } to { opacity: 1; transform: none; } }
.cp-chead { display: flex; flex-direction: column; gap: .3em; padding: .35em .6em; background: rgba(1, 10, 19, .85); border: 1px solid var(--gold); }
.cp-chead b { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .9em; color: #fff3d6; }
.cp-chead i { display: block; height: 3px; background: #12161c; overflow: hidden; }
.cp-chead em { display: block; height: 100%; background: var(--hex); transform-origin: left; transition: transform .2s linear; }
.cpc { position: relative; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .55em; align-items: center; text-align: left; padding: .4em .6em .4em .4em; border: 1px solid var(--gold3); background: linear-gradient(180deg, rgba(30, 35, 40, .94), rgba(10, 15, 20, .96)); color: var(--gold2); cursor: pointer; font: inherit; }
.cpc:hover, .cpc:focus-visible { border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 170, 110, .45); outline: none; }
.cpc.gold { border-color: #8a6a2a; }
.cpc.prism { border-color: #b98cff; box-shadow: 0 0 14px rgba(185, 140, 255, .45); }
.cpc img { grid-row: 1 / 3; width: 2.6em; height: 2.6em; object-fit: contain; }
.cpc .tg { font-weight: 800; font-size: .72em; letter-spacing: .16em; text-transform: uppercase; color: var(--hex2); }
.cpc b { font: 700 1em var(--ff-c); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpc .key { position: absolute; right: .35em; top: .25em; font-weight: 800; font-size: .75em; color: var(--gold); }
.cp-downmsg { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); padding: .4em 1.2em; background: rgba(40, 6, 4, .78); border: 1px solid #e0452e; color: #ffd0c4; font-weight: 800; letter-spacing: .06em; text-align: center; font-size: 1.15em; opacity: 0; transition: opacity .25s; max-width: 90%; }
.cp-downmsg.on { opacity: 1; }
.screen.cp-downed #gl { filter: saturate(.35) brightness(.85); }
.cp-emo { position: absolute; left: 1em; bottom: 1em; pointer-events: auto; }
.cp-emo-btn { width: 2.8em; height: 2.8em; border-radius: 50%; border: 1px solid var(--gold); background: rgba(1, 10, 19, .8); color: var(--gold2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cp-emo-btn svg { width: 1.4em; height: 1.4em; }
.cp-emo-list { position: absolute; left: 0; bottom: 3.3em; display: none; flex-direction: column; gap: .3em; }
.cp-emo.open .cp-emo-list { display: flex; }
.cp-emo-list button { display: flex; gap: .6em; align-items: center; white-space: nowrap; text-align: left; }
.cp-emo-list span { color: var(--gold); font-weight: 800; }
.cp-net { position: absolute; right: 1em; top: 4.2em; font-weight: 700; font-size: .8em; letter-spacing: .08em; color: #8c8a84; text-shadow: 0 1px 2px #000; }
.ov.pause .cp-only { display: none; }
.ov.pause.coop .cp-only { display: inline-block; }
.ov.pause.coop p.cp-only { display: block; max-width: 26em; }
.ov.pause.coop .solo-only { display: none; }
.ov.pause.coop:not(.cphost) .cp-hostonly { display: none; }
.ov.pause.coop { background: radial-gradient(ellipse at 50% 40%, rgba(9, 20, 40, .62), rgba(1, 6, 12, .8)); }
.res-team { margin-top: 1.4cqh; padding: 1.2cqh 1.4cqw; border: 1px solid var(--gold3); background: linear-gradient(180deg, rgba(9, 20, 40, .82), rgba(1, 10, 19, .9)); box-shadow: inset 0 0 0 1px #000; text-align: left; }
.res-team:empty { display: none; }
.res-team h3 { margin-top: 0; }
.trow { --pc: var(--gold); display: grid; grid-template-columns: 2.4em minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: .3em .8em; align-items: center; padding: .3em .4em; border-left: 3px solid var(--pc); background: rgba(1, 10, 19, .6); margin-top: .3em; font-size: clamp(11px, 1.9cqh, 16px); }
.trow.th { border-left-color: transparent; background: none; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8c8a84; font-size: clamp(9px, 1.5cqh, 12px); }
.trow.me { box-shadow: inset 0 0 0 1px var(--pc); }
.trow.gone { opacity: .55; }
.trow img { width: 2.4em; height: 2.4em; object-fit: cover; border: 1px solid var(--pc); }
.trow .tn { display: flex; flex-direction: column; min-width: 0; }
.trow .tn b { font: 700 1em var(--ff-d); color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .tn small { color: #8c8a84; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72em; }
.trow > b { font-family: var(--ff-d); color: var(--gold2); font-variant-numeric: tabular-nums; }
.row .lbtn[hidden] { display: none; }
/* the lobby scrolls as a whole: nothing in it may shrink, and its labels stay visible on phones (the title screen hides its own) */
.ov.coop .cp, .ov.coop .cp-pane, .ov.coop .cp-pane > *, .ov.coop .cp-right > * { flex-shrink: 0; }
.ov.coop .tlabel { display: block; }
@media (max-width: 700px), (orientation: portrait) {
  .ov.coop { padding: 2cqh 3cqw; }
  .cp-heroes { gap: 4cqw; }
  .cp-heroes .hbtn img { width: clamp(40px, 12cqw, 60px); height: clamp(40px, 12cqw, 60px); }
  .cp-right .stages { justify-content: flex-start; }
  .cp-cols { grid-template-columns: minmax(0, 1fr); }
  .cp-team { top: 26%; left: .5em; font-size: 10px; }
  .cp-team .tm { min-width: 0; }
  .cp-team b { max-width: 6em; }
  .cp-cards { right: .5em; width: 11.5em; top: 31%; font-size: 10px; }
  .cp-net { right: auto; left: 1em; top: 4.6em; }
  .cp-emo { left: .5em; bottom: .5em; }
  .trow { grid-template-columns: 2em minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: .2em .4em; }
}
/* gamepad focus ring (15.10. integration, js/gamepad.js sets .pad-mode on <html> while a pad is used) */
.pad-mode .pad-focus { outline: 3px solid #ffb347; outline-offset: 3px; }
.pad-mode .card.pad-focus { outline-offset: -3px; }

/* ===================== 15.10.2026: controllers and joysticks, input dependent hints, phone layout, couch co-op ===================== */
/* the focus ring stays visible on every menu element while a controller is used */
.pad-mode .hbtn.pad-focus { outline: 0; }
.pad-mode .hbtn.pad-focus img { outline: 3px solid #ffb347; outline-offset: 2px; }
.pad-mode .stages button.pad-focus, .pad-mode .tog.pad-focus, .pad-mode .segs button.pad-focus { outline-offset: 1px; }
.pad-mode input[type="range"].pad-focus { outline-offset: 4px; }
/* key hints on cards: number (keyboard), the controller's button, nothing on touch */
.card .key .pg, .cpc .key .pg, .cp-emo-list span .pg { font-size: 1.05em; }
html[data-input="pad"] .card .key { top: .45em; left: .5em; }
html[data-input="touch"] .card .key, html[data-input="touch"] .cpc .key, html[data-input="touch"] .cp-emo-list span, html[data-input="touch"] .ccc .key { display: none; }
/* button legend at the bottom (menus, photo mode) and the controller toast */
.padbar { position: absolute; left: 50%; bottom: .7em; transform: translateX(-50%); z-index: 9; display: none; align-items: center; gap: .3em; padding: .3em .9em; background: rgba(1, 6, 12, .84); border: 1px solid rgba(200, 170, 110, .45); border-radius: 999px; color: var(--gold2); font: 700 clamp(11px, 1.9cqh, 15px) var(--ff-c); letter-spacing: .05em; white-space: nowrap; pointer-events: none; max-width: 96%; overflow: hidden; }
.padbar.on { display: flex; }
html[data-input="pad"] .ov:not(.title) { padding-bottom: calc(3cqh + 2.8em); }
html[data-input="pad"] .ov.title .tbar { padding-bottom: calc(4.5cqh + 2.4em); }
html[data-input="pad"] .photo-ui .ph-bar { bottom: 3.4em; }
html[data-input="pad"] .photo-ui .ph-hint { display: none; }
.padtoast { position: absolute; left: 50%; top: 4.6em; transform: translate(-50%, -.6em); z-index: 10; display: flex; align-items: center; gap: .3em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; padding: .45em 1em; background: linear-gradient(90deg, rgba(42, 33, 18, .96), rgba(1, 10, 19, .94)); border: 1px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .55); color: var(--gold2); font: 700 clamp(12px, 2cqh, 16px) var(--ff-c); letter-spacing: .04em; white-space: nowrap; max-width: 94%; }
.padtoast.on { opacity: 1; transform: translate(-50%, 0); }
.padtoast b { color: #fff3d6; margin-right: .35em; }
/* settings: vibration, button mapping, legal links; the remap screen */
.tog.wide { min-width: 7em; }
.tog:disabled { opacity: .45; cursor: default; }
.set-legal { margin: 1em 0 0; font-size: clamp(11px, 1.8cqh, 14px); color: #a09b8c; }
.set-legal a { color: var(--gold2); }
.ov.remap { z-index: 8; justify-content: flex-start; padding-top: 3cqh; font-size: clamp(12px, 2.1cqh, 16px); background: radial-gradient(ellipse at 50% 40%, rgba(9, 20, 40, .97), rgba(1, 6, 12, .99)); }
.ov.remap h2 { font-size: clamp(18px, 3.6cqh, 30px); }
/* title: couch co-op hint */
.couch-hint { margin: .5em 0 0; font: 700 clamp(11px, 1.8cqh, 15px) var(--ff-c); letter-spacing: .05em; color: #ffd9a0; text-align: right; text-shadow: 0 1px 2px #000; }
.couch-hint[hidden], #btn-couch[hidden] { display: none; }

/* phones and tablets without a mouse (html.touch): the game fills the screen like a mobile game, the arcade page frame
   (orange page, header, footer) is gone; the legal links are in the settings */
html.touch, html.touch body { background: #000; }
html.touch body { padding: 0; min-height: 100vh; min-height: 100dvh; overflow: hidden; overscroll-behavior: none; }
html.touch .top, html.touch .hint { display: none; }
html.touch .device { width: 100%; height: 100vh; height: 100dvh; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #000; }
html.touch .screen { aspect-ratio: auto; width: 100%; height: 100%; border: 0; border-radius: 0; }
/* safe areas (notch, rounded corners, home bar): HUD and overlays stay inside */
html.touch .hud, html.touch .photo-ui, html.touch .cp-run, html.touch .couch-run, html.touch .ov { inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
html.touch .padtoast { top: calc(4.6em + env(safe-area-inset-top, 0px)); }
html.touch .h-pause { width: 3em; height: 3em; }
html.touch .cp-emo-btn { width: 3.2em; height: 3.2em; }
html.touch .stages button, html.touch .skarr, html.touch .lbtn { min-height: 40px; }
html.touch .tog, html.touch .segs button { min-height: 34px; }
html.touch .ov.title .fine { display: none; }
/* "tap for fullscreen / hold your phone sideways" */
.fs-chip { position: absolute; z-index: 3; left: 50%; top: 1.2em; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .15em; padding: .5em 1.3em; border: 1px solid var(--gold); border-radius: 999px; background: rgba(1, 10, 19, .86); color: var(--gold2); font: 800 clamp(13px, 2.4cqh, 18px) var(--ff-c); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 18px rgba(255, 150, 60, .35); animation: fsPulse 2.4s ease-in-out infinite; white-space: nowrap; }
.fs-chip small { font-size: .72em; letter-spacing: .06em; text-transform: none; opacity: .85; font-weight: 700; }
.fs-chip[hidden] { display: none; }
@media (orientation: landscape) { .fs-chip small { display: none; } }
@keyframes fsPulse { 50% { box-shadow: 0 0 26px rgba(255, 150, 60, .65); } }
@media (prefers-reduced-motion: reduce) { .fs-chip { animation: none; } }
/* narrow screens (phones held upright): the title bar never gets wider than the screen, maps wrap into rows */
@container (max-width: 520px) {
  .fs-chip { top: .8em; } .couch-hint { text-align: center; }
  .ov.title .tbar { width: 100%; box-sizing: border-box; }
  .ov.title .stages { flex-wrap: wrap; }
  .tbtns .lbtn { letter-spacing: .05em; font-size: clamp(12px, 3.5cqw, 16px); padding-left: .35em; padding-right: .35em; }
  .tbtns .lbtn.big { letter-spacing: .16em; font-size: clamp(15px, 5cqw, 22px); }
}

/* couch co-op: lobby slots and the per player panels in the run */
#ov-couch .cp { display: flex; flex-direction: column; align-items: center; }
.cc-slots { list-style: none; margin: 1.6cqh auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; width: min(56em, 100%); }
.cc-slots li { --pc: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35em; padding: .8em .5em; min-height: 11em; border: 1px solid #2a2a33; border-top: 3px solid var(--pc); background: rgba(1, 10, 19, .82); font-size: clamp(11px, 1.9cqh, 16px); }
.cc-slots li.empty { opacity: .8; border-style: dashed; border-top-style: solid; }
.cc-slots li > b { font: 800 1.05em var(--ff-c); letter-spacing: .14em; text-transform: uppercase; color: var(--pc); }
.cc-hero { display: flex; align-items: center; gap: .3em; }
.cc-hero img { width: 4.2em; height: 4.2em; object-fit: cover; border: 2px solid var(--pc); }
.cc-arr { width: 1.7em; height: 2.6em; padding: 0 0 .1em; border: 1px solid var(--gold3); background: rgba(1, 10, 19, .8); color: var(--gold2); font: 700 1.4em/1 var(--ff-d); cursor: pointer; }
.cc-slots em { font-style: normal; font-weight: 700; color: #fff3d6; }
.cc-dev { font-size: .85em; color: #b8b1a2; }
.cc-x { font: 700 .8em var(--ff-c); letter-spacing: .08em; padding: .2em .6em; border: 1px solid #463714; background: none; color: #a09b8c; cursor: pointer; }
.cc-join { text-align: center; color: #ffd9a0; font-weight: 700; }
@container (max-width: 620px) { .cc-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-slots li { min-height: 0; } }
.couch-run { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 3; font-size: clamp(10px, 1.5cqh, 15px); color: var(--gold2); }
.couch-run.on { display: block; }
.cc-panels { position: absolute; left: 1em; top: 20%; display: flex; flex-direction: column; gap: .5em; width: 14.5em; }
.ccp { --pc: var(--gold); padding: .3em .4em; background: rgba(1, 10, 19, .8); border: 1px solid #2a2a33; border-left: 3px solid var(--pc); }
.ccp-h { display: flex; align-items: center; gap: .45em; }
.ccp-h img { width: 2.2em; height: 2.2em; object-fit: cover; border: 1px solid var(--pc); }
.ccp-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25em; }
.ccp b { font: 700 .95em var(--ff-c); letter-spacing: .06em; color: var(--pc); }
.ccp i { display: block; height: .45em; background: #12161c; border: 1px solid #000; overflow: hidden; }
.ccp em { display: block; height: 100%; background: linear-gradient(180deg, var(--hp2), var(--hp)); transform-origin: left; }
.ccp[data-st="down"] { border-color: #e0452e; animation: cpdown 1s ease-in-out infinite; }
.ccp[data-st="down"] em { background: #e0452e; }
.ccp[data-st="out"], .ccp[data-st="gone"] { opacity: .4; }
.ccp-c { display: none; flex-direction: column; gap: .25em; margin-top: .35em; pointer-events: auto; }
.ccp.offer .ccp-c { display: flex; animation: cpin .25s ease-out; }
.ccc { display: flex; align-items: center; gap: .4em; padding: .2em .35em; border: 1px solid #8a8f96; background: linear-gradient(180deg, #16202e, #0a1018); color: var(--gold2); font: 700 .92em var(--ff-c); cursor: pointer; text-align: left; }
.ccc.gold { border-color: var(--gold); }
.ccc.prism { border-color: #c9a0ff; }
.ccc img { width: 1.7em; height: 1.7em; }
.ccc b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccc small { color: #b8b1a2; }
.ccc .key { flex: none; display: inline-flex; }

/* ---------- prestige (15.10.2026): frames, banners, hero mastery emblem, founder number, Kerbholz, mastery tiers ---------- */
.fr { --fr: linear-gradient(145deg, #e0a56a, #7a4a22 60%, #c58d52); --frs: 0 0 0 1px #000; }
.fr.f_silver { --fr: linear-gradient(145deg, #ffffff, #8d97a3 55%, #e3e8ee); }
.fr.f_rune { --fr: conic-gradient(#74c6ff, #15304d, #74c6ff, #15304d, #74c6ff); --frs: 0 0 0 1px #000, 0 0 16px rgba(116, 198, 255, .55); }
.fr.f_neon { --fr: linear-gradient(145deg, #ffffff, #ff5e00 60%, #ffd0a8); --frs: 0 0 0 1px #000, 0 0 18px rgba(255, 94, 0, .7); }
.fr.f_blood { --fr: conic-gradient(#ff4a3a, #3a0505, #ff4a3a, #3a0505, #ff4a3a); --frs: 0 0 0 1px #000, 0 0 16px rgba(255, 60, 40, .55); }
.fr.f_gold { --fr: linear-gradient(145deg, #fff3c4, #d4a13a 40%, #6f4a10 66%, #f3d58c); --frs: 0 0 0 1px #000, 0 0 20px rgba(243, 215, 147, .65); }
.crest.fr { border: 0; padding: clamp(3px, .7cqh, 6px); background: var(--fr); box-shadow: var(--frs), 0 0 0 3px var(--navy), 0 0 24px rgba(194, 39, 28, .4); }
.ov.over.win .crest.fr { box-shadow: var(--frs), 0 0 0 3px var(--navy), 0 0 30px rgba(255, 200, 90, .55); }
.crest.fr img { border-radius: 50%; }
.crest.fr::after { inset: clamp(3px, .7cqh, 6px); border-radius: 50%; }
.trow img.fr { border: 0; padding: 2px; border-radius: 50%; background: var(--fr); box-shadow: var(--frs); }
.bnr { --bn: linear-gradient(120deg, #0f1724, #1d2c40 55%, #0b0f16); }
.bnr.bn_ember { --bn: radial-gradient(120% 140% at 85% 110%, rgba(255, 122, 26, .55), transparent 60%), linear-gradient(120deg, #1a0e07, #2c160a 60%, #120905); }
.bnr.bn_frost { --bn: radial-gradient(120% 140% at 15% -10%, rgba(180, 225, 255, .45), transparent 60%), linear-gradient(120deg, #0d1a26, #22394d 60%, #0b131b); }
.bnr.bn_blood { --bn: radial-gradient(90% 120% at 80% 0%, rgba(224, 37, 27, .55), transparent 60%), linear-gradient(120deg, #170506, #2a0909 60%, #0e0304); }
.bnr.bn_raven { --bn: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 18px), linear-gradient(120deg, #0b0c10, #1b1e27 60%, #08090c); }
.bnr.bn_founder { --bn: radial-gradient(100% 140% at 50% 120%, rgba(243, 215, 147, .5), transparent 60%), linear-gradient(120deg, #1d1609, #3a2b10 60%, #140f06); }
.res-head.bnr { background: var(--bn); padding: 1.2cqh 1.6cqw; border: 1px solid var(--gold3); box-shadow: inset 0 0 0 1px #000; }
.res-who { display: flex; align-items: center; flex-wrap: wrap; gap: .25em .55em; margin: .45em 0 0; font-size: clamp(12px, 2cqh, 17px); }
.res-who[hidden] { display: none; }
.res-who > b { font: 700 1em var(--ff-d); color: var(--gold2); }
.res-who .ttl { color: #e8cf94; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78em; }
.emb { --e0: #9aa1ab; --e1: #3a3f48; --hx: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); position: relative; display: inline-grid; place-items: center; flex: none; width: 1.7em; height: 1.55em; clip-path: var(--hx); background: linear-gradient(150deg, var(--e0), var(--e1)); vertical-align: middle; margin-right: .3em; }
.emb::before { content: ""; position: absolute; inset: 2px; clip-path: var(--hx); background: radial-gradient(circle at 50% 35%, #2c2418, #0d0b08); }
.emb b { position: relative; font: 900 .78em/1 var(--ff-d); color: var(--e0); }
.res-who .emb b, .trow .emb b, .cp-players .emb b { font-family: var(--ff-d); }
.emb-bronze { --e0: #e0a458; --e1: #7a4a22; }
.emb-silver { --e0: #ffffff; --e1: #8d97a3; }
.emb-gold { --e0: #ffe3a0; --e1: #a8761e; filter: drop-shadow(0 0 4px rgba(255, 210, 122, .55)); }
.emb-runeglow { --e0: #ffd27a; --e1: #ff7a1a; background: linear-gradient(150deg, #ffd27a, #ff7a1a, #ffd27a); background-size: 200% 200%; animation: embglow 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 122, 26, .8)); }
@keyframes embglow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.founder { display: inline-flex; align-items: center; padding: .2em .65em; border-radius: 99px; background: linear-gradient(90deg, #6f4a10, #e0b04a, #6f4a10); color: #1a1206; font: 700 .72em/1 var(--ff-c); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dkerb { display: flex; align-items: center; flex-wrap: wrap; gap: .15em .7em; margin-top: .25em; font-size: clamp(9px, 1.45cqh, 12px); font-weight: 700; letter-spacing: .06em; color: #8c8a84; }
.dkerb .dk-life { font-style: normal; color: var(--gold2); }
.dkerb .dk-life:empty { display: none; }
.tierp { display: inline-block; padding: .1em .55em; border-radius: 2px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .92em; color: #e3e6ea; background: #4a4f57; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.tierp.t2 { color: #1a0f05; background: linear-gradient(90deg, #7a4a22, #e0a458, #b0703a); }
.tierp.t3 { color: #1a1d22; background: linear-gradient(90deg, #8d97a3, #ffffff, #dfe6ee); }
.tierp.t4 { color: #2a1a02; background: linear-gradient(90deg, #a8761e, #ffe3a0, #e0b04a); box-shadow: 0 0 10px rgba(255, 210, 122, .45); }
.tierp.t5 { color: #fff3d6; background: linear-gradient(90deg, #2a2622, #ff7a1a, #ffd27a, #ff7a1a, #2a2622); background-size: 200% 100%; animation: embglow 2.2s linear infinite; box-shadow: 0 0 12px rgba(255, 122, 26, .6); }
.tierp.skin { color: var(--gold2); background: rgba(1, 10, 19, .8); box-shadow: inset 0 0 0 1px var(--gold3); }
.tierp.skin.r-rare { color: #8fd0ff; } .tierp.skin.r-epic { color: #d8a8ff; } .tierp.skin.r-legendary { color: #ffd27a; box-shadow: inset 0 0 0 1px #c8aa6e, 0 0 10px rgba(255, 210, 122, .4); }
.tierp.up { animation: recIn .6s cubic-bezier(.2, 1.8, .4, 1) .3s both; }
.prest { display: flex; flex-direction: column; gap: .35em; }
.pup { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: clamp(11px, 1.9cqh, 16px); color: var(--gold2); }
.pup .tierp { width: 1.6em; height: 1.1em; padding: 0; }
.trow .tn b { display: flex; align-items: center; }
.cp-players b .emb { font-size: .9em; }
@media (prefers-reduced-motion: reduce) { .emb-runeglow, .tierp.t5, .tierp.up { animation: none; } }

/* ===================== 19.10.2026: game depth - abilities (dodge leap, ultimate), danger levels ===================== */
/* ability buttons: bottom right above the minimap; real buttons for touch and mouse, key hints for keyboard and pad */
.h-abil { position: absolute; right: 1.2em; bottom: calc(1em + 9.6em + 1.6em); display: flex; flex-direction: column; align-items: center; gap: 1.2em; transition: opacity .2s; }
.h-abil.off { opacity: .3; }
.ab { position: relative; pointer-events: auto; padding: 0; border-radius: 50%; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; font: inherit; color: var(--gold2); }
.ab:focus-visible { outline: 3px solid var(--hex); outline-offset: 3px; }
.ab-key { position: absolute; right: -.5em; bottom: -.45em; font: 800 .82em var(--ff-c); line-height: 1; pointer-events: none; white-space: nowrap; }
.ab-key .pk { display: inline-block; padding: .18em .4em; border: 1px solid var(--gold3); border-radius: 3px; background: var(--navy); color: var(--gold2); font: inherit; }
.ab-key.pg-empty { display: none; }
html[data-input="touch"] .ab-key { display: none; }
.ab-ult { width: 4.8em; height: 4.8em; border: 0; background: radial-gradient(circle, #10161f 0 62%, rgba(1, 10, 19, .92) 63%); box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .55); }
.ab-ult img { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; border-radius: 50%; object-fit: cover; filter: grayscale(.85) brightness(.55); transition: filter .25s; }
.ab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ab-ring circle { fill: none; stroke-width: 8; }
.ab-ring .bg { stroke: rgba(120, 90, 40, .45); }
.ab-ring .fg { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .15s linear, stroke .2s; }
.ab-pct { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 italic 1.05em var(--ff-c); color: var(--gold2); text-shadow: 0 1px 3px #000, 0 0 6px #000; pointer-events: none; font-variant-numeric: tabular-nums; }
.ab-ult.ready img { filter: none; }
.ab-ult.ready .fg { stroke: #ffd27a; }
.ab-ult.ready { animation: ultGlow 1.4s ease-in-out infinite; }
.ab-ult.active img { filter: saturate(1.3) brightness(1.15); }
.ab-ult.active .fg { stroke: var(--hex); }
.ab-ult.active { box-shadow: 0 0 0 1px #000, 0 0 22px rgba(10, 200, 185, .75); }
.ab-ult.pop { animation: ultPop .6s cubic-bezier(.2, 1.6, .4, 1), ultGlow 1.4s ease-in-out .6s infinite; }
@keyframes ultGlow { 50% { box-shadow: 0 0 0 1px #000, 0 0 26px rgba(255, 190, 80, .9), 0 0 6px rgba(255, 230, 160, .9); } }
@keyframes ultPop { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.ab-dash { width: 3.5em; height: 3.5em; display: grid; place-items: center; border: 1px solid var(--gold3); background: rgba(1, 10, 19, .88); color: #8f8a7e; box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .5); }
.ab-dash svg { position: relative; width: 1.75em; height: 1.75em; }
.ab-dash .ab-cd { position: absolute; inset: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); transform-origin: top; transform: scaleY(0); pointer-events: none; }
.ab-dash.ready { color: #e9fbfb; border-color: var(--hex); box-shadow: 0 0 0 1px #000, 0 0 12px rgba(10, 200, 185, .45); }
.ab-dash .ab-key { right: auto; left: 50%; bottom: -1.05em; transform: translateX(-50%); }
.ab-ult .ab-key { right: auto; left: 50%; bottom: -.9em; transform: translateX(-50%); }
.ab:active { transform: scale(.94); }
html.touch .ab-ult { width: 5.8em; height: 5.8em; }
html.touch .ab-dash { width: 4.6em; height: 4.6em; }
html.touch .h-abil { right: 1.4em; }
@container (max-height: 420px) { .h-abil { bottom: calc(1em + 7.5em + .8em); } }
@container (max-width: 520px) { .h-abil { right: .7em; bottom: 9.6em; gap: .6em; } }
@media (prefers-reduced-motion: reduce) { .ab-ult.ready, .ab-ult.pop { animation: none; } }
/* ultimate callout */
.callout.ult { top: 26%; color: #ffe3a8; font-size: clamp(18px, 5cqh, 46px); text-shadow: 0 3px 6px #000, 0 0 24px rgba(255, 190, 80, .85); }

/* danger level selector on the title (under the battlefields) */
.heatsel { margin-top: 1.2cqh; max-width: 34em; }
.heatsel .hrow { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; }
.hstep { width: 2em; height: 2em; padding: 0; border: 1px solid #463714; background: rgba(1, 10, 19, .78); color: var(--gold2); font: 800 clamp(13px, 2.2cqh, 18px)/1 var(--ff-c); cursor: pointer; }
.hstep:hover:not(:disabled) { border-color: var(--gold); }
.hstep:disabled { opacity: .35; cursor: default; }
.hval { min-width: 5.6em; text-align: center; font: 800 clamp(12px, 2.1cqh, 17px) var(--ff-c); letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); text-shadow: 0 1px 2px #000; }
.heatsel[data-n="0"] .hval { color: #a09b8c; }
.hpips { display: flex; gap: .3em; margin-left: .3em; }
.hpips button { width: .78em; height: .78em; padding: 0; border: 1px solid #3a2e14; background: rgba(1, 10, 19, .8); transform: rotate(45deg); cursor: pointer; font-size: clamp(10px, 1.8cqh, 15px); }
.hpips button.open { border-color: var(--gold3); }
.hpips button.on { background: linear-gradient(135deg, #ffcf6a, #ff6a1a); border-color: #ffd98a; box-shadow: 0 0 6px rgba(255, 140, 50, .8); }
.hpips button:disabled { cursor: default; opacity: .45; }
.hpips button.on:disabled { opacity: 1; }
.htxt { margin: .4em 0 0; font: 700 clamp(11px, 1.8cqh, 15px) var(--ff-c); letter-spacing: .04em; color: #e6dccb; text-shadow: 0 1px 2px #000, 0 0 6px #000; }
.heatsel:not([data-n="0"]) .htxt { color: #ffd9a0; }
.hlock { margin: .2em 0 0; font: 600 clamp(10px, 1.6cqh, 13px) var(--ff-c); letter-spacing: .04em; color: #a09b8c; text-shadow: 0 1px 2px #000; }
.hlock[hidden] { display: none; }
.heatsel.daily .hrow { opacity: .45; }
@container (max-height: 420px) { .heatsel { margin-top: .6cqh; } .hlock { display: none; } }
@container (max-width: 520px) { .heatsel { margin: .6cqh auto 0; text-align: center; } .heatsel .hrow { justify-content: center; } .hpips { display: none; } .hlock { display: none; } .heatsel .tlabel { display: none; } }
/* results: the danger level line and a new level opened by this win */
.res-heat { margin-top: .5em; display: flex; flex-wrap: wrap; gap: .3em .9em; align-items: baseline; font: 700 clamp(12px, 2cqh, 16px) var(--ff-c); letter-spacing: .06em; }
.res-heat[hidden] { display: none; }
.res-heat b { color: #ffb347; text-transform: uppercase; letter-spacing: .14em; }
.res-heat span { color: #fff3d6; }
.res-heat.up span { padding: .15em .7em; border: 1px solid #ffcf6a; background: linear-gradient(90deg, rgba(80, 50, 10, .9), rgba(20, 12, 4, .9)); box-shadow: 0 0 14px rgba(255, 190, 80, .5); }
.res-stats div.heat b { color: #ffb347; }
/* co-op room: the host's danger level */
.cp-heat { display: flex; align-items: center; gap: .5em; margin: .6em 0 .2em; font: 700 clamp(11px, 1.8cqh, 15px) var(--ff-c); letter-spacing: .05em; color: #ffd9a0; }
.cp-heat .hstep[hidden] { display: none; }

/* 20.10.2026 Winter Nights: the event night switch on the title, the Nebelsplitter chip in the HUD, the results' event
   and clan blocks, the co-op room switch and the clan tags (no countdowns anywhere) */
.nightsel { display: flex; align-items: center; gap: .7em; margin-top: 1cqh; padding: .45em .9em .45em .55em; max-width: 34em; border: 1px solid #2b4560; background: linear-gradient(100deg, rgba(6, 16, 30, .9), rgba(10, 28, 44, .82)); color: #cfe6f7; text-align: left; cursor: pointer; font: 700 clamp(11px, 1.9cqh, 15px) var(--ff-c); letter-spacing: .05em; }
.nightsel[hidden] { display: none; }
.nightsel b { display: block; color: #a9d8ff; text-transform: uppercase; letter-spacing: .12em; }
.nightsel small { display: block; color: #8fa9bf; font-weight: 600; }
.nightsel.on { border-color: #7fd8ff; box-shadow: 0 0 0 1px #000, 0 0 16px rgba(127, 216, 255, .28); }
.nightsel.on b { color: #e6f6ff; text-shadow: 0 0 8px rgba(127, 216, 255, .7); }
.nightsel:disabled { opacity: .5; cursor: default; }
.nightsel:focus-visible, .cp-night:focus-visible { outline: 2px solid #7fd8ff; outline-offset: 2px; }
.nmoon { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #f4fbff 0 28%, #b9dcf2 52%, #5f8db0 100%); box-shadow: 0 0 12px rgba(160, 220, 255, .55); position: relative; }
.nmoon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 72% 30%, rgba(6, 16, 30, .92) 0 38%, transparent 40%); }
.nightsel:not(.on) .nmoon { filter: grayscale(.8) brightness(.7); box-shadow: none; }
@container (max-height: 420px) { .nightsel { margin-top: .5cqh; padding: .3em .7em .3em .4em; } .nightsel small { display: none; } }
@container (max-width: 520px) { .nightsel { margin: .6cqh auto 0; } .nightsel small { display: none; } }
/* HUD: Nebelsplitter picked up this run */
.h-chip.h-ev { min-width: 3.6em; border-color: #3d6a8a; }
.h-chip.h-ev[hidden] { display: none; }
.h-chip.h-ev svg { color: #9fd8ff; filter: drop-shadow(0 0 4px rgba(127, 216, 255, .8)); }
.h-chip.h-ev b { color: #dff4ff; }
.h-chip.h-ev.pop { animation: evpop .45s ease-out; }
@keyframes evpop { 0% { transform: scale(1); } 35% { transform: scale(1.18); box-shadow: 0 0 14px rgba(127, 216, 255, .8); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .h-chip.h-ev.pop { animation: none; } }
/* results: event block */
.res-ev, .res-clan { margin-top: .7em; padding: .6em .8em .7em; border: 1px solid #22384c; background: linear-gradient(110deg, rgba(5, 14, 26, .92), rgba(9, 24, 38, .86)); font-family: var(--ff-c); }
.res-ev[hidden], .res-clan[hidden] { display: none; }
.res-ev.night { border-color: #3f7395; box-shadow: inset 0 0 24px rgba(127, 216, 255, .08); }
.ev-h, .cl-h { display: flex; align-items: center; gap: .55em; flex-wrap: wrap; }
.ev-h b, .cl-h b { color: #bfe6ff; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(12px, 2cqh, 16px); }
.ev-h span { color: #8fa9bf; font-weight: 600; font-size: clamp(11px, 1.7cqh, 14px); }
.ev-moon { width: 1.1em; height: 1.1em; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #f4fbff 0 30%, #9fc8e6 100%); box-shadow: 0 0 8px rgba(160, 220, 255, .6); flex: none; }
.ev-row { display: flex; flex-wrap: wrap; gap: .4em 1.4em; margin-top: .45em; }
.ev-st { display: flex; flex-direction: column; min-width: 5em; }
.ev-st span { color: #8fa9bf; font-weight: 600; font-size: clamp(10px, 1.6cqh, 13px); letter-spacing: .06em; text-transform: uppercase; }
.ev-st b { color: #e6f6ff; font-weight: 800; font-size: clamp(16px, 2.8cqh, 24px); font-variant-numeric: tabular-nums; }
.ev-st.pts b { color: #9fe0ff; text-shadow: 0 0 10px rgba(127, 216, 255, .55); }
.ev-note { margin: .35em 0 0; color: #b9cfe0; font-weight: 600; font-size: clamp(11px, 1.7cqh, 14px); }
.ev-note.ready { color: #ffe3a8; }
.ev-note.dim { color: #7f93a4; }
.ev-quests { margin-top: .5em; }
.ev-quests .qbar i { background: linear-gradient(90deg, #12324a, #7fd8ff); }
/* results: clan block */
.cl-ico { width: .9em; height: 1.1em; background: linear-gradient(180deg, #e0b04a, #7a4a22); clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); flex: none; }
.cl-h b { color: #ffe3a8; }
.cl-dmg { display: flex; align-items: baseline; justify-content: space-between; gap: .8em; margin-top: .35em; color: #cfc6b4; font-weight: 600; font-size: clamp(11px, 1.8cqh, 15px); }
.cl-dmg b { color: #ffb347; font-size: 1.3em; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.cl-bar { position: relative; height: .6em; margin-top: .4em; background: #0a0d10; border: 1px solid #000; box-shadow: 0 0 0 1px #3a2e14; }
.cl-bar i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #5a2a10, #ffb347); transition: transform .9s ease-out; }
.cl-bar em { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #463714; }
.cl-bar em.done { background: #ffd98a; }
/* clan tags */
.res-who .clan { color: #b9d3e6; font-weight: 700; font-size: .8em; letter-spacing: .06em; }
.trow .tclan, .cp-players .cp-clan { display: inline-block; margin-top: .1em; padding: 0 .4em; color: #dbe9f4; background: var(--bn, linear-gradient(90deg, #1a2433, #0b121b)); border-left: 3px solid #6f86c9; font-weight: 700; font-size: .85em; letter-spacing: .04em; }
/* co-op room: the host's event night switch */
.cp-night { display: flex; align-items: center; gap: .55em; margin: .6em 0 .2em; padding: .3em .7em .3em .4em; border: 1px solid #2b4560; background: rgba(6, 16, 30, .85); color: #a9d8ff; font: 700 clamp(11px, 1.8cqh, 15px) var(--ff-c); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cp-night[hidden] { display: none; }
.cp-night .nmoon { width: 1.2em; height: 1.2em; }
.cp-night.on { border-color: #7fd8ff; color: #e6f6ff; }
.cp-night:not(.on) .nmoon { filter: grayscale(.8) brightness(.7); box-shadow: none; }
.cp-night:disabled { cursor: default; }
/* 20.10.2026 all languages: the language list in the settings (20 languages, each in its own name) */
.langbtn { min-width: 9em; text-transform: none !important; letter-spacing: .02em !important; }
.langgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: 3px; padding: .45em .8em; border: 1px solid #1e2328; border-top: 0; background: rgba(1, 10, 19, .7); max-height: 34cqh; overflow-y: auto; }
.langgrid[hidden] { display: none; }
.langgrid button { text-transform: none; letter-spacing: .02em; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#btn-langs { min-width: 3.2em; }

/* ---------- editions (22.10.2026): tabs over the maps, trial and locked maps, the note, hazard warnings ---------- */
.edsel { display: flex; flex-wrap: wrap; gap: .3em; margin: 0 0 .35em; }
.edsel[hidden] { display: none; }
.edsel button { display: inline-flex; flex-direction: row; align-items: baseline; gap: .45em; font: 700 clamp(9px, 1.5cqh, 13px) var(--ff-c); letter-spacing: .1em; text-transform: uppercase; color: #8f8a7c; padding: .25em .7em; border: 1px solid #2c3036; border-bottom-width: 2px; background: rgba(1, 10, 19, .7); cursor: pointer; transition: color .15s, border-color .15s; }
.edsel button small { font: 600 .78em var(--ff-c); letter-spacing: .08em; color: #6f7a86; }
.edsel button:hover { color: var(--gold2); border-color: var(--gold3); }
.edsel button.on { color: var(--gold2); border-color: var(--gold); border-bottom-color: var(--orange); background: linear-gradient(180deg, rgba(42, 33, 18, .9), rgba(10, 8, 5, .9)); }
.edsel button.ed-newyork.on { border-bottom-color: #c03cff; }
.edsel button.ed-grimholm.on { border-bottom-color: #6fb8ff; }
.stages button small { display: block; font: 600 .74em var(--ff-c); letter-spacing: .08em; color: #8fd6a0; margin-top: .1em; }
.stages button.trial { border-color: #3c6a48; }
.stages button.lock { color: #6a665c; border-style: dashed; cursor: not-allowed; }
.stages button.lock { position: relative; padding-left: 1.9em; }
.stages button.lock::before { content: ""; position: absolute; left: .7em; top: 50%; width: .62em; height: .48em; margin-top: -.1em; border-radius: .08em; background: currentColor; opacity: .8; }
.stages button.lock::after { content: ""; position: absolute; left: .82em; top: 50%; width: .38em; height: .36em; margin-top: -.42em; border: 2px solid currentColor; border-bottom: 0; border-radius: .25em .25em 0 0; opacity: .8; }
.ednote { margin: .4em 0 0; max-width: 40em; font: 500 clamp(11px, 1.7cqh, 14px)/1.35 var(--ff-b); color: #d9cfb8; }
.ednote[hidden] { display: none; }
.callout.warn { top: 24%; color: #ffd27a; font-size: clamp(16px, 4cqh, 40px); text-shadow: 0 3px 6px #000, 0 0 20px rgba(255, 120, 40, .85); }
/* editions: a compact map row while an edition tab is open, the long feature note gives way */
.tleft.has-ed .fine { display: none; }
.tleft.has-ed .stages button { padding: .32em .75em; font-size: clamp(10px, 1.6cqh, 14px); }
.tleft.has-ed .stages button small { display: inline; margin: 0 0 0 .5em; }
.tleft.has-ed .stages button.lock { padding-left: 1.9em; }
