/* ==== Site look: wwwroot/css/theme.css is the Santa Live design (landing page, header, footer, night sky).
   This file adapts the app's own pages to it and holds the call screen. ==== */

.site-footer, main { position: relative; z-index: 3; }
.site-footer a { font-size: 10px; color: #a7bdb3; padding: 8px 0; }
.site-footer a:hover { color: #f3cc7b; }
.site-footer > .wordmark { padding: 0; }
.parent-button { text-decoration: none; }

/* The Santa Calls logo (dark green, snow-capped letters). A soft light glow keeps it readable on the night sky. */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img {
  display: block; height: 56px; width: auto; max-width: 100%;
  filter: drop-shadow(0 0 1px rgba(255, 250, 238, .95)) drop-shadow(0 0 2px rgba(255, 250, 238, .8)) drop-shadow(0 2px 10px rgba(255, 244, 220, .35));
}
.site-footer .brand-logo img { height: 40px; }

/* ---- Home page fixes ---- */
/* "Christmas connection" stamp: a little bigger, with the words centred on two tidy lines inside the circle. */
.landing .north-pole-stamp { width: 124px; height: 124px; gap: 5px; padding: 14px; text-align: center; }
.landing .north-pole-stamp > span { display: block; max-width: 86%; line-height: 1.25; letter-spacing: 1px; }
.landing .north-pole-stamp strong { display: block; max-width: 84%; line-height: 1; text-align: center; }
@media (max-width: 1150px) { .landing .north-pole-stamp { width: 108px; height: 108px; padding: 12px; } }
@media (max-width: 980px) { .landing .north-pole-stamp { width: 92px; height: 92px; padding: 10px; gap: 3px; } }
@media (max-width: 650px) { .landing .north-pole-stamp { width: 80px; height: 80px; padding: 8px; } }
/* Hero: room between the button, its hand-drawn note and the small print, so the arrow never runs over the text. */
.landing .hero-actions { margin-bottom: 30px; }
.landing .hand-note svg { bottom: -26px; }
.landing .preview-hint { margin-top: 0; line-height: 1.5; }
.landing .parent-reassurance { margin-top: 18px; }
@media (max-width: 980px) { .landing .hero-actions { margin-bottom: 14px; } }
@media (max-width: 760px) { .brand-logo img { height: 42px; } }
@media (max-width: 400px) { .brand-logo img { height: 34px; } }

/* ---- Inner pages (My children, history, admin, privacy): a parchment panel on the night sky ---- */
.inner-page { padding: 48px 0 80px; }
.paper {
  background: linear-gradient(135deg, #fff7df, #efe2c0); color: #243b32;
  border: 1px solid #e0c083; border-radius: 6px 6px 22px 22px;
  box-shadow: 0 18px 48px #021624aa, 0 0 0 6px #dfc58f14;
  padding: clamp(22px, 4vw, 48px);
  font-family: var(--sans); font-size: 15px;
}
.paper h1, .paper .h1, .paper h1.h3 {
  font-family: 'Berkshire Swash', Georgia, serif; font-weight: 400; color: #3e392b;
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.4px; line-height: 1.2;
}
.paper h1 em { font-style: normal; color: #9b6b2c; }
.paper h2, .paper h3, .paper .h4, .paper .h5 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: #3e392b; }
.paper h2 { font-size: 24px; margin-top: 1.6rem; }
.paper p, .paper li { line-height: 1.75; }
.paper a:not(.btn) { color: #9b2c34; text-decoration: underline; text-underline-offset: 3px; }
.paper .eyebrow-text { font-size: 10px; font-weight: 650; letter-spacing: 1.7px; color: #987546; margin-bottom: .5rem; }
.paper .text-muted, .paper small.text-muted { color: #776f57 !important; }
.paper hr { border-color: #cab98e; opacity: 1; }

/* Buttons: the red pill and a quiet outline, like the design */
.paper .btn { border-radius: 30px; font-weight: 600; padding: .55rem 1.2rem; transition: transform .2s, box-shadow .2s, background .2s; }
.paper .btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.paper .btn:hover { transform: translateY(-1px); }
.paper .btn-danger, .paper .btn-primary, .paper .btn-success {
  background: linear-gradient(#c34545, #9e2937); border: 1px solid #e0ae6c; color: #fff3db;
  box-shadow: 0 3px 0 #65242b, inset 0 1px 0 #ffca9777;
}
.paper .btn-danger:hover, .paper .btn-primary:hover, .paper .btn-success:hover { background: linear-gradient(#d4514d, #ae303c); color: #fff; }
.paper .btn-outline-primary, .paper .btn-outline-secondary, .paper .btn-outline-success, .paper .btn-secondary, .paper .btn-light {
  background: transparent; border: 1px solid #b9a77a; color: #3f4c3c;
}
.paper .btn-outline-primary:hover, .paper .btn-outline-secondary:hover, .paper .btn-outline-success:hover,
.paper .btn-secondary:hover, .paper .btn-light:hover { background: #e9dcb8; color: #243b32; }
.paper .btn-outline-danger { border-color: #c98a7c; color: #9b2c34; background: transparent; }
.paper .btn-outline-danger:hover { background: #9b2c34; color: #fff; }
.paper .btn:focus-visible { outline: 3px solid #b58a3d; outline-offset: 3px; box-shadow: none; }

/* Cards, tables and forms on parchment */
.paper .card { background: #fffaf0b3; border: 1px solid #dccb9f; border-radius: 14px; box-shadow: 0 4px 14px #5b4a2512; }
.paper .card-footer { background: transparent; border-top: 1px solid #e3d5b0; }
.paper .table { --bs-table-bg: transparent; --bs-table-color: #243b32; --bs-table-striped-bg: #f3e8cc; --bs-table-hover-bg: #efe2bf; border-color: #dccb9f; }
.paper .table thead th { font-weight: 600; font-size: .8rem; letter-spacing: .3px; color: #6b6043; border-bottom-color: #cab98e; }
.paper .form-control, .paper .form-select {
  background: #fffdf6; border: 1px solid #cfc3a0; color: #243b32; border-radius: 8px;
}
.paper .form-control:focus, .paper .form-select:focus { border-color: #b58a3d; box-shadow: 0 0 0 .2rem #b58a3d33; }
.paper .form-label, .paper label { font-weight: 500; font-size: .9rem; }
.paper .alert { border-radius: 10px; }
.paper .badge { font-weight: 600; }
.paper .list-group-item { background: transparent; border-color: #dccb9f; color: inherit; }
.paper pre { background: #f3e8cc !important; border-radius: 8px; }
.paper details summary { cursor: pointer; }

@media (max-width: 650px) {
  .inner-page { padding: 24px 0 48px; }
  .paper { border-radius: 4px 4px 16px 16px; }
}

/* ---- Talk to Santa: full-screen video-call stage ---- */
.santa-stage {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-h, 56px);
  z-index: 20; overflow: hidden; background: #1b120c; color: #fff; text-align: center;
}
/* The portrait covers the whole stage. Cropping favours the face: the sides go first on phones,
   the hat and coat on wide screens. */
.santa-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  transform-origin: 50% 45%; will-change: transform;
}
/* Live Anam video. Anam sends at most 1152x768 (768x1152 upright), so it is shown no bigger than 1.25x its real
   size, centred: stretching it to a large screen is what made Santa look soft. On phones it still fills the screen. */
.santa-video {
  inset: 0; margin: auto;
  width: min(100%, 1440px); height: min(100%, 960px);
  object-fit: cover; object-position: 50% 40%;
  opacity: 0; transition: opacity .6s ease; background: #1b120c; pointer-events: none; z-index: 1;
}
.santa-video.portrait { width: min(100%, 960px); height: min(100%, 1440px); }
.santa-video.live { opacity: 1; }
/* Big screens: the video sits like a window, with soft corners and a shadow. */
@media (min-width: 1000px) and (orientation: landscape) {
  .santa-video { border-radius: 18px; box-shadow: 0 12px 48px rgba(0,0,0,.55); }
}
/* While the video is live, the photo behind it becomes a dark, heavily blurred backdrop of Santa's room that
   fills the rest of the screen (blurred enough that it never reads as a second Santa). */
#santa-canvas { transition: filter .6s ease; }
.santa-stage.video-live #santa-canvas { filter: blur(32px) brightness(.5) saturate(1.1); }
.call-controls { z-index: 4; }
/* Last resort when the browser still blocks sound: a small pill at the top (a tap anywhere unlocks it). */
.tap-to-hear {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 5;
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.15rem;
  border: 1px solid #e1be7e66; border-radius: 999px; background: #041720b3; backdrop-filter: blur(6px);
  color: #fff1cb; font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
.tap-to-hear[hidden] { display: none; }
.tap-to-hear .tap-bell { font-size: 1.3rem; animation: tap-ring 1.6s ease-in-out infinite; }

/* Ringing: "Calling Santa Claus, The North Pole…" over the stage until the call connects. */
.call-ringing {
  position: absolute; inset: 0; z-index: 3; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: 24px 16px calc(150px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 32%, #14454f 0%, #0b252c 55%, #051317 100%);
  color: #fff8ec; text-align: center; transition: opacity .7s ease, visibility .7s;
}
.call-ringing.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.ring-sky i {
  position: absolute; width: var(--z); height: var(--z); border-radius: 50%; background: #fff3d6;
  box-shadow: 0 0 6px #f3d58f; animation: ring-twinkle 2.6s ease-in-out infinite;
}
@keyframes ring-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }
.ring-avatar { position: relative; width: min(46vw, 190px); aspect-ratio: 1; margin-bottom: 1.8rem; }
.ring-avatar img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid #e1be7e; background: radial-gradient(circle at 50% 40%, #a3463a, #3a1410);
  box-shadow: 0 0 0 7px #e1be7e22, 0 16px 44px #0009;
  animation: ring-shake 2.4s ease-in-out infinite;
}
/* Ripples of light spread out from the picture, like a phone ringing. */
.ring-wave {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid #f3d58f; opacity: 0;
  animation: ring-wave 2.4s cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(var(--w) * .8s);
}
@keyframes ring-wave { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2); opacity: 0; } }
/* A little "buzz" with each ring. */
@keyframes ring-shake {
  0%, 55%, 100% { transform: rotate(0); }
  60%, 70%, 80% { transform: rotate(-4deg) scale(1.02); }
  65%, 75% { transform: rotate(4deg) scale(1.02); }
}
.ring-label { margin: 0; font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: #e1be7e; }
.ring-name {
  margin: 0; font-family: 'Berkshire Swash', Georgia, serif; font-size: clamp(2.1rem, 8vw, 3.2rem);
  color: #fff8ec; text-shadow: 0 0 26px #f3d58f59;
}
.ring-where { margin: 0; font-size: 1.05rem; opacity: .82; }
.ring-dots i {
  display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: currentColor;
  animation: ring-dot 1.2s ease-in-out infinite;
}
.ring-dots i:nth-child(2) { animation-delay: .2s; }
.ring-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ring-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ring-note { margin: 1.1rem 0 0; min-height: 1.5em; max-width: 22rem; font-size: .98rem; color: #ffe7b0; }
/* Picked up: the ripples stop, the picture gives a happy bounce, then the screen fades into the call. */
.call-ringing.answered .ring-wave { animation: none; opacity: 0; }
.call-ringing.answered .ring-avatar img { animation: ring-pop .6s ease forwards; }
.call-ringing.answered .ring-dots { visibility: hidden; }
@keyframes ring-pop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1.04); } }
@keyframes tap-ring { 0%, 70%, 100% { transform: rotate(0); } 75%, 85% { transform: rotate(-14deg); } 80%, 90% { transform: rotate(14deg); } }
/* During a call the menu bar disappears and Santa takes the whole window. */
body.in-call header, body.in-call .announcement { display: none; }
/* The call page never scrolls: the stage is the page. */
body.talk-page { overflow: hidden; }
body.talk-page .site-footer { display: none; }
body.in-call .santa-stage { top: 0; }
/* The only controls: a round green "call" button and a red "hang up" button, bottom centre. */
.call-controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 1.5rem;
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.35));
}
.call-btn {
  width: clamp(64px, 16vmin, 84px); height: clamp(64px, 16vmin, 84px); border: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .12s ease, filter .12s ease;
}
.call-btn svg { width: 46%; height: 46%; fill: currentColor; }
.call-btn:hover:not(:disabled) { transform: scale(1.06); }
.call-btn:active:not(:disabled) { transform: scale(.96); }
.call-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.call-btn:disabled { filter: grayscale(1) brightness(.8); cursor: not-allowed; }
.call-btn[hidden] { display: none; }
.call-btn-start { background: #22c55e; }
.call-btn-end { background: #ef4444; }
/* Phones on their side: there is little height, so the buttons move to the right edge, off Santa's mouth. */
@media (orientation: landscape) and (max-height: 520px) {
  .call-controls {
    left: auto; top: 0; bottom: 0; flex-direction: column; justify-content: center;
    padding: 1rem calc(1rem + env(safe-area-inset-right)) 1rem 2rem;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.3));
  }
}

/* ---- Elf on the Shelf ---- */
.paper .elf-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem 1rem; border: 1px dashed #cab98e; border-radius: 12px; background: #fffaf0;
}
.paper .elf-ideas summary { cursor: pointer; color: #9b2c34; font-weight: 600; }
/* "Call <elf>" is green next to Santa's red. */
.paper .btn-success { background: linear-gradient(#3f9a66, #2a6e47); border-color: #2a6e47; color: #fff; }
.paper .btn-success:hover { background: linear-gradient(#4aab74, #2f7a4f); color: #fff; }
/* Male / Female toggle: the chosen one is filled. */
.paper .elf-gender .btn { border-radius: 30px; }
.paper .elf-gender .btn-check:checked + .btn { background: #243b32; color: #fff1cb; border-color: #243b32; }

/* Child profile form: three sections, the secret one folded away */
.child-form .child-section { border: 1px solid rgba(0,0,0,.1); border-radius: 14px; padding: 1rem 1.1rem 1.2rem; margin-bottom: 1.25rem; background: rgba(255,255,255,.55); }
.child-form legend { float: none; width: auto; font-size: 1.15rem; font-weight: 600; padding: 0 .35rem; margin-bottom: .25rem; }
.child-form .child-secret { background: #fff8e8; border-color: #e8c97a; }
.child-form .child-secret > summary { cursor: pointer; list-style: none; }
.child-form .child-secret > summary::-webkit-details-marker { display: none; }
.child-form .child-secret > summary .h5::after { content: " ▾"; font-size: .8em; color: #9a7b2c; }
.child-form .child-secret:not([open]) > summary .h5::after { content: " ▸"; }

/* Parent PIN */
.parent-lock { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .55rem .9rem; border-radius: 12px; background: rgba(0,0,0,.05); font-size: .92rem; }
.parent-lock.is-open { background: #fff4d6; }
.parent-lock > span { margin-right: auto; }
.pin-card { max-width: 24rem; margin: 1rem auto; padding: 1.5rem; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.pin-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }
.child-form .form-switch .form-check-input { border-color: rgba(0,0,0,.4); width: 2.4em; height: 1.3em; cursor: pointer; }

/* Goodbye screen after a call: child-facing, no menu or footer */
body.call-ended .site-footer { display: none; }
.ended-stage { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 50% 35%, #7a2d22, #1d0b0a 75%); color: #fff8ec; text-align: center; }
.ended-card { max-width: 30rem; }
.ended-picture { width: min(60vw, 260px); height: auto; border-radius: 50%; box-shadow: 0 12px 40px rgba(0,0,0,.45); display: block; margin: 0 auto 1.25rem; }
.ended-card h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); color: #fff8ec; }
.ended-card p { font-size: 1.15rem; opacity: .9; }
.ended-grownups { position: fixed; right: 14px; bottom: 12px; font-size: .8rem; color: rgba(255,248,236,.55); text-decoration: none; }
.ended-grownups:hover { color: #fff8ec; }

/* Children's call page: the settings cog (opens the PIN) */
.settings-cog { display:inline-grid; place-items:center; width:52px; height:52px; text-decoration:none; color:#b08a45; border-radius:50%; background:#fbf3e3; border:1px solid #d8bf8c; box-shadow:0 2px 0 #c9ad78; transition:transform .2s, box-shadow .2s; }
.settings-cog .xcog { width:34px; height:34px; }
.settings-cog:hover, .settings-cog:focus-visible { transform:translateY(-1px); box-shadow:0 4px 10px #8a6a3040; }
.call-card .btn { font-size: 1.05rem; padding: .6rem 1rem; }

/* Cartoon Santa in his workshop: looping background video, see-through Santa on top. */
.stage-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  /* Shown sharp, exactly as filmed (no blur or zoom). */
  pointer-events: none;
}
/* A soft shadow on the floor where Santa stands. */
.stage-floor-shadow {
  position: absolute; left: 50%; bottom: 0; width: min(70vh, 80vw); height: 9vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); pointer-events: none;
}
/* Wide screens: Santa stands at the bottom, fully in view, with the room around him. */
.santa-canvas.on-scene { object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }
/* Upright phones: Santa stands at the bottom about as wide as the screen (the sides of his square picture are
   empty, so it can be a little wider than the screen), with the workshop above and around him. */
@media (orientation: portrait) {
  .santa-canvas.on-scene { inset: auto; left: -12.5%; bottom: 0; width: 125%; height: auto; object-fit: fill; }
}
.ended-picture { background: radial-gradient(circle at 50% 40%, #a3463a, #3a1410); object-fit: cover; }

/* ---------- Landing: elf teaser, Super Nice List and Elf on the Shelf ---------- */
.landing .elf-teaser { display:inline-flex; align-items:center; gap:10px; margin-top:18px; padding:5px 14px 5px 5px; border-radius:999px; background:#16363b; border:1px solid #daba7640; color:#f1dfb6; font-size:13px; text-decoration:none; transition:border-color .2s, transform .2s; }
.landing .elf-teaser:hover { border-color:#daba76; transform:translateY(-1px); color:#fff; }
.landing .elf-teaser img { width:34px; height:34px; border-radius:50%; object-fit:cover; object-position:50% 22%; background:#234438; }
.landing .elf-teaser strong { color:#e1be7e; font-weight:650; }
.landing .elf-teaser svg { width:15px; height:15px; color:#daba76; }

.landing .nice-section { padding-top:70px; padding-bottom:80px; }
.landing .nice-quote { display:flex; align-items:center; gap:18px; max-width:680px; margin:6px auto 38px; padding:18px 24px 18px 18px; border-radius:18px; background:#f8edcf; color:#3c2a1e; box-shadow:0 10px 30px #0006; position:relative; }
.landing .nice-quote::after { content:""; position:absolute; left:52px; bottom:-10px; width:20px; height:20px; background:#f8edcf; transform:rotate(45deg); }
.landing .nice-quote img { width:64px; height:64px; border-radius:50%; object-fit:cover; object-position:50% 20%; flex-shrink:0; border:3px solid #b8302f; background:#234438; }
.landing .nice-quote p { margin:0; font-size:16px; line-height:1.55; font-style:italic; }
.landing .nice-quote em { color:#b8302f; font-weight:700; }
.landing .nice-cards { display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
.landing .nice-cards article { background:#12323a; border:1px solid #daba7626; border-radius:16px; padding:24px 20px; }
.landing .nice-cards article:first-child { background:linear-gradient(160deg,#2b4a33,#12323a 70%); border-color:#daba7680; }
.landing .nice-icon { display:inline-grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#234438; color:#e1be7e; margin-bottom:14px; }
.landing .nice-cards h3 { font-size:19px; color:#f1dfb6; margin:0 0 8px; }
.landing .nice-cards p { font-size:14px; line-height:1.65; color:#a8bfba; margin:0; }
.landing .nice-small { text-align:center; color:#a8bfba; font-size:13px; margin:22px 0 0; }

.landing .elf-section { background:radial-gradient(ellipse at 25% 50%, #1f4a35 0%, #0f3029 55%, #0b252c 100%); border-top:1px solid #daba7626; border-bottom:1px solid #daba7626; padding:80px 0; }
.landing .elf-inner { display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; align-items:center; }
.landing .elf-photos { position:relative; height:360px; }
.landing .elf-photo { position:absolute; border-radius:50%; object-fit:cover; object-position:50% 18%; border:5px solid #f8edcf; box-shadow:0 18px 40px #0008; background:#234438; }
.landing .elf-photo-girl { width:260px; height:260px; left:4%; top:10px; }
.landing .elf-photo-boy { width:190px; height:190px; right:4%; bottom:0; border-color:#2f6b45; }
.landing .elf-star { position:absolute; width:26px; height:26px; color:#daba76; }
.landing .elf-star-one { right:18%; top:20px; }
.landing .elf-star-two { left:2%; bottom:40px; width:18px; height:18px; }
.landing .elf-tag { position:absolute; left:22%; bottom:20px; background:#2f8a4f; color:#fff; font-weight:650; font-size:13px; padding:9px 16px; border-radius:999px; box-shadow:0 3px 0 #1e5c34; }
.landing .elf-copy h2 { font-size:43px; line-height:1.1; margin:14px 0 16px; }
.landing .elf-copy h2 em { color:#e1be7e; }
.landing .elf-copy > p { color:#a8bfba; font-size:16px; line-height:1.7; max-width:520px; }
.landing .elf-copy ul { list-style:none; padding:0; margin:22px 0 28px; display:grid; gap:12px; }
.landing .elf-copy li { display:flex; gap:12px; align-items:flex-start; color:#f1dfb6; font-size:15px; line-height:1.55; }
.landing .elf-copy li svg { width:20px; height:20px; flex-shrink:0; margin-top:2px; color:#5fbf7d; }
.landing .button.elf-button { background:#2f8a4f; color:#fff; box-shadow:0 3px 0 #1e5c34; }
.landing .button.elf-button:hover { background:#287a45; }

@media (max-width:1150px) {
    .landing .nice-cards { grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:980px) {
    .landing .elf-inner { grid-template-columns:1fr; gap:30px; }
    .landing .elf-photos { height:300px; max-width:420px; width:100%; margin:0 auto; }
    .landing .elf-photo-girl { width:220px; height:220px; }
    .landing .elf-photo-boy { width:160px; height:160px; }
    .landing .elf-copy h2 { font-size:36px; }
}
@media (max-width:650px) {
    .landing .nice-section { padding-top:50px; padding-bottom:56px; }
    .landing .nice-cards { grid-template-columns:1fr; }
    .landing .nice-quote { padding:14px 16px 14px 14px; gap:12px; }
    .landing .nice-quote img { width:50px; height:50px; }
    .landing .nice-quote p { font-size:14px; }
    .landing .elf-section { padding:56px 0; }
    .landing .elf-photos { height:250px; }
    .landing .elf-photo-girl { width:180px; height:180px; left:0; }
    .landing .elf-photo-boy { width:130px; height:130px; right:0; }
    .landing .elf-tag { left:12%; bottom:6px; }
    .landing .elf-copy h2 { font-size:30px; }
    .landing .elf-teaser { font-size:12px; }
}
.landing .nice-section .eyebrow > svg, .landing .elf-copy .eyebrow > svg { width:9px; height:9px; flex-shrink:0; color:#daba76; }
.landing .elf-copy .eyebrow { color:#daba76; font-size:9px; }

/* ---------- The Christmas settings cog (Views/Shared/_ChristmasCog.cshtml) ---------- */
.xcog { width:22px; height:22px; flex-shrink:0; color:#daba76; overflow:visible; }
.xcog-gear { transform-box:fill-box; transform-origin:center; transition:transform .6s cubic-bezier(.3,1.4,.5,1); }
a:hover > .xcog .xcog-gear, a:focus-visible > .xcog .xcog-gear { transform:rotate(60deg); }
@media (prefers-reduced-motion: reduce) { .xcog-gear { transition:none; } }

/* Header button: a frosted dark-green pill with a gold edge, matching the logo's gold. */
.site-header .parent-button { gap:9px; padding:7px 15px 7px 9px; border-radius:999px; border:1px solid #daba76a6; background:linear-gradient(180deg,#17423bd9,#0e2f31d9); color:#f8edcf; letter-spacing:.3px; box-shadow:inset 0 1px 0 #ffffff14, 0 4px 14px #0004; }
.site-header .parent-button:hover { background:linear-gradient(180deg,#1d5045e6,#123a3be6); border-color:#e8cd8f; color:#fff; }
.site-header .parent-button .xcog { width:26px; height:26px; }
@media (max-width:650px) { .site-header .parent-button { padding:5px 11px 5px 6px; } .site-header .parent-button .xcog { width:22px; height:22px; } }

.settings-title { display:flex; align-items:center; gap:10px; }
.settings-title .xcog { width:34px; height:34px; color:#b08a45; }

/* ---------- Section lines run edge to edge ----------
   The header, closing and footer sit inside the centred .shell, so their borders stopped short.
   A border-image "outset" draws the same line out to both screen edges; outset is paint only,
   so it never makes the page scroll sideways. */
.site-header { border-image:linear-gradient(#e6d8b826,#e6d8b826) 0 0 1 0 / 0 0 1px 0 / 0 100vw; }
.landing .closing, .site-footer { border-image:linear-gradient(#c5ac762c,#c5ac762c) 1 0 0 0 / 1px 0 0 0 / 0 100vw; }

/* ---- Elf site: the text wordmark (the site's name, from Site:Name) in place of a logo picture ---- */
.elf-wordmark {
  display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; line-height: 1;
  font-family: 'Berkshire Swash', Georgia, serif; font-size: clamp(24px, 3.2vw, 32px); color: #fff1cb;
  text-shadow: 0 0 18px rgba(243,213,143,.45), 0 2px 0 rgba(0,0,0,.25);
}
.elf-wordmark i { font-style: normal; font-size: .8em; display: inline-block; animation: elf-peek 3.6s ease-in-out infinite; }
@keyframes elf-peek { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg) translateY(-2px); } 86% { transform: rotate(10deg); } }
.site-footer .elf-wordmark { font-size: 24px; }
.menu-logo .elf-wordmark { font-size: 28px; }

/* ---- The Song Workshop (Jivo's song engine, built in) ---- */
.songs { display: grid; gap: 1.6rem; }
/* Grid children may shrink below their content (long lyrics, audio players), or a phone screen overflows. */
.songs > *, .songs-card > *, .songs-head > div { min-width: 0; }
.songs-head > div:first-child { flex: 1 1 18rem; }
.songs-allowance { min-width: 0; }
.songs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.songs-head h1 { margin: .2rem 0 .4rem; }
.songs-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9a7b2c; }
.songs-lead { margin: 0; max-width: 40rem; color: #5a5a46; }
.songs-allowance { display: grid; gap: 2px; padding: .7rem 1rem; border-radius: 14px; background: #fff4d6; border: 1px solid #e8c97a; font-size: .92rem; color: #4d4532; min-width: 12rem; }
.songs-allowance strong { font-size: 1.3rem; color: #9b2c34; margin-right: .2rem; }
.songs-allowance span { font-size: .8rem; color: #7a6f52; }
.songs-demo { margin: 0; padding: .45rem .8rem; border-radius: 10px; background: #eef3ea; color: #3c5a40; font-size: .85rem; display: inline-block; }

.songs-composer, .songs-card, .songs-library {
  background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.08); border-radius: 18px; padding: clamp(16px, 3vw, 26px);
}
.songs-who { border: 0; padding: 0; margin: 0 0 1rem; }
.songs-who legend, .songs-label { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; display: block; color: #3e392b; }
.songs-label small { font-weight: 400; color: #7a6f52; }
.songs-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.songs-chip {
  border: 1.5px solid #cab98e; background: #fffaf0; color: #3e392b; border-radius: 999px; padding: .5rem 1.1rem;
  font-weight: 600; min-height: 44px; cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.songs-chip:hover { border-color: #9b2c34; transform: translateY(-1px); }
.songs-chip.on { background: #9b2c34; border-color: #9b2c34; color: #fff; }
.songs-composer textarea, .songs-lyrics, .songs-title-input, .songs-revise input, .songs-options select {
  width: 100%; border: 1px solid #d8cba8; border-radius: 12px; background: #fffdf6; padding: .7rem .85rem; font: inherit; color: #2d3a31;
}
.songs-composer textarea:focus, .songs-lyrics:focus, .songs-title-input:focus, .songs-revise input:focus, .songs-options select:focus {
  outline: 2px solid #e1be7e; outline-offset: 1px; border-color: #c9a55e;
}
.songs-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.songs-options label span { display: block; font-size: .8rem; font-weight: 700; color: #6b6346; margin-bottom: .25rem; }
.songs-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.songs-hint { font-size: .85rem; color: #7a6f52; }
.songs-write { min-height: 48px; padding-inline: 1.4rem; border-radius: 999px; font-weight: 700; }
.songs-error { margin: .8rem 0 0; padding: .55rem .8rem; border-radius: 10px; background: #fde8e6; color: #8a2a24; font-size: .92rem; }

.songs-card-head { display: grid; gap: .5rem; margin-bottom: 1rem; }
.songs-status { justify-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; background: #eef3ea; color: #3c5a40; }
.songs-status.st-ready { background: #3c7a4f; color: #fff; }
.songs-status.st-queued, .songs-status.st-rendering { background: #fff4d6; color: #8a6a1c; }
.songs-status.st-failed, .songs-status.st-refused { background: #fde8e6; color: #8a2a24; }
.songs-title, .songs-title-input { font-family: 'Berkshire Swash', Georgia, serif; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; }
.songs-title-input { padding: .35rem .7rem; }
.songs-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.songs-meta span { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: #f3ead2; color: #5a5038; }
.songs-notice { padding: .6rem .85rem; border-radius: 12px; background: #fff4d6; border: 1px solid #e8c97a; color: #5a4a20; font-size: .92rem; }
.songs-lyrics { font-family: inherit; white-space: pre-wrap; line-height: 1.6; min-height: 12rem; }
pre.songs-lyrics { background: #fffaf0; margin: 0; }
.songs-player { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1rem; padding: .9rem; border-radius: 14px; background: #243b32; }
.songs-player audio { flex: 1 1 240px; min-width: 0; }
.songs-player .btn { background: #fff8ec; }
.songs-recording { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 14px; background: #fff4d6; color: #5a4a20; }
.songs-notes i { display: inline-block; font-style: normal; font-size: 1.3rem; color: #9b2c34; animation: songs-bob 1.2s ease-in-out infinite; }
.songs-notes i:nth-child(2) { animation-delay: .2s; } .songs-notes i:nth-child(3) { animation-delay: .4s; }
@keyframes songs-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.songs-chat { display: grid; gap: .5rem; margin: 1rem 0; }
.songs-msg { max-width: 85%; padding: .55rem .85rem; border-radius: 14px 14px 14px 4px; background: #eef3ea; color: #2d3a31; font-size: .92rem; }
.songs-msg.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: #f3ead2; }
.songs-revise { display: flex; gap: .5rem; }
.songs-revise input { flex: 1; min-height: 44px; }
.songs-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.songs-card-actions .btn-danger { min-height: 48px; border-radius: 999px; padding-inline: 1.4rem; font-weight: 700; }
.songs-delete { color: #8a2a24; }

.songs-library h2 { margin-top: 0; }
.songs-list { display: grid; gap: .6rem; }
.songs-empty { color: #7a6f52; margin: 0; }
.songs-item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem; border-radius: 14px; background: #fffaf0; border: 1px solid #eadfc2; }
.songs-item.on { border-color: #9b2c34; }
.songs-item-open { flex: 1 1 220px; display: flex; align-items: center; gap: .7rem; border: 0; background: none; text-align: left; padding: .2rem; min-height: 44px; cursor: pointer; color: inherit; }
.songs-item-open strong { display: block; }
.songs-item-open small { color: #7a6f52; }
.songs-item-icon { font-size: 1.4rem; }
.songs-item audio { flex: 1 1 220px; height: 36px; min-width: 0; max-width: 100%; }
.songs-item > * { min-width: 0; }
.songs-item-open strong, .songs-item-open small { overflow-wrap: anywhere; }

.songs-confirm { border: 0; border-radius: 20px; padding: 1.6rem; max-width: min(92vw, 30rem); background: #fff8ec; color: #243b32; box-shadow: 0 30px 80px #0007; }
.songs-confirm::backdrop { background: #021624b3; backdrop-filter: blur(4px); }
.songs-confirm h3 { font-family: 'Berkshire Swash', Georgia, serif; margin: .2rem 0 .5rem; }
.songs-fine { font-size: .85rem; color: #6b6346; }
.songs-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

.songs-burst { position: fixed; z-index: 1000; pointer-events: none; font-size: 22px; color: #e1be7e; animation: songs-burst 1.4s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes songs-burst { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: var(--dx) var(--dy); rotate: 30deg; } }

@media (max-width: 650px) {
  .songs-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .songs-actions { flex-direction: column-reverse; align-items: stretch; }
  .songs-write, .songs-card-actions .btn-danger { width: 100%; }
  .songs-revise { flex-direction: column; }
  .songs-msg { max-width: 100%; }
}

/* ---- Home page: the Song Workshop bonus (smaller than the main sections on purpose) ---- */
.landing .songs-promo {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 64px);
  padding-top: 64px; padding-bottom: 72px;
}
.songs-promo-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.songs-promo-disc {
  width: min(62vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle, #9b2c34 0 17%, #e1be7e 17.5% 19%, transparent 19.5%),
    repeating-radial-gradient(circle, #1a2a26 0 2px, #22352f 2px 4px);
  box-shadow: 0 0 0 6px #e1be7e33, 0 22px 50px #0007, 0 0 60px #e1be7e22;
  animation: songs-spin 9s linear infinite;
}
.songs-promo-disc i { font-style: normal; font-size: 30px; color: #fff3d6; }
@keyframes songs-spin { to { rotate: 360deg; } }
.songs-promo-note { position: absolute; font-size: 30px; color: #e1be7e; text-shadow: 0 0 14px #e1be7e88; animation: songs-float 4.5s ease-in-out infinite; }
.songs-promo-note.n1 { left: 12%; top: 10%; }
.songs-promo-note.n2 { right: 10%; top: 22%; animation-delay: -1.5s; font-size: 24px; }
.songs-promo-note.n3 { right: 20%; bottom: 6%; animation-delay: -3s; }
@keyframes songs-float { 0%, 100% { translate: 0 0; opacity: .6; } 50% { translate: 0 -14px; opacity: 1; } }
.songs-promo-copy h2 { margin: 14px 0 12px; }
.songs-promo-copy > p:not(.eyebrow) { color: #bdd0c3; font-size: 15px; line-height: 1.75; max-width: 34rem; }
.songs-promo-copy .eyebrow { color: #d4bd80; }
.songs-promo-copy .eyebrow svg { width: 9px; height: 9px; }
.songs-promo-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.songs-promo-ideas a {
  font-family: 'Caveat', cursive; font-size: 18px; color: #fff1cb; text-decoration: none;
  padding: 6px 14px; border-radius: 999px; border: 1px dashed #e1be7e66; background: #ffffff0a; transition: background .2s, border-color .2s;
}
.songs-promo-ideas a:hover { background: #e1be7e22; border-color: #e1be7e; }
@media (max-width: 760px) {
  .landing .songs-promo { grid-template-columns: 1fr; text-align: center; padding-top: 44px; padding-bottom: 48px; }
  .songs-promo-art { min-height: 200px; }
  .songs-promo-copy .eyebrow, .songs-promo-ideas { justify-content: center; }
  .songs-promo-copy > p:not(.eyebrow) { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .songs-promo-disc, .songs-promo-note { animation: none; } }

/* Membership: call time left */
.minutes-box { padding: .8rem 1rem; border-radius: 12px; background: #f3f8f1; border: 1px solid #cfe3c8; }
.minutes-box.is-low { background: #fff4ef; border-color: #f0c2b0; }

/* Call time left (calls and Settings pages) */
.minutes-strip { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: 14px; background: #f3f8f1; border: 1px solid #cfe3c8; }
.minutes-strip.is-low { background: #fff4ef; border-color: #f0c2b0; }
.minutes-strip-icon { font-size: 1.4rem; line-height: 1; }

/* ---- Public information pages (How it works, Pricing, Christmas songs) ---- */
.info-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.info-steps > li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.6rem; border-radius: 14px; background: #fffaf0b3; border: 1px solid #dccb9f; }
.info-steps > li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: #1f6b45; color: #fff8ec; font-weight: 700; font-size: .95rem; }
.info-steps h2, .info-steps h3 { font-size: 1.2rem; margin: .1rem 0 .35rem; }
.info-steps p { margin: 0; }
.price-card { max-width: 26rem; margin: 1.5rem 0 2rem; padding: 1.5rem; border-radius: 18px; background: #fffaf0; border: 1px solid #dccb9f; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.price-amount { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.2rem; color: #9b2c34; margin-bottom: .5rem; }
.price-card ul { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.price-table { max-width: 26rem; }
.info-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 .5rem; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.text-link { text-decoration: underline; text-underline-offset: 3px; color: inherit; font-weight: 600; }
