/* Santa postcard direction. Existing forms, navigation and data attributes stay shared.
   Dials: variance 6, motion 3 (existing optional snow), density 4.
   White paper + Santa red is intentional, matching the supplied reference.
   Radius scale: controls 16px, gift cards 24px.
   The Santa backdrop fills the viewport on desktop and mobile, with no outer card. */
:root {
  --red: #db1d2c;
  --pine: #a51b29;
  --deep: #292e38;
  --ink: #292e38;
  --muted: #666772;
  --cream: #f5f5f2;
  --panel: #fffefa;
  --line: #e3e3de;
  --gold: #926623;
  --display: 'Arial Rounded MT Bold', 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --festive: 'Berkshire Swash', Georgia, serif;
}
.site-header, .app-main { max-width: none; }
.site-header { min-height: 80px; padding-block: 18px; }
.site-header::before { display: none; }
.btn { border-radius: 16px; font-weight: 700; }
.btn.secondary { border-color: #d7d8d8; color: var(--ink); }
:where(button, a, input, textarea, select):focus-visible { outline-color: var(--ink); }
.welcome-banner :where(button, a):focus-visible { outline-color: #fffefa; }
.nav-item.active { background: #fce6e6; color: #a51b29; }
.nav-item { color: #666772; }
.select-wrap { background: var(--panel); }
.section-heading h2, .modal h2, .empty-state h3, .standalone-card h1,
.chat-heading h2 { font-family: var(--festive); font-weight: 400; letter-spacing: 0; }
.detail-price, .contribution-summary strong { font-family: var(--display); }
.section-eyebrow { display: none; }
.section-heading h2 { color: var(--ink); font-size: 34px; letter-spacing: 0; }
.gift-card { border-radius: 24px; border-color: #e5e4de; }
.gift-card::before { background: var(--red); height: 5px; }
.gift-card::after { display: none; }
.gift-visual { border-radius: 16px; }
.member-filter { border-color: #deded7; color: #62636a; }
.member-filter.active { background: var(--deep); color: #fffefa; border-color: var(--deep); }
.mobile-nav { background: #fffefaf5; border-color: var(--line); }
.mobile-nav button.active { background: #fce6e6; color: #a51b29; }
.app-footer { background: var(--red); background-image: none; }
.footer-brand { color: #fffefa; }
.footer-privacy { background: #fffefa; color: var(--ink); }

/* The illustration stays crisp at any viewport and loads without JavaScript. */
.welcome-banner, .login-story { background: var(--red); color: #fffefa; }
.welcome-banner::before, .welcome-banner::after, .login-story::before { display: none; }
.santa-art { display: block; pointer-events: none; user-select: none; }
.hero-snow { z-index: 0; }
.scene-toggle { background: #b71726; color: #fffefa; border-color: #ffffff50; min-height: 40px; }
.welcome-banner { margin: 0; min-height: 0; padding: 0; border-radius: 0; }
.welcome-banner > .santa-art { position: absolute; top: 0; right: 0; width: 47%; max-width: 543px; height: auto; }
.welcome-copy { width: 57%; min-height: 480px; max-width: 760px; margin: 0; padding: 54px 20px 38px 48px; text-align: left; }
.welcome-copy .eyebrow { color: #fff3d3; font-size: 13px; }
.welcome-copy h1 { margin: 22px 0; color: #fffefa; font: 400 clamp(40px, 4.1vw, 64px)/1.15 var(--festive); letter-spacing: 0; text-wrap: initial; }
.welcome-copy p { max-width: 430px; margin: 0; color: #fffefa; font-size: 16px; line-height: 1.65; }
.hero-actions { justify-content: flex-start; margin-top: 26px; gap: 12px; }
.hero-actions .btn.primary { background: #fffefa; color: var(--ink); }
.hero-actions .btn.secondary { background: transparent; color: #fffefa; border-color: #ffffffb3; }
.countdown-tag { margin: 27px 0 0; width: auto; min-height: 0; padding: 0; gap: 10px; background: transparent; clip-path: none; transform: none; color: #fffefa; }
.countdown-tag::before { display: none; }
.countdown-tag strong { color: #f5db86; font: 700 36px/1 var(--display); letter-spacing: -1px; }
.countdown-tag > span { font-size: 12px; font-weight: 600; }
.family-tree { position: relative; top: auto; left: auto; width: 100%; height: auto; padding: 19px 105px 23px 40px; transform: none; border-top: 1px solid #ffffff38; }
.family-tree:has(.family-ornaments:empty) { display: none; }
.family-ornaments { position: static; display: flex; align-items: flex-start; justify-content: flex-start; gap: 20px; overflow-x: auto; padding: 7px 5px 3px; scrollbar-width: thin; scrollbar-color: #f8a0a5 transparent; }
.family-ornament { position: static; flex: 0 0 auto; min-width: 76px; min-height: 82px; transform: none; gap: 9px; }
.ornament-ball { width: 48px; height: 48px; border: 0; background: #fffefa; box-shadow: none; color: #a51b29; font: 700 15px/1 var(--display); }
.ornament-ball::before { display: none; }
.family-ornament:nth-child(3n + 2) .ornament-ball { background: #f5db86; color: #5b411e; border: 0; }
.family-ornament:nth-child(3n) .ornament-ball { background: #f7cec4; color: #792c2d; border: 0; }
.family-ornament.is-me .ornament-ball { outline: 2px solid #fffefa; outline-offset: 4px; }
.ornament-label { max-width: 132px; color: #fffefa; background: transparent; box-shadow: none; padding: 0 3px; font-size: 12px; }
.ornament-label small { color: #fff2cd; }
.family-ornament.is-active .ornament-label { background: #fffefa; color: #a51b29; padding: 2px 8px; }
.family-ornament.is-active .ornament-label small { color: #a51b29; }
.welcome-banner .scene-toggle { right: 24px; bottom: 27px; }

/* Two full-height panels, edge to edge. Only the useful content has inner padding. */
.login-layout { grid-template-columns: 1.08fr 1fr; max-width: none; min-height: 100dvh; margin: 0; padding: 0; }
.login-story { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: auto; padding-bottom: 36px; border-radius: 0; }
.login-story .santa-art { position: relative; flex: 0 0 auto; width: 100%; height: auto; max-height: max(300px, calc(100dvh - 285px)); object-fit: fill; }
.login-story-copy { position: relative; inset: auto; margin-top: auto; padding: 24px clamp(36px, 4vw, 76px) 0; text-align: left; }
.login-story h1 { margin: 0 0 20px; color: #fffefa; font: 400 clamp(36px, 3.2vw, 52px)/1.15 var(--festive); letter-spacing: 0; text-wrap: initial; }
.login-story-copy > p { max-width: none; margin: 0; color: #fffefa; font-size: 17px; line-height: 1.6; }
.login-story .scene-toggle { top: auto; bottom: 19px; right: 19px; width: 40px; padding: 10px; }
.login-story .scene-toggle span { display: none; }
.login-story .scene-toggle .icon { width: 16px; height: 16px; }
.login-form-side { padding: clamp(36px, 5vw, 80px); border-radius: 0; background: var(--panel); }
.login-form-side::before { display: none; }
.login-form-wrap { max-width: 400px; text-align: left; }
.form-ornament { width: 54px; height: 54px; margin: 0 0 22px; border: 0; border-radius: 17px; background: #fce6e6; color: var(--red); }
.form-ornament .icon { width: 26px; height: 26px; }
.login-form-wrap h2 { color: var(--ink); font: 400 38px/1.2 var(--festive); letter-spacing: 0; }
.login-form-wrap > .subtle { font-size: 14px; }
.login-form-wrap .stack-form input { border-radius: 14px; border-color: #d7d8d8; background: #fffefa; }
.login-form-wrap .btn { min-height: 52px; }
.login-copyright { margin-top: 30px; font-size: 11px; text-align: center; flex-wrap: wrap; gap: 4px; }
.login-copyright span { display: none; }
.invitation-hint { margin-top: 15px; line-height: 1.65; text-align: center; }
.demo-section { margin-top: 22px; padding-top: 20px; text-align: center; }
.demo-section > span { color: var(--muted); font-size: 10px; letter-spacing: .6px; }
.demo-section > small { font-size: 11px; }
.standalone { background: var(--red); }
.standalone-card { background: var(--panel); border: 0; border-radius: 26px; box-shadow: none; }

@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: #bd1624; }
  .hero-actions .btn.primary:hover { background: #f6df9b; }
  .btn.secondary:hover { background: #fce6e6; border-color: #c9858c; }
  .hero-actions .btn.secondary:hover { background: #ffffff15; border-color: #fffefa; }
  .family-ornament:hover .ornament-ball { transform: translateY(-3px); box-shadow: none; }
}
@media (max-width: 1080px) {
  .welcome-copy { padding: 40px 24px 30px 32px; min-height: 450px; width: 57%; }
  .welcome-copy h1 { font-size: clamp(35px, 4vw, 45px); }
  .welcome-banner > .santa-art { width: 44%; }
  .hero-actions .btn { font-size: 13px; padding-inline: 15px; }
  .family-ornaments { gap: 13px; }
  .login-story-copy { padding-inline: 28px; }
  .login-story h1 { font-size: 32px; }
  .login-form-side { padding: 30px; }
  .login-form-wrap h2 { font-size: 29px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .welcome-banner { margin: 0; padding: 0; border-radius: 0; min-height: 0; }
  .welcome-banner > .santa-art { position: relative; inset: auto; width: 100%; max-width: none; height: auto; }
  .welcome-copy { width: 100%; min-height: 0; padding: 25px 27px 28px; text-align: left; }
  .welcome-copy .eyebrow { font-size: 12px; }
  .welcome-copy h1 { margin: 16px 0; font-size: clamp(29px, 7.8vw, 48px); line-height: 1.15; }
  .welcome-copy p { font-size: 14px; max-width: 430px; margin: 0; }
  .hero-actions { margin-top: 22px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; max-width: none; min-height: 49px; font-size: 14px; }
  .countdown-tag { margin: 24px 0 0; }
  .countdown-tag strong { font-size: 32px; }
  .family-tree { padding: 17px 21px 22px; }
  .family-ornaments { gap: 13px; }
  .family-ornament { min-width: 64px; min-height: 78px; }
  .ornament-label { max-width: 110px; font-size: 12px; }
  .welcome-banner .scene-toggle { top: 15px; bottom: auto; right: 15px; background: #fffefa; color: #6b6971; border: 1px solid #e9e6df; min-width: 40px; }
  .section-heading h2 { font-size: 27px; }
  body:has(.login-layout) { background: var(--red); }
  .login-layout { display: flex; flex-direction: column; min-height: 100dvh; max-width: none; margin: 0; padding: 0; background: var(--red); }
  .login-story { flex: 0 0 auto; min-height: 0; height: auto; padding: 0; border-radius: 0; }
  .login-story .santa-art { max-height: none; }
  .login-story-copy { padding: 12px max(27px, env(safe-area-inset-right)) 0 max(27px, env(safe-area-inset-left)); }
  .login-story h1 { max-width: none; margin: 0 0 13px; font-size: clamp(27px, 7.8vw, 40px); }
  .login-story-copy > p { font-size: 15px; line-height: 1.55; }
  .login-story .scene-toggle { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); bottom: auto; background: #fffefa; color: #6b6971; border: 1px solid #e9e6df; }
  .login-form-side { flex: 1; justify-content: flex-start; padding: 25px max(27px, env(safe-area-inset-right)) calc(27px + env(safe-area-inset-bottom)) max(27px, env(safe-area-inset-left)); border-radius: 0; background: var(--red); color: #fffefa; }
  .login-form-wrap { max-width: none; }
  .login-form-title, .login-form-introduction, .form-ornament { display: none; }
  .login-form-wrap h2 { color: #fffefa; font-size: 29px; }
  .login-form-wrap > .subtle, .login-form-wrap label, .login-form-wrap .privacy-line,
  .privacy-line .icon, .invitation-hint, .demo-section > span, .demo-section > small,
  .login-copyright { color: #fffefa; }
  .login-form-wrap .stack-form { gap: 15px; }
  .login-form-wrap .stack-form label { gap: 7px; font-size: 13px; }
  .login-form-wrap .stack-form input { border: 1px solid #fffefa; background: #fffefa; color: var(--ink); min-height: 52px; }
  .login-form-wrap .btn.primary { background: #fffefa; color: var(--ink); }
  .login-form-wrap .btn.secondary { color: #fffefa; border-color: #ffffffa6; }
  .login-form-wrap .text-link { color: #fffefa; }
  .privacy-line { margin-top: 18px; font-size: 11px; }
  .invitation-hint { margin-top: 15px; font-size: 11px; }
  .demo-section { border-color: #ffffff4d; }
  .demo-section .btn { min-height: 44px; }
  .login-copyright { margin-top: 24px; font-size: 10px; }
  .dev-note { color: var(--ink); background: #fffefa; }
  .dev-note p { color: var(--muted); }
  .dev-note .btn.primary { background: var(--red); color: #fffefa; }
  :where(.welcome-banner, .login-form-side) :where(button, a, input):focus-visible { outline-color: #fffefa; outline-offset: 4px; }
}
@media (max-width: 360px) {
  .login-story-copy, .login-form-side { padding-inline: 22px; }
  .login-form-wrap .btn { padding-inline: 12px; font-size: 12px; }
}
