:root {
    --ink: #08090b;
    --ink-soft: #0d0f12;
    --panel: #111318;
    --panel-raised: #15181d;
    --line: #292d34;
    --line-soft: #1d2026;
    --text: #f1f1ef;
    --muted: #9a9da4;
    --muted-dark: #666a72;
    --red: #ed2939;
    --red-bright: #ff3949;
    --red-deep: #8d1420;
    --blue-gray: #7e8b99;
    --display: "Barlow Condensed", sans-serif;
    --body: "Inter", sans-serif;
    --mono: "IBM Plex Mono", monospace;
    --shell: min(1240px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.015) 50%, transparent 50.1%);
    background-size: 160px 100%;
}

::selection { color: #fff; background: var(--red-deep); }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    color: #fff;
    background: var(--red);
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 3px;
}

.site-header {
    position: relative;
    z-index: 50;
    height: 82px;
    border-bottom: 1px solid var(--line);
    background: rgba(8,9,11,.96);
}

.navbar { height: 100%; display: flex; align-items: center; }

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 244px;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    transform: skewX(-9deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    content: "";
    position: absolute;
    background: var(--red);
}

.brand-mark::before { inset: 2px 21px 2px 2px; }
.brand-mark::after { inset: 19px 2px 2px 19px; }
.brand-mark span:nth-child(1) { width: 20px; height: 7px; top: 7px; right: 3px; }
.brand-mark span:nth-child(2) { width: 7px; height: 20px; left: 7px; bottom: 3px; background: #fff; }
.brand-mark span:nth-child(3) { width: 8px; height: 8px; inset: 16px auto auto 16px; background: #fff; }

.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: var(--display); font-size: 19px; letter-spacing: .07em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .22em; }

.nav-panel { display: flex; flex: 1; align-items: center; height: 100%; }
.nav-links { display: flex; align-items: center; height: 100%; margin-inline: auto; }
.nav-links a {
    position: relative;
    display: grid;
    height: 100%;
    padding: 0 21px;
    place-items: center;
    color: #a9abb0;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease, background .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: -1px;
    left: 20px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.02); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

.qualifier-hero {
    position: relative;
    min-height: 750px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 50%, rgba(219,31,46,.12), transparent 34%),
        linear-gradient(115deg, #090a0c 0%, #0c0e11 62%, #08090b 62%);
}

.qualifier-hero::before {
    content: "SUNWAY / MANIA / 2026";
    position: absolute;
    right: -50px;
    bottom: 100px;
    color: rgba(255,255,255,.018);
    font-family: var(--display);
    font-size: 92px;
    font-weight: 800;
    letter-spacing: .12em;
    transform: rotate(90deg);
}

.hero-grid-overlay, .confirmed-grid {
    position: absolute;
    inset: 0;
    opacity: .38;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, #000, transparent 78%);
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(310px, .9fr) minmax(360px, 1fr);
    gap: clamp(32px, 4vw, 68px);
    align-items: center;
    min-height: 750px;
    padding-block: 68px;
}

.event-schedule {
    position: relative;
    border-bottom: 1px solid var(--line);
    background: #0b0d10;
}

.event-schedule::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(237,41,57,.08), transparent 28%);
}

.schedule-grid {
    position: relative;
    display: grid;
    grid-template-columns: .9fr 1.1fr 1.1fr 1.65fr;
    align-items: stretch;
}

.schedule-label,
.schedule-milestone,
.championship-countdown {
    min-width: 0;
    padding: 27px 28px;
    border-right: 1px solid var(--line);
}

.schedule-label { padding-left: 0; }
.championship-countdown { padding-right: 0; border-right: 0; }
.schedule-label p,
.championship-countdown > p {
    margin: 0 0 7px;
    color: var(--red);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.schedule-label i { margin-right: 7px; }
.schedule-label h2 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; }

.schedule-milestone { display: flex; flex-direction: column; justify-content: center; }
.milestone-index { color: var(--muted-dark); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.schedule-milestone p { margin: 8px 0 1px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.schedule-milestone time { color: #fff; font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.schedule-milestone small { margin-top: 5px; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.registration-deadline time { color: var(--red-bright); }

.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.countdown-units > span { display: flex; min-width: 0; flex-direction: column; padding: 8px 7px; border: 1px solid var(--line); background: #080a0c; text-align: center; }
.countdown-units strong { font-family: var(--display); font-size: 29px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-units small { margin-top: 4px; color: var(--muted-dark); font-family: var(--mono); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.countdown-status { display: block; margin-top: 6px; color: var(--muted-dark); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.countdown-complete .countdown-units strong,
.countdown-complete .countdown-status { color: var(--red-bright); }

.rhythm-stage {
    position: relative;
    height: 558px;
    max-width: 330px;
    border: 1px solid #30343a;
    border-top: 2px solid #52565e;
    background: #090a0d;
    box-shadow: -28px 22px 80px rgba(0,0,0,.45), 0 0 52px rgba(219,31,46,.08);
    transform: perspective(900px) rotateY(2deg);
}

.rhythm-stage::before,
.rhythm-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.rhythm-stage::before {
    top: 64px;
    right: -10px;
    bottom: 38px;
    width: 2px;
    background: linear-gradient(transparent, var(--red), transparent);
    box-shadow: 0 0 16px rgba(237,41,57,.6);
}

.rhythm-stage::after {
    top: -14px;
    left: -14px;
    width: 48px;
    height: 48px;
    border-top: 1px solid var(--red);
    border-left: 1px solid var(--red);
}

.stage-topline, .stage-bottomline, .lane-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.stage-topline { height: 48px; padding: 0 15px; border-bottom: 1px solid var(--line-soft); }
.stage-topline span:first-child { color: #d6d7d8; }
.stage-topline i { margin-right: 7px; color: var(--red); }
.lane-readout { height: 34px; padding: 0 14px; border-bottom: 1px solid #1c1e23; background: #0d0f13; }
.lane-readout span:nth-child(2) { color: var(--red); }

.mania-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 422px;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(255,255,255,.018), transparent 35%), #07080a;
}

.timing-grid { position: absolute; inset: 0; }
.timing-grid span { position: absolute; right: 0; left: 0; height: 1px; background: rgba(255,255,255,.045); }
.timing-grid span:nth-child(1) { top: 12%; }
.timing-grid span:nth-child(2) { top: 27%; }
.timing-grid span:nth-child(3) { top: 42%; }
.timing-grid span:nth-child(4) { top: 57%; }
.timing-grid span:nth-child(5) { top: 72%; }
.timing-grid span:nth-child(6) { top: 87%; }

.mania-lane {
    position: relative;
    border-right: 1px solid #282b31;
    background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,.012));
}

.mania-lane:first-of-type { border-left: 1px solid #202329; }
.mania-lane.active-lane { background: linear-gradient(to bottom, rgba(237,41,57,.025), rgba(237,41,57,.08)); }

.note {
    position: absolute;
    top: var(--note-top);
    right: 7px;
    left: 7px;
    height: 16px;
    border: 1px solid #d4d5d7;
    border-bottom: 3px solid #fff;
    background: linear-gradient(180deg, #f0f1f2 0%, #92969e 100%);
    box-shadow: 0 0 10px rgba(255,255,255,.18);
    animation: note-pulse 2.8s var(--note-delay) ease-in-out infinite;
}

.note::before { content: ""; position: absolute; inset: 2px; border-top: 1px solid rgba(255,255,255,.7); }
.note-short { right: 16px; left: 16px; height: 11px; }
.note-red { border-color: #ff6672; border-bottom-color: #ff8f98; background: linear-gradient(180deg, #f13d4d, #9f1723); box-shadow: 0 0 16px rgba(237,41,57,.45); }
.note-hold { height: 58px; border-bottom-width: 5px; background: linear-gradient(180deg, #d9dbdf, #565a62); }

.judgement-line {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 28px;
    border-top: 2px solid #f0f0ef;
    border-bottom: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    box-shadow: 0 -4px 18px rgba(255,255,255,.15), 0 6px 22px rgba(237,41,57,.12);
}

.judgement-line span {
    display: grid;
    place-items: center;
    border-right: 1px solid #393c43;
    color: #b8bbc0;
    font-family: var(--mono);
    font-size: 9px;
}

.judgement-line span:nth-child(2), .judgement-line span:nth-child(4) { color: #fff; background: rgba(237,41,57,.18); }
.stage-bottomline { height: 53px; padding: 0 14px; border-top: 1px solid var(--line); }
.stage-bottomline strong { color: #fff; font-family: var(--display); font-size: 18px; font-style: italic; letter-spacing: .04em; }
.stage-bottomline small { color: var(--red); font-size: 11px; }

@keyframes note-pulse { 0%, 100% { filter: brightness(.88); } 50% { filter: brightness(1.15); } }

.hero-copy { align-self: center; }
.event-kicker { display: flex; gap: 6px; margin-bottom: 21px; }
.event-kicker span { padding: 5px 8px; border: 1px solid #32353b; color: #aaaeb5; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; }
.event-kicker span:first-child { border-color: var(--red-deep); color: #fff; background: rgba(237,41,57,.1); }

.open-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: #c9cacc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.open-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 4px rgba(237,41,57,.12), 0 0 14px rgba(237,41,57,.6); }

.hero-copy h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(55px, 5.25vw, 78px);
    font-weight: 800;
    line-height: .82;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.hero-copy h1 em { color: transparent; font-weight: 700; -webkit-text-stroke: 1px #aeb0b4; }
.hero-copy h1 > span { display: inline-block; margin-top: 17px; color: #c1c2c5; font-size: .43em; font-style: italic; letter-spacing: .035em; }
.hero-copy h1 b { color: var(--red); font-weight: 800; }
.hero-intro { max-width: 450px; margin: 27px 0 25px; color: #a2a5aa; font-size: 14px; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #7f838a; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.hero-meta i { margin-right: 6px; color: var(--red); }

.submission-panel {
    position: relative;
    padding: 34px 34px 29px;
    border: 1px solid #343840;
    border-top: 2px solid #7a7d83;
    background: linear-gradient(145deg, #17191e, #101216 75%);
    box-shadow: 22px 28px 80px rgba(0,0,0,.42);
}

.submission-panel::before { content: ""; position: absolute; top: -2px; left: 0; width: 86px; height: 2px; background: var(--red); box-shadow: 0 0 18px rgba(237,41,57,.6); }
.panel-index { position: absolute; top: 12px; right: 15px; color: #555961; font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
.submission-header { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #2a2d33; }
.section-icon { display: grid; width: 43px; height: 43px; place-items: center; color: #fff; background: var(--red-deep); clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%); }
.submission-header p, .section-heading p, .ranking-heading p, .roster-heading p { margin: 0 0 2px; color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.submission-header h2 { margin: 0; font-family: var(--display); font-size: 27px; line-height: 1; letter-spacing: .01em; }

.form-feedback { display: flex; align-items: flex-start; gap: 12px; margin: -7px 0 20px; padding: 12px 13px; border: 1px solid rgba(237,41,57,.42); background: rgba(141,20,32,.14); }
.form-feedback > i { margin-top: 3px; color: var(--red-bright); }
.form-feedback div { display: flex; flex-direction: column; }
.form-feedback strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.form-feedback span { color: #d6b5b8; font-size: 11px; }

.identity-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: -7px 0 20px;
    padding: 12px 13px;
    border-left: 2px solid var(--red);
    background: #0d0f12;
}

.identity-warning > i { margin-top: 3px; color: var(--red); font-size: 12px; }
.identity-warning div { display: flex; flex-direction: column; }
.identity-warning strong { color: #f1f1ef; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.identity-warning span { margin-top: 2px; color: #878b92; font-size: 9px; line-height: 1.5; }

.qualification-form { display: grid; gap: 19px; }
.field-group { display: grid; gap: 8px; }
.field-group > label:first-child { color: #cfd0d3; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.text-input-wrap { position: relative; }
.text-input-wrap i { position: absolute; top: 50%; left: 15px; color: #656a72; font-size: 12px; transform: translateY(-50%); }
.text-input-wrap input { width: 100%; height: 48px; padding: 0 15px 0 42px; border: 1px solid #363a42; border-radius: 1px; color: #f4f4f2; background: #0d0f12; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.text-input-wrap input::placeholder { color: #646870; }
.text-input-wrap input:focus { border-color: #a52430; outline: none; box-shadow: 0 0 0 3px rgba(237,41,57,.08); }
.text-input-wrap:focus-within i { color: var(--red); }

.upload-zone {
    position: relative;
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 15px;
    padding: 20px;
    overflow: hidden;
    border: 1px dashed #444850;
    background:
        linear-gradient(135deg, rgba(255,255,255,.018) 25%, transparent 25%) 0 0 / 12px 12px,
        #0d0f12;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--red); background-color: #121316; }
.upload-zone.has-file { border-style: solid; border-color: #5c626b; }
.upload-zone.invalid-file { border-color: var(--red); background-color: rgba(141,20,32,.08); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; flex: 0 0 45px; height: 45px; place-items: center; border: 1px solid #393d44; color: var(--red); background: #17191d; font-size: 17px; }
.upload-copy { display: flex; min-width: 0; flex-direction: column; }
.upload-copy strong { max-width: 215px; overflow: hidden; color: #ddd; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upload-copy small { margin-top: 4px; color: #72767e; font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.upload-copy small span { margin-inline: 5px; color: var(--red); }
.upload-corner { position: absolute; right: -15px; bottom: -15px; width: 30px; height: 30px; border: 1px solid #4b4f57; transform: rotate(45deg); }

.submit-button {
    position: relative;
    display: flex;
    height: 51px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 20px;
    overflow: hidden;
    border: 1px solid #ff5360;
    border-radius: 1px;
    color: #fff;
    background: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.submit-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.16), transparent 65%); transform: translateX(-100%); transition: transform .45s ease; }
.submit-button:hover { background: var(--red-bright); transform: translateY(-1px); }
.submit-button:hover::before { transform: translateX(100%); }
.submit-button:disabled { cursor: wait; opacity: .8; transform: none; }
.form-note { margin: -4px 0 0; color: #676b72; font-size: 9px; line-height: 1.5; }
.form-note i { margin-right: 5px; color: #8d9198; }

.qualification-brief { border-bottom: 1px solid var(--line); background: #0b0c0e; }
.brief-grid { display: grid; grid-template-columns: 1.45fr 1fr .9fr; }
.brief-item { position: relative; display: flex; min-height: 138px; align-items: center; gap: 17px; padding: 27px 32px; border-left: 1px solid var(--line); }
.brief-item:last-child { border-right: 1px solid var(--line); }
.brief-item::after { content: ""; position: absolute; top: 0; left: 0; width: 52px; height: 1px; background: #5c6068; }
.brief-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #3b3f46; color: var(--red); background: #111318; }
.brief-item p { margin: 0 0 3px; color: #777b83; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.brief-item h2 { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.1; }
.brief-item div > span { color: #8c9097; font-size: 10px; }
.brief-item > a { margin-left: auto; padding-bottom: 3px; border-bottom: 1px solid #6a1d25; color: #d9d9da; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.brief-item > a i { margin-left: 5px; color: var(--red); }

.process-section { padding: 112px 0; background: #0e1013; }
.process-layout { display: grid; grid-template-columns: .75fr 1.55fr; gap: 90px; }
.section-heading { position: sticky; top: 30px; align-self: start; }
.section-heading p i { margin-right: 7px; }
.section-heading h2, .rules-lead h2, .ranking-heading h2, .faq-layout h2, .roster-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(38px, 4vw, 53px); line-height: .98; text-transform: uppercase; }
.section-heading > span { display: block; max-width: 310px; margin-top: 20px; color: var(--muted); font-size: 13px; }

.process-list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.process-list::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 94px; width: 1px; background: linear-gradient(var(--red), #32363d); }
.process-list li { position: relative; display: grid; grid-template-columns: 54px 60px 1fr; gap: 21px; align-items: center; min-height: 126px; padding: 16px 24px 16px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.step-number { color: #5a5e65; font-family: var(--mono); font-size: 11px; }
.step-icon { position: relative; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #41454c; color: #d0d1d2; background: #13151a; transform: rotate(45deg); }
.step-icon i { color: var(--red); transform: rotate(-45deg); }
.process-list h3 { margin: 0 0 7px; font-family: var(--display); font-size: 22px; line-height: 1; }
.process-list p { margin: 0; color: #858990; font-size: 12px; }

.rules-section { position: relative; padding: 95px 0; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(100deg, #0a0b0d 0%, #0a0b0d 40%, #111318 40%); }
.rules-section::after { content: "04K"; position: absolute; right: -20px; bottom: -80px; color: rgba(255,255,255,.018); font-family: var(--display); font-size: 260px; font-weight: 800; line-height: 1; }
.rules-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.35fr; gap: 100px; align-items: center; }
.eyebrow { margin: 0 0 7px; color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow i { margin-right: 6px; }
.rules-lead > p:not(.eyebrow) { max-width: 350px; color: var(--muted); font-size: 12px; }
.rules-code { display: inline-flex; margin-top: 24px; flex-direction: column; padding: 11px 16px; border-left: 2px solid var(--red); background: #111318; }
.rules-code span { color: #646871; font-family: var(--mono); font-size: 7px; letter-spacing: .15em; }
.rules-code strong { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.rules-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.rules-list li { display: grid; grid-template-columns: 50px 1fr; min-height: 64px; align-items: center; border-bottom: 1px solid var(--line); color: #9b9fa5; font-size: 12px; }
.rules-list li i { color: var(--red); }
.rules-list li strong { color: #e4e4e3; font-weight: 600; }

.ranking-section { padding: 110px 0; background: #0c0e10; }
.ranking-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .58fr); gap: 25px; align-items: stretch; }
.ranking-main { border-top: 2px solid #5b5f66; }
.ranking-heading { display: flex; min-height: 98px; align-items: center; justify-content: space-between; padding: 20px 25px; border: 1px solid var(--line); border-top: 0; background: #111318; }
.ranking-heading h2 { font-size: 34px; }
.ranking-heading > span { color: #6b6f77; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.ranking-table { width: 100%; border-collapse: collapse; background: #0d0f12; white-space: nowrap; }
.ranking-table th { height: 45px; padding: 0 20px; border: 1px solid var(--line); color: #686c74; background: #0a0b0d; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.ranking-table td { height: 65px; padding: 0 20px; border: 1px solid #24272d; color: #aaadb2; font-family: var(--mono); font-size: 10px; }
.ranking-table td:first-child { color: #62666d; }
.ranking-table td:nth-child(2) { color: #e2e2e2; font-family: var(--body); font-size: 12px; font-weight: 600; }
.ranking-table tr:hover td { background: rgba(255,255,255,.012); }
.player-dot { display: inline-block; width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(237,41,57,.5); vertical-align: 1px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.status.qualified { color: #ec6570; }
.status.pending { color: #767a82; }
.pending-row { opacity: .62; }

.access-teaser { position: relative; display: flex; min-height: 344px; flex-direction: column; align-items: center; justify-content: center; padding: 38px; overflow: hidden; border: 1px solid #292d33; background: #101216; text-align: center; }
.access-teaser::before { content: ""; position: absolute; inset: 0; opacity: .17; background: repeating-linear-gradient(135deg, transparent 0 11px, #333740 12px); }
.lock-scan { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--red); box-shadow: 0 0 15px var(--red); opacity: .35; }
.lock-icon { position: relative; display: grid; width: 56px; height: 56px; margin-bottom: 18px; place-items: center; border: 1px solid #393d44; color: #c4c5c7; background: #15181c; transform: rotate(45deg); }
.lock-icon i { color: var(--red); transform: rotate(-45deg); }
.access-teaser > p { position: relative; margin: 0; color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.access-teaser h2 { position: relative; margin: 5px 0 12px; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.access-teaser > span:not(.lock-scan) { position: relative; color: #80848b; font-size: 11px; }
.access-state { position: relative; margin-top: 22px; padding: 7px 10px; border: 1px solid #343840; color: #777b82; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.access-state i { margin-right: 5px; color: var(--red); }

.faq-section { padding: 96px 0; border-top: 1px solid var(--line); background: #090a0c; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; }
.faq-layout > div { grid-row: span 3; padding-right: 70px; }
.faq-layout h2 { font-size: 45px; }
.faq-layout details { border-top: 1px solid var(--line); }
.faq-layout details:last-child { border-bottom: 1px solid var(--line); }
.faq-layout summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; color: #d0d1d2; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-layout summary::-webkit-details-marker { display: none; }
.faq-layout summary i { color: var(--red); font-size: 10px; }
.faq-layout details p { margin: -3px 0 21px; max-width: 590px; color: #858991; font-size: 11px; }

.site-footer { border-top: 1px solid var(--line); background: #07080a; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 122px; align-items: center; gap: 35px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.mini-mark { width: 16px; height: 16px; border-top: 5px solid var(--red); border-left: 5px solid var(--red); transform: rotate(45deg); }
.footer-links { display: flex; gap: 23px; color: #777b82; font-size: 10px; }
.footer-links a:hover { color: #fff; }
.footer-inner > p { margin: 0; color: #555961; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
.footer-inner > p span { margin-inline: 7px; color: var(--red); }

/* Restricted competitors area */
.confirmed-hero { position: relative; min-height: 510px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 72% 40%, rgba(237,41,57,.13), transparent 28%), linear-gradient(115deg, #0a0b0e, #111318); }
.confirmed-hero::after { content: "QUALIFIED"; position: absolute; bottom: -45px; left: 3vw; color: rgba(255,255,255,.018); font-family: var(--display); font-size: min(18vw, 250px); font-weight: 800; line-height: .8; letter-spacing: .02em; }
.confirmed-grid { mask-image: radial-gradient(circle at center, #000, transparent 78%); }
.confirmed-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .62fr; gap: 100px; align-items: center; min-height: 510px; padding-block: 65px; }
.confirmed-label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 19px; padding: 6px 10px; border: 1px solid rgba(237,41,57,.38); color: #ff737e; background: rgba(141,20,32,.12); font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.confirmation-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(64px, 7vw, 94px); font-style: italic; font-weight: 800; line-height: .83; text-transform: uppercase; }
.confirmation-copy h1 span { color: var(--red); overflow-wrap: anywhere; }
.confirmation-copy > p:last-child { max-width: 610px; margin: 29px 0 0; padding-left: 18px; border-left: 2px solid var(--red); color: #9da0a6; font-size: 13px; }

.registration-card { position: relative; min-height: 310px; padding: 30px; overflow: hidden; border: 1px solid #4a4e55; border-top: 2px solid #d0d1d3; background: linear-gradient(145deg, #1a1d22, #0f1115); box-shadow: 25px 30px 70px rgba(0,0,0,.45); }
.registration-card::after { content: "2026"; position: absolute; right: -12px; bottom: -23px; color: rgba(255,255,255,.035); font-family: var(--display); font-size: 102px; font-weight: 800; }
.registration-stripe { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--red); }
.registration-head { display: flex; align-items: center; justify-content: space-between; color: #858991; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.registration-head i { color: var(--red); }
.registration-mark { position: relative; display: flex; width: 46px; height: 41px; align-items: center; gap: 4px; margin-top: 29px; transform: skewX(-10deg); }
.registration-mark span { width: 9px; background: var(--red); }
.registration-mark span:nth-child(1) { height: 18px; }
.registration-mark span:nth-child(2) { height: 32px; background: #f3f3f1; }
.registration-mark span:nth-child(3) { height: 24px; }
.registration-name { max-width: 300px; margin-top: 15px; overflow: hidden; font-family: var(--display); font-size: 33px; font-weight: 700; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.registration-meta { display: flex; margin-top: 25px; flex-direction: column; }
.registration-meta span { color: #696d75; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; text-transform: uppercase; }
.registration-meta strong { margin-top: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.registration-footer { position: absolute; right: 30px; bottom: 27px; display: flex; gap: 12px; color: #747880; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.registration-footer span:last-child { color: var(--red); }

.official-roster { padding: 104px 0 120px; background: #0b0d0f; }
.roster-layout { max-width: 1040px; }
.roster-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 31px; }
.roster-count { display: flex; align-items: center; gap: 11px; padding-left: 18px; border-left: 1px solid var(--line); }
.roster-count strong { color: var(--red); font-family: var(--display); font-size: 32px; line-height: 1; }
.roster-count span { max-width: 70px; color: #777b82; font-family: var(--mono); font-size: 7px; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.roster-table-wrap { border-top: 2px solid #686c73; }
.roster-table td { height: 72px; }
.roster-table td:nth-child(2) { display: flex; align-items: center; gap: 12px; }
.player-seed-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #353940; color: #92969d; background: #15171b; font-family: var(--display); font-size: 13px; }
.roster-table td small { margin-left: 4px; padding: 2px 5px; color: #fff; background: var(--red-deep); font-family: var(--mono); font-size: 6px; letter-spacing: .1em; }
.roster-table .current-player td { border-block-color: rgba(237,41,57,.45); background: rgba(237,41,57,.055); }
.roster-table .current-player td:first-child { border-left: 2px solid var(--red); }

.key-panel { position: relative; margin-top: 68px; padding: 42px 48px 38px; overflow: hidden; border: 1px solid #444850; border-top: 2px solid var(--red); background: linear-gradient(110deg, #16191e, #101216); box-shadow: 0 24px 70px rgba(0,0,0,.26); }
.key-panel::before { content: "ACCESS / 06"; position: absolute; top: 15px; right: 19px; color: #50545b; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.key-decoration { position: absolute; right: 0; bottom: 0; display: flex; height: 110px; align-items: flex-end; gap: 8px; opacity: .09; transform: skewX(-12deg); }
.key-decoration span { width: 18px; background: var(--red); }
.key-decoration span:nth-child(1) { height: 35px; }
.key-decoration span:nth-child(2) { height: 70px; }
.key-decoration span:nth-child(3) { height: 52px; }
.key-decoration span:nth-child(4) { height: 98px; }
.key-heading { display: flex; align-items: center; gap: 17px; }
.key-icon { display: grid; width: 50px; height: 50px; place-items: center; color: #fff; background: var(--red-deep); clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%); }
.key-heading p { margin: 0; color: var(--red); font-family: var(--mono); font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.key-heading h2 { margin: 2px 0 0; font-family: var(--display); font-size: 35px; line-height: 1; text-transform: uppercase; }
.key-welcome { margin: 28px 0 11px; color: #999da4; font-size: 11px; }
.flag-display { position: relative; display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 16px 15px 21px; border: 1px solid #3d4148; background: #090a0d; }
.flag-display::before { content: ""; position: absolute; top: -1px; left: -1px; width: 48px; height: 1px; background: var(--red); }
.flag-display code { min-width: 0; color: #f1f1ef; font-family: var(--mono); font-size: clamp(12px, 1.6vw, 17px); overflow-wrap: anywhere; }
.flag-display button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #42464e; color: #b9bbc0; background: #181a1f; font-family: var(--mono); font-size: 8px; text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.flag-display button:hover, .flag-display button.copied { border-color: var(--red); color: #fff; }
.flag-display button i { color: var(--red); }
.key-note { margin: 12px 0 0; color: #646870; font-size: 8px; }
.key-note i { margin-right: 6px; color: var(--red); }

/* Privacy notice */
.privacy-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 78% 20%, rgba(237,41,57,.11), transparent 27%), #0a0b0e;
}

.privacy-grid {
    position: absolute;
    inset: 0;
    opacity: .32;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, #000, transparent 85%);
}

.privacy-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr .8fr;
    min-height: 380px;
    align-items: end;
    gap: 100px;
    padding-block: 75px;
}

.privacy-kicker { margin: 0 0 13px; color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.privacy-kicker i { margin-right: 7px; }
.privacy-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(65px, 8vw, 105px); font-style: italic; font-weight: 800; line-height: .72; text-transform: uppercase; }
.privacy-hero h1 span { color: #8f9298; font-size: .43em; letter-spacing: .03em; }
.privacy-hero-layout > p { max-width: 490px; margin: 0 0 8px; padding-left: 20px; border-left: 2px solid var(--red); color: #9b9ea5; font-size: 12px; }

.privacy-content { padding: 90px 0 120px; background: #0c0e10; }
.privacy-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 85px; }
.privacy-index { position: sticky; top: 30px; align-self: start; border-top: 2px solid var(--red); background: #101216; }
.privacy-index > p { margin: 0; padding: 17px 18px; border: 1px solid var(--line); color: #70747b; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.privacy-index ol { margin: 0; padding: 0; list-style: none; }
.privacy-index li { border: 1px solid var(--line); border-top: 0; }
.privacy-index a { display: flex; min-height: 47px; align-items: center; gap: 12px; padding: 0 17px; color: #9a9da4; font-size: 10px; transition: color .2s ease, background .2s ease; }
.privacy-index a:hover { color: #fff; background: rgba(255,255,255,.02); }
.privacy-index a span { color: var(--red); font-family: var(--mono); font-size: 8px; }
.notice-version { display: flex; padding: 17px 18px; flex-direction: column; border: 1px solid var(--line); border-top: 0; }
.notice-version span { color: #62666d; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.notice-version strong { margin-top: 3px; font-family: var(--mono); font-size: 9px; font-weight: 500; }

.privacy-sections { border-top: 1px solid var(--line); }
.privacy-sections article { display: grid; grid-template-columns: 58px 1fr; gap: 28px; padding: 52px 0 57px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.policy-number { color: #5a5e65; font-family: var(--mono); font-size: 10px; }
.policy-label { margin: 0 0 5px !important; color: var(--red) !important; font-family: var(--mono); font-size: 8px !important; letter-spacing: .13em; text-transform: uppercase; }
.privacy-sections h2 { margin: 0 0 19px; font-family: var(--display); font-size: 37px; line-height: 1; text-transform: uppercase; }
.privacy-sections article p { max-width: 720px; margin: 0 0 14px; color: #9599a0; font-size: 11px; line-height: 1.8; }
.privacy-sections ul { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.privacy-sections li { position: relative; padding-left: 18px; color: #8b8f96; font-size: 10px; }
.privacy-sections li::before { content: ""; position: absolute; top: .65em; left: 0; width: 6px; height: 1px; background: var(--red); }
.privacy-sections strong { color: #d8d9da; font-weight: 600; }
.privacy-return { display: inline-flex; align-items: center; gap: 9px; margin-top: 38px; padding-bottom: 4px; border-bottom: 1px solid var(--red-deep); color: #d0d1d2; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.privacy-return i { color: var(--red); }

@media (max-width: 1120px) {
    .hero-layout { grid-template-columns: .72fr 1fr; gap: 45px; }
    .submission-panel { grid-column: 1 / -1; width: min(700px, 100%); margin-inline: auto; }
    .qualifier-hero, .hero-layout { min-height: auto; }
    .hero-layout { padding-block: 62px; }
    .rhythm-stage { justify-self: end; }
    .brief-grid { grid-template-columns: 1.3fr 1fr; }
    .brief-item:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
    .confirmed-layout { gap: 60px; }
}

@media (max-width: 860px) {
    :root { --shell: min(100% - 32px, 720px); }
    .site-header { height: 70px; }
    .brand { min-width: 0; }
    .nav-toggle { display: flex; width: 38px; height: 36px; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #373b42; background: transparent; cursor: pointer; }
    .nav-toggle span { width: 16px; height: 1px; background: #ddd; }
    .nav-panel { position: absolute; top: 70px; right: 0; left: 0; display: none; height: auto; padding: 10px 16px 17px; border-bottom: 1px solid var(--line); background: #0b0d10; box-shadow: 0 20px 35px rgba(0,0,0,.35); }
    .nav-panel.open { display: block; }
    .nav-links { display: grid; height: auto; }
    .nav-links a { height: 45px; justify-items: start; padding: 0 8px; border-bottom: 1px solid #202329; }
    .nav-links a::after { right: auto; bottom: 9px; left: 8px; width: 25px; }
    .hero-layout { grid-template-columns: minmax(260px, .8fr) 1fr; gap: 35px; }
    .rhythm-stage { height: 490px; }
    .mania-board { height: 354px; }
    .hero-copy h1 { font-size: 54px; }
    .schedule-grid { grid-template-columns: 1fr 1fr; }
    .schedule-label, .schedule-milestone, .championship-countdown { border-bottom: 1px solid var(--line); }
    .schedule-label { padding-left: 24px; }
    .schedule-milestone:nth-child(2) { border-right: 0; }
    .championship-date { border-bottom: 0; }
    .championship-countdown { padding-right: 24px; border-bottom: 0; }
    .submission-panel { grid-column: 1 / -1; }
    .process-layout, .rules-layout { grid-template-columns: 1fr; gap: 54px; }
    .section-heading { position: static; }
    .process-section, .ranking-section { padding-block: 84px; }
    .rules-section { background: #0c0e11; }
    .rules-layout { gap: 34px; }
    .ranking-layout { grid-template-columns: 1fr; }
    .access-teaser { min-height: 300px; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout > div { grid-row: auto; padding: 0 0 33px; }
    .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 35px; }
    .footer-links { justify-self: end; }
    .footer-inner > p { grid-column: 1 / -1; text-align: left; }
    .confirmed-layout { grid-template-columns: 1fr 340px; gap: 35px; }
    .privacy-hero-layout { gap: 50px; }
    .privacy-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 45px; }
}

@media (max-width: 680px) {
    :root { --shell: calc(100% - 28px); }
    .brand-copy strong { font-size: 17px; }
    .brand-copy small { font-size: 7px; }
    .qualifier-hero::before { display: none; }
    .schedule-grid { grid-template-columns: 1fr; }
    .schedule-label, .schedule-milestone, .championship-countdown { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .championship-date { border-bottom: 1px solid var(--line); }
    .championship-countdown { border-bottom: 0; }
    .hero-layout { grid-template-columns: 1fr; padding-block: 35px 48px; }
    .rhythm-stage { grid-row: 1; width: min(100%, 330px); height: 420px; justify-self: center; }
    .mania-board { height: 284px; }
    .hero-copy { grid-row: 2; padding-block: 8px 15px; }
    .hero-copy h1 { font-size: clamp(50px, 17vw, 68px); }
    .hero-intro { margin-top: 23px; }
    .submission-panel { grid-row: 3; padding: 30px 20px 23px; }
    .brief-grid { grid-template-columns: 1fr; }
    .brief-item, .brief-item:last-child { grid-column: auto; min-height: 122px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-inline: 20px; }
    .brief-item > a { position: absolute; right: 18px; bottom: 15px; }
    .process-section, .rules-section, .ranking-section, .faq-section { padding-block: 70px; }
    .process-list::before { left: 67px; }
    .process-list li { grid-template-columns: 30px 48px 1fr; gap: 13px; padding-right: 0; }
    .step-icon { width: 36px; height: 36px; }
    .ranking-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .ranking-table th, .ranking-table td { padding-inline: 15px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-links { justify-self: start; flex-wrap: wrap; gap: 13px 20px; }
    .footer-inner > p { grid-column: auto; }
    .confirmed-layout { grid-template-columns: 1fr; padding-block: 58px; }
    .confirmation-copy h1 { font-size: 64px; }
    .registration-card { width: min(100%, 380px); }
    .official-roster { padding-block: 74px 86px; }
    .roster-heading { align-items: flex-start; flex-direction: column; gap: 21px; }
    .key-panel { padding: 35px 21px 29px; }
    .flag-display { align-items: flex-start; flex-direction: column; }
    .flag-display button { align-self: flex-end; }
    .privacy-hero-layout { grid-template-columns: 1fr; min-height: 420px; gap: 38px; align-content: end; }
    .privacy-layout { grid-template-columns: 1fr; gap: 48px; }
    .privacy-index { position: static; }
    .privacy-content { padding-block: 65px 85px; }
    .privacy-sections article { grid-template-columns: 38px 1fr; gap: 15px; padding-block: 43px; }
}

@media (max-width: 420px) {
    .rhythm-stage { height: 380px; }
    .mania-board { height: 244px; }
    .hero-meta { gap: 11px 16px; }
    .event-kicker { flex-wrap: wrap; }
    .upload-zone { padding-inline: 14px; }
    .upload-icon { flex-basis: 40px; height: 40px; }
    .process-list li { grid-template-columns: 26px 42px 1fr; }
    .process-list::before { left: 60px; }
    .faq-layout h2 { font-size: 39px; }
    .confirmation-copy h1 { font-size: 54px; }
    .registration-card { min-height: 290px; padding: 25px; }
    .registration-footer { right: 25px; bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
