* {
    box-sizing: border-box;
}

:root {
    --bg: #070707;
    --panel: rgba(17, 13, 12, .90);
    --panel-2: rgba(25, 17, 14, .93);
    --line: rgba(255, 210, 139, .16);
    --line-strong: rgba(255, 176, 76, .34);
    --text: #f5eee7;
    --muted: #b9aaa0;
    --gold: #e6b15e;
    --gold-light: #ffd99a;
    --red: #a81717;
    --red-bright: #e12828;
    --shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

html {
    background: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(127, 16, 8, .23), transparent 39rem),
        linear-gradient(180deg, #0d0908 0%, #070707 55%, #050505 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .20;
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

a {
    color: inherit;
}

.ambient {
    position: fixed;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: .17;
}

.ambient-one {
    background: #c21818;
    top: -22rem;
    left: -12rem;
}

.ambient-two {
    background: #6f2609;
    right: -18rem;
    bottom: -24rem;
}

.landing {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 86px 0 36px;
    position: relative;
    z-index: 1;
}

.hero {
    max-width: 840px;
    text-align: center;
    margin: 0 auto 52px;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero h1,
.apply-intro h1,
.success-shell h1 {
    margin: 14px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    line-height: .96;
    letter-spacing: -.04em;
    text-shadow: 0 10px 50px rgba(0,0,0,.7);
}

.hero p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.region-card {
    min-height: 570px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 26px;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 35%),
        linear-gradient(145deg, rgba(67,17,12,.72), rgba(12,10,9,.96) 48%, rgba(8,8,8,.98));
    box-shadow: var(--shadow);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
    isolation: isolate;
}

.region-card.na {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 35%),
        linear-gradient(145deg, rgba(44,15,12,.68), rgba(11,10,9,.97) 48%, rgba(8,8,8,.99));
}

.region-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 36px 100px rgba(0,0,0,.66);
}

.card-glow {
    position: absolute;
    z-index: -1;
    width: 24rem;
    height: 24rem;
    left: 50%;
    top: 4rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(210, 28, 18, .19);
    filter: blur(60px);
}

.logo-frame {
    height: 300px;
    display: grid;
    place-items: center;
    padding: 4px;
}

.logo-frame img {
    width: 100%;
    max-width: 520px;
    max-height: 290px;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(0,0,0,.52));
}

.region-meta {
    padding: 6px 5px 4px;
}

.region-name {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .20em;
}

.region-meta h2 {
    margin: 8px 0 17px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.95rem;
    font-weight: 700;
}

.opening-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.opening-date span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.opening-date strong {
    color: var(--gold-light);
    font-size: .88rem;
}

.card-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    min-height: 52px;
    padding: 0 21px;
    border: 1px solid rgba(255, 189, 91, .35);
    border-radius: 9px;
    background: linear-gradient(180deg, #b42820, #74110f);
    color: white;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-decoration: none;
    box-shadow: inset 0 1px rgba(255,255,255,.13), 0 12px 28px rgba(130, 17, 12, .28);
}

.creator-note {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
    padding: 36px 42px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(12, 11, 10, .74);
}

.creator-note h2 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.creator-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 38px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #716760;
    font-size: .78rem;
    position: relative;
    z-index: 1;
}

/* Application */
.topbar {
    width: min(1180px, calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.brand-mini {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
}

.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
}

.back-link:hover {
    color: white;
}

.apply-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 20px;
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 34px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.apply-intro {
    position: sticky;
    top: 28px;
    padding: 22px 18px 36px 0;
}

.apply-logo {
    width: 100%;
    max-width: 450px;
    max-height: 250px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 14px;
    filter: drop-shadow(0 22px 34px rgba(0,0,0,.5));
}

.apply-intro h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.apply-intro p {
    color: var(--muted);
    max-width: 500px;
    line-height: 1.8;
    font-size: 1.02rem;
}

.opening-pill {
    margin-top: 26px;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(116, 18, 13, .18);
}

.opening-pill span {
    color: var(--muted);
    font-size: .67rem;
    letter-spacing: .16em;
    font-weight: 800;
}

.opening-pill strong {
    color: var(--gold-light);
    font-size: .92rem;
}

.form-panel {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.form-heading {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}

.form-heading h2 {
    margin: 7px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
}

.form-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 17px;
}

.field > span,
.review-panel label > span {
    color: #d8cbc2;
    font-size: .8rem;
    font-weight: 760;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: rgba(0,0,0,.29);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

input,
select {
    height: 49px;
    padding: 0 13px;
}

textarea {
    min-height: 150px;
    resize: vertical;
    padding: 13px;
    line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(230,177,94,.62);
    background: rgba(0,0,0,.4);
    box-shadow: 0 0 0 3px rgba(230,177,94,.07);
}

.field small {
    align-self: flex-end;
    color: #796d66;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.consent input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.turnstile-wrap {
    margin-top: 22px;
    min-height: 65px;
}

.submit-button {
    width: 100%;
    border: 1px solid rgba(255,189,91,.35);
    cursor: pointer;
    min-height: 56px;
}

.submit-button:hover,
.primary-button:hover {
    filter: brightness(1.08);
}

.notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: .88rem;
    line-height: 1.55;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice.error {
    border: 1px solid rgba(255,88,76,.28);
    background: rgba(158,31,24,.16);
    color: #ffd1cc;
}

.notice.success {
    border: 1px solid rgba(100,205,128,.25);
    background: rgba(38,120,61,.16);
    color: #cef7d7;
}

.notice.warning {
    margin-top: 18px;
    border: 1px solid rgba(237,176,64,.28);
    background: rgba(171,108,19,.12);
    color: #ffe0a7;
}

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

.success-shell {
    width: min(680px, calc(100% - 40px));
    margin: 9vh auto 40px;
    text-align: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.success-logo {
    width: min(420px, 90%);
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 18px;
}

.success-shell h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
}

.success-shell p {
    color: #e2d6ce;
    line-height: 1.7;
}

.success-shell .muted {
    color: var(--muted);
}

@media (max-width: 900px) {
    .region-grid,
    .apply-shell {
        grid-template-columns: 1fr;
    }

    .apply-intro {
        position: static;
        text-align: center;
        padding-right: 0;
    }

    .apply-logo {
        object-position: center;
    }

    .creator-note {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .landing {
        width: min(100% - 24px, 1180px);
        padding-top: 56px;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 3.1rem;
    }

    .region-card {
        min-height: 470px;
        padding: 18px;
    }

    .logo-frame {
        height: 230px;
    }

    .region-meta h2 {
        font-size: 1.55rem;
    }

    .opening-date {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .creator-note {
        padding: 25px;
    }

    .site-footer {
        width: calc(100% - 24px);
        flex-direction: column;
        text-align: center;
    }

    .topbar,
    .apply-shell {
        width: calc(100% - 24px);
    }

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

    .form-panel,
    .success-shell {
        padding: 24px 18px;
    }
}
