:root {
    --pink: #ff5fa2;
    --pink-dark: #e83e8c;
    --pink-light: #fff0f7;
    --white: #ffffff;
    --black: #1f1f1f;
    --muted: #777777;
    --shadow: 0 20px 60px rgba(232, 62, 140, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--black);
    background: var(--pink-light);
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 95, 162, 0.25), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.8), transparent 25%),
        linear-gradient(135deg, #fff0f7, #ffe0ef);
    z-index: -1;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: auto;
}
.hidden {
    display: none;
}

.join-actions {
    position: relative;
    min-height: 90px;
    margin-top: 24px;
}

.btn-no {
    position: absolute;
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: white;
    font-weight: 800;
    cursor: pointer;
    left: 50%;
    top: 0;
    transition: 0.18s;
}

.big-gift {
    border: none;
    background: var(--white);
    border-radius: 30px;
    font-size: 90px;
    padding: 40px 70px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.25s;
    margin: 30px 0;
}

.big-gift:hover {
    transform: translateY(-6px) scale(1.04);
}
.hero {
    padding: 70px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--white);
    color: var(--pink-dark);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(42px, 7vw, 86px);
    margin: 24px 0 0;
    color: var(--pink-dark);
    line-height: 1;
}

.hero h2 {
    font-size: clamp(30px, 5vw, 58px);
    margin: 10px 0;
}

.age {
    font-size: 18px;
    color: var(--muted);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.countdown div {
    background: var(--white);
    border-radius: 20px;
    padding: 18px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.countdown span {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--pink-dark);
}

.countdown small {
    color: var(--muted);
}

.btn-main {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
}

.photo-frame {
    background: var(--white);
    padding: 14px;
    border-radius: 36px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.photo-frame img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 28px;
}

.sparkle {
    position: absolute;
    right: -10px;
    top: -20px;
    font-size: 54px;
}

.section {
    padding: 46px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card,
.invite-box,
.ticket,
.game-box {
    background: rgba(255,255,255,0.88);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.info-card span {
    font-size: 34px;
}

.info-card h3 {
    margin-bottom: 8px;
}

.info-card p {
    color: var(--muted);
}

.pink-section {
    background: rgba(255, 255, 255, 0.35);
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 34px;
    color: var(--pink-dark);
    margin-bottom: 8px;
}

.slider {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
    background: var(--white);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    font-size: 34px;
    cursor: pointer;
}

.prev {
    left: 16px;
}

.next {
    right: 16px;
}

.invite-box {
    text-align: center;
    max-width: 680px;
    margin: auto;
}

.checkin-form {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.checkin-form input {
    flex: 1;
    padding: 15px 18px;
    border-radius: 999px;
    border: 1px solid #ffd0e4;
    outline: none;
    font-size: 16px;
}

.checkin-form button {
    padding: 15px 22px;
    border-radius: 999px;
    border: none;
    background: var(--pink-dark);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.alert {
    margin-top: 16px;
    color: #d6004c;
    font-weight: 700;
}

.ticket {
    max-width: 720px;
    margin: auto;
    text-align: center;
    border: 2px dashed var(--pink);
}

.ticket h2 {
    font-size: 36px;
    color: var(--pink-dark);
}

.ticket h3 {
    font-size: 30px;
}

.ticket-line {
    height: 1px;
    background: #ffd0e4;
    margin: 24px 0;
}

footer {
    text-align: center;
    padding: 28px;
    color: var(--muted);
}

.game-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.game-box {
    text-align: center;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 620px;
    margin: 28px auto;
}

.gift {
    border: none;
    background: var(--white);
    border-radius: 24px;
    font-size: 56px;
    padding: 28px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.gift:hover {
    transform: translateY(-6px) scale(1.03);
}

.gift.opened {
    opacity: 0.55;
    pointer-events: none;
}

.prize-result {
    min-height: 44px;
    font-size: 22px;
    font-weight: 800;
    color: var(--pink-dark);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 36px;
    }

    .hero-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .photo-frame img {
        height: 360px;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider {
        height: 320px;
    }

    .checkin-form {
        flex-direction: column;
    }

    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.game-stats {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.game-stats div {
    background: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.fall-game {
    position: relative;
    height: 430px;
    max-width: 760px;
    margin: 24px auto;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 95, 162, .18), transparent 30%),
        linear-gradient(180deg, #fff, #fff0f7);
    border: 2px dashed #ffc2dc;
    box-shadow: var(--shadow);
}

#startGameBtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.falling-gift {
    position: absolute;
    top: -70px;
    border: none;
    background: #fff;
    border-radius: 22px;
    width: 58px;
    height: 58px;
    font-size: 34px;
    cursor: pointer;
    box-shadow: var(--shadow);
    animation-name: giftFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.falling-gift:active {
    transform: scale(.9);
}

@keyframes giftFall {
    from {
        top: -70px;
        transform: rotate(0deg);
    }

    to {
        top: 470px;
        transform: rotate(360deg);
    }
}

.leaderboard {
    max-width: 760px;
    margin: 34px auto;
    background: rgba(255,255,255,.88);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.leaderboard h2 {
    margin-top: 0;
    color: var(--pink-dark);
}

.leaderboard table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.leaderboard th,
.leaderboard td {
    padding: 12px;
    border-bottom: 1px solid #ffd3e7;
    text-align: center;
}

.leaderboard th {
    color: var(--pink-dark);
}

@media (max-width: 768px) {
    .fall-game {
        height: 360px;
    }

    .falling-gift {
        width: 52px;
        height: 52px;
        font-size: 30px;
    }
}

.game-finished {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 24px;
}

.rsvp-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.btn-cancel {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.success-note {
    margin: 16px 0;
    color: #0b9f5b;
    font-weight: 800;
}

.plus-one {
    display: inline-block;
    background: #fff0f7;
    color: var(--pink-dark);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
}

.guest-plus {
    color: var(--pink-dark);
    margin-left: 6px;
    font-weight: 900;
}

td {
    font-size: 14px;
}

td strong {
    line-height: 1.25;
}

.link-input {
    width: 340px;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #ffd0e4;
    border-radius: 14px;
    background: #fff9fc;
    outline: none;
}

.btn {
    border: none;
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    background: #e83e8c;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(232, 62, 140, .18);
}

.btn + .btn,
form + form {
    margin-top: 8px;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.small-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gift-chip {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
    background: #e7fff3;
    color: #078b4f;
    padding: 10px 12px;
    border-radius: 16px;
    font-weight: 800;
}

.gift-chip span {
    font-size: 12px;
}

.gift-chip strong {
    color: #034d2c;
    font-size: 13px;
}

.qr {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    border: 6px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.table-wrap {
    background: #fff;
    border-radius: 24px;
    overflow-x: auto;
    box-shadow: 0 15px 45px rgba(232, 62, 140, .18);
}

tbody tr:hover {
    background: #fff7fb;
}