/* Carbon Labs: the mascots' look (soft-touch finish and 3D renders), matched to the Amy test page (landing.css v92). Style only. */
/* ── v86: the mascots, refined. One studio light from the upper left for the whole family: a satin band on the top
   of each body, a soft shade low in the body where a real object would turn away from the light, a quiet contact
   shadow on the floor, and wider, gentler halos. Grain is reduced to a whisper. Shapes, faces and positions are
   unchanged. */
:root { --satin: .55; --bot-ao: #1a1440; --bot-ao-o: .22; --rim-a: .8; --rim-b: .18; --rim-c: .04; --rim-d: .26; --fresnel: .1; }
html[data-theme="light"] { --satin: .9; --bot-ao: #3a3170; --bot-ao-o: .14; --rim-a: .95; --rim-b: .5; --rim-c: .22; --rim-d: .5; --fresnel: .2; }
.bot-grain { opacity: .5; }
.bot-glint ellipse { fill-opacity: .4; }
.bot-contact { fill: rgba(0,0,0,.55); }
html[data-theme="light"] .bot-contact { fill: rgba(40,40,90,.2); }
/* halos: wider and softer, never a bloom */
.shape--svg svg { filter: drop-shadow(0 0 34px color-mix(in srgb, var(--shape-glow, rgba(0,176,194,.3)) 70%, transparent)) drop-shadow(0 12px 18px rgba(0,0,0,.28)); }
html[data-theme="light"] .shape--svg svg { filter: drop-shadow(0 0 40px color-mix(in srgb, var(--shape-glow, rgba(0,176,194,.22)) 62%, transparent)) drop-shadow(0 10px 16px rgba(31,41,90,.09)); }
/* eyes: a deep ink, a touch softer than pure black */
html[data-theme="light"] .eye-r { fill: #22222c; }
/* the coder: a screen set into its casing */
.visor { stroke: rgba(0,0,0,.35); stroke-width: 1; }
.visor-lip { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
html[data-theme="light"] .visor-lip { stroke: rgba(255,255,255,.5); }
.visor-ao { fill: none; stroke: rgba(0,0,0,.55); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.visor-sheen { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 3; stroke-linecap: round; }
.antenna { stroke: rgba(255,255,255,.55); stroke-width: 3.6; }
html[data-theme="light"] .antenna { stroke: #6a6f84; }
.antenna-collar { fill: color-mix(in srgb, var(--shape-fill, rgba(97,97,255,.36)) 100%, #000 12%); stroke: rgba(255,255,255,.5); stroke-width: 1; }
.antenna-light { opacity: .9; } .antenna-glint { fill: #fff; opacity: .85; }
/* the lab agent: even goggle frames, tinted lenses, a bridge and arms that meet the frames, one glint per lens */
.goggle { stroke-width: 3.6; }
html[data-theme="light"] .goggle { stroke: #5f6a76; }
.goggle-lens { fill: rgba(170,240,250,.05); }
html[data-theme="light"] .goggle-lens { fill: rgba(255,255,255,.07); }
.goggle-glint { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .75; }
/* the pixel crab keeps its hard pixel edges; its surface gets the same light: a lit top, a shaded base, quieter grain */
.shape--crab.shape--clip { background: var(--grain), linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 32%), linear-gradient(0deg, rgba(120,50,30,.14) 0%, rgba(120,50,30,0) 38%), var(--shape-fill, rgba(217,119,87,.4));
  background-size: 48px 48px, 100% 100%, 100% 100%, 100% 100%; }

/* ── v87: the mascots as soft-touch collectibles (the reference render): opaque pastel bodies, lit from the upper
   left and rounding off darker toward every edge, a little of the underside visible (seen from slightly above), a
   blurred inner edge shade, a fine velvet surface, eyes with a tiny gloss. The glass backdrop and fresnel are gone. */
.shape--svg { --bot-lite: color-mix(in srgb, var(--shape-fill, #9fe3ea), #fff 70%); --bot-solid: color-mix(in srgb, var(--shape-fill, #9fe3ea), #fff 25%); --bot-deep: color-mix(in srgb, var(--shape-fill, #9fe3ea), #000 12%); }
.shape--svg.shape--teal  { --bot-lite: #edfcfd; --bot-solid: #a9e7ef; --bot-deep: #5fbfcc; }
.shape--svg.shape--iris  { --bot-lite: #f1efff; --bot-solid: #bfb9f7; --bot-deep: #8b82e3; }
.shape--svg.shape--green { --bot-lite: #f0fdf0; --bot-solid: #b6edc2; --bot-deep: #74c98b; }
.shape--svg.shape--sun   { --bot-lite: #fffbe6; --bot-solid: #ffe28f; --bot-deep: #ecb73a; }
.shape--svg.shape--clay  { --bot-lite: #fff0ea; --bot-solid: #f6c1ad; --bot-deep: #d98e72; }
html:not([data-theme="light"]) .shape--svg.shape--teal  { --bot-lite: #c4f5fa; --bot-solid: #6fcfdb; --bot-deep: #2a8f9c; }
html:not([data-theme="light"]) .shape--svg.shape--iris  { --bot-lite: #d6d2ff; --bot-solid: #9189ee; --bot-deep: #5148b4; }
html:not([data-theme="light"]) .shape--svg.shape--green { --bot-lite: #d4f7d6; --bot-solid: #86d898; --bot-deep: #3f9a57; }
html:not([data-theme="light"]) .shape--svg.shape--sun   { --bot-lite: #fff1b8; --bot-solid: #f3cd57; --bot-deep: #b88a12; }
html:not([data-theme="light"]) .shape--svg.shape--clay  { --bot-lite: #fbd6c8; --bot-solid: #df9a80; --bot-deep: #a65a40; }
.bot-depth { fill: var(--bot-deep); filter: brightness(.88); }
.bot-inner { stroke: var(--bot-deep); opacity: .55; }
.bot-velvet { opacity: .55; mix-blend-mode: soft-light; }
html:not([data-theme="light"]) .bot-velvet { opacity: .4; }
.bot-grain, .bot-fres, .bot-sheen { display: none; }
.bot-shade { opacity: .7; }
.bot-satin { opacity: .8; }
.bot-rim { opacity: .45; }
.bot-glint ellipse { fill-opacity: .5; }
.shape--svg::before { display: none; }   /* opaque bodies: no frosted backdrop behind them */
/* halos: soft, colour-matched, wide */
.shape--svg svg { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--bot-deep) 45%, transparent)) drop-shadow(0 12px 14px rgba(0,0,0,.3)); }
html[data-theme="light"] .shape--svg svg { filter: drop-shadow(0 0 36px color-mix(in srgb, var(--bot-solid) 55%, transparent)) drop-shadow(0 10px 12px rgba(60,50,120,.1)); }
/* eyes: rounded ink with a tiny gloss */
.eye-r { stroke: rgba(255,255,255,.12); stroke-width: 1; }
html[data-theme="light"] .eye-r { fill: #25232f; stroke: rgba(255,255,255,.25); }
/* the pixel crab: the same soft-touch peach, rounded by light (lit top-left, darker toward the edges), its pixel
   steps kept crisp */
.shape--crab.shape--clip { --c-lite: #fff0ea; --c-solid: #f6c1ad; --c-deep: #d98e72;
  background: radial-gradient(120% 110% at 34% 18%, var(--c-lite) 0%, var(--c-solid) 48%, var(--c-solid) 72%, var(--c-deep) 100%);
  background-size: 100% 100%; }
html:not([data-theme="light"]) .shape--crab.shape--clip { --c-lite: #fbd6c8; --c-solid: #df9a80; --c-deep: #a65a40; }
.about .shape--crab.shape--bridge { --shape-fill: rgba(217,119,87,.42); }
.bot-depth { filter: brightness(.9) blur(.6px); }
/* the About crab walks behind the headline: keep it soft there so the words always read */
.about .shape--crab.shape--bridge { opacity: .6; }

/* ── v88: the mascots are 3D renders (assets/mascots, drawn by bots.js). Each render carries its own light, shading,
   reflections and floor shadow, so the drawn drop shadows and glow filters are off for them. */
.shape--r3 svg, .shape--crab.shape--clip { filter: none !important; }
.r3-body { transition: opacity .2s ease; }
.r3-body.is-off { opacity: 0; }
/* the pixel crab: its two leg frames are rendered too, one on each pseudo-element; the second shows on the same
   step timing as before */
.shape--crab.shape--clip { clip-path: none !important; background: none !important; box-shadow: none !important; border: 0 !important;
  --crab-a: url("assets/mascots/dark/crab-a.png?v=91"); --crab-b: url("assets/mascots/dark/crab-b.png?v=91"); }
html[data-theme="light"] .shape--crab.shape--clip { --crab-a: url("assets/mascots/light/crab-a.png?v=91"); --crab-b: url("assets/mascots/light/crab-b.png?v=91"); }
html body .shape--crab.shape--clip::before, html body .shape--crab.shape--clip::after { left: -10%; top: -11.392%; width: 120%; height: 124.051%;
  background: var(--crab-a) center / 100% 100% no-repeat; }
html body .shape--crab.shape--clip::after { background-image: var(--crab-b); opacity: 0; }
.shape.is-alive.shape--crab.shape--clip::after { animation: crab-legs .3s steps(1) infinite; }
.shape--crab.shape--clip.is-walking::after { animation: crab-legs .26s steps(1) infinite; }
@keyframes crab-legs { 0% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .shape--crab.shape--clip::after { animation: none !important; } }


/* in the footer pile a character's rendered floor shadow shows only in its starting pose; once moved, toybox.js
   marks it .is-moved and the shadow-free renders are used (the crab's two leg frames below) */
.gfoot__shapes .shape--crab.shape--clip.is-moved { --crab-a: url("assets/mascots/dark/crab-a-ns.png?v=1"); --crab-b: url("assets/mascots/dark/crab-b-ns.png?v=1"); }
html[data-theme="light"] .gfoot__shapes .shape--crab.shape--clip.is-moved { --crab-a: url("assets/mascots/light/crab-a-ns.png?v=1"); --crab-b: url("assets/mascots/light/crab-b-ns.png?v=1"); }

/* ── v93: the rendered flask's water (bots.js r3water). The render is empty glass now; the water is drawn in the
   render's own teal so it stays level while the flask tips and drops as it pours, the way v24 set it out. */
:root { --wtr-top: #18a1ae; --wtr-mid: #1396a3; --wtr-deep: #00414d; --wtr-rim: .55; --wtr-line: rgba(160,240,248,.32); }
html[data-theme="light"] { --wtr-top: #6dddE5; --wtr-mid: #66dbe4; --wtr-deep: #43c6d6; --wtr-rim: .5; --wtr-line: rgba(235,252,255,.8); }
.r3-water .wtr-grain { opacity: .6; mix-blend-mode: soft-light; }
.r3-water .wtr-line { fill: none; stroke: var(--wtr-line); stroke-width: 1.4; stroke-linecap: round; }
.r3-water .r3-bub { fill: #f4fbfc; stroke: none; }
html[data-theme="light"] .r3-water .r3-bub { fill: #fff; }
