/* A document backing layer plus a viewport scene: no empty lower canvas on long pages. */
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) {
  position: relative;
  min-height: 100vh;
  --fcc-scene-atmosphere: radial-gradient(ellipse at 8% 8%,rgba(164,117,173,.55),transparent 50%),radial-gradient(ellipse at 95% 95%,rgba(83,158,169,.5),transparent 55%),linear-gradient(145deg,#3b2b44,#171d2b 60%,#253d46);
}
body.fcc-liquid-glass.logged-in.kid-session-active {
  --fcc-scene-atmosphere: radial-gradient(ellipse at 5% 0,rgba(153,113,212,.65),transparent 50%),radial-gradient(ellipse at 100% 90%,rgba(61,149,171,.55),transparent 55%),linear-gradient(145deg,#392856,#1d2337);
}
#fccGlassBackdrop { display: none; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen)::before {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: -3;
  background: var(--fcc-scene-atmosphere);
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #fccGlassBackdrop {
  display: block;
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -2;
  pointer-events: none;
  background: var(--fcc-scene-atmosphere);
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen)[data-fcc-background]:not([data-fcc-background="crystal"]) #fccGlassBackdrop,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen)[data-fcc-background]:not([data-fcc-background="crystal"])::before {
  background-image: linear-gradient(rgba(12,15,29,.38),rgba(12,15,29,.42)),var(--fcc-scene-image),var(--fcc-scene-atmosphere);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen)[data-fcc-background]:not([data-fcc-background="crystal"])::after { background: none; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #mainNav #fccBackgroundsButton {
  display: block;
  flex-shrink: 0;
  width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #faf6ff;
  font: inherit;
  cursor: pointer;
}
#fccBackgroundDialog {
  width: min(760px,calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 36px);
  box-sizing: border-box;
  margin: auto;
  padding: clamp(18px,3vw,28px);
  border: 1px solid rgba(240,230,255,.5);
  border-radius: 26px;
  color: #faf6ff;
  background: linear-gradient(130deg,rgba(57,46,74,.45),rgba(30,38,52,.4));
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5),0 25px 80px rgba(0,0,0,.5);
  overflow-y: auto;
}
#fccBackgroundDialog::backdrop { background: rgba(6,8,18,.2); }
#fccBackgroundDialog .fcc-background-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
#fccBackgroundDialog h2 { margin: 0 0 7px; color: #fff; font-size: clamp(22px,3vw,28px); }
#fccBackgroundDialog p { color: #e0d8eb; line-height: 1.5; }
#fccBackgroundDialog [data-close] { flex: 0 0 44px; width: 44px; min-height: 44px; border: 1px solid #ffffff50; border-radius: 50%; background: #ffffff12; color: #fff; cursor: pointer; }
#fccBackgroundDialog .fcc-background-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 14px 0 22px; }
#fccBackgroundDialog [data-preset] { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; padding: 8px 8px 12px; text-align: left; border: 1px solid #ffffff35; border-radius: 17px; background: #ffffff0b; color: #fff; cursor: pointer; font: inherit; }
#fccBackgroundDialog [data-preset] > span:last-child { color: #e0d8eb; font-size: 12px; }
#fccBackgroundDialog [data-preset][aria-pressed="true"] { border: 2px solid #e6cbff; padding: 7px 7px 11px; background: #e0b9ff20; }
.fcc-background-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 11px; background: linear-gradient(130deg,#9b729f,#30394c,#438c95); background-size: cover; background-position: center; }
#fccBackgroundDialog .fcc-background-birthday { display: flex; gap: 10px; align-items: center; min-height: 44px; color: #fff; }
#fccBackgroundDialog input[type="checkbox"] { width: 20px; height: 20px; accent-color: #b98cdd; flex: 0 0 20px; }
#fccBackgroundDialog .fcc-background-help { font-size: 12px; margin: 8px 0; }
#fccBackgroundMenuScene { display: block; color: #ded6e9; margin-top: 3px; font-size: 12px; }
#fccBackgroundDialog .fcc-background-done { display: block; width: 100%; min-height: 44px; margin-top: 16px; padding: 12px; border: 1px solid #dfc9ff; border-radius: 14px; background: rgba(180,129,234,.28); color: white; cursor: pointer; font: inherit; font-weight: 700; }
#fccBackgroundDialog [data-preset][aria-pressed="true"] strong::after { content: ' ✓'; color: #d8ffc7; }
.fcc-glass-appearance-card { display: none; }
body.fcc-liquid-glass .fcc-glass-appearance-card { display: block; }
body.fcc-liquid-glass .fcc-classic-appearance { display: none !important; }
@media (prefers-reduced-transparency: reduce) { #fccBackgroundDialog { background: #282c40; } }
#fccBackgroundDialog button:focus-visible,#fccBackgroundDialog input:focus-visible { outline: 3px solid #e6cbff; outline-offset: 3px; }
@media (max-width: 600px) { #fccBackgroundDialog .fcc-background-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media print { #fccGlassBackdrop,#fccBackgroundDialog { display: none !important; } }
