/* A GROWL OPENED, THE MASTER VIEW (ui/GrowlView.astro, kit-growlview.js; the arena's own: Maayan, 2026-11-25 "card is open in the
 * middle of the screen large. "X" button circle on its top right corner outside of the card. when card is open we can't scroll
 * down the page. a sticky footer"): over everything, dark under it; its card alone in the middle, or its miniature, or its sheet
 * instead, never two; its buttons at its foot: the place's action, the two faces not shown, Open */
html.gv-open, html.gv-open body { overflow: hidden; }
.g-gview { position: fixed; inset: 0; z-index: calc(var(--g-z-window) - 1); display: flex; flex-direction: column; background: var(--g-scrim-light); }
.g-gview[hidden] { display: none; }
.g-gview__sheet { display: none; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--g-8) var(--g-margin) calc(2 * var(--g-8) + var(--g-6)); scrollbar-width: none; }   /* its foot scrolls clear of the bar */
.g-gview__sheet::-webkit-scrollbar { display: none; }
.g-gview[data-mode="sheet"] .g-gview__sheet { display: block; } .g-gview__sheet > [data-paper] { max-width: calc(1.5 * var(--g-column)); margin-inline: auto; }
.g-gview__sheet .g-csheet__page { box-shadow: var(--g-shadow-shot); } .g-gview__sheet .cs-ruled { white-space: pre-wrap; }   /* its lines as written, read only too */
.g-gview__x { position: fixed; z-index: 2; }
/* its card (a copy of the one tapped; the arena keeps its own where it is) and its miniature (the kit's miniature card, started anew
   here): each in the middle, large where there is room; the one of the face shown */
.g-gview__card, .g-gview__mini { position: fixed; z-index: 1; left: 50%; top: calc(50% - var(--g-7) / 2); translate: -50% -50%; }
.g-gview__card:empty, .g-gview:not([data-mode="card"]) .g-gview__card, .g-gview__mini:empty, .g-gview:not([data-mode="mini"]) .g-gview__mini { display: none; }
.g-gview__card .g-gcard__top { display: none; } .g-gview__card .g-thinglist[data-layout] { display: block; max-width: none; }   /* its Close and Open: the view's own */
@media (min-width: 900px) and (min-height: 820px) { .g-gview__card, .g-gview__mini { scale: 1.2; } }
/* the miniature's standing the card's: the kit's miniature card on a solid surface here (its list's is see-through, the page shows through it), its edge and shadow the kit's */
.g-gview__mini .g-gcard--growl:has(> .g-gcard__card .g-gcard__steps) .g-gcard__card { background: var(--g-surface); border-color: var(--g-surface-3); box-shadow: var(--g-shadow-shot); }
/* its bar over the foot of whatever is shown, black at the bottom fading to clear at its top (Maayan, 2026-11-26: "the bg of that
   footer is gradient bottom black and top black 0% opacity"): the sheet runs under it, only its buttons take a tap */
.g-gview__bar { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g-3); padding: var(--g-8) var(--g-margin) calc(var(--g-3) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--g-black), transparent); pointer-events: none; }
.g-gview__bar > * { pointer-events: auto; }
.g-gview__bar [hidden] { display: none; }
/* a phone: its three in one row, each its icon and one short word (Maayan, 2026-11-26), each as wide as its word needs and the room
   left shared; a word longer than the row allows cut short rather than a second row */
@media (max-width: 899px) { .g-gview__bar { flex-wrap: nowrap; gap: var(--g-2); } .g-gview__bar .g-btn { flex: 1 1 auto; min-width: 0; padding-inline: var(--g-2); } .g-gview__bar .g-btn__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* a narrow phone: the kit's small button's letters (ui.css .g-btn--sm), its touch height kept, so three long words (Russian) fit whole */
@media (max-width: 599px) { .g-gview__bar .g-btn { font-size: var(--g-t-caption); gap: var(--g-1); } }
/* every growl card a tap's target (the one rule, kit-growlview.js); in here, the card itself is not (Maayan, 2026-11-27, 1.1) */
.g-gcard--growl, .g-gcard--growl .g-gcard__card:has(.g-gcard__hit) { cursor: pointer; }
.g-gview .g-gcard--growl, .g-gview .g-gcard--growl .g-gcard__card:has(.g-gcard__hit), .g-gview .g-gcard--growl .g-gcard__hit { cursor: default; }
