/* Slash Tournament — promo site. Dark by design: the art is night and fire. */
:root {
    --bg: #06080f;
    --bg-2: #0a0f1d;
    --panel: #0e1526;
    --panel-2: #131c33;
    --line: rgba(160, 180, 230, .14);
    --ink: #eef1f8;
    --muted: #9aa6c0;
    --gold: #f3c969;
    --gold-2: #ffe7a3;
    --gold-deep: #b9832a;
    --ember: #ff6a2b;
    --p1: #ff5d5d;
    --p2: #4fb6ff;
    --violet: #b08cff;
    --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.65 var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; color: var(--gold); }
::selection { background: rgba(243, 201, 105, .35); }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; background: var(--gold); color: #1a1206; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
    margin: 0 0 14px;
    font: 700 12px/1.2 var(--sans);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before {
    content: ''; width: 28px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.h2 {
    margin: 0 0 22px;
    font: 700 clamp(32px, 4.6vw, 56px)/1.08 var(--display);
    letter-spacing: .01em;
    text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #d5dbea; margin: 0 0 16px; max-width: 60ch; }
.lead.center { margin-inline: auto; text-align: center; }
.body { color: var(--muted); margin: 0; max-width: 60ch; }

/* ------------------------------ Nav ------------------------------ */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    display: flex; align-items: center; gap: 24px;
    padding: 14px var(--gutter);
    transition: background .35s, border-color .35s, padding .35s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(6, 8, 15, .78);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-color: var(--line);
    padding-block: 10px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: .08em; }
.nav-brand b { color: var(--gold); font-weight: 700; }
.nav-brand img { filter: drop-shadow(0 0 10px rgba(255, 140, 50, .45)); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
    text-decoration: none; color: var(--muted);
    font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    padding: 8px 0; position: relative; transition: color .2s;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.lang {
    display: flex; padding: 3px; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.lang button {
    appearance: none; border: 0; cursor: pointer;
    min-width: 42px; padding: 7px 10px; border-radius: 999px;
    font: 700 12px/1 var(--sans); letter-spacing: .12em;
    background: transparent; color: var(--muted);
    transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ------------------------------ Hero ------------------------------ */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    overflow: hidden; isolation: isolate;
    padding: 110px var(--gutter) 90px;
}
.hero-bg {
    position: absolute; inset: -4%; z-index: -3;
    background: url(assets/art/arena.webp) center 38% / cover no-repeat;
    animation: kenburns 26s ease-in-out infinite alternate;
    transform-origin: 50% 30%;
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1) translateY(1.5%); } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-vignette {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 45% at 50% 52%, rgba(6, 8, 15, .62), transparent 70%),
        linear-gradient(180deg, rgba(6, 8, 15, .55) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
}
.hero-content { text-align: center; max-width: 900px; }

.hero-logo { position: relative; width: 148px; height: 148px; margin: 0 auto 18px; animation: logo-in 1.1s cubic-bezier(.2, .9, .25, 1.2) both; }
.hero-logo img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 26px rgba(255, 120, 40, .55)); }
.hero-logo-ring {
    position: absolute; inset: -18%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 60, .35), transparent 62%);
    animation: pulse 3.6s ease-in-out infinite;
}
@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }

.hero-kicker { animation: rise .8s .5s both; }
.hero-kicker::after { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

.hero-title {
    position: relative; margin: 6px 0 18px;
    font-family: var(--display); font-weight: 900; line-height: .92;
    display: flex; flex-direction: column; align-items: center;
}
.hero-title-slash {
    font-size: clamp(64px, 13vw, 168px); letter-spacing: .06em;
    background: linear-gradient(180deg, #fff6d8 0%, var(--gold) 48%, var(--gold-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 0 rgba(60, 30, 0, .6)) drop-shadow(0 0 40px rgba(255, 140, 40, .35));
    animation: title-in 1s .75s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-title-tournament {
    font-size: clamp(22px, 4.4vw, 54px); letter-spacing: .42em; margin-right: -.42em;
    color: var(--ink); text-shadow: 0 2px 24px rgba(0, 0, 0, .8);
    animation: title-in 1s .95s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes title-in { from { opacity: 0; letter-spacing: .6em; filter: blur(8px); } to { opacity: 1; } }
.hero-cut {
    position: absolute; left: -8%; right: -8%; top: 44%; height: 4px;
    background: linear-gradient(90deg, transparent, #fff 30%, #ffd27a 60%, transparent);
    box-shadow: 0 0 18px 4px rgba(255, 180, 80, .7);
    transform: rotate(-9deg) scaleX(0); transform-origin: 0 50%;
    animation: cut 1.15s .55s cubic-bezier(.7, 0, .2, 1) both;
    pointer-events: none;
}
@keyframes cut {
    0% { transform: rotate(-9deg) scaleX(0); opacity: 1; }
    45% { transform: rotate(-9deg) scaleX(1); opacity: 1; }
    100% { transform: rotate(-9deg) scaleX(1) translateX(10%); opacity: 0; }
}
.hero-tagline {
    margin: 0 0 30px; font: 600 clamp(18px, 2.2vw, 24px)/1.4 var(--display);
    letter-spacing: .05em; color: #e6e9f2; text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
    animation: rise .8s 1.2s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; animation: rise .8s 1.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.soon-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px;
    font: 700 13px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
    color: #1a1206;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #d69d3b);
    box-shadow: 0 8px 30px rgba(243, 180, 70, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.soon-pill i { width: 8px; height: 8px; border-radius: 50%; background: #a8230e; box-shadow: 0 0 0 0 rgba(168, 35, 14, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(168, 35, 14, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 35, 14, 0); } }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px; text-decoration: none;
    font: 700 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
    border: 1px solid rgba(243, 201, 105, .45); color: var(--gold-2);
    background: rgba(6, 8, 15, .45); backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s, transform .2s;
}
.btn-ghost::after { content: '↓'; letter-spacing: 0; transition: transform .2s; }
.btn-ghost:hover { background: rgba(243, 201, 105, .12); border-color: var(--gold); }
.btn-ghost:hover::after { transform: translateY(3px); }

.scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(238, 241, 248, .35);
    animation: rise .8s 1.8s both;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------- Sections ---------------------------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .kicker::after { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

.reveal { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(34px); }

/* --------------------------- Tournament --------------------------- */
.tournament {
    background:
        radial-gradient(ellipse 50% 60% at 85% 30%, rgba(79, 182, 255, .08), transparent 70%),
        radial-gradient(ellipse 50% 60% at 10% 70%, rgba(255, 93, 93, .07), transparent 70%);
}
.tournament-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.versus {
    position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    padding: 34px 26px 60px; border-radius: 22px;
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    transition-delay: .15s;
}
.versus::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 93, 93, .16), transparent 45%, transparent 55%, rgba(79, 182, 255, .16));
}
.versus-side { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.versus-tag { font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.versus-num { font: 900 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: .02em; }
.p1 .versus-num { color: var(--p1); text-shadow: 0 0 24px rgba(255, 93, 93, .55); }
.p2 .versus-num { color: var(--p2); text-shadow: 0 0 24px rgba(79, 182, 255, .55); }
.versus-mid span {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    font: 900 22px/1 var(--display); color: #1a1206;
    background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 50%, var(--gold-deep));
    box-shadow: 0 0 0 6px rgba(243, 201, 105, .12), 0 0 40px rgba(243, 201, 105, .45);
}
.versus.in .versus-mid span { animation: vs-beat 2.4s ease-in-out infinite; }
@keyframes vs-beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.14) rotate(-6deg); } 16% { transform: scale(1); } }
.versus-screen {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
    white-space: nowrap;
}
.versus-screen::before, .versus-screen::after { content: '—'; margin: 0 10px; opacity: .5; }

/* ------------------------------ Flow ------------------------------ */
.flow { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(56px, 8vw, 110px); }
.steps::before {
    content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px;
    background: linear-gradient(180deg, transparent, rgba(243, 201, 105, .4) 8%, rgba(243, 201, 105, .4) 92%, transparent);
}
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.step::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    transform: rotate(45deg); background: var(--bg-2); border: 2px solid var(--gold);
    box-shadow: 0 0 16px rgba(243, 201, 105, .6);
}
.step:nth-child(even) .step-art { order: 2; }
.step-copy { max-width: 440px; }
.step:nth-child(odd) .step-copy { justify-self: start; }
.step:nth-child(even) .step-copy { justify-self: end; }
.step-num {
    display: block; margin-bottom: 4px;
    font: 900 64px/1 var(--display); color: transparent;
    -webkit-text-stroke: 1.5px rgba(243, 201, 105, .55);
}
.step h3 { margin: 0 0 12px; font: 700 clamp(26px, 2.8vw, 34px)/1.1 var(--display); letter-spacing: .03em; }
.step p { margin: 0; color: var(--muted); }

.step-art {
    position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #16213b, #0b1120 75%);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
    display: grid; place-items: center;
}

/* 01 ban */
.ban-card {
    position: relative; width: 40%; border-radius: 14px; overflow: hidden;
    background: #1b1411; border: 2px solid rgba(243, 201, 105, .7);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
    display: flex; flex-direction: column;
}
.ban-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ban-name { display: grid; place-items: center; padding-block: 12px; font: 700 clamp(11px, 1.2vw, 14px)/1.1 var(--display); letter-spacing: .04em; text-align: center; padding-inline: 4px; }
.ban-stamp {
    position: absolute; left: 50%; top: 50%;
    padding: 10px 22px; border: 4px solid #ff4545; border-radius: 10px;
    font: 900 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
    color: #ff4545; background: rgba(40, 4, 4, .55);
    box-shadow: 0 0 30px rgba(255, 69, 69, .35), inset 0 0 18px rgba(255, 69, 69, .25);
    transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 0;
}
.art-ban.in .ban-stamp { animation: stamp 4.2s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.art-ban.in .ban-card { animation: ban-card 4.2s ease infinite; }
@keyframes stamp {
    0%, 22% { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(2.6); }
    30% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}
@keyframes ban-card {
    0%, 26% { filter: none; transform: none; }
    30% { filter: grayscale(1) brightness(.55); transform: translateY(4px) scale(.97); }
    34%, 85% { filter: grayscale(1) brightness(.55); transform: none; }
    100% { filter: none; }
}

/* 02 draft */
.art-draft { align-content: center; justify-items: stretch; gap: 18px; padding: 24px; }
.draft-order { display: flex; gap: 6px; justify-content: center; }
.draft-order span {
    width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
    font: 700 11px/1 var(--sans); background: rgba(255, 255, 255, .05); color: var(--muted);
    border: 1px solid var(--line); transition: all .25s;
}
.draft-order span.a { color: #ffb0b0; }
.draft-order span.b { color: #a8d8ff; }
.draft-order span.now { transform: translateY(-4px); color: #fff; }
.draft-order span.a.now { background: var(--p1); border-color: var(--p1); box-shadow: 0 0 16px rgba(255, 93, 93, .6); }
.draft-order span.b.now { background: var(--p2); border-color: var(--p2); box-shadow: 0 0 16px rgba(79, 182, 255, .6); }
.draft-order span.done { opacity: .35; }
.draft-row { display: flex; align-items: center; gap: 12px; }
.draft-label { font: 800 13px/1 var(--sans); letter-spacing: .12em; width: 26px; }
.p1 .draft-label { color: var(--p1); }
.p2 .draft-label { color: var(--p2); }
.draft-slots { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.draft-slot {
    aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed rgba(160, 180, 230, .25);
    background: rgba(255, 255, 255, .02); overflow: hidden; position: relative;
}
.draft-slot img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(-40%) scale(1.3); transition: opacity .3s, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.draft-slot.filled { border-style: solid; }
.p1 .draft-slot.filled { border-color: var(--p1); box-shadow: 0 0 14px rgba(255, 93, 93, .35); }
.p2 .draft-slot.filled { border-color: var(--p2); box-shadow: 0 0 14px rgba(79, 182, 255, .35); }
.draft-slot.filled img { opacity: 1; transform: none; }

/* 03 battle */
.art-battle { padding: 18px; align-content: center; justify-items: stretch; gap: 12px; }
.battle-map { width: 100%; height: auto; border-radius: 12px; }
.tower rect { stroke-width: 2; }
.p1t rect { fill: #a74848; stroke: #ff9c8c; }
.p2t rect { fill: #2c6f9e; stroke: #a7e2ff; }
.u { stroke: rgba(0, 0, 0, .5); stroke-width: 1.5; }
.p1u { fill: var(--p1); }
.p2u { fill: var(--p2); }
.spark { opacity: 0; transform-box: fill-box; transform-origin: center; }
.art-battle.in .p1u.a { animation: lane-a1 5s ease-in-out infinite; }
.art-battle.in .p2u.a { animation: lane-a2 5s ease-in-out infinite; }
.art-battle.in .p1u.b { animation: lane-b1 5s ease-in-out infinite; }
.art-battle.in .p1u.c { animation: lane-b1 5s .25s ease-in-out infinite; }
.art-battle.in .p2u.b { animation: lane-b2 5s ease-in-out infinite; }
.art-battle.in .p1u.d { animation: lane-d1 5s ease-in-out infinite; }
.art-battle.in .p2u.d { animation: lane-d2 5s ease-in-out infinite; }
.art-battle.in .s1 { animation: spark 5s 1.2s infinite; }
.art-battle.in .s2 { animation: spark 5s 2.6s infinite; }
.art-battle.in .s3 { animation: spark 5s 1.7s infinite; }
.art-battle.in .falls { animation: falls 5s infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes lane-a1 { 0% { transform: translateX(0); } 25%, 45% { transform: translateX(58px); } 60% { transform: translateX(58px); opacity: 1; } 70%, 100% { transform: translateX(58px); opacity: 0; } }
@keyframes lane-a2 { 0% { transform: translateX(0); } 25%, 60% { transform: translateX(-58px); } 100% { transform: translateX(0); } }
@keyframes lane-b1 { 0% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(118px); } 62% { transform: translateX(118px); opacity: 1; } 80%, 100% { transform: translateX(118px); opacity: 0; } }
@keyframes lane-b2 { 0%, 30% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes lane-d1 { 0% { transform: translateX(0); } 35%, 100% { transform: translateX(70px); } }
@keyframes lane-d2 { 0% { transform: translateX(0); } 35%, 55% { transform: translateX(-70px); opacity: 1; } 65%, 100% { transform: translateX(-70px); opacity: 0; } }
@keyframes spark { 0% { opacity: 0; transform: scale(.3); } 6% { opacity: 1; transform: scale(1.2); } 18% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes falls { 0%, 55% { transform: none; opacity: 1; } 62% { transform: rotate(18deg) translateY(4px); opacity: .6; } 70%, 96% { transform: rotate(80deg) translateY(4px); opacity: 0; } 100% { opacity: 1; transform: none; } }
.battle-timer { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.battle-timer span { font: 900 26px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.battle-timer i { font-style: normal; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* 04 augments */
.aug-fan { position: relative; width: 100%; height: 100%; }
.aug {
    --r: 0deg; --x: 0%;
    position: absolute; left: 50%; top: 50%; margin: 0;
    width: 30%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #172039, #0c1222);
    border: 1.5px solid rgba(203, 166, 255, .45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
    transform: translate(calc(-50% + var(--x)), -50%) rotate(var(--r));
    transition: transform .6s cubic-bezier(.2, 1.1, .3, 1), box-shadow .6s, border-color .6s, filter .6s;
    filter: brightness(.72) saturate(.85);
}
.aug[data-tier="legendary"] { border-color: rgba(255, 216, 74, .6); }
.aug:nth-child(1) { --r: -11deg; --x: -96%; }
.aug:nth-child(3) { --r: 11deg; --x: 96%; }
.aug img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.aug figcaption { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 4px; text-align: center; }
.aug figcaption b { font: 700 clamp(10px, 1.1vw, 13px)/1.1 var(--display); }
.aug figcaption span { font: 700 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #cba6ff; }
.aug[data-tier="legendary"] figcaption span { color: #ffd84a; }
.aug.picked {
    z-index: 2; filter: none;
    transform: translate(calc(-50% + var(--x)), -58%) rotate(calc(var(--r) * .4)) scale(1.1);
    box-shadow: 0 0 0 2px #cba6ff, 0 0 40px rgba(203, 166, 255, .55), 0 24px 44px rgba(0, 0, 0, .6);
}
.aug.picked[data-tier="legendary"] { box-shadow: 0 0 0 2px #ffd84a, 0 0 44px rgba(255, 216, 74, .6), 0 24px 44px rgba(0, 0, 0, .6); }
.aug::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
    transform: translateX(-120%);
}
.aug.picked::after { animation: shine 1.2s .2s ease-out; }
@keyframes shine { to { transform: translateX(120%); } }

/* 05 champion */
.score { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.score-bo { font: 700 12px/1 var(--sans); letter-spacing: .3em; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.score-row { display: flex; align-items: center; gap: 18px; }
.score-side { display: flex; align-items: center; gap: 12px; }
.score-side i { font: 800 13px/1 var(--sans); font-style: normal; letter-spacing: .14em; }
.score-side.p1 i { color: var(--p1); }
.score-side.p2 i { color: var(--p2); }
.score-side b {
    display: grid; place-items: center; width: clamp(64px, 8vw, 92px); height: clamp(76px, 9.5vw, 108px); border-radius: 14px;
    font: 900 clamp(44px, 5.4vw, 64px)/1 var(--display); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
    transition: color .3s, border-color .3s, box-shadow .3s;
}
.score-side b.bump { animation: bump .6s cubic-bezier(.3, 1.8, .5, 1); }
.score-side.p1 b.win { color: #fff; border-color: var(--p1); box-shadow: 0 0 34px rgba(255, 93, 93, .45); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.score-colon { font: 900 40px/1 var(--display); color: var(--muted); }
.score-crown { width: 56px; height: 56px; opacity: 0; transform: translateY(-30px) scale(.6); transition: opacity .4s, transform .6s cubic-bezier(.2, 1.6, .4, 1); order: -1; }
.score-crown svg { width: 100%; height: 100%; fill: var(--gold); filter: drop-shadow(0 0 16px rgba(243, 201, 105, .8)); }
.score-crown.show { opacity: 1; transform: none; }
.score-verdict { font: 900 clamp(20px, 2.4vw, 28px)/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(8px); transition: all .5s .2s; margin-right: -.3em; }
.score-verdict.show { opacity: 1; transform: none; }

/* ------------------------------ Arena ------------------------------ */
.arena { overflow: hidden; }
.arena::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 106, 43, .10), transparent 70%);
}
.stage {
    position: relative; border-radius: 24px; overflow: hidden;
    aspect-ratio: 16 / 7;
    background:
        linear-gradient(180deg, rgba(6, 8, 15, .2), rgba(6, 8, 15, .1) 60%, rgba(6, 8, 15, .7)),
        url(assets/art/arena.webp) center 20% / cover;
    border: 1px solid var(--line);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-names { position: absolute; inset: auto 0 14px; margin: 0; padding: 0; list-style: none; height: 22px; pointer-events: none; }
.stage-names li {
    position: absolute; left: var(--x); transform: translateX(-50%);
    font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
    color: rgba(238, 241, 248, .75); padding: 6px 10px; border-radius: 999px;
    background: rgba(6, 8, 15, .55); border: 1px solid var(--line);
}

/* ---------------------------- Champions ---------------------------- */
.champ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.champ {
    --accent: 176, 140, 255;
    position: relative; border-radius: 18px; overflow: hidden;
    background: var(--panel); border: 1px solid var(--line);
    transform-style: preserve-3d;
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s;
}
.champ[data-accent="lime"] { --accent: 185, 231, 107; }
.champ[data-accent="cyan"] { --accent: 110, 200, 255; }
.champ[data-accent="green"] { --accent: 120, 240, 170; }
.champ:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.champ:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.champ:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.champ.in.tilting { transition: transform .12s linear, box-shadow .4s, border-color .4s; }
.champ:hover { border-color: rgba(var(--accent), .6); box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(var(--accent), .22); }
.champ-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.champ-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.champ:hover .champ-art img { transform: scale(1.06); }
.champ-art::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .18), transparent 45%),
        linear-gradient(180deg, transparent 50%, var(--panel) 98%);
    pointer-events: none;
}
.champ-info { position: relative; padding: 0 20px 22px; margin-top: -46px; }
.champ-meta { display: flex; align-items: center; gap: 10px; font: 700 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--accent)); }
.mana {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    font: 800 14px/1 var(--sans); font-style: normal; color: #fff; letter-spacing: 0;
    background: radial-gradient(circle at 35% 30%, #8fd0ff, #2a78d6 60%, #163f86);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 12px rgba(80, 160, 255, .5);
}
.champ h3 { margin: 10px 0 8px; font: 700 21px/1.15 var(--display); }
.champ p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.roster { margin-top: clamp(64px, 8vw, 100px); }
.roster-caption { text-align: center; margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.roster-caption b { font: 900 22px/1 var(--display); color: var(--gold); margin-right: 4px; }
.marquee {
    overflow: hidden; padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee[data-dir="right"] .marquee-track { animation-direction: reverse; animation-duration: 66s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.marquee figure { margin: 0; width: 118px; flex: none; text-align: center; }
.marquee img {
    width: 118px; height: 118px; border-radius: 16px; object-fit: cover;
    border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.marquee figure:hover img { transform: translateY(-6px) scale(1.04); border-color: rgba(243, 201, 105, .6); box-shadow: 0 16px 34px rgba(0, 0, 0, .55), 0 0 24px rgba(243, 201, 105, .25); }
.marquee figcaption { margin-top: 8px; font: 600 12px/1.2 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------ Finale ------------------------------ */
.finale {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 88vh; display: grid; place-items: center; text-align: center;
    padding: 120px var(--gutter);
}
.finale-bg {
    position: absolute; inset: -10% 0; z-index: -3;
    background: url(assets/art/citadel.webp) 62% 40% / cover no-repeat;
    will-change: transform;
}
.finale::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(6, 8, 15, .35) 30%, rgba(6, 8, 15, .45) 70%, var(--bg) 100%),
        radial-gradient(ellipse 50% 40% at 50% 55%, rgba(6, 8, 15, .6), transparent 70%);
}
.finale-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.finale-logo { margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(255, 140, 50, .6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.finale .kicker::after { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.finale-title {
    margin: 0 0 14px;
    font: 900 clamp(56px, 11vw, 150px)/1 var(--display); letter-spacing: .08em; margin-right: -.08em;
    background: linear-gradient(180deg, #fff6d8, var(--gold) 50%, var(--gold-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .8));
}
.finale-sub { margin: 0 auto; max-width: 34ch; font: 600 clamp(18px, 2vw, 23px)/1.5 var(--display); letter-spacing: .03em; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }

.footer {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 26px var(--gutter); border-top: 1px solid var(--line);
    font-size: 14px; color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 1020px) {
    .champ-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .lang { margin-left: auto; }
    .tournament-grid { grid-template-columns: 1fr; }
    .steps::before, .step::before { display: none; }
    .step { grid-template-columns: 1fr; gap: 26px; }
    .step:nth-child(even) .step-art { order: 0; }
    .step .step-copy { justify-self: start; max-width: none; }
    .step-num { font-size: 48px; }
    .stage { aspect-ratio: 4 / 3; }
    .stage-names li { font-size: 9px; letter-spacing: .12em; padding: 5px 7px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .nav-brand span { display: none; }
    .champ-grid { grid-template-columns: 1fr; }
    .versus { padding: 28px 14px 54px; }
    .versus-mid span { width: 52px; height: 52px; font-size: 18px; }
    .hero-logo { width: 116px; height: 116px; }
    .marquee figure, .marquee img { width: 92px; }
    .marquee img { height: 92px; }
    .stage { aspect-ratio: 1; }
    .stage-names { display: none; }
    .hero-kicker::before, .hero-kicker::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal:not(.in) { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
}
