{ margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
--bg0: #0d1520; --bg1: #111a26; --ink: #e9e2f3; --muted: rgba(233,226,243,.70);
--gold: #b89898; --gold-light: #d4b5b5; --gold-dim: rgba(184,152,152,.4); --gold-dark: #845454;
--line: rgba(184,152,152,.25); --line-subtle: rgba(184,152,152,.15);
--font-title: "Cinzel", serif;
--font-body: "Cormorant Garamond", serif;
}

html, body { min-height: 100%; max-width: 100vw; overflow-x: hidden; }

body {
background: var(--bg0); min-height: 100vh;
font-family: var(--font-body); color: var(--ink);
display: flex; justify-content: center; align-items: center;
}

body:not(.unlocked) .top-nav,
body:not(.unlocked) .mobile-app-bar,
body.declined .top-nav,
body.declined .mobile-app-bar {
display: none !important;
}

::selection { background: rgba(184,152,152,0.3); color: #fff; }
::-moz-selection { background: rgba(184,152,152,0.3); color: #fff; }

.lang-en .zh { display: none !important; }
.lang-zh .en { display: none !important; }

.m-only, .m-only-flex { display: none !important; }
@media (min-width: 769px) {
.d-only-flex { display: flex !important; }
.d-only { display: block !important; }
}

#bubblefield { position: fixed; inset: 0; z-index: -2; opacity: 0; transition: opacity 1s ease; height: 100vh; pointer-events: none; }
body.open #bubblefield { opacity: 1; }
.fx-noise {
position: fixed; inset: 0; z-index: -1; opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.40'/%3E%3C/svg%3E");
}

.watermark-ij {
position: absolute; bottom: -2rem; right: -1rem; font-family: var(--font-title); font-size: 25rem;
color: #fff; opacity: 0.02; z-index: 0; pointer-events: none; line-height: 1; user-select: none;
display: flex; align-items: flex-end;
}
.watermark-ij span:first-child { transform: translateY(-3rem); }
.watermark-ij span:last-child { transform: translateY(2rem); margin-left: -2rem; }

#loading-overlay {
position: fixed; inset: 0; background: rgba(13, 21, 32, 0.85); backdrop-filter: blur(8px);
z-index: 9999; display: none; justify-content: center; align-items: center; flex-direction: column;
opacity: 0; transition: opacity 0.4s ease;
}
#loading-overlay.active { display: flex; opacity: 1; }
.spinner {
width: 50px; height: 50px; border: 2px solid var(--gold-dim); border-top-color: var(--gold-light);
border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.app-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; padding: 20px; min-height: 100vh; width: 100%; position: relative; overflow: hidden; box-sizing: border-box;}

.card {
width: min(1100px, 92vw); height: calc(100dvh - 40px); max-height: 95vh; max-width: 100%;
background: linear-gradient(150deg, rgba(22, 32, 50, 0.85), rgba(13, 21, 32, 0.95));
box-shadow: 0 40px 120px rgba(0,0,0,.8); border-radius: 12px;
position: relative; animation: cardIntro 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
backdrop-filter: blur(12px); z-index: 1; border: 1px solid var(--line);
opacity: 0; overflow: hidden;
box-sizing: border-box;
display: flex; flex-direction: column;
}

.card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184,152,152, 0.4); border-radius: 8px; pointer-events: none; z-index: 50; }
.card-inner { margin: 12px; height: calc(100% - 24px); position: relative; z-index: 2; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }

.global-view-bg {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background-size: cover; background-position: center; opacity: 0;
transition: opacity 0.8s ease, background-image 0.8s ease;
}

@keyframes cardIntro { from { opacity: 0; transform: scale(0.98) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.top-nav {
position: relative;
z-index: 60;
display: none;
flex-direction: row;
justify-content: center;
padding: 20px 20px;
min-height: 80px;
align-items: center;
border-bottom: 1px solid var(--line-subtle);
margin: 0 14px;
animation: fadeIn 0.8s ease forwards;
}

body.unlocked .top-nav {
display: flex;
}

.nav-logo {
position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
border: 1px solid var(--gold-dim); border-radius: 50%;
font-family: var(--font-title); font-size: 1.4rem; color: var(--gold); letter-spacing: 0; pointer-events: none;
box-shadow: inset 0 0 10px rgba(184,152,152,0.1);
}
.nav-logo::before {
content: ''; position: absolute; inset: 4px;
border: 1px solid rgba(184,152,152,0.2); border-radius: 50%;
}
.nav-logo span:nth-child(1) { position: relative; transform: translateY(-2px); margin-right: 1px;}
.nav-logo span:nth-child(2) { position: relative; transform: translateY(2px); margin-left: -3px; }

.nav-center-title {
font-family: var(--font-title); font-size: 1.6rem; letter-spacing: 0.15em; font-weight: 700;
background: linear-gradient(135deg, #e6c8c8 10%, #fff 45%, #c6a4a4 60%);
background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
animation: shimmer 6s linear infinite;
display: block; position: relative; left: auto; transform: none; white-space: nowrap;
}

.nav-links-mask { flex: 1; display: none; justify-content: center; position: relative; width: 100%; padding: 0; overflow-x: hidden; }
.nav-links-wrapper { display: flex; gap: 24px; align-items: center; justify-content: center; width: auto; flex-wrap: wrap;}

/* Gated Header Logic */
body.unlocked:not(.has-rsvpd) .nav-center-title { display: block !important; }
body.unlocked:not(.has-rsvpd) .nav-links-mask { display: none !important; }
body.unlocked.has-rsvpd .nav-links-mask { display: flex !important; }
body.unlocked.has-rsvpd .nav-center-title { display: none !important; }

.nav-link {
font-family: var(--font-title); font-size: 0.82rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; cursor: pointer; transition: color 0.3s ease; position: relative; text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link.active::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 20px; height: 1px; background: var(--gold-light); }

.nav-dropdown { position: relative; display: inline-block; cursor: pointer; }
.dropdown-content {
display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
background: var(--bg1); min-width: 220px; box-shadow: 0px 8px 24px rgba(0,0,0,0.8);
padding: 15px 0; border: 1px solid var(--line); border-radius: 8px; z-index: 100;
flex-direction: column; gap: 15px; align-items: center;
}
.nav-dropdown:hover .dropdown-content { display: flex; }
.dropdown-content .nav-link { padding: 5px 15px; display: block; width: 100%; text-align: center; }
.dropdown-content .nav-link.active::after { bottom: -6px; }

.lang-toggle { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: row; gap: 4px; font-family: var(--font-title); font-size: 0.75rem; color: var(--gold); text-align: center; cursor: pointer; padding: 4px 6px; z-index: 100;}
.lang-toggle span { padding: 4px 8px; border-radius: 4px; transition: 0.3s;}
.lang-toggle span.active { background: rgba(184,152,152,0.25); color: #fff; }

.mobile-app-bar {
display: none !important;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
border-bottom: 1px solid var(--line-subtle);
position: relative;
z-index: 100;
}

.mobile-app-bar .m-logo {
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
border: 1px solid var(--gold-dim); border-radius: 50%; font-family: var(--font-title); font-size: 1.2rem; color: var(--gold);
box-shadow: inset 0 0 8px rgba(184,152,152,0.1); position: relative;
}
.mobile-app-bar .m-logo::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(184,152,152,0.2); border-radius: 50%; }
.mobile-app-bar .m-logo span:nth-child(1) { position: relative; transform: translateY(-2px); margin-right: 1px;}
.mobile-app-bar .m-logo span:nth-child(2) { position: relative; transform: translateY(2px); margin-left: -3px; }

.mobile-app-bar .m-title {
font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.15em; text-transform: uppercase; display: block; flex: 1; text-align: center;
background: linear-gradient(135deg, #e6c8c8 10%, #fff 45%, #c6a4a4 60%);
background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
animation: shimmer 6s linear infinite;
}

.hamburger-btn { cursor: pointer; color: var(--gold-light); display: none; align-items: center; justify-content: center; width: 40px; height: 40px; }

.mobile-menu-overlay { position: fixed; inset: 0; background: var(--bg0); z-index: 999; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: 0.4s ease; padding: 40px 20px; }
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.m-menu-skyline {
position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
background-image: url('https://irisandjeffrey.com/chicago-skyline-sears-v2.png'); background-size: cover; background-position: center bottom; background-repeat: no-repeat;
opacity: 0.08; pointer-events: none; z-index: 0; filter: invert(67%) sepia(20%) saturate(180%) hue-rotate(314deg) brightness(1.1);
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 100%);
}
.m-menu-header { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; margin-bottom: 60px; }
.m-menu-close { cursor: pointer; color: var(--gold-light); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-left: auto; }

.m-menu-links { display: flex; flex-direction: column; align-items: center; gap: 35px; position: relative; z-index: 2; overflow-y: auto;}
.m-nav-link { font-family: var(--font-title); font-size: 1.4rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; text-decoration: none; transition: 0.3s; cursor: pointer; }
.m-nav-link.active { color: var(--gold-light); }

.m-lang-toggle { font-family: var(--font-title); font-size: 1.1rem; color: var(--muted); cursor: pointer; display: flex; gap: 10px; margin-top: 60px; position: relative; z-index: 2; justify-content: center;}
.m-lang-toggle span.active { color: #fff; border-bottom: 1px solid var(--gold-light); }

.view-container { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; padding: 40px 30px 0; scrollbar-width: none; scroll-behavior: smooth; box-sizing: border-box; }
.view-container::-webkit-scrollbar { display: none; width: 0; }

.view { display: none; animation: fadeIn 0.6s ease forwards; min-height: 100%; position: relative; flex-direction: column; z-index: 10; box-sizing: border-box;}
.view.active { display: flex; }

.view::after { content: ''; display: block; min-height: 140px; width: 100%; flex-shrink: 0; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ornamental-separator { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 25px auto; width: 60%; }
.ornamental-separator::before, .ornamental-separator::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.ornamental-separator svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 0.8; }

.page-title {
font-family: var(--font-title); font-size: clamp(1.4rem, 4vw, 1.7rem); text-align: center; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px;
background: linear-gradient(135deg, #e6c8c8 10%, #fff 45%, #c6a4a4 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;
}

.page-subtitle { text-align: center; color: var(--muted); font-size: clamp(1rem, 3vw, 1.15rem); font-style: normal; margin-top: 10px; margin-bottom: clamp(15px, 4vw, 30px); letter-spacing: 0.05em; font-family: var(--font-body); }

.btn {
display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px;
background: rgba(184, 152, 152, 0.15);
border: 1px solid rgba(184, 152, 152, 0.3); color: var(--gold-light); text-decoration: none; font-family: var(--font-title);
font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; transition: 0.3s; cursor: pointer; border-radius: 12px;
backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); white-space: nowrap; box-sizing: border-box;
}
.btn:hover { background: rgba(184, 152, 152, 0.25); border-color: var(--gold); color: #fff; }

.btn-pulse { animation: pulseGlow 2.5s infinite; }
@keyframes pulseGlow {
0% { box-shadow: 0 0 0 0 rgba(184,152,152,0.3); }
70% { box-shadow: 0 0 0 10px rgba(184,152,152,0); }
100% { box-shadow: 0 0 0 0 rgba(184,152,152,0); }
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; min-height: 100%; position: relative; box-sizing: border-box; max-width: 100%;}
.rsvp-layout-grid { display: flex; flex-wrap: wrap; align-items: flex-start; margin-bottom: 40px; gap: 40px; width: 100%; box-sizing: border-box; }
.rsvp-left-col { flex: 0 0 35%; max-width: 35%; display: flex; flex-direction: column; min-width: 0;}
.rsvp-right-col { flex: 1; min-width: 0; box-sizing: border-box; }

.hero-skyline {
position: absolute; top: -10%; left: 0; width: 100%; height: 75%;
background-image: url('https://irisandjeffrey.com/chicago-skyline-sears-v2.png'); background-size: contain; background-position: center bottom; background-repeat: no-repeat;
opacity: 0.4; filter: invert(67%) sepia(20%) saturate(180%) hue-rotate(314deg) brightness(1.1);
-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, transparent 100%);
pointer-events: none; z-index: 0;
}

.fireworks { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.firework {
position: absolute; width: 4px; height: 4px; border-radius: 50%;
box-shadow: 0 0 14px 4px var(--gold-light); background: #fff;
animation: explode 4s cubic-bezier(0.25, 1, 0.5, 1) infinite; opacity: 0;
}
.fw1 { top: 15%; left: 25%; animation-delay: 0s; }
.fw2 { top: 25%; left: 55%; animation-delay: 1.2s; }
.fw3 { top: 12%; left: 80%; animation-delay: 2.1s; }
.fw4 { top: 30%; left: 40%; animation-delay: 0.8s; }
.fw5 { top: 18%; left: 65%; animation-delay: 3.2s; }
.fw6 { top: 10%; left: 45%; animation-delay: 1.8s; }
.fw7 { top: 20%; left: 85%; animation-delay: 0.5s; }
.fw8 { top: 8%; left: 35%; animation-delay: 2.8s; }
@keyframes explode { 0% { transform: scale(0) translateY(50px); opacity: 0; } 20% { opacity: 1; } 50% { transform: scale(1.5) translateY(0); opacity: 0; } 100% { opacity: 0; } }

.hero-copy { display: flex; flex-direction: column; text-align: left; position: relative; z-index: 2; padding: 75px 0 20px 20px; box-sizing: border-box; align-items: flex-start;}
.label { font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 0.25em; color: var(--gold-light); text-transform: uppercase; word-wrap: break-word;}

.hero-names {
font-family: var(--font-title); font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1.05;
background: linear-gradient(135deg, #e6c8c8 10%, #fff 45%, #c6a4a4 60%);
background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
animation: shimmer 6s linear infinite; margin: 10px 0 10px; font-weight: 700;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-date-loc { font-size: 1rem; color: var(--gold-light); letter-spacing: 0.15em; margin-bottom: 20px; text-transform: uppercase; line-height: 1.6; font-family: var(--font-title); }
.ensure-block { margin-top: 15px; width: 100%; max-width: 380px; }

.body-text { font-size: 1.2rem; color: var(--muted); line-height: 1.5; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.form-input {
width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--gold-dim);
padding: 14px 18px; font-family: var(--font-body); font-size: 1.1rem; font-style: normal;
color: #fff; margin-bottom: 15px; border-radius: 6px; transition: all 0.3s ease; box-sizing: border-box; min-width: 0;
}
.form-input::placeholder { color: var(--muted); font-style: normal; }
.form-input:focus { outline: none; border-color: var(--gold-light); background: rgba(255,255,255,0.05); box-shadow: 0 0 12px rgba(184,152,152,0.1); }

select.form-input {
appearance: none; -webkit-appearance: none; -moz-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b89898' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
padding-right: 40px; cursor: pointer;
}
select.form-input option { background-color: var(--bg1); color: var(--ink); padding: 12px; font-size: 1.1rem; font-family: var(--font-body); }

.photo-arch-container { position: relative; display: flex; justify-content: flex-end; align-items: center; z-index: 2; padding-right: 20px; width: 100%; box-sizing: border-box;}

.photo-arch-wrap {
width: 100%; max-width: 380px; padding: 12px; border: 1px solid var(--line-subtle);
border-radius: 200px 200px 12px 12px; background: rgba(0,0,0,0.15); position: relative;
box-shadow: 0 30px 80px rgba(0,0,0,.8); margin: 0 auto; box-sizing: border-box;
}

.photo-arch-wrap::after {
content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-light);
border-radius: 194px 194px 6px 6px; pointer-events: none; z-index: 10;
}

.photo-arch { width: 100%; height: auto; display: block; border-radius: 188px 188px 6px 6px; aspect-ratio: 3/4; object-fit: cover; filter: contrast(1.05) brightness(0.95); position: relative; z-index: 1; pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none;}

.photo-seal {
position: absolute; bottom: -25px; right: -25px; width: 110px; height: 110px;
background: #714646; background-image: radial-gradient(circle at 30% 30%, #996868 0%, #714646 40%, #4a2828 100%);
border-radius: 50%; border: 1px solid #5a3232;
box-shadow: 0 8px 15px rgba(0,0,0,0.7), inset 0 4px 6px rgba(255,255,255,0.15), inset 0 -4px 6px rgba(0,0,0,0.5);
display: flex; align-items: center; justify-content: center; z-index: 15;
pointer-events: auto;
}
.photo-seal::before {
content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid #845454;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 2px 3px rgba(255,255,255,0.1);
}
.photo-seal span { font-family: var(--font-title); color: #eedddd; font-size: 2.4rem; letter-spacing: -0.05em; font-weight: 500; position: relative; z-index: 2; text-shadow: 1px 1px 2px rgba(0,0,0,0.6), -1px -1px 2px rgba(255,255,255,0.1);}
.photo-seal span .i { position: relative; top: -2px; margin-right: 2px;}
.photo-seal span .j { position: relative; top: 10px; margin-left: -5px; }

.summary-photo-wrap { max-width: 480px !important; width: 100%; margin: 0 auto; }

/* MEMORIES STYLES */
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-top: 20px; }
.memory-card { background: rgba(0,0,0,0.2); border: 1px solid var(--line-subtle); border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 20px;}
.memory-img { width: 100%; height: auto; display: block; object-fit: cover; }
.memory-meta { padding: 15px; font-family: var(--font-body); }
.memory-note { font-size: 1.1rem; color: #fff; margin-bottom: 8px; line-height: 1.4; font-style: italic;}
.memory-uploader { font-size: 0.85rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-title);}
.upload-tools { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 30px 0; }
.memories-view-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }

/* CEREMONY VIP & ADMIN TOOLS CSS */
.vip-card { padding: 25px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
.vip-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-light); margin-bottom: 15px; background: rgba(0,0,0,0.2); }
.vip-name { font-family: var(--font-title); font-size: 1.2rem; color: var(--ink); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.1em; }
.vip-role { font-family: var(--font-body); font-size: 1.15rem; color: var(--gold-light); font-style: italic; margin-bottom: 5px; }
.vip-affil { font-family: var(--font-body); font-size: 1rem; color: var(--muted); }

.vip-badge {
display: inline-block;
padding: 2px 6px;
border: 1px solid var(--gold-light);
color: var(--gold-light);
border-radius: 4px;
font-size: 0.7rem;
letter-spacing: 0.1em;
vertical-align: middle;
margin-left: 8px;
margin-bottom: 3px;
background: rgba(184,152,152,0.1);
}

.admin-tool-grid {
display: grid;
grid-template-columns: 1fr;
gap: 40px;
align-items: flex-start;
}
@media (min-width: 800px) {
.admin-tool-grid { grid-template-columns: 1fr 1fr; }
}
.admin-col { width: 100%; }

.gift-input {
background: rgba(0,0,0,0.4);
border: 1px solid var(--gold-dim);
color: #fff;
padding: 8px 10px;
border-radius: 4px;
font-family: var(--font-body);
font-size: 1rem;
outline: none;
transition: 0.2s;
}
.gift-input:focus { border-color: var(--gold-light); }
.gift-save-btn {
background: rgba(184,152,152,0.15);
border: 1px solid var(--gold-dim);
color: var(--gold-light);
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-family: var(--font-title);
font-size: 0.75rem;
transition: 0.2s;
}
.gift-save-btn:hover { background: rgba(184,152,152,0.3); color: #fff; }

.glass-box {
background: linear-gradient(180deg, rgba(22, 32, 50, 0.7) 0%, rgba(13, 21, 32, 0.9) 100%);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(184, 152, 152, 0.35); padding: 40px 50px; border-radius: 16px; text-align: left; position: relative;
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
width: 100%; box-sizing: border-box; max-width: 100%; overflow: visible;
}

.box-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; position: relative; z-index: 1;}
.icon-circle { width: 44px; height: 44px; border: 1px solid var(--gold-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(184,152,152,0.05); flex-shrink: 0;}
.icon-svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;}

.box-title { font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--ink); text-transform: uppercase; }
.box-subtitle { font-size: 1rem; color: var(--muted); margin-top: 4px; }
.box-text { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 15px; position: relative; z-index: 1;}

.toggle-btn {
width: 100%; padding: 10px 0; text-align: center; border: 1px solid rgba(184, 152, 152, 0.3); cursor: pointer; border-radius: 12px;
font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); transition: 0.3s; text-transform: uppercase;
background: rgba(184, 152, 152, 0.05); box-sizing: border-box;
}
.toggle-btn.active.attending { background: rgba(184,152,152,0.4); border-color: var(--gold-light); color: #fff; box-shadow: 0 0 15px rgba(184,152,152,0.1); }
.toggle-btn.active.declined { background: rgba(0,0,0,0.5); border-color: #444; color: #888; }

.form-group { margin-top: 25px; width: 100%; box-sizing: border-box; }
.form-label { font-family: var(--font-title); font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; display: block; text-transform: uppercase; }

.decline-state-msg { display: none; text-align: center; position: relative; z-index: 2;}
.decline-state-msg.active { display: block; }

.timeline { position: relative; margin: 20px 0 20px; padding-left: 25px; border-left: 1px solid var(--gold-dim); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -32.5px; top: 2px; width: 14px; height: 14px; background: var(--bg0); border: 1px solid var(--gold); border-radius: 50%; z-index: 2; box-sizing: border-box;}
.timeline-item::after { content: ''; position: absolute; left: -28.5px; top: 6px; width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; z-index: 3; }
.time { font-family: var(--font-title); color: var(--gold-light); font-size: 1.1rem; margin-bottom: 5px; letter-spacing: 0.05em; }
.event-name { font-size: 1.4rem; color: #fff; margin-bottom: 4px; }
.event-loc { font-size: 1.15rem; color: #fff; font-style: normal; margin-bottom: 5px; display: flex; align-items: center; gap: 6px;}
.event-loc svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex-shrink: 0; }
.dynamic-data { font-size: 1.05rem; color: #fff; font-family: var(--font-title); letter-spacing: 0.05em; margin-top: 8px;}
.link-callout { color: var(--gold-light); text-underline-offset: 4px; cursor: pointer; font-style: italic; font-size: 1.1rem; text-decoration: none; }
.link-callout:hover { text-decoration: underline; }

.single-col-stack { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 700px; margin: 0 auto; position: relative; z-index: 2; box-sizing: border-box; }
.btn-group { display: flex; gap: 15px; margin-top: 20px; justify-content: center; flex-wrap: wrap;}

.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: center; max-width: 800px; margin: 0 auto; }
.party-role { font-family: var(--font-title); color: var(--gold); font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid var(--line-subtle); padding-bottom: 10px; }
.party-names { font-size: 1.4rem; color: var(--ink); line-height: 1.8; }
.party-section-full { text-align: center; margin-bottom: 40px; }

.summary-align { text-align: left; }
.summary-flex { justify-content: flex-start; }
.event-selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; width: 100%; box-sizing: border-box; align-items: stretch;}
.event-selection-card { flex: 1; min-width: 160px; text-align: center; background: rgba(0,0,0,0.2); border: 1px solid var(--line-subtle); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; box-sizing: border-box; }
.form-grid { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; box-sizing: border-box; }
.form-grid > div { flex: 1 1 200px; }

.guest-reservation-text { text-align: right; }

.summary-countdown-wrap { margin-top: 40px; width: 100%; max-width: 380px; }

.guest-toggle-group { display:flex; gap:10px; width:220px; flex-shrink:0; justify-content: center; margin: auto; }

/* UNIFIED VINTAGE TURNTABLE PLINTH */
.player-box {
background: linear-gradient(150deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.8));
backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(184, 152, 152, 0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.6);
border-radius: 16px; padding: 40px 20px 30px; text-align: center; width: 100%; max-width: 380px;
display: flex; flex-direction: column; align-items: center; margin-top: 20px; position: relative;
}

.record-area {
position: relative; width: 220px; height: 220px; margin-bottom: 30px; flex-shrink: 0;
}

.record {
width: 100%; height: 100%; border-radius: 50%; position: absolute; top: 0; left: 0;
background: #111; box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 0 4px #1a1a1a, inset 0 0 15px rgba(255,255,255,0.15);
background-image: repeating-radial-gradient(#111, #111 3px, #1c1c1c 4px, #111 5px);
display: flex; align-items: center; justify-content: center; transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.record.playing { animation: spin 4s linear infinite; }
.record::after {
content: ''; position: absolute; inset: 0; border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.1) 45deg, transparent 90deg, transparent 180deg, rgba(255,255,255,0.1) 225deg, transparent 270deg);
pointer-events: none; mix-blend-mode: overlay;
}
.record-label-center {
width: 35%; height: 35%; border-radius: 50%; position: relative;
display: flex; align-items: center; justify-content: center;
background-image: url('https://irisandjeffrey.com/couple-photo2.jpg');
background-size: cover; background-position: center;
box-shadow: inset 0 0 10px rgba(0,0,0,0.5); z-index: 2;
}
.record-label-center::before { content: ''; position: absolute; width: 12px; height: 12px; background: #0d1520; border-radius: 50%; box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);}

.tonearm {
position: absolute; right: -5%; bottom: 10%; width: 25px; height: 140px; transform-origin: top center;
transform: rotate(15deg); transition: transform 1s ease; z-index: 10;
}
.tonearm.playing { transform: rotate(35deg); }
.tonearm-base { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: #2a2a2a; border-radius: 50%; border: 2px solid var(--gold-dim); box-shadow: 0 4px 10px rgba(0,0,0,0.6);}
.tonearm-arm { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 8px; height: 100px; background: linear-gradient(to right, #555, #888, #555); border-radius: 4px; box-shadow: 2px 2px 5px rgba(0,0,0,0.5);}
.tonearm-head { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) rotate(20deg); width: 16px; height: 28px; background: #1a1a1a; border-radius: 2px; border-top: 3px solid var(--gold-light); box-shadow: 2px 4px 8px rgba(0,0,0,0.8);}
@keyframes spin { 100% { transform: rotate(360deg); } }

.music-note { position: absolute; color: var(--gold-light); font-size: 1.5rem; pointer-events: none; opacity: 0; z-index: 20; text-shadow: 0 0 10px var(--gold-light); }
.record-area.playing .music-note { animation: floatUpNote 3s ease-in-out infinite forwards; }
.record-area.playing #mn1 { animation-delay: 0s; left: 10%; top: 40%; }
.record-area.playing #mn2 { animation-delay: 0.8s; right: 15%; top: 50%; font-size: 1.2rem; }
.record-area.playing #mn3 { animation-delay: 1.6s; left: 20%; top: 60%; font-size: 1.8rem; }
.record-area.playing #mn4 { animation-delay: 2.4s; right: 25%; top: 30%; }

@keyframes floatUpNote { 0% { opacity: 0; transform: translateY(0) scale(0.8) rotate(0deg); } 20% { opacity: 1; } 80% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-100px) scale(1.2) rotate(20deg); } }

.playlist-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--line-subtle); transition: background 0.3s ease; border-radius: 8px; margin-bottom: 5px; min-width: 0; width: 100%; box-sizing: border-box; }
.playlist-item:hover { background: rgba(184,152,152,0.05); }
.playlist-info { flex: 1; min-width: 0; overflow: hidden; }

.playlist-title { font-family: var(--font-body); font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: 10px; min-width: 0;}
.playlist-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; flex: 1; min-width: 0; text-align: left; }
.playlist-title.playable { cursor: pointer; transition: 0.3s; }
.playlist-title.playable:hover { color: var(--gold-light); }

.playlist-artist { font-family: var(--font-title); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: left; }
.playlist-action { display: flex; align-items: center; gap: 8px; padding-left: 15px; flex-shrink: 0;}
.heart-btn { cursor: pointer; background: none; border: none; padding: 5px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: rgba(184,152,152,0.5);}
.heart-btn.hearted { color: var(--gold-light); }
.heart-btn:hover { transform: scale(1.15); }
.heart-btn:active { transform: scale(0.95); }
.heart-count { font-family: var(--font-body); font-size: 1.1rem; color: var(--muted); min-width: 20px; text-align: right;}

.audio-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 5px; }
.audio-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(184,152,152,0.1); border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; color: var(--gold-light); cursor: pointer; transition: 0.3s; }
.audio-btn:hover { background: rgba(184,152,152,0.3); color: #fff; border-color: var(--gold-light); }
.audio-btn.play-btn { width: 50px; height: 50px; }

#music-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: flex-start; }

@media (min-width: 769px) and (max-width: 1200px) {
.nav-links-wrapper { gap: 12px; }
.nav-link { font-size: 0.75rem; letter-spacing: 0.08em; padding: 5px; }
}

@media (max-width: 768px) {
.page-title { margin-bottom: 2px; }
.page-subtitle { margin-bottom: 15px; }

.top-nav { display: none !important; }

.bg-castle { background-position: left center !important; }

.d-only, .d-only-flex { display: none !important; }
.m-only { display: block !important; }
.m-only-flex { display: flex !important; }

.app-wrapper { padding: 0px; }
.card { height: auto; min-height: 100vh; max-height: none; width: 100%; border-radius: 0px; border: none; background: linear-gradient(150deg, rgba(22, 32, 50, 0.85), rgba(13, 21, 32, 0.95)); }

.view-container { padding: 20px 15px 0; overflow-x: hidden; }
.view::after { min-height: 40px; }
.glass-box { padding: 25px 20px; margin: 0 auto; max-width: 100%; box-sizing: border-box;}

#view-entry { justify-content: center; padding-bottom: 40px; }

.hero-grid { grid-template-columns: 1fr !important; text-align: center; gap: 40px !important; padding-top: 0; width: 100%; align-items: center;}

.rsvp-layout-grid { display: flex; flex-direction: column; margin-bottom: 20px; gap: 0;}
.rsvp-left-col { flex: 1; max-width: 100%; display: flex; flex-direction: column;}
.hero-copy { padding: 5px 15px 0; text-align: center; align-items: center; justify-content: center;}

.hero-names { margin: 5px 0 !important; font-size: 3rem !important; }
.hero-date-loc { margin-bottom: 10px !important; }
.photo-arch-container { padding: 0; width: 100%; justify-content: center;}

#entry-photo-mobile { margin-top: 35px; margin-bottom: 25px; padding-bottom: 0; width: 100%; justify-content: center;}
.rsvp-left-col .photo-arch-container { order: -1; margin-bottom: 30px; margin-top: 15px; justify-content: center;}

.photo-arch-wrap { border-radius: 16px !important; padding: 12px !important; margin: 0 auto 5px !important; max-width: 280px !important;}
.photo-arch-wrap::after { border-radius: 12px !important; inset: 6px !important; }
.photo-arch { border-radius: 8px !important; aspect-ratio: 4/5 !important; }
.photo-seal { bottom: -15px !important; right: -5px !important; width: 80px !important; height: 80px !important; }
.photo-seal span { font-size: 1.5rem !important; }
.mobile-photo-wrap { padding-right: 15px !important; padding-bottom: 15px !important; margin-bottom: 5px !important; }
.rsvp-left-col .photo-arch-wrap { margin-bottom: 45px !important; }

#guest-step-header { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
.guest-reservation-text { text-align: left !important; }

.summary-event-row { flex-direction: column; align-items: center; gap: 15px; padding: 25px 0; text-align: center;}
.summary-event-row .event-details { margin-left: 0; text-align: center !important; }

.btn-group { flex-direction: column; }
.party-grid { grid-template-columns: 1fr; }

.form-grid { grid-template-columns: 1fr !important; }
.event-selection-grid { flex-direction: column; gap: 10px !important; }

.summary-align { text-align: center !important; padding-top: 0 !important; }
.summary-flex { justify-content: center !important; }

.rsvp-left-col { padding-top: 0 !important; }
#summary-right-column { order: -1; margin-bottom: 0; padding-top: 0 !important; }

#decline-right-column { order: -1; margin-bottom: 0; padding-top: 0 !important;}

body.unlocked .hamburger-btn { display: flex !important; }
body.unlocked .mobile-app-bar { display: flex !important; position: sticky; top: 0; background: var(--bg1); }
body.unlocked:not(.has-rsvpd) .hamburger-btn { display: none !important; }

body:not(.unlocked) .mobile-app-bar { display: flex !important; background: transparent; border: none; padding-top: 25px; pointer-events: none;}
body:not(.unlocked) .mobile-app-bar .m-logo,
body:not(.unlocked) .mobile-app-bar .m-title { display: none !important; }
body:not(.unlocked) .hamburger-btn { display: none !important; }

.guest-block > div[style*="justify-content"] { flex-wrap: wrap; }
.guest-toggle-group { width: 100%; margin-top: 10px; }

/* Ensure turntable displays above lists on mobile /
#st-left-col { align-items: center !important; text-align: center !important; padding-top: 20px;}
.st-title, .st-subtitle { text-align: center !important; margin-left: auto; margin-right: auto; }
.player-box { max-width: 100%; margin: 20px auto 40px; }
#view-soundtrack .hero-grid { gap: 30px !important; }
/ THE FIX: align-items: stretch prevents center-shrinking, overflow: hidden prevents blowing out the parent */
#st-right-col { width: 100%; align-items: stretch !important; overflow: hidden; }
}

@media (min-width: 769px) {
.mobile-app-bar, .hamburger-btn, .mobile-menu-overlay { display: none !important; }
body:not(.unlocked) .mobile-app-bar { display: none !important; }

#st-left-col { position: sticky; top: 0; align-items: flex-start; text-align: left; max-width: 100% !important;}
.st-title, .st-subtitle { text-align: left; }

/* Use balanced columns to prevent squishing */
#view-soundtrack .hero-grid { grid-template-columns: 380px 1fr; gap: 60px; }
}

@media (min-width: 1025px) {
.card { max-height: 850px; } /* Apply the anti-stretch fix ONLY to larger desktop monitors */
#view-soundtrack .hero-grid { grid-template-columns: 380px 1fr; gap: 80px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
.app-wrapper { padding: 40px 20px; }
.card { height: calc(100vh - 80px); max-height: 95vh; width: 100%; } /* Ensure it stretches vertically on tablet */
.hero-grid { gap: 30px;}
.rsvp-layout-grid { display: flex; flex-direction: column; gap: 30px; }
.rsvp-left-col { max-width: 100%; }
.hero-copy { padding: 40px 0 20px 20px; align-items: flex-start; text-align: left;}
.glass-box { padding: 40px 30px; }
}