/* Spooky Pals · seals.css — wax seals (seals.js): badges, stamp-press moment, album feet badge. */
.gs-badge{display:inline-block;flex:none;width:44px;height:44px;line-height:0;vertical-align:middle}
.gs-badge .gs-art{display:block;width:100%;height:100%}
/* locked: an empty impression pressed into the paper, waiting for its wax (not a broken grey disc) */
.gs-badge.is-locked{position:relative}
.gs-badge.is-locked .gs-art{filter:grayscale(1) sepia(.4) hue-rotate(215deg) brightness(1.12) contrast(.62);opacity:.42;mix-blend-mode:multiply}
.gs-badge.is-locked::after{content:'';position:absolute;inset:4%;border-radius:50%;border:1.5px dashed #8f7fa8;box-shadow:inset 0 1px 2px #2b223824}
.gs-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Stamp press: fixed overlay inside the open dialog (top layer) or the page. */
.gs-press{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;background:#251e3466;opacity:1;transition:opacity .3s ease;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gs-press.is-leaving{opacity:0}
.gs-press-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:min(300px,100%);padding:26px 20px 22px;border-radius:24px;background:#f7f2e8;color:#292333;text-align:center;box-shadow:0 18px 40px #1a12262e;font-family:var(--body,system-ui,sans-serif)}
.gs-press-seal{position:relative;width:150px;height:150px;line-height:0}
.gs-press-seal .gs-art{width:100%;height:100%}
.gs-press-ring{position:absolute;left:50%;top:26px;width:150px;height:150px;margin-left:-75px;border-radius:50%;border:6px solid #66518b;opacity:0;pointer-events:none}
.gs-press-text{margin:10px 0 0;font:700 24px/1.15 var(--display,system-ui,sans-serif);letter-spacing:-.4px;text-wrap:balance}
.gs-press-sub{margin:0;font-size:14px;line-height:1.45;color:#62576a}
@media (prefers-reduced-motion:no-preference){
  .gs-press:not(.is-calm){animation:gs-fade .25s ease both}
  .gs-press:not(.is-calm) .gs-press-card{animation:gs-card .35s cubic-bezier(.3,1.4,.5,1) both}
  .gs-press:not(.is-calm) .gs-press-seal{animation:gs-stamp .62s cubic-bezier(.2,.9,.3,1) .12s both}
  .gs-press:not(.is-calm) .gs-press-ring{animation:gs-ring .6s ease-out .5s both}
  .gs-press:not(.is-calm) .gs-press-text,.gs-press:not(.is-calm) .gs-press-sub{animation:gs-fade .3s ease .62s both}
}
@keyframes gs-fade{from{opacity:0}to{opacity:1}}
@keyframes gs-card{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
/* lifts, presses down with a squash, settles */
@keyframes gs-stamp{0%{opacity:0;transform:translateY(-60px) scale(1.7) rotate(-14deg)}55%{opacity:1;transform:translateY(0) scale(.86,.8) rotate(0)}75%{transform:scale(1.05,1.08)}100%{opacity:1;transform:none}}
@keyframes gs-ring{0%{opacity:.55;transform:scale(.7)}100%{opacity:0;transform:scale(1.35)}}
.gs-press.is-calm .gs-press-card{transition:opacity .3s ease}

/* Story dialog: seal next to the game heading (drawn by pals/kit.js) */
.gp-head{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.gp-head .gs-badge{width:56px;height:56px}
.gp-head-text{min-width:0}
.gp-head-title{margin:0;font:600 23px/1.2 var(--display,system-ui,sans-serif);letter-spacing:-.4px;overflow-wrap:anywhere}
.gp-head-pitch{margin:3px 0 0;font-size:13px;line-height:1.45;color:#62576a}
.gp-soon{display:flex;align-items:center;gap:12px;margin-top:26px;padding:14px 16px;border:1px dashed #b6a7c6;border-radius:16px;font-size:13px;line-height:1.5;color:#62576a}
.gp-soon .gs-badge{width:44px;height:44px}
.gp-end-seal{display:flex;align-items:center;gap:8px;margin:2px 0 0;font-weight:700;font-size:14px}
.gp-end-seal .gs-badge{width:52px;height:52px}
.gp-end .gp-host.has-seal{display:none}

/* Seal on the main character cards — shows once the Ghostie's own game is played */
.character-art .gs-card-seal{position:absolute;left:10px;bottom:10px;width:56px;height:56px;z-index:3;transform:rotate(-8deg);filter:drop-shadow(0 3px 6px rgba(20,12,32,.35));pointer-events:none;animation:gs-card-press .45s cubic-bezier(.2,1.6,.4,1) both}
.character-art .gs-card-seal svg{display:block;width:100%;height:100%}
@keyframes gs-card-press{from{opacity:0;transform:rotate(-8deg) scale(1.6)}to{opacity:1;transform:rotate(-8deg) scale(1)}}
@media (prefers-reduced-motion:reduce){.character-art .gs-card-seal{animation:none}}
