/* ============================================================
   TEMA: Crem & Albastru Elegant — Nunta Sara & Neemia 2026
   Inspirată din invitația originală: fond crem, albastru praf,
   fonturi script, ilustrații line-art.
   ============================================================ */

:root {
    --cream:        #F3EEE6;
    --cream-light:  #FAF7F2;
    --cream-dark:   #E8E0D4;
    --blue:         #6B8BB0;
    --blue-dark:    #4A6A8E;
    --blue-deeper:  #2E4D6B;
    --blue-light:   #96B3D0;
    --blue-pale:    #D8E6F2;
    --text:         #3A5270;
    --muted:        #7A96B0;
    --shadow:       0 4px 24px rgba(74,106,142,0.10);
    --shadow-card:  0 2px 16px rgba(74,106,142,0.12);
    --radius:       10px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
input, textarea, button { font-family: 'Cormorant Garamond', 'Georgia', serif; }

.hidden { display: none !important; }

/* ---- NAV ---- */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(243,238,230,0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blue-pale);
    transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 16px rgba(74,106,142,0.10); }

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.7rem;
    color: var(--blue-dark);
    font-weight: 400;
}
.nav-amp { color: var(--blue-light); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}
.nav-links a {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-toggle { display: none; background: none; font-size: 1.3rem; color: var(--blue-dark); padding: 4px 8px; border: none; }

/* ---- HERO ---- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

/* PNG swan images — place left.png and right.png in the project folder */
.hero-swan-img {
    position: absolute;
    bottom: 0;
    width: clamp(160px, 22vw, 280px);
    height: auto;
    pointer-events: none;
    user-select: none;
}
.hero-swan-left  { left: 0;  transform-origin: bottom left; }
.hero-swan-right { right: 0; transform-origin: bottom right; }

/* Outer frame */
.hero-frame {
    border: 1.5px solid var(--blue-light);
    max-width: 720px;
    width: 100%;
    padding: 10px;
    position: relative;
}
/* Inner dotted frame (matches invitation) */
.hero-frame-inner {
    border: 1px dashed var(--blue-light);
    padding: 44px 40px 36px;
    text-align: center;
    position: relative;
}

/* Corner dots */
.hero-frame::before, .hero-frame::after,
.hero-frame-inner::before, .hero-frame-inner::after {
    content: '◆';
    position: absolute;
    color: var(--blue-light);
    font-size: 0.5rem;
}
.hero-frame::before  { top: -5px;  left: -5px;  }
.hero-frame::after   { top: -5px;  right: -5px; }
.hero-frame-inner::before { bottom: -5px; left: -5px; }
.hero-frame-inner::after  { bottom: -5px; right: -5px; }

.pre-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 400;
}

/* Names — Great Vibes script */
.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--blue-dark);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 2px;
    line-height: 1.1;
}
.hero-amp {
    font-family: 'Great Vibes', cursive;
    color: var(--blue-light);
    font-size: 0.85em;
}

.hero-family {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 20px;
}

/* Ornament divider */
.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;
}
.ornament-line::before,
.ornament-line::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: var(--blue-pale);
}
.ornament-diamond {
    color: var(--blue-light);
    font-size: 0.55rem;
}

/* Date */
.hero-date {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--blue-dark);
    font-weight: 400;
    margin-bottom: 28px;
}

/* Countdown */
.countdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--blue-pale);
    background: var(--cream-light);
    min-width: 72px;
}
.cnum {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--blue-dark);
    line-height: 1;
    font-weight: 300;
}
.clabel {
    font-family: 'Lato', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}
.csep {
    font-size: 1.4rem;
    color: var(--blue-pale);
    margin-bottom: 18px;
    font-weight: 300;
}

.wedding-day-msg {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--blue-dark);
    margin-top: 16px;
}

.scroll-arrow {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--blue-light);
    font-size: 1.2rem;
    animation: bounce 2.5s ease infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---- SECTIONS SHARED ---- */
section { padding: 80px 24px; }
#activitati { background: var(--cream-light); }

.container { max-width: 960px; margin: 0 auto; }

.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--blue-dark);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 44px;
    font-style: italic;
}

/* ---- DETAILS SECTION ---- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.detail-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--cream-light);
    border: 1px solid var(--blue-pale);
    position: relative;
}
.detail-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
}
.featured-card {
    background: var(--cream);
    border-color: var(--blue-light);
}
.detail-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    opacity: 0.7;
}
.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 8px;
}
.detail-card p { color: var(--muted); font-size: 0.95rem; }
.detail-card p strong { color: var(--blue-dark); }
.detail-small { font-size: 0.85rem; margin-top: 6px; }

.parents-note {
    text-align: center;
    padding: 28px;
    border-top: 1px solid var(--blue-pale);
    margin-top: 8px;
}
.parents-note > p {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 10px;
    font-size: 1rem;
}
.parents-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--blue-dark);
    font-weight: 400;
}
.parents-sep { color: var(--blue-light); font-size: 0.6rem; }

/* ---- STORY ---- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.story-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--cream);
    border: 1px solid var(--blue-pale);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.story-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.story-card:hover::before { opacity: 1; }
.story-card.featured {
    background: var(--blue-deeper);
    border-color: var(--blue-deeper);
    color: var(--cream-light);
}
.story-card.featured h3 { color: var(--cream-light); }
.story-card.featured p  { color: rgba(243,238,230,0.7); }
.story-card.featured::before { border-color: rgba(255,255,255,0.15); opacity: 1; }
.story-icon { font-size: 2rem; margin-bottom: 14px; opacity: 0.8; }
.story-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 10px;
}
.story-card p { color: var(--muted); font-size: 0.95rem; font-style: italic; }

/* ---- TABS ---- */
.tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    border: 1px solid var(--blue-pale);
    background: var(--cream-light);
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.tab {
    padding: 11px 24px;
    background: transparent;
    color: var(--muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-right: 1px solid var(--blue-pale);
    transition: all 0.2s;
    cursor: pointer;
}
.tab:last-child { border-right: none; }
.tab:hover { color: var(--blue-dark); background: var(--cream); }
.tab.active {
    background: var(--cream);
    color: var(--blue-dark);
    box-shadow: inset 0 -2px 0 var(--blue);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- QUIZ ---- */
.quiz-box {
    background: var(--cream-light);
    border: 1px solid var(--blue-pale);
    padding: 48px 44px;
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.quiz-box::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
}
.quiz-swan { font-size: 2rem; margin-bottom: 10px; opacity: 0.7; }
.wish-swan { font-size: 2rem; margin-bottom: 10px; opacity: 0.7; }
.quiz-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 8px;
}
.quiz-box p { color: var(--muted); font-style: italic; margin-bottom: 22px; }

.quiz-name-input { margin-bottom: 22px; }

input, textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--blue-pale);
    background: var(--cream-light);
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
}
input:focus, textarea:focus { border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: var(--muted); font-style: italic; }

.quiz-progress-bar-wrap {
    height: 2px;
    background: var(--blue-pale);
    margin-bottom: 20px;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: var(--blue);
    transition: width 0.4s ease;
    width: 0%;
}
.q-counter {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.question-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--blue-dark);
    margin-bottom: 24px;
    line-height: 1.5;
    font-style: italic;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.option-btn {
    padding: 13px 14px;
    background: var(--cream);
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    border: 1.5px solid var(--blue-pale);
    text-align: left;
    transition: all 0.2s;
    cursor: pointer;
}
.option-btn:hover:not(:disabled) { border-color: var(--blue); background: var(--cream-light); }
.option-btn.correct { background: #EBF5EC; border-color: #7DB87F; color: #2E5E30; }
.option-btn.wrong   { background: #F9ECEC; border-color: #C98080; color: #6B2020; }

.options-grid.rating-grid { grid-template-columns: repeat(5, 1fr); }
.rating-btn { text-align: center; font-weight: 700; }

.q-feedback {
    padding: 12px 16px;
    margin-bottom: 16px;
    font-style: italic;
    font-size: 0.95rem;
}
.q-feedback.correct { background: #EBF5EC; color: #2E5E30; border-left: 3px solid #7DB87F; }
.q-feedback.wrong   { background: #F9ECEC; color: #6B2020; border-left: 3px solid #C98080; }

.result-icon  { font-size: 3.5rem; margin-bottom: 12px; }
.score-badge {
    display: inline-block;
    padding: 10px 32px;
    background: var(--blue-deeper);
    color: var(--cream-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin: 16px 0 24px;
    letter-spacing: 1px;
}
.quiz-end-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* LEADERBOARD */
.leaderboard-list { margin: 20px 0; text-align: left; }
.lb-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin-bottom: 6px;
    background: var(--cream);
    border: 1px solid var(--blue-pale);
    transition: transform 0.2s;
}
.lb-entry:hover { transform: translateX(3px); }
.lb-entry.top3 { background: var(--cream-light); border-color: var(--blue-light); }
.lb-rank {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--blue);
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}
.lb-name { flex: 1; font-weight: 600; color: var(--blue-dark); }
.lb-score { font-weight: 600; color: var(--blue); font-size: 1.05rem; }
.lb-time  { font-family: 'Lato', sans-serif; font-size: 0.78rem; color: var(--muted); }
.loading  { text-align: center; padding: 24px; color: var(--muted); font-style: italic; }

/* ---- PUZZLE ---- */
.puzzle-box {
    background: var(--cream-light);
    border: 1px solid var(--blue-pale);
    padding: 40px 32px;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.puzzle-box::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
}
.puzzle-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }
.puzzle-box p  { color: var(--muted); font-size: 0.92rem; font-style: italic; margin-bottom: 16px; }
.puzzle-box code { background: var(--blue-pale); padding: 2px 6px; font-size: 0.82rem; color: var(--blue-dark); border-radius: 2px; }

.puzzle-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 1px;
}
.puzzle-meta strong { color: var(--blue-dark); }
.puzzle-wrap { display: inline-block; border: 1px solid var(--blue-pale); margin-bottom: 16px; cursor: pointer; }
#puzzle-canvas { display: block; max-width: 100%; }
.puzzle-solved {
    padding: 14px;
    background: #EBF5EC;
    border-left: 3px solid #7DB87F;
    color: #2E5E30;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.puzzle-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- WHEEL ---- */
.wheel-box {
    background: var(--cream-light);
    border: 1px solid var(--blue-pale);
    padding: 40px 32px;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.wheel-box::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
}
.wheel-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }
.wheel-box p  { color: var(--muted); font-style: italic; margin-bottom: 24px; }

.wheel-area { position: relative; display: inline-block; margin-bottom: 24px; }
.wheel-arrow {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--blue);
    z-index: 2;
}
#wheel-canvas { display: block; box-shadow: var(--shadow); }

.wheel-result {
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--blue-deeper);
    color: var(--cream-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    animation: fadeIn 0.3s ease;
}

/* ---- WISH ---- */
.wish-box {
    background: var(--cream-light);
    border: 1px solid var(--blue-pale);
    padding: 48px 44px;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.wish-box::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
}
.wish-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }
.wish-box p  { color: var(--muted); font-style: italic; margin-bottom: 24px; }
.wish-box input, .wish-box textarea { display: block; margin-bottom: 12px; resize: vertical; }

#wish-status {
    margin-top: 14px;
    padding: 12px 16px;
    font-style: italic;
    font-size: 0.95rem;
}
#wish-status.success { background: #EBF5EC; color: #2E5E30; border-left: 3px solid #7DB87F; }
#wish-status.error   { background: #F9ECEC; color: #6B2020; border-left: 3px solid #C98080; }

/* ---- BUTTONS ---- */
.btn-primary {
    padding: 12px 30px;
    background: var(--blue-dark);
    color: var(--cream-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--blue-dark);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue-deeper); border-color: var(--blue-deeper); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--blue-dark);
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--blue-light);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--blue-dark); background: var(--cream); }

.btn-outline {
    padding: 12px 28px;
    background: transparent;
    color: var(--blue);
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--blue-pale);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--blue); background: var(--cream); }

/* ---- MEDIA UPLOAD ---- */
.media-box {
    background: var(--cream-light);
    border: 1px solid var(--blue-pale);
    padding: 40px 32px;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.media-box::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px dashed var(--blue-pale);
    pointer-events: none;
}
.media-options { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

.media-camera { margin-bottom: 20px; border: 1px solid var(--blue-pale); }
#cam-video { width: 100%; max-height: 280px; object-fit: cover; display: block; background: #000; }
.cam-controls { display: flex; gap: 10px; justify-content: center; padding: 12px; background: var(--cream); }

.media-voice {
    background: var(--cream);
    border: 1px solid var(--blue-pale);
    padding: 22px;
    margin-bottom: 20px;
}
.voice-indicator { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.voice-dot {
    width: 12px; height: 12px;
    background: #A05252;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}
.voice-dot.active { opacity: 1; animation: blink 1s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
#voice-timer { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--blue-dark); }
.voice-controls { display: flex; gap: 10px; justify-content: center; }
.voice-hint { font-size: 0.8rem; color: var(--muted); margin-top: 10px; font-style: italic; font-family: 'Lato', sans-serif; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--blue-pale);
}
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-btn {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 20px; height: 20px;
    font-size: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.preview-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
}
.preview-audio .audio-icon { font-size: 1.8rem; }

.upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 8px;
}
.upload-form input {
    flex: 1;
    min-width: 190px;
    max-width: 260px;
    border-radius: 0;
}

#upload-status {
    margin-top: 14px;
    padding: 12px 16px;
    font-style: italic;
    font-size: 0.95rem;
}
#upload-status.success { background: #EBF5EC; color: #2E5E30; border-left: 3px solid #7DB87F; }
#upload-status.error   { background: #F9ECEC; color: #6B2020; border-left: 3px solid #C98080; }

/* ---- FOOTER ---- */
footer {
    background: var(--blue-deeper);
    color: var(--cream-light);
    text-align: center;
    padding: 60px 24px;
}
.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--cream-light);
    font-weight: 400;
    margin-bottom: 6px;
}
.footer-date {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 14px;
}
.footer-msg { color: rgba(243,238,230,0.55); font-style: italic; font-size: 0.95rem; }
.footer-privacy-link {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(243,238,230,0.6);
    text-decoration: underline;
}
.footer-privacy-link:hover { color: var(--cream-light); }

/* ---- COOKIE / PRIVACY BANNER ---- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    background: var(--blue-deeper);
    color: var(--cream-light);
    padding: 20px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; min-width: 220px; font-size: 0.92rem; line-height: 1.5; }
.cookie-text a { color: var(--blue-light); text-decoration: underline; }
.cookie-text a:hover { color: var(--cream-light); }
.cookie-banner .cookie-accept {
    background: var(--blue-light);
    border-color: var(--blue-light);
    color: var(--blue-deeper);
    white-space: nowrap;
}
.cookie-banner .cookie-accept:hover { background: var(--cream-light); border-color: var(--cream-light); }

/* ---- PRIVACY PAGE ---- */
.privacy-container { padding: 60px 24px 90px; }
.privacy-back {
    display: inline-block;
    margin-bottom: 28px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--blue);
}
.privacy-back:hover { color: var(--blue-deeper); }
.privacy-content { max-width: 680px; margin: 40px auto 0; }
.privacy-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin: 28px 0 8px;
}
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content p { color: var(--text); font-size: 0.98rem; }
.privacy-btn-back { display: block; width: fit-content; margin: 48px auto 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--cream-light);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--blue-pale);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--blue-pale); }
    .nav-toggle { display: block; }

    section { padding: 56px 16px; }
    .hero-frame-inner { padding: 28px 20px; }
    .quiz-box, .wish-box, .puzzle-box, .wheel-box, .media-box { padding: 28px 18px; }
    .options-grid { grid-template-columns: 1fr; }
    .options-grid.rating-grid { grid-template-columns: repeat(5, 1fr); }

    #wheel-canvas { width: 270px; height: 270px; }
    #puzzle-canvas { width: 300px; height: 300px; }

    .upload-form { flex-direction: column; }
    .upload-form input { max-width: 100%; }
    .tabs { left: 0; transform: none; display: flex; width: 100%; }
    .tab { flex: 1; text-align: center; font-size: 0.68rem; padding: 10px 8px; }

    .parents-names { flex-direction: column; gap: 8px; }
    .parents-sep { display: none; }
}
@media (max-width: 600px) {
    /* hide swans when frame fills the screen */
    .hero-swan-img { display: none; }
}
@media (max-width: 420px) {
    .hero-names { font-size: 2.6rem; }
    .hero-date  { font-size: 1.8rem; }
    .cblock { min-width: 58px; padding: 10px 12px; }
    .cnum   { font-size: 1.5rem; }
}
