/* The design refresh (Nick, 2026-10-24, from his two concept images): a fuller, warmer Rooms and brainrot page.
   EVERY rule here hangs off body.fab-new-look, which only a profile with players.new_look gets (the Owner's Account
   menu switch), so with the switch off the app is exactly what it was. Taking it out = this file, the markup behind
   `new_look?`, the atmosphere partial and controller, and the column. */

/* ---- The backdrop (story 3338): one layout for the default and every room decoration ---- */
/* The page's own background would paint over a z-index -1 layer (block backgrounds come after negative layers); <html>
   keeps the colour, so the body can be clear. A decoration's old full-screen picture and veil step aside for the layer. */
body.fab-new-look, body.fab-new-look[class*="fab-room-scene--"] { background: transparent; }
body.fab-new-look[class*="fab-room-scene--"]::before, body.fab-new-look[class*="fab-room-scene--"]::after { display: none; }
.fab-new-look .fab-atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fab-atmos > * { position: absolute; }
.fab-atmos__base { inset: 0; background: var(--look-base); }
/* Soft pools of colour instead of shafts of light (story 3497, Nick 2026-11-25, from his gradient references): the
   look's glow over the top and in a top corner, its pool colour in the other corners, all wide and blurred into the
   base. Static. */
.fab-atmos__pools { inset: 0; opacity: var(--look-pool-opacity, 1);
  background:
    radial-gradient(75% 45% at 16% 6%, rgba(var(--look-glow), .42), transparent 70%),
    radial-gradient(60% 38% at 92% 18%, rgba(var(--look-pool), .2), transparent 70%),
    radial-gradient(70% 34% at 50% 28%, rgba(var(--look-glow), .22), transparent 72%),
    radial-gradient(60% 40% at 6% 70%, rgba(var(--look-orb-b), .12), transparent 70%),
    radial-gradient(80% 48% at 84% 92%, rgba(var(--look-pool), .24), transparent 70%); }
/* Glowing orbs: blurry dots of light, the bokeh of the reference. Static. */
.fab-atmos__orbs { inset: 0; }
.fab-atmos__orbs i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; translate: -50% -50%;
  background: radial-gradient(circle, rgba(var(--c), .55), rgba(var(--c), .18) 45%, transparent 70%); }
.fab-atmos__orbs i:nth-child(1) { --x: 8%; --y: 18%; --s: 9rem; --c: var(--look-orb-a); }
.fab-atmos__orbs i:nth-child(2) { --x: 94%; --y: 30%; --s: 7rem; --c: var(--look-orb-b); }
.fab-atmos__orbs i:nth-child(3) { --x: 86%; --y: 74%; --s: 10rem; --c: var(--look-orb-a); }
.fab-atmos__orbs i:nth-child(4) { --x: 12%; --y: 62%; --s: 6rem; --c: var(--look-orb-b); }
.fab-atmos__orbs i:nth-child(5) { --x: 50%; --y: 96%; --s: 14rem; --c: var(--look-orb-a); }
.fab-atmos__floor { left: 0; right: 0; bottom: 0; height: 40%; background: var(--look-floor, none); }
.fab-atmos__edge { top: 0; bottom: 0; width: min(42vw, 260px); background: var(--look-edge, none) left center / cover no-repeat; opacity: var(--look-edge-opacity, .8); }
.fab-atmos__edge--left { left: 0; }
.fab-atmos__edge--right { right: 0; transform: scaleX(-1); }
@media (min-width: 992px) { .fab-atmos__edge { width: 300px; } }
/* Fireflies (stars, embers, bubbles: whatever the look says) keep to the band between the bars, where the glass bars
   never have to re-blur for them. */
.fab-atmos__flies { inset: 0; }
.fab-atmos__flies i { position: absolute; left: var(--x); top: var(--y); width: var(--fly-size, 5px); height: var(--fly-size, 5px); border-radius: var(--fly-radius, 50%);
  background: var(--look-fly); box-shadow: 0 0 8px 2px rgba(var(--look-fly-glow), .7), 0 0 18px 4px rgba(var(--look-fly-glow), .25);
  opacity: 0; animation: fab-firefly var(--t) steps(18) var(--d) infinite; }
.fab-atmos__flies i:nth-child(1) { --x: 6%; --y: 24%; --t: 6s; --d: 0s; }
.fab-atmos__flies i:nth-child(2) { --x: 91%; --y: 33%; --t: 7.5s; --d: 1.2s; }
.fab-atmos__flies i:nth-child(3) { --x: 14%; --y: 57%; --t: 8s; --d: 2.6s; }
.fab-atmos__flies i:nth-child(4) { --x: 84%; --y: 62%; --t: 6.5s; --d: .6s; }
.fab-atmos__flies i:nth-child(5) { --x: 4%; --y: 43%; --t: 9s; --d: 3.4s; }
.fab-atmos__flies i:nth-child(6) { --x: 95%; --y: 49%; --t: 7s; --d: 4.1s; }
.fab-atmos__flies i:nth-child(7) { --x: 22%; --y: 73%; --t: 8.5s; --d: 1.8s; }
.fab-atmos__flies i:nth-child(8) { --x: 70%; --y: 18%; --t: 7.2s; --d: 2.2s; }
.fab-atmos__flies i:nth-child(9) { --x: 40%; --y: 80%; --t: 9.4s; --d: 5s; }
@keyframes fab-firefly { 0%, 100% { opacity: 0; } 35% { opacity: .95; } 55% { opacity: .5; } 70% { opacity: .9; } }
.fab-atmos.is-still .fab-atmos__flies i { animation: none; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .fab-atmos__flies i { animation: none; opacity: .55; } }

/* The looks. Each sets variables only; the swatches in the Shop and the Decorate drawer read the same ones. */
.fab-look--default {
  --look-base: linear-gradient(165deg, #1a0a52 0%, #2a0f6e 38%, #160a46 70%, #0d0630 100%);
  --look-glow: 155, 61, 255; --look-pool: 255, 63, 191;
  --look-orb-a: 155, 61, 255; --look-orb-b: 47, 140, 255;
  --look-fly: #FFE7A0; --look-fly-glow: 255, 201, 60; }
[data-bs-theme=light] .fab-look--default {
  --look-base: linear-gradient(165deg, #F6F0FF 0%, #EADCFF 45%, #F3EAFF 100%);
  --look-glow: 177, 92, 255; --look-pool: 255, 90, 200; --look-pool-opacity: .7;
  --look-fly: #FFB300; --look-fly-glow: 255, 179, 0; }
.fab-look--jungle {
  --look-base: linear-gradient(170deg, #0f3a34 0%, #12304a 45%, #150c3e 100%);
  --look-glow: 60, 200, 140; --look-pool: 90, 230, 200;
  --look-orb-a: 60, 200, 140; --look-orb-b: 155, 61, 255;
  --look-edge: url("/assets/refresh/edge-jungle-7e3f9991.svg"); --look-edge-opacity: .85;
  --look-fly: #E8FF8A; --look-fly-glow: 214, 255, 90; }
.fab-look--meadow {
  --look-base: linear-gradient(180deg, #3d6fc0 0%, #5f97d6 30%, #4f8f5a 62%, #24552f 100%);
  --look-glow: 255, 240, 170; --look-pool: 255, 220, 120;
  --look-orb-a: 255, 240, 170; --look-orb-b: 140, 230, 120;
  --look-edge: url("/assets/refresh/edge-meadow-17c5bbf2.svg"); --look-edge-opacity: .95;
  --look-fly: #FFFBE0; --look-fly-glow: 255, 245, 170; }
.fab-look--night {
  --look-base: radial-gradient(circle at 80% 12%, #fff6cf 0 2.4rem, rgba(255, 246, 207, .25) 2.6rem 3.6rem, transparent 4.2rem),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, .9) 0 1.3px, transparent 2px) 0 0 / 90px 90px,
    radial-gradient(circle at 68% 12%, rgba(255, 255, 255, .7) 0 1.6px, transparent 2.3px) 0 0 / 150px 150px,
    radial-gradient(circle at 44% 64%, rgba(255, 255, 255, .55) 0 1px, transparent 1.8px) 0 0 / 70px 70px,
    linear-gradient(180deg, #070b26 0%, #141a4a 55%, #35236e 100%);
  --look-glow: 120, 140, 255; --look-pool: 140, 120, 255; --look-pool-opacity: .5;
  --look-orb-a: 90, 110, 255; --look-orb-b: 180, 120, 255;
  --look-edge: url("/assets/refresh/edge-night-30b99120.svg"); --look-edge-opacity: 1;
  --look-fly: #FFFFFF; --look-fly-glow: 200, 210, 255; --fly-size: 3px; }
.fab-look--beach {
  --look-base: linear-gradient(180deg, #1c6aa6 0%, #2ea6c8 42%, #3fc0c8 58%, #d9b77a 80%, #c79a5a 100%);
  --look-glow: 255, 230, 140; --look-pool: 140, 240, 255;
  --look-orb-a: 140, 240, 255; --look-orb-b: 255, 230, 140;
  --look-floor: repeating-radial-gradient(ellipse 140% 30% at 50% 0%, transparent 0 18px, rgba(255, 255, 255, .22) 18px 21px, transparent 21px 40px);
  --look-edge: url("/assets/refresh/edge-beach-c3e8c433.svg"); --look-edge-opacity: .95;
  --look-fly: rgba(255, 255, 255, .4); --look-fly-glow: 200, 250, 255; --fly-size: 9px; }
.fab-look--candy {
  --look-base: linear-gradient(165deg, #e0559e 0%, #b04fd0 50%, #6f45d6 100%);
  --look-glow: 255, 200, 230; --look-pool: 255, 210, 120;
  --look-orb-a: 255, 150, 210; --look-orb-b: 130, 230, 255;
  --look-edge: url("/assets/refresh/edge-candy-46fec319.svg"); --look-edge-opacity: 1;
  --look-fly: #FFF3A0; --look-fly-glow: 255, 255, 255; --fly-size: 6px; --fly-radius: 2px; }
.fab-look--arcade {
  --look-base: radial-gradient(circle at 50% 58%, #ffc08a 0 3rem, #ff5ca8 6rem, rgba(169, 59, 214, .6) 8.5rem, transparent 9rem), linear-gradient(180deg, #1d0e4a 0%, #37196a 45%, #52206a 60%, #150c2b 100%);
  --look-glow: 255, 92, 214; --look-pool: 47, 230, 255;
  --look-orb-a: 255, 92, 214; --look-orb-b: 47, 230, 255;
  --look-floor: linear-gradient(180deg, rgba(255, 92, 214, .7) 0 2px, transparent 2px), repeating-conic-gradient(from 180deg at 50% 0%, rgba(255, 92, 214, .5) 0deg .4deg, transparent .4deg 6deg), linear-gradient(180deg, #2a1147, #150c2b);
  --look-edge: url("/assets/refresh/edge-arcade-c65d8732.svg"); --look-edge-opacity: .9;
  --look-fly: #2FE6FF; --look-fly-glow: 47, 230, 255; --fly-size: 4px; --fly-radius: 0; }
.fab-look--lava {
  --look-base: linear-gradient(180deg, #1b0807 0%, #2b120c 50%, #6a1f0c 100%);
  --look-glow: 255, 110, 40; --look-pool: 255, 80, 30; --look-pool-opacity: .6;
  --look-orb-a: 255, 110, 40; --look-orb-b: 255, 60, 30;
  --look-floor: radial-gradient(60% 70% at 30% 110%, rgba(255, 168, 61, .55), transparent 70%), radial-gradient(50% 60% at 78% 115%, rgba(255, 96, 30, .5), transparent 70%);
  --look-edge: url("/assets/refresh/edge-lava-a3a354b3.svg"); --look-edge-opacity: 1;
  --look-fly: #FFB060; --look-fly-glow: 255, 120, 40; --fly-size: 4px; }

/* The swatches show the new look's picture: the base with its edge art at the left. */
.fab-new-look .fab-decor__swatch[class*="fab-look--"] { background: var(--look-edge, none) left 30% / auto 150% no-repeat, var(--look-floor, none) center bottom / 100% 45% no-repeat, var(--look-base); }

/* ---- The stage: scene and a glass card side by side on phones too, the brainrot on a podium ---- */
@media (max-width: 767.98px) {
  .fab-new-look .fab-stage { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: .5rem; align-items: center; }
  .fab-new-look .fab-stage__scene { aspect-ratio: 3 / 4; }
  .fab-new-look .fab-stage__poster { padding: 1rem; }
  /* The floor is drawn for a full-width scene; at half the width it shrinks around the pad's own point. */
  .fab-new-look .fab-stage__floor { scale: .6; }
  .fab-new-look .fab-stage__arrow { width: 2.25rem; height: 2.25rem; font-size: 1rem; top: 46%; }
  .fab-new-look .fab-stage__arrow--prev { left: -.25rem; }
  .fab-new-look .fab-stage__arrow--next { right: -.25rem; }
}
/* The podium moved to theme.css (story 3443) so the site's brainrot pages stand on it too. */

/* The card beside it: tier first, then the name, labelled needs and the way in, on tinted glass (no backdrop blur:
   the GPU diet keeps blur off anything next to the WebGL canvas). */
.fab-new-look .fab-stage__details { display: flex; flex-direction: column; text-align: left; padding: .9rem; border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(var(--stage-rgb), .2), rgba(var(--bs-body-bg-rgb), .6) 55%);
  border: 1px solid rgba(var(--stage-rgb), .4); box-shadow: 0 12px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .1); }
.fab-new-look .fab-stage__details > [data-rooms-stage-target="badge"] { order: -1; margin: 0 0 .35rem !important; }
.fab-new-look .fab-stage__name { font-size: 1.15rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fab-new-look .fab-stage__species { font-size: .75rem; margin-bottom: .5rem; }
.fab-new-look .fab-stage__bars { gap: .35rem !important; margin-bottom: .75rem !important; }
.fab-new-look .fab-stage__bars .need-bar__label { display: flex; gap: .3rem; align-items: center; font-size: .75rem; font-weight: 700; margin-bottom: .1rem; }
.fab-new-look .fab-stage__details .btn { width: 100%; white-space: nowrap; font-size: .8rem; }
@media (min-width: 768px) {
  .fab-new-look .fab-stage__details { padding: 1.25rem; }
  .fab-new-look .fab-stage__name { font-size: 1.5rem; }
  .fab-new-look .fab-stage__bars .need-bar__label { font-size: .85rem; }
  .fab-new-look .fab-stage__details .btn { font-size: .9rem; }
}

/* ---- The parade: a banner card instead of a line ---- */
.fab-new-look .fab-parade-link { gap: .8rem; padding: .7rem .8rem; border-radius: 1.25rem;
  background: linear-gradient(100deg, rgba(224, 40, 60, .38), rgba(155, 61, 255, .26) 60%, rgba(255, 201, 60, .14));
  border: 1px solid rgba(255, 201, 60, .35); box-shadow: 0 10px 26px rgba(224, 40, 60, .18), inset 0 1px 0 rgba(255, 255, 255, .12); }
.fab-new-look .fab-parade-link.is-open { background: linear-gradient(100deg, rgba(224, 40, 60, .42), rgba(155, 61, 255, .3)) padding-box,
  linear-gradient(var(--bs-body-bg), var(--bs-body-bg)) padding-box, linear-gradient(90deg, #FFC93C, #FF3FBF 55%, #9B3DFF) border-box; }
.fab-parade-link__tent { flex: none; width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.75rem; color: #FF5C8A;
  background: radial-gradient(circle at 50% 35%, rgba(255, 201, 60, .45), rgba(224, 40, 60, .35) 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.fab-parade-link__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fab-parade-link__title { font-weight: 800; font-size: 1.05rem; }
.fab-parade-link__words { font-weight: 600; font-size: .85rem; opacity: .8; }
.fab-parade-link__go { flex: none; margin-left: auto; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.fab-new-look .fab-parade-link__go .bi-chevron-right { margin: 0; opacity: .9; }

/* ---- "Your rooms": the count on the heading's line, round tool buttons, rarity chips with All fixed ---- */
.fab-rooms-grid__title { display: flex; align-items: baseline; gap: .6rem; min-width: 0; flex-wrap: wrap; }
.fab-rooms-count { font-size: .85rem; font-weight: 700; opacity: .72; white-space: nowrap; }
.fab-rooms-count .bi { font-size: .8em; }
/* The three tools take the soft look the Back and camera buttons have: a primary tint, no outline. */
/* A shade darker than the first cut (Nick, 2026-11-15: the Quests, Codes and menu buttons were too light to tell from the backdrop). */
/* Darker (Nick, 2026-11-28): a deep ink plate with a violet rim, not a tint of the backdrop; the brainrot page's camera
   and its menu wear the same. */
.fab-new-look .fab-rooms-menu__toggle, .fab-new-look .fab-snap-btn, .fab-new-look .fab-care-more__btn { border: 0; border-radius: 1rem; background: rgba(14, 4, 44, .72); color: #C9A6FF;
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), .45), 0 4px 12px rgba(0, 0, 0, .25); font-size: 1.15rem; }
[data-bs-theme=light] .fab-new-look .fab-rooms-menu__toggle, [data-bs-theme=light] .fab-new-look .fab-snap-btn, [data-bs-theme=light] .fab-new-look .fab-care-more__btn { color: #fff; background: rgba(76, 22, 160, .82); }
.fab-new-look .fab-rooms-menu__toggle:hover, .fab-new-look .fab-rooms-menu__toggle[aria-expanded="true"], .fab-new-look .fab-snap-btn:hover, .fab-new-look .fab-care-more__btn:hover, .fab-new-look .fab-care-more__btn[aria-expanded="true"] { background: rgba(32, 10, 86, .9); color: #fff; }
.fab-rarity-chips { display: flex; align-items: center; gap: .5rem; margin: -.25rem 0 .9rem; padding: .25rem 0; min-width: 0; }
.fab-rarity-chips__scroll { display: flex; gap: .5rem; overflow-x: auto; min-width: 0; padding: .25rem; margin: -.25rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.fab-rarity-chips__scroll::-webkit-scrollbar { display: none; }
.fab-rarity-chip--all { flex: none; }
.fab-rarity-chip { flex: none; padding: .35rem .95rem; border-radius: 999px; font-weight: 700; font-size: .85rem; text-decoration: none; color: inherit;
  background: rgba(var(--bs-body-color-rgb), .06); border: 1px solid rgba(var(--rarity-rgb, var(--bs-body-color-rgb)), .5); }
.fab-rarity-chip:hover { color: inherit; background: rgba(var(--rarity-rgb, var(--bs-body-color-rgb)), .14); }
.fab-rarity-chip.is-on { background: var(--rarity-gradient, var(--fab-gradient-primary)); color: var(--rarity-on-gradient, var(--rarity-contrast, #fff)); border-color: transparent;
  box-shadow: 0 0 14px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .45); }

/* ---- Bigger / smaller stage (phones) ---- */
.fab-stage__expand { display: none; }
@media (max-width: 767.98px) {
  .fab-new-look .fab-stage__scene { grid-row: 1; grid-column: 1; }
  .fab-new-look .fab-stage__details { grid-row: 1; grid-column: 2; }
  .fab-new-look .fab-stage__expand { display: inline-flex; align-items: center; padding: .3rem .85rem; border-radius: 999px;
    border: 1px solid rgba(var(--bs-body-color-rgb), .16); background: rgba(var(--bs-body-color-rgb), .08); color: inherit; font-size: .78rem; font-weight: 700; }
  .fab-new-look .fab-stage__expand > span { display: inline-flex; align-items: center; gap: .35rem; }
  .fab-new-look .fab-stage__expand-less { display: none !important; }
  .fab-stage-wide .fab-new-look .fab-stage { grid-template-columns: minmax(0, 1fr); }
  .fab-stage-wide .fab-new-look .fab-stage__scene { aspect-ratio: 4 / 5; grid-row: auto; grid-column: auto; }
  .fab-stage-wide .fab-new-look .fab-stage__floor { scale: 1; }
  .fab-stage-wide .fab-new-look .fab-stage__poster { padding: 2rem; }
  .fab-stage-wide .fab-new-look .fab-stage__expand-more { display: none !important; }
  .fab-stage-wide .fab-new-look .fab-stage__expand-less { display: inline-flex !important; }
  .fab-stage-wide .fab-new-look .fab-stage__details { grid-row: auto; grid-column: auto; }
  .fab-stage-wide .fab-new-look .fab-stage__arrow { width: 2.75rem; height: 2.75rem; top: 50%; }
}

/* ---- The brainrot page ---- */
/* The portrait stands on a little podium beside the name instead of sitting in a ring. */
.fab-new-look .care__art { position: relative; width: 6.5rem; height: 7rem; border: 0; border-radius: 0; overflow: visible; background: none !important; align-items: end; }
.fab-new-look .care__art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; padding-bottom: .9rem;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.fab-new-look .care__art::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 1.9rem; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .55), #241160 75%);
  border: 2px solid rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .7); box-shadow: 0 0 18px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .45), 0 6px 0 #160843; }
.fab-new-look .care__art::after { content: ""; position: absolute; left: 50%; bottom: .6rem; width: 120%; height: 6rem; translate: -50% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 80%, rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .35), transparent 65%); }
[data-bs-theme=light] .fab-new-look .care__art::before { background: radial-gradient(ellipse at 50% 40%, rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .5), #EDE4FF 75%); box-shadow: 0 0 18px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .35), 0 6px 0 #CDBDF5; }
.fab-new-look .care--fainted .care__art::after { display: none; }

/* Health and Earning as icon tiles. */
.fab-new-look .care__stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; text-align: left;
  padding: .6rem .75rem; border-radius: 1rem; background: rgba(var(--bs-body-color-rgb), .06); border: 1px solid rgba(var(--bs-body-color-rgb), .08); }
.care__stat-icon { display: none; } /* drawn by the new look only (story 3371: icons, no longer emoji in ::before) */
.fab-new-look .care__stat-icon { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; border-radius: .75rem; display: grid; place-items: center; font-size: 1.25rem; }
.fab-new-look .care__stat-icon--health { color: #FF3F78; background: radial-gradient(circle at 40% 35%, rgba(255, 63, 120, .45), rgba(255, 63, 120, .15)); }
.fab-new-look .care__stat-icon--earning { background: radial-gradient(circle at 40% 35%, rgba(255, 201, 60, .45), rgba(255, 201, 60, .15)); }
.fab-new-look .care__stat-label { font-size: .68rem; }
.fab-new-look .care__stat-value { font-size: 1.05rem; line-height: 1.15; }

/* Feed, Water, Play: no glossy light since story 3445 (Nick: off brand); the bigger icon and padding stay. */
.fab-new-look .care__action { padding: .75rem .25rem .65rem; }
.fab-new-look .care__action-emoji { font-size: 1.85rem; }

/* Previous / next with the neighbours' faces. */
.fab-new-look .fab-room-nav { background: rgba(var(--bs-body-color-rgb), .04); }
.fab-new-look .fab-room-nav__btn { flex: 1 1 0; display: grid; align-items: center; column-gap: .5rem; row-gap: 0; text-align: left; padding: .45rem .6rem;
  grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "arrow face word" "arrow face name"; }
.fab-new-look .fab-room-nav__btn--next { text-align: right; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "word face arrow" "name face arrow"; }
.fab-new-look .fab-room-nav__btn > .bi { grid-area: arrow; }
.fab-room-nav__face { grid-area: face; width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; display: block;
  background: rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .25); box-shadow: 0 0 0 2px var(--rarity, var(--bs-primary)); }
.fab-room-nav__face img { width: 100%; height: 100%; object-fit: cover; }
.fab-room-nav__word { grid-area: word; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; line-height: 1.1; }
.fab-new-look .fab-room-nav__name { grid-area: name; font-size: .85rem; line-height: 1.2; }

/* The ⋮ beside the camera: the camera's size and shape (not .fab-back, which the app hides for its own Back). */
.fab-care-more__btn { width: var(--fab-tap-target); height: var(--fab-tap-target); padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; font-size: 1.15rem; }
/* The wallet gives up a little room for it on a phone. */
@media (max-width: 575.98px) {
  .fab-new-look .fab-care-head__row { gap: .4rem !important; }
  .fab-new-look .fab-care-head .fab-wallet__collect { padding-inline: .7rem; }
}

/* ---- The wallet band (story 3497, Nick 2026-11-25, from his reference): a violet-into-pink outline that glows, a wallet
   tile, a small label over the count, and the gold Collect as a full pill. The slot is a container so the tile can give
   way where the band is narrow: the brainrot page's row on a phone, beside Back, the camera and the menu. ---- */
.fab-new-look .fab-wallet-slot { container: wallet-slot / inline-size; }
.fab-new-look .fab-wallet { gap: .7rem; padding: .55rem; border-radius: 1.4rem; border: 1.5px solid transparent;
  background: linear-gradient(rgba(26, 10, 72, .86), rgba(26, 10, 72, .86)) padding-box, linear-gradient(105deg, #9B3DFF, #FF3FBF) border-box;
  box-shadow: 0 0 16px rgba(155, 61, 255, .4), 0 0 28px rgba(255, 63, 191, .2), 0 10px 26px rgba(0, 0, 0, .35); }
[data-bs-theme=light] .fab-new-look .fab-wallet {
  background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)) padding-box, linear-gradient(105deg, #9B3DFF, #FF3FBF) border-box;
  box-shadow: 0 0 14px rgba(155, 61, 255, .25), 0 8px 20px rgba(18, 6, 58, .12); }
.fab-new-look .fab-wallet__count { gap: .7rem; padding: 0 .2rem 0 0; min-width: 0; }
.fab-new-look .fab-wallet__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: .95rem; font-size: 1.45rem;
  color: #FFC93C; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
[data-bs-theme=light] .fab-new-look .fab-wallet__icon { color: #D98E00; background: rgba(255, 179, 0, .1); border-color: rgba(255, 179, 0, .25); }
.fab-new-look .fab-wallet__text { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; min-width: 0; }
.fab-new-look .fab-wallet__label { display: block; font-size: .78rem; font-weight: 700; line-height: 1.1; color: var(--bs-secondary-color); }
.fab-new-look .fab-wallet__figure { gap: .35rem; flex-wrap: nowrap; line-height: 1.15; }
.fab-new-look .fab-wallet__amount { font-size: 1.3rem; }
.fab-new-look .fab-wallet__collect { --bs-btn-border-radius: 999px; --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1.3rem; --bs-btn-font-size: 1.05rem; }
.fab-new-look .fab-wallet__collect:not(:disabled) { box-shadow: 0 0 18px rgba(255, 201, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .45); }
/* Collected (Nick, 2026-11-28, instead of a toast): the gold stays lit for a moment while "+N" pops up over the label and
   a ring of light runs out from the button; then the label comes back. Reduced motion shows the figure and fades it. */
.fab-wallet__collect { position: relative; }
.fab-wallet__collected { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; border-radius: inherit;
  background: linear-gradient(135deg, #FFC93C, #FFE27A); color: var(--fab-ink); font-weight: 800; pointer-events: none; opacity: 0;
  animation: fab-collected 1.3s cubic-bezier(.3, 1.4, .5, 1) 1 both; }
.fab-wallet__collect.is-collected { animation: fab-collected-glow 1.3s ease-out 1; }
.fab-wallet__collect.is-collected:disabled { opacity: 1; }
@keyframes fab-collected { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.08); } 30%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes fab-collected-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .9); } 40% { box-shadow: 0 0 28px 8px rgba(255, 201, 60, .7); } 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0); } }
@media (prefers-reduced-motion: reduce) { .fab-wallet__collected { animation: fab-collected-fade 1.3s linear 1 both; } .fab-wallet__collect.is-collected { animation: none; }
  @keyframes fab-collected-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } } }
@container wallet-slot (max-width: 420px) {
  .fab-new-look .fab-wallet { gap: .45rem; padding: .4rem; }
  .fab-new-look .fab-wallet__icon { width: 2.5rem; height: 2.5rem; border-radius: .8rem; font-size: 1.2rem; }
  .fab-new-look .fab-wallet__count { gap: .5rem; }
  .fab-new-look .fab-wallet__amount { font-size: 1.1rem; }
  .fab-new-look .fab-wallet__collect { --bs-btn-padding-y: .55rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .95rem; }
}
@container wallet-slot (max-width: 300px) {
  .fab-new-look .fab-wallet__icon { display: none; }
  .fab-new-look .fab-wallet__count { padding-left: .5rem; }
}

/* ---- Need bars (story 3338): the button's gradient, a glow, rounded ends, a quiet track ---- */
.fab-new-look .progress { border-radius: 999px; border-color: rgba(var(--bs-body-color-rgb), .14); background: rgba(0, 0, 0, .28); overflow: hidden; }
[data-bs-theme=light] .fab-new-look .progress { background: rgba(18, 6, 58, .08); }
.fab-new-look .progress .progress-bar { border-radius: 999px; background-image: var(--fab-bar-gradient); box-shadow: 0 0 10px rgba(var(--fab-bar-glow), .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fab-new-look .progress.need-empty { border-color: rgba(var(--bs-danger-rgb), .7); }

/* ---- The Fuse machine's screen (story 3341) ---- */
.fab-fuse__machine { padding: 1rem; border-radius: 1.25rem; background: linear-gradient(160deg, rgba(var(--bs-primary-rgb), .18), rgba(var(--bs-body-bg-rgb), .6) 60%);
  border: 1px solid rgba(var(--bs-primary-rgb), .35); box-shadow: 0 12px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1); }
.fab-fuse__slots { display: grid; grid-template-columns: repeat(var(--slots, 4), minmax(0, 1fr)); gap: .5rem; }
.fab-fuse__slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .1rem; min-height: 8.6rem; padding: .45rem .3rem;
  border-radius: 1rem; border: 2px dashed rgba(var(--bs-body-color-rgb), .2); background: rgba(0, 0, 0, .18); text-align: center; }
.fab-fuse__slot.is-filled { border-style: solid; border-color: var(--rarity, var(--bs-primary)); background: radial-gradient(circle at 50% 35%, rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .3), rgba(0, 0, 0, .2) 70%); }
.fab-fuse__slot-empty { margin: auto; font-size: 1.4rem; opacity: .4; }
.fab-fuse__slot-art { width: 3.6rem; height: 3.6rem; }
.fab-fuse__slot-art img { width: 100%; height: 100%; object-fit: contain; }
.fab-fuse__slot-name { font-size: .7rem; font-weight: 800; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fab-fuse__slot-tier { font-size: .65rem; font-weight: 700; }
.fab-fuse__return { margin-top: auto; width: 100%; border: 0; border-radius: .6rem; padding: .25rem 0; font-size: .7rem; font-weight: 800; background: rgba(var(--bs-danger-rgb), .22); color: #FF8A8A; } /* taking one out is the danger colour, Nick 2026-10-27 */
[data-bs-theme=light] .fab-fuse__return { color: #C81E1E; background: rgba(var(--bs-danger-rgb), .14); }
[data-bs-theme=light] .fab-fuse__slot { background: rgba(18, 6, 58, .05); }
.fab-fuse__odds { display: grid; gap: .5rem; }
.fab-fuse__tier { padding: .55rem .65rem; border-radius: .9rem; background: rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .1); border: 1px solid rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .3); }
.fab-fuse__tier-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.fab-fuse__tier-name { font-weight: 800; }
.fab-fuse__tier-row--trait { font-size: .78rem; opacity: .85; }
.fab-fuse__tier-bar { height: .35rem; border-radius: 999px; background: rgba(0, 0, 0, .25); margin: .35rem 0 .45rem; overflow: hidden; }
.fab-fuse__tier-bar i { display: block; height: 100%; border-radius: 999px; background: var(--rarity-gradient, var(--rarity, var(--bs-primary))); }
/* The brainrots each rarity may be (Nick, 2026-10-24: roomier, bigger words). */
.fab-fuse__outs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: .75rem .4rem; align-items: start; margin-top: .25rem; }
.fab-fuse__out { display: grid; justify-items: center; gap: .15rem; min-width: 0; font-size: .76rem; line-height: 1.15; text-align: center; }
.fab-fuse__out[hidden] { display: none; }
.fab-fuse__out img { width: 3.2rem; height: 3.2rem; object-fit: contain; }
.fab-fuse__out-name { width: 100%; opacity: .9; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fab-fuse__out-pct { font-weight: 800; font-size: .85rem; }
/* "+2 more" fills the row's last cell and opens the rest in place (story 3354) */
.fab-fuse__more { align-self: center; justify-self: center; border: 0; border-radius: var(--bs-border-radius-pill); padding: .45rem .7rem; min-height: 2.25rem;
  background: rgba(var(--bs-body-color-rgb), .1); color: inherit; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.fab-fuse__more[hidden] { display: none; }
.fab-fuse__more[aria-expanded="true"] { grid-column: 1 / -1; justify-self: start; }
.fab-fuse__price { display: flex; justify-content: center; gap: 1.5rem; font-size: 1.05rem; }
.fab-fuse__pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 576px) { .fab-fuse__pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) { .fab-fuse__pick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fab-fuse__card { display: grid; justify-items: center; gap: .15rem; padding: .5rem .3rem; border-radius: 1rem; color: inherit; text-align: center;
  border: 2px solid rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .45); background: rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .08); transition: transform .12s ease, opacity .12s ease; }
.fab-fuse__card:active { transform: scale(.96); }
.fab-fuse__card-art { width: 3.4rem; height: 3.4rem; }
.fab-fuse__card-art img { width: 100%; height: 100%; object-fit: contain; }
.fab-fuse__card-name { font-size: .72rem; font-weight: 800; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fab-fuse__card-tier { font-size: .65rem; font-weight: 700; }
.fab-fuse__card.is-in { border-color: var(--rarity, var(--bs-primary)); background: rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .25); box-shadow: 0 0 14px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .45); }
.fab-fuse__card.is-in::after { content: "✓"; position: absolute; }
.fab-fuse__card { position: relative; }
.fab-fuse__card.is-in::after { top: .3rem; right: .45rem; font-weight: 900; color: var(--rarity, var(--bs-primary)); }
.fab-fuse__card.is-shut { opacity: .45; }
.fab-fuse__card.is-shake { animation: fab-fuse-shake .3s ease; }
@keyframes fab-fuse-shake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.fab-fuse__job { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 1rem; background: rgba(var(--bs-body-color-rgb), .06); border: 1px solid rgba(var(--bs-body-color-rgb), .12); }
.fab-fuse__job.is-ready { border-color: rgba(var(--bs-primary-rgb), .6); box-shadow: 0 0 18px rgba(var(--bs-primary-rgb), .35); }
.fab-fuse__faces { display: flex; }
.fab-fuse__face { width: 2.2rem; height: 2.2rem; border-radius: 50%; overflow: hidden; margin-left: -.55rem; background: rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .3); box-shadow: 0 0 0 2px var(--rarity, var(--bs-primary)); }
.fab-fuse__face:first-child { margin-left: 0; }
.fab-fuse__face img { width: 100%; height: 100%; object-fit: cover; }
.fab-fuse__job-text { min-width: 0; flex: 1; }
.fab-fuse__job-label { font-weight: 800; font-size: 1.05rem; }
.fab-fuse__job-label[hidden] { display: none; }
.fab-fuse__job-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.fab-fuse__clock { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: .02em; }
.fab-fuse__clock[hidden], .fab-fuse__job-end form[hidden] { display: none; }
.fab-fuse__skip { padding: .15rem .55rem; font-size: .75rem; }
/* The room a fuse holds, on Rooms (story 3341). */
.fab-fuse-room { min-height: 12rem; color: inherit; border-style: dashed; border-color: rgba(var(--bs-primary-rgb), .55); background: rgba(var(--bs-primary-rgb), .08); }
.fab-fuse-room.is-ready { border-style: solid; box-shadow: 0 0 18px rgba(var(--bs-primary-rgb), .4); }

/* ---- Rooms' pages (stories 3348, 3350): round arrows round "n of N" on the left, the free rooms quietly on the right ---- */
.fab-rooms-pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 1.1rem 0 .4rem; }
.fab-rooms-pager__nav { display: inline-flex; align-items: center; gap: .5rem; }
.fab-rooms-pager__arrow { width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem;
  background: rgba(var(--bs-primary-rgb), .16); color: var(--bs-primary); transition: background-color .15s ease, scale .1s ease; }
[data-bs-theme=light] .fab-rooms-pager__arrow { color: #7A1FE0; }
.fab-rooms-pager__arrow:active:not(:disabled) { scale: .92; }
.fab-rooms-pager__arrow:disabled { opacity: .35; }
.fab-rooms-pager__count { font-weight: 800; min-width: 3.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.fab-rooms-pager__free { margin-left: auto; font-size: .85rem; font-weight: 600; opacity: .65; display: inline-flex; align-items: center; gap: .35rem; }
.fab-rooms-pages { touch-action: pan-y; } /* a sideways swipe turns the page; up and down still scroll */
.fab-rooms-grid__head { scroll-margin-top: 6.5rem; } /* a turn brings it back under the floating top bar, not behind it */

/* ---- The row under the stage (story 3363, Nick 2026-10-28): the arrows together on the left, Bigger / smaller on the
   right, across the stage's whole width; in the Bigger layout, between the brainrot and its card. In the flow, never
   over the model. ---- */
.fab-new-look .fab-stage__controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.5rem; }
.fab-new-look .fab-stage__steps { display: inline-flex; gap: .4rem; }
.fab-new-look .fab-stage__controls .fab-stage__arrow { position: static; translate: none; width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.fab-new-look .fab-stage__controls .fab-stage__arrow:active { scale: .92; }
/* Bigger / smaller is an icon the arrows' size (story 3364, Nick: no words), and the row stays in the brainrot's column:
   beside its card on a phone the card takes both rows, so nothing sits under it. */
.fab-new-look .fab-stage__controls .fab-stage__expand { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; border-radius: 50%; font-size: 1rem; }
@media (max-width: 767.98px) {
  .fab-new-look .fab-stage__controls { grid-column: 1; }
  .fab-new-look .fab-stage__details { grid-row: 1 / span 2; }
  .fab-stage-wide .fab-new-look .fab-stage__controls { grid-column: auto; }
  .fab-stage-wide .fab-new-look .fab-stage__details { grid-row: auto; }
}
@media (min-width: 768px) { .fab-new-look .fab-stage__controls { grid-row: 2; grid-column: 1; } }
/* The scene fits the brainrot standing in it (story 3363): rooms_stage_controller#fit sets its height from the model's
   shape and moves the camera in to match, so a low, long one (Glorbo) leaves no band of empty sky; both glide. */
.fab-new-look .fab-stage__scene.is-fitted { aspect-ratio: auto; transition: height .45s cubic-bezier(.2, .8, .3, 1); }
@media (prefers-reduced-motion: reduce) { .fab-new-look .fab-stage__scene.is-fitted { transition: none; } }

/* ---- The Order drawer (story 3367): small cards, the rarity ring round the portrait and what each has earned, held and
   dragged into place; a divider per page; the lifted copy follows the pointer. ---- */
.fab-order__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .75rem .5rem; padding-bottom: 2rem; }
.fab-order__card { display: grid; justify-items: center; gap: .3rem; padding: .35rem .2rem; border-radius: 1rem; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fab-order__ring { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  border: 3px solid var(--rarity, var(--bs-primary)); background: radial-gradient(circle at 50% 35%, rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .45), rgba(0, 0, 0, .25) 72%);
  box-shadow: 0 0 10px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .35); }
.fab-order__ring img { width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.fab-order__earned { font-size: .72rem; font-weight: 700; opacity: .85; white-space: nowrap; }
/* Arranging, the phone's way (Nick, 2026-11-24): every card jiggles a little, each out of step with its neighbours, so
   the drawer reads as "move these"; the one held is lifted, tilted and lit in its rarity, and the slot it left is a
   dashed outline. Reduced motion keeps them still. */
@keyframes fab-order-jiggle { 0%, 100% { rotate: -1.4deg; } 50% { rotate: 1.4deg; } }
.fab-order.show .fab-order__card:not(.is-placeholder) { animation: fab-order-jiggle .32s ease-in-out infinite; transform-origin: 50% 60%; }
.fab-order.show .fab-order__card:nth-child(2n) { animation-duration: .36s; animation-direction: reverse; }
.fab-order.show .fab-order__card:nth-child(3n) { animation-delay: -.12s; }
.fab-order.show .fab-order__card:nth-child(5n) { animation-delay: -.2s; animation-duration: .34s; }
.fab-order.is-dragging .fab-order__card { animation-play-state: paused; }
.fab-order__card.is-placeholder { opacity: 1; animation: none; outline: 2px dashed rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .7); outline-offset: -2px;
  background: rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .08); }
.fab-order__card.is-placeholder > * { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .fab-order.show .fab-order__card { animation: none; } }
.fab-order__ghost { position: fixed; z-index: 2000; margin: 0; pointer-events: none; cursor: grabbing; border-radius: 1rem;
  background: rgba(var(--bs-body-bg-rgb), .55); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); will-change: transform; }
.fab-order__ghost { animation: none !important; rotate: 4deg; outline: 2px solid rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .9);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .45), 0 0 22px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .55); }
.fab-order__ghost .fab-order__ring { box-shadow: 0 0 18px rgba(var(--rarity-rgb, var(--bs-primary-rgb)), .8); }
.fab-order.is-dragging .fab-order__card:not(.is-placeholder):hover { background: rgba(var(--bs-body-color-rgb), .06); }
.fab-order__divider { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-top: .25rem; }
.fab-order__divider::after { content: ""; flex: 1; height: 1px; background: rgba(var(--bs-body-color-rgb), .2); }
.fab-order__moving { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: 5; padding: .45rem .9rem; border-radius: 999px;
  background: var(--fab-gradient-primary); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }

/* Bigger and smaller as one move (Nick, 2026-11-04; rooms_stage_controller#widen): names exist only while the View
   Transition runs (html.fab-stage-morphing), so the glass card is a backdrop root for those 380 ms and never otherwise,
   and the page's own navigation fade (theme.css, root) is switched off for it: the rest of the page holds still while
   the named parts glide. The scene keeps its picture whole (contain) as its box changes shape; its own height glide
   is off meanwhile, so the "after" snapshot is the end state. */
html.fab-stage-morphing .fab-new-look .fab-stage__scene { view-transition-name: fab-stage-scene; transition: none !important; }
html.fab-stage-morphing .fab-new-look .fab-stage__details { view-transition-name: fab-stage-details; }
html.fab-stage-morphing .fab-new-look .fab-stage__controls { view-transition-name: fab-stage-controls; }
html.fab-stage-morphing .fab-rooms-grid__head { view-transition-name: fab-rooms-grid-head; }
html.fab-stage-morphing #rooms-grid { view-transition-name: fab-rooms-grid; }
/* The floating bars stay on top of the moving parts (named groups paint above the root, so the card slid over the tab
   bar until the end); they get layers of their own for the 380 ms too, and hold still. */
html.fab-stage-morphing .fab-topbar-wrap:not(.fab-topbar-wrap--spacer) { view-transition-name: fab-topbar; }
html.fab-stage-morphing .fab-tabbar-wrap { view-transition-name: fab-tabbar; }
html.fab-stage-morphing::view-transition-old(root), html.fab-stage-morphing::view-transition-new(root) { animation: none; }
html.fab-stage-morphing::view-transition-old(fab-topbar), html.fab-stage-morphing::view-transition-old(fab-tabbar) { animation: none; opacity: 0; }
html.fab-stage-morphing::view-transition-new(fab-topbar), html.fab-stage-morphing::view-transition-new(fab-tabbar) { animation: none; }
html.fab-stage-morphing::view-transition-group(*) { animation-duration: 380ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html.fab-stage-morphing::view-transition-old(fab-stage-scene), html.fab-stage-morphing::view-transition-new(fab-stage-scene) {
  width: 100%; height: 100%; object-fit: contain; animation-duration: 380ms;
}

/* The care card's stage (stories 3452, 3453, everyone's since 3462): the Rooms podium leads the card, the model
   standing on the pad; Fused and trait chips top left, Idle | Walk and AR in one row top right (one height, one radius);
   under it the rarity centred over the name, kept clear of the podium by --care-stage-clear (care_stage_controller). */
.care-stage { position: relative; margin: -.5rem -.25rem calc(var(--care-stage-clear, 10px)); isolation: isolate; overflow-x: clip; } /* the drifting glow never widens the page (story 3454: the whole page could be dragged sideways) */
.care-stage__scene.fab-stage { display: block; }
.care-stage .fab-stage__scene { aspect-ratio: 6 / 5; max-height: 22rem; margin-inline: auto; }
.care-stage .fab-stage__floor { scale: .7; }
.care-stage__viewer { position: absolute; inset: 0; }
.care-stage__viewer .fab-mutation-effect-host { position: absolute; inset: 0; }
.care-stage__viewer model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent; }
/* Behind the model, a soft glow in the card's own colour that drifts (transform and opacity only: the compositor's work). */
.care-stage__glow { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(8px);
  background: radial-gradient(55% 50% at 35% 55%, rgba(var(--rarity-rgb, 155, 61, 255), .28), transparent 70%),
              radial-gradient(45% 45% at 70% 40%, rgba(var(--rarity-rgb, 155, 61, 255), .2), transparent 70%);
  animation: care-stage-drift 14s ease-in-out infinite alternate; }
@keyframes care-stage-drift { from { transform: translate3d(-3%, 2%, 0) scale(1); opacity: .85; } to { transform: translate3d(3%, -2%, 0) scale(1.06); opacity: 1; } }
.care-stage__chips { position: absolute; top: .5rem; left: .5rem; max-width: 45%; z-index: 3; display: flex; flex-wrap: wrap; gap: .3rem; pointer-events: none; }
.care-stage__chips > * { pointer-events: auto; }
/* The row under the stage (story 3454): Idle | Walk, the rarity in the middle, AR; one height, one radius. */
.care-stage__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-bottom: .6rem; --tool-h: 2.25rem; min-height: var(--tool-h); } /* keeps its height when the badge moved out and neither Idle | Walk nor AR shows (2026-11-22) */
.care-stage__bar > .care-stage__clips { justify-self: start; }
.care-stage__bar > .care-stage__ar { justify-self: end; grid-column: 3; }
.care-stage__ar { display: grid; place-items: center; width: var(--tool-h); height: var(--tool-h); padding: 0; border-radius: 999px; border: 2px solid var(--fab-outline);
  background: var(--fab-gradient-ice); color: var(--fab-ink); font-size: 1rem; box-shadow: 0 0 12px rgba(47, 230, 255, .4); text-decoration: none; }
.care-stage__ar[hidden] { display: none; }
.care-stage__ar:hover, .care-stage__ar:focus-visible { color: var(--fab-ink); filter: brightness(1.08); }
/* Idle | Walk: one pill of two equal halves; the light slides to the playing one (--active, model_viewer_controller). */
.care-stage__clips { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: var(--tool-h); padding: 3px; border-radius: 999px;
  background: rgba(18, 6, 58, .72); border: 2px solid var(--fab-outline); }
.care-stage__clips[hidden] { display: none; }
.care-stage__clips::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--fab-gradient-primary);
  transform: translateX(calc(var(--active, 0) * 100%)); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.care-stage__clips .btn { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; --bs-btn-padding-y: 0; --bs-btn-padding-x: .75rem; border: 0; border-radius: 999px; background: transparent; /* the words centred in the pill (story 3454); min-height 0, or the 44 px tap minimum made each half taller than the pill and the words sat low (3455) */
  color: rgba(255, 255, 255, .7); font-weight: 800; font-size: .78rem; line-height: 1; box-shadow: none; transition: color .3s ease; }
.care-stage__clips .btn.active, .care-stage__clips .btn:hover { background: transparent; color: #fff; }
.care-stage__state { position: absolute; top: 3.2rem; right: .75rem; z-index: 3; font-size: 1.6rem; }
.care-stage__name { text-align: center; }
.care-stage__rarity { margin-bottom: .35rem; } /* under the name, above the caught line (Nick, 2026-11-22) */
@media (prefers-reduced-motion: reduce) { .care-stage__glow { animation: none; } .care-stage__clips::before { transition: none; } }
