@font-face {
    font-family: 'Brown';
    src: url('font/Brown-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Reuben';
    src: url('font/Reuben-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --hd-burgundy: #5F0023;
    --hd-burgundy-mid: #7A0F3A;
    --hd-cream: #FEF2E6;
    --hd-gold: #C9A46A;
    --hd-error: #C4122F;
}

body {
    background: var(--hd-burgundy);
    font-family: 'Brown', Arial, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

.hd-page {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

.hd-page img {
    display: block;
    width: 100%;
    height: auto;
}

.hd-sec {
    position: relative;
    display: none;
}
.hd-sec.is-active {
    display: block;
}

/* Language switcher */
.hd-lang {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}
.hd-lang select {
    background: rgba(95, 0, 35, 0.6);
    color: var(--hd-cream);
    border: 1px solid var(--hd-cream);
    border-radius: 16px;
    padding: 3px 10px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
}
.hd-lang select option {
    color: #000;
}

/* ===== Screen frame (age gate / not eligible): image sets the size, controls sit on top ===== */
.hd-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 1950;
    background: linear-gradient(160deg, #9E1B4C 0%, var(--hd-burgundy) 55%, #8E1746 100%);
    overflow: hidden;
}
.hd-screen > .hd-screen-bg,
.hd-screen > .hd-screen-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Age range dropdown */
.hd-age-select {
    position: absolute;
    top: 33.5%;
    left: 6%;
    right: 6%;
    z-index: 5;
}
.hd-age-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #9a8a8f;
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 0 14px;
    height: 46px;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.hd-age-toggle.has-value {
    color: #2b0a16;
}
.hd-age-toggle:focus-visible {
    outline: 2px solid var(--hd-gold);
    outline-offset: 2px;
}
.hd-age-toggle .hd-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--hd-burgundy);
    border-bottom: 2px solid var(--hd-burgundy);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.hd-age-select.is-open .hd-chevron {
    transform: rotate(-135deg) translateY(-3px);
}
.hd-age-list {
    display: none;
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.hd-age-select.is-open .hd-age-list {
    display: block;
}
.hd-age-list li {
    margin: 0 14px;
    padding: 11px 0;
    font-size: 14px;
    color: #2b0a16;
    border-bottom: 1px solid #eee3e6;
    cursor: pointer;
}
.hd-age-list li:last-child {
    border-bottom: none;
}
.hd-age-list li:hover,
.hd-age-list li.is-focused {
    color: var(--hd-burgundy);
    font-weight: 400;
    text-decoration: underline;
}

/* Continue button */
.hd-continue {
    position: absolute;
    top: 77%;
    left: 7%;
    right: 7%;
    height: 50px;
    border-radius: 50px;
    border: 1.5px solid var(--hd-gold);
    background: var(--hd-burgundy);
    color: var(--hd-cream);
    font-family: 'Reuben', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 4;
    transition: opacity 0.2s ease;
}
.hd-continue:disabled {
    border-color: rgba(201, 164, 106, 0.25);
    color: rgba(254, 242, 230, 0.35);
    background: rgba(95, 0, 35, 0.7);
    cursor: not-allowed;
}

/* Legal links under the gate */
.hd-legal {
    position: absolute;
    top: 89.5%;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--hd-cream);
    font-size: 12px;
    line-height: 1.6;
    z-index: 4;
}
.hd-legal strong {
    display: block;
    font-family: 'Reuben', Arial, sans-serif;
    font-weight: 700;
}
.hd-legal a {
    color: var(--hd-cream);
    text-decoration: underline;
    margin: 0 10px;
    font-size: 11px;
}
.hd-legal a:hover {
    color: var(--hd-cream);
}

/* ===== Main body + form ===== */
.hd-form-wrap {
    background: var(--hd-cream);
    color: var(--hd-burgundy);
    padding: 4px 22px 30px;
}
.hd-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 18px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}
.hd-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 2px solid var(--hd-burgundy);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.hd-check input[type="checkbox"]:checked {
    background: var(--hd-burgundy);
}
.hd-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 6px;
    height: 12px;
    border-right: 2px solid var(--hd-cream);
    border-bottom: 2px solid var(--hd-cream);
    transform: rotate(45deg);
}
.hd-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--hd-gold);
    outline-offset: 2px;
}
.hd-check .hd-check-text {
    padding-top: 0;
}
.hd-check a {
    color: var(--hd-burgundy);
    text-decoration: underline;
}
.hd-field-error {
    display: block;
    color: var(--hd-error);
    font-size: 12px;
    margin: -12px 0 14px 38px;
}

.hd-submit-area {
    position: relative;
    margin-top: 36px;
}
.hd-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border-radius: 50px;
    border: 2px solid var(--hd-cream);
    background: var(--hd-burgundy);
    color: var(--hd-cream) !important;
    font-family: 'Reuben', Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.hd-cta:hover {
    opacity: 0.92;
}

/* Footer strip under the form */
.hd-form-wrap.has-footer {
    padding-bottom: 6px;
}
.hd-footer {
    background: var(--hd-cream);
}

/* Floating CTA */
.hd-floating {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    z-index: 50;
    display: none;
}
.hd-floating .hd-cta {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Loading state */
.hd-lock {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.hd-loader {
    width: 28px;
    height: 28px;
    border: 4px solid var(--hd-cream);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: hd-rotate 1s linear infinite;
}
.hd-submit-area.is-loading .hd-lock {
    display: flex;
}
.hd-submit-area.is-loading .hd-cta {
    color: transparent !important;
    pointer-events: none;
}
@keyframes hd-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
