/* =============================================
   Shay & Ryan — Wedding Website
   Light / invite-inspired palette
   ============================================= */

@font-face {
    font-family: 'Simple Michael';
    src: url('SimpleMichael.otf.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('The_Seasons_Regular_Final4.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

/* ============ DESIGN TOKENS ============ */

:root {
    --bg:           #FAFAF8;
    --bg-alt:       #E2E3DA;
    --text:         #1A1817;
    --text-muted:   rgba(26, 24, 23, 0.80);
    --accent:       #888B69;
    --card-bg:      rgba(26, 24, 23, 0.025);
    --card-border:  rgba(26, 24, 23, 0.12);
    --divider:      rgba(26, 24, 23, 0.16);
    --input-bg:     rgba(26, 24, 23, 0.04);
    --input-border: rgba(26, 24, 23, 0.22);
    --input-focus:  rgba(26, 24, 23, 0.55);

    --fig:          #4A2F3A;
    --font-script:  'Simple Michael', cursive;
    --font-display: 'The Seasons', serif;
    --font-sans:    'Montserrat', sans-serif;

    --max-w:  900px;
    --pad-section: 100px 24px;
}

/* ============ RESET ============ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .6; }

img { max-width: 100%; display: block; }

/* ============ NAV ============ */

#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 24, 23, 0.10);
}

.nav-inner {
    width: 100%;
    padding: 16px clamp(24px, 4vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 1.9rem;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: center;
}
.nav-monogram {
    width: 38px;
    height: auto;
    display: block;
    filter: brightness(0) saturate(0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 44px;
}
.nav-links a {
    font-family: var(--font-sans);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text);
    transition: color .25s;
    position: relative;
    padding-bottom: 3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--fig);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}
.nav-links a:hover { opacity: 1; color: var(--fig); }
.nav-links a:hover::after { transform: scaleX(1); }

/* RSVP nav button */
.nav-links .nav-rsvp a {
    background: var(--fig);
    color: #FAFAF8;
    padding: 7px 16px;
    letter-spacing: .18em;
    transition: background .25s, color .25s;
}
.nav-links .nav-rsvp a::after { display: none; }
.nav-links .nav-rsvp a:hover { background: transparent; color: var(--fig); border: 1px solid var(--fig); padding: 6px 15px; }

.nav-mobile .nav-rsvp a { color: var(--fig); font-weight: 600; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
    display: none;
    list-style: none;
    flex-direction: column;
    gap: 18px;
    padding: 0 28px 22px;
    border-top: 1px solid rgba(26, 24, 23, 0.10);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-family: var(--font-sans);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text);
    transition: color .25s, padding-left .25s;
    display: inline-block;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: color .25s, border-color .25s, padding-left .25s;
}
.nav-mobile a:hover { color: var(--fig); opacity: 1; border-left-color: var(--fig); padding-left: 8px; }

@media (max-width: 750px) { .nav-links { gap: 20px; } }

@media (max-width: 600px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    :root { --pad-section: 60px 24px; }
    .hero-content { padding: 100px 24px 60px; }
    .page-header { padding-top: 110px; }
    .page-header + section { padding-top: 36px; }
    .hotel-detail { flex-direction: column; gap: 2px; }
    .detail-label { min-width: unset; }
    footer { padding: 48px 24px; }
}

/* ============ HERO ============ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: var(--bg);
    z-index: 10;
    transition: transform 1.3s cubic-bezier(.77, 0, .175, 1);
}
.curtain-left  { left: 0;  transform: translateX(0); }
.curtain-right { right: 0; transform: translateX(0); }
.curtains-open .curtain-left  { transform: translateX(-100%); }
.curtains-open .curtain-right { transform: translateX(100%); }

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 720px;
    padding: 130px 40px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Names */
.names-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
}
.name-line {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}
.name-amp {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: rgba(26, 24, 23, 0.55);
    line-height: 1;
    padding: 6px 0 2px;
    letter-spacing: 0;
}
.name-amp-img {
    width: clamp(55px, 9vw, 110px);
    height: auto;
    display: block;
    opacity: 0.68;
    margin: 4px 0;
}

/* Date & venue info */
.hero-event-info { text-align: center; }
.hero-venue-info { text-align: center; }

.event-day {
    font-family: var(--font-sans);
    font-size: clamp(.6rem, 1.8vw, .72rem);
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.event-date {
    font-family: var(--font-display);
    font-size: clamp(.95rem, 2.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.venue-name {
    font-family: var(--font-display);
    font-size: clamp(.95rem, 2.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
}
.venue-detail {
    font-family: var(--font-sans);
    font-size: clamp(.6rem, 1.8vw, .72rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.9;
}

/* Countdown wrap + caption */
.countdown-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.countdown-caption {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(.85rem, 2vw, 1rem);
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: .04em;
}

/* Hero CTA text */
.hero-cta-text {
    font-family: var(--font-display);
    font-size: clamp(.85rem, 2vw, 1rem);
    color: var(--text-muted);
    line-height: 1.8;
    text-align: center;
    max-width: 380px;
    letter-spacing: .03em;
    margin-top: 20px;
}
.event-location {
    font-family: var(--font-sans);
    font-size: clamp(.6rem, 1.8vw, .75rem);
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* Dividers */
.divider-line {
    height: 1px;
    background: var(--divider);
    width: 100%;
    max-width: 260px;
    margin: 18px auto;
}
.divider-line.centered { margin: 14px auto 36px; }

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 4px;
}
.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 14px 18px;
    border: 1px solid var(--fig);
    background: var(--card-bg);
}
.count-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text);
    text-align: center;
    min-width: 2.5ch;
}
.count-label {
    font-family: var(--font-sans);
    font-size: .5rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: 14px 38px;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    cursor: pointer;
    transition: background .25s, color .25s;
    text-decoration: none;
    margin-top: 10px;
}
.btn:hover { background: var(--fig); border-color: var(--fig); color: #FAFAF8; opacity: 1; }

.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--fig); border-color: var(--fig); color: #FAFAF8; opacity: 1; }

.btn-fig { background: var(--fig); border-color: var(--fig); color: #FAFAF8; }
.btn-fig:hover { background: transparent; border-color: var(--fig); color: var(--fig); opacity: 1; }

.btn-submit {
    width: 100%;
    text-align: center;
    font-size: .7rem;
    padding: 16px;
    margin-top: 4px;
}

/* ============ SECTIONS ============ */

.section { padding: var(--pad-section); }
.section-alt { background: var(--bg-alt); }

.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-narrow { max-width: 560px; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    text-align: center;
    letter-spacing: .06em;
}
.section-subtitle {
    font-family: var(--font-sans);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 44px;
}

/* ============ SCHEDULE / TIMELINE ============ */

.timeline-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 0 56px;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 4;
}

@media (max-width: 680px) {
    .timeline-columns { grid-template-columns: 1fr; grid-template-rows: auto; }
    .timeline { display: block; grid-row: auto; }
}
.timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: var(--divider);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 10px 0;
    position: relative;
}
.tl-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.tl-icon svg { width: 22px; height: 22px; color: var(--text); }
.tl-body { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; min-height: 70px; }
.tl-time {
    font-family: var(--font-sans);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.tl-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: .03em;
    line-height: 1.2;
}
.tl-desc {
    font-family: var(--font-sans);
    font-size: .62rem;
    line-height: 1.7;
    color: var(--text-muted);
    letter-spacing: .02em;
    margin-top: 3px;
}

/* ============ VENUE CARDS ============ */

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

.card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-label {
    font-family: var(--font-sans);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text);
    margin: 4px 0 6px;
}
.card-text {
    font-family: var(--font-sans);
    font-size: .75rem;
    letter-spacing: .05em;
    color: var(--text-muted);
}
.hotel-details {
    border-top: 1px solid var(--divider);
    padding-top: 16px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hotel-detail { display: flex; gap: 14px; align-items: baseline; }
.detail-label {
    font-family: var(--font-sans);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 105px;
    flex-shrink: 0;
}
.detail-value { font-family: var(--font-sans); font-size: .75rem; color: var(--text); }
.detail-value a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ============ WEDDING PARTY ============ */

.party-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
@media (max-width: 620px) { .party-grid { grid-template-columns: 1fr; gap: 44px; } }

.party-side-title {
    font-family: var(--font-script);
    font-size: 2.4rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 22px;
    color: var(--text);
}
.party-list { list-style: none; }
.party-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    border-bottom: 1px solid var(--divider);
}
.party-member:first-child { border-top: 1px solid var(--divider); }
.member-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--text);
}
.member-role {
    font-family: var(--font-sans);
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ RSVP FORM ============ */

#rsvpLookup { display: flex; flex-direction: column; gap: 26px; }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }

.lookup-note {
    font-family: var(--font-sans);
    font-size: .72rem;
    line-height: 1.7;
    color: var(--text-muted);
    letter-spacing: .03em;
}

#rsvpDuplicatePrompt { display: flex; flex-direction: column; gap: 20px; }

.duplicate-notice {
    padding: 18px;
    border: 1px solid rgba(136, 139, 105, 0.35);
    background: rgba(136, 139, 105, 0.08);
    font-family: var(--font-sans);
    font-size: .75rem;
    letter-spacing: .05em;
    line-height: 1.9;
    color: var(--text);
}
.duplicate-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.start-over-link {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 5px;
    align-self: flex-start;
}
.start-over-link:hover { opacity: .5; }

.name-correction-wrap { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.name-correction-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: .60rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-align: left;
    align-self: flex-start;
    transition: color .2s;
}
.name-correction-toggle:hover { color: var(--text); }
.name-correction-fields {
    display: none;
    margin-top: 14px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    gap: 16px;
    flex-direction: column;
}
.name-correction-fields.open { display: flex; }

form { display: flex; flex-direction: column; gap: 26px; }
.form-group { display: flex; flex-direction: column; gap: 9px; }

.form-label {
    font-family: var(--font-sans);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.required { color: rgba(26, 24, 23, 0.30); }

.form-group input,
.select-wrap select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.select-wrap select:focus { border-color: var(--input-focus); }

.select-wrap { position: relative; }
.select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background: var(--text-muted);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    pointer-events: none;
}
.select-wrap select { cursor: pointer; padding-right: 42px; }
.select-wrap select option { background: var(--bg); color: var(--text); }

.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
    user-select: none;
}
.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color .2s;
    padding: 0;
}
.radio-label input[type="radio"]:checked {
    border-color: var(--text);
    background: var(--text);
    box-shadow: inset 0 0 0 3px var(--bg);
}

.form-message {
    font-family: var(--font-sans);
    font-size: .75rem;
    letter-spacing: .08em;
    text-align: center;
    padding: 18px;
    margin-top: 4px;
}
.form-message.success {
    color: #3a6e36;
    border: 1px solid rgba(58, 110, 54, 0.28);
    background: rgba(58, 110, 54, 0.06);
}
.form-message.error {
    color: #9a2e2e;
    border: 1px solid rgba(154, 46, 46, 0.28);
    background: rgba(154, 46, 46, 0.06);
}
.form-message.duplicate {
    color: var(--text);
    border: 1px solid rgba(136, 139, 105, 0.35);
    background: rgba(136, 139, 105, 0.08);
}

/* ============ TRAVEL & STAY ============ */

.ts-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
}
@media (max-width: 750px) {
    .ts-columns { grid-template-columns: 1fr; gap: 44px; }
}

.ts-block {
    text-align: center;
    border: 1px solid var(--card-border);
    background: transparent;
    padding: 44px 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ts-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 400;
    letter-spacing: .05em;
    color: var(--text);
}
.ts-body {
    font-family: var(--font-sans);
    font-size: .78rem;
    line-height: 1.9;
    color: var(--text-muted);
    letter-spacing: .03em;
    max-width: 480px;
    margin: 0 auto 10px;
}
.ts-body strong { color: var(--text); font-weight: 600; }
.ts-btn-wrap { margin-top: 0; padding-top: 20px; }

.ts-hotel-name {
    font-family: 'The Seasons', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 10px;
}

.ts-hotel-divider {
    border: none;
    border-top: 1px solid var(--divider);
    margin: 28px 0;
}

.ts-shuttles {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 300px;
    margin: 18px auto 20px;
    border-top: 1px solid var(--divider);
}
.ts-shuttle-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--divider);
    padding: 10px 0;
}
.ts-shuttle-label {
    font-family: var(--font-sans);
    font-size: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ts-shuttle-time {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
    letter-spacing: .04em;
}

/* ============ ACCOMMODATIONS ============ */

.accom-intro { text-align: center; }

.accom-venue-name {
    font-family: var(--font-script);
    font-size: 2.6rem;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
}
.accom-address {
    font-family: var(--font-sans);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.accom-note {
    font-family: var(--font-sans);
    font-size: .78rem;
    line-height: 1.9;
    color: var(--text-muted);
    letter-spacing: .03em;
    max-width: 520px;
    margin: 0 auto 14px;
}
.accom-note strong { color: var(--text); font-weight: 600; }
.accom-intro .btn { margin-top: 18px; }

.accom-hotel-wrap { max-width: 520px; }

/* ============ FOOTER ============ */

footer {
    padding: 43px 24px;
    text-align: center;
    background: var(--bg-alt);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo {
    width: clamp(107px, 19vw, 174px);
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.75;
}

/* ============ GAME ============ */

#gameOverlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
}
#gameWrap { position: relative; display: inline-block; }
#gameCanvas {
    display: block;
    image-rendering: auto;
    border: 2px solid #C9A84C;
    max-width: 100%;
}
#gameClose {
    position: absolute;
    top: -14px; right: -14px;
    width: 28px; height: 28px;
    background: #1A1817;
    color: #FAFAF8;
    border: 1px solid #C9A84C;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}
#gameClose:hover { background: #C9A84C; color: #1A1817; }

/* Initials entry overlay */
#gameInitials {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(249,247,244,0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 10;
}
#gameInitials.visible { display: flex; }
#gameInitialsCard {
    background: rgba(250,250,248,0.98);
    border: 1px solid rgba(26,24,23,0.10);
    border-radius: 12px;
    padding: 22px 30px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(26,24,23,0.13);
}
#gameInitialsCard p {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(26,24,23,0.55);
    margin-bottom: 12px;
}
#gameInitialsInput {
    display: block;
    width: 86px;
    margin: 0 auto 14px;
    background: rgba(26,24,23,0.04);
    border: 1px solid rgba(26,24,23,0.22);
    border-radius: 6px;
    padding: 8px 6px;
    font-family: 'The Seasons', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: #1A1817;
    letter-spacing: 0.22em;
    outline: none;
    transition: border-color .2s;
}
#gameInitialsInput:focus { border-color: rgba(26,24,23,0.55); }
.game-initials-btns { display: flex; gap: 8px; justify-content: center; }
#gameInitialsSubmit {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: #4A2F3A;
    color: #F3EFE6;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    transition: opacity .2s;
}
#gameInitialsSubmit:hover { opacity: 0.82; }
#gameInitialsSkip {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: transparent;
    color: rgba(26,24,23,0.42);
    border: 1px solid rgba(26,24,23,0.16);
    border-radius: 5px;
    padding: 8px 14px;
    cursor: pointer;
    transition: opacity .2s;
}
#gameInitialsSkip:hover { opacity: 0.65; }

.game-trigger {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.25;
    transition: opacity .3s;
    padding: 0;
    display: block;
    margin: 14px auto 0;
    line-height: 0;
}
.game-trigger:hover { opacity: 0.7; }
.game-trigger svg {
    width: 20px; height: 20px;
    color: var(--text);
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ============ REVEAL ANIMATIONS ============ */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.hero-content .reveal:nth-child(1)  { transition-delay: .05s; }
.hero-content .reveal:nth-child(2)  { transition-delay: .25s; }
.hero-content .reveal:nth-child(3)  { transition-delay: .45s; }
.hero-content .reveal:nth-child(4)  { transition-delay: .58s; }
.hero-content .reveal:nth-child(5)  { transition-delay: .70s; }
.hero-content .reveal:nth-child(6)  { transition-delay: .82s; }
.hero-content .reveal:nth-child(7)  { transition-delay: .95s; }
.hero-content .reveal:nth-child(8)  { transition-delay: 1.10s; }
.hero-content .reveal:nth-child(9)  { transition-delay: 1.25s; }

/* ============ PAGE HEADER (sub-pages) ============ */

.page-header {
    padding: 130px 24px 24px;
    text-align: center;
    background: var(--bg-alt);
}
.page-header .divider-line { margin-top: 6px; margin-bottom: 0; }
.page-header .section-subtitle { margin-bottom: 0; }
.page-header + section { padding-top: 50px; }

/* ============ FAQ ACCORDION ============ */

.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item:first-child { border-top: 1px solid var(--divider); }

.faq-item summary {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    padding: 20px 36px 20px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    letter-spacing: .03em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-list-inner {
    font-family: var(--font-sans);
    font-size: .78rem;
    line-height: 1.9;
    color: var(--text-muted);
    padding: 0 36px 12px 52px;
    letter-spacing: .03em;
}
.faq-list-inner li { margin-bottom: 4px; }

.faq-answer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { opacity: .6; }

.faq-answer {
    font-family: var(--font-sans);
    font-size: .78rem;
    line-height: 1.9;
    color: var(--text-muted);
    padding: 0 36px 22px 0;
    letter-spacing: .03em;
}

/* ============ FLOATING DATE WATERMARK ============ */

.floating-date {
    position: fixed;
    right: clamp(6px, 2vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 100;
    user-select: none;
}
.floating-date-num {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 10vw, 13rem);
    font-weight: 400;
    color: var(--accent);
    opacity: 0.22;
    line-height: 0.88;
    letter-spacing: -0.02em;
}
@media (max-width: 800px) { .floating-date { display: none; } }
