/* Spooky Pals · guest.css — a guest Ghostie's card and the home welcome (guest.js). Alma, 24-oct-2026.
 * The card is <dialog class="sv ga">: secret-friend.css gives the frame (cream copy under a picture), this file gives the
 * guest's own dress. Palette picked from Alma's art: marigold petals, magenta flowers, leaves, and the site's night plum.
 * Motif: the papel picado string (drawn in guest.js) and the path of marigold petals. One curve for all motion. */
:root{--ga-night:#2a1830;--ga-night-2:#43213f;--ga-marigold:#f2a541;--ga-marigold-deep:#e8812a;--ga-magenta:#c8326e;--ga-leaf:#2f7a52;--ga-cream:#fff6e8;--ga-ease:cubic-bezier(.23,1,.32,1)}
body.ga-lock{overflow:hidden}

/* ---------- papel picado + petals (shared) ---------- */
.ga-picado{position:absolute;left:0;top:0;width:100%;height:50px;overflow:hidden;pointer-events:none}
.ga-string{fill:none;stroke:#ead9c2;stroke-width:1.2}
.ga-flag{transform-box:fill-box;transform-origin:50% 0}
@media (prefers-reduced-motion:no-preference){
  .ga-flag{animation:ga-sway 5.2s ease-in-out infinite alternate}
  .ga-flag:nth-child(3n+1){animation-duration:6.1s;animation-delay:-1.4s}
  .ga-flag:nth-child(3n+2){animation-duration:4.6s;animation-delay:-2.9s}
  .ga-flag:nth-child(4n){animation-direction:alternate-reverse}
}
@keyframes ga-sway{from{transform:rotate(-2.6deg)}to{transform:rotate(2.6deg)}}
.ga-petals{position:absolute;pointer-events:none}
.ga-marigold{display:block;flex:none}

/* ---------- the card ---------- */
dialog.sv.ga{border-color:#c9a98f}
dialog.sv.ga::backdrop{background:#1a0f1fcc}
.ga-visual{background:radial-gradient(70% 55% at 50% 64%,#6a2f45 0,#6a2f4500 70%),linear-gradient(180deg,#1b1022,var(--ga-night) 45%,var(--ga-night-2))}
.ga-visual .ga-picado{height:56px}
.ga-glow{position:absolute;left:50%;bottom:16%;width:72%;aspect-ratio:1;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,#f2a54159,#f2a54100);z-index:0}
.ga-visual .ga-petals{left:4%;right:4%;bottom:7%;width:92%;height:34px;z-index:1}
dialog.sv.ga .ga-pal{bottom:10%;width:min(50%,218px);opacity:1;filter:drop-shadow(0 12px 12px #12081aaa)}
dialog.sv.ga .sv-shadow{bottom:9.5%;width:40%}
dialog.sv.ga .sv-no{top:68px}
.ga-stamp .ga-marigold{width:14px;height:14px}
.ga-fade{background:linear-gradient(180deg,var(--ga-night-2),#f6eee0)}
dialog.sv.ga .sv-motto{color:#8e2350}
.ga-tag{background:#fbe2c6;color:#5b2410}
.ga-tag .ga-marigold{width:16px;height:16px}
.ga-story{margin-top:22px}
.ga-actions{margin-bottom:6px}
.ga-game-mark{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#fbe2c6;box-shadow:inset 0 0 0 2px #e9b98e}
.ga-game-mark .ga-marigold{width:40px;height:40px}
.ga-home{margin-top:26px;padding:16px 16px 18px;border-radius:14px;background:#efe6d6;border:1px solid #d5cebf}
.ga-home p{margin:0 0 12px;font-size:13.5px;line-height:1.6;color:#4f4558}
.ga-home-btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 18px 0 20px;border:0;border-radius:99px;background:#292333;color:#fffdf7;font:700 15px/1.2 var(--display,'Outfit',sans-serif);text-align:left;touch-action:manipulation;transition:transform .14s var(--ga-ease),background-color .16s var(--ga-ease)}
.ga-home-btn .gi{width:20px;height:20px;flex:none}
.ga-home-btn:active{transform:scale(.97)}
.ga-home-btn:focus-visible,dialog.sv.ga .sv-close:focus-visible,dialog.sv.ga .sv-play:focus-visible{outline:3px solid #8e2350;outline-offset:3px}
@media (hover:hover) and (pointer:fine){.ga-home-btn:hover{background:#43213f}}

/* ---------- the home welcome, under the porch ---------- */
.ga-band{position:relative;z-index:1;padding:20px 16px 8px}
/* the floating string of papel picado (Arturo, 24-oct-2026: «el papel picado flotando o brillando para ser abierto"):
 * a real button (guest.js, aria-expanded). It sways, floats a little and a light runs along the flags; a tap parts the
 * flags from the middle out and the card unfolds where they hung. Open, the same button is a small "Fold" at the top
 * right. Transform and opacity only; asleep off screen (.gw-gift-away); reduced motion: still, and a plain fade. */
.gw-gift{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;margin:0 auto;padding:4px 6px 14px;border:0;border-radius:22px;background:transparent;color:var(--ga-night);font:inherit;text-align:center;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.gw-gift:focus-visible{outline:3px solid #8e2350;outline-offset:2px}
.gw-gift-art{position:relative;display:block;width:100%}
.gw-gift-glow{position:absolute;left:6%;right:6%;top:-8%;bottom:-30%;transition:opacity .3s var(--ga-ease)}
.gw-gift-glow::before{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(closest-side,#f2a5418c,#f2a54100);opacity:.8}
.gw-gift-svg{position:relative;display:block;width:100%;height:auto;overflow:visible}
.gw-gift-cord{fill:none;stroke:#8a6a55;stroke-width:1.3;transition:opacity .3s var(--ga-ease)}
.gw-gift-part{transform-box:fill-box;transform-origin:50% 0;transition:transform .42s var(--ga-ease) var(--gw-delay,0ms),opacity .3s var(--ga-ease) var(--gw-delay,0ms)}
.gw-gift-flag{transform-box:fill-box;transform-origin:50% 0}
.gw-gift-fold{fill:#000;fill-opacity:.16}
.gw-gift-gleam{fill:#fffdf6;opacity:0}
.gw-gift-words{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;margin-top:4px;transition:opacity .26s var(--ga-ease),transform .3s var(--ga-ease)}
.gw-gift-line{font:700 16px/1.3 var(--display,'Outfit',sans-serif);letter-spacing:-.01em;color:var(--ga-night-2);text-wrap:balance}
.gw-gift-cta{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px 0 10px;border-radius:99px;background:var(--ga-night);color:var(--ga-cream);font:800 15px/1 var(--display,'Outfit',sans-serif);letter-spacing:-.005em;box-shadow:0 3px 0 #12081a;transition:transform .14s var(--ga-ease),background-color .16s var(--ga-ease)}
.gw-gift-cta .ga-marigold{width:24px;height:24px}
.gw-gift:active .gw-gift-cta{transform:translateY(2px) scale(.98)}
.gw-gift-fold-label{display:none}
.gw-gift-chev{display:block;flex:none}
@media (hover:hover) and (pointer:fine){
  .gw-gift:hover .gw-gift-cta{background:var(--ga-night-2)}
  .gw-gift:hover .gw-gift-fold-label{background:#43213f14}
}
@media (prefers-reduced-motion:no-preference){
  .gw-gift-svg{animation:gw-float 5.6s ease-in-out infinite alternate}
  .gw-gift-glow::before{animation:gw-glow 3.8s ease-in-out infinite alternate}
  .gw-gift-flag{animation:ga-sway 5.2s ease-in-out infinite alternate}
  .gw-gift-svg>g:nth-of-type(3n+1) .gw-gift-flag{animation-duration:6.1s;animation-delay:-1.4s}
  .gw-gift-svg>g:nth-of-type(3n+2) .gw-gift-flag{animation-duration:4.6s;animation-delay:-2.9s}
  .gw-gift-svg>g:nth-of-type(4n) .gw-gift-flag{animation-direction:alternate-reverse}
  /* the light runs along the string, flag after flag, then rests */
  .gw-gift-gleam{animation:gw-gleam 6.4s cubic-bezier(.45,0,.25,1) infinite;animation-delay:calc(var(--gw-i,0) * 70ms + 1s)}
  .gw-gift-away .gw-gift-svg,.gw-gift-away .gw-gift-glow::before,.gw-gift-away .gw-gift-flag,.gw-gift-away .gw-gift-gleam{animation-play-state:paused}
  /* the tap: the flags part from the middle out, the cord and the words fade */
  .ga-band.is-parting .gw-gift-part{transform:translate(var(--gw-dx,0),var(--gw-dy,0)) rotate(var(--gw-rot,0));opacity:0}
  .ga-band.is-parting .gw-gift-cord,.ga-band.is-parting .gw-gift-glow{opacity:0}
  .ga-band.is-parting .gw-gift-words{opacity:0;transform:translateY(6px)}
  /* and the card unfolds where they hung, its own string dropping in */
  .ga-band.is-unfolding .ga-band-card{transform-origin:50% 0;animation:gw-unfold .5s var(--ga-ease) both}
  .ga-band.is-unfolding .ga-band-card>.ga-picado{animation:gw-drop .6s var(--ga-ease) .1s both}
}
@media (prefers-reduced-motion:reduce){
  .ga-band.is-unfolding .ga-band-card{animation:gw-fade .28s ease both}
}
@keyframes gw-float{from{transform:translateY(2px)}to{transform:translateY(-4px)}}
@keyframes gw-glow{from{opacity:.55}to{opacity:1}}
@keyframes gw-gleam{0%{transform:translateX(0);opacity:0}3%{opacity:.8}20%,100%{transform:translateX(66px);opacity:0}}
@keyframes gw-unfold{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes gw-drop{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes gw-fade{from{opacity:0}to{opacity:1}}
/* open: the string became the card; the button stays as a small "Fold the papel picado" above its top right corner */
.ga-band.is-open .gw-gift{width:max-content;max-width:100%;margin:0 max(0px,calc((100% - 1180px) / 2)) 6px auto;padding:0;border-radius:99px}
.ga-band.is-open .gw-gift-art,.ga-band.is-open .gw-gift-words{display:none}
.ga-band.is-open .gw-gift-fold-label{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px 0 10px;border-radius:99px;font:700 14px/1.2 var(--body,'DM Sans',sans-serif);color:#5b3a52;transition:background-color .16s var(--ga-ease)}
.ga-band-card[hidden]{display:none}
@media (forced-colors:active){.gw-gift-gleam,.gw-gift-glow{display:none}.gw-gift-cta{border:1px solid ButtonText}}
.ga-band-card{position:relative;max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 124px;grid-template-areas:"kicker art" "title art" "text text" "open open";column-gap:8px;padding:58px 18px 20px;border-radius:22px;
  background:radial-gradient(60% 70% at 88% 30%,#6a2f45 0,#6a2f4500 70%),linear-gradient(160deg,#1f1226,var(--ga-night) 55%,var(--ga-night-2));
  color:var(--ga-cream);box-shadow:0 10px 30px #0b081238,0 0 0 1px #5a3550}
.ga-band-card>.ga-picado{left:14px;right:14px;width:calc(100% - 28px);height:42px}
.ga-band-copy{display:contents}
.ga-band-kicker{grid-area:kicker;align-self:end;margin:0 0 8px;font:700 12px/1.35 var(--body,'DM Sans',sans-serif);letter-spacing:1.4px;text-transform:uppercase;color:var(--ga-marigold)}
.ga-band-title{grid-area:title;align-self:start;margin:0;font:800 clamp(30px,8.4vw,46px)/1 var(--display,'Outfit',sans-serif);letter-spacing:-.035em;color:var(--ga-cream);text-wrap:balance}
.ga-band-text{grid-area:text;margin:14px 0 16px;max-width:46ch;font:500 15px/1.55 var(--body,'DM Sans',sans-serif);color:#f1e2e6;text-wrap:pretty}
.ga-band-acts{grid-area:open;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
/* «Play with Alma» leads (marigold, the invitation); «Read Alma's story» follows, quieter */
.ga-play-btn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 22px 0 16px;border:0;border-radius:99px;background:var(--ga-marigold);color:var(--ga-night);font:800 16px/1.15 var(--display,'Outfit',sans-serif);letter-spacing:-.01em;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 0 #b9661f;transition:transform .14s var(--ga-ease),box-shadow .14s var(--ga-ease),background-color .16s var(--ga-ease)}
.ga-play-btn .gi{flex:none;width:26px;height:26px;padding:5px;border-radius:50%;background:var(--ga-night);color:var(--ga-marigold)}
.ga-play-btn:active{transform:translateY(3px) scale(.98);box-shadow:0 1px 0 #b9661f}
.ga-band-open{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px 0 18px;border:1.5px solid #fff6e88c;border-radius:99px;background:transparent;color:var(--ga-cream);font:700 15px/1.15 var(--display,'Outfit',sans-serif);letter-spacing:-.01em;cursor:pointer;touch-action:manipulation;transition:transform .14s var(--ga-ease),background-color .16s var(--ga-ease)}
.ga-band-open .gi{width:18px;height:18px;flex:none}
.ga-band-open:active{transform:scale(.97)}
.ga-band-play:focus-visible,.ga-band-open:focus-visible{outline:3px solid var(--ga-cream);outline-offset:3px}
@media (hover:hover) and (pointer:fine){.ga-play-btn:hover{background:#f6b65e}.ga-band-open:hover{background:#fff6e81a}}
/* Alma stands in front of the papel picado, a little taller than her corner of the card */
.ga-band-art{grid-area:art;position:relative;align-self:end;height:150px;margin-top:-56px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gx-band-sticker{position:absolute;right:-6px;bottom:-6px;height:168px;display:block}
.ga-band-pal{display:block;width:auto;height:100%;max-width:none;filter:drop-shadow(0 10px 10px #0d0614aa)}
.ga-band-glow{position:absolute;right:-30px;bottom:-30px;width:200px;height:200px;border-radius:50%;background:radial-gradient(closest-side,#f2a54147,#f2a54100)}
.ga-band-art .ga-petals{left:-40px;right:-14px;bottom:-14px;width:calc(100% + 54px);height:26px}
@media (prefers-reduced-motion:no-preference){
  .gx-band-sticker{transition:transform .3s var(--ga-ease)}
  .ga-band-art:active .gx-band-sticker{transform:scale(.97)}
}
@media (min-width:700px){
  .ga-band{padding:28px 5% 10px}
  .ga-band-card{grid-template-columns:minmax(0,1fr) 230px;grid-template-areas:"kicker art" "title art" "text art" "open art";padding:66px 36px 30px;border-radius:26px}
  .ga-band-card>.ga-picado{height:50px}
  .ga-band-title{font-size:clamp(40px,4.4vw,58px)}
  .ga-band-text{font-size:16px}
  .ga-band-art{height:100%;min-height:200px;margin-top:-40px}
  .gx-band-sticker{height:clamp(210px,24vw,270px);right:4px;bottom:-12px}
  .ga-band-glow{width:300px;height:300px;right:-40px;bottom:-60px}
  .gw-gift{max-width:640px}
  .gw-gift-line{font-size:18px}
}
/* the guest's face leads the sticker strip, with a marigold ring */
.ga-finder-face .home-finder-disc{box-shadow:0 0 0 2px var(--ga-marigold)}

/* ---------- the holographic sticker (Arturo, 24-oct: «ella no brilla, su sticker es holográfico al llenar el frasco») ----------
 * .gx-holo-on (guest.js) = her jar is full. She does NOT glow: a foil film sits on the sticker, masked by the sticker's own
 * picture (guest.js sets mask-image to the file the browser loaded), the way album.css masks the golden foil. Iridescent
 * band + fine foil grain + a soft glare that drifts; static under reduced motion; gone in forced colours. */
dialog.sv.ga .gx-sticker{position:absolute;left:50%;bottom:10%;width:min(50%,218px);transform:translateX(-50%);z-index:2;display:block}
dialog.sv.ga .gx-sticker .ga-pal{position:relative;left:auto;bottom:auto;z-index:auto;display:block;width:100%;height:auto;transform:none}
/* Arturo, 24-oct: «el efecto de holograma se ve raro aún en Alma». Before: a 66 % rainbow multiplied over the whole
 * sticker in 34 px bands, plus a striped grain, so her sheet turned lilac / yellow / mint, the flowers and the suitcase
 * went dull and the stripes read as a pattern. Now, like real foil: the film is masked by the sticker's LUMINANCE (light
 * areas take it, the line art, the eyes and the painted face stay clean), a faint fine iridescence (40 %) and, now and
 * then, one narrow rainbow sheen that crosses at an angle and rests. Without mask-mode support it falls back to the
 * silhouette (alpha), still faint. */
.gx-holo{display:none;position:absolute;inset:0;z-index:1;pointer-events:none;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;mask-mode:luminance;
  /* the fine iridescence: soft pastel bands, many stops so they never band */
  background:repeating-linear-gradient(118deg,#ffb7de 0,#ffe3a6 18px,#c2ffe2 36px,#ade0ff 54px,#d9c6ff 72px,#ffb7de 90px);
  background-position:0 0;mix-blend-mode:multiply;opacity:.4}
/* the sheen: one narrow angled rainbow that passes, then rests off the sticker */
.gx-holo.gx-glare{z-index:2;opacity:.78;
  background:linear-gradient(112deg,#fff0 36%,#ffc2e4 41%,#ffe9a8 44.5%,#c9ffe6 48%,#b8e6ff 51.5%,#ddd0ff 55%,#fff0 60%) no-repeat;
  background-size:300% 100%;background-position:115% 0}
.gx-holo-on .gx-holo{display:block}
@media (prefers-reduced-motion:no-preference){
  html:not(.still-porch) .gx-holo-on .gx-holo{animation:gx-holo 16s ease-in-out infinite alternate}
  html:not(.still-porch) .gx-holo-on .gx-holo.gx-glare{animation:gx-glare 7.5s cubic-bezier(.45,0,.25,1) infinite}
}
/* still: the sheen parked low on her hem, softer */
@media (prefers-reduced-motion:reduce){.gx-holo.gx-glare{background-position:75% 0;opacity:.4}}
html.still-porch .gx-holo.gx-glare{background-position:75% 0;opacity:.4}
@keyframes gx-holo{to{background-position:90px 0}}
@keyframes gx-glare{0%,52%{background-position:115% 0}100%{background-position:-15% 0}}
/* the label that says what changed (in the card's picture, under "Guest Ghostie") */
.gx-holo-tag{display:none;width:max-content;max-width:100%;align-items:center;gap:8px;margin:10px 0 0;padding:6px 12px 6px 7px;border-radius:99px;
  background:linear-gradient(#fffaf3,#fffaf3) padding-box,linear-gradient(100deg,#ff8fcf,#ffd66b,#7dffc0,#79ccff,#b98cff) border-box;border:2px solid #0000;
  color:#3a1d2c;font:700 13px/1.2 var(--body,'DM Sans',sans-serif)}
.gx-holo-tag i{flex:none;width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#ff8fcf,#ffd66b 30%,#7dffc0 55%,#79ccff 75%,#b98cff)}
dialog.sv.ga.gx-holo-on .gx-holo-tag{display:flex}
/* the sticker finder: the face's own foil, and a pearly disc behind it */
.ga-finder-face .home-finder-disc{position:relative}
.ga-finder-face .home-finder-disc>.gx-holo{inset:auto;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px}
.ga-finder-face.gx-holo-on .home-finder-disc{background:conic-gradient(from 210deg,#ffe1f2,#fff3cf,#dcfff0,#dcf1ff,#ece2ff,#ffe1f2)}

/* ---------- her jar on the card (above her game) ---------- */
.gx-jar{display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;align-items:center;margin:2px 0 16px;padding:14px 16px 14px 12px;border-radius:8px;background:#fbe9d2;border:1px solid #ecc9a0}
.gx-jar[hidden]{display:none}
.gx-jar-art{display:block}
.gx-jar-svg{display:block;width:58px;height:76px;overflow:visible}
.gx-jar-title{margin:0 0 4px;font:800 16px/1.2 var(--display,'Outfit',sans-serif);letter-spacing:-.01em;color:#3a1d2c}
.gx-jar-rule{margin:0 0 6px;font-size:13.5px;line-height:1.5;color:#4f4558;text-wrap:pretty}
.gx-jar-state{margin:0;font:700 13px/1.4 var(--body,'DM Sans',sans-serif);color:#7a3d25}
.gx-jar-glass{fill:#2a1830}
.gx-jar-level{transition:transform .9s var(--ga-ease)}
.gx-jar-holo,.gx-jar-glare{display:none}
.gx-jar.is-full .gx-jar-holo{display:block;opacity:.78;mix-blend-mode:color}
.gx-jar.is-full .gx-jar-glare{display:block;fill:#fffdf6;opacity:.5}
@media (prefers-reduced-motion:no-preference){
  .gx-jar.is-full .gx-jar-holo{animation:gx-jar-drift 4.8s linear infinite}
  .gx-jar.is-full .gx-jar-glare{animation:gx-jar-glare 3.8s ease-in-out infinite}
}
@media (prefers-reduced-motion:reduce){.gx-jar-level{transition:none}}
@keyframes gx-jar-drift{to{transform:translateX(96px)}}
@keyframes gx-jar-glare{0%,45%{transform:translateX(-34px)}100%{transform:translateX(92px)}}
.gx-jar-shine{fill:none;stroke:#fff6e8;stroke-opacity:.55;stroke-width:2.4;stroke-linecap:round}
.gx-jar-line{fill:none;stroke:#2b2238;stroke-width:2.4;stroke-linejoin:round}
.gx-jar-lid{fill:#c58f3f;stroke:#2b2238;stroke-width:2.2}
.gx-jar-lid-line{fill:none;stroke:#f3d08a;stroke-width:1.4;stroke-linecap:round}
.gx-jar-bow{fill:#1f7a4a;stroke:#2b2238;stroke-width:1.1;stroke-linejoin:round}
@media (forced-colors:active){.gx-holo,.gx-jar-holo,.gx-jar-glare{display:none!important}.gx-holo-tag{border-color:CanvasText}.gx-holo-tag i{background:CanvasText}}
/* Lupa L2 (24-oct): nothing of Alma's moves while a round is counting down or playing */
html:has(.gp:is([data-state="play"],[data-state="count"])) :is(.gw-gift-svg,.gw-gift-flag,.gw-gift-gleam,.ga-flag,.gx-holo,.gx-jar-holo,.gx-jar-glare,.gx-tile-sticker,.gx-band-sticker,.ga-float-shadow,.ga-tile-glow,.ga-band-glow,.ga-tile-fall i){animation-play-state:paused}
html:has(.gp:is([data-state="play"],[data-state="count"])) .gw-gift-glow::before{animation-play-state:paused}

/* ---------- the guest's tile, right before the 23 cards (Arturo, 24-oct: «Corrige para que siempre esté accesible para todos») ----------
 * Always there (no end date, every visitor, every home mode). Outside #character-grid, so the fold at 8, "Show 15 more"
 * and every count of the 23 never see it. Same family as the cards (cream paper, 15px corners, name and tag), dressed as
 * the guest: cempasúchil paper, a string of papel picado on its top edge, and Alma floating in an ofrenda arch.
 * Two real buttons (Arturo: «que invite a jugar con ella como invitada»): «Play with Alma» leads, «Read her story» follows. */
.ga-tile{position:relative;display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-areas:"string string" "art copy" "acts acts";column-gap:14px;margin:0 0 18px;border:1.5px solid #b97a3c;border-radius:15px;overflow:hidden;
  background:radial-gradient(90% 70% at 100% 100%,#fbd9a6 0,#fbd9a600 70%),linear-gradient(180deg,#fff6e8,#fdebd0);color:var(--ga-night);box-shadow:0 3px 0 #e8812a40}
.ga-tile>.ga-picado{grid-area:string;position:relative;z-index:0;display:block;width:100%;height:auto;overflow:visible}
.ga-tile .ga-string{stroke:#b9865c}
.ga-tile-art{grid-area:art;position:relative;z-index:1;align-self:end;height:138px;margin:-12px 0 4px 12px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ga-tile-arch{position:absolute;left:0;right:0;bottom:0;height:116px;border-radius:59px 59px 10px 10px;
  background:radial-gradient(70% 55% at 50% 72%,#6a2f45 0,#6a2f4500 70%),linear-gradient(180deg,#1b1022,var(--ga-night) 50%,var(--ga-night-2));box-shadow:inset 0 0 0 2px #f2a54166}
/* the marigold light behind her, and the petals that drift down inside the arch */
.ga-tile-glow{position:absolute;left:50%;bottom:14px;width:112px;height:112px;margin-left:-56px;border-radius:50%;background:radial-gradient(closest-side,#f2a54180,#f2a54100);opacity:.8}
.ga-tile-fall{position:absolute;left:0;right:0;bottom:0;height:116px;border-radius:59px 59px 10px 10px;overflow:hidden;pointer-events:none}
.ga-tile-fall i{position:absolute;top:-12px;width:7px;height:4.5px;border-radius:50%;background:var(--ga-marigold);opacity:0}
.ga-tile-fall i:nth-child(1){left:16%}
.ga-tile-fall i:nth-child(2){left:72%;background:var(--ga-marigold-deep);width:6px;height:4px}
.ga-tile-fall i:nth-child(3){left:40%}
.ga-tile-fall i:nth-child(4){left:86%;width:5px;height:3.5px}
.ga-tile-fall i:nth-child(5){left:58%;background:#f7c56b}
/* she hovers, so her shadow sits on the floor of the arch and breathes with her */
.ga-float-shadow{position:absolute;left:50%;bottom:3px;width:70px;height:12px;margin-left:-35px;border-radius:50%;background:radial-gradient(closest-side,#0b0612b3,#0b061200)}
.ga-band .ga-band-shadow{left:auto;right:14px;bottom:-12px;width:92px;margin:0}
@media (min-width:700px){.ga-band .ga-band-shadow{right:40px;bottom:-18px;width:130px;height:16px}}
.gx-tile-sticker{position:absolute;left:0;right:0;bottom:12px;z-index:1;display:block;width:max-content;height:126px;margin:0 auto}
.ga-tile-pal{display:block;width:auto;height:100%;max-width:none;filter:drop-shadow(0 8px 8px #12081a99)}
.ga-tile-art .ga-petals{left:-6px;right:-6px;bottom:-7px;z-index:2;width:calc(100% + 12px);height:20px}
.ga-tile-copy{grid-area:copy;align-self:center;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:0 16px 4px 0}
.ga-tile-kicker{display:flex;align-items:flex-start;gap:6px;margin:0;font:800 11px/1.35 var(--body,'DM Sans',sans-serif);letter-spacing:1.2px;text-transform:uppercase;color:#8e2350;text-wrap:balance}
.ga-tile-kicker .ga-marigold{width:16px;height:16px;margin-top:-1px}
.ga-tile-kicker-a,.ga-tile-kicker-b{display:block}
.ga-tile-kicker-b{margin-top:2px;font-weight:700;color:#6a2c14}
.ga-tile-name{margin:6px 0 0;font:800 36px/1 var(--display,'Outfit',sans-serif);letter-spacing:-.035em;color:var(--ga-night)}
.ga-tile-tag{align-self:stretch;margin:10px 0 0;padding-top:8px;border-top:1px solid #e3bd92;font:700 11px/1.45 var(--body,'DM Sans',sans-serif);letter-spacing:1.1px;text-transform:uppercase;color:#6a2c14}
.ga-tile-acts{grid-area:acts;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:12px 14px 14px}
.ga-tile-play{flex:1 1 auto;justify-content:center;min-height:50px}
.ga-tile-read{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1 1 auto;min-height:48px;padding:0 14px 0 16px;border:1.5px solid #b97a3c;border-radius:99px;background:#fff6e8;color:var(--ga-night);font:700 14.5px/1.15 var(--display,'Outfit',sans-serif);cursor:pointer;touch-action:manipulation;transition:transform .14s var(--ga-ease),background-color .16s var(--ga-ease)}
.ga-tile-read .gi{width:18px;height:18px;flex:none}
.ga-tile-read:active{transform:scale(.97)}
.ga-tile-play:focus-visible,.ga-tile-read:focus-visible{outline:3px solid #8e2350;outline-offset:3px}
@media (hover:hover) and (pointer:fine){.ga-tile-read:hover{background:#fdebd0}}
@media (prefers-reduced-motion:reduce){.ga-play-btn,.ga-tile-read,.ga-band-open{transition:none}.ga-play-btn:active,.ga-tile-read:active,.ga-band-open:active{transform:none}}
@media (min-width:700px){
  .ga-tile{max-width:620px;margin-bottom:26px;grid-template-columns:172px minmax(0,1fr);grid-template-areas:"string string" "art copy" "art acts";column-gap:22px}
  .ga-tile-art{height:196px;margin:-16px 0 16px 18px}
  .ga-tile-arch,.ga-tile-fall{height:164px;border-radius:86px 86px 12px 12px}
  .ga-tile-glow{width:160px;height:160px;margin-left:-80px;bottom:18px}
  .ga-float-shadow{width:96px;margin-left:-48px;bottom:4px}
  .gx-tile-sticker{height:176px;bottom:14px}
  .ga-tile-copy{align-self:end;padding:8px 24px 0 0}
  .ga-tile-name{font-size:44px}
  .ga-tile-acts{align-self:start;padding:14px 24px 20px 0}
  .ga-tile-play,.ga-tile-read{flex:0 1 auto}
}

/* ---------- Alma is alive (Arturo, 24-oct: «como flotante o con algún efecto que invite a jugar con ella») ----------
 * She hovers a few px with a soft sway (6.4 s), her floor shadow shrinks and fades as she rises (same clock), the
 * marigold light breathes behind her, petals drift down inside the tile's arch, and the tile's papel picado flutters.
 * Transform and opacity only; nothing leaves its own box, nothing moves the layout. Asleep off screen (.ga-asleep,
 * guest.js) and while a round runs; none of it with reduced motion or the "Still porch" switch (the glow stays, still). */
@media (prefers-reduced-motion:no-preference){
  html:not(.still-porch) :is(.gx-tile-sticker,.gx-band-sticker){animation:ga-hover 6.4s ease-in-out infinite}
  html:not(.still-porch) .ga-float-shadow{animation:ga-shadow 6.4s ease-in-out infinite}
  html:not(.still-porch) :is(.ga-tile-glow,.ga-band-glow){animation:ga-breathe 4.2s ease-in-out infinite alternate}
  html:not(.still-porch) .ga-tile-fall i{animation:ga-fall 7.5s linear infinite}
  html:not(.still-porch) .ga-tile-fall i:nth-child(2){animation-delay:-2.1s;animation-duration:8.6s}
  html:not(.still-porch) .ga-tile-fall i:nth-child(3){animation-delay:-4.4s}
  html:not(.still-porch) .ga-tile-fall i:nth-child(4){animation-delay:-5.8s;animation-duration:9.4s}
  html:not(.still-porch) .ga-tile-fall i:nth-child(5){animation-delay:-1.2s;animation-duration:6.8s}
  html.still-porch :is(.ga-tile,.ga-band-card) .ga-flag{animation:none}
  html:not(.still-porch) .ga-tile .ga-flag{animation:ga-flutter 3.4s ease-in-out infinite alternate}
  html:not(.still-porch) .ga-tile .ga-flag:nth-child(odd){animation-duration:2.9s;animation-delay:-1.1s}
  html:not(.still-porch) .ga-tile .ga-flag:nth-child(3n){animation-duration:3.9s;animation-delay:-2.3s}
  .ga-asleep :is(.gx-tile-sticker,.gx-band-sticker,.ga-float-shadow,.ga-tile-glow,.ga-band-glow,.ga-tile-fall i,.ga-flag){animation-play-state:paused}
}
@keyframes ga-hover{0%,100%{transform:translateY(0) rotate(-1.6deg)}50%{transform:translateY(-7px) rotate(1.6deg)}}
@keyframes ga-shadow{0%,100%{transform:scaleX(1);opacity:1}50%{transform:scaleX(.74);opacity:.55}}
@keyframes ga-breathe{from{transform:scale(.9);opacity:.55}to{transform:scale(1.08);opacity:1}}
@keyframes ga-fall{0%{transform:translate(0,0) rotate(0);opacity:0}10%{opacity:.95}50%{transform:translate(8px,64px) rotate(160deg)}85%{opacity:.85}100%{transform:translate(-4px,128px) rotate(320deg);opacity:0}}
@keyframes ga-flutter{from{transform:rotate(-3.4deg) skewX(-2deg)}to{transform:rotate(3.4deg) skewX(2deg)}}
@media (forced-colors:active){.ga-tile{border-color:CanvasText}.ga-tile-read,.ga-play-btn,.ga-band-open{border:1px solid ButtonText}.ga-tile-fall,.ga-tile-glow{display:none}}
/* the welcome's title never waits behind another script's "written in light" cover (magic-transitions.js): readable at once */
.ga-band .mt-ink{clip-path:none}
.ga-band .mt-ink::before,.ga-band .mt-ink::after{display:none}

/* ---------- the floating "Play with Alma!" button (Arturo, 24-oct: «en la portada surja como un botón flotante, que refleje
 * algo holográfico que invite a hacer click») ----------
 * guest.js places it (bottom right, stacked above whatever else floats there) and decides when it shows (.is-in).
 * Her face inside a holographic ring that slowly turns, the ring's own soft glow, a gentle bob; the pill slides out once a
 * visit (.is-telling). Reduced motion and "Still porch": no turning, no bob, the ring stays iridescent and still. */
.ga-fab{position:fixed;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;width:68px;height:68px;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(calc(10px - var(--ga-fab-lift,0px))) scale(.95);
  transition:opacity .3s ease,transform .35s var(--ga-ease),visibility 0s linear .35s}
/* guest.js lifts it (--ga-fab-lift) above whatever else floats below it: a transform, so nothing on the page reflows */
.ga-fab.is-in{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(calc(-1 * var(--ga-fab-lift,0px)));transition:opacity .3s ease,transform .35s var(--ga-ease),visibility 0s}
.ga-fab.is-short{width:56px;height:56px}
html:has(dialog[open]) .ga-fab{opacity:0;visibility:hidden;pointer-events:none}
.ga-fab-btn{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:none;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ga-fab-orb{position:absolute;inset:0;display:block;border-radius:50%;box-shadow:0 8px 18px #1a0f1f66;transition:transform .14s var(--ga-ease)}
.ga-fab-ring{position:absolute;inset:0;display:block;border-radius:50%;background:conic-gradient(from 0deg,#ff9fd6,#ffe08a,#9dffd2,#8fd6ff,#c7a4ff,#ff9fd6)}
.ga-fab-ring::before{content:'';position:absolute;inset:-3px;z-index:-1;border-radius:50%;background:inherit;filter:blur(9px);opacity:.6}
.ga-fab-face{position:absolute;inset:5px;display:block;overflow:hidden;border-radius:50%;background:radial-gradient(circle at 50% 62%,#6a2f45,var(--ga-night) 72%);box-shadow:inset 0 0 0 2px #fff6e8d9}
.ga-fab-face img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.ga-fab-face>.gx-holo{inset:0}
.ga-fab-btn:active .ga-fab-orb{transform:scale(.95)}
.ga-fab-btn:focus-visible,.ga-fab-x:focus-visible{outline:3px solid #fff6e8;outline-offset:2px;box-shadow:0 0 0 7px #8e2350}
.ga-fab-btn:focus-visible{border-radius:50%}
/* the pill that says what it is, once a visit */
.ga-fab-pill{position:absolute;right:calc(100% + 10px);top:50%;display:flex;align-items:center;min-height:40px;padding:0 16px;border:2px solid #0000;border-radius:99px;
  background:linear-gradient(var(--ga-night),var(--ga-night)) padding-box,linear-gradient(100deg,#ff9fd6,#ffe08a,#9dffd2,#8fd6ff,#c7a4ff) border-box;
  color:var(--ga-cream);font:800 15px/1.1 var(--display,'Outfit',sans-serif);letter-spacing:-.01em;white-space:nowrap;box-shadow:0 6px 16px #1a0f1f4d;
  opacity:0;pointer-events:none;transform:translate(10px,-50%) scale(.96);transform-origin:100% 50%;transition:opacity .25s ease,transform .32s var(--ga-ease)}
.ga-fab.is-telling .ga-fab-pill{opacity:1;pointer-events:auto;transform:translate(0,-50%)}
.ga-fab.is-short .ga-fab-pill{min-height:36px;font-size:14px}
/* hide for this visit: small to see, 44 px to touch */
.ga-fab-x{position:absolute;left:-6px;top:-6px;z-index:2;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1.5px solid #fff6e8;border-radius:50%;background:var(--ga-night);color:var(--ga-cream);cursor:pointer;touch-action:manipulation}
.ga-fab-x::before{content:'';position:absolute;inset:-10px;border-radius:50%}
@media (hover:hover) and (pointer:fine){.ga-fab-btn:hover .ga-fab-orb{transform:scale(1.05)}.ga-fab-btn:hover~.ga-fab-x,.ga-fab-x:hover{background:#43213f}}
@media (prefers-reduced-motion:no-preference){
  html:not(.still-porch) .ga-fab-ring{animation:ga-spin 9s linear infinite}
  html:not(.still-porch) .ga-fab-ring::before{animation:ga-fab-glow 3.4s ease-in-out infinite alternate}
  html:not(.still-porch) .ga-fab-btn{animation:ga-fab-bob 3.6s ease-in-out infinite alternate}
  .ga-fab:not(.is-in) :is(.ga-fab-ring,.ga-fab-btn),.ga-fab:not(.is-in) .ga-fab-ring::before,.ga-fab.ga-asleep :is(.ga-fab-ring,.ga-fab-btn),.ga-fab.ga-asleep .ga-fab-ring::before{animation-play-state:paused}
}
@media (prefers-reduced-motion:reduce){
  .ga-fab,.ga-fab.is-in{transform:translateY(calc(-1 * var(--ga-fab-lift,0px)))}
  .ga-fab{transition:opacity .3s ease,visibility 0s linear .3s}.ga-fab.is-in{transition:opacity .3s ease,visibility 0s}
  .ga-fab-pill,.ga-fab.is-telling .ga-fab-pill{transform:translate(0,-50%);transition:opacity .25s ease}
  .ga-fab-orb{transition:none}.ga-fab-btn:active .ga-fab-orb{transform:none}
}
@keyframes ga-spin{to{transform:rotate(360deg)}}
@keyframes ga-fab-glow{from{opacity:.35}to{opacity:.75}}
@keyframes ga-fab-bob{from{transform:translateY(1px)}to{transform:translateY(-5px)}}
@media (forced-colors:active){.ga-fab-ring{background:ButtonText}.ga-fab-ring::before{display:none}.ga-fab-pill{border-color:ButtonText}}

/* ---------- the guest's round (25-oct, Arturo on his iPhone: «abre mal la pantalla») ----------
   kit v34 gives the card .gp-round while a round runs (countdown, play, pause), as on the 23 story cards, and its page lock
   holds the card still (overflow hidden, body fixed). On top of that, a finger that lands on the card AROUND the game
   (the jar, the heading) can only pinch-zoom, never pan, and nothing bounces or chains to the page. Sizes do not change
   here, so the game the lock just measured never moves. The phone-on-its-side full screen (.gp-full) is left to the kit. */
dialog.sv.ga.gp-round:not(.gp-full){touch-action:pinch-zoom;overscroll-behavior:none}
/* the guest's How to play on a narrow phone (320 px, Spanish: the card was 31 px taller than the card's visible part): the
   game takes a little of the card's side padding, and the tap demo sits beside the steps instead of above them, so the
   whole card (Ready included) fits on one screen. Same size in every state: nothing moves when the round starts. */
@media (max-width:359px){dialog.sv.ga .sv-slot{margin-inline:-13px}}
dialog.sv.ga .gp-narrow .gp-rules-how{flex-wrap:nowrap;align-items:flex-start}
dialog.sv.ga .gp-narrow .gp-rules-how .gp-demo-box{width:48px;height:48px;margin-top:2px}
dialog.sv.ga .gp-narrow .gp-rules-how .gp-rules-steps{flex:1 1 0}
/* 25-oct (Lupa M2, Alma's two games): on a small phone her end card stays short, so the finished ofrenda (with its empty
   places) shows above it and the game's Sound button never sits on the card */
dialog.ga .gp.gp-short[data-state=end] .gp-end{gap:4px;padding:8px 10px}
dialog.ga .gp.gp-short .gp-end-card{gap:2px;padding:7px 10px 8px}
dialog.ga .gp.gp-short .gp-end-card .gp-final{font-size:23px;line-height:1.05}
dialog.ga .gp.gp-short .gp-best{font-size:12.5px;line-height:1.2}
dialog.ga .gp.gp-short .gp-glow{max-width:none;font-size:11.5px;line-height:1.22;gap:6px}
dialog.ga .gp.gp-short .gp-glow .gp-jar{width:22px;height:auto}
dialog.ga .gp.gp-short .gp-end-card .gp-cheer{font-size:12px;line-height:1.22;max-width:none}
dialog.ga .gp.gp-short .gp-next-btn{min-height:46px;padding:3px 2px}
dialog.ga .gp.gp-short .gp-mode-next{margin:1px 0}
