:root {
  --ink: #14202a;
  --muted: #66737d;
  --paper: #f4f1ea;
  --card: rgba(255,255,255,.88);
  --line: rgba(20,32,42,.12);
  --navy: #101a23;
  --navy-2: #1b2b38;
  --gold: #d7a74b;
  --gold-soft: #f4e4bd;
  --green: #2f765a;
  --green-soft: #dcece4;
  --red: #a44845;
  --red-soft: #f3dedd;
  --blue: #3b6d89;
  --shadow: 0 20px 55px rgba(28,35,40,.11);
}

* { box-sizing: border-box; }
html { width: 100%; min-height: 100%; overflow-x: clip; background: var(--paper); touch-action: pan-y; }
body { width: 100%; min-height: 100vh; margin: 0; overflow-x: clip; overscroll-behavior-x: none; touch-action: pan-y; color: var(--ink); background: radial-gradient(circle at 78% -5%, #f7e9c8 0, transparent 28rem), linear-gradient(180deg, #f7f5ef 0%, #efebe2 100%); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html.splash-pending, html.onboarding-pending { overflow: hidden; }
.experience-pending .app-shell, .install-required .app-shell { visibility: hidden; opacity: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.field[hidden] { display: none !important; }
.button.destructive { color: #913e3a; border-color: rgba(164,72,69,.42); }
.button.destructive:hover { color: white; background: var(--red); border-color: var(--red); }
.record-actions { display: flex; flex-wrap: wrap; gap: 7px; }

.install-gate { position: fixed; z-index: 2200; inset: 0; min-height: 100dvh; display: none; place-items: center; overflow: hidden; padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); color: #f6f0df; background: #0b141b; }
.install-required .install-gate { display: grid; }
.install-aurora { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 45%, rgba(215,167,75,.2), transparent 28%), radial-gradient(circle at 10% 90%, rgba(58,106,133,.2), transparent 34%); }
.install-card { position: relative; z-index: 1; width: min(430px, 100%); display: grid; justify-items: center; text-align: center; }
.install-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.install-eyebrow { margin: 26px 0 10px; color: #d7a74b; font-size: 11px; font-weight: 850; letter-spacing: .17em; }
.install-card h1 { margin: 0; font: 700 clamp(36px, 9vw, 54px)/1 Georgia, serif; }
.install-copy { margin: 20px 0 26px; color: #cbd3d8; font-size: 15px; line-height: 1.65; }
.install-primary { width: min(310px, 100%); min-height: 60px; color: #101a23; background: #d7a74b; border: 1px solid #f0cf82; border-radius: 999px; font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.install-status { min-height: 18px; margin: 17px 0 0; color: #93a1aa; font-size: 11px; }
.install-preview-close { margin-top: 18px; color: #93a1aa; font-size: 11px; }
.install-help-modal { position: absolute; z-index: 4; inset: 0; padding: 0; overflow: hidden; color: #f5f0e5; background: rgba(4,8,11,.985); opacity: 0; visibility: hidden; pointer-events: none; transition: .3s ease; }
.install-help-modal.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.install-help-modal article { width: 100%; height: 100%; margin: 0; }
.install-help-shell { display: flex; flex-direction: column; padding: max(76px, calc(env(safe-area-inset-top) + 58px)) 0 max(15px, env(safe-area-inset-bottom)); }
.install-help-modal h2 { flex: 0 0 auto; margin: 0; padding: 0 68px 14px 20px; color: #d7a74b; font: 700 clamp(25px, 7vw, 34px)/1.08 Georgia, serif; }
.install-help-modal h3 { margin-top: 32px; font: 700 22px/1.2 Georgia, serif; }
.install-help-modal li { margin: 0 0 14px; color: #d5dce0; line-height: 1.55; }
.install-help-close { position: fixed; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); width: 44px; height: 44px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 28px; }
[data-install-help][hidden] { display: none !important; }
[data-install-help="ipad"], [data-install-help="android"], [data-install-help="desktop"] { min-height: 0; padding: 0 24px; overflow-y: auto; }
.install-help-ios { min-height: 0; flex: 1; display: grid; grid-template-rows: minmax(0,1fr) auto auto; }
.install-help-gallery { min-width: 0; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.install-help-gallery::-webkit-scrollbar { display: none; }
.install-help-slide { flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; margin: 0; padding: 0 14px; display: grid; grid-template-rows: minmax(0,1fr) auto; justify-items: center; gap: 10px; scroll-snap-align: center; scroll-snap-stop: always; }
.install-help-slide img { width: auto; max-width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; border-radius: 17px; box-shadow: 0 18px 50px rgba(0,0,0,.42); }
.install-help-slide figcaption { min-height: 24px; color: #e6e0d4; font-size: 14px; line-height: 1.35; text-align: center; }
.install-help-slide figcaption strong { color: #efc873; }
.install-help-dots { display: flex; justify-content: center; gap: 12px; padding: 10px 16px 0; }
.install-help-dots button { min-width: 24px; min-height: 28px; padding: 0; color: #58636a; background: transparent; border: 0; font-size: 15px; line-height: 1; transition: color .2s ease, transform .2s ease; }
.install-help-dots button.is-active { color: #d7a74b; transform: scale(1.25); }
.install-help-swipe { margin: 1px 0 0; color: #8f9aa1; font-size: 11px; line-height: 1; text-align: center; }
.install-help-modal.is-iphone-gallery .install-help-close,
.install-help-modal.is-iphone-gallery h2 { display: none; }
.install-help-modal.is-iphone-gallery .install-help-shell { padding: max(4px, env(safe-area-inset-top)) 0 max(4px, env(safe-area-inset-bottom)); }
.install-help-modal.is-iphone-gallery .install-help-ios { position: relative; display: block; height: 100%; }
.install-help-modal.is-iphone-gallery .install-help-gallery { height: 100%; }
.install-help-modal.is-iphone-gallery .install-help-slide { padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.install-help-modal.is-iphone-gallery .install-help-slide img { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.install-help-modal.is-iphone-gallery .install-help-slide figcaption,
.install-help-modal.is-iphone-gallery .install-help-swipe { display: none; }
.install-help-modal.is-iphone-gallery .install-help-dots { position: absolute; z-index: 2; right: 0; bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px)); left: 0; padding: 0; pointer-events: none; }
.install-help-modal.is-iphone-gallery .install-help-dots button { color: rgba(255,255,255,.48); text-shadow: 0 1px 7px #000; pointer-events: auto; }
.install-help-modal.is-iphone-gallery .install-help-dots button.is-active { color: #f1c86e; }
.install-complete { position: absolute; z-index: 6; inset: 0; padding: 26px; display: none; place-content: center; justify-items: center; color: #f6f0df; background: #0b141b; text-align: center; }
.install-gate.is-complete .install-complete { display: grid; }
.install-complete h2 { margin: 25px 0 12px; font: 700 34px/1.1 Georgia, serif; }
.install-complete p { max-width: 480px; margin: 0; color: #cbd3d8; line-height: 1.6; }

.app-shell { min-height: 100vh; }
.front-intro { position: fixed; z-index: 1100; inset: 0; min-height: 100dvh; overflow: hidden; color: white; background: #05080a; opacity: 0; visibility: hidden; pointer-events: none; }
.onboarding-pending .front-intro { opacity: 1; visibility: visible; pointer-events: auto; }
.front-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s ease, visibility .8s ease; }
.intro-media, .intro-gate { position: absolute; inset: 0; display: grid; place-items: center; }
.intro-media { z-index: 1; background: #030506; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1.1s ease, visibility 1.1s ease; }
.intro-media.is-active { z-index: 3; opacity: 1; visibility: visible; pointer-events: auto; }
.intro-media.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.voice-greeting { position: absolute; z-index: 5; inset: 0; background: #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility .7s ease; }
.voice-greeting.is-active { opacity: 1; visibility: visible; }
.voice-greeting.is-leaving { opacity: 0; visibility: hidden; }
.intro-media video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.intro-tap { position: absolute; z-index: 7; left: 50%; top: 50%; margin: 0; min-height: 54px; padding: 0 28px; color: #101a23; background: #d7a74b; border: 1px solid #f5e6b8; border-radius: 999px; box-shadow: 0 16px 60px rgba(0,0,0,.55); font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .03em; opacity: 0; transform: translate(-50%, calc(-50% + 8px)); pointer-events: none; transition: .35s ease; white-space: nowrap; }
.intro-media.autoplay-blocked { cursor: pointer; }
.intro-media.autoplay-blocked .intro-tap { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.intro-video-error { position: absolute; z-index: 6; width: min(360px, calc(100% - 42px)); padding: 24px; color: white; background: rgba(8,13,17,.94); border: 1px solid rgba(215,167,75,.45); border-radius: 18px; text-align: center; }
.intro-video-error[hidden] { display: none; }
.intro-video-error button { min-height: 44px; padding: 0 20px; color: #101a23; background: #d7a74b; border: 0; border-radius: 999px; font-weight: 800; }
.welcome-crawl { position: absolute; top: 84%; width: min(880px, calc(100% - 42px)); padding: 0 clamp(20px, 7vw, 74px) 32vh; color: #f5f0e5; animation: welcome-cinema-scroll var(--welcome-duration, 30s) linear forwards; animation-play-state: paused; }
.intro-media.is-active .welcome-crawl { animation-play-state: running; }
.welcome-crawl-content { font: 500 clamp(18px, 3vw, 30px)/1.65 Georgia, serif; text-align: center; text-wrap: balance; }
.welcome-crawl-content h1, .welcome-crawl-content h2, .welcome-crawl-content h3 { color: #d7a74b; font-family: Georgia, serif; }
.welcome-crawl-content p { margin: 0 0 1.25em; }
.welcome-crawl-content ul, .welcome-crawl-content ol { width: fit-content; margin: 1em auto; text-align: left; }
.intro-media::before, .intro-media::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; height: 18vh; pointer-events: none; }
.intro-media::before { top: 0; background: linear-gradient(#030506 18%, transparent); }
.intro-media::after { bottom: 0; background: linear-gradient(transparent, #030506 82%); }
.intro-gate { z-index: 1; overflow: hidden; background: radial-gradient(circle at 50% 43%, rgba(177,154,84,.16), transparent 31rem), var(--intro-color, #0b141b); opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.025); transition: opacity 1.15s ease, visibility 1.15s ease, transform 1.15s ease; }
.intro-gate.is-active { z-index: 3; opacity: 1; transform: scale(1); }
.intro-gate.is-active { visibility: visible; pointer-events: auto; }
.intro-gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.99); }
.front-intro.is-dormant { display: none; }
.intro-gate-content { position: relative; z-index: 2; width: 100%; height: 100%; }
.intro-static-logo { position: absolute; top: calc(50% - 26px); left: 50%; width: min(78vw, 560px); max-height: 62vh; display: block; border: 0; transform: translate(-50%,-50%); }
.intro-static-logo svg { width: 100%; height: auto; max-height: 62vh; display: block; overflow: visible; }
.intro-actions { position: absolute; z-index: 3; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); left: 18px; display: grid; justify-items: center; }
.intro-start { min-width: min(270px, 76vw); min-height: 56px; margin-top: 14px; padding: 0 28px; color: var(--intro-button-color, #101a23); background: var(--intro-button-bg, #d7a74b); border: 2px solid var(--intro-button-border, #f5e6b8); border-radius: 999px; box-shadow: 0 14px 38px rgba(0,0,0,.25); font-size: 16px; font-weight: 850; letter-spacing: .04em; }
.intro-start:focus-visible { outline: 2px solid rgba(255,255,255,.65); outline-offset: 4px; }
.intro-start:disabled { opacity: .45; cursor: default; }
.legal-check { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.88); font-size: 12px; }
.legal-check input { width: 20px; height: 20px; margin: 0; accent-color: #d7a74b; }
.legal-check button { padding: 0; color: #f0cf82; background: transparent; border: 0; font-size: 14px; text-decoration: underline; }
.legal-modal { position: absolute; z-index: 10; inset: 0; padding: max(70px, env(safe-area-inset-top)) 22px max(34px, env(safe-area-inset-bottom)); overflow: auto; color: #f5f0e5; background: rgba(4,8,11,.98); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s ease; }
.legal-modal.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.legal-modal article { width: min(760px, 100%); margin: 0 auto; font: 16px/1.7 Inter, sans-serif; }
.legal-modal h1, .legal-modal h2, .legal-modal h3 { color: #d7a74b; font-family: Georgia, serif; }
.legal-close { position: fixed; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); width: 42px; height: 42px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 28px; }
.intro-brand { margin: 12px 0 0; color: rgba(246,240,223,.58); font: 12px/1.4 Georgia, serif; letter-spacing: .1em; }
@keyframes welcome-cinema-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% - 100vh)); } }
.app-splash { position: fixed; z-index: 1200; inset: 0; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; color: #f6f0df; background: radial-gradient(circle at 50% 43%, rgba(177,154,84,.16), transparent 31rem), var(--splash-color, #0b141b); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility .7s ease; }
.splash-pending .app-splash { opacity: 1; visibility: visible; pointer-events: auto; }
.splash-background { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .38; mix-blend-mode: luminosity; }
.app-splash::before, .app-splash::after { content: ""; position: absolute; width: min(78vw, 760px); aspect-ratio: 1; border: 1px solid rgba(177,154,84,.14); border-radius: 50%; }
.app-splash::before { right: -30vw; bottom: -48vw; box-shadow: 0 0 0 70px rgba(177,154,84,.025), 0 0 0 150px rgba(177,154,84,.018); }
.app-splash::after { left: -46vw; top: -62vw; opacity: .5; }
.splash-pending .app-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-glow { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.025) 50%, transparent 65%); transform: translateX(-100%); animation: splash-shimmer 3.8s ease-in-out .4s both; }
.splash-stage { position: relative; z-index: 1; width: min(78vw, 560px); display: grid; justify-items: center; }
.splash-logo { width: 100%; max-height: 62vh; display: block; border: 0; }
.splash-logo svg { width: 100%; height: auto; max-height: 62vh; display: block; overflow: visible; }
.splash-kicker { margin: clamp(14px, 3vh, 28px) 0 0; color: rgba(246,240,223,.68); font-family: Georgia, serif; font-size: clamp(11px, 1.7vw, 15px); letter-spacing: .12em; text-align: center; opacity: 0; animation: splash-kicker-in .8s ease 3.3s forwards; }
.splash-progress { width: min(230px, 60vw); height: 1px; margin-top: 22px; overflow: hidden; background: rgba(177,154,84,.18); }
.splash-progress i { display: block; width: 100%; height: 100%; background: #b19a54; transform: translateX(-100%); animation: splash-progress 4.25s cubic-bezier(.22,.61,.36,1) forwards; }
.splash-skip { position: absolute; z-index: 2; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); padding: 9px 12px; color: rgba(255,255,255,.55); background: transparent; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 13px; letter-spacing: .05em; transition: color .2s ease, border-color .2s ease; }
.splash-skip:hover, .splash-skip:focus-visible { color: white; border-color: rgba(177,154,84,.65); outline: none; }
@keyframes splash-shimmer { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes splash-kicker-in { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(8px); } }
@keyframes splash-progress { to { transform: translateX(0); } }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.brand-mark { width: 62px; height: 62px; display: grid; place-items: center; color: var(--paper); background: var(--navy); border-radius: 20px; font: 800 19px/1 Georgia, serif; letter-spacing: .08em; box-shadow: var(--shadow); }

.topbar { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 clamp(18px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #f8f5ee; background: rgba(16,26,35,.96); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .brand-mark { width: 40px; height: 40px; border-radius: 13px; background: #f5f0e5; color: var(--navy); box-shadow: none; font-size: 13px; }
.brand-copy strong { display: block; font-family: Georgia, serif; font-size: 17px; letter-spacing: .04em; }
.brand-copy span { display: block; margin-top: 2px; color: #aab4bb; font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mode-chip { padding: 7px 10px; color: #d6dde1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; font-size: 11px; }

.page { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 74px; }
.hero { position: relative; min-height: 274px; padding: clamp(28px, 5vw, 58px); overflow: hidden; color: white; background: linear-gradient(120deg, rgba(15,26,35,.97), rgba(29,49,62,.92)), radial-gradient(circle at 80% 50%, #776033, transparent 40%); border-radius: 28px; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -70px; bottom: -145px; width: 420px; height: 420px; border: 1px solid rgba(215,167,75,.3); border-radius: 50%; box-shadow: 0 0 0 42px rgba(215,167,75,.05), 0 0 0 94px rgba(215,167,75,.035); }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 740px; margin: 0; font: 700 clamp(34px, 6vw, 68px)/.98 Georgia, serif; letter-spacing: -.035em; }
.hero-copy { max-width: 680px; margin: 22px 0 0; color: #d7dde1; font-size: 16px; line-height: 1.6; }
.intro-video { width: min(680px, 100%); margin-top: 22px; overflow: hidden; background: #080d11; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; aspect-ratio: 16 / 9; }
.intro-video iframe, .intro-video video { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; }
.intro-video-link { margin-top: 20px; }
.asset-preview-slot { min-height: 0; margin-top: 12px; }
.asset-thumb { position: relative; width: min(190px, 100%); aspect-ratio: 16 / 10; display: block; overflow: hidden; padding: 0; color: white; background: #091016; border: 1px solid rgba(20,32,42,.18); border-radius: 14px; box-shadow: 0 10px 28px rgba(20,32,42,.12); text-align: left; }
.asset-thumb img, .asset-thumb video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.asset-thumb > span:last-child { position: absolute; right: 0; bottom: 0; left: 0; padding: 22px 9px 8px; overflow: hidden; background: linear-gradient(transparent, rgba(0,0,0,.84)); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.asset-play { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; display: grid; place-items: center; padding-left: 2px; background: rgba(215,167,75,.92); border-radius: 50%; transform: translate(-50%,-50%); }
.avatar-button { padding: 0; border: 0; }
.asset-modal { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: max(58px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom)); color: white; background: rgba(3,7,10,.97); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.asset-modal.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.asset-modal-card { width: 100%; height: calc(100dvh - max(68px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom))); display: grid; grid-template-rows: auto minmax(0,1fr); gap: 10px; }
.asset-modal-card h2 { max-width: calc(100% - 120px); margin: 0 auto; overflow: hidden; color: #f5e6b8; font: 700 clamp(18px,4vw,28px)/1.1 Georgia,serif; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.asset-modal-media { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.asset-modal-media video { max-width: calc(100% - 24px); max-height: 100%; display: block; object-fit: contain; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.asset-zoom-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; touch-action: none; user-select: none; cursor: grab; }
.asset-zoom-viewport:active { cursor: grabbing; }
.asset-zoom-image { width: auto; max-width: none; height: 100%; max-height: none; margin: auto; display: block; object-fit: contain; object-position: center center; transform-origin: center center; will-change: transform; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.asset-modal.fit-width .asset-zoom-image { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.asset-zoom-help { position: absolute; z-index: 2; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; padding: 8px 12px; color: #f3ead6; background: rgba(3,7,10,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 12px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.asset-modal-close { position: fixed; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: white; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: 30px; }
.event-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.fact { padding: 10px 13px; display: flex; align-items: center; gap: 8px; color: #e9ecee; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; font-size: 12px; }

.nav-tabs { position: sticky; top: 72px; z-index: 15; margin: 22px 0; padding: 7px; display: flex; gap: 5px; overflow-x: auto; background: rgba(244,241,234,.9); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(14px); }
.tab { min-height: 42px; padding: 0 16px; white-space: nowrap; color: var(--muted); background: transparent; border: 0; border-radius: 11px; font-size: 15px; font-weight: 700; }
.tab.active { color: white; background: var(--navy); }
.tab-panel[hidden] { display: none; }

.section-head { margin: 34px 0 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-head h2 { margin: 0; font: 700 28px/1.1 Georgia, serif; }
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.metrics { grid-template-columns: repeat(4, 1fr); }
.two-col { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.card { padding: 22px; background: var(--card); border: 1px solid rgba(255,255,255,.75); border-radius: 20px; box-shadow: 0 9px 28px rgba(27,37,43,.06); }
.metric { min-height: 122px; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric strong { display: block; margin-top: 16px; font: 700 34px/1 Georgia, serif; }
.metric small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.progress { height: 7px; margin-top: 17px; overflow: hidden; background: #e6e2d9; border-radius: 99px; }
.progress i { display: block; width: var(--progress, 0%); height: 100%; background: var(--gold); border-radius: inherit; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.confirmed, .status.complete, .status.paid, .status.ready { color: var(--green); background: var(--green-soft); }
.status.pending, .status.maybe, .status.started, .status.queued { color: #896a27; background: var(--gold-soft); }
.status.declined, .status.failed { color: var(--red); background: var(--red-soft); }
.status.waiting_role, .status.waiting_photo { color: var(--blue); background: #dceaf0; }

.list { display: grid; gap: 10px; }
.guest-row { padding: 14px; display: grid; grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(100px, .5fr)) auto; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: white; background: linear-gradient(135deg, var(--navy-2), #526977); border-radius: 13px; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity strong, .identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.row-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.guest-deadline-form, .guest-add-form { margin-top: 20px; }
.guest-deadline-form .form-grid { max-width: 640px; }
.guest-deadline-form .field-note { margin: -4px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guest-add-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guest-add-form .field.full { grid-column: auto; }
.guest-add-form .guest-form-subhead.field.full { grid-column: 1 / -1; }
.guest-form-subhead { margin-top: 4px; padding-top: 14px; color: var(--navy); border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.guest-form-subhead small { font-weight: 400; }
.guest-list-head { margin: 32px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.guest-list-head h3 { margin: 0; color: var(--navy); font: 700 22px/1.2 Georgia, serif; }
.guest-list-head span { color: var(--muted); font-size: 13px; }
.guest-admin-list { gap: 18px; }
.guest-admin-list > .card { min-width: 0; padding: 20px; }
.guest-admin-list .guest-row { min-width: 0; padding: 0; grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(100px, .45fr)); gap: 18px; border: 0; border-radius: 0; background: transparent; }
.guest-admin-list .row-actions { grid-column: 1 / -1; padding-top: 16px; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line); }
.guest-admin-list .row-actions [data-action="reset-onboarding"] { margin-left: auto; }
.guest-admin-list .identity small.guest-location-summary { color: #926b2b; font-weight: 800; }
.guest-editor { margin-top: 17px; border-top: 1px solid var(--line); }
.guest-editor summary { padding: 15px 0 0; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.guest-editor[open] summary { margin-bottom: 18px; }
.guest-editor .form-grid { padding-top: 1px; }
.guest-greeting-control { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(248,248,246,.72); }
.guest-greeting-control audio { width: 100%; max-width: 520px; }
.guest-greeting-control > label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.guest-greeting-control .greeting-remove { min-height: 32px; display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; }
.guest-greeting-control .greeting-remove input { width: 18px; min-height: 18px; margin: 0; }
.greeting-empty { color: var(--muted); font-size: 12px; }

.button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--navy); border: 1px solid var(--navy); border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button.gold { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.button.ghost { color: var(--ink); background: white; border-color: var(--line); }
.button.light { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.button.small { min-height: 36px; padding: 0 11px; border-radius: 9px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.form-card h3, .card h3 { margin: 0 0 16px; font: 700 19px/1.2 Georgia, serif; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; min-width: 0; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 11px; font-weight: 700; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); background: rgba(248,248,246,.94); border: 1px solid var(--line); border-radius: 11px; outline: none; }
.field textarea { min-height: 92px; resize: vertical; }
.field textarea.code-area { min-height: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,167,75,.18); }
.option-field label { min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; }
.option-field input, .splash-screens input { width: 18px; min-height: 18px; margin: 0; padding: 0; }
.splash-screens { margin: 0; padding: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.splash-screens legend { padding: 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.splash-screens label { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; }
.form-actions { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 9px; }

.timeline { display: grid; gap: 12px; }
.agenda-card { padding: 18px; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: white; border: 1px solid var(--line); border-radius: 17px; }
.agenda-time { color: var(--navy); font: 700 16px/1.2 Georgia, serif; }
.agenda-time-end { display: block; }
.agenda-time small { display: block; margin-top: 5px; color: var(--muted); font: 500 10px/1.2 Inter, sans-serif; }
.agenda-admin-actions { display: grid; justify-items: end; }
.agenda-admin-actions .button { margin-top: 10px; }
.agenda-edit-form { grid-column: 1 / -1; margin-top: 5px; padding-top: 16px; border-top: 1px solid var(--line); }
.agenda-edit-form h4 { margin: 0; color: var(--navy); font: 700 17px/1.2 Georgia, serif; }
.agenda-edit-form .form-actions { margin-top: 0; }
.agenda-chain-warning { margin-bottom: 16px; padding: 14px 16px; color: #6b251f; background: #f7e3d7; border: 1px solid #dfb99b; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.agenda-card h3 { margin: 0 0 5px; font-size: 15px; }
.agenda-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.vote-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.vote { min-width: 0; min-height: 80px; padding: 8px 5px; display: grid; place-content: center; justify-items: center; gap: 5px; border: 1px solid currentColor; border-radius: 11px; }
.vote svg { width: 38px; height: 38px; display: block; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vote svg .face-eye { fill: currentColor; stroke: none; }
.vote strong { font-size: clamp(11px, 3.1vw, 13px); letter-spacing: .025em; }
.vote.positive { color: #2c805d; background: #e4f2e8; }
.vote.negative { color: #b23d47; background: #f8e5e5; }
.vote.positive.active { color: #fff; background: #2c805d; border-color: #2c805d; box-shadow: 0 0 0 2px rgba(44,128,93,.22); }
.vote.negative.active { color: #fff; background: #b23d47; border-color: #b23d47; box-shadow: 0 0 0 2px rgba(178,61,71,.22); }

.expense-row { padding: 13px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.expense-row:last-child { border-bottom: 0; }
.expense-row strong { font-size: 13px; }
.expense-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.expense-order-help { margin: -7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.expense-admin-list { display: grid; gap: 10px; }
.expense-admin-item { min-width: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.expense-admin-item.is-hidden { background: #f7f7f5; border-style: dashed; }
.expense-admin-item.is-hidden .expense-row { opacity: .65; }
.expense-admin-item .expense-row { padding: 0 0 12px; align-items: flex-start; }
.expense-admin-item .expense-row > span:first-child { min-width: 0; }
.expense-admin-item .expense-row strong { overflow-wrap: anywhere; }
.expense-admin-item .expense-row .money { flex: 0 0 auto; }
.expense-admin-actions { padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.expense-admin-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.expense-visibility-toggle { min-height: 34px; padding: 7px 11px; color: #7d4c45; background: #fff4f0; border: 1px solid #e0b8ad; border-radius: 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.expense-visibility-toggle.is-visible { color: #245a42; background: #eef8f1; border-color: #b7d8c4; }
.expense-visibility-toggle:disabled { opacity: .5; cursor: wait; }
.expense-total-control { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.expense-total-control > div { display: grid; gap: 4px; }
.expense-total-control strong { color: var(--navy); }
.expense-total-control small { color: var(--muted); line-height: 1.4; }
.expense-edit-form { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.expense-edit-form h4 { margin: 0; color: var(--navy); font: 700 17px/1.2 Georgia, serif; }
.expense-edit-form .form-actions { margin-top: 0; }
.money { font: 700 16px/1 Georgia, serif; }
.form-intro { margin: -3px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.api-key-field { padding: 15px; background: #f8f6f1; border: 1px solid var(--line); border-radius: 13px; }
.api-key-status { margin: 7px 0 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.api-key-status small { color: var(--muted); }
.api-remove-key { margin-top: 9px; display: inline-flex; align-items: center; gap: 7px; color: #7d4c45; font-size: 12px; font-weight: 750; }

.guest-page { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 70px; }
.invitation-screen { width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: minmax(285px, 38dvh) minmax(0, 1fr); overflow: hidden; color: #f3eee2; background: #081016; box-shadow: 0 0 70px rgba(0,0,0,.45); }
.invitation-hero { min-height: 0; overflow: hidden; background: linear-gradient(180deg, transparent 62%, rgba(9,17,23,.18) 85%, #0d171d 100%), url('/assets/event-facade.webp') center/cover no-repeat; }
.guest-flow-kicker { margin: 0 0 9px; color: #e2b75f; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.invitation-actions { position: relative; z-index: 2; min-height: 0; margin-top: -1px; padding: 28px 18px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #0d171d 0%, #081016 100%); border-radius: 20px 20px 0 0; }
.invitation-copy { text-align: center; }
.invitation-copy h2 { margin: 0; color: #f4eee1; font: 700 clamp(35px, 9vw, 46px)/1.05 Georgia, serif; text-wrap: balance; }
.invitation-event-title { margin: 11px 0 0; color: #e9c77e; font: 700 20px/1.2 Georgia, serif; }
.invitation-event-dates { max-width: 430px; margin: 14px auto 0; color: #f0d08c; font: 800 clamp(20px, 5.5vw, 27px)/1.2 Georgia, serif; }
.invitation-confirm-by { margin: 9px 0 0; color: #e9c77e; font-size: 14px; font-weight: 750; }
.rsvp-choice-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rsvp-choice { aspect-ratio: 1 / 1; min-width: 0; padding: 10px 4px; display: grid; align-content: center; justify-items: center; gap: 12px; color: #ece8de; background: #111b21; border: 1px solid #2a373e; border-radius: 12px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.rsvp-choice span { width: 48px; height: 48px; display: grid; place-items: center; color: #e8d6ae; border: 1.5px solid #e8d6ae; border-radius: 50%; font: 400 31px/1 Georgia, serif; }
.rsvp-choice strong { font-size: clamp(12px, 3.4vw, 14px); letter-spacing: .025em; }
.rsvp-choice.is-selected { color: white; background: linear-gradient(145deg, #632029, #35151b); border-color: #d7a74b; box-shadow: 0 0 0 1px rgba(215,167,75,.18); transform: translateY(-2px); }
.rsvp-choice.is-selected span { color: #f4dfad; border-color: #f4dfad; }
.invitation-detail-buttons { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.invitation-detail-buttons button { min-width: 0; min-height: 68px; padding: 9px 7px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #f1e9d9; background: #111b21; border: 1px solid #344149; border-radius: 11px; }
.invitation-detail-buttons button span { color: #e6bd6d; font: 700 25px/1 Georgia, serif; }
.invitation-detail-buttons button strong { font-size: clamp(12px, 3.3vw, 15px); line-height: 1.15; letter-spacing: .035em; }
.invitation-detail-buttons button:active { background: #1b2930; }
.invitation-detail-buttons.has-room { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.invitation-detail-buttons.has-room button { min-height: 92px; padding: 9px 4px; flex-direction: column; gap: 5px; }
.invitation-detail-buttons button svg { width: 32px; height: 32px; overflow: visible; fill: none; stroke: #e6bd6d; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.invitation-primary-links { order: initial; margin-top: 24px; }
.invitation-detail-buttons.has-room button strong { font-size: clamp(12px, 3.2vw, 14px); }
.invitation-detail-buttons.has-room button small { max-width: 100%; overflow: hidden; color: #e9c77e; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.invitation-continue { width: 100%; min-height: 62px; margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #fff8ec; background: linear-gradient(90deg, #651b26, #7f2430); border: 1px solid #ad5360; border-radius: 11px; font-size: 16px; font-weight: 850; letter-spacing: .08em; }
.invitation-continue span { font-size: 27px; font-weight: 300; line-height: 1; }
.invitation-continue:disabled { opacity: .35; cursor: not-allowed; }
.invitation-brand { margin: auto 0 0; padding-top: 22px; color: #65747c; text-align: center; font-size: 9px; letter-spacing: .14em; }
.maybe-decision-screen { width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: minmax(250px, 35dvh) minmax(0, 1fr); overflow: hidden; color: #f3eee2; background: #081016; box-shadow: 0 0 70px rgba(0,0,0,.45); }
.maybe-decision-hero { position: relative; min-height: 0; padding: max(25px, env(safe-area-inset-top)) 22px 25px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; background: linear-gradient(180deg, rgba(5,10,14,.55), #0d171d), url('/assets/diamante-proximas-indicaciones.webp') center/cover; }
.maybe-decision-hero .splash-glow { opacity: .4; }
.maybe-decision-symbol { position: relative; z-index: 1; width: 120px; height: 120px; margin: auto; display: grid; place-items: center; color: #f0cb81; border: 2px solid #e1b767; border-radius: 50%; background: rgba(6,14,19,.56); box-shadow: 0 0 35px rgba(218,168,73,.22); font: 700 76px/1 Georgia, serif; }
.maybe-decision-hero .guest-flow-kicker { position: relative; z-index: 1; }
.maybe-decision-content { min-height: 0; padding: 31px 22px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: stretch; overflow-y: auto; background: linear-gradient(180deg, #0d171d, #081016); border-radius: 20px 20px 0 0; text-align: center; }
.maybe-decision-content h1 { margin: 0; font: 700 clamp(34px, 8vw, 46px)/1.05 Georgia, serif; }
.maybe-decision-content > p:not(.guest-flow-kicker):not(.invitation-brand) { color: #acb8bd; font-size: 16px; line-height: 1.5; }
.maybe-decision-deadline { margin: 24px 0 6px; padding: 23px 16px; display: grid; gap: 12px; border: 1px solid #ad8746; border-radius: 14px; background: #151e22; }
.maybe-decision-deadline span { color: #dcb76d; font-size: 13px; font-weight: 800; letter-spacing: .13em; }
.maybe-decision-deadline strong { color: #f7eee0; font: 700 clamp(23px, 6vw, 31px)/1.2 Georgia, serif; }
.maybe-decision-content .invitation-continue { margin-top: 27px; }

.invitation-detail-screen { width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; color: #f3eee2; background: #081016; box-shadow: 0 0 70px rgba(0,0,0,.45); }
.invitation-detail-hero { min-height: 31dvh; padding: max(20px, env(safe-area-inset-top)) 22px 28px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(5,10,14,.66), rgba(5,10,14,.35) 50%, #0d171d), url('/assets/event-facade.webp') center/cover; }
.invitation-expenses-screen .invitation-detail-hero { background: linear-gradient(180deg, rgba(5,10,14,.52), rgba(5,10,14,.45) 50%, #0d171d), url('/assets/diamante-proximas-indicaciones.webp') center 48%/cover; }
.invitation-detail-back { align-self: flex-end; min-height: 46px; padding: 8px 15px; display: inline-flex; align-items: center; gap: 8px; color: #0b1419; background: #e2b75f; border: 1px solid #f3d58d; border-radius: 999px; box-shadow: 0 5px 18px rgba(0,0,0,.32); font-size: 23px; line-height: 1; }
.invitation-detail-back span { font-size: 17px; font-weight: 850; }
.invitation-detail-bottom-back { min-height: 52px; margin: 28px 0 0 auto; padding: 10px 20px; display: block; color: #0b1419; background: #e2b75f; border: 1px solid #f3d58d; border-radius: 999px; font-size: 17px; font-weight: 850; }
.invitation-detail-hero h1 { margin: 4px 0 0; font: 700 clamp(34px, 8vw, 46px)/1 Georgia, serif; }
.invitation-detail-hero p:last-child { margin: 12px 0 0; color: #d2d5d3; font-size: 16px; }
.invitation-detail-hero .agenda-hero-date { margin: 14px 0 0; color: #f0d08c; font: 800 clamp(22px, 6vw, 29px)/1.15 Georgia, serif; }
.invitation-detail-hero .agenda-hero-place { margin: 8px 0 0; color: #f0f1ed; font-size: 17px; font-weight: 700; line-height: 1.35; }
.invitation-detail-content { min-height: 69dvh; padding: 25px 18px max(36px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, #0d171d, #081016); border-radius: 20px 20px 0 0; }
.invitation-detail-intro { margin: 0 0 20px; color: #b9c1c5; font-size: 15px; line-height: 1.5; }
.invitation-detail-empty { padding: 25px 18px; color: #bdc6ca; background: #111b21; border: 1px solid #344149; border-radius: 12px; line-height: 1.5; }
.invitation-detail-content .agenda-card { grid-template-columns: 82px minmax(0, 1fr); gap: 13px; color: #f3eee2; background: #111b21; border-color: #344149; }
.invitation-detail-content .agenda-time { color: #e9c77e; }
.invitation-detail-content .agenda-time small, .invitation-detail-content .agenda-card p { color: #acb8bd; }
.invitation-detail-content .agenda-card h3 { font: 700 19px/1.15 Georgia, serif; }
.invitation-detail-content .vote-group { grid-column: 1 / -1; }
.invitation-detail-content .vote.positive { color: #79d5a0; background: #173326; border-color: #3d8e60; }
.invitation-detail-content .vote.negative { color: #f08c91; background: #3b1d22; border-color: #a3444e; }
.invitation-detail-content .vote.positive.active { color: #fff; background: #247b50; border-color: #91dfb2; }
.invitation-detail-content .vote.negative.active { color: #fff; background: #a53742; border-color: #f29aa0; }
.room-detail-hero { background-size: cover; background-position: center; }
.room-assignment-card { padding: 20px; display: grid; gap: 8px; color: #f3eee2; background: #111b21; border: 1px solid #a58042; border-radius: 15px; text-align: center; }
.room-assignment-card span { color: #dcb76d; font-size: 13px; font-weight: 850; letter-spacing: .1em; }
.room-assignment-card h2 { margin: 0; font: 700 clamp(31px, 8vw, 42px)/1.1 Georgia, serif; }
.room-assignment-card strong { color: #e9c77e; font-size: 17px; }
.roommates-card { margin-top: 14px; padding: 18px; color: #f3eee2; background: #111b21; border: 1px solid #344149; border-radius: 14px; }
.roommates-card > span { display: block; color: #dcb76d; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-align: center; }
.roommates-card ul { margin: 14px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.roommates-card li { padding: 11px 13px; color: #f3eee2; background: #0b151b; border-radius: 9px; font-size: 17px; font-weight: 750; }
.roommates-card p { margin: 14px 0 0; color: #bac5c9; text-align: center; }
.room-photo-preview { width: 100%; margin-top: 18px; padding: 0; display: grid; gap: 0; color: #e9c77e; background: #111b21; border: 1px solid #344149; border-radius: 14px; overflow: hidden; font-size: 15px; font-weight: 750; }
.room-photo-preview img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.room-photo-preview span { padding: 14px; }
.room-photo-pending { margin: 18px 0 0; color: #bac5c9; font-size: 15px; line-height: 1.5; text-align: center; }
.guest-agenda-list { display: grid; gap: 12px; }
.guest-agenda-day { margin: 27px -18px 5px; padding: 14px 18px 12px; color: #081016; background: linear-gradient(90deg,#d7a74b,#efd08e); border: 0; font: 900 22px/1.2 Georgia, serif; text-transform: capitalize; letter-spacing: .01em; }
.guest-agenda-day:first-child { margin-top: 0; }
.guest-agenda-card { min-width: 0; padding: 16px; display: grid; gap: 12px; color: #f3eee2; background: #111b21; border: 1px solid #344149; border-radius: 15px; }
.guest-agenda-image { position: relative; width: 100%; aspect-ratio: 16 / 8; padding: 0; overflow: hidden; color: white; background: #081016; border: 0; border-radius: 11px; }
.guest-agenda-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guest-agenda-image span { position: absolute; right: 0; bottom: 0; left: 0; padding: 22px 11px 9px; background: linear-gradient(transparent,rgba(0,0,0,.82)); font-size: 13px; font-weight: 750; text-align: right; }
.guest-agenda-hours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; color: #f0cf88; font: 900 21px/1.2 Georgia, serif; white-space: nowrap; }
.guest-agenda-hours small { color: #bdc7c8; font: 600 13px/1.3 Inter, sans-serif; white-space: normal; }
.guest-agenda-description h3 { margin: 0 0 7px; color: #f3eee2; font: 700 21px/1.16 Georgia, serif; }
.guest-agenda-description p { margin: 0; color: #c5cdd0; font-size: 15px; line-height: 1.5; }
.guest-agenda-description .guest-agenda-place { margin-top: 9px; color: #e9c77e; font-size: 14px; font-weight: 700; }
.guest-agenda-votes { padding-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border-top: 1px solid #344149; }
.guest-agenda-votes .vote { min-width: 0; min-height: 46px; padding: 7px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; }
.guest-agenda-votes .vote svg { width: 24px; height: 24px; flex: 0 0 24px; }
.guest-agenda-votes .vote strong { font-size: 13px; line-height: 1.15; white-space: nowrap; }
.invitation-expense-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.invitation-expense-summary.total-is-hidden { grid-template-columns: minmax(0, 1fr); }
.invitation-expense-summary > div { min-width: 0; min-height: 120px; padding: 15px 12px; display: grid; align-content: space-between; background: #111b21; border: 1px solid #344149; border-radius: 12px; }
.invitation-expense-summary > div.is-highlight { background: linear-gradient(145deg, #513418, #1c2323); border-color: #d7a74b; }
.invitation-expense-summary span { color: #aeb9bd; font-size: 11px; font-weight: 800; letter-spacing: .075em; }
.invitation-expense-summary strong { color: #f4eee1; font: 700 clamp(24px, 7vw, 32px)/1 Georgia, serif; }
.invitation-expense-summary .is-highlight strong { color: #efd08e; }
.invitation-expense-notice { margin: 16px 0 28px; color: #afbdc3; font-size: 13px; line-height: 1.5; }
.invitation-expenses-screen h2 { margin: 0 0 14px; font: 700 25px/1.1 Georgia, serif; }
.invitation-expense-list { display: grid; gap: 9px; }
.invitation-expense-list article { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #111b21; border: 1px solid #344149; border-radius: 11px; }
.invitation-expense-list article div { min-width: 0; }
.invitation-expense-list strong { display: block; font-size: 15px; }
.invitation-expense-list small { display: block; margin-top: 5px; color: #aeb9bd; font-size: 12px; }
.invitation-expense-list article > span { flex: 0 0 auto; color: #efd08e; font-weight: 800; }

html.farewell-active { overflow: hidden; background: #000; }
.decline-farewell { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; overflow: hidden; color: #f3eee2; background: #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility .45s ease; }
.decline-farewell.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.decline-farewell video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #000; opacity: 1; transition: opacity 1.1s ease; }
.decline-tap { position: relative; z-index: 4; min-height: 54px; padding: 0 25px; color: #11191e; background: #d7a74b; border: 1px solid #f1d48f; border-radius: 999px; font-weight: 850; opacity: 0; visibility: hidden; pointer-events: none; }
.decline-farewell.needs-tap .decline-tap { opacity: 1; visibility: visible; pointer-events: auto; }
.decline-splash { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; overflow: hidden; background: radial-gradient(circle at 50% 46%, rgba(177,154,84,.16), transparent 29rem), #0b141b; opacity: 0; transition: opacity 1.15s ease; }
.decline-splash object { position: relative; z-index: 1; width: min(54vw, 310px); max-height: 45vh; filter: drop-shadow(0 0 30px rgba(215,167,75,.18)); }
.decline-splash p { position: relative; z-index: 1; margin-top: 22px; color: #c7b47e; font-size: 10px; letter-spacing: .16em; }
.decline-glow { position: absolute; width: min(85vw, 680px); aspect-ratio: 1; background: radial-gradient(circle, rgba(215,167,75,.1), transparent 64%); animation: farewell-glow 2.2s ease-in-out infinite alternate; }
.decline-farewell.show-splash video { opacity: 0; }
.decline-farewell.show-splash .decline-splash { opacity: 1; }
.decline-farewell.is-black .decline-splash { opacity: 0; transition-duration: 1.3s; }
@keyframes farewell-glow { from { transform: scale(.92); opacity: .55; } to { transform: scale(1.08); opacity: 1; } }

.profile-photo-screen { width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: minmax(300px, 42dvh) minmax(0, 1fr); overflow: hidden; color: #f3eee2; background: #081016; box-shadow: 0 0 70px rgba(0,0,0,.45); }
.profile-camera-stage { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 48%, #23313a 0, #101a20 48%, #081016 100%); }
.profile-camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.profile-camera-stage video { z-index: 1; opacity: 0; transform: scaleX(-1); transition: opacity .3s ease; }
.profile-photo-screen.camera-active .profile-camera-stage video { opacity: 1; }
.profile-camera-shade { position: absolute; z-index: 3; inset: 0; background: linear-gradient(180deg, rgba(2,6,9,.52), transparent 25%, transparent 68%, #0b141a 100%); pointer-events: none; }
.profile-step { position: absolute; z-index: 5; top: max(18px, env(safe-area-inset-top)); left: 20px; display: flex; align-items: center; gap: 10px; color: #e2b75f; letter-spacing: .15em; }
.profile-step span { position: relative; width: 30px; height: 30px; display: grid; place-items: center; font: 700 13px/1 Georgia, serif; }
.profile-step span::before { content: ""; position: absolute; inset: 3px; border: 1px solid #d7a74b; transform: rotate(45deg); }
.profile-step strong { font: 700 13px/1 Georgia, serif; }
.profile-crop-viewport { position: absolute; z-index: 4; left: 50%; top: 54%; width: min(76vw, 320px, calc(42dvh - 32px)); aspect-ratio: 1; overflow: hidden; touch-action: none; transform: translate(-50%, -50%); background: rgba(7,14,18,.18); border-radius: 8px; }
.profile-crop-viewport.is-camera-trigger { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.profile-crop-viewport.is-camera-trigger:active { background: rgba(215,167,75,.1); }
.profile-crop-viewport > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; user-select: none; pointer-events: none; will-change: transform; }
.profile-photo-screen.camera-active .profile-crop-viewport { background: transparent; }
.profile-photo-screen.camera-active .profile-crop-viewport > img { opacity: 0; }
.profile-face-guide { position: absolute; z-index: 2; top: 7%; left: 19%; width: 62%; height: 86%; overflow: visible; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.62)); pointer-events: none; transition: opacity .2s ease; }
.profile-face-guide path { fill: none; stroke: #e6bd67; stroke-width: 3.7px; stroke-dasharray: 7.35 7.35; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.profile-photo-screen:not(.has-photo) .profile-face-guide, .profile-photo-screen.camera-active .profile-face-guide { opacity: 1; }
.profile-camera-empty-copy { position: absolute; z-index: 3; top: 50%; left: 50%; display: none; color: #f1dcaa; text-align: center; font-size: 16px; font-weight: 750; line-height: 1.35; letter-spacing: .04em; text-shadow: 0 2px 9px #000; transform: translate(-50%, -50%); pointer-events: none; }
.profile-photo-screen:not(.has-photo):not(.camera-active) .profile-camera-empty-copy { display: block; }
.profile-camera-hint { position: absolute; z-index: 5; left: 18px; right: 18px; bottom: 17px; margin: 0; color: #d7d5cf; text-align: center; font-size: 14px; text-shadow: 0 2px 10px #000; opacity: .88; }
.profile-photo-actions { min-height: 0; padding: 25px 18px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: linear-gradient(180deg, #0d171d, #081016); border-radius: 20px 20px 0 0; }
.profile-photo-copy { text-align: center; }
.profile-photo-copy h1 { margin: 0; color: #f4eee1; font: 700 clamp(29px, 7vw, 38px)/1.05 Georgia, serif; }
.profile-photo-copy p { max-width: 440px; margin: 13px auto 0; color: #aeb8bd; font-size: 12px; line-height: 1.5; }
.profile-action-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.profile-action-grid button { aspect-ratio: 1.08 / 1; min-width: 0; padding: 10px 4px; display: grid; place-content: center; justify-items: center; gap: 11px; color: #ece8de; background: #111b21; border: 1px solid #2a373e; border-radius: 12px; }
.profile-action-grid button:active { border-color: #d7a74b; background: #18242a; }
.profile-action-grid .profile-camera-button.is-capture { color: #fff; background: #24734f; border-color: #55bd88; box-shadow: 0 0 20px rgba(60,170,112,.28); }
.profile-action-grid .profile-camera-button.is-repeat { color: #fff8ec; background: #a45220; border-color: #dc8547; }
.profile-action-grid .profile-camera-button.is-capture .profile-action-icon, .profile-action-grid .profile-camera-button.is-repeat .profile-action-icon { color: currentColor; }
.profile-action-grid strong { font-size: clamp(13px, 3.5vw, 16px); letter-spacing: .03em; }
.profile-action-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #efcf8c; font: 700 27px/1 Georgia, serif; }
.profile-crop-tools { min-height: 48px; margin-top: 13px; padding: 5px 10px; display: none; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; color: #e9d39f; background: #0b1419; border: 1px solid #2a373e; border-radius: 11px; }
.profile-photo-screen.crop-editing .profile-crop-tools { display: grid; }
.profile-photo-screen.camera-active .profile-crop-tools { display: none; }
.profile-crop-tools button { width: 38px; height: 38px; padding: 0; color: #f2d593; background: #152027; border: 1px solid #35434b; border-radius: 9px; font-size: 24px; line-height: 1; }
.profile-crop-tools span { display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.profile-crop-tools small { color: #aeb8bd; font-size: 12px; letter-spacing: .07em; }
.profile-crop-tools strong { min-width: 38px; font-size: 13px; }
.profile-photo-continue { width: 100%; min-height: 60px; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #fff8ec; background: linear-gradient(90deg, #651b26, #7f2430); border: 1px solid #ad5360; border-radius: 11px; font-size: 16px; font-weight: 850; letter-spacing: .08em; }
.profile-photo-continue span { font-size: 27px; font-weight: 300; }
.profile-photo-continue:disabled { opacity: .35; cursor: not-allowed; }
.profile-photo-back { min-height: 46px; margin: auto auto 0; padding: 10px 18px; color: #f4d691; background: #111b21; border: 1px solid #745f37; border-radius: 999px; font-size: 17px; font-weight: 800; }
.profile-help-modal { position: fixed; z-index: 3100; inset: 0; padding: max(70px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); display: grid; place-items: center; color: #eee9df; background: rgba(3,7,10,.96); opacity: 0; visibility: hidden; pointer-events: none; transition: .25s ease; }
.profile-help-modal.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.profile-help-modal article { position: relative; width: min(440px, 100%); padding: 28px; background: #111b21; border: 1px solid #344149; border-radius: 18px; }
.profile-help-modal article > button { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; color: #eee9df; background: transparent; border: 0; font-size: 28px; }
.profile-help-modal h2 { margin: 0 0 18px; font: 700 29px/1.05 Georgia, serif; }
.profile-help-modal article > p:not(.guest-flow-kicker) { color: #aeb8bd; line-height: 1.55; }

.personality-screen, .profile-complete-screen { width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; overflow: hidden; color: #f3eee2; background: #081016; box-shadow: 0 0 70px rgba(0,0,0,.45); }
.personality-screen { display: grid; grid-template-rows: minmax(270px, 36dvh) minmax(0, 1fr); }
.personality-hero { position: relative; min-height: 0; overflow: hidden; background: linear-gradient(180deg, rgba(3,8,12,.42), rgba(3,8,12,.58) 58%, #091218 100%), url('/assets/casa-valdemar-cinematic-horizontal-v2.webp') center 52%/cover; }
.personality-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, transparent, rgba(4,10,14,.52) 72%); pointer-events: none; }
.personality-step { position: absolute; z-index: 3; top: max(18px, env(safe-area-inset-top)); left: 20px; display: flex; align-items: center; gap: 10px; color: #e2b75f; letter-spacing: .13em; }
.personality-step > span { position: relative; width: 30px; height: 30px; display: grid; place-items: center; font: 700 13px/1 Georgia, serif; }
.personality-step > span::before { content: ""; position: absolute; inset: 3px; border: 1px solid #d7a74b; transform: rotate(45deg); }
.personality-step strong { font: 700 13px/1 Georgia, serif; }
.personality-compass { position: absolute; z-index: 2; top: 49%; left: 50%; width: min(38vw, 174px); aspect-ratio: 1; display: grid; place-items: center; color: #efc875; border: 1px solid rgba(239,200,117,.62); border-radius: 50%; box-shadow: 0 0 0 25px rgba(239,200,117,.08), 0 0 0 50px rgba(239,200,117,.035); transform: translate(-50%, -50%); }
.personality-compass::before, .personality-compass::after { content: ""; position: absolute; background: rgba(239,200,117,.3); }
.personality-compass::before { width: 1px; height: 132%; }
.personality-compass::after { width: 132%; height: 1px; }
.personality-compass span { font: 400 clamp(55px, 17vw, 82px)/1 Georgia, serif; text-shadow: 0 0 24px rgba(239,200,117,.32); }
.personality-progress { position: absolute; z-index: 4; right: 20px; bottom: 11px; left: 20px; display: grid; justify-items: center; }
.personality-progress > div { display: flex; align-items: center; gap: 22px; }
.personality-progress i { position: relative; width: 11px; height: 11px; display: block; background: #0d171d; border: 1px solid #7c8a91; border-radius: 50%; }
.personality-progress i:not(:last-child)::after { content: ""; position: absolute; top: 4px; left: 10px; width: 23px; height: 1px; background: #536169; }
.personality-progress i.is-current { background: #efc875; border-color: #ffe0a0; box-shadow: 0 0 12px rgba(239,200,117,.55); }
.personality-progress i.is-complete { background: #8f7040; border-color: #d7a74b; }
.personality-progress p { margin: 7px 0 0; color: #c4cbd0; font-size: 13px; }
.personality-actions { min-height: 0; padding: 24px 18px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; text-align: center; background: linear-gradient(180deg, #0d171d, #081016); border-radius: 20px 20px 0 0; }
.personality-actions h1 { max-width: 470px; margin: 2px auto 0; color: #f4eee1; font: 700 clamp(25px, 6.4vw, 34px)/1.12 Georgia, serif; text-wrap: balance; }
.personality-options { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.personality-option { min-width: 0; min-height: 102px; padding: 9px 5px; display: grid; place-content: center; justify-items: center; gap: 9px; color: #ece8de; background: #111b21; border: 1px solid #2a373e; border-radius: 12px; }
.personality-option > span { color: #efcf8c; font: 700 30px/1 Georgia, serif; }
.personality-option strong { max-width: 100%; font-size: clamp(12px, 3.3vw, 15px); line-height: 1.15; overflow-wrap: anywhere; }
.personality-option.is-selected { color: white; background: linear-gradient(145deg, #762531, #3b171d); border-color: #e3a45e; box-shadow: 0 0 20px rgba(145,51,63,.28); }
.personality-navigation { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.personality-navigation button { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #d9e0e3; background: #101a20; border: 1px solid #344149; border-radius: 11px; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.personality-navigation button.is-primary { color: #fff8ec; background: linear-gradient(90deg, #651b26, #7f2430); border-color: #ad5360; }
.personality-navigation button:disabled { opacity: .35; }
.personality-empty { min-height: 100dvh; padding: 34px; display: grid; place-content: center; justify-items: center; text-align: center; }
.personality-empty h1 { margin: 0; font: 700 36px/1.05 Georgia, serif; }
.personality-empty > p:not(.guest-flow-kicker) { color: #aeb8bd; }

.profile-complete-screen { display: grid; grid-template-rows: minmax(300px, 40dvh) minmax(0, 1fr); }
.profile-complete-hero { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 56%, rgba(215,167,75,.2), transparent 42%), linear-gradient(180deg, #111d24, #091218); }
.profile-complete-photo { position: relative; width: min(45vw, 210px); aspect-ratio: 1; margin-top: 32px; padding: 0; overflow: visible; background: transparent; border: 0; border-radius: 50%; cursor: zoom-in; }
.profile-complete-photo img { width: 100%; height: 100%; object-fit: cover; border: 3px solid #e7bd69; border-radius: 50%; box-shadow: 0 0 34px rgba(215,167,75,.22); }
.profile-complete-photo.is-generating img { opacity: .52; filter: saturate(.55); }
.avatar-ai-spinner { position: absolute; inset: 50% auto auto 50%; width: 54px; height: 54px; border: 3px solid rgba(231,189,105,.24); border-top-color: #e7bd69; border-radius: 50%; transform: translate(-50%,-50%); animation: avatar-ai-spin .85s linear infinite; }
.profile-complete-photo > span { position: absolute; right: -2px; bottom: 10px; width: 44px; height: 44px; display: grid; place-items: center; color: #0d171d; background: #e7bd69; border: 4px solid #111d24; border-radius: 50%; font-size: 22px; font-weight: 900; }
.profile-complete-actions { padding: 28px 18px max(22px, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, #0d171d, #081016); border-radius: 20px 20px 0 0; }
.profile-complete-actions h1 { margin: 3px 0 0; font: 700 clamp(30px, 7vw, 40px)/1.05 Georgia, serif; }
.profile-complete-actions > p:not(.guest-flow-kicker) { max-width: 430px; margin: 13px auto 0; color: #aeb8bd; line-height: 1.5; }
.profile-answer-summary { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.profile-answer-summary span { padding: 8px 11px; color: #f0d395; background: #111b21; border: 1px solid #344149; border-radius: 999px; font-size: 12px; }
.profile-complete-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.profile-complete-grid button { min-height: 112px; padding: 9px 4px; display: grid; place-content: center; justify-items: center; gap: 12px; color: #eee9df; background: #111b21; border: 1px solid #344149; border-radius: 12px; }
.profile-complete-grid button > span { color: #efcf8c; font-size: 30px; }
.profile-complete-grid button strong { font-size: clamp(11px, 3vw, 14px); }
.profile-complete-grid button:disabled { opacity: .35; cursor: wait; }
.avatar-ai-retry { min-height: 50px; margin: 18px auto 0; padding: 10px 18px; color: #fff4df; background: #7b2b24; border: 1px solid #d07763; border-radius: 999px; font-size: 14px; font-weight: 850; letter-spacing: .05em; }
@keyframes avatar-ai-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.role-video-preloads { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: .001; pointer-events: none; }
.role-video-preloads video { width: 1px; height: 1px; }

.role-reveal-screen { position: fixed; z-index: 2800; inset: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.role-reveal-screen::after { content: ""; position: absolute; z-index: 2; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.role-reveal-screen.is-finishing::after { opacity: 1; }
.role-reveal-screen video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.role-reveal-start { position: absolute; inset: 0; width: 100%; height: 100%; display: none; place-items: center; padding: 24px; color: #f7e7bf; background: radial-gradient(circle, rgba(87,24,34,.72), rgba(0,0,0,.94)); border: 0; font: 800 clamp(22px, 6vw, 34px)/1.2 Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.role-reveal-screen.needs-tap .role-reveal-start { display: grid; }

.role-waiting-screen { --role-color: #d7a74b; position: relative; width: min(100%, 540px); height: 100dvh; min-height: 0; margin: 0 auto; display: grid; grid-template-rows: minmax(240px, 42dvh) minmax(0, 1fr); overflow: hidden; color: #f3eee2; text-align: center; background: #050a0d; }
.role-waiting-hero { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 55%, rgba(215,167,75,.18), transparent 34%), linear-gradient(180deg, #14232c, #081016 88%); }
.role-waiting-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--role-color) 9%, transparent), transparent 45%); pointer-events: none; }
.role-waiting-hero .guest-flow-kicker { position: absolute; z-index: 3; top: max(24px, env(safe-area-inset-top)); right: 20px; left: 20px; margin: 0; display: grid; gap: 5px; text-shadow: 0 2px 12px #000; }
.role-waiting-hero .guest-flow-kicker strong { color: #f2d28b; font-size: 15px; letter-spacing: .22em; }
.role-waiting-hero .guest-flow-kicker small { color: #e7e4dc; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.role-waiting-aura { --waiting-ring-size: min(68vw, 300px); position: absolute; z-index: 1; top: 64%; left: 50%; width: var(--waiting-ring-size); height: var(--waiting-ring-size); border: 1px solid color-mix(in srgb, var(--role-color) 32%, transparent); border-radius: 50%; box-shadow: 0 0 52px color-mix(in srgb, var(--role-color) 17%, transparent); transform: translate(-50%, -50%); }
.role-waiting-avatar { --waiting-avatar-size: min(48vw, 215px); position: absolute; z-index: 2; top: 64%; left: 50%; width: var(--waiting-avatar-size); min-width: var(--waiting-avatar-size); max-width: var(--waiting-avatar-size); height: var(--waiting-avatar-size); min-height: var(--waiting-avatar-size); max-height: var(--waiting-avatar-size); margin: 0; padding: 0; display: block; overflow: hidden; color: #f2cf82; background: #17252e; border: 3px solid #d9ad55; border-radius: 50%; box-shadow: 0 18px 58px rgba(0,0,0,.48), 0 0 36px rgba(215,167,75,.18); font: 850 44px/1 Georgia,serif; cursor: zoom-in; transform: translate(-50%, -50%); appearance: none; }
.role-waiting-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; border-radius: 50%; }
.role-waiting-content { position: relative; z-index: 2; width: 100%; min-height: 0; padding: 10px 18px max(58px, calc(env(safe-area-inset-bottom) + 48px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #081016, #050a0d 72%); }
.role-waiting-content h2 { max-width: 440px; margin: 13px auto 0; font: 700 clamp(19px, 5.1vw, 28px)/1.08 Georgia, serif; }
.secret-identity-button { width: 100%; min-height: 65px; margin: 0 auto; padding: 10px 15px; display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; color: #f7e6bd; text-align: left; background: linear-gradient(135deg,#172630,#101a20); border: 1px solid #8d713c; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.secret-identity-button > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: #f0c86d; background: #2b2b28; border-radius: 50%; font-size: 23px; }
.secret-identity-button strong { font-size: 15px; letter-spacing: .075em; }
.secret-identity-button small { color: #b3bcc0; font-size: 10px; line-height: 1.35; }
.role-waiting-content > p:not(.guest-flow-kicker) { max-width: 390px; margin: 16px auto 0; color: #abb6bb; font-size: clamp(16px, 4.3vw, 19px); line-height: 1.55; }
.role-waiting-pulse { margin-top: 38px; display: inline-flex; align-items: center; gap: 9px; color: var(--role-color); font-size: 13px; font-weight: 850; letter-spacing: .19em; }
.role-waiting-links { margin-top: 10px; text-align: center; }
.role-waiting-links button { min-height: 64px; border-color: color-mix(in srgb, var(--role-color) 38%, #344149); }
.role-waiting-pulse::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%; animation: waiting-pulse 1.5s ease-in-out infinite; }
.push-enable-button { min-height: 48px; margin: 24px auto 0; padding: 10px 19px; color: #f4d691; background: #111b21; border: 1px solid #745f37; border-radius: 999px; font-size: 14px; font-weight: 850; letter-spacing: .06em; }
.push-enable-button.is-enabled { color: #b7e9ca; border-color: #3d8e60; }
.role-waiting-tools { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.secret-identity-screen { --identity-color:#d7a74b; position: fixed; z-index: 2600; inset: 0; min-height: 100dvh; padding: max(70px,calc(env(safe-area-inset-top) + 54px)) 22px max(24px,env(safe-area-inset-bottom)); display: grid; place-items: center; overflow: hidden; color: #f8efe0; background:#05090c url('/assets/diamante-proximas-indicaciones.webp?v=3') center top/cover no-repeat; text-align: center; }
.secret-identity-screen.role-traitor { --identity-color:#e24659; background-image:url('/assets/diamante-robado.webp?v=3'); }
.secret-identity-screen::before { content:""; position:absolute; z-index:0; inset:0; background:linear-gradient(180deg,rgba(4,8,11,.04) 0%,rgba(4,8,11,.08) 36%,rgba(4,8,11,.48) 60%,#05090c 82%,#05090c 100%); pointer-events:none; }
.secret-identity-screen.role-traitor::before { background:linear-gradient(180deg,rgba(7,5,7,.03) 0%,rgba(7,5,7,.1) 34%,rgba(7,5,7,.54) 59%,#070608 82%,#070608 100%); }
.secret-identity-card { position:relative; z-index:1; width:min(100%,480px); height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; }
.secret-identity-card .guest-flow-kicker { position:absolute; top:0; right:0; left:0; margin:0; color:var(--identity-color); font-size:12px; letter-spacing:.2em; text-shadow:0 2px 16px #000; }
.secret-identity-card .secret-identity-avatar, .secret-identity-card .secret-identity-art { display:none !important; }
.secret-identity-card h1 { margin:0 -12px 8px; color:var(--identity-color); font:950 clamp(44px,13vw,72px)/.86 Georgia,serif; letter-spacing:.015em; text-shadow:0 3px 22px #000,0 0 34px color-mix(in srgb,var(--identity-color) 48%,transparent); animation:role-breathe 2.8s ease-in-out infinite; }
.secret-identity-card > p:not(.guest-flow-kicker) { max-width:360px; margin:14px auto 0; color:#b6bec1; font-size:15px; line-height:1.5; }
.secret-identity-close { position:fixed; z-index:3; top:max(15px,env(safe-area-inset-top)); right:max(15px,env(safe-area-inset-right)); min-height:42px; padding:9px 15px; color:#121a1e; background:#e2ae47; border:0; border-radius:999px; font-size:13px; font-weight:900; letter-spacing:.07em; }
.secret-identity-hide { width:min(100%,360px); min-height:56px; margin-top:24px; color:#0d1519; background:var(--identity-color); border:0; border-radius:13px; font-size:15px; font-weight:950; letter-spacing:.075em; }
.waiting-tool { position: relative; min-width: 0; min-height: 58px; padding: 8px 9px; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; color: #f4ecdc; text-align: left; background: #101a20; border: 1px solid #344149; border-radius: 12px; }
.waiting-tool > span { position: relative; grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: #f0c872; background: #20252a; border-radius: 50%; font-size: 19px; }
.waiting-tool > span b { position: absolute; top: -6px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: #bd3044; border: 2px solid #101a20; border-radius: 999px; font: 850 10px/1 Inter, sans-serif; }
.waiting-tool small { overflow: hidden; color: #aeb7bb; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.waiting-tool strong { overflow: hidden; font-size: 11px; letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.waiting-tool.is-enabled { border-color: #3d8e60; }
.waiting-tool.is-enabled > span { color: #b7e9ca; background: #173025; }
.waiting-tool.is-blocked { border-color: #91404b; }
.waiting-tool.is-blocked > span { color: #f3a6ae; background: #361a20; }
.waiting-tool:disabled { opacity: .65; }
.notification-inbox { position: fixed; z-index: 5000; inset: 0; display: grid; align-items: end; color: #f4efe5; text-align: left; }
.notification-inbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.72); border: 0; backdrop-filter: blur(7px); }
.notification-inbox > article { position: relative; z-index: 1; width: min(100%, 540px); max-height: min(86dvh, 760px); margin: 0 auto; padding: 0 16px max(18px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: #0a1217; border: 1px solid #303b41; border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 70px rgba(0,0,0,.55); }
.notification-inbox header { min-height: 82px; padding: 16px 2px 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #273138; }
.notification-inbox header .guest-flow-kicker { margin: 0 0 3px; color: #d5ad59; font-size: 10px; }
.notification-inbox header h2 { margin: 0; font: 800 28px/1 Georgia, serif; }
.notification-inbox header > button { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; color: #f7e9c8; background: #182329; border: 1px solid #3b484f; border-radius: 50%; font-size: 29px; line-height: 1; }
.notification-inbox-list { min-height: 0; padding: 10px 0; overflow-y: auto; overscroll-behavior: contain; }
.notification-inbox-item { width: 100%; padding: 13px 5px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #253037; }
.notification-inbox-item:last-child { border-bottom: 0; }
.notification-inbox-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: #efd083; background: #20272b; border: 1px solid #4b4331; border-radius: 12px; font-size: 20px; }
.notification-inbox-copy { min-width: 0; display: grid; gap: 4px; }
.notification-inbox-meta { display: flex; align-items: center; gap: 6px; overflow: hidden; color: #929da2; font-size: 9px; font-weight: 800; letter-spacing: .045em; white-space: nowrap; }
.notification-inbox-meta b { color: #cbd2d4; }
.notification-inbox-item.is-private .notification-inbox-meta b { color: #f17684; }
.notification-inbox-meta time { margin-left: auto; }
.notification-inbox-copy > strong { overflow: hidden; font: 750 16px/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.notification-inbox-copy > small { overflow: hidden; color: #aab3b7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notification-inbox-state { display: grid; justify-items: end; gap: 4px; color: #899499; font-size: 8px; font-weight: 850; letter-spacing: .06em; }
.notification-inbox-state i { color: #d8b86d; font: normal 24px/1 Georgia, serif; }
.notification-inbox-item.is-unread { background: linear-gradient(90deg, rgba(215,167,75,.1), transparent 74%); }
.notification-inbox-item.is-unread .notification-inbox-state { color: #f0cd7c; }
.notification-inbox-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 32px; color: #9da8ad; text-align: center; }
.notification-inbox-empty > span { color: #d6b467; font-size: 42px; }
.notification-inbox-empty strong { margin-top: 10px; color: #eee8da; font: 750 20px/1.2 Georgia, serif; }
.notification-inbox-empty p { max-width: 270px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.notification-status-strip { margin: 14px 0 20px; padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(27,37,43,.04); }
.notification-status-strip article { min-width: 0; min-height: 68px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); }
.notification-status-strip article:last-child { border-right: 0; }
.notification-status-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; color: #6e5727; background: var(--gold-soft); border-radius: 12px; font-size: 18px; }
.notification-status-strip article:nth-child(2) .notification-status-icon { color: var(--green); background: var(--green-soft); }
.notification-status-strip small { display: block; margin-bottom: 5px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-overflow: ellipsis; white-space: nowrap; }
.notification-status-strip strong { display: block; font: 800 23px/1 Georgia, serif; white-space: nowrap; }
.notification-status-strip strong em { color: var(--muted); font: 600 11px/1.2 Inter, sans-serif; }
.tab-panel[data-panel="notifications"] > .section-head { margin-top: 18px; }
.notification-layout { align-items: start; margin-top: 18px; }
.notification-layout > .form-card { position: sticky; top: 142px; }
.rich-html-editor { overflow: hidden; background: #fff; border: 1px solid #d8dce0; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.rich-html-editor:focus-within { border-color: #b59045; box-shadow: 0 0 0 3px rgba(215,167,75,.16); }
.rich-html-toolbar { padding: 7px; display: flex; flex-wrap: wrap; gap: 5px; background: #f4f1ea; border-bottom: 1px solid #ddd8cd; }
.rich-html-toolbar button { min-width: 36px; min-height: 34px; padding: 5px 9px; color: #27343d; background: #fff; border: 1px solid #d9d5cc; border-radius: 7px; font: 700 12px/1 Inter, sans-serif; }
.rich-html-toolbar button:hover, .rich-html-toolbar button:focus-visible, .rich-html-toolbar button.is-active { color: #fff; background: var(--navy); border-color: var(--navy); outline: none; }
.rich-html-toolbar .rich-html-source-toggle { margin-left: auto; color: #705921; }
.rich-html-surface, .rich-html-source { width: 100%; min-height: 230px; max-height: 520px; padding: 18px; overflow: auto; color: #18242c; background: #fff; border: 0; border-radius: 0; font: 16px/1.55 Inter, sans-serif; outline: none; resize: vertical; }
.rich-html-surface:empty::before { content: attr(data-placeholder); color: #8c959b; pointer-events: none; }
.rich-html-surface h1, .rich-html-surface h2, .rich-html-surface h3 { font-family: Georgia, serif; }
.rich-html-surface blockquote { margin: 1em 0; padding: 10px 16px; color: #66552f; background: #faf5e9; border-left: 4px solid var(--gold); }
.rich-html-source[hidden], .rich-html-surface[hidden] { display: none; }
.push-guest-list, .push-history-list { display: grid; gap: 0; }
.push-guest-list > div, .push-history-list > div { min-width: 0; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.push-guest-list > div:last-child, .push-history-list > div:last-child { border-bottom: 0; }
.push-guest-list span:first-child, .push-history-list span:first-child { min-width: 0; display: grid; gap: 4px; }
.push-guest-list small, .push-history-list small { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.push-history { margin-top: 18px; }
.push-history-list .push-error-detail { margin-top: 5px; padding: 8px 10px; color: #8c3734; background: var(--red-soft); border-radius: 8px; font-weight: 700; }
.push-delivery-result { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; font-size: 12px; }
.push-delivery-result b { color: var(--green); }
.push-delivery-result em { color: var(--red); font-style: normal; }
.role-waiting-brand { position: absolute; z-index: 3; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); left: 0; margin: 0; color: #74684e; font-size: 11px; letter-spacing: .18em; }
.role-admin-list { margin-top: 18px; }
.role-admin-privacy { margin: 10px 0 0; padding: 10px 12px; color: #66737d; background: #f7f4ec; border: 1px solid #e9e1d1; border-radius: 10px; font-size: 11px; line-height: 1.45; }
.role-admin-row { border-bottom: 1px solid var(--line); }
.role-admin-row:last-child { border-bottom: 0; }
.role-admin-summary { min-height: 68px; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.role-admin-summary strong { font-size: 13px; }
.role-admin-summary small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.role-admin-status { flex: 0 0 auto; cursor: pointer; border: 0; }
.role-admin-status[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(216,168,69,.18); }
.role-admin-editor { margin: 0 0 14px; padding: 14px; color: #dfe6e9; background: #111d24; border: 1px solid #263641; border-radius: 13px; }
.role-admin-editor[hidden] { display: none; }
.role-admin-editor > p { margin: 10px 0 14px; color: #aab5bc; font-size: 11px; line-height: 1.5; }
.role-admin-reveal { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.role-admin-reveal span { color: #87949d; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.role-admin-reveal strong { font-size: 15px; letter-spacing: .08em; }
.role-admin-reveal .is-traitor { color: #ff7586; }
.role-admin-reveal .is-guardian { color: #e9bf68; }
.role-admin-reveal .is-unassigned { color: #bec7cc; }
.role-admin-choices { display: grid; gap: 10px; }
.role-admin-choice { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); align-items: end; gap: 10px; }
.role-admin-choice > button { min-height: 42px; }
.role-admin-choice > button.danger { color: #fff; background: #842237; border-color: #b53e55; }
.role-admin-choice > label { display: grid; gap: 5px; color: #c3ccd1; font-size: 10px; line-height: 1.35; }
.role-admin-choice select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; color: #eef2f3; background: #0b1419; border: 1px solid #354650; border-radius: 9px; }
.role-admin-choice.is-current { opacity: .55; }
.game-config-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.game-config-grid .asset-control { min-width: 0; }
.game-config-save { margin: 8px 0 0; }
.game-config-save .button { width: 100%; min-height: 52px; font-size: 14px; }
.game-resolution-head { margin-top: 38px; }
.game-round-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,.85fr); gap: 18px; align-items: start; }
.game-round-list { display: grid; gap: 12px; }
.game-round-card { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 14px; padding: 17px; }
.game-round-card.is-open { border-color: #b27b23; box-shadow: 0 0 0 2px rgba(215,167,75,.16); }
.game-round-number { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 12px; font: 800 18px/1 Georgia,serif; }
.game-round-main { min-width: 0; }
.game-round-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-round-head h3 { margin: 7px 0 0; }
.game-round-head > strong { color: #8b641f; text-align: right; }
.game-round-main > p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.game-round-result { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.game-round-result span { padding: 8px 10px; display: grid; gap: 2px; background: #f5f1e8; border-radius: 10px; }
.game-round-result small { color: var(--muted); }
.game-round-form { position: sticky; top: 12px; }
.game-entry-button { width: min(100%,430px); margin: 18px auto 0; padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #f4d58d; background: #111c22; border: 1px solid #7f6838; border-radius: 13px; font-weight: 900; letter-spacing: .08em; }
.game-entry-button.is-live { color: #09130d; background: #67c887; border-color: #9be6b2; box-shadow: 0 0 22px rgba(75,196,116,.28); animation: waiting-pulse 1.5s ease-in-out infinite; }
.game-admin-entry { width: 100%; min-height: 60px; margin: 10px 0 0; padding: 9px 13px; display: grid; grid-template-columns: 38px minmax(0,1fr) 20px; align-items: center; gap: 10px; color: #f4d58d; text-align: left; background: linear-gradient(135deg,#151f25,#0e171c); border: 1px solid #75613a; border-radius: 12px; }
.game-admin-entry > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; color: #f0c86d; background: #272a29; border-radius: 50%; }
.game-admin-entry > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.game-admin-entry small { color: #9da8ad; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.game-admin-entry strong { overflow: hidden; font-size: 12px; letter-spacing: .055em; text-overflow: ellipsis; white-space: nowrap; }
.game-admin-entry i { color: #dcb45f; font-size: 28px; font-style: normal; line-height: 1; }
.game-admin-screen { position: relative; width: min(100%,540px); min-height: 100dvh; margin: 0 auto; padding: max(78px,calc(env(safe-area-inset-top) + 58px)) 16px max(30px,env(safe-area-inset-bottom)); color: #f4eee0; background: radial-gradient(circle at 50% 0,rgba(178,123,35,.17),transparent 28rem),#071016; }
.game-admin-screen .guest-back-button { position: fixed; z-index: 5; top: max(14px,env(safe-area-inset-top)); right: max(14px,env(safe-area-inset-right)); padding: 11px 17px; color: #111b20; background: #e2ae47; border: 0; border-radius: 999px; font-size: 17px; font-weight: 900; }
.game-admin-hero { text-align: center; }
.game-admin-hero .guest-flow-kicker { margin: 0; color: #d9ad55; }
.game-admin-hero h1 { margin: 11px auto 9px; font: 850 clamp(35px,9vw,50px)/.96 Georgia,serif; text-wrap: balance; }
.game-admin-hero > p:last-child { max-width: 420px; margin: 0 auto; color: #aeb9bd; font-size: 15px; line-height: 1.45; }
.game-admin-kpis { margin: 24px 0 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.game-admin-kpis article { min-width: 0; min-height: 116px; padding: 13px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr auto; align-items: center; column-gap: 10px; text-align: left; background: #111c22; border: 1px solid #344149; border-radius: 14px; }
.game-admin-kpis span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: #efc875; background: #242927; border-radius: 50%; }
.game-admin-kpis strong { align-self: end; color: #f7f0e3; font: 850 31px/1 Georgia,serif; }
.game-admin-kpis small { align-self: start; margin-top: 5px; color: #9fabad; font-size: 9px; font-weight: 900; line-height: 1.25; letter-spacing: .055em; }
.game-admin-menu { display: grid; gap: 10px; }
.game-admin-menu > button { width: 100%; min-height: 86px; padding: 13px; display: grid; grid-template-columns: 48px minmax(0,1fr) 20px; align-items: center; gap: 12px; color: #f5eee1; text-align: left; background: linear-gradient(135deg,#142129,#0e171c); border: 1px solid #3a4850; border-radius: 14px; }
.game-admin-menu > button:last-child { border-color: #826936; }
.game-admin-menu-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #efc875; background: #252b2b; border-radius: 13px; font-size: 22px; }
.game-admin-menu > button > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.game-admin-menu strong { font: 800 23px/1 Georgia,serif; }
.game-admin-menu small { overflow: hidden; color: #aeb7bb; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.game-admin-menu i { color: #e0b65e; font-size: 30px; font-style: normal; }
.game-admin-subpage .game-admin-hero h1 { margin-top: 11px; }
.game-admin-player-list { margin-top: 22px; display: grid; gap: 9px; }
.game-admin-player { min-width: 0; padding: 11px; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 11px; align-items: center; background: #111c22; border: 1px solid #334149; border-radius: 14px; }
.game-admin-player > img,.game-admin-player-fallback { width: 58px; height: 58px; grid-row: 1 / 3; display: grid; place-items: center; object-fit: cover; color: #efc875; background: #26343c; border: 2px solid #826a39; border-radius: 50%; font: 850 19px/1 Georgia,serif; }
.game-admin-player > div { min-width: 0; display: grid; gap: 4px; text-align: left; }
.game-admin-player > div strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.game-admin-player > div small { color: #909ca2; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.game-admin-player ul { grid-column: 2; margin: 1px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; list-style: none; }
.game-admin-player li { padding: 5px 7px; color: #d8c798; background: #29261c; border: 1px solid #584b2b; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.game-admin-player li.is-ready { color: #b9e8ca; background: #162b21; border-color: #315c42; }
.game-admin-player li.is-alert { color: #f0a3ad; background: #321920; border-color: #71303a; }
.game-admin-player.is-eliminated { opacity: .64; filter: saturate(.55); }
.game-admin-empty { min-height: 190px; padding: 28px; display: grid; place-content: center; justify-items: center; gap: 11px; color: #aeb7bb; text-align: center; background: #101a20; border: 1px dashed #3b484e; border-radius: 16px; }
.game-admin-empty > span { color: #efc875; font-size: 38px; }
.game-admin-empty > strong { color: #eee7da; font: 800 24px/1.1 Georgia,serif; }
.game-admin-empty > p { max-width: 360px; margin: 0; line-height: 1.5; }
.game-admin-challenges-empty { margin-top: 26px; min-height: 280px; }
.game-vote-screen { position: relative; width: min(100%,540px); min-height: 100dvh; margin: 0 auto; padding: max(82px,calc(env(safe-area-inset-top) + 60px)) 18px max(30px,env(safe-area-inset-bottom)); color: #f4eee0; background: radial-gradient(circle at 50% 0,rgba(178,123,35,.16),transparent 30rem),#071016; }
.game-vote-screen .guest-back-button { position: fixed; z-index: 5; top: max(14px,env(safe-area-inset-top)); right: max(14px,env(safe-area-inset-right)); color: #111b20; background: #e2ae47; border: 0; border-radius: 999px; padding: 11px 17px; font-size: 17px; font-weight: 900; }
.game-vote-hero { text-align: center; }
.game-vote-hero h1 { margin: 12px auto; font: 800 clamp(32px,9vw,52px)/1.02 Georgia,serif; }
.game-vote-hero > p:last-child { color: #aeb9bd; font-size: 17px; line-height: 1.5; }
.production-controls { margin: 0 0 18px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e8d4a1; background: #17242b; border: 1px solid #75613a; border-radius: 13px; }
.production-controls span { font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.production-controls > div { display: flex; gap: 6px; }
.production-controls button { padding: 10px 12px; color: #102027; background: #e2ae47; border: 0; border-radius: 9px; font-weight: 900; }
.game-candidate-grid { margin: 24px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.game-candidate { position: relative; min-width: 0; padding: 8px 7px 11px; display: grid; justify-items: center; gap: 7px; color: #eef0e9; background: #111c22; border: 1px solid #314049; border-radius: 13px; }
.game-candidate img,.game-candidate > span { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; color: #d8b76f; background: #24323a; border-radius: 9px; font: 800 24px/1 Georgia,serif; }
.game-candidate strong { width: 100%; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.game-candidate i { position: absolute; top: 4px; right: 4px; width: 25px; height: 25px; display: none; place-items: center; color: #09140d; background: #68ca88; border-radius: 50%; font-style: normal; font-weight: 900; }
.game-candidate.is-selected { border-color: #70d08e; box-shadow: 0 0 0 2px rgba(112,208,142,.22); }
.game-candidate.is-selected i { display: grid; }
.game-primary-button { width: 100%; margin-top: 18px; padding: 18px; color: #11191d; background: #e0ad47; border: 0; border-radius: 13px; font-size: 18px; font-weight: 950; letter-spacing: .06em; }
.game-primary-button:disabled { opacity: .4; }
.game-result-panel { margin-top: 24px; padding: 14px; display: grid; gap: 10px; background: #101b21; border: 1px solid #34434b; border-radius: 16px; }
.game-result-panel h2 { margin: 4px; font-family: Georgia,serif; }
.game-result-panel > div { padding: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #17242b; border-radius: 11px; }
.game-result-panel > div > span:not(.game-result-rank) { margin-left: auto; color: #aeb7bb; }
.game-result-person small { color: #aeb7bb; }
.game-result-person b { margin-left: auto; color: #e0bc6a; letter-spacing: .08em; }
.game-result-person b.is-traitor { color: #ef5967; }
.game-result-rank { color: #dbae4f; font: 800 18px/1 Georgia,serif; }
.game-eliminated-notice { margin-top: 18px; padding: 14px; color: #dfcdb0; text-align: center; background: #301920; border: 1px solid #77303b; border-radius: 12px; }
.game-winner-screen.is-guardians { background: radial-gradient(circle at 50% 20%,rgba(215,167,75,.3),transparent 28rem),#071016; }
.game-winner-screen.is-traitors { background: radial-gradient(circle at 50% 20%,rgba(190,34,54,.32),transparent 28rem),#09070a; }
@media (max-width: 900px) { .game-config-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .game-round-layout { grid-template-columns: 1fr; } .game-round-form { position: static; } }
@keyframes role-breathe { 0%, 100% { transform: scale(.91); opacity: .76; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes waiting-pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .secret-identity-card h1, .role-waiting-pulse::before { animation: none; } }

.profile-question-layout { align-items: start; }
.profile-question-layout > .form-card { position: sticky; top: 142px; }
.profile-question-card.is-inactive { background: #f8f8f6; border-style: dashed; }
.question-card-heading { margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.question-card-heading small { margin-left: auto; color: var(--muted); font-size: 11px; }
.question-position { width: 27px; height: 27px; display: grid; place-items: center; color: var(--navy); background: var(--gold-soft); border: 1px solid #e4c885; border-radius: 50%; font-size: 12px; font-weight: 800; }
.profile-question-card h3 { margin-bottom: 8px; overflow-wrap: anywhere; }
.question-clue-preview { margin: 0 0 10px; padding: 10px 12px; color: #66532d; background: var(--gold-soft); border-radius: 10px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.question-options-preview { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.question-card-actions { padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.question-edit-form { margin-top: 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.question-edit-form .form-actions { margin-top: 0; }

.guest-config-page { min-height: 100dvh; color: #f2ede3; background: #081016; }
.guest-config-hero { min-height: 32dvh; padding: max(80px, env(safe-area-inset-top)) 22px 28px; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(4,9,13,.18), #081016), url('/assets/event-facade.webp') center/cover; }
.guest-config-hero h1 { margin: 0; font: 700 clamp(31px, 8vw, 46px)/1 Georgia, serif; }
.guest-config-hero p:last-child { margin: 11px 0 0; color: #c1c8cb; }
.guest-config-content { width: min(620px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 55px; }
.guest-back { min-height: 46px; margin-bottom: 14px; padding: 9px 16px; color: #f4d691; background: #111b21; border: 1px solid #745f37; border-radius: 999px; font-size: 17px; font-weight: 800; }
.guest-config-content .card { color: #f2ede3; background: #101a20; border-color: #29363d; box-shadow: none; }
.guest-config-content .field label, .guest-config-content .card p { color: #aeb8bd; }
.guest-config-content .field input, .guest-config-content .field textarea { color: #f2ede3; background: #0b1419; border-color: #2a373e; }
.guest-config-content .profile-photo { color: #9ba7ad; background: #0b1419; border-color: #7f6a3e; }
.guest-hero { margin-top: 14px; padding: 28px; color: white; background: var(--navy); border-radius: 24px; box-shadow: var(--shadow); }
.guest-hero h1 { margin: 7px 0 12px; font: 700 clamp(33px, 8vw, 54px)/1 Georgia, serif; }
.guest-hero p { margin: 0; color: #cbd3d8; line-height: 1.55; }
.guest-hero .event-facts { margin-top: 24px; }
.guest-stack { margin-top: 16px; display: grid; gap: 14px; }
.welcome { padding: 24px; background: var(--card); border: 1px solid white; border-radius: 20px; }
.welcome h2 { margin: 0; font: 700 26px/1.15 Georgia, serif; }
.welcome p { color: var(--muted); line-height: 1.55; }
.rsvp-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp-buttons .button.selected { box-shadow: 0 0 0 3px rgba(215,167,75,.38); }
.profile-photo { width: 94px; height: 94px; overflow: hidden; display: grid; place-items: center; color: var(--muted); background: #eae6dd; border: 1px dashed #a8a397; border-radius: 26px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.role-card { position: relative; overflow: hidden; color: white; background: linear-gradient(135deg, #192834, #263d4d); }
.role-card::after { content: ""; position: absolute; right: -55px; bottom: -80px; width: 220px; height: 220px; border: 1px solid rgba(215,167,75,.35); border-radius: 50%; }
.role-card > * { position: relative; z-index: 1; }
.role-card p { color: #ccd5da; line-height: 1.55; }

.login-page { min-height: 100vh; padding: 26px; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: 34px; text-align: center; background: rgba(255,255,255,.9); border: 1px solid white; border-radius: 26px; box-shadow: var(--shadow); }
.login-card .brand-mark { margin: 0 auto 23px; }
.login-card h1 { margin: 0; font: 700 34px/1 Georgia, serif; }
.login-card p { color: var(--muted); line-height: 1.5; }
.login-card .field { margin-top: 22px; text-align: left; }
.login-card .button { width: 100%; margin-top: 10px; }
.demo-note { padding: 10px; color: #765b21; background: var(--gold-soft); border-radius: 10px; font-size: 11px; }

.empty { padding: 34px; color: var(--muted); background: rgba(255,255,255,.55); border: 1px dashed #bbb5a9; border-radius: 16px; text-align: center; }
.toast { position: fixed; z-index: 60; right: 18px; bottom: 18px; max-width: min(390px, calc(100% - 36px)); padding: 13px 16px; color: white; background: var(--navy); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }

.notification-privacy-gate { position: relative; min-height: 100dvh; padding: max(36px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); display: grid; place-items: center; overflow: hidden; color: #fff5eb; background: radial-gradient(circle at 50% 24%, rgba(167,24,48,.44), transparent 37%), linear-gradient(155deg, #10070b, #030608 74%); text-align: center; }
.notification-privacy-gate::before, .notification-privacy-gate::after { content: ""; position: absolute; width: min(84vw, 460px); aspect-ratio: 1; border: 1px solid rgba(210,55,81,.22); transform: rotate(45deg); }
.notification-privacy-gate::before { top: -46%; left: -30%; }
.notification-privacy-gate::after { right: -34%; bottom: -46%; }
.notification-privacy-gate > section { position: relative; z-index: 1; width: min(100%, 520px); }
.notification-secret-symbol { width: 84px; height: 84px; margin: 0 auto 24px; display: grid; place-items: center; color: #ff657d; background: rgba(126,14,34,.24); border: 1px solid rgba(255,89,115,.58); transform: rotate(45deg); box-shadow: 0 0 48px rgba(174,20,46,.3); font-size: 37px; }
.notification-secret-symbol span { display: block; transform: rotate(-45deg); }
.notification-privacy-gate h1 { margin: 12px 0 26px; color: #fff7ef; font: 900 clamp(42px, 12vw, 70px)/.9 Georgia, serif; letter-spacing: .025em; text-shadow: 0 8px 34px rgba(0,0,0,.65); }
.notification-secret-warning { padding: 19px 20px; display: grid; gap: 9px; color: #ff8295; background: rgba(111,10,29,.32); border: 1px solid rgba(255,87,113,.48); border-radius: 17px; }
.notification-secret-warning strong { font-size: clamp(17px, 4.7vw, 23px); font-weight: 950; letter-spacing: .06em; }
.notification-secret-warning span { color: #f0cbd0; font-size: 16px; line-height: 1.42; }
.notification-secret-open { width: 100%; min-height: 68px; margin-top: 24px; color: #fff7f1; background: linear-gradient(135deg, #a91e38, #681124); border: 1px solid #e3536b; border-radius: 15px; box-shadow: 0 15px 42px rgba(120,13,33,.34); font-size: 18px; font-weight: 950; letter-spacing: .075em; }
.notification-privacy-gate .notification-secondary-action { color: #d8b7bc; }
.notification-privacy-banner { margin: -10px 0 25px; padding: 11px 14px; display: grid; gap: 3px; color: #80d8aa; background: rgba(35,135,88,.13); border: 1px solid rgba(65,174,119,.42); border-radius: 12px; text-align: center; }
.notification-privacy-banner strong { font-size: 14px; font-weight: 950; letter-spacing: .08em; }
.notification-privacy-banner span { color: #b8d8c8; font-size: 12px; }
.notification-destination { min-height: 100dvh; padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); display: grid; place-items: center; overflow: hidden; color: #f7f0df; background: radial-gradient(circle at 50% 12%, rgba(211,165,78,.17), transparent 36%), #071117; }
.notification-destination::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 0 47%, rgba(220,178,94,.07) 48% 49%, transparent 50% 100%); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 75%); }
.notification-destination.is-private { background: radial-gradient(circle at 50% 5%, rgba(126,19,35,.42), transparent 40%), #06090d; }
.notification-destination > section { position: relative; z-index: 1; width: min(100%, 560px); }
.notification-message-card { padding: clamp(34px, 8vw, 62px) clamp(26px, 7vw, 54px); border: 1px solid rgba(224,184,106,.46); border-radius: 4px 32px 4px 32px; background: linear-gradient(145deg, rgba(24,35,41,.96), rgba(8,16,21,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.58), inset 0 0 70px rgba(213,169,85,.05); }
.is-private .notification-message-card { border-color: rgba(157,45,62,.72); box-shadow: 0 28px 90px rgba(0,0,0,.7), inset 0 0 80px rgba(132,23,40,.12); }
.notification-message-card h1, .notification-qr-hero h1 { margin: 14px 0 24px; color: #fff8e9; font: 700 clamp(38px, 10vw, 64px)/.98 Georgia, serif; text-wrap: balance; }
.notification-rich-copy { color: #e5ded0; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.58; }
.notification-rich-copy h1, .notification-rich-copy h2, .notification-rich-copy h3 { color: #edca83; font-family: Georgia, serif; line-height: 1.12; }
.notification-rich-copy p:first-child { margin-top: 0; }
.notification-rich-copy p:last-child { margin-bottom: 0; }
.notification-rich-copy li + li { margin-top: 9px; }
.notification-message-card > button, .notification-destination.is-error button, .notification-primary-action { width: 100%; min-height: 66px; margin-top: 34px; border: 1px solid #f1ca7b; border-radius: 14px; color: #11191e; background: linear-gradient(135deg, #f0cb7f, #c99639); font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.is-private .notification-message-card > button { border-color: #c85568; color: #fff7ed; background: linear-gradient(135deg, #8e1d31, #58101e); }
.notification-destination.is-error section { padding: 36px; text-align: center; border: 1px solid rgba(224,184,106,.35); border-radius: 24px; background: #101a20; }
.notification-destination.is-error h1 { font: 700 42px/1 Georgia, serif; }
.notification-qr-hero { text-align: center; }
.notification-qr-hero h1 { margin-bottom: 16px; }
.notification-qr-feedback { max-width: 470px; min-height: 86px; margin: 0 auto 24px; padding: 15px 18px; display: grid; place-content: center; gap: 6px; color: #e8c879; background: rgba(218,177,91,.08); border: 1px solid rgba(218,177,91,.32); border-radius: 16px; text-align: center; transition: color .25s, background .25s, border-color .25s, transform .25s; }
.notification-qr-feedback strong { font-size: clamp(20px, 5vw, 28px); font-weight: 950; letter-spacing: .07em; line-height: 1; }
.notification-qr-feedback span { color: #d4ccbd; font-size: 15px; line-height: 1.35; }
.notification-qr-feedback[data-status="scanning"] { color: #ffd98b; background: rgba(218,177,91,.13); border-color: rgba(239,199,121,.62); }
.notification-qr-feedback[data-status="error"] { color: #ff7182; background: rgba(150,22,43,.25); border-color: rgba(255,83,108,.7); transform: scale(1.025); }
.notification-qr-feedback[data-status="error"] span { color: #ffd8dd; }
.notification-qr-feedback[data-status="success"] { color: #8df0b4; background: rgba(24,133,75,.23); border-color: rgba(92,224,144,.72); transform: scale(1.035); }
.notification-qr-feedback[data-status="success"] span { color: #d7f8e4; }
.notification-qr-reader { position: relative; display: grid; justify-items: center; }
.notification-qr-reader video { display: none; width: min(100%, 470px); aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: #000; box-shadow: 0 22px 70px rgba(0,0,0,.5); }
.notification-qr-reader.is-active video { display: block; }
.notification-qr-frame { display: none; position: absolute; top: 0; width: min(100%, 470px); aspect-ratio: 1; pointer-events: none; background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)); border-radius: 22px; }
.notification-qr-reader.is-active .notification-qr-frame { display: block; }
.notification-qr-frame::after { content: ""; position: absolute; inset: 17%; border: 2px solid rgba(239,199,121,.95); box-shadow: 0 0 0 999px rgba(0,0,0,.2); border-radius: 14px; }
.notification-qr-frame i { position: absolute; z-index: 1; width: 42px; height: 42px; border-color: #ffe0a0; }
.notification-qr-frame i:nth-child(1) { top: 17%; left: 17%; border-top: 5px solid; border-left: 5px solid; border-radius: 12px 0 0; }
.notification-qr-frame i:nth-child(2) { top: 17%; right: 17%; border-top: 5px solid; border-right: 5px solid; border-radius: 0 12px 0 0; }
.notification-qr-frame i:nth-child(3) { bottom: 17%; left: 17%; border-bottom: 5px solid; border-left: 5px solid; border-radius: 0 0 0 12px; }
.notification-qr-frame i:nth-child(4) { right: 17%; bottom: 17%; border-right: 5px solid; border-bottom: 5px solid; border-radius: 0 0 12px; }
.notification-qr-reader > p { margin: 18px 0 0; color: #c8c0b3; font-size: 16px; text-align: center; }
.notification-qr-reader:not(.is-active) > p { display: none; }
.notification-primary-action { max-width: 470px; }
.notification-secondary-action { min-height: 52px; margin-top: 14px; border: 0; color: #e8c476; background: transparent; font-size: 17px; font-weight: 800; }
.notification-qr-reader.is-active .notification-primary-action { display: none; }
.notification-layout [data-notification-qr-fields][hidden] { display: none; }

@media (max-width: 900px) {
  .metrics, .three-col { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .guest-row { grid-template-columns: 1fr 1fr; }
  .guest-row .identity { grid-column: 1 / -1; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .guest-admin-list .guest-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .guest-admin-list .guest-row .identity { grid-column: 1 / -1; }
  .guest-admin-list .row-actions { grid-column: 1 / -1; }
  .guest-add-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .field input, .field textarea, .field select { font-size: 16px; }
  .topbar { height: 64px; padding: 0 14px; }
  .brand-copy span, .mode-chip { display: none; }
  .page { width: min(100% - 20px, 1220px); padding-top: 12px; }
  .hero { min-height: 238px; padding: 26px 21px; border-radius: 20px; }
  .nav-tabs { top: 64px; margin: 12px 0; border-radius: 13px; }
  .metrics, .three-col, .form-grid { grid-template-columns: 1fr; }
  .metric { min-height: auto; }
  .guest-row { grid-template-columns: 1fr; }
  .guest-row .identity, .row-actions { grid-column: auto; }
  .guest-admin-list .guest-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-admin-list .guest-row .identity, .guest-admin-list .row-actions { grid-column: 1 / -1; }
  .guest-admin-list .row-actions [data-action="reset-onboarding"] { margin-left: 0; }
  .guest-add-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .guest-list-head { margin-top: 26px; }
  .agenda-card { grid-template-columns: 65px 1fr; }
  .agenda-card .vote-group, .agenda-card .agenda-admin-actions { grid-column: 1 / -1; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .card { padding: 18px; border-radius: 17px; }
  .guest-page { padding-top: 8px; }
  .guest-hero { padding: 24px 20px; border-radius: 20px; }
  .rsvp-buttons { grid-template-columns: 1fr; }
  .invitation-screen { grid-template-rows: minmax(270px, 38dvh) minmax(0, 1fr); }
  .invitation-actions { padding-top: 24px; }
  .rsvp-choice-grid { margin-top: 20px; gap: 8px; }
  .invitation-continue { margin-top: 18px; }
  .profile-photo-screen { grid-template-rows: minmax(285px, 42dvh) minmax(0, 1fr); }
  .personality-screen { grid-template-rows: minmax(265px, 34dvh) minmax(0, 1fr); }
  .personality-options { gap: 8px; }
  .personality-option { min-height: 96px; }
  .profile-question-layout > .form-card { position: static; }
  .notification-layout > .form-card { position: static; }
  .notification-status-strip { grid-template-columns: repeat(3, minmax(102px, 1fr)); overflow-x: auto; }
  .notification-status-strip article { min-height: 62px; padding: 8px 10px; }
  .notification-status-icon { display: none; }
  .notification-status-strip small { font-size: 9px; white-space: normal; }
  .notification-status-strip strong { font-size: 21px; }
  .rich-html-toolbar .rich-html-source-toggle { margin-left: 0; }
  .rich-html-surface, .rich-html-source { min-height: 210px; font-size: 16px; }
  .splash-screens { grid-template-columns: 1fr; }
  .role-admin-choice { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-glow, .splash-kicker, .splash-progress i, .welcome-crawl { animation-duration: .01ms; animation-delay: 0s; }
  .app-splash, .front-intro, .intro-media, .intro-gate { transition-duration: .2s; }
}
