/* Phones: the scenes sit at their natural size inside the page, like Josh designed them (Nov 15: the 1.5x
   phone zoom made them bleed off the edges and look like a cropped picture; removed). */

/* Lab polish (Adam, Nov 14): the control bars get depth and a cleaner "lab instrument" finish, same colours as Josh's design. */
.fb-film-lab .film-tabs,.lab-navigation{background:linear-gradient(180deg,#fdfcfe 0%,#efebf3 100%)!important;box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(40,33,48,.07),0 12px 30px -14px rgba(40,33,48,.32),0 2px 6px rgba(40,33,48,.06)!important;padding:5px!important}
.fb-film-lab .film-tabs button,.lab-navigation a{transition:background .2s,color .2s,box-shadow .2s,transform .2s}
.fb-film-lab .film-tabs button:hover:not([aria-selected=true]),.lab-navigation a:hover:not([aria-current]){background:rgba(115,97,126,.09)}
.fb-film-lab .film-tabs button[aria-selected=true],.lab-navigation a[aria-current]{background:linear-gradient(180deg,#3d3248 0%,#211a29 100%)!important;color:#fff!important;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 18px -6px rgba(33,26,41,.6)!important}
.space-switch{width:max-content;max-width:100%;gap:2px!important;padding:4px;border-radius:999px;background:#f4f1f6;box-shadow:inset 0 0 0 1px rgba(40,33,48,.06)}
.space-switch a{padding:7px 18px!important;border-radius:999px;border-bottom:0!important;min-height:32px;transition:background .2s,box-shadow .2s,color .2s}
.space-switch a[aria-current]{background:#fff;color:#282130!important;font-weight:600;box-shadow:0 2px 10px rgba(40,33,48,.14),inset 0 0 0 1px rgba(40,33,48,.05)}
.fb-film-lab .view-presets{background:linear-gradient(180deg,#fdfcfe,#efebf3)!important;box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(40,33,48,.07),0 8px 22px -14px rgba(40,33,48,.3)!important}
.fb-film-lab .view-presets button[aria-pressed=true]{background:linear-gradient(180deg,#3d3248,#211a29)!important;color:#fff!important;box-shadow:0 6px 14px -6px rgba(33,26,41,.6)}
.frost-layouts button{background:#fff!important;box-shadow:0 1px 2px rgba(40,33,48,.05);transition:border-color .2s,box-shadow .2s,background .2s}
.frost-layouts button:hover:not([aria-pressed=true]){border-color:#b9a9c6!important;box-shadow:0 4px 12px -6px rgba(115,97,126,.45)}
.frost-layouts button[aria-pressed=true]{background:linear-gradient(180deg,#86739a,#665372)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 6px 14px -6px rgba(102,83,114,.7)}

.frost-studio-link{display:block;width:max-content;max-width:100%;margin:12px auto 4px;padding:10px 18px;border-radius:999px;background:linear-gradient(180deg,#3d3248,#211a29);color:#fff;font-size:12px;font-weight:600;text-decoration:none;box-shadow:0 8px 18px -8px rgba(33,26,41,.6)}

/* Readability (Adam, Nov 14): Josh's font and layout stay; small grey text is darker and slightly heavier. */
:root{--muted:#544c5c}
.fb-film-lab{--fb-muted:#544c5c}
.bird-modes button,.bird-actions #bird-holiday-toggle,.flight-invite,.bird-detail summary,.bird-footnote,.bird-status,.space-switch a,
.system-controls button,.system-controls button span,.prop-controls>span,.prop-controls button,#holiday-mode,.holiday-caption,
.stage-kicker,.stage-copy,.layer-inspector p,.layer-tabs button,.lab-foot,.demo-note,.demo-details,.demo-details summary,.story-topline,.reset-glass,
.fb-film-lab .image-label,.fb-film-lab .shade-heading,.fb-film-lab .shade-label button,.fb-film-lab .shade-stops button,.fb-film-lab .view-presets button,
.fb-film-lab .frost-note,.fb-film-lab .perspective-row button,.fb-film-lab .lighting-state,.fb-film-lab #lighting-state,.fb-film-lab .light-labels span{color:#4a4252!important;font-weight:500}
.bird-modes button[aria-pressed=true],.system-controls button[aria-pressed=true],.layer-tabs button[aria-pressed=true],.space-switch a[aria-current]{color:#211a29!important;font-weight:600}
.bird-modes button,.bird-detail summary,.flight-invite,.bird-status{font-size:13px!important}
.bird-footnote,.demo-note,.demo-details,.lab-foot,.fb-film-lab .frost-note{font-size:11.5px!important;line-height:1.55!important}
.system-controls button span,.prop-controls>span,.holiday-caption,.stage-kicker{font-size:11px!important}
.fb-film-lab .image-label,.fb-film-lab .shade-stops button,.fb-film-lab .shade-label button{font-size:12px!important}

/* Home for Christmas (Josh's campaign, Adam Nov 14): warmer, glowing bulbs that softly twinkle. */
.christmas-bulb,.festive-bulb{transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 2px #fff3d6) drop-shadow(0 0 7px rgba(255,196,120,.75))!important;animation:fbTwinkle 2.8s ease-in-out infinite}
.christmas-bulb:nth-of-type(3n),.festive-bulb:nth-of-type(3n){animation-delay:-.9s;animation-duration:3.4s}
.christmas-bulb:nth-of-type(3n+1),.festive-bulb:nth-of-type(3n+1){animation-delay:-1.7s;animation-duration:2.4s}
@keyframes fbTwinkle{0%,100%{opacity:1}50%{opacity:.5}}
.snow-speck{opacity:.85!important;filter:drop-shadow(0 0 2px rgba(255,255,255,.9))}
@media (prefers-reduced-motion:reduce){.christmas-bulb,.festive-bulb{animation:none}}

/* Ordinary glass really shatters (Adam, Nov 14): big pieces tumble out of the frame. Pointer instead of crosshair. */
.shatter-shard{fill:#dfe7e9;fill-opacity:.7;stroke:#fff;stroke-width:1.2;transform-box:fill-box;transform-origin:center;animation:fbShatter 1.1s cubic-bezier(.45,0,.9,.6) forwards}
@keyframes fbShatter{0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}
.glass-target,.glass-target[aria-pressed=true]{cursor:pointer!important}
@media (prefers-reduced-motion:reduce){.shatter-shard{animation:none;display:none}}
.glass-remnant{fill:#e4ecee;fill-opacity:.6;stroke:#fff;stroke-width:1.4;stroke-linejoin:round}
