:root {
    --bg: #070707;
    --card: rgba(12, 12, 12, .72);
    --border: rgba(255, 215, 0, .18);
    --border-2: rgba(255, 255, 255, .08);

    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .68);

    --gold: #d7b24a;
    --gold-2: #f3d47a;
    --gold-3: rgba(215, 178, 74, .28);

    --shadow: 0 18px 60px rgba(0, 0, 0, .55);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg__radial {
    position: absolute;
    width: 900px;
    height: 900px;
    filter: blur(50px);
    opacity: .65;
    background: radial-gradient(circle at 30% 30%, var(--gold-3), rgba(0, 0, 0, 0) 62%);
}

.bg__radial--a {
    top: -260px;
    left: -260px;
}

.bg__radial--b {
    bottom: -320px;
    right: -260px;
    background: radial-gradient(circle at 60% 40%, rgba(243, 212, 122, .22), rgba(0, 0, 0, 0) 62%);
}

.bg__grain {
    position: absolute;
    inset: 0;
    opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.wrap {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 48px 18px;
    position: relative;
    z-index: 1;
}

.card {
    width: min(980px, 100%);
    background: linear-gradient(180deg, rgba(18, 18, 18, .82), rgba(10, 10, 10, .72));
    border-radius: var(--radius);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    padding: 2px;
    background: linear-gradient(120deg, rgba(215, 178, 74, .32), rgba(255, 255, 255, .06), rgba(215, 178, 74, .18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5));
}

.brand__text {
    min-width: 0;
}

.brand__name {
    font-family: Cinzel, serif;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: 18px;
    color: rgba(255, 255, 255, .92);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__tag {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(215, 178, 74, .22);
    border-radius: 999px;
    background: rgba(215, 178, 74, .06);
}

.status__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 178, 74, .18);
}

.status__text {
    font-size: 12px;
    color: rgba(255, 255, 255, .84);
}

.content {
    padding: 28px 24px 22px;
}

.title {
    font-family: Cinzel, serif;
    font-size: clamp(22px, 3.2vw, 34px);
    margin: 0 0 10px;
    letter-spacing: .02em;
    line-height: 1.2;
}

.lead {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 72ch;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(215, 178, 74, .0), rgba(215, 178, 74, .22), rgba(255, 255, 255, .08), rgba(215, 178, 74, .22), rgba(215, 178, 74, .0));
    margin: 18px 0;
}

.countdown {
    padding: 2px 0 0;
}

.countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.unit {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px 12px;
    background: rgba(0, 0, 0, .22);
    position: relative;
    overflow: hidden;
}

.unit::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 30% 20%, rgba(215, 178, 74, .22), rgba(0, 0, 0, 0) 60%);
    opacity: .55;
    pointer-events: none;
}

.unit__num {
    font-variant-numeric: tabular-nums;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.unit__label {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .60);
}

.notify {
    margin-top: 6px;
}

.form {
    margin: 0;
}

.form__label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 8px;
}

.form__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.form__input {
    flex: 1;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--text);
    padding: 12px 12px;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

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

.form__input:focus {
    border-color: rgba(215, 178, 74, .40);
    box-shadow: 0 0 0 4px rgba(215, 178, 74, .16);
}

.btn {
    background: linear-gradient(180deg, rgba(243, 212, 122, .95), rgba(215, 178, 74, .95));
    border: 1px solid rgba(0, 0, 0, .55);
    color: #080808;
    font-weight: 700;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .08s ease, filter .2s ease;
    white-space: nowrap;
}

.btn:hover {
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(1px);
}

.form__note {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .58);
    line-height: 1.45;
}

.form__msg {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
}

.form__msg--ok {
    color: rgba(243, 212, 122, .95);
}

.form__msg--err {
    color: rgba(255, 180, 180, .92);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.link {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    border-bottom: 1px dashed rgba(215, 178, 74, .34);
    padding-bottom: 2px;
}

.link:hover {
    color: rgba(243, 212, 122, .96);
    border-bottom-color: rgba(243, 212, 122, .66);
}

.sep {
    color: rgba(255, 255, 255, .35);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px 20px;
    border-top: 1px solid var(--border-2);
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

.footer__right {
    color: rgba(255, 255, 255, .48);
}

@media (max-width: 720px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .countdown__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form__row {
        flex-direction: column;
    }

    .btn {
        height: 44px;
    }
}