:root {
    --party-blue: #09a8ff;
    --party-sky: #31c7ff;
    --party-purple: #7430c4;
    --party-green: #6bc52b;
    --party-pink: #ff3e83;
    --party-yellow: #ffd21f;
    --party-ink: #15151d;
    --party-stone: #33343a;
    --party-paper: #fff8e8;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--party-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255,255,255,.95) 0 38px, transparent 39px),
        radial-gradient(circle at 77% 16%, rgba(255,255,255,.9) 0 50px, transparent 51px),
        linear-gradient(180deg, #12a7ff 0%, #1bc8ff 46%, #ffb266 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skyline-bg {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42vh;
    pointer-events: none;
    opacity: .52;
    background:
        linear-gradient(to top, rgba(35,31,77,.45), rgba(35,31,77,.0)),
        repeating-linear-gradient(90deg, rgba(48,43,108,.45) 0 70px, rgba(29,46,116,.45) 70px 75px, transparent 75px 82px),
        linear-gradient(90deg, transparent 0 8%, rgba(32,50,132,.45) 8% 13%, transparent 13% 19%, rgba(32,50,132,.4) 19% 25%, transparent 25% 35%, rgba(70,60,142,.42) 35% 44%, transparent 44% 55%, rgba(31,38,110,.44) 55% 63%, transparent 63% 73%, rgba(33,48,125,.38) 73% 80%, transparent 80% 100%);
    filter: saturate(1.2);
}

.page-wrap {
    position: relative;
    width: min(1120px, calc(100% - 26px));
    margin: 0 auto;
    padding: 28px 0 16px;
}

.hero-card,
.form-card,
.admin-card,
.admin-login-card {
    border: 4px solid #111;
    border-radius: 28px;
    background: rgba(255, 250, 232, .95);
    overflow: hidden;
}

.hero-card {
    background: linear-gradient(135deg, rgba(255,248,232,.98), rgba(255,255,255,.9) 58%, rgba(105,198,42,.9));
}

.burst {
    display: inline-block;
    padding: .45rem .9rem;
    border: 4px solid #111;
    transform: rotate(-2deg);
    background: var(--party-yellow);
    color: #2a5f00;
    font-weight: 1000;
    font-size: clamp(1.1rem, 3.4vw, 2rem);
    letter-spacing: .03em;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0,0,0,.18);
    box-shadow: 5px 5px 0 #111;
}

.small-burst {
    font-size: 1.05rem;
    box-shadow: 3px 3px 0 #111;
}

.comic-title,
.admin-title {
    font-weight: 1000;
    letter-spacing: -.06em;
    line-height: .93;
    text-transform: uppercase;
    color: var(--party-purple);
    -webkit-text-stroke: 2px #111;
    paint-order: stroke fill;
    text-shadow: 5px 6px 0 rgba(0,0,0,.24);
}

.comic-title {
    font-size: clamp(3.1rem, 11vw, 6.8rem);
}

.comic-title span {
    color: var(--party-pink);
}

.small-title {
    font-size: clamp(2.2rem, 9vw, 4.5rem);
}

.lead {
    max-width: 44rem;
    font-weight: 700;
}

.event-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.event-strip span,
.mini-icons span {
    display: inline-flex;
    align-items: center;
    border: 3px solid #111;
    border-radius: 999px;
    background: #fff;
    padding: .45rem .75rem;
    font-weight: 900;
    box-shadow: 3px 3px 0 rgba(0,0,0,.88);
}

.mini-icons {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.2rem;
}

.mini-icons span:nth-child(1) { background: #ffe071; }
.mini-icons span:nth-child(2) { background: #ff5e8c; }
.mini-icons span:nth-child(3) { background: #c68cff; }
.mini-icons span:nth-child(4) { background: #4fe0d6; }

.hero-art {
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    background:
        radial-gradient(circle at 60% 28%, rgba(255,255,255,.4) 0 66px, transparent 67px),
        linear-gradient(180deg, rgba(12,172,255,.22), rgba(108,197,44,.30));
}

.character-img {
    width: min(92%, 420px);
    max-height: 610px;
    object-fit: cover;
    object-position: center top;
    border-left: 4px solid #111;
    border-top: 4px solid #111;
    border-radius: 24px 0 0 0;
    box-shadow: -6px -6px 0 rgba(0,0,0,.22);
}

.form-card,
.admin-card,
.admin-login-card {
    padding: clamp(1.1rem, 4vw, 2rem);
}

.form-label {
    font-weight: 850;
}

.form-control,
.form-select {
    border: 3px solid #111;
    border-radius: 16px;
    background-color: #fffdf7;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--party-purple);
    box-shadow: 0 0 0 .25rem rgba(116, 48, 196, .18);
}

.rsvp-toggle {
    flex-wrap: wrap;
    gap: .65rem;
}

.rsvp-toggle .btn {
    border: 3px solid #111;
    border-radius: 18px !important;
    font-weight: 950;
    box-shadow: 3px 3px 0 #111;
}

.btn-party {
    border: 4px solid #111;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--party-pink), var(--party-purple));
    color: #fff;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: 5px 5px 0 #111;
}

.btn-party:hover,
.btn-party:focus {
    border-color: #111;
    background: linear-gradient(135deg, var(--party-green), var(--party-purple));
    color: #fff;
    transform: translate(-1px, -1px);
}

.manhole-card {
    min-height: 100%;
    padding: 1.2rem;
    border: 8px solid #111;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.12) 0 4px, transparent 5px) 0 0 / 34px 34px,
        linear-gradient(145deg, #55565d, #212226 72%);
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.13), 5px 5px 0 rgba(0,0,0,.35);
}

.manhole-card h2 {
    color: var(--party-yellow);
    font-weight: 1000;
    text-transform: uppercase;
    -webkit-text-stroke: 1px #111;
}

.manhole-card p {
    border-bottom: 1px solid rgba(255,255,255,.25);
    padding-bottom: .55rem;
}

.bot-field {
    position: absolute !important;
    left: -10000px !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.comic-alert {
    border: 3px solid #111;
    border-radius: 18px;
    font-weight: 800;
}

.admin-login-card {
    max-width: 520px;
    margin: 8vh auto 0;
    background: rgba(255, 250, 232, .97);
}

.admin-card {
    background: rgba(255, 250, 232, .97);
}

.admin-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.summary-tile {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border: 3px solid #111;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    font-weight: 900;
    box-shadow: 4px 4px 0 #111;
}

.summary-tile span {
    display: block;
    color: var(--party-purple);
    font-size: 2.2rem;
    font-weight: 1000;
    line-height: 1;
}

.admin-table-wrap {
    border: 3px solid #111;
    border-radius: 18px;
    background: #fff;
}

.admin-table {
    margin: 0;
}

.admin-table thead th {
    background: #15151d;
    color: #fff;
    white-space: nowrap;
}

.notes-cell {
    min-width: 190px;
    max-width: 340px;
}

.footer-note {
    position: relative;
}

.footer-link {
    color: rgba(0,0,0,.55);
    text-decoration: none;
    font-weight: 700;
}

.footer-link:hover {
    color: #000;
}

@media (max-width: 991px) {
    .hero-art {
        min-height: 270px;
        align-items: center;
        padding: 0 1rem 1rem;
    }

    .character-img {
        width: min(94%, 360px);
        max-height: 340px;
        border: 4px solid #111;
        border-radius: 22px;
        object-fit: cover;
    }
}

@media (max-width: 575px) {
    .page-wrap {
        width: min(100% - 16px, 1120px);
        padding-top: 12px;
    }

    .hero-card,
    .form-card,
    .admin-card,
    .admin-login-card {
        border-width: 3px;
        border-radius: 20px;
    }

    .comic-title {
        -webkit-text-stroke: 1px #111;
        text-shadow: 3px 4px 0 rgba(0,0,0,.22);
    }

    .event-strip span,
    .mini-icons span {
        width: 100%;
        justify-content: center;
    }

    .rsvp-toggle,
    .rsvp-toggle .btn {
        width: 100%;
    }
}
