:root {
    color-scheme: light;
    --color-background: #f8f2f3;
    --color-surface: #fffafb;
    --color-surface-soft: #fcf5f7;
    --color-bordeaux: #7a1735;
    --color-bordeaux-dark: #4f0e24;
    --color-bordeaux-light: #a33b5b;
    --color-gold: #b2873d;
    --color-gold-light: #d8bd83;
    --color-text: #33262b;
    --color-text-muted: #716369;
    --color-border: #ead9de;
    --color-success: #4f9f65;
    --color-warning: #d7a119;
    --color-locked: #88827e;
    --shadow-soft: 0 12px 34px rgba(79, 14, 36, .1);
    --shadow-card: 0 4px 16px rgba(79, 14, 36, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(216, 189, 131, .1), transparent 32%),
        linear-gradient(180deg, #fcf8f7 0%, #f6edef 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(178, 135, 61, .52); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-shell { width: min(1280px, calc(100% - 24px)); margin: 12px auto 0; }
.page-content { min-height: calc(100vh - 152px); }
.quest-card { background: rgba(255, 253, 249, .96); border: 1px solid var(--color-border); border-radius: 0 0 14px 14px; box-shadow: var(--shadow-card); animation: fade-up .45s ease both; }

.main-header {
    position: relative;
    z-index: 10;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    color: white;
    background: linear-gradient(135deg, #5b0f28, #821b3d);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 8px 22px rgba(79, 14, 36, .2);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff9ec; font-family: Georgia, serif; font-size: clamp(1.05rem, 3vw, 1.42rem); text-decoration: none; }
.brand-heart { color: #f0cf77; font-size: 1.55rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.nav-toggle { min-width: 44px; min-height: 44px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; cursor: pointer; }
.main-nav { position: absolute; top: calc(100% + 6px); right: 0; display: none; min-width: 180px; padding: .45rem; background: var(--color-bordeaux); border-radius: 8px; box-shadow: var(--shadow-soft); }
.main-nav.is-open { display: grid; }
.main-nav a { min-height: 44px; display: flex; align-items: center; padding: .6rem .9rem; color: white; border-radius: 6px; text-decoration: none; }
.main-nav a:hover { background: rgba(255,255,255,.09); }
.main-nav form { margin: 0; }
.main-nav form button { width: 100%; min-height: 44px; padding: .6rem .9rem; color: white; background: transparent; border: 0; border-radius: 6px; text-align: left; cursor: pointer; }
.main-nav form button:hover { background: rgba(255,255,255,.09); }
.header-actions { display: flex; align-items: center; gap: .45rem; }
.language-switch { min-height: 36px; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .4rem; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.22); border-radius: 7px; }
.language-switch button { padding: .2rem .25rem; color: white; background: transparent; border: 0; font-size: .78rem; font-weight: 750; cursor: pointer; }
.language-switch button:disabled { color: var(--color-gold-light); cursor: default; opacity: 1; }

.hero-card { display: grid; overflow: hidden; min-height: 500px; }
.hero-image { min-height: 290px; background: #e9ddcf; }
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 38%; }
.hero-content { position: relative; display: grid; place-items: center; align-content: center; padding: clamp(2rem, 6vw, 4.75rem); text-align: center; background: radial-gradient(circle at 80% 20%, rgba(216,189,131,.12), transparent 32%), var(--color-surface); }
.hero-content::after { content: ""; position: absolute; right: -30px; bottom: -48px; width: 180px; height: 180px; border: 1px solid rgba(178,135,61,.18); border-radius: 50%; box-shadow: 0 0 0 22px rgba(178,135,61,.04), 0 0 0 46px rgba(178,135,61,.025); pointer-events: none; }
.hero-eyebrow, .section-kicker { margin: 0 0 .4rem; color: var(--color-gold); font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.hero-title { margin: .3rem 0; color: var(--color-bordeaux-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 9vw, 4.9rem); font-style: italic; font-weight: 400; line-height: 1.02; letter-spacing: -.04em; }
.hero-text { max-width: 34rem; margin: .8rem 0 0; font-family: Georgia, serif; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.55; }
.ornament-divider { width: min(230px, 70%); display: flex; align-items: center; gap: .85rem; margin: 1rem 0; color: var(--color-gold); }
.ornament-divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--color-gold)); }
.ornament-divider span:last-child { background: linear-gradient(90deg, var(--color-gold), transparent); }
.ornament-divider b { font-size: 1.1rem; }

.btn-primary-wedding {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding: .8rem 1.6rem;
    color: white;
    background: linear-gradient(135deg, #8a1e42, #61112c);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(97, 17, 44, .24);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-primary-wedding:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(97, 17, 44, .32); }

.intro-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; margin-top: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 14px; }
.section-icon { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: var(--color-bordeaux); border-radius: 50%; font-family: Georgia, serif; }
.intro-card h2, .submission-heading h2 { margin: 0; color: var(--color-bordeaux-dark); font-family: Georgia, serif; font-size: clamp(1.55rem, 4vw, 2.2rem); }
.intro-card p:last-child { max-width: 54rem; margin-bottom: 0; color: var(--color-text-muted); }

.task-shell { display: grid; overflow: hidden; min-height: 680px; }
.quest-progress { padding: 1rem; background: linear-gradient(180deg, #fffdf9, #fbf6ef); border-bottom: 1px solid var(--color-border); }
.quest-progress ol { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.quest-progress li { position: relative; display: grid; justify-items: center; gap: .35rem; flex: 1; color: var(--color-locked); font-size: .68rem; }
.quest-progress li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 16px; left: calc(50% + 19px); width: calc(100% - 38px); height: 1px; background: var(--color-border); }
.step-circle { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; background: white; font-family: Georgia, serif; }
.is-active .step-circle { color: white; background: var(--color-bordeaux); border-color: var(--color-bordeaux); }
.is-active .step-label { color: var(--color-bordeaux); font-weight: 700; }
.step-label { display: none; }
.task-content { min-width: 0; padding: clamp(1.5rem, 5vw, 3.5rem); }
.task-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; color: var(--color-text-muted); text-decoration: none; }
.task-heading { display: grid; gap: 1.5rem; margin: 1rem 0 2rem; }
.task-title { max-width: 42rem; margin: 0 0 .75rem; color: var(--color-bordeaux-dark); font-size: clamp(1.8rem, 5vw, 2.65rem); line-height: 1.14; }
.task-description { max-width: 42rem; color: var(--color-text-muted); font-size: 1.03rem; }
.polaroid { width: min(235px, 70vw); min-height: 210px; justify-self: center; display: grid; place-items: center; padding: 12px 12px 28px; color: var(--color-bordeaux); background: white; border: 1px solid #eee5dc; box-shadow: 0 12px 28px rgba(43,32,29,.16); transform: rotate(2.5deg); text-align: center; font-family: Georgia, serif; }
.polaroid-placeholder { background: linear-gradient(145deg, #e8d7c7, #f8efe6 65%, #d4c1ac); }
.polaroid-heart { display: block; color: var(--color-gold); font-size: 2.2rem; }
.riddle-panel { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid var(--color-border); border-left: 4px solid var(--color-gold); border-radius: 10px; background: var(--color-surface-soft); }
.riddle-panel h2 { margin: 0; color: var(--color-bordeaux-dark); font-family: Georgia, serif; }
.riddle-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--color-gold); border-radius: 50%; font: 700 1.3rem Georgia, serif; }
.equations { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.equations p { margin: .8rem 0 0; font: 1.22rem Georgia, serif; }
.answer-form { max-width: 32rem; margin-top: 1.75rem; }
label { display: block; margin-bottom: .5rem; font-weight: 700; }
input:not(.file-input) { width: 100%; min-height: 48px; padding: .75rem 1rem; border: 1px solid var(--color-border); border-radius: 10px; background: white; }
input:focus, textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 4px rgba(178,135,61,.12); outline: none; }
.station-section { margin: 0 0 .35rem; color: var(--color-gold); font-family: Georgia, serif; font-style: italic; }
.moon-card { min-height: 190px; align-content: center; gap: .65rem; color: #f6df9c; background: radial-gradient(circle at 50% 38%, #725a68, #302b3f 70%); }
.moon-card > span { font-size: 5rem; line-height: 1; text-shadow: 0 0 28px rgba(246,223,156,.3); }
.moon-card small { color: #f3e9d7; font-family: Inter, sans-serif; }
.riddle-poem { color: var(--color-text-muted); font-family: Georgia, serif; font-size: 1.03rem; }
.riddle-poem p:last-child { color: var(--color-bordeaux-dark); font-weight: 700; }
.form-help { margin: .45rem 0 0; color: var(--color-text-muted); font-size: .88rem; }
.shared-card { min-height: 190px; align-content: center; gap: .65rem; color: var(--color-bordeaux); background: radial-gradient(circle, #fffaf0, #e8d6c4); }
.shared-card > span { font: italic 3rem Georgia, serif; }
.shared-card small { color: var(--color-text-muted); font-family: Inter, sans-serif; }
.text-station-form { max-width: 46rem; display: grid; gap: .55rem; }
.text-station-form textarea { width: 100%; min-height: 180px; padding: 1rem; resize: vertical; border: 1px solid var(--color-border); border-radius: 10px; background: white; font: inherit; }
.text-station-form small { color: var(--color-text-muted); }
.text-station-form .btn-primary-wedding { justify-self: start; }
.station-one-form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.field-label { margin-bottom: .5rem; }
.text-answer-field { display: grid; gap: .45rem; }
.text-answer-field textarea { min-height: 155px; width: 100%; padding: .9rem 1rem; resize: vertical; border: 1px solid var(--color-border); border-radius: 10px; background: white; font: inherit; }
.text-answer-field small { color: var(--color-text-muted); }
.alert { padding: .9rem 1rem; border-left: 4px solid #a34d58; border-radius: 8px; color: #71323a; background: #fff3f4; }
.hint-box { display: flex; gap: .9rem; margin: 1.5rem 0; padding: 1rem 1.15rem; border-left: 4px solid var(--color-gold); border-radius: 9px; background: #fff9ec; }
.hint-box p { margin: .2rem 0 0; color: var(--color-text-muted); }
.hint-icon { color: var(--color-gold); font-size: 1.6rem; }
.submission-heading { margin: 2rem 0 1rem; }
.submission-heading p:last-child { color: var(--color-text-muted); }
.upload-form { max-width: 45rem; }
.upload-dropzone { position: relative; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; margin: 0; padding: 1.25rem; overflow: hidden; border: 2px dashed #d7cbbf; border-radius: 12px; background: #fffdfa; color: var(--color-text-muted); text-align: center; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: var(--color-gold); background: #fffbf4; transform: translateY(-1px); }
.upload-dropzone:focus-within { border-color: var(--color-gold); box-shadow: 0 0 0 4px rgba(178,135,61,.12); }
.upload-dropzone strong { color: var(--color-text); }
.upload-dropzone small { margin-top: .3rem; }
.upload-icon { color: var(--color-bordeaux); font-size: 2rem; line-height: 1; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-preview, .upload-video-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #211b1b; }
.upload-dropzone.has-file::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(50,27,30,.8)); }
.file-name { position: absolute; z-index: 2; bottom: .8rem; left: 1rem; right: 1rem; overflow: hidden; color: white; text-overflow: ellipsis; white-space: nowrap; }
.remove-file { min-height: 44px; margin-top: .4rem; padding: .5rem 0; color: var(--color-bordeaux); background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.completion-panel { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid #cbe4d2; border-radius: 10px; background: #f3fbf5; }
.completion-panel > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--color-success); border-radius: 50%; font-weight: 800; }
.completion-panel h2, .completion-panel p { margin: 0; }

.overview-card { padding: clamp(1.5rem, 5vw, 3rem); }
.overview-heading h1 { margin: .2rem 0; color: var(--color-bordeaux-dark); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; }
.overview-heading > p:last-child { margin-top: .35rem; color: var(--color-text-muted); }
.station-list { display: grid; gap: .65rem; margin-top: 1.6rem; }
.station-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .9rem; align-items: center; min-height: 86px; padding: .7rem .85rem; border: 1px solid var(--color-border); border-radius: 10px; background: white; box-shadow: 0 2px 8px rgba(55,34,31,.03); }
.station-status { width: 34px; height: 34px; display: grid; place-items: center; color: white; border-radius: 50%; font-weight: 800; }
.is-complete .station-status { background: var(--color-success); }
.is-current { border-color: #ead395; background: #fffaf0; }
.is-current .station-status { color: var(--color-warning); background: transparent; border: 2px solid var(--color-warning); }
.is-locked { color: var(--color-locked); background: #fbfaf8; }
.is-locked .station-status { color: var(--color-locked); background: #e6e3e0; }
.station-main { display: grid; min-width: 0; }
.station-main span, .station-meta { color: var(--color-text-muted); font-size: .83rem; }
.station-media { width: 82px; height: 58px; display: none; object-fit: cover; border-radius: 7px; background: #211b1b; }
.station-meta { grid-column: 2; }
.station-arrow { min-width: 36px; min-height: 44px; display: grid; place-items: center; grid-column: 3; grid-row: 1 / span 2; color: var(--color-text-muted); font-size: 1.5rem; text-decoration: none; }
.overview-tip { margin: 1.35rem 0 0; color: var(--color-text-muted); text-align: center; }
.overview-tip span { margin-right: .35rem; color: var(--color-gold); }
.station-section-group { margin-top: 2.2rem; }
.section-heading-row { display: flex; gap: .8rem; align-items: baseline; margin-bottom: .75rem; }
.section-heading-row > span { color: var(--color-gold); font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.section-heading-row h2 { margin: 0; color: var(--color-bordeaux-dark); font: clamp(1.25rem, 3vw, 1.65rem) Georgia, serif; }
.code-milestone { margin: .75rem .4rem 0; color: var(--color-text-muted); font-size: .86rem; }
.code-milestone span { color: var(--color-gold); }
.revealed-code-panel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid #ead395; border-radius: 10px; background: #fffaf0; }
.compact-lock-code { display: flex; gap: .4rem; }
.compact-lock-code span { width: 34px; height: 42px; display: grid; place-items: center; border: 1px solid #dac9b5; border-radius: 6px; background: white; font: 1.25rem Georgia, serif; }
.milestone-card { min-height: 520px; display: grid; place-items: center; align-content: center; padding: clamp(2rem, 8vw, 5rem); text-align: center; background: radial-gradient(circle at center, #fffdf9, #f3e7d8); }
.milestone-card h1 { max-width: 42rem; margin: .35rem 0; color: var(--color-bordeaux-dark); font: clamp(2.4rem, 7vw, 4.8rem)/1.05 Georgia, serif; }
.milestone-card > p:not(.section-kicker) { color: var(--color-text-muted); }
.milestone-ornament { color: var(--color-gold); font-size: 2.8rem; }
.milestone-code { display: flex; gap: .65rem; margin: 1.5rem 0 .5rem; }
.milestone-code .is-hidden { color: #aaa19b; background: #f0ece7; }
.milestone-code .is-revealed { color: var(--color-bordeaux-dark); border-color: var(--color-gold); box-shadow: 0 8px 20px rgba(178,135,61,.18); }
.equation-card { min-height: 190px; align-content: center; gap: .65rem; color: #f3e7d0; background: radial-gradient(circle at 40% 35%, #6b4a4f, #332124 72%); }
.equation-card > span { font: italic 2.5rem Georgia, serif; }
.equation-card small { color: #e2d5c6; font-family: Inter, sans-serif; }
.equation-system { display: flex; align-items: center; gap: .65rem; margin: 1rem 0; color: var(--color-bordeaux-dark); }
.equation-system .brace { font: 5.5rem/1 Georgia, serif; font-weight: 200; }
.equation-system p { margin: .15rem 0; font: 1.3rem Georgia, serif; }
.riddle-steps { padding-left: 1.3rem; color: var(--color-text-muted); }
.riddle-steps li { margin: .45rem 0; padding-left: .25rem; }
.food-card { min-height: 190px; align-content: center; gap: .65rem; color: #6f3e38; background: radial-gradient(circle at 50% 40%, #f7dbbb, #c98d67); }
.food-card > span { font-size: 4.5rem; line-height: 1; }
.food-card small { color: #633b32; font-family: Inter, sans-serif; }
.station-five-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.dish-entry { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-soft); }
.dish-entry legend { padding: 0 .4rem; color: var(--color-bordeaux-dark); font: 1.2rem Georgia, serif; }
.dish-entry > label:not(.upload-dropzone) { margin-top: 1rem; }
.dish-entry textarea { width: 100%; min-height: 115px; padding: .85rem; resize: vertical; border: 1px solid var(--color-border); border-radius: 9px; background: white; font: inherit; }
.station-five-form > .btn-primary-wedding { justify-self: start; }
.globe-card { min-height: 190px; align-content: center; gap: .65rem; color: #e2d6af; background: radial-gradient(circle at 45% 40%, #59736a, #263f42 72%); }
.globe-card > span { font-size: 5rem; line-height: 1; }
.globe-card small { color: #e0e8df; font-family: Inter, sans-serif; }
.meetup-card { min-height: 190px; align-content: center; gap: .65rem; color: #70494c; background: radial-gradient(circle at 45% 38%, #f3dfd2, #c99e8a); }
.meetup-card > span { font-size: 4.7rem; line-height: 1; }
.meetup-card small { color: #633f42; font-family: Inter, sans-serif; }
.station-seven-form { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.memory-fields { display: grid; gap: 1rem; }
.memory-fields textarea { width: 100%; min-height: 120px; padding: .85rem; resize: vertical; border: 1px solid var(--color-border); border-radius: 9px; background: white; font: inherit; }
.memory-fields small { color: var(--color-text-muted); }
.station-seven-form > .btn-primary-wedding { justify-self: start; }
.guardian-card { min-height: 190px; align-content: center; gap: .65rem; color: #e7d7a5; background: radial-gradient(circle at 45% 38%, #665774, #302b3d); }
.guardian-card > span { font: 2.5rem Georgia, serif; letter-spacing: .12em; }
.guardian-card small { color: #e8e1ed; font-family: Inter, sans-serif; }
.guardians { display: grid; gap: .75rem; margin: 1.5rem 0; }
.guardians article { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-soft); }
.guardians article > span { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--color-bordeaux); border-radius: 50%; font-family: Georgia, serif; }
.guardians h2 { margin: 0; color: var(--color-bordeaux-dark); font: 1.05rem Georgia, serif; }
.guardians p { margin: .25rem 0 0; color: var(--color-text-muted); }
.guardian-final { margin: 1.5rem 0; }
.hint-levels { display: grid; gap: .5rem; max-width: 46rem; margin: 1.5rem 0; }
.hint-levels details { border: 1px solid var(--color-border); border-radius: 8px; background: #fffaf0; }
.hint-levels summary { min-height: 46px; display: flex; align-items: center; padding: .65rem 1rem; color: var(--color-bordeaux); font-weight: 700; cursor: pointer; }
.hint-levels details p { margin: 0; padding: 0 1rem 1rem; color: var(--color-text-muted); }
.yoga-card { min-height: 190px; align-content: center; gap: .65rem; color: #e9e1c1; background: radial-gradient(circle at 50% 38%, #6f7d67, #34433d); }
.yoga-card > span { font-size: 5rem; line-height: 1; transform: rotate(-8deg); }
.yoga-card small { color: #e5ebe2; font-family: Inter, sans-serif; }
.station-nine-form { max-width: 46rem; margin-top: 1.5rem; }
.station-nine-form > .btn-primary-wedding { display: flex; margin-top: 1rem; }
.video-dropzone { min-height: 230px; }
.forest-card { min-height: 190px; align-content: center; gap: .65rem; color: #e5d7a8; background: radial-gradient(circle at 45% 38%, #52634c, #26372c); }
.forest-card > span { font-size: 5rem; line-height: 1; }
.forest-card small { color: #e3e9dc; font-family: Inter, sans-serif; }
.culture-trails { display: grid; gap: 1rem; margin: 1.5rem 0; }
.culture-trail { padding: clamp(1.2rem, 3vw, 1.75rem); border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-soft); }
.culture-trail h2 { margin: .2rem 0 1rem; color: var(--color-bordeaux-dark); font: clamp(1.3rem, 3vw, 1.7rem) Georgia, serif; }
.east-trail { border-top: 4px solid #7f895d; }
.west-trail { border-top: 4px solid var(--color-gold); }
.culture-final { margin: 1.5rem 0; }
.animal-card { min-height: 190px; align-content: center; gap: .65rem; color: #f2dca8; background: radial-gradient(circle at 45% 38%, #8b7151, #443929); }
.animal-card > span { font-size: 5rem; line-height: 1; }
.animal-card small { color: #f0e7d6; font-family: Inter, sans-serif; }
.station-eleven-form { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.station-eleven-form > .btn-primary-wedding { justify-self: start; }
.cinema-card { min-height: 190px; align-content: center; gap: .65rem; color: #f4d990; background: radial-gradient(circle at 45% 38%, #68474c, #2f2023); }
.cinema-card > span { width: 66px; height: 66px; display: grid; place-items: center; justify-self: center; border: 2px solid currentColor; border-radius: 50%; font-size: 2rem; }
.cinema-card small { color: #f1e7dc; font-family: Inter, sans-serif; }
.station-twelve-form { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.film-title-field label span { color: var(--color-text-muted); font-weight: 400; }
.film-title-field p { color: var(--color-text-muted); font-size: .9rem; }
.station-twelve-form > .btn-primary-wedding { justify-self: start; }
.overview-final-link { margin-top: 1rem; }
.memories-section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--color-border); scroll-margin-top: 1rem; }
.memories-heading h2 { margin: .2rem 0; color: var(--color-bordeaux-dark); font: clamp(1.8rem, 5vw, 2.7rem) Georgia, serif; }
.memories-heading > p:last-child { max-width: 44rem; color: var(--color-text-muted); }
.memories-grid { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.memory-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 12px; background: white; box-shadow: var(--shadow-card); }
.memory-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #241d1d; }
.memory-media a { width: 100%; height: 100%; display: block; }
.memory-media img, .memory-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.memory-media img { transition: transform 220ms ease; }
.memory-media a:hover img { transform: scale(1.025); }
.memory-caption { display: grid; gap: .45rem; padding: 1rem; }
.memory-caption > div { display: grid; }
.memory-caption span { color: var(--color-gold); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.memory-caption strong { color: var(--color-bordeaux-dark); }
.memory-caption p { margin: 0; overflow: hidden; color: var(--color-text-muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.memory-caption time { color: var(--color-text-muted); font-size: .78rem; }
.empty-gallery { min-height: 180px; display: grid; place-items: center; align-content: center; margin-top: 1.5rem; padding: 2rem; color: var(--color-text-muted); border: 2px dashed var(--color-border); border-radius: 12px; text-align: center; }
.empty-gallery span { color: var(--color-gold); font-size: 2.5rem; }
.empty-gallery p { margin: .5rem 0 0; }
.gallery-stories { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--color-border); }
.gallery-stories-grid { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.gallery-story-card { display: grid; align-content: start; gap: 1rem; padding: 1.35rem; border: 1px solid var(--color-border); border-radius: 12px; background: linear-gradient(145deg, #fff, #fffaf4); box-shadow: var(--shadow-card); }
.gallery-story-card header span { color: var(--color-gold); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.gallery-story-card h3 { margin: .2rem 0 0; color: var(--color-bordeaux-dark); font: 1.25rem Georgia, serif; }
.gallery-story-entry { padding-top: .9rem; border-top: 1px solid var(--color-border); }
.gallery-story-entry strong { color: var(--color-bordeaux); font-size: .84rem; }
.gallery-story-entry p { margin: .4rem 0 0; color: var(--color-text); line-height: 1.65; overflow-wrap: anywhere; }
.gallery-story-card time { color: var(--color-text-muted); font-size: .78rem; }
.login-card { width: min(100%, 720px); min-height: 520px; display: grid; place-items: center; align-content: center; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.login-card h1 { margin: .4rem 0; color: var(--color-bordeaux-dark); font: clamp(2.1rem, 7vw, 3.8rem)/1.05 Georgia, serif; }
.login-card > p:not(.section-kicker):not(.alert) { color: var(--color-text-muted); }
.login-ornament { color: var(--color-gold); font-size: 2.7rem; }
.login-form { width: 100%; max-width: 420px; justify-self: center; margin: 1.2rem auto 0; text-align: left; }
.login-form .btn-primary-wedding { width: 100%; }
.setup-notice { width: 100%; margin-top: 1rem; padding: 1rem; border: 1px solid #ead395; border-radius: 9px; background: #fffaf0; }
.setup-notice p { margin: .35rem 0 0; color: var(--color-text-muted); }
.setup-notice code { color: var(--color-bordeaux); }

@media (min-width: 64rem) {
    .station-twelve-form { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
    .station-twelve-form > .btn-primary-wedding { grid-column: 1 / -1; }
    .memories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 42rem) and (max-width: 63.99rem) {
    .memories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .station-eleven-form { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
    .station-eleven-form > .btn-primary-wedding { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
    .culture-trails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .guardians { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .station-seven-form { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
    .station-seven-form > .btn-primary-wedding { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
    .station-five-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .station-five-form > .btn-primary-wedding { grid-column: 1 / -1; }
}

.final-card { position: relative; display: grid; overflow: hidden; min-height: 540px; padding: clamp(2rem, 7vw, 5rem); background: radial-gradient(circle at 15% 10%, rgba(216,189,131,.15), transparent 26%), var(--color-surface); }
.final-card::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(var(--color-gold) 1.2px, transparent 1.2px); background-size: 34px 34px; pointer-events: none; }
.final-content { position: relative; z-index: 1; max-width: 38rem; }
.final-heart { color: #c6555c; font-size: 3rem; text-shadow: 0 5px 12px rgba(133,42,48,.18); }
.final-content h1 { margin: .2rem 0; color: var(--color-bordeaux-dark); font-family: Georgia, serif; font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; }
.final-lead { font: 1.35rem Georgia, serif; }
.lock-code { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }
.lock-digit { width: 56px; height: 68px; display: grid; place-items: center; border: 1px solid #d9cbbd; border-radius: 10px; background: rgba(255,253,249,.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); font: 2rem Georgia, serif; animation: fade-up .4s ease both; }
.treasure-illustration { position: relative; width: min(320px, 76vw); height: 250px; justify-self: center; align-self: end; filter: drop-shadow(0 18px 18px rgba(50,27,30,.2)); }
.treasure-lid { position: absolute; top: 28px; left: 5%; width: 90%; height: 100px; border: 8px solid #4d2c21; border-radius: 90px 90px 10px 10px; background: repeating-linear-gradient(90deg, #855232 0 48px, #a36b41 49px 54px); }
.treasure-body { position: absolute; top: 116px; width: 100%; height: 125px; display: grid; place-items: center; color: #39251b; border: 8px solid #4d2c21; border-radius: 8px 8px 22px 22px; background: repeating-linear-gradient(90deg, #744328 0 50px, #965e37 51px 57px); font-size: 2rem; }
.treasure-body span { width: 48px; height: 62px; display: grid; place-items: center; border: 5px solid #704f21; border-radius: 9px; background: #c79a43; }

.main-footer { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--color-text-muted); font-size: .85rem; }
.main-footer span:first-child { color: var(--color-gold); }

@media (max-width: 25rem) {
    .page-shell { width: calc(100% - 8px); }
    .brand { gap: .4rem; font-size: .82rem; }
    .brand-heart { font-size: 1.15rem; }
    .header-actions { gap: .2rem; }
    .language-switch { padding-inline: .25rem; }
    .login-card { padding-inline: 1.25rem; }
    .login-card h1 { font-size: 1.85rem; overflow-wrap: anywhere; }
}

@media (min-width: 48rem) {
    .page-shell { width: min(1280px, calc(100% - 32px)); margin-top: 16px; }
    .main-header { padding-inline: 1.5rem; }
    .header-actions { margin-left: auto; }
    .main-nav { margin-left: .5rem; }
    .nav-toggle { display: none; }
    .main-nav { position: static; display: flex; gap: .25rem; padding: 0; background: transparent; box-shadow: none; }
    .main-nav a { padding-inline: .85rem; }
    .hero-card { grid-template-columns: minmax(300px, 42%) minmax(0, 58%); }
    .hero-image { min-height: 500px; }
    .task-shell { grid-template-columns: 88px minmax(0,1fr); }
    .quest-progress { padding: 1.4rem 0; border-right: 1px solid var(--color-border); border-bottom: 0; }
    .quest-progress ol { height: 100%; flex-direction: column; justify-content: flex-start; gap: 1.4rem; }
    .quest-progress li { flex: 0 0 auto; }
    .quest-progress li:not(:last-child)::after { top: 38px; left: 50%; width: 1px; height: 1.4rem; }
    .task-heading { grid-template-columns: minmax(0,1fr) 250px; align-items: start; }
    .polaroid { justify-self: end; }
    .station-card { grid-template-columns: auto minmax(180px,1fr) 90px minmax(120px, .55fr) 40px; padding: .35rem .9rem; }
    .station-media { display: block; grid-column: 3; }
    .station-meta { grid-column: 4; }
    .station-arrow { grid-column: 5; grid-row: 1; }
    .final-card { grid-template-columns: minmax(0,1fr) 360px; align-items: center; }
}

@media (min-width: 64rem) {
    .step-label { display: block; max-width: 78px; text-align: center; }
    .task-content { padding: 3.2rem 4rem; }
    .upload-form { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 1rem; align-items: end; }
    .upload-dropzone { grid-column: 1 / -1; }
    .remove-file { justify-self: start; }
    .upload-form .btn-primary-wedding { justify-self: end; }
    .station-one-form { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
    .station-one-form > .btn-primary-wedding { grid-column: 1 / -1; justify-self: start; }
    .quest-progress-twelve ol { gap: .75rem; }
    .quest-progress-twelve .step-label { display: none; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
