/* THE GROWL CARD (the kit's one: ui/GrowlCard.astro; /design-system "Growl cards"; its browser twin kit-post.js growlCard;
   its scripts kit-gcard.js). Maayan's framed card, 2026-11-17 (built in /design-system/sandbox-growls). ONE FILE, ONE
   RULE PER PART, IN THE ORDER OF THE CARD:
     .g-gcard               a column: its top row (maker, Open ›), the card, its row (♥ saves, Save)
     .g-gcard__card         the copper frame, 340 by 513 shown 297 wide; it fades in once loaded (is-ready)
       __head               its bar: level disc, name, ⋮ disc (a list's)
       __art                its window: its backdrop and picture (a sheet card), or its figure (a miniature)
       __box                its kind's tab, its words, its numbers, its special skill (a sheet card)
       __steps              ‹ its pose's name › (a miniature)
   Its kind's colour (--fr-solid) from data-tone. */

/* the card's colours by kind: monster red, NPC green, hero blue, item gold, spell purple, miniature teal, a place brown;
   the kit's one map, a growl's page's head too (.g-tone: DropSheet.astro) */
:is(.g-gcard--growl, .g-tone) { --kind-tone: #b01c0e; }
:is(.g-gcard--growl, .g-tone)[data-tone="ally"] { --kind-tone: #2f6e47; }
:is(.g-gcard--growl, .g-tone)[data-tone="hero"] { --kind-tone: #2c5aa0; }
:is(.g-gcard--growl, .g-tone)[data-tone="item"] { --kind-tone: #9c6c12; }
/* a growl's type its colour (Maayan, 2026-11-20: "character - sky blue. npc - grass green. animal - feather orange. building =
   gray. shop = light brown. monster = red. object now black, should be brown"): GrowlTiles and the creator's preview tone
   = the growl's type; a monster (creature) the red of every card */
:is(.g-gcard--growl, .g-tone)[data-tone="character"] { --kind-tone: #2f86c9; }
:is(.g-gcard--growl, .g-tone)[data-tone="npc"] { --kind-tone: #3f8f2f; }
:is(.g-gcard--growl, .g-tone)[data-tone="animal"] { --kind-tone: #d4741c; }
:is(.g-gcard--growl, .g-tone)[data-tone="building"] { --kind-tone: #6a6a6a; }
:is(.g-gcard--growl, .g-tone)[data-tone="object"] { --kind-tone: #7a4f28; }
:is(.g-gcard--growl, .g-tone)[data-tone="spell"] { --kind-tone: #6b3aa0; }
:is(.g-gcard--growl, .g-tone)[data-tone="miniature"] { --kind-tone: #1f7a7a; }
:is(.g-gcard--growl, .g-tone):is([data-tone="location"], [data-tone="map"], [data-tone="tavern"]) { --kind-tone: #6d4a2b; }
:is(.g-gcard--growl, .g-tone)[data-tone="shop"] { --kind-tone: #a87b4f; }

/* ---- the whole: top row, card, social row ---- */
.g-gcard { display: flex; flex-direction: column; gap: var(--g-3); width: var(--g-gcard-w, 297px); max-width: 100%; min-width: 0; }
.g-gcard[hidden] { display: none; }   /* hidden is hidden: its flex never beats it (a type tab pressed over a grid, profile.js) */
.g-gcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--g-3); min-height: 28px; }
.g-gcard__by { align-self: flex-start; display: flex; align-items: center; gap: var(--g-2); min-width: 0; font: var(--g-w) 13px/1.2 var(--g-font-display); color: var(--g-text-2); text-decoration: none; }
.g-gcard__by[hidden] { display: flex; visibility: hidden; }
.g-gcard__by[href]:hover > span:last-child { text-decoration: underline; }   /* their page a tap away (Maayan, 2026-11-18) */
/* its byline and its Open, a finger's height to tap, their look the same (the dots' way: kit-dots.css; review S9, A15) */
.g-gcard__by[href], .g-gcard__open { position: relative; } .g-gcard__by[href]::after, .g-gcard__open::after { content: ""; position: absolute; inset: calc((100% - var(--g-touch)) / 2) 0; }
/* bare: the card alone (a person's grid: ThingList cards), nothing over or under it, the whole card a tap to open it */
.g-gcard--bare :is(.g-gcard__top, .g-gcard__row, .g-gcard__by) { display: none; }
.g-gcard--bare { cursor: pointer; }
.g-gcard__by > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-gcard__open { display: inline-flex; align-items: center; gap: 2px; flex: none; margin-inline-start: auto; padding: 4px 0 4px 8px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--g-font-display); color: var(--g-text); text-decoration: none; }
.g-gcard__open > span { display: inline-grid; width: 18px; height: 18px; }
.g-gcard__open svg { width: 100%; height: 100%; }
.g-gcard__open:hover { text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .g-gcard__open > span { transform: scaleX(-1); }
.g-gcard__row { display: flex; align-items: center; justify-content: space-between; gap: var(--g-3); min-height: 36px; padding-inline-start: var(--g-1); position: relative; z-index: 7; }   /* over the card's shadow (Maayan, 2026-11-20) */
.g-gcard__row:empty { display: none; }
.g-gcard__row .growl__counts { margin: 0; }
.g-gcard__row :is(.g-btn, .gadd) { flex: none; height: 36px; min-height: 36px; padding: 0 var(--g-4); margin-inline-start: auto; font-size: var(--g-t-sub); }
.g-gcard__row .gadd svg { width: 18px; height: 18px; }
:is(.gmbook:not(.drop--dark), .g-gcard--light) :is(.g-gcard__by, .g-gcard__open, .growl__counts) { color: var(--g-ink-2); }   /* on a book's light page */

/* ---- the frame (his framed card, 2026-11-17; built in /design-system/sandbox-growls): designed at 340 by 513, shown
   297 wide (zoom), one size everywhere. A copper edge; every part's edge a dark line with a light line inside it ---- */
.g-gcard--growl { --fr-edge: linear-gradient(160deg, #f8e3cc, #dcae86 30%, #f4d8bb 55%, #c99670 80%, #f2d8bd); --fr-line: #f3d9bf; --fr-dark: #5e2412;
  --fr-paper: #f6e8d4; --fr-rule: #c9a98d; --fr-rule-soft: #c9a98db3; --fr-ink: #2a1a10; --fr-on: #fff8ef; --fr-solid: #9a1d12; --fr-edged: inset 0 0 0 1.5px var(--fr-line);
  --fr-bar: linear-gradient(color-mix(in srgb, var(--fr-solid) 85%, #fff), color-mix(in srgb, var(--fr-solid) 80%, #000)); }
/* its bars its kind's colour: a monster red, a hero blue, an NPC green, an item black, a spell purple, a place brown */
.g-gcard--growl[data-tone="hero"] { --fr-solid: #24508f; }
.g-gcard--growl[data-tone="ally"] { --fr-solid: #2a6243; }
.g-gcard--growl[data-tone="item"] { --fr-solid: #141414; --fr-bar: linear-gradient(#262626, #0e0e0e); }
.g-gcard--growl[data-tone="character"] { --fr-solid: #2a78b8; }   /* sky blue */
.g-gcard--growl[data-tone="npc"] { --fr-solid: #3a8a2c; }   /* grass green */
.g-gcard--growl[data-tone="animal"] { --fr-solid: #cf6d17; }   /* feather orange */
.g-gcard--growl[data-tone="building"] { --fr-solid: #5c5c5c; }   /* gray */
.g-gcard--growl[data-tone="object"] { --fr-solid: #6e4520; }   /* brown */
.g-gcard--growl[data-tone="spell"] { --fr-solid: #5d3591; }
.g-gcard--growl[data-tone="shop"] { --fr-solid: #9c7146; }   /* light brown */
.g-gcard--growl:is([data-tone="location"], [data-tone="map"], [data-tone="tavern"], [data-tone="adventure"], [data-tone="battle"], [data-tone="blackboard"]) { --fr-solid: #634127; }
.g-gcard--growl .g-gcard__card { zoom: .8735; position: relative; box-sizing: border-box; width: 340px; height: 513px; display: flex; padding: 1.5px 1.5px 3.5px;
  border: 8.5px solid transparent; border-radius: 21px; background: linear-gradient(var(--fr-paper), var(--fr-paper)) padding-box, var(--fr-edge) border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45); color: var(--fr-ink); -webkit-user-select: none; user-select: none; }
.g-gcard--growl .g-gcard__card:has(.g-gcard__hit) { cursor: pointer; }   /* one tap to its page, when it has one */
/* the card drawn at once with the page, its words and frame (Maayan, 2026-11-17: "no delays what so ever"); only its picture
   or figure fades in once loaded (.g-gcard__art > img.is-in, .g-gcard__fig.is-in) */

/* ---- the face: a column, each part pushing the next ---- */
.g-gcard--growl .g-gcard__face { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* ITS INSIDE ROUNDED WITH ITS EDGE (Maayan, 2026-11-26: "the inner rounded corner should have a bigger radius to match somehow
   the outer radius ... a little bit smaller than that ... they should look like they're a whole thing"; "the number should
   always be on top of the stroke"): --gc-in, the edge's own radius less its width and the gap inside it (a metal card's
   edge as wide as a plain one's); its name bar's top corner, its box's and its skill bar's foot follow it, nothing
   clipped (its level's disc over the edge) */
.g-gcard--growl { --gc-in: 11px; }   /* a metal card's edge as wide as a plain one's (Maayan, 2026-11-26: "no jumps when we move from one card to another") */
.g-gcard:not(.g-gcard--growl) .g-gcard__face { display: contents; }   /* a look on trial (the sandbox) lays its own */
.g-gcard__back { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #050505; opacity: 0; transition: opacity .8s ease-in-out; }
.g-gcard__art:has(> img.is-in) > .g-gcard__back { opacity: 1; }   /* the picture's dark backdrop comes in with it, never black before it */
.g-gcard__back > i { position: absolute; inset: 0; }
.g-gcard__back > i:last-child { filter: grayscale(1); mix-blend-mode: overlay; opacity: var(--back-op, .4); }   /* its place's strength: kit-gcard.js backdrop */
.g-gcard__back > i > i { position: absolute; inset: 0; background: center / cover no-repeat; }
.g-gcard__face > .g-gcard__hit { position: absolute; inset: 0; z-index: 5; display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }

/* its bar: level disc, name, ⋮ disc (the level's mirrored) */
.g-gcard--growl .g-gcard__head { flex: none; position: relative; z-index: 6; display: flex; align-items: center; height: 41px; margin-top: 1px; padding-block: 0; padding-inline: 70px 58px; box-sizing: border-box;
  background: var(--fr-bar); border: 1.5px solid var(--fr-dark); border-radius: 6px var(--gc-in, 11px) 2px 2px; box-shadow: var(--fr-edged); color: var(--fr-on); pointer-events: none; }
.g-gcard--growl .g-gcard__head:not(:has(.g-gcard__lvl:not([hidden])))  { padding-inline-start: 14px; }
.g-gcard--growl .g-gcard__head:not(:has(.g-gcard__menu:not([hidden]))) { padding-inline-end: 10px; }
/* its name and special at the start whatever is around it, a right-to-left page's right (Maayan, 2026-11-26) */
.g-gcard__name { text-align: start; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 30px/1 var(--g-font-display); letter-spacing: .005em; }
.g-gcard__name:where([data-long]) { font-size: 20px; }
/* v1: a growl saved before the bricks (GrowlCard.astro v1, lib/growl/version.js), the word on a small plate right after its name */
.g-gcard__v1 { flex: none; margin-inline-start: var(--g-2); padding: var(--g-1) var(--g-2); border: var(--g-hair) solid currentColor; border-radius: var(--g-r-sm); font: var(--g-w-bold) var(--g-t-caption)/1 var(--g-font); font-style: normal; letter-spacing: var(--g-track-caps); opacity: .85; }
.g-gcard__head:has(.g-gcard__v1) .g-gcard__name { flex-grow: 0; }
.g-gcard__lvl { flex: none; display: grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%; font: normal 700 16px/1 var(--g-font-display);
  color: var(--kind-tone); background: #efe5cc; border: 5px solid var(--kind-tone); box-shadow: 0 0 0 2px #e9e4dc, 0 3px 8px rgba(0, 0, 0, .35); }   /* a growl's page's head */
.g-gcard__lvl[hidden] { display: none; }
.g-gcard__lvl--lg { width: 52px; height: 52px; border-width: 6px; font-size: 20px; }
.g-gcard--growl .g-gcard__head > .g-gcard__lvl { position: absolute; inset-inline-start: 1px; top: -5px; width: 49px; height: 49px; border: 1.5px solid var(--fr-dark); background: var(--fr-solid);
  box-shadow: inset 0 0 0 2.5px var(--fr-line); font: 600 26px/1 var(--g-font-display); color: var(--fr-on); }
.g-gcard__menu { position: absolute; inset-inline-end: 1px; top: -5px; z-index: 6; display: flex; gap: 6px; pointer-events: auto; }
.g-gcard__menu[hidden] { display: none; }
.g-gcard__menu .g-iconbtn { width: 49px; height: 49px; border-radius: 50%; background: var(--fr-solid); border: 1.5px solid var(--fr-dark); box-shadow: inset 0 0 0 2.5px var(--fr-line); color: var(--fr-on); }
.g-gcard__menu .g-iconbtn:hover { background: var(--fr-solid); filter: brightness(1.15); }

/* its window: one height on every card; its backdrop (kit-gcard.js) and its picture over it */
.g-gcard--growl .g-gcard__art { flex: none; position: relative; z-index: 1; isolation: isolate; contain: paint; display: block; height: 235px; margin-top: 1px; overflow: hidden;
  border: 1.5px solid var(--fr-dark); border-bottom: 0; border-radius: 2px 2px 0 0; box-shadow: var(--fr-edged), inset 0 0 20px #00000054; background: color-mix(in srgb, var(--fr-paper) 50%, #261c0c); }   /* no picture yet: its card's colour, darker (a gold card's gold), sunk in like a missing picture (Maayan's, 2026-11-19) */
/* THE CARD'S LOADING STATE (Maayan, 2026-11-19: "show the cards loaded ... with a placeholder bg - same color as the card but
   a bit darker, the card is 20% opacity with breathing effect from 20 to 30 and a small growlmaster eye icon in the middle of
   the image in light brown. when image is loaded card switch to 100%, the image fades in - both happen a bit slow ... while
   loading the card scale is 0.92 and when fading in grows to 1"; then: "scale should be 0.98"; "speed a lot faster. opacity 10": 10 to 20%, a breath a second. everything with ease in out ... save this effect in the
   card so we can use it everywhere as a loading state"): every growl card until its picture or figure is in (kit-gcard.js
   ready: is-ready); data-gcard-loading keeps a card in it (the design system's sample) */
.g-gcard--growl .g-gcard__card { transition: opacity .2s ease-in-out, scale .2s ease-in-out; }
.g-gcard--growl .g-gcard__card:not(.is-ready) { opacity: .9; scale: .98; animation: g-gcard-breathe 1s ease-in-out infinite; }
@keyframes g-gcard-breathe { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }
.g-gcard__wait { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #0000002b; pointer-events: none; transition: opacity .2s ease-in-out; }
.g-gcard__wait > svg { width: 56px; height: 56px; }
.g-gcard__card.is-ready .g-gcard__wait { opacity: 0; }
.g-gcard__art > img { opacity: 0; transition: opacity .8s ease-in-out; }   /* its picture fades in once loaded (kit-gcard.js is-in), slower than its card */
.g-gcard__art > img.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .g-gcard__art > img { transition: none; } }
/* a body (foe, NPC, hero): close, from its top, fading at the foot; framed on its head and shoulders (kit-gcard.js frame) */
.g-gcard--growl:is([data-kind="foe"], [data-kind="ally"], [data-kind="hero"]) .g-gcard__art > img { position: absolute; top: 0; left: 50%; height: 122%; width: auto; translate: -50% 0;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.g-gcard--growl:is([data-kind="foe"], [data-kind="ally"], [data-kind="hero"]) .g-gcard__art > img[data-framed] { left: var(--frame-l); width: var(--frame-w); height: auto; max-width: none; translate: none; }
/* a place: its picture filling the window */
.g-gcard--growl:is([data-kind="map"], [data-kind="location"], [data-kind="shop"], [data-kind="tavern"], [data-kind="adventure"], [data-kind="battle"], [data-kind="blackboard"]) .g-gcard__art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a thing (an item, a spell…): whole, centred, room under it */
.g-gcard--growl:not([data-kind="foe"], [data-kind="ally"], [data-kind="hero"], [data-kind="map"], [data-kind="location"], [data-kind="shop"], [data-kind="tavern"], [data-kind="adventure"], [data-kind="battle"], [data-kind="blackboard"], [data-kind="miniature"]) .g-gcard__art > img { display: block; height: calc(100% - 28px); width: auto; max-width: 88%; margin: 6px auto 0; object-fit: contain; }
/* a thing's picture placed as the card editor places it (kit-gcard.js placeIn: its saved place or kit-cardart.js coverAt), one place for one picture (2026-11-27) */
.g-gcard--growl .g-gcard__art > img[data-placed] { position: absolute; left: calc(var(--at-l) * 100%); top: calc(var(--at-t) * 100%); width: calc(var(--at-w) * 100%); height: auto; max-width: none; margin: 0; }
.g-gcard--growl .g-gcard__art > img[data-placed][data-flip] { scale: -1 1; }
/* its one picture (kit-cardart.js): the window drawn whole, filling it, whatever its kind */
.g-gcard--growl .g-gcard__art > img.g-gcard__flat { position: absolute; inset: 0; left: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; translate: none; -webkit-mask-image: none; mask-image: none; }
/* no picture: the kit's placeholder */
.g-gcard__art:has(> .g-avatar) { display: grid; place-items: center; }
.g-gcard__art > .g-avatar.g-avatar--square { width: 40%; height: auto; aspect-ratio: 1; background: none; color: #0000002b; }

/* its box: under the window, a light line then the dark line its tab sweeps into; its words, numbers and skill */
.g-gcard--growl .g-gcard__box { border-radius: 0 0 var(--gc-in) var(--gc-in); flex: 1 1 auto; min-height: 0; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0; border-top: 2.5px solid var(--fr-dark); box-shadow: 0 -1.5px 0 var(--fr-line); }
.g-gcard__label { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; min-width: 124px; height: 33px; margin-top: -33px; box-sizing: border-box; padding-block: 2px 0; padding-inline: 15px 34px; color: var(--fr-on); }
.g-gcard__label[hidden] { display: none; }
.g-gcard__label-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .g-gcard__label-shape { transform: scaleX(-1); }   /* its sweep at its end, whichever way the words run */
.g-gcard__label-shape > path { fill: none; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g-gcard__label-shape > .g-gcard__label-fill { fill: var(--fr-solid); stroke: none; }
.g-gcard__label-shape > .g-gcard__label-dark { stroke: var(--fr-dark); }
.g-gcard__label-shape > .g-gcard__label-light { stroke: var(--fr-line); }
.g-gcard__label-t { position: relative; font: 600 21px/1 var(--g-font-display); white-space: nowrap; }
/* its words, every line that fits (kit-gcard.js fitLine): the space under them a clear border, its rule under that */
.g-gcard--growl .g-gcard__box > p { flex: none; margin: 0 0 1.5px; padding: 9px 8px 0; overflow: hidden; border-bottom: 8px solid transparent; box-shadow: 0 1.5px 0 var(--fr-rule-soft);
  font: italic 500 17.4px/20px var(--g-font-book); text-align: start; color: var(--fr-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 2); }
.g-gcard--growl .g-gcard__box > p:empty { display: none; }
/* its numbers, ruled */
.g-gcard__stats { flex: none; display: grid; margin: 1px 6px 0; border-bottom: 1.5px solid var(--fr-rule-soft); }
.g-gcard__stats:empty { display: none; }
.g-gcard__stats > span { display: flex; justify-content: space-between; gap: 10px; height: 23px; align-items: center; padding: 0 2px; border-top: 1px solid var(--fr-rule); font: 700 19px/1 var(--g-font-display); }
.g-gcard__stats > span:first-child { border-top: 0; }
.g-gcard__stats > span[hidden] { display: none; }
.g-gcard__stats > span > b:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* its special skill, on a bar at its foot */
.g-gcard__skill { flex: none; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 13px; margin-top: auto; min-height: 53px; box-sizing: border-box; padding: 6px 10px 6px 14px;
  background: var(--fr-bar); border: 1.5px solid var(--fr-dark); border-radius: 14px 14px var(--gc-in, 14px) var(--gc-in, 14px); box-shadow: var(--fr-edged); color: var(--fr-on); }
.g-gcard__skill[hidden] { display: none; }
.g-gcard__skill-i { display: grid; place-items: center; }
.g-gcard__skill-i > svg { width: 24px; height: 32px; }
.g-gcard__skill-i > svg + svg { width: 22px; height: 22px; }
.g-gcard__skill[data-fire] .g-gcard__skill-i > svg + svg, .g-gcard__skill:not([data-fire]) .g-gcard__skill-i > svg:first-child { display: none; }   /* a flame for fire, else a spark */
.g-gcard__skill > span:last-child { text-align: start; font: 400 15.5px/18.5px var(--g-font-book); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* (its own steps only, :has(> .g-gcard__card ...): a post holding a miniature card in its swipe never turns into one; Maayan, 2026-11-21) */
/* ---- a miniature: no frame, the figure itself on the dark, its name where a card's is, its pose's name between two
   round steps (Maayan, 2026-11-17: "it's a miniature not a card ... the exact same size as a card growl") ---- */
.g-gcard--growl:has(> .g-gcard__card .g-gcard__steps) .g-gcard__card { padding: 9.5px 8.5px 18px; border: 1.5px solid transparent; background: rgba(220, 174, 134, .1); color: #f3ead8; }
.g-gcard--growl:has(> .g-gcard__card .g-gcard__steps) .g-gcard__head { background: none; border: 0; box-shadow: none; padding-inline: 15px 12px; color: #fff8ef; }
.g-gcard--growl:has(> .g-gcard__card .g-gcard__steps) .g-gcard__head > .g-gcard__lvl { display: none; }
.g-gcard--growl:has(> .g-gcard__card .g-gcard__steps) .g-gcard__art { flex: 1 1 0; height: auto; min-height: 0; margin: 0 9.5px; border: 0; box-shadow: none; background: none; contain: none; }
/* a miniature CARDLESS (GrowlCard cardless; Maayan, 2026-11-26: "the miniature needs another state called 'cardless' - removing
   its card-like background or name"): the figure alone on what is behind it; its pose's steps still there */
.g-gcard--growl.g-gcard--cardless:has(> .g-gcard__card .g-gcard__steps) .g-gcard__card { background: none; border: 0; box-shadow: none; }
.g-gcard--growl.g-gcard--cardless:has(> .g-gcard__card .g-gcard__steps) .g-gcard__head { display: none; }
.g-gcard__fig { position: absolute; display: block; opacity: 0; transition: opacity .4s ease; }
.g-gcard__fig.is-in { opacity: 1; }
.g-gcard--growl .g-gcard__fig:not(.is-nobase) .gm2-mini-reflect { display: block; }   /* the one reflection (miniature.css), over its small cards' none; a layout with no base (a spell): none */
.g-gcard__steps { flex: none; position: relative; z-index: 6; display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 8px; margin: 10px 9.5px 0; color: #efe3c4; }
/* its steps: the kit's SecondaryFestive (IconButton festive, ui.css), nothing of their own (Maayan, 2026-11-26) */
.g-gcard__pose { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font: 500 21px/1 var(--g-font-display); }
.g-gcard__poses[hidden] { display: none; }
/* ON A SHEET, LIGHT (Maayan, 2026-11-17: "this version needs a 'light mode' state ... buttons not dark, no shadows"): a
   miniature on a book's light page (.gmbook, not a dark one), or g-gcard--light: the paper, a thin warm rule, its name and
   pose in the book's red, its steps paper with a thin edge, nothing casting a shadow */
:is(.g-gcard--light, .gmbook:not(.drop--dark) .g-gcard--growl):has(> .g-gcard__card .g-gcard__steps) .g-gcard__card { background: #f7efe1; border-color: #d9c4a8; box-shadow: none; color: #8b2a1b; }
:is(.g-gcard--light, .gmbook:not(.drop--dark) .g-gcard--growl):has(> .g-gcard__card .g-gcard__steps) :is(.g-gcard__head, .g-gcard__steps) { color: #8b2a1b; }
:is(.g-gcard--light, .gmbook:not(.drop--dark) .g-gcard--growl) .g-gcard__steps .g-iconbtn { background: #fbf6ec; border: 1px solid #d9c4a8; box-shadow: none; color: #8b2a1b; }
:is(.g-gcard--light, .gmbook:not(.drop--dark) .g-gcard--growl) .g-gcard__steps .g-iconbtn:hover { background: #f2e6d2; }

/* ---- lists ---- */
/* GrowlMaster's grids (kit.js thingList: a table's panel, a profile, a picker): the cards as many across as fit */
.g-thinglist[data-layout="grid"]:has(> .g-gcard) { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--g-gcard-w, 297px)), 1fr)); justify-items: center; gap: var(--g-5); padding-block: var(--g-2); }

/* ---- a growl's page: its card's backdrop across its top (DropItem.astro .g-gcard-page, the same seed) ---- */
.gm2-main:has(> .g-gcard-page) { position: relative; isolation: isolate; }
.g-gcard-page { position: absolute; inset: 0 0 auto 0; z-index: -1; height: min(110vh, 1100px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.g-gcard-page > .g-gcard__back { inset: 0; background: none; }
.g-gcard-page > .g-gcard__back[data-done] { opacity: 1; }   /* shown once painted (kit-gcard.js backdrop): a page has no card picture to wait for (Maayan, 2026-11-22: "i dont see the top page's background image") */
.g-gcard-page .g-gcard__back > i:first-child { inset: 0 auto auto 0; width: calc(100% / 2.6); height: calc(100% / 2.6); transform: scale(2.6); transform-origin: 0 0; }
.g-gcard-page .g-gcard__back > i:last-child { mix-blend-mode: screen; opacity: .22; }

/* ---- a look on trial (the sandbox, sandbox-cards.css): the old card's base ---- */
.g-gcard:not(.g-gcard--growl) .g-gcard__card { position: relative; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; height: var(--gcard-h, 640px); padding: 14px 22px 24px;
  background: radial-gradient(75% 55% at 50% 40%, var(--g-surface-2), var(--g-surface)); border: 5px solid var(--g-surface-3); border-radius: 27px; color: var(--g-on-btn); }
.g-gcard:not(.g-gcard--growl) { width: min(380px, 100%); }

/* A GROWL'S TIER (the collect layer, collect/rules.js tierOf; Maayan, 2026-11-20: "collected 10 times becomes bronze then
   silver than golden in 100"): its card in that metal, its edge and its box, a gleam now and then; its numbers their own colour
   (Maayan, 2026-11-20: "numbers should stay the inside color red") (the
   finishes tried in /design-system/sandbox-growls, sandbox-cards.css: the others stay trials there) */
.g-gcard[class*="g-gcard--finish-"] .g-gcard__card { border-color: transparent; background: linear-gradient(#050505, #050505) padding-box, var(--fin-edge) border-box; }
.g-gcard[class*="g-gcard--finish-"] .g-gcard__card::after { border-color: var(--fin-line); }
.g-gcard[class*="g-gcard--finish-"] .g-gcard__box { background: var(--fin-box); }
.g-gcard[class*="g-gcard--finish-"] .g-gcard__card::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: 18px;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 160% 0;
  mix-blend-mode: soft-light; animation: g-gleam var(--gleam-every, 9s) ease-in-out var(--gleam-at, 0s) infinite; }
@keyframes g-gleam { 0%, 86% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .g-gcard[class*="g-gcard--finish-"] .g-gcard__card::before { animation: none; } }
.g-gcard--finish-gold { --fin-edge: linear-gradient(135deg, #8a6418, #f6dc8a 28%, #b8862c 52%, #fff1b8 70%, #7d5714); --fin-line: rgba(246, 220, 138, .7);
  --fin-box: linear-gradient(160deg, #f7e7b4, #e6c877 45%, #f3dda0 70%, #d9b660); --fin-token: radial-gradient(circle at 35% 30%, #fff1b8, #b8862c); --fin-token-ink: #3a2a08; }
.g-gcard--finish-silver { --fin-edge: linear-gradient(135deg, #6f7378, #f2f4f7 30%, #9aa0a6 55%, #ffffff 72%, #5f6368); --fin-line: rgba(230, 234, 240, .7);
  --fin-box: linear-gradient(160deg, #eef0f2, #cfd3d8 50%, #e9ecef); --fin-token: radial-gradient(circle at 35% 30%, #ffffff, #8d939a); --fin-token-ink: #23262a; }
.g-gcard--finish-bronze { --fin-edge: linear-gradient(135deg, #5e3418, #d9955a 30%, #8c4f25 55%, #f0b47c 72%, #4f2a12); --fin-line: rgba(217, 149, 90, .7);
  --fin-box: linear-gradient(160deg, #f1d7bd, #d8a67a 50%, #ecc9a6); --fin-token: radial-gradient(circle at 35% 30%, #f5c497, #8c4f25); }

.gcounts__saves { white-space: nowrap; }   /* "12 collected" one line */

/* INGAMEMINIATURE (GrowlCard ingame; Maayan, 2026-11-26: "the state that's used in the arena, with the hit points above it. and
   all the text showing according to what happens to it"): the miniature with no card, over its head its name and its hit
   points (a bar, green, orange, then red, its number at its end), what happens to it under them; its pose steps not shown
   (the battle chooses its poses) */
.g-gcard--ingame .g-gcard__steps, .g-gcard--alone .g-gcard__steps { display: none; }   /* in a battle, and the figure alone: no pose steps */
.g-gcard__ingame { position: absolute; z-index: 7; top: var(--g-2); left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: var(--g-1); width: 56%; pointer-events: none; }
.g-gcard__iname, .g-gcard__hpn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--g-w-bold) var(--g-t-sub) var(--g-font-display); color: var(--g-text); text-shadow: 0 1px 6px rgb(0 0 0 / .9); }
.g-gcard__life { display: flex; align-items: center; gap: var(--g-2); width: 100%; } .g-gcard__hpn { flex: none; min-width: 2ch; }
.g-gcard__bar { position: relative; flex: 1; height: var(--g-sheet-bar); border: var(--g-hair) solid rgb(0 0 0 / .6); border-radius: var(--g-sheet-bar); background: rgb(0 0 0 / .55); overflow: hidden; }
.g-gcard__bar > i { position: absolute; inset: 0 auto 0 0; width: var(--gc-hp, 100%); background: #3fa047; } .g-gcard__bar[data-hp="mid"] > i { background: #e08a1e; } .g-gcard__bar[data-hp="low"] > i { background: #c8281b; }
.g-gcard__status { font: italic var(--g-t-sub) var(--g-font-book); color: var(--g-text-2); text-shadow: 0 1px 6px rgb(0 0 0 / .9); }
/* SMALL, ON A PHONE (GrowlCard small; Maayan, 2026-11-26: "in mobile, the growls tab, growls card a bit more smaller"): the same
   card shown smaller, 256 wide (zoom 256 / 340); a tap grows it into the master view at its one size (kit-growlview.js) */
@media (max-width: 899px) { .g-gcard--small { --g-gcard-w: 256px; } .g-gcard--growl.g-gcard--small .g-gcard__card { zoom: .7529; } }
/* THE EMPTY CARD (GrowlCard add; Maayan, 2026-11-27): the card's size, its frame a faint line, a + and its words; tapped, a growl is chosen */
.g-gcard--add[hidden] { display: none; } .g-gcard--add { display: block; padding: 0; border: 0; background: none; font: inherit; color: var(--g-text); cursor: pointer; }
.g-gcard--add .g-gcard__card { color: var(--g-text); background: var(--g-chosen-shine); box-shadow: inset 0 0 0 var(--g-hair) var(--g-chosen-line); transition: box-shadow var(--g-fast) var(--g-ease); }
.g-gcard--add:is(:hover, :focus-visible) .g-gcard__card { box-shadow: inset 0 0 0 var(--g-hair) var(--g-chosen-line-on), 0 0 var(--g-4) var(--g-chosen-glow); }
.g-gcard__add { flex: 1; display: grid; place-content: center; justify-items: center; gap: var(--g-3); font-size: var(--g-t-title); }
.g-gcard__add > span { width: var(--g-touch); height: var(--g-touch); } .g-gcard__add svg { width: 100%; height: 100%; }
/* THUMB (GrowlCard thumb): half its size at every width, a panel's grid (the arena's growls, Maayan 2026-11-27) */
.g-gcard__act { display: block; width: var(--g-gcard-w); margin-top: var(--g-2); }   /* a bare card's action under it, its width (GrowlCard action; the arena's Add, Maayan, 2026-11-27) */
.g-gcard--thumb, .g-thinglist:has(> .g-gcard--thumb) { --g-gcard-w: 148px; } .g-gcard--growl.g-gcard--thumb .g-gcard__card { zoom: .435; }
