:root {
    --navy-950: #04111f;
    --navy-900: #061a2d;
    --navy-850: #08233a;
    --navy-800: #0b2d48;
    --ice-500: #22b8ef;
    --ice-400: #5bd3ff;
    --ice-200: #bcecff;
    --ice-100: #e8f8ff;
    --white: #fff;
    --ink: #092238;
    --muted: #7191a8;
    --gold: #f6c451;
    --silver: #b9ccda;
    --bronze: #d58c5a;
    --danger: #ec6280;
    --success: #32c494;
    --line: rgba(142, 213, 247, .2);
    --shadow: 0 24px 70px rgba(0, 10, 24, .28);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
    background: var(--navy-950);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(34, 184, 239, .2), transparent 32rem),
        radial-gradient(circle at 90% 35%, rgba(91, 211, 255, .13), transparent 25rem),
        linear-gradient(145deg, var(--navy-950), var(--navy-850));
    color: var(--white);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(120deg, transparent 0 46%, rgba(255,255,255,.08) 46% 47%, transparent 47%),
        linear-gradient(60deg, transparent 0 72%, rgba(34,184,239,.08) 72% 73%, transparent 73%);
    background-size: 180px 180px, 240px 240px;
}

a { color: var(--ice-400); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 6vw, 5.4rem);
    line-height: .94;
    letter-spacing: -.055em;
    text-wrap: balance;
}
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.035em; }
p { color: var(--ice-200); line-height: 1.65; }
code { overflow-wrap: anywhere; color: var(--ice-400); }

.site-header {
    width: min(1240px, calc(100% - 32px));
    height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.brand {
    width: 270px;
    height: 70px;
    display: grid;
    place-items: center start;
}
.brand img {
    width: 235px;
    max-height: 56px;
    object-fit: contain;
    display: block;
}
.site-header nav { display: flex; align-items: center; gap: 8px; }
.nav-link, .text-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ice-200);
    cursor: pointer;
    text-decoration: none;
}
.nav-link { padding: 10px 13px; border-radius: 10px; }
.nav-link:hover { background: rgba(255,255,255,.07); color: white; }

.hero {
    width: min(1240px, calc(100% - 32px));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
}
.hero-content > p { max-width: 670px; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero h1 { text-transform: uppercase; font-style: italic; }
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--ice-400);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-actions, .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.button {
    appearance: none;
    min-height: 48px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
    background: linear-gradient(135deg, var(--ice-400), #1ba9e8);
    color: #03182a;
    box-shadow: 0 12px 30px rgba(34,184,239,.28);
}
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.07); color: white; }
.button.ghost { border-color: transparent; color: var(--ice-300); background: transparent; }
.button.wide { width: 100%; }

.hero-side { display: grid; gap: 18px; }
.prize-card, .countdown-card, .deadline-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(18, 60, 91, .9), rgba(6, 27, 46, .88));
    box-shadow: var(--shadow);
}
.prize-card::after {
    content: "EDI";
    position: absolute;
    right: -15px;
    bottom: -33px;
    color: rgba(255,255,255,.035);
    font-size: 8rem;
    font-weight: 950;
    font-style: italic;
}
.prize-card h2 { max-width: 340px; font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; font-style: italic; }
.countdown-card, .deadline-card { border-color: rgba(91,211,255,.35); }
.countdown-card span, .deadline-card span, .countdown-card small, .deadline-card small {
    display: block;
    color: var(--ice-200);
}
.countdown-card strong, .deadline-card strong {
    display: block;
    margin: 7px 0;
    color: var(--white);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-variant-numeric: tabular-nums;
}

.steps {
    width: min(1240px, calc(100% - 32px));
    margin: -10px auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}
.steps article { padding: 28px; background: rgba(7, 31, 52, .82); }
.steps article + article { border-left: 1px solid var(--line); }
.steps span { color: var(--ice-400); font-weight: 900; }
.steps h3 { margin: 10px 0 5px; font-size: 1.25rem; }
.steps p { margin: 0; font-size: .94rem; }

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 55px 0 90px;
}
.page-shell.narrow { width: min(610px, calc(100% - 32px)); }
.panel {
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 35, 58, .92);
    box-shadow: var(--shadow);
}
.auth-panel h1, .install-shell h1 { font-size: clamp(2rem, 8vw, 3.7rem); }
.check-email-panel { text-align: center; }
.check-email-panel .stack-form { margin-top: 18px; }
.mail-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(91, 211, 255, .45);
    border-radius: 20px;
    background: rgba(34, 184, 239, .12);
    color: var(--ice-400);
    font-size: 2rem;
}
.stack-form { display: grid; gap: 15px; }
.stack-form h2 { margin: 18px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: var(--ice-200); font-size: .88rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    border: 1px solid rgba(130,205,240,.32);
    border-radius: 11px;
    outline: 0;
    background: rgba(3, 19, 33, .75);
    color: var(--white);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--ice-400);
    box-shadow: 0 0 0 3px rgba(34,184,239,.15);
}
.check { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; line-height: 1.45; }
.check input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--ice-500); }
.center { text-align: center; }
.auth-links { margin: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; }
.inline-hidden-form { display: none; margin: 16px 0; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.05); }
.inline-hidden-form.visible { display: grid; gap: 12px; }

.dashboard-head {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}
.dashboard-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.deadline-card { min-width: 285px; padding: 20px 24px; }
.deadline-card strong { font-size: 1.65rem; }
.prediction-form { display: grid; gap: 24px; }
.race-panel {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 34, 56, .94);
}
.race-title { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.race-title h2 { margin: 0; }
.race-title .eyebrow { margin-bottom: 3px; }
.race-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--ice-500);
    color: var(--navy-950);
    font-size: 1.4rem;
    font-weight: 950;
}
.podium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.podium-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(255,255,255,.045);
}
.podium-card > span:not(.medal) { color: var(--ice-200); }
.medal {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 50%;
    color: var(--navy-950);
    font-weight: 950;
}
.position-1 .medal { background: var(--gold); }
.position-2 .medal { background: var(--silver); }
.position-3 .medal { background: var(--bronze); }
.podium-card select { margin-top: 10px; }
.sticky-save {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(91,211,255,.35);
    border-radius: 17px;
    background: rgba(5, 25, 43, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.sticky-save span { display: block; margin-top: 3px; color: var(--muted); font-size: .85rem; }

.site-footer {
    width: min(1240px, calc(100% - 32px));
    min-height: 140px;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
}
.site-footer img {
    width: 175px;
    height: auto;
    filter: none;
    opacity: 1;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
}.site-footer p { margin: 0; font-size: .83rem; }
.site-footer .text-button { font-size: .83rem; }

.rules-dialog {
    width: min(660px, calc(100% - 28px));
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid rgba(91,211,255,.35);
    border-radius: 22px;
    background: var(--navy-850);
    color: white;
    box-shadow: 0 30px 100px rgba(0,0,0,.6);
}
.rules-dialog::backdrop { background: rgba(0, 10, 20, .78); backdrop-filter: blur(5px); }
.dialog-close {
    position: absolute;
    top: 13px;
    right: 16px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.rules-dialog li { margin-bottom: 9px; color: var(--ice-200); }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.score-grid div { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.06); }
.score-grid strong, .score-grid span { display: block; }
.score-grid strong { color: var(--ice-400); }
.score-grid span { margin-top: 5px; color: var(--ice-200); font-size: .82rem; line-height: 1.4; }
.small { font-size: .8rem; }

.toast, .alert {
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 12px;
    line-height: 1.4;
}
.toast {
    position: fixed;
    z-index: 20;
    top: 96px;
    left: 50%;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
    box-shadow: var(--shadow);
    transition: opacity .35s ease, transform .35s ease;
}
.toast.hide { opacity: 0; transform: translate(-50%, -15px); }
.success { border-color: rgba(50,196,148,.6); background: #0d503f; color: #dcfff3; }
.error { border-color: rgba(236,98,128,.65); background: #63263a; color: #ffe7ed; }
.info { border-color: rgba(91,211,255,.45); background: #123d5a; color: #e3f7ff; }

.ranking-table { display: grid; gap: 7px; }
.ranking-row {
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
    align-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
}
.ranking-row strong { color: var(--ice-400); }
.ranking-row.is-current-participant {
    border: 1px solid rgba(91, 211, 255, .55);
    background: rgba(34, 184, 239, .14);
}
.winner-panel {
    border-color: rgba(246, 196, 81, .5);
    background:
        radial-gradient(circle at 90% 10%, rgba(246, 196, 81, .14), transparent 20rem),
        rgba(8, 35, 58, .95);
}
.winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.winner-card {
    min-width: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(246, 196, 81, .38);
    border-radius: 16px;
    background: rgba(246, 196, 81, .08);
}
.winner-card h3 { margin: 2px 0 0; overflow-wrap: anywhere; }
.winner-card small { color: var(--gold); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.winner-card > strong { color: var(--gold); white-space: nowrap; }
.winner-badge {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-950);
    font-weight: 950;
}
.participant-result-grid {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.participant-result-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 35, 58, .92);
}
.participant-result-grid span { display: block; color: var(--ice-200); }
.participant-result-grid strong { display: block; margin-top: 7px; font-size: 1.8rem; }
.participant-standing-panel {
    border-color: rgba(91, 211, 255, .6);
    background:
        radial-gradient(circle at 92% 20%, rgba(34, 184, 239, .18), transparent 18rem),
        rgba(8, 35, 58, .95);
}
.participant-standing-panel h2 { margin-bottom: 22px; font-size: clamp(2.2rem, 7vw, 4rem); }
.participant-standing-panel .participant-result-grid { margin-bottom: 0; }
.mobile-share-only { display: none; }
.share-story-panel {
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 22px;
    border-color: rgba(222, 77, 131, .5);
    background:
        radial-gradient(circle at 90% 20%, rgba(253, 29, 29, .18), transparent 18rem),
        radial-gradient(circle at 70% 90%, rgba(131, 58, 180, .24), transparent 20rem),
        rgba(8, 35, 58, .95);
}
.share-story-panel h2 { margin-bottom: 7px; }
.share-story-panel p { margin: 0; }
.instagram-share {
    color: white;
    background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045);
    box-shadow: 0 12px 30px rgba(193, 53, 132, .28);
}
.instagram-share:disabled { opacity: .65; cursor: wait; }
.share-story-status {
    grid-column: 1 / -1;
    min-height: 1.4em;
    color: var(--ice-200);
}

/* Instalador */
.install-page { padding: 30px 16px; }
.install-shell { width: min(880px, 100%); margin: 0 auto; }
.install-logo {
    width: min(360px, 82vw);
    height: auto;
    display: block;
    margin: 8px auto 24px;
}
.install-form { display: grid; gap: 14px; }
.install-form h2 { margin: 24px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Administrador */
.admin-body { background: #061523; }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    padding: 22px 18px;
    border-right: 1px solid var(--line);
    background: #051421;
}
.admin-sidebar img { width: 190px; height: auto; object-fit: contain; }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 18px; }
.admin-sidebar a { padding: 11px 12px; border-radius: 9px; color: var(--ice-200); text-decoration: none; }
.admin-sidebar a:hover { background: rgba(255,255,255,.06); }
.admin-main { min-height: 100vh; margin-left: 230px; padding: 38px; }
.admin-login-shell {
    width: min(500px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
}
.admin-login-logo { width: 260px; height: auto; margin-bottom: 24px; object-fit: contain; }
.admin-title, .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.admin-title h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.metric-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8,35,58,.9); }
.metric-grid span { display: block; color: var(--ice-200); }
.metric-grid strong { display: block; margin-top: 9px; font-size: 2.3rem; }
.analytics-panel {
    border-color: rgba(91, 211, 255, .38);
    background:
        radial-gradient(circle at 92% 5%, rgba(34, 184, 239, .14), transparent 22rem),
        rgba(8, 35, 58, .95);
}
.analytics-heading { align-items: flex-start; }
.read-only-pill {
    padding: 7px 11px;
    border: 1px solid rgba(50, 196, 148, .45);
    border-radius: 999px;
    background: rgba(50, 196, 148, .1);
    color: #bff9e5;
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}
.analytics-metric-grid {
    margin: 24px 0 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.analytics-metric-grid article {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(142, 213, 247, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
}
.analytics-metric-grid span, .analytics-metric-grid small { display: block; }
.analytics-metric-grid span { color: var(--ice-200); }
.analytics-metric-grid strong { display: block; margin: 7px 0 4px; font-size: 2rem; }
.analytics-metric-grid small { color: var(--muted); line-height: 1.35; }
.participation-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}
.participation-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ice-500), var(--ice-400));
}
.analytics-table-wrap { margin-top: 24px; }
.analytics-table { min-width: 900px; }
.analytics-table td { vertical-align: top; }
.match-count {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ice-500);
    color: var(--navy-950);
    font-size: 1.15rem;
}
.compact-podium { margin: 0; padding: 0; display: grid; gap: 5px; list-style: none; }
.compact-podium li { color: var(--ice-100); }
.compact-podium b { display: inline-block; width: 20px; color: var(--ice-400); }
.matched-participants {
    min-width: 240px;
    white-space: normal;
}
.matched-participants a {
    display: inline-block;
    margin: 0 5px 6px 0;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: var(--ice-100);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}
.matched-participants a:hover { background: rgba(34, 184, 239, .2); color: white; }
.popular-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.popular-pick-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}
.popular-pick-card > span { color: var(--ice-400); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.popular-pick-card h3 { margin: 5px 0 14px; }
.popular-pick-card ol { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.popular-pick-card li { min-width: 0; display: flex; justify-content: space-between; gap: 10px; }
.popular-pick-card li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ice-100); }
.popular-pick-card li strong { color: var(--ice-400); font-size: .82rem; white-space: nowrap; }
.activity-panel {
    display: grid;
    grid-template-columns: 1fr repeat(2, minmax(180px, .45fr));
    gap: 20px;
    align-items: center;
}
.activity-panel h2 { margin: 0; }
.activity-panel > div:not(:first-child) { padding-left: 20px; border-left: 1px solid var(--line); }
.activity-panel > div:not(:first-child) strong { display: block; font-size: 2rem; }
.activity-panel > div:not(:first-child) span { color: var(--ice-200); font-size: .86rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--ice-400); font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-person-link { color: var(--white); font-weight: 800; text-decoration-color: rgba(91, 211, 255, .45); }
.admin-person-link:hover { color: var(--ice-400); }
.participant-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.participant-summary div { min-width: 0; }
.participant-summary span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.participant-summary strong { display: block; overflow-wrap: anywhere; }
.admin-prediction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-podium-list { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.admin-podium-list li {
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    background: rgba(255,255,255,.045);
}
.admin-podium-list span { color: var(--ice-400); font-weight: 900; }
.tab-row { display: flex; gap: 8px; margin-bottom: 15px; }
.tab-row a { padding: 10px 16px; border-radius: 10px; text-decoration: none; background: rgba(255,255,255,.05); }
.tab-row a.active { background: var(--ice-500); color: var(--navy-950); font-weight: 800; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-bottom: 24px; }
.pilot-order-toolbar {
    position: sticky;
    z-index: 5;
    top: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #102a43;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.pilot-order-toolbar strong, .pilot-order-toolbar span { display: block; }
.pilot-order-toolbar span { margin-top: 2px; color: var(--muted); font-size: .84rem; }
.pilot-order-toolbar form { margin: 0; }
.pilot-admin-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.pilot-admin-list > div {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
}
.pilot-admin-list > div.dragging { opacity: .4; }
.pilot-admin-list > div.is-featured {
    border: 1px solid rgba(255, 143, 51, .42);
    background: rgba(255, 111, 31, .09);
}
.pilot-admin-main { min-width: 0; display: flex; align-items: center; gap: 10px; }
.drag-handle {
    border: 0;
    padding: 5px 7px;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
    cursor: grab;
}
.drag-handle:active { cursor: grabbing; }
.pilot-order-number {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--ice-400);
    font-size: .8rem;
}
.pilot-admin-name { min-width: 0; font-weight: 750; }
.pilot-admin-name small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.pilot-admin-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pilot-admin-actions form { margin: 0; }
.pilot-move-actions { display: flex; gap: 3px; }
.pilot-move-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.09);
    color: white;
    cursor: pointer;
}
.pilot-move-button:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.pilot-move-button:disabled { opacity: .25; cursor: default; }
.status-pill {
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    color: white;
    cursor: pointer;
}
.status-pill.on { background: #147657; }
.status-pill.off { background: #643043; }
.status-pill.featured.on { background: #d95f13; }
.status-pill.featured.off { background: #554438; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 52px 0; }
    .hero-side { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .steps article + article { border-left: 0; border-top: 1px solid var(--line); }
    .podium-grid { grid-template-columns: 1fr; }
    .dashboard-head { align-items: stretch; flex-direction: column; }
    .deadline-card { min-width: 0; }
    .admin-sidebar { position: static; width: 100%; }
    .admin-sidebar img { width: 190px; height: auto; }
    .admin-sidebar nav { display: flex; overflow-x: auto; }
    .admin-sidebar a { white-space: nowrap; }
    .admin-main { margin-left: 0; padding: 24px 16px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .analytics-metric-grid, .popular-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-panel { grid-template-columns: 1fr 1fr; }
    .activity-panel > div:first-child { grid-column: 1 / -1; }
    .activity-panel > div:not(:first-child) { padding: 0; border: 0; }
    .participant-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .site-header { height: auto; min-height: 76px; }
    .brand { width: 175px; height: 64px; }
    .brand img { width: 165px; max-height: 48px; }
    .site-header nav { gap: 0; }
    .site-header nav .nav-link:first-child { display: none; }
    .nav-link { padding: 9px 8px; font-size: .84rem; }
    .hero { padding-top: 40px; }
    .hero h1 { font-size: 3.25rem; }
    .hero-side { grid-template-columns: 1fr; }
    .form-grid, .form-grid.three { grid-template-columns: 1fr; }
    .hero-actions .button { width: 100%; }
    .site-footer { flex-direction: column; text-align: center; }
    .score-grid { grid-template-columns: 1fr; }
    .sticky-save { align-items: stretch; flex-direction: column; }
    .sticky-save .button { width: 100%; }
    .auth-links { flex-direction: column; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-grid article { padding: 17px; }
    .metric-grid strong { font-size: 1.8rem; }
    .analytics-heading { gap: 12px; }
    .analytics-metric-grid, .popular-picks-grid { grid-template-columns: 1fr; }
    .analytics-metric-grid strong { font-size: 1.75rem; }
    .activity-panel { grid-template-columns: 1fr; }
    .activity-panel > div:first-child { grid-column: auto; }
    .pilot-admin-list { grid-template-columns: 1fr; }
    .pilot-order-toolbar { align-items: stretch; flex-direction: column; }
    .pilot-order-toolbar .button { width: 100%; }
    .pilot-admin-list > div { align-items: flex-start; flex-direction: column; }
    .pilot-admin-actions { width: 100%; justify-content: flex-end; }
    .participant-summary, .admin-prediction-grid { grid-template-columns: 1fr; }
    .participant-result-grid { grid-template-columns: 1fr; }
    .winner-card { grid-template-columns: auto 1fr; }
    .winner-card > strong { grid-column: 2; }
    .winner-panel .section-heading { align-items: flex-start; flex-direction: column; }
    .admin-title { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
    .mobile-share-only { display: grid; }
    .share-story-panel { grid-template-columns: 1fr; }
    .share-story-panel .button { width: 100%; }
}
