:root {
    --gate-cream: #fffaf2;
    --gate-gold: #b98543;
    --gate-gold-light: #d7ae70;
    --gate-brown: #2b211b;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    background: #1a120d;
    color: var(--gate-brown);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.gate-page {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
    isolation: isolate;
}

.gate-background,
.gate-background::before,
.gate-background::after {
    position: absolute;
    inset: 0;
    content: "";
}

.gate-background {
    z-index: -3;
    background: url("../images/hero.png") center / cover no-repeat;
    transform: scale(1.035);
    filter: blur(8px);
}

.gate-background::before {
    background:
        linear-gradient(to bottom, rgba(255, 250, 242, .94), rgba(255, 250, 242, .68) 42%, rgba(43, 33, 27, .34) 100%),
        rgba(255, 250, 242, .18);
}

.gate-background::after {
    background: radial-gradient(circle at center, rgba(255, 250, 242, .10), rgba(22, 14, 9, .32));
}

.gate-card {
    position: relative;
    width: min(650px, 100%);
    max-height: calc(100svh - 32px);
    overflow: auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(185, 133, 67, .75);
    border-radius: 18px;
    background: rgba(255, 250, 242, .90);
    box-shadow: 0 30px 90px rgba(24, 15, 9, .34);
    text-align: center;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.gate-card::after {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(185, 133, 67, .35);
    border-radius: 12px;
    content: "";
    pointer-events: none;
}

.gate-ornament {
    position: relative;
    width: min(390px, 86%);
    margin: 0 auto 20px;
}

.gate-ornament img {
    display: block;
    width: 100%;
    height: auto;
}

.gate-heart {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    color: var(--gate-gold);
    font-size: 30px;
    line-height: 1;
}

.gate-kicker {
    margin: 4px 0 10px;
    font-size: 12px;
    letter-spacing: 5px;
}

.gate-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 9vw, 72px);
    font-weight: 500;
    letter-spacing: 7px;
    line-height: 1;
}

.gate-subtitle {
    max-width: 470px;
    margin: 18px auto 24px;
    color: #62584f;
    font-size: 14px;
    line-height: 1.65;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 auto 26px;
}

.countdown-item {
    padding: 14px 8px 12px;
    border: 1px solid rgba(185, 133, 67, .35);
    border-radius: 10px;
    background: rgba(255, 255, 255, .52);
}

.countdown-value {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--gate-gold);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 600;
    line-height: .9;
}

.countdown-label {
    display: block;
    margin-top: 8px;
    color: #73675d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.gate-date {
    margin: -8px 0 24px;
    color: #74685f;
    font-size: 12px;
    letter-spacing: 1px;
}

.gate-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.gate-password {
    min-width: 0;
    height: 52px;
    border: 1px solid rgba(185, 133, 67, .62);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    padding: 0 16px;
    color: var(--gate-brown);
    font: inherit;
    outline: none;
}

.gate-password:focus {
    border-color: var(--gate-gold);
    box-shadow: 0 0 0 3px rgba(185, 133, 67, .14);
}

.gate-submit {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    background: linear-gradient(135deg, #c99954, #a87334);
    color: white;
    font: 600 12px/1 "Montserrat", Arial, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
}

.gate-error {
    max-width: 480px;
    margin: 12px auto 0;
    padding: 11px 14px;
    border: 1px solid #e3aaaa;
    border-radius: 7px;
    background: #fbeaea;
    color: #963535;
    font-size: 13px;
}

.gate-note {
    margin: 18px 0 0;
    color: #82756b;
    font-size: 11px;
}

@media (max-width: 650px) {
    .gate-page {
        padding: 10px;
    }

    .gate-background {
        background-image: url("../images/hero-mobile.png");
    }

    .gate-card {
        max-height: calc(100svh - 20px);
        padding: 28px 18px 24px;
        border-radius: 12px;
    }

    .gate-ornament {
        width: min(330px, 90%);
        margin-bottom: 17px;
    }

    .gate-kicker {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .countdown {
        gap: 6px;
    }

    .countdown-item {
        padding: 12px 4px 10px;
    }

    .countdown-label {
        font-size: 8px;
        letter-spacing: .6px;
    }

    .gate-form {
        grid-template-columns: 1fr;
    }

    .gate-submit {
        width: 100%;
    }
}
