:root {
    --bg: #07050d;
    --panel: rgba(18, 14, 29, 0.88);
    --panel-strong: rgba(22, 17, 36, 0.96);
    --text: #ffffff;
    --muted: #d9d2e7;
    --purple: #b044ff;
    --purple-soft: #dfb3ff;
    --green: #7cff22;
    --green-strong: #53e300;
    --danger: #ff6b8a;
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(124, 255, 34, 0.17), transparent 32rem),
        radial-gradient(circle at 86% 16%, rgba(176, 68, 255, 0.26), transparent 36rem),
        radial-gradient(circle at 50% 100%, rgba(124, 255, 34, 0.13), transparent 28rem),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    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 bottom, rgba(0,0,0,.8), transparent 85%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 48px;
}

.compact-shell {
    min-height: 100vh;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    filter: drop-shadow(0 0 22px rgba(176, 68, 255, .55));
}

.brand span {
    line-height: 1.02;
}

.brand strong {
    display: block;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    letter-spacing: .02em;
}

.brand em {
    display: block;
    color: var(--green);
    font-style: normal;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .76rem;
}

.ig-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--purple-soft);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 24px rgba(176, 68, 255, .16);
    font-weight: 800;
    white-space: nowrap;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 32px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    background: linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035));
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -190px;
    border-radius: 50%;
    border: 2px solid rgba(124,255,34,.30);
    box-shadow: 0 0 70px rgba(124,255,34,.16), inset 0 0 80px rgba(176,68,255,.12);
    pointer-events: none;
}

.hero-copy,
.hero-card,
.entry-section,
.thankyou-card {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: .98;
    letter-spacing: -.04em;
}

.hero h1 {
    font-size: clamp(2.55rem, 8vw, 5.75rem);
    max-width: 760px;
}

.hero h1 span {
    display: block;
    color: var(--green);
    text-shadow: 0 0 22px rgba(124,255,34,.32);
}

.value-badge {
    display: inline-flex;
    margin: 22px 0 0;
    padding: 10px 16px;
    border-radius: 999px;
    color: #100918;
    background: linear-gradient(135deg, var(--green), #d8ff74);
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 0 36px rgba(124,255,34,.32);
}

.hero-text {
    max-width: 640px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(1.03rem, 2.2vw, 1.22rem);
    line-height: 1.65;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-points span {
    border: 1px solid var(--border);
    background: rgba(8, 7, 15, .46);
    border-radius: 999px;
    padding: 9px 12px;
    color: #f2ebff;
    font-weight: 750;
    font-size: .88rem;
}

.hero-card {
    min-height: 620px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background: #111;
    box-shadow: 0 22px 70px rgba(0,0,0,.36);
}

.hero-person {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.hero-logo {
    position: absolute;
    width: min(210px, 42%);
    right: 18px;
    bottom: 18px;
    border-radius: 50%;
    filter: drop-shadow(0 0 32px rgba(124,255,34,.52));
}

.entry-section {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 28px;
    margin-top: 34px;
    align-items: start;
}

.form-intro {
    position: sticky;
    top: 18px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.form-intro h2,
.thankyou-card h1 {
    font-size: clamp(2.05rem, 5vw, 3.5rem);
}

.form-intro p:not(.eyebrow),
.thankyou-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.04rem;
}

.entry-form {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 16px;
}

label span {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 850;
    line-height: 1.35;
}

label b {
    color: var(--green);
}

label small {
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    color: #fff;
    background: rgba(255,255,255,.065);
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,.42);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(124,255,34,.72);
    box-shadow: 0 0 0 4px rgba(124,255,34,.13), 0 0 26px rgba(176,68,255,.20);
    background: rgba(255,255,255,.095);
}

.injury-details {
    display: none;
}

.injury-details.is-visible {
    display: block;
}

.counter {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    text-align: right;
}

.privacy-note,
.mini-note {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    padding: 0 22px;
    cursor: pointer;
    color: #120817;
    background: linear-gradient(135deg, var(--green), #e0ff81);
    box-shadow: 0 16px 38px rgba(124,255,34,.22), inset 0 -2px 0 rgba(0,0,0,.18);
    font: inherit;
    font-weight: 1000;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,107,138,.42);
    background: rgba(255,107,138,.12);
    color: #ffe8ee;
}

.alert ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.thankyou-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 120px);
}

.thankyou-card {
    width: min(860px, 100%);
    padding: clamp(24px, 5vw, 44px);
    border-radius: calc(var(--radius) + 8px);
    background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.thankyou-logo {
    width: 132px;
    margin: 0 auto 14px;
    filter: drop-shadow(0 0 34px rgba(176, 68, 255, .50));
}

.follow-card {
    margin: 28px auto 24px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(8,7,15,.52);
    border: 1px solid var(--border);
}

.follow-card h2 {
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    margin-bottom: 10px;
}

.ig-btn {
    width: auto;
    min-width: 240px;
    margin-top: 8px;
}

.instagram-embed {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 920px) {
    .hero,
    .entry-section {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: auto;
        max-height: 760px;
    }

    .hero-person {
        min-height: auto;
        max-height: 760px;
    }

    .form-intro {
        position: static;
    }
}

@media (max-width: 680px) {
    .site-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .site-header {
        align-items: flex-start;
        padding-bottom: 18px;
    }

    .brand img {
        width: 56px;
        height: 56px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand em {
        font-size: .66rem;
        letter-spacing: .13em;
    }

    .ig-pill {
        display: none;
    }

    .hero,
    .entry-form,
    .form-intro,
    .thankyou-card {
        padding: 20px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 15vw, 4.4rem);
    }

    .hero-points span {
        width: 100%;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .hero-logo {
        width: 150px;
    }
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .94rem;
}

.site-footer strong,
.site-footer span,
.site-footer p {
    display: block;
    margin: 0;
}

.site-footer strong {
    color: var(--text);
    letter-spacing: .02em;
}

.site-footer span,
.site-footer p {
    margin-top: 4px;
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--purple-soft);
    font-weight: 800;
    text-decoration: none;
}

.rules-wrap {
    display: block;
}

.rules-card {
    padding: clamp(24px, 5vw, 46px);
    border-radius: calc(var(--radius) + 8px);
    background: linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035));
    border: 1px solid var(--border);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
}

.rules-card h1 {
    max-width: 920px;
    font-size: clamp(2.2rem, 7vw, 4.8rem);
    color: var(--green);
    text-shadow: 0 0 22px rgba(124,255,34,.22);
}

.rules-summary {
    max-width: 860px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.7;
}

.rules-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 34px;
}

.rules-meta span {
    padding: 14px;
    border-radius: 18px;
    background: rgba(8,7,15,.52);
    border: 1px solid var(--border);
    color: var(--muted);
    line-height: 1.45;
}

.rules-meta strong {
    color: var(--text);
}

.rules-card section {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.rules-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.14;
}

.rules-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.rules-card a {
    color: var(--green);
    font-weight: 800;
}

.rules-updated {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: .92rem;
}

@media (max-width: 680px) {
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
        width: 100%;
    }

    .footer-links a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .rules-card {
        padding: 20px;
        border-radius: 24px;
    }

    .rules-meta {
        grid-template-columns: 1fr;
    }
}
