/* MOOSA.AI TILE: Piko's banner design (Moosa.ai Santa banner, take A): festive red, title and the name form on the
   left, Santa by the fire in a gold frame with a bow on the right. Same 2x1 size as the PDP Quest tile.
   On wide screens the tile has a fixed height, so everything is sized from the tile's height (cqh) and always fits;
   narrower screens stack it. */
.tile.moosa-banner{display:block;padding:0;overflow:hidden;container-type:inline-size;color:#fff;border:1px solid #ffffff1f;
  background:#8e0b17 url("assets/moosa/santa-bg.webp") center/cover no-repeat;box-shadow:inset 0 0 0 1px #ffffff0d}
.mb{position:relative;height:100%;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);grid-template-areas:"copy stage" "form stage";
  grid-template-rows:auto 1fr;column-gap:3.4cqw;padding:5.6% 2.6% 5.6% 4.6%}
.mb-copy{grid-area:copy;min-width:0}
.mb-copy p{margin:0}
.mb-brand{font-size:clamp(13px,2.6cqw,18px);font-weight:800;color:#fff}
.moosa-banner .mb-title{margin:.5em 0 0;font-family:var(--body);font-size:clamp(22px,5.6cqw,40px);font-weight:800;line-height:1.02;letter-spacing:-.02em;color:#fff;text-shadow:0 2px 14px #0005}
.mb-tagline{margin-top:.45em!important;font-size:clamp(12.5px,2.4cqw,17px);line-height:1.25;font-weight:500;color:#ffeae6}
.mb-form{grid-area:form;align-self:end;display:flex;flex-direction:column;gap:7px;min-width:0}
.mb-fields{display:flex;gap:6px;min-width:0}
.mb-input,.mb-lang-btn{min-width:0;height:38px;border:0;border-radius:10px;background:#fbf6f2;color:#2b1416;font:600 14.5px/1 var(--body)}
.mb-input{flex:1 1 auto;padding:0 11px}
.mb-input::placeholder{color:#8b7b7c}
/* language picker: flag and name; the list opens in the top layer so the tile doesn't cut it off */
.mb-lang{flex:0 0 auto;max-width:46%;display:flex}
.mb-lang-btn{display:inline-flex;align-items:center;gap:7px;width:100%;padding:0 9px;cursor:pointer;text-align:left}
.mb-lang-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-lang-code{display:none;letter-spacing:.02em}
/* a narrow tile: flag and code (EN) on the button, full names in the list */
@container (max-width:659px) and (min-width:440px){.mb-lang-btn .mb-lang-name{display:none}.mb-lang-btn .mb-lang-code{display:inline}}
.mb-flag{flex:0 0 auto;width:20px;height:auto;border-radius:2px;box-shadow:0 0 0 1px #0002}
.mb-chev{flex:0 0 auto;width:10px;height:7px;margin-left:auto;fill:none;stroke:#8f0c1a;stroke-width:2}
.mb-lang-btn[aria-expanded="true"] .mb-chev{rotate:180deg}
.mb-lang-list{position:fixed;inset:auto;margin:0;padding:5px;max-height:min(320px,70vh);overflow:auto;list-style:none;border:0;border-radius:12px;background:#fff;color:#2b1416;box-shadow:0 14px 40px #0008,0 0 0 1px #0000000f;z-index:1000;font:600 14.5px/1 var(--body)}
.mb-lang-list li{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;cursor:pointer;white-space:nowrap;outline:none}
.mb-lang-list li:hover,.mb-lang-list li:focus-visible{background:#f6e7e4}
.mb-lang-list li[aria-selected="true"]{background:#a50d17;color:#fff}
.mb-lang-list li .mb-flag{width:22px}
.mb-input:focus-visible,.mb-lang-btn:focus-visible{outline:2px solid #ffd76a;outline-offset:2px}
.mb-input[aria-invalid="true"]{box-shadow:0 0 0 2px #ffd76a}
.mb-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 12px;border-radius:10px;font:800 14.5px/1 var(--body);color:#fff;text-decoration:none;white-space:nowrap;cursor:pointer;transition:filter .15s,background .15s,transform .15s}
.mb-btn svg{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.2}
.mb-btn:active{transform:scale(.98)}
.mb-btn-primary{border:1.5px solid #f2c35a;background:linear-gradient(180deg,#d91f2a,#a50d17);box-shadow:inset 0 1px 0 #ffffff33,0 5px 14px #2a000866}
.mb-btn-primary:hover{filter:brightness(1.1)}
.mb-btn-primary[aria-busy="true"]{filter:saturate(.7);cursor:progress}
.mb-btn-listen{border:1.5px solid #f2c35acc;background:#ffffff14}
.mb-btn-listen:hover{background:#ffffff26}
.mb-btn-listen[aria-pressed="true"]{background:#f2c35a33}
.mb-btn .mb-listen-icon{width:17px;height:17px;fill:none;stroke-linejoin:round;stroke-linecap:round}
.mb-listen-icon path:first-child{fill:currentColor;stroke:none}
.mb-btn-listen[aria-pressed="true"] .mb-wave{animation:mb-wave 1s ease-in-out infinite}
@keyframes mb-wave{50%{opacity:.35}}
/* while Moosa makes the voice: a spinner, and the button waits */
.mb-btn-listen[aria-busy="true"]{cursor:progress;background:#ffffff1f}
.mb-btn-listen[aria-busy="true"] .mb-listen-icon{display:none}
.mb-btn-listen[aria-busy="true"]::before{content:"";width:15px;height:15px;border-radius:50%;border:2px solid #ffffff55;border-top-color:#fff;animation:mb-spin .8s linear infinite}
@keyframes mb-spin{to{rotate:360deg}}
/* the voice is ready: a small player in the button's place */
.mb-player{display:flex;align-items:center;gap:4px;height:38px;padding:0 10px 0 4px;border:1.5px solid #f2c35acc;border-radius:10px;background:#3a020999;min-width:0}
.mb-player[hidden]{display:none}
.mb-pl-btn{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:none;color:#fff;cursor:pointer}
.mb-pl-btn:hover{background:#ffffff1f}
.mb-pl-btn:focus-visible{outline:2px solid #ffd76a;outline-offset:1px}
.mb-pl-btn svg{width:15px;height:15px;fill:currentColor}
.mb-pl-toggle{width:30px;height:30px;background:#fff;color:#a50d17}
.mb-pl-toggle:hover{background:#ffe9e4}
.mb-pl-toggle .mb-pl-pause,.mb-player.is-paused .mb-pl-toggle .mb-pl-play{display:inline}
.mb-pl-toggle .mb-pl-play,.mb-player.is-paused .mb-pl-toggle .mb-pl-pause{display:none}
.mb-pl-seek{flex:1 1 auto;min-width:30px;height:4px;margin:0 6px;accent-color:#f2c35a;cursor:pointer}
.mb-pl-time{flex:0 0 auto;font:700 12px/1 var(--body);color:#ffeae6;font-variant-numeric:tabular-nums}

/* the right side: Santa, and "Explore Moosa.ai" in the bottom-right corner under him */
.mb-side{grid-area:stage;display:flex;flex-direction:column;gap:6px;min-width:0;min-height:0}
.mb-explore{align-self:flex-end;display:inline-flex;align-items:center;gap:5px;margin-right:2.2%;padding:2px 0;font:800 13.5px/1.1 var(--body);color:#fff;text-decoration:none;white-space:nowrap;opacity:.92}
.mb-explore:hover{opacity:1;text-decoration:underline;text-underline-offset:3px}
.mb-explore svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2}

/* Santa: Piko's picture (gold frame and bow included) keeps its shape and sits right in the space it gets;
   the sample clip plays inside the frame */
.mb-stage{flex:1 1 0;position:relative;min-width:0;min-height:0;container-type:size}
.mb-pic{position:absolute;right:0;bottom:0;width:min(100cqw,100cqh * 1220 / 720);aspect-ratio:1220/720}
/* the gold bow sits on top of the video (cut from the same picture, at the same spot) */
.mb-bow{position:absolute;left:79.34%;top:1.39%;width:17.95%;height:auto;pointer-events:none;z-index:2}
.mb-art{display:block;width:100%;height:100%}
.mb-video{position:absolute;left:2.6%;top:10.6%;width:93.1%;height:87.6%;border-radius:3.2%/5.4%;object-fit:cover;object-position:50% 50%;background:#2a0a0c}
/* the play button sits exactly on the one in the picture */
.mb-play{position:absolute;left:49.3%;top:59.2%;translate:-50% -50%;display:grid;place-items:center;width:12.4%;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:#fff;color:#a50d17;box-shadow:0 6px 20px #0006;cursor:pointer;z-index:1;transition:transform .15s,opacity .2s}
.mb-play:hover{transform:scale(1.06)}
.mb-play:focus-visible{outline:3px solid #ffd76a;outline-offset:3px}
.mb-play svg{width:46%;height:46%;fill:currentColor}
.mb-play .mb-play-icon{translate:1px 0}
.mb-play .mb-pause-icon,.mb-stage.is-playing .mb-play .mb-play-icon{display:none}
.mb-stage.is-playing .mb-play .mb-pause-icon{display:inline}
.mb-stage.is-playing .mb-play{left:auto;top:auto;right:5%;bottom:4%;translate:none;width:9%;opacity:.85}
.mb-stage.is-loading .mb-play{animation:mb-pulse 1s ease-in-out infinite}
@keyframes mb-pulse{50%{transform:scale(.9);opacity:.7}}
.mb-status{position:absolute;left:4.6%;right:50%;bottom:1.2%;margin:0;font-size:12px;line-height:1.2;color:#ffeae6;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-status:empty{display:none}
.mb-status.is-error{color:#ffd76a}

/* wide screens: the tile's height is fixed, so size by height and it always fits (short laptops included) */
@media(min-width:1051px){
  .tile.moosa-banner[data-size]{container-type:size}
  .moosa-banner[data-size="2x1"] .mb{padding:6cqh 2.6cqw 6cqh 4.6cqw}
  .moosa-banner[data-size="2x1"] .mb-brand{font-size:min(2.6cqw,5.4cqh)}
  .moosa-banner[data-size="2x1"] .mb-title{font-size:min(5.6cqw,11cqh)}
  .moosa-banner[data-size="2x1"] .mb-tagline{font-size:min(2.4cqw,5cqh)}
  .moosa-banner[data-size="2x1"] .mb-form{gap:min(7px,2cqh)}
  .moosa-banner[data-size="2x1"] :is(.mb-input,.mb-lang-btn,.mb-btn,.mb-player){height:min(38px,11.4cqh);font-size:min(14.5px,4.6cqh)}
  .moosa-banner[data-size="2x1"] .mb-status{bottom:.6cqh}
  .moosa-banner[data-size="2x1"] .mb-side{gap:min(6px,1.8cqh)}
  .moosa-banner[data-size="2x1"] .mb-explore{font-size:min(13.5px,4.4cqh)}
}

/* 2x2: Santa on top, big; the words and the form under him */
.moosa-banner[data-size="2x2"] .mb{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "stage" "form";grid-template-rows:auto 1fr auto;row-gap:14px;padding:26px}
.moosa-banner[data-size="2x2"] .mb-pic{right:50%;translate:50% 0}

/* narrow tile (tablet, phone): words, Santa, then the form */
@container (max-width:439px){
  .mb{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "stage" "form" "explore";grid-template-rows:auto auto auto auto;row-gap:14px;padding:22px}
  .mb-side{display:contents}
  .mb-stage{grid-area:stage;flex:none}
  .mb-explore{grid-area:explore;justify-self:end;align-self:auto;margin:0;font-size:15px}
  .moosa-banner .mb-title{font-size:30px}
  .mb-tagline{font-size:16px}
  .mb-stage{aspect-ratio:1220/720}
  .mb-input,.mb-lang-btn,.mb-btn,.mb-player{height:46px;font-size:16px}
  .mb-status{position:static;font-size:14px;white-space:normal}
}
@media(max-width:1050px){.mb-stage{flex:none;aspect-ratio:1220/720}.mb-side{justify-content:center}}
@media(prefers-reduced-motion:reduce){.mb-btn,.mb-play{transition:none}.mb-stage.is-loading .mb-play{animation:none}}
