.contestPage {
    --contest-pink: #ed64f5;
    --contest-purple: #a48aff;
    --contest-cyan: #3af3f0;
    --contest-muted: #c1c3dc;
    overflow: hidden;
    background: #080a17;
    color: #fff;
}
.contestPage h1, .contestPage h2, .contestPage h3, .contestPage p { margin: 0; padding: 0; color: inherit; }
.contestPage p { line-height: 1.65; }
.contestShell { position: relative; width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.contestSection { position: relative; padding-block: 110px; scroll-margin-top: 110px; }
.contestEyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--contest-cyan); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contestPage .contestTitle { font-size: clamp(2rem, 4.5vw, 4.1rem); font-weight: 900; line-height: 1.07; letter-spacing: -.045em; text-transform: uppercase; }
.contestTitle > span { display: block; color: var(--contest-pink); }
.contestButton {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 25px;
    border: 1px solid var(--contest-pink);
    border-radius: 3px;
    color: #190c29;
    background: var(--contest-pink);
    box-shadow: 0 0 28px rgb(237 100 245 / 16%);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .045em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s, box-shadow .2s, transform .25s;
}
.contestButton:hover { color: #190c29 !important; background: #f494fa; font-weight: 800; text-decoration: none; box-shadow: 0 0 35px rgb(237 100 245 / 28%); }
.contestButton--outline { color: #fff; background: rgb(8 10 23 / 40%); box-shadow: none; }
.contestButton--outline:hover { color: #fff !important; background: rgb(237 100 245 / 15%); }
.contestButton > i { transition: transform .25s; }
.contestButton:focus-visible, .contestTextLink:focus-visible, .contestHero__scroll:focus-visible { outline: 3px solid var(--contest-cyan); outline-offset: 5px; }
.contestTextLink { display: inline-flex; align-items: center; gap: 12px; color: var(--contest-pink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.contestTextLink:hover { color: #ffa4ff !important; font-weight: 700; }
.contestHero { position: relative; isolation: isolate; min-height: 720px; display: flex; align-items: center; background: #080a17; }
.contestHero__visual { position: absolute; z-index: -1; inset: 0 0 0 30%; overflow: hidden; }
.contestHero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; opacity: .8; }
.contestHero__visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #080a17 0%, rgb(8 10 23 / 65%) 28%, rgb(8 10 23 / 8%) 75%), linear-gradient(0deg, #080a17, transparent 40%); }
.contestHero__inner { padding-block: 95px 110px; }
.contestHero__copy { max-width: 810px; }
.contestPage .contestHero h1 { font-size: clamp(4rem, 8.5vw, 7.5rem); font-weight: 900; line-height: .96; letter-spacing: -.05em; text-transform: uppercase; }
.contestHero h1 > span { display: block; color: var(--contest-pink); text-shadow: 0 0 50px rgb(237 100 245 / 15%); }
.contestPage .contestHero__numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 28px; font-size: clamp(1.1rem, 2.4vw, 1.8rem); font-weight: 800; text-transform: uppercase; }
.contestHero__numbers span:nth-of-type(1) b { color: var(--contest-pink); }
.contestHero__numbers span:nth-of-type(2) b { color: var(--contest-purple); }
.contestHero__numbers span:nth-of-type(3) b { color: var(--contest-cyan); }
.contestHero__numbers > i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.contestPage .contestHero__description { max-width: 470px; margin-top: 17px; color: #e0e1ef; font-size: 1rem; }
.contestHero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.contestHero__scroll { position: absolute; bottom: 24px; left: 0; display: flex; width: 36px; height: 46px; align-items: center; justify-content: center; border: 1px solid #44445e; border-radius: 20px; color: #fff; }
.contestHero__scroll:hover { color: var(--contest-cyan) !important; }
.contestLeaderboard { isolation: isolate; overflow: clip; padding-top: 80px; background: radial-gradient(ellipse at 75% 15%, rgb(53 34 119 / 22%), transparent 65%); }
.contestLeaderboard__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); align-items: start; gap: 70px; }
.contestLeaderboard__intro { position: sticky; top: 120px; padding-top: 18px; }
.contestLeaderboard__intro .contestTitle { margin-bottom: 28px; }
.contestLeaderboard__intro > p { max-width: 380px; color: #e0e1ef; font-size: .95rem; }
.contestLiveDot { width: 7px; height: 7px; border-radius: 50%; background: var(--contest-cyan); box-shadow: 0 0 12px var(--contest-cyan); }
.contestPage .contestLeaderboard__refresh { margin-top: 17px; color: #a4a8c9; font-size: .73rem; }
.contestPixelWall { position: absolute; z-index: -1; top: 35px; left: -20px; display: grid; width: min(760px, 80%); max-height: calc(100% - 35px); overflow: hidden; grid-template-columns: repeat(12, 1fr); grid-auto-rows: max-content; gap: 5px; opacity: .3; transform: perspective(900px) rotateY(12deg); mask-image: radial-gradient(ellipse at 35% 45%, #000 10%, transparent 72%); }
.contestPixelWall span { aspect-ratio: 1; background: var(--pixel-color, #25203e); animation: contestPixelPulse 5.4s ease-in-out var(--pixel-delay, -2.7s) infinite; }
.contestPixelWall span:is(:nth-child(96n + 2), :nth-child(96n + 20), :nth-child(96n + 25), :nth-child(96n + 48), :nth-child(96n + 53), :nth-child(96n + 67), :nth-child(96n + 81), :nth-child(96n + 91)) { --pixel-color: var(--contest-pink); --pixel-delay: -1.8s; }
.contestPixelWall span:is(:nth-child(96n + 6), :nth-child(96n + 24), :nth-child(96n + 34), :nth-child(96n + 39), :nth-child(96n + 58), :nth-child(96n + 63), :nth-child(96n + 73), :nth-child(96n + 96)) { --pixel-color: var(--contest-purple); --pixel-delay: -3.6s; }
.contestPixelWall span:is(:nth-child(96n + 11), :nth-child(96n + 16), :nth-child(96n + 30), :nth-child(96n + 44), :nth-child(96n + 49), :nth-child(96n + 72), :nth-child(96n + 77), :nth-child(96n + 87)) { --pixel-color: var(--contest-cyan); --pixel-delay: -.9s; }
.contestPixelWall span:nth-child(5n) { animation-duration: 6.8s; }
.contestPixelWall span:nth-child(7n) { --pixel-delay: -4.5s; }
.contestPixelWall span:nth-child(11n) { --pixel-delay: -.4s; }
.contestPixelWall span:nth-child(13n) { animation-duration: 4.7s; }
@keyframes contestPixelPulse {
    0%, 100% { opacity: .16; }
    50% { opacity: 1; }
}
.contestRanking { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contestRanking__row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 68px; padding: 15px 20px; border: 1px solid #30355c; border-radius: 3px; background: linear-gradient(105deg, #18234d, #1d1738); }
.contestRanking__row--podium { border-color: var(--rank-accent); box-shadow: inset 0 0 24px var(--rank-glow), 0 0 30px var(--rank-glow); }
.contestRanking__row--1 { --rank-accent: var(--contest-pink); --rank-glow: rgb(237 100 245 / 22%); }
.contestRanking__row--2 { --rank-accent: var(--contest-purple); --rank-glow: rgb(164 138 255 / 22%); }
.contestRanking__row--3 { --rank-accent: var(--contest-cyan); --rank-glow: rgb(58 243 240 / 22%); }
.contestRanking__row:nth-child(n + 10):nth-child(-n + 12) { border: 0; border-left: 3px solid #ee6371; }
.contestRanking__position { color: var(--rank-accent, #fff); font-size: 1.45rem; font-weight: 900; line-height: 1; }
.contestRanking__name { overflow-wrap: anywhere; font-size: .95rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.contestPage .contestFinalistBadge { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid currentColor; border-radius: 2px; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.15; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.contestRanking__row--podium .contestFinalistBadge { color: var(--rank-accent); }
.contestRanking__time { grid-column: 4; color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contestRankingEmpty { padding: 50px 28px; border: 1px solid #343154; border-radius: 4px; background: rgb(25 24 56 / 85%); text-align: center; }
.contestRankingEmpty > i { display: block; margin-bottom: 18px; color: var(--contest-pink); font-size: 2.5rem; }
.contestPage .contestRankingEmpty h3 { font-size: 1.35rem; font-weight: 800; }
.contestPage .contestRankingEmpty p { margin-block: 15px 22px; color: var(--contest-muted); font-size: .9rem; }
.contestEntry { background: radial-gradient(ellipse at 0% 50%, #13398f 0%, #14245d 35%, #15132d 90%); }
.contestEntry__inner { max-width: 980px; }
.contestEntry__heading { padding-left: 24px; border-left: 3px solid var(--contest-pink); }
.contestEntry__heading .contestTitle { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.contestPage .contestEntry__heading p { margin-top: 15px; color: #e0e1ef; }
.contestEntry__dates { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 15px; color: var(--contest-pink); font-size: clamp(1.2rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.contestSteps { position: relative; display: grid; gap: 30px; margin: 48px 0; padding: 0 0 0 24px; border-left: 2px solid; border-image: linear-gradient(var(--contest-pink), var(--contest-purple), var(--contest-cyan)) 1; list-style: none; }
.contestSteps li { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 22px; min-height: 80px; }
.contestSteps__number { color: var(--contest-pink); font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.contestSteps li:nth-child(2) .contestSteps__number { color: var(--contest-purple); }
.contestSteps li:nth-child(3) .contestSteps__number { color: var(--contest-cyan); }
.contestSteps p { max-width: 580px; font-size: 1.05rem; }
.contestEntry__cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px; border: 1px solid var(--contest-pink); border-radius: 3px; background: rgb(8 10 23 / 85%); box-shadow: 4px 4px 0 rgb(237 100 245 / 15%); }
.contestEntry__cta > div { max-width: 420px; }
.contestPage .contestEntry__cta h3 { font-size: 1.35rem; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
.contestPage .contestEntry__cta p { margin-top: 12px; color: var(--contest-muted); font-size: .86rem; }
.contestEntry__cta .contestButton { flex-shrink: 0; font-size: .7rem; }
.contestPage .contestEntry__tip { display: flex; align-items: center; gap: 18px; margin-top: 38px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 1.2rem; font-weight: 800; line-height: 1.45; text-transform: uppercase; }
.contestEntry__tip > i { color: var(--contest-pink); font-size: 2rem; }
.contestFinal { isolation: isolate; min-height: 610px; display: flex; align-items: center; }
.contestFinal__visual { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(8 10 23 / 95%), rgb(8 10 23 / 75%)), url("../images/pixity_hero.jpg") center 65% / cover; }
.contestFinal__inner { padding-block: 10px; }
.contestFinal__heading { padding-left: 27px; border-left: 3px solid var(--contest-cyan); }
.contestFinal__heading .contestTitle { color: var(--contest-pink); font-size: clamp(3rem, 7vw, 6.5rem); }
.contestFinal__heading .contestFinal__dot { display: inline; color: #fff; }
.contestFinal__date { display: block; margin-top: 12px; font-size: clamp(2.4rem, 6.3vw, 5.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -.04em; }
.contestPage .contestFinal__time { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; color: var(--contest-cyan); font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; }
.contestPage .contestFinal__pending { margin-top: 18px; color: var(--contest-muted); }
.contestFinal__details { max-width: 590px; margin-top: 32px; }
.contestFinal__details p { color: #e0e1ef; font-size: 1rem; }
.contestPage .contestFinal__details p + p { margin-top: 15px; }
@keyframes contestScrollHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@media screen and (prefers-reduced-motion: no-preference) {
    .contestPage .contestReveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--contest-reveal-delay, 0ms); }
    .contestPage .contestReveal.is-visible, .contestPage .contestReveal:focus-within { opacity: 1; transform: translateY(0); }
    .contestHero__scroll > i { animation: contestScrollHint 2.8s ease-in-out infinite; }
    .contestButton:hover { transform: translateY(-2px); }
    .contestButton:hover > i { transform: translateX(3px); }
}
@media (max-width: 991.98px) {
    .contestSection { padding-block: 75px; }
    .contestHero { min-height: 650px; }
    .contestHero__visual { left: 10%; }
    .contestLeaderboard__layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
    .contestLeaderboard__intro { position: static; padding-top: 0; }
    .contestLeaderboard__intro > p { max-width: 620px; }
    .contestLeaderboard__intro .contestTitle > span { display: inline; }
    .contestPixelWall { width: 100%; }
    .contestEntry__cta { align-items: flex-start; flex-direction: column; gap: 22px; }
    .contestEntry__cta > div { max-width: 100%; }
}
@media (max-width: 575.98px) {
    .contestShell { width: calc(100% - 36px); }
    .contestSection { padding-block: 58px; }
    .contestEyebrow { margin-bottom: 18px; font-size: .65rem; }
    .contestHero { min-height: 640px; }
    .contestHero__inner { padding-block: 65px 90px; }
    .contestHero__visual { left: 0; }
    .contestHero__visual img { object-position: 60% center; opacity: .5; }
    .contestHero__visual::after { background: linear-gradient(90deg, rgb(8 10 23 / 80%), rgb(8 10 23 / 30%)), linear-gradient(0deg, #080a17, transparent 60%); }
    .contestPage .contestHero h1 { font-size: clamp(2.7rem, 12vw, 4.8rem); }
    .contestPage .contestHero__numbers { gap: 9px; margin-top: 24px; font-size: 1.02rem; }
    .contestPage .contestHero__description { font-size: .9rem; }
    .contestHero__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
    .contestButton { min-height: 50px; padding: 13px 15px; font-size: .72rem; }
    .contestHero__scroll { bottom: 22px; height: 38px; }
    .contestLeaderboard__intro .contestTitle { margin-bottom: 22px; }
    .contestRanking { gap: 7px; }
    .contestRanking__row { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 5px 9px; min-height: 68px; padding: 12px; }
    .contestRanking__position { grid-row: 1 / 3; font-size: 1.2rem; }
    .contestRanking__name { grid-column: 2; font-size: .78rem; }
    .contestRanking__row .contestFinalistBadge { grid-column: 2 / 4; grid-row: 2; justify-self: start; padding: 3px 4px; font-size: .6rem; letter-spacing: .02em; }
    .contestRanking__time { grid-column: 3; grid-row: 1; font-size: .95rem; }
    .contestEntry__heading { padding-left: 17px; }
    .contestEntry__dates { gap: 6px 10px; font-size: 1.25rem; }
    .contestSteps { gap: 24px; margin-block: 34px; padding-left: 16px; }
    .contestSteps li { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; min-height: 65px; }
    .contestSteps__number { font-size: 2.7rem; }
    .contestSteps p { font-size: .9rem; }
    .contestEntry__cta { padding: 22px 18px; }
    .contestPage .contestEntry__cta h3 { font-size: 1.1rem; }
    .contestEntry__cta .contestButton { width: 100%; }
    .contestPage .contestEntry__tip { gap: 12px; margin-top: 30px; padding-top: 24px; font-size: .95rem; }
    .contestFinal { min-height: 530px; }
    .contestFinal__heading { padding-left: 18px; }
    .contestFinal__details p { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .contestPage *, .contestPage *::before, .contestPage *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
