/* Galaxy card shuffle (Juno 2026-10-04). Two bots carry two cards, stack + shuffle them, the boss says Yes or No.
   Decorative only: the layer is aria-hidden and pointer-events:none, cards only get transforms (no layout change). */
.sec-galaxy { overflow: hidden; overflow: clip; }
.sec-galaxy .wrap { position: relative; }
.galaxy-clips { grid-auto-rows: 1fr; }               /* equal rows, so a committed swap can't change the grid height */
.galaxy-clip { position: relative; }
.galaxy-clip.gx-lift { z-index: 6; }
.galaxy-clip.gx-lift .galaxy-clip-frame { box-shadow: 0 14px 26px rgba(0,0,0,.45); }
.galaxy-clip.gx-top { z-index: 7; }

.gx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.gx-bot { position: absolute; left: 0; top: 0; width: 44px; height: 52px; will-change: transform; }
.gx-bot-body { position: absolute; left: 4px; top: 0; width: 36px; height: 36px; background: var(--gx-c, var(--teal)); border: 2px solid #0d0b1f; }
.gx-bot--square .gx-bot-body { border-radius: 7px; }
.gx-bot--circle .gx-bot-body { border-radius: 50%; }
.gx-bot--tri .gx-bot-body { background: none; border: 0; width: 0; height: 0; left: 2px;
  border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 36px solid var(--gx-c, var(--orange)); }
.gx-eyes { position: absolute; left: 50%; top: 13px; transform: translateX(-50%); display: flex; gap: 4px; }
.gx-bot--tri .gx-eyes { top: 18px; }
.gx-eyes i { width: 9px; height: 10px; border-radius: 50%; background: #fff; border: 1.5px solid #0d0b1f; position: relative; }
.gx-eyes i::after { content: ""; position: absolute; width: 4px; height: 5px; border-radius: 50%; background: #0d0b1f; top: 2px; left: 3px; }
.gx-legs { position: absolute; left: 12px; top: 36px; width: 20px; height: 14px; }
.gx-legs i { position: absolute; top: 0; width: 4px; height: 13px; background: #0d0b1f; border-radius: 2px; transform-origin: 50% 0; }
.gx-legs i:first-child { left: 2px; } .gx-legs i:last-child { right: 2px; }
.gx-arms { position: absolute; left: -2px; right: -2px; top: 6px; height: 4px; }
.gx-arms::before, .gx-arms::after { content: ""; position: absolute; top: 0; width: 10px; height: 4px; background: #0d0b1f; border-radius: 2px; transition: transform .2s; }
.gx-arms::before { left: 0; transform-origin: 100% 50%; } .gx-arms::after { right: 0; transform-origin: 0 50%; }
.gx-bot.is-carry .gx-arms::before { transform: rotate(60deg); } .gx-bot.is-carry .gx-arms::after { transform: rotate(-60deg); }
.gx-bot.is-walk .gx-legs i:first-child { animation: gx-step .26s ease-in-out infinite alternate; }
.gx-bot.is-walk .gx-legs i:last-child { animation: gx-step .26s ease-in-out infinite alternate-reverse; }
.gx-bot.is-walk .gx-bot-body, .gx-bot.is-walk .gx-eyes { animation: gx-bob .26s ease-in-out infinite alternate; }
@keyframes gx-step { from { transform: rotate(22deg); } to { transform: rotate(-22deg); } }
@keyframes gx-bob { to { translate: 0 -2px; } }

.gx-boss { width: 54px; height: 62px; }
.gx-boss .gx-bot-body { width: 46px; height: 46px; left: 4px; }
.gx-boss .gx-eyes { top: 16px; } .gx-boss .gx-legs { top: 46px; left: 17px; }
.gx-boss.is-tap .gx-legs i:last-child { animation: gx-tap .22s ease-in-out infinite alternate; }
@keyframes gx-tap { to { transform: rotate(-28deg); } }
.gx-bubble { position: absolute; right: calc(100% + 8px); top: 2px; white-space: nowrap; font: 800 .9rem/1 var(--font-sans, system-ui);
  padding: .45rem .6rem; background: var(--card, #fff); color: var(--ink, #14131f); border: 2px solid #0d0b1f; border-radius: 10px;
  opacity: 0; transform: scale(.6); transform-origin: 100% 60%; transition: opacity .15s, transform .18s cubic-bezier(.3,1.6,.6,1); }
.gx-bubble::after { content: ""; position: absolute; right: -8px; top: 12px; border: 6px solid transparent; border-left: 8px solid #0d0b1f; border-right: 0; }
.gx-bubble.is-on { opacity: 1; transform: none; }
.gx-bubble.is-yes { background: var(--teal, #0f6e6a); color: #fff; }
.gx-bubble.is-no { background: var(--pink, #f25aa6); color: #fff; }
@media (prefers-reduced-motion: reduce) { .gx-layer { display: none; } }
