/* Gelli Belle Dreamland · Bedtime Routine 21 — smoothly integrated with night sky */
#bedtime-rituals.gb21-enhanced{display:block;min-height:auto;position:relative;background:transparent!important;padding-top:110px;padding-bottom:120px}
#bedtime-rituals.gb21-enhanced>.ritual-copy{max-width:900px;margin:0 auto 34px;text-align:center}
#bedtime-rituals.gb21-enhanced .ritual-copy>.section-description{max-width:680px;margin-inline:auto}
#bedtime-rituals.gb21-enhanced .ritual-steps{margin:28px auto 0;max-width:770px;justify-content:center;text-align:center}
#bedtime-rituals.gb21-enhanced>.ritual-builder{display:none!important}
#gb21-routine{max-width:1100px;margin:0 auto;border:1px solid #ffffff29;border-radius:32px;padding:clamp(22px,4vw,44px);background:linear-gradient(133deg,#1f3055ca,#29254cba 62%,#161d3acc);backdrop-filter:blur(18px);box-shadow:0 24px 90px #0004;color:#f6efff;position:relative;z-index:2}
#gb21-routine *{box-sizing:border-box}
#gb21-routine button,#gb21-nightlight button,#gb21-return{cursor:pointer;touch-action:manipulation;font-family:inherit}
#gb21-routine button:focus-visible,#gb21-nightlight button:focus-visible{outline:2px solid #d0eaff;outline-offset:3px}
#gb21-routine .gb21-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:27px}
#gb21-routine .gb21-head h3{font:500 clamp(31px,4vw,48px)/1.14 'Fraunces',Georgia,serif;margin:4px 0 8px}
#gb21-routine .gb21-head p{font-size:13px;line-height:1.6;max-width:530px;color:#d9d9ed}
#gb21-routine .gb21-eyebrow{font-size:11px;color:#e7d3ff;letter-spacing:.18em;text-transform:uppercase;font-weight:700}
#gb21-routine .gb21-choices{display:flex;gap:8px;flex-wrap:wrap}
#gb21-routine .gb21-choices button,#gb21-routine .gb21-tab,#gb21-routine .gb21-saved-row button{border:1px solid #ffffff3c;color:#f8f3ff;border-radius:14px;background:#ffffff0c;padding:12px 16px;font-size:13px;min-height:44px}
#gb21-routine button[aria-pressed="true"]{background:#dee6ff!important;color:#1e2447!important;border-color:#dee6ff!important}
#gb21-routine .gb21-tabs{display:flex;gap:8px;align-items:center;padding:5px;background:#ffffff10;border:1px solid #ffffff16;border-radius:18px;max-width:max-content}
#gb21-routine .gb21-tab{border:none;border-radius:13px;padding:13px 17px;font-weight:700}
#gb21-routine .gb21-block{padding:23px 0;border-top:1px solid #ffffff1f}
#gb21-routine .gb21-block h4{font:500 22px/1.2 'Fraunces',Georgia,serif;margin:0 0 15px}
#gb21-routine .gb21-grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
#gb21-routine .gb21-worlds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#gb21-routine .gb21-worlds button{border:1px solid #ffffff27;background:#ffffff0c;color:#fff;border-radius:17px;overflow:hidden;padding:0 0 14px;text-align:center;min-width:0}
#gb21-routine .gb21-worlds img{width:100%;height:100px;object-fit:cover;display:block;margin-bottom:11px;opacity:.9}
#gb21-routine .gb21-worlds span{display:block;font-size:12px;font-weight:700;line-height:1.35;padding:0 5px}
#gb21-routine .gb21-worlds small{display:block;color:#d2d1e4;font-size:10px;margin:3px 3px 0}
#gb21-routine .gb21-worlds button[aria-pressed="true"] small{color:#44516f}
#gb21-routine .gb21-phase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
#gb21-routine .gb21-phase{border:1px solid #ffffff2b;border-radius:16px;background:#ffffff09;padding:18px 14px;text-align:center;display:grid;gap:9px;justify-items:center}
#gb21-routine .gb21-phase b{font-size:13px}
#gb21-routine .gb21-phase small{font-size:11px;color:#d5cee7}
#gb21-routine .gb21-phase svg{color:#d2eaff}
#gb21-routine .gb21-advanced[hidden]{display:none!important}
#gb21-routine .gb21-range-row{display:grid;grid-template-columns:130px 1fr 62px;gap:15px;align-items:center;margin:12px 0}
#gb21-routine .gb21-range-row label{font-size:13px}
#gb21-routine input[type=range]{width:100%;accent-color:#cedfff}
#gb21-routine .gb21-range-row output{font-size:12px;color:#e4e8ff;text-align:right}
#gb21-routine .gb21-select,#gb21-routine .gb21-name{width:100%;background:#152039;border:1px solid #ffffff43;border-radius:12px;color:#fff;font:inherit;font-size:13px;padding:12px;min-height:44px}
#gb21-routine .gb21-ending{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#gb21-routine .gb21-ending button{text-align:left;display:grid;align-content:start;gap:6px;min-height:96px;border-radius:14px;border:1px solid #ffffff36;color:#fff;background:#ffffff0c;padding:15px}
#gb21-routine .gb21-ending button[aria-pressed=true] small{color:#425271}
#gb21-routine .gb21-ending b{font-size:12px}
#gb21-routine .gb21-ending small{font-size:11px;line-height:1.35;color:#cbd0e7}
#gb21-routine .gb21-dim{font-size:12px;color:#cdd3e8;line-height:1.5}
#gb21-routine .gb21-footer{display:grid;grid-template-columns:1fr auto;gap:17px;align-items:end;border-top:1px solid #ffffff25;padding-top:25px}
#gb21-routine .gb21-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
#gb21-routine .gb21-actions button{background:#ffffff18;color:#fff;border:1px solid #ffffff3c;border-radius:999px;padding:15px 20px;min-height:48px;font-weight:700}
#gb21-routine #gb21-start{background:linear-gradient(115deg,#e9defb,#cbdff9);color:#202746;border:none}
#gb21-routine #gb21-feedback{min-height:16px;margin-top:14px;font-size:12px;color:#d9e5ff}
#gb21-routine .gb21-saved-row{display:flex;align-items:center;gap:10px;justify-content:space-between;border-top:1px solid #ffffff20;padding:10px 0}
#gb21-routine .gb21-saved-row span{flex:1;display:grid;gap:3px}
#gb21-routine .gb21-saved-row strong{font-size:13px}
#gb21-routine .gb21-saved-row small{font-size:11px;color:#cdd3e8}
#gb21-routine .gb21-saved-row button{padding:8px 14px;min-height:36px}
#gb21-routine .gb21-delete{opacity:.75}
/* Full-screen nightlight is a separate overlay so the main page stays intact. */
#gb21-nightlight[hidden],#gb21-return[hidden]{display:none!important}
#gb21-nightlight{position:fixed;inset:0;z-index:99999;overflow:hidden;background:#050d22;color:white;display:flex;align-items:center;justify-content:center;isolation:isolate}
#gb21-nightlight .gb21-video{position:absolute;inset:0;overflow:hidden;z-index:-3}
#gb21-nightlight video{width:100%;height:100%;object-fit:cover;filter:saturate(.85) brightness(.76)}
#gb21-nightlight .gb21-dimmer{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#0b153750 0%,#0a163a15 35%,#080e2bc9 100%);pointer-events:none}
#gb21-nightlight .gb21-sleep-shade{position:absolute;inset:0;z-index:-1;background:#07132b;opacity:var(--gb21-dim,.2);transition:opacity 10s linear;pointer-events:none}
#gb21-nightlight .gb21-night-inner{width:min(700px,calc(100% - 36px));margin:auto 0 35px;padding:25px 28px;border:1px solid #ffffff23;background:#121d37a6;backdrop-filter:blur(16px);border-radius:25px;box-shadow:0 15px 70px #0004;display:grid;gap:14px}
#gb21-nightlight .gb21-night-top{display:flex;justify-content:space-between;align-items:center;gap:15px}
#gb21-nightlight .gb21-night-top span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#d6e6ff}
#gb21-nightlight .gb21-night-top button,#gb21-nightlight .gb21-night-controls button{background:#ffffff15;color:white;border:1px solid #ffffff3b;border-radius:999px;padding:10px 16px;min-height:44px;font-size:12px}
#gb21-nightlight .gb21-night-title{font:500 clamp(27px,4vw,40px)/1.15 'Fraunces',Georgia,serif}
#gb21-nightlight .gb21-night-title small{font:400 12px/1.5 'DM Sans',sans-serif;color:#cad8f5;display:block;margin-top:5px}
#gb21-nightlight .gb21-night-progress{width:100%;height:5px;background:#ffffff24;border-radius:999px;overflow:hidden}
#gb21-nightlight .gb21-night-progress i{height:100%;width:0;display:block;border-radius:999px;background:#dfeaff;transition:width .4s linear}
#gb21-nightlight .gb21-live-stages{display:flex;flex-wrap:wrap;gap:7px}
#gb21-nightlight [data-live-stage]{padding:6px 10px;border-radius:999px;border:1px solid #ffffff24;color:#bdcbe4;font-size:10px}
#gb21-nightlight [data-live-stage].is-active{color:#fff;background:#ffffff2c;border-color:#ffffff5a}
#gb21-nightlight .gb21-night-controls{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}
#gb21-nightlight .gb21-night-controls button:first-child{background:#dfeaff;color:#17213d;font-weight:700}
#gb21-nightlight .gb21-night-status{color:#d7e3fa;font-size:12px;min-height:20px}
#gb21-return{position:fixed;bottom:21px;left:21px;z-index:9999;min-height:48px;background:#dfeaff;color:#16213b;border:1px solid #fff;border-radius:999px;padding:12px 19px;box-shadow:0 12px 33px #0007;font-weight:700}
body.gb21-night-open{overflow:hidden}
@media(max-width:750px){#gb21-routine .gb21-grid2{grid-template-columns:1fr}#gb21-routine .gb21-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}#gb21-routine .gb21-worlds img{height:100px}#gb21-routine .gb21-ending{grid-template-columns:1fr}#gb21-routine .gb21-ending button{min-height:67px}#gb21-routine .gb21-footer{grid-template-columns:1fr}#gb21-routine .gb21-actions{justify-content:stretch}#gb21-routine .gb21-actions button{flex:1}#gb21-routine .gb21-tabs{width:100%;max-width:none}#gb21-routine .gb21-tab{flex:1}#bedtime-rituals.gb21-enhanced{padding-inline:18px}#gb21-nightlight .gb21-night-inner{margin-bottom:15px}}
@media(max-width:420px){#gb21-routine{padding:20px 16px;border-radius:23px}#gb21-routine .gb21-choices button{padding:10px 12px;font-size:12px}#gb21-routine .gb21-phase{padding:13px 7px}#gb21-routine .gb21-phase b{font-size:11px}#gb21-routine .gb21-range-row{grid-template-columns:1fr 1fr}#gb21-routine .gb21-range-row input{grid-column:1/-1;grid-row:2}#gb21-routine .gb21-range-row output{text-align:right}}
@media(prefers-reduced-motion:reduce){#gb21-nightlight .gb21-sleep-shade,#gb21-nightlight .gb21-night-progress i{transition:none}#gb21-nightlight video{display:none}}

/* GB-BEDTIME-NIGHTLIGHT-21B — fullscreen nightlight is unobstructed until tapped / swiped / scrolled. */
#gb21-nightlight .gb21-night-inner{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s ease,visibility 0s linear .55s;
}
#gb21-nightlight.gb21-controls-visible .gb21-night-inner{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition:opacity .35s ease,transform .35s ease,visibility 0s;
}
@media(prefers-reduced-motion:reduce){
  #gb21-nightlight .gb21-night-inner,
  #gb21-nightlight.gb21-controls-visible .gb21-night-inner{transition:none;transform:none;}
}
