/* Redeye game view, full screen: the title, the table and the end of a run.
   It sits on top of the rules engine: the engine keeps the state and the rules, and this draws them. The stage is
   the whole window, its scene covering it and everything on it sized to the largest 16 by 9 that fits, so it reads
   the same at any size. Our own windows and buttons are glass, defined once below (Emrah, 25 October), where they had been iron. */

/* ── The game's glass, defined once, Emrah's word of 25 October ── */
/* Every glass in the game is the same dark smoke ringed dark outside and slate in, in three weights: window for the
   menus, sheets, tips and boxes, frosted and dark enough to read on; pane for the hero board's slots and the cards'
   windows, near clear so the scene sings through; tint for an item's text, a smoke with its colour laid over it.
   tools/glass.py reads the smoke, the edges and the glint from here for the board and the glass buttons it draws. */
:root {
  --glass-smoke: 14, 12, 14;
  --glass-edge-out: #06080c; --glass-edge-in: #4e5871; --glass-glint: rgba(190, 196, 200, 0.35);
  --glass-sheen: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, 0.08) 38%, transparent 46%);
  --glass-radius: 0.35em;
  --glass-window: rgba(var(--glass-smoke), 0.62);
  --glass-window-blur: blur(10px) saturate(1.15);
  --glass-window-ring: 0 0 0 2px var(--glass-edge-out), inset 0 0 0 2px var(--glass-edge-in), inset 0 4px 0 -2px var(--glass-glint);
  --glass-window-shadow: 0 0.5em 1.4em rgba(0, 0, 0, 0.55);
  --glass-pane: rgba(var(--glass-smoke), 0.16);
  --glass-pane-blur: blur(2px);
  --glass-pane-ring: 0 0 0 0.09em var(--glass-edge-out), inset 0 0 0 0.1em var(--glass-edge-in);
  --glass-pane-colour: 0.15;
  --glass-tint: rgba(var(--glass-smoke), 0.45);
  --glass-tint-colour: 0.22;
}

body.gv-on { margin: 0; background: #000; overflow: hidden; }
/* The lettering for cards, windows and the dial: legible faces for reading, the pixel blackletter kept for the
   title. Three to compare, switched under Look and sound: Grenze, blackletter made readable, is the default. */
body.gv-on { --f-head: "Grenze", Georgia, serif; --f-head-w: 600; }
body.gv-on[data-type="cinzel"] { --f-head: "Cinzel", Georgia, serif; --f-head-w: 600; }
body.gv-on[data-type="alegreya"] { --f-head: "Alegreya SC", Georgia, serif; --f-head-w: 700; }
body.gv-on #app { display: none; }
#gv-host {
  --bone: #ece6d6; --bone-dim: #aaa395; --ink: #0d0b10; --ivory: #f4eee0;
  --redeye: #d01a20; --gold: #d4b01a; --stamina: #46c84a; --spell: #3a78e8;
  --iron: linear-gradient(180deg, #2a2a31, #0d0d10 52%, #1a1a20);
  --iron-edge: 0 0 0 0.12em #050506, inset 0 0 0 0.1em #3c3c46, inset 0 0 0 0.18em #0b0b0e, inset 0 0.3em 0 rgba(255, 255, 255, 0.06);
  --f-logo: "Jacquard 24", "Pixelify Sans", serif; /* the title's own lettering, kept for the logo, level transitions and cutscenes */
  --f-ui: "Alegreya Sans", system-ui, sans-serif;
  position: fixed; inset: 0; display: grid; place-items: center; background: #000; overflow: hidden;
}
#gv-host[hidden] { display: none; }
#gv-host [hidden] { display: none !important; }
#gv-host * { box-sizing: border-box; }

/* The stage fills the whole window, edge to edge, with no black strips (Emrah, 15 October). The scene and its figures
   sit in .gv-world, the 16 by 9 picture sized to cover the window, cropped a little top and bottom on a longer screen,
   more from the sky than the ground. The cards, menus and windows are sized to --u, a hundredth of the largest 16 by 9
   that fits, so they read the same as before, and they anchor to the window's own edges. --wu is a hundredth of the
   world's width, for what is drawn at the scene's pixel size. */
@property --u { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --wu { syntax: "<length>"; inherits: true; initial-value: 0px; }
/* The phone's safe edges, its rounded corners and the camera's notch, as lengths the view can read for the cards too */
@property --safe-l { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --safe-r { syntax: "<length>"; inherits: true; initial-value: 0px; }
#gv-host { container-type: size; }
.gv {
  --u: min(1cqw, calc(1cqh * 16 / 9)); --wu: max(1cqw, calc(1cqh * 16 / 9));
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  position: relative; width: 100%; height: 100%;
  overflow: hidden; overflow: clip; /* clip, so focusing a tucked card can't scroll the stage */
  background: #000; color: var(--bone); font-family: var(--f-ui); user-select: none; -webkit-user-select: none;
  /* No blue box on a tap on Android, and no save image prompt on a held press, Beni's ticket 86 of 9 November */
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
}
.gv img { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* Our own windows, the battle toggle's, the draw's, the menu's, the sheets' and every other, in the window glass
   (Emrah, 25 October), where they had been iron and then Beni's granite */
.gv .win, .gv .iron {
  background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur); image-rendering: auto;
  color: var(--ivory); border-radius: var(--glass-radius); text-shadow: 0 0.06em 0 #000;
  box-shadow: var(--glass-window-ring), var(--glass-window-shadow);
}
.gv .win { padding: 0.5em 0.75em; }
/* The cursor beside the chosen line: a small red arrowhead, stepping as it waits */
.gv .cmd { position: relative; }
.gv .cmd.is-on::before, .gv .cmd:hover::before, .gv .cmd:focus-visible::before {
  content: ""; position: absolute; left: 0.25em; top: 50%; width: 0.55em; height: 0.75em; transform: translateY(-50%);
  background: var(--redeye); clip-path: polygon(0 0, 100% 50%, 0 100%); animation: gv-cursor 0.9s steps(2) infinite;
}
.gv .cmd[aria-disabled="true"]::before { display: none; }
@keyframes gv-cursor { 50% { transform: translate(0.18em, -50%); } }
.gv .cmd:focus-visible { outline: none; }

/* Gems and time icons */
.gv .gems { display: inline-flex; gap: 0.18em; vertical-align: middle; }
.gv .gem { display: inline-block; width: 0.78em; height: 0.78em; border-radius: 50%; border: 0.08em solid var(--ink); }
.gv .gem--stamina { background: radial-gradient(circle at 35% 30%, #d6ffc8 0 10%, var(--stamina) 38%, #1d6b22 78%, #0f3a12); }
.gv .gem--spell { background: radial-gradient(circle at 35% 30%, #d6e6ff 0 10%, var(--spell) 38%, #18357a 78%, #0b1a40); }
.gv .gem--xp { background: radial-gradient(circle at 35% 30%, #fffdf2 0 12%, var(--bone) 40%, #8f8673 85%); }
.gv .gem--empty { background: rgba(5, 8, 42, 0.55); box-shadow: inset 0 0.08em 0.12em rgba(0, 0, 0, 0.6); }
.gv .tod { width: 1.1em; height: 1.1em; vertical-align: middle; }
.gv .tod--dawn { color: #f0b07a; } .gv .tod--noon { color: #f6e7a2; } .gv .tod--dusk { color: #e58a5c; } .gv .tod--midnight { color: #b9c4ff; }

/* The hour's picture fades in over the last one, which holds until it is covered and only then goes, so the scene
   never dips dark between two hours; on the splash screen the fade takes most of the hour, a slow timelapse with no
   steps (Emrah, 14 October) */
.gv { --fade: 0.9s; }
.gv[data-mode="title"] { --fade: 3.4s; }
/* On a screen longer than 16 by 9 the world is cropped nearly all from the sky, so the figures' feet stay on screen (Emrah, 17 October) */
.gv-world { position: absolute; left: 50%; width: calc(100 * var(--wu)); aspect-ratio: 16 / 9; top: calc((100cqh - 56.25 * var(--wu)) * 0.9); transform: translateX(-50%); }
.gv-scene { position: absolute; inset: 0; isolation: isolate; }
.gv-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; z-index: 0; transition: opacity 0s linear var(--fade); }
.gv-dolmen { position: absolute; width: calc(59 / 384 * 100%); height: auto; image-rendering: pixelated; z-index: 1; pointer-events: none; }
.gv-dolmen[hidden] { display: none; }
/* A dolmen opened this turn can be tapped for its cards again, and glows faintly to say so (Beni, 25 October) */
.gv-dolmen.is-can { pointer-events: auto; cursor: pointer; filter: drop-shadow(0 0 3px rgba(255, 226, 150, 0.85)); animation: gv-dolmen-call 2.4s ease-in-out infinite; }
@keyframes gv-dolmen-call { 50% { filter: drop-shadow(0 0 6px rgba(255, 226, 150, 0.95)); } }
.gv[data-time="dawn"] .gv-bg[data-time="dawn"], .gv[data-time="noon"] .gv-bg[data-time="noon"],
.gv[data-time="dusk"] .gv-bg[data-time="dusk"], .gv[data-time="midnight"] .gv-bg[data-time="midnight"] { opacity: 1; z-index: 1; transition: opacity var(--fade) ease-in-out; }
.gv-air { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.gv-fire { mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s ease; }
/* The fire and the aura take the hour when the light does, after the picture (Emrah, 14 October) */
.gv[data-lit="midnight"] .gv-fire { opacity: 1; }
/* The light over the scene: a shade where it misses, a glow where it lands, both at the scene's pixel size */
.gv-shade { mix-blend-mode: multiply; }
.gv-glow { mix-blend-mode: overlay; }
/* The figures take the light of the hour too, and those standing in it catch it on the side it comes from.
   The filter sits on the figure alone, so its breath keeps its own colour */
.gv { --tod: brightness(1); }
.gv[data-time="dawn"] { --tod: brightness(0.92) sepia(0.12) saturate(1.05); }
.gv[data-time="dusk"] { --tod: brightness(0.88) sepia(0.28) saturate(1.2) hue-rotate(-12deg); }
.gv[data-time="midnight"] { --tod: brightness(0.62) saturate(0.55) hue-rotate(-8deg); }
.gv-actor { --rim: 0; --rim-c: transparent; --glow: drop-shadow(0 0 0 transparent); }
.gv-actor.is-redeye { --glow: drop-shadow(0 0 calc(0.4 * var(--wu)) rgba(208, 26, 32, 0.55)); }
.gv-sprite { filter: var(--tod) drop-shadow(calc(var(--rim) * 100 * var(--wu) / 384) 0 0 var(--rim-c)) var(--glow); transition: filter 0.9s ease; }
/* By the campfire the rim is soft and flickers frame by frame with the fire, so it isn't eased (Beni's ticket 74) */
.gv-actor[data-id^="c-"] .gv-sprite { filter: var(--tod) drop-shadow(calc(var(--rim) * var(--rim-k, 1) * 100 * var(--wu) / 384) 0 calc(60 * var(--wu) / 384) var(--rim-c)) var(--glow); transition: none; }
.gv-steam { position: absolute; image-rendering: pixelated; pointer-events: none; }
.gv-actors { position: absolute; inset: 0; }
/* The title's campfire: flames in the scene's pixels, standing on the ground, its light pooling round it */
.gv-campfire { position: absolute; width: calc(28 / 384 * 100%); height: auto; transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; }
.gv-campglow { position: absolute; width: 34%; aspect-ratio: 2.2; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 140, 50, 0.55), rgba(255, 110, 30, 0.2) 50%, transparent); }
/* A figure on a layer of its own, so one stepping across the scene leaves no trail of its rim or glow on a phone */
.gv-actor { position: absolute; aspect-ratio: 1; will-change: transform; }
/* Each figure's canvas spills past its box to leave room for its breath */
.gv-sprite { position: absolute; image-rendering: pixelated; }
.gv-actor::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 1%; height: 6%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); z-index: -1;
  /* The shadow falls away from the light, stretched long when the sun is low */
  transform: translateX(var(--sh-x, 0%)) scaleX(var(--sh-w, 1)); opacity: var(--sh-a, 1);
  transition: transform 0.9s ease, opacity 0.9s ease;
}
.gv-name {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  font: 600 calc(0.85 * var(--wu))/1 var(--f-ui); letter-spacing: 0.06em; color: rgba(236, 230, 214, 0.8); white-space: nowrap;
  background: rgba(13, 11, 16, 0.6); padding: calc(0.25 * var(--wu)) calc(0.5 * var(--wu)); border-radius: calc(0.3 * var(--wu));
}
.gv-actor.is-redeye .gv-name { color: #ff9a9a; }
.gv[data-mode="title"] .gv-name { display: none; }
/* a hero has no name over their head (Beni's ticket 83), so the empty plate shows only while a card is aimed at them */
.gv-actor:not(.is-aimed) .gv-name:has(> .gv-name-t:empty) { display: none; }
/* A shrine once a hero has walked in and spent it, greyed as its mark on the map is */
.gv-actor.is-spent .gv-sprite { --glow: drop-shadow(0 0 0 transparent) grayscale(0.7) brightness(0.75); }
.gv-actor--right[data-id^="s-"] .gv-name { color: rgba(236, 230, 214, 0.65); }

/* Heroes walk in from the left edge, enemies from the right, in pixel steps */
.gv-actor.is-entering.gv-actor--left { animation: gv-in-left 1.6s steps(12) both; animation-delay: calc(var(--i) * 0.25s); }
.gv-actor.is-entering.gv-actor--right { animation: gv-in-right 1.6s steps(12) both; animation-delay: calc(0.5s + var(--i) * 0.25s); }
/* A figure with a path of its own, out of a doorway or a crevice, walks that instead, from the script */
.gv-actor.is-entering.has-path { animation: none; }
/* A figure that shifts to a front place steps across rather than jumping */
.gv-actor { transition: left 0.8s steps(8), top 0.8s steps(8), filter 0.9s ease, opacity 0.6s ease; }
@keyframes gv-in-left { from { transform: translateX(-260%); } }
@keyframes gv-in-right { from { transform: translateX(380%); } }

/* ── The time of day dial: a pie hanging from the top, the slay track's planets orbiting it ── */
/* Sized in the scene's own pixels, so the pie's pixels are the scene's */
.gv-tod { position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: 3; --a: 0deg; --px: calc(calc(100 * var(--u)) / 384); --turn: 1.4s; }
/* Three quick taps on the dial open the developer console, so the hand says it takes a tap */
.gv-tod { cursor: pointer; }
/* On the title, and in the tutorial's day in fast forward, the pie turns at a steady pace, set every frame, so it carries
   no easing of its own, or it lags the weather riding on it (Emrah, 25 October) */
.gv[data-mode="title"] .dial-pie, .gv-tod.is-lapse .dial-pie { transition: none; }
.dial-pie {
  position: absolute; left: calc(var(--px) * -32); top: calc(var(--px) * -32); width: calc(var(--px) * 64); height: calc(var(--px) * 64);
  image-rendering: pixelated; transform: rotate(var(--a)); transition: transform var(--turn) cubic-bezier(0.45, 0.05, 0.25, 1);
  filter: drop-shadow(0 calc(0.35 * var(--u)) calc(0.7 * var(--u)) rgba(0, 0, 0, 0.55));
}
/* The weather on the slice for now, which steps aside while the pie turns */
.dial-wx {
  position: absolute; left: calc(var(--px) * -32); top: 0; width: calc(var(--px) * 64); height: calc(var(--px) * 32);
  image-rendering: pixelated; pointer-events: none; transform-origin: 50% 0; transition: opacity 0.25s ease;
}
.gv-tod.is-turning .dial-wx { opacity: 0; }
.dial-orbit { position: absolute; left: 0; top: 0; width: 0; height: 0; --ro: calc(var(--px) * 46); --ps: calc(var(--px) * 9); }
.dial-ring {
  position: absolute; left: calc(var(--ro) * -1); top: calc(var(--ro) * -1); width: calc(var(--ro) * 2); height: calc(var(--ro) * 2);
  border-radius: 50%; border: max(1px, calc(0.1 * var(--u))) solid rgba(236, 230, 214, 0.45);
}
/* Each planet holds still on the orbit; only its light changes as the hours turn past */
.planet {
  position: absolute; left: 0; top: 0; width: var(--ps); height: var(--ps); margin: calc(var(--ps) / -2) 0 0 calc(var(--ps) / -2);
  transform: rotate(var(--p)) translateY(var(--ro)) rotate(calc(-1 * var(--p)));
}
/* The sphere itself sits inside, so a planet can flash as it lights without leaving its orbit */
.planet b { display: block; width: 100%; height: 100%; background: var(--img) center / 100% 100% no-repeat; image-rendering: pixelated; transition: filter 0.4s ease; }
.planet.is-lit b { filter: drop-shadow(0 0 calc(0.45 * var(--u)) rgba(255, 232, 180, 0.75)); }
.planet.is-new b { animation: gv-planet 0.6s ease; }
@keyframes gv-planet { 30% { scale: 1.3; filter: brightness(1.5) drop-shadow(0 0 calc(0.7 * var(--u)) rgba(255, 240, 200, 0.9)); } }
/* Its top line on the wheel's own bottom line, the pie's last row, so the two make one line (Emrah, 25 October) */
.dial-title {
  position: absolute; left: 0; top: calc(var(--px) * 31); transform: translateX(-50%);
  display: flex; align-items: center; gap: calc(0.4 * var(--u)); white-space: nowrap; font: var(--f-head-w) calc(1.1 * var(--u))/1 var(--f-head); color: var(--ivory);
  background: var(--iron); border-radius: calc(0.3 * var(--u)); padding: calc(0.3 * var(--u)) calc(0.75 * var(--u)) calc(0.35 * var(--u)); box-shadow: 0 0 0 calc(0.12 * var(--u)) #050506, inset 0 0 0 calc(0.1 * var(--u)) #3c3c46, 0 calc(0.3 * var(--u)) calc(0.6 * var(--u)) rgba(0, 0, 0, 0.5);
}
/* The wheel seen without its name plate, Emrah's ticket 59 of 1 November: the time is still said aloud for a screen reader */
.gv .dial-title { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); }

.gv-aura { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; transition: background 0.7s ease; }
.gv[data-lit="dawn"] .gv-aura { background: radial-gradient(60% 75% at 50% 0%, rgba(255, 170, 120, 0.18), transparent 70%); }
.gv[data-lit="noon"] .gv-aura { background: radial-gradient(65% 85% at 50% 0%, rgba(255, 246, 200, 0.16), transparent 70%); }
.gv[data-lit="dusk"] .gv-aura { background: radial-gradient(60% 75% at 50% 0%, rgba(240, 120, 70, 0.18), transparent 70%); }
.gv[data-lit="midnight"] .gv-aura { background: radial-gradient(55% 70% at 50% 0%, rgba(150, 170, 255, 0.14), transparent 70%); }

/* ── Across the top: the glyph card and the turn on the left, the day, the decks and the main menu on the right ── */
/* Corner cards hang from the top with an edge showing; a tap brings them down */
.gv-tab { position: absolute; top: 0; z-index: 5; transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1); }
button.gv-tab { all: unset; position: absolute; top: 0; z-index: 5; cursor: pointer; transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1); }
.gv-tab:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* The main menu: the burger stays put at the top right and its card drops down under it (Emrah, 14 October) */
.gv .gv-tab--tr { right: max(calc(1.2 * var(--u)), var(--safe-r)); display: flex; flex-direction: column; align-items: flex-end; transform: none; }
.gv .gv-tab[data-open="true"] { transform: translateY(0); z-index: 8; }
/* The main menu's card, under the burger: wide enough for each line on one row and tall enough rows for a thumb */
.gv-menu {
  order: 1; display: none; flex-direction: column; gap: 0.1em; margin-top: calc(0.4 * var(--u)); padding: 0.7em 0.5em 0.5em; width: max(calc(12 * var(--u)), 11.5em);
  max-height: calc(calc(56.25 * var(--u)) - var(--tab-h) - calc(2 * var(--u))); overflow: auto; font-size: max(13px, calc(1.1 * var(--u))); border-radius: calc(0.45 * var(--u));
}
.gv-tab--tr[data-open="true"] .gv-menu { display: flex; }
.gv-menu-head { margin: 0 0 0.35em; text-align: center; font: var(--f-head-w) 1.35em/1 var(--f-head); }
.gv-menu .cmd { all: unset; cursor: pointer; position: relative; padding: 0.28em 0.3em 0.28em 1.3em; border-radius: 0.2em; white-space: nowrap; min-height: max(28px, 1.9em); display: flex; align-items: center; }
.gv-menu .cmd:hover, .gv-menu .cmd:focus-visible { background: rgba(255, 255, 255, 0.05); }
.gv-menu-handle {
  all: unset; order: 0; cursor: pointer; height: var(--tab-h); width: calc(var(--tab-h) * 1.7); align-self: flex-end; display: grid; place-items: center; font: 600 max(11px, calc(1 * var(--u)))/1 var(--f-ui); color: var(--ivory);
  background: var(--iron); border-radius: 0 0 calc(0.45 * var(--u)) calc(0.45 * var(--u)); box-shadow: 0 0 0 calc(0.12 * var(--u)) #050506, inset 0 0 0 calc(0.1 * var(--u)) #3c3c46, 0 calc(0.4 * var(--u)) calc(0.9 * var(--u)) rgba(0, 0, 0, 0.5);
}
.gv-menu-handle:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.gv-menu-handle svg { width: 46%; height: auto; }
/* The pills: whose turn and what just happened on the left, the day, the round and the decks on the right. They
   hang from the top in the same iron as the main menu's handle, and what just happened opens the game feed. */
.gv { --tab-h: max(24px, calc(2.4 * var(--u))); }
.gv-pills { position: absolute; top: 0; z-index: 4; display: flex; gap: calc(0.5 * var(--u)); font: 600 max(11px, calc(1 * var(--u)))/1 var(--f-ui); pointer-events: none; }
.gv-pills--left { left: max(calc(1.2 * var(--u)), var(--safe-l)); right: calc(63 * var(--u)); }
/* A pill that is a button, the skill glyph's tab */
.gv-pill--tab { margin: 0; border: 0; font: inherit; cursor: pointer; pointer-events: auto; appearance: none; }
.gv-pill--tab:hover, .gv-pill--tab:focus-visible { outline: none; box-shadow: 0 0 0 calc(0.12 * var(--u)) #050506, inset 0 0 0 calc(0.1 * var(--u)) #3c3c46, 0 0 0 calc(0.18 * var(--u)) rgba(208, 26, 32, 0.8); }
.gv-pills--right { right: calc(max(calc(1.2 * var(--u)), var(--safe-r)) + calc(0.5 * var(--u)) + var(--tab-h) * 1.7); left: calc(63 * var(--u)); justify-content: flex-end; }
.gv-pill--decks b { font-weight: 700; }
.gv-pill--decks .is-biome { color: var(--redeye); }
.gv-pill--decks .is-equip { color: var(--gold); }
.gv-pill {
  flex: none; display: block; max-width: 100%; height: var(--tab-h); line-height: var(--tab-h); padding: 0 0.95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ivory); text-shadow: 0 0.06em 0 #000; background: var(--iron); border-radius: 0 0 calc(0.45 * var(--u)) calc(0.45 * var(--u));
  box-shadow: 0 0 0 calc(0.12 * var(--u)) #050506, inset 0 0 0 calc(0.1 * var(--u)) #3c3c46, 0 calc(0.4 * var(--u)) calc(0.9 * var(--u)) rgba(0, 0, 0, 0.5);
}
.gv-pill--lead { font-weight: 700; }
/* The game feed, dropping down from its pill */
.gv-feed-drop {
  position: absolute; left: calc(14.2 * var(--u)); top: var(--tab-h); z-index: 6; width: min(calc(34 * var(--u)), 60%); max-height: 46%; overflow: auto;
  padding: 0.8em 1em 0.5em; font-size: max(12px, calc(1 * var(--u))); border-radius: 0 0 0.3em 0.3em; user-select: text;
}
.gv-feed-drop .gv-feed p { line-height: 1.35; }

/* A card drawn from either deck, enlarged in the middle until a tap or four seconds (Beni, 19 October) */
.gv-draw {
  position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))); z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: calc(0.6 * var(--u)); pointer-events: auto; cursor: pointer; touch-action: none;
}
/* Held, it follows the finger, a touch bigger, until let go into the hand (Beni, 21 October) */
.gv-draw.is-held { cursor: grabbing; }
.gv-draw.is-held .gv-draw-card { scale: 1.04; }
.gv-draw.is-held .gv-draw-tap { visibility: hidden; }
.gv-draw-tap { font: 700 calc(1.1 * var(--u))/1 var(--f-ui); color: rgba(244, 238, 224, 0.7); text-shadow: 0 0.1em 0.2em #000; }
.gv-draw[hidden] { display: none; }
/* Shown at full strength from the first frame, so it reads even when animation is held back */
.gv-draw.is-in { animation: gv-draw 0.35s ease-out; }
@keyframes gv-draw { from { transform: translate(-50%, -44%) scale(0.92); } }

/* ── The card table: cards that move ───────── */
.gc-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.gc {
  --gc-w: calc(12.5 * var(--u)); --rot: 0deg; --sc: 1;
  position: absolute; width: var(--gc-w); aspect-ratio: 63 / 88; pointer-events: auto;
  font-size: calc(var(--gc-w) / 16); touch-action: none; cursor: grab; user-select: none;
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(var(--sc));
  transition: left 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), top 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), transform 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), width 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.4s ease;
  filter: drop-shadow(0 calc(0.5 * var(--u)) calc(0.8 * var(--u)) rgba(0, 0, 0, 0.55));
  /* Each card on a layer of its own, so a phone moves it whole as it is dragged and leaves no trail of its shadow */
  will-change: transform;
}
.gc:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.gc.is-dragging { transition: none; cursor: grabbing; }
.gc[data-state="home"]:hover { --sc: 1.03; }
.gc[data-state="gone"] { opacity: 0; pointer-events: none; }
.gc--hand { --gc-w: calc(10.5 * var(--u)); }
.gc img { -webkit-user-drag: none; }
.gc-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: auto; background: rgba(5, 4, 8, 0.55); backdrop-filter: blur(1px); }
.gc-scrim[hidden] { display: none; }
.gc-fly { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
/* Each flyer on a layer of its own, so a phone moves it whole and leaves no trail of its glow behind it */
.gc-flying, .gc-token { position: absolute; left: 0; top: 0; width: calc(2.4 * var(--u)); will-change: transform; }
.gc-flying .gc-chit, .gc-flying .gc-chit-art { width: 100%; height: auto; filter: drop-shadow(0 0 calc(0.5 * var(--u)) rgba(255, 240, 200, 0.7)); }
.gc-chit-art { display: block; position: relative; container-type: inline-size; }
.gc-chit-art img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.gc-chit-art b { position: absolute; display: grid; place-items: center; font: 800 24cqw/1 var(--f-ui); color: #0d0b10; }
.gc-token .gem { width: calc(1.2 * var(--u)); height: calc(1.2 * var(--u)); }
/* A chit waiting in the air over the hero card, Beni's pause for the dodge or the block: it bobs and glows, and can
   be tapped to let it land, although the layer it flies in takes no taps */
/* The attack chit held while the hero answers it, drawn larger so a thumb can read it and land on it, its touch
   reaching past what shows (Emrah's phone, 17 October) */
.gc-flying.is-held { pointer-events: auto; cursor: pointer; width: max(30px, calc(3.6 * var(--u))); }
.gc-flying.is-held::before { content: ""; position: absolute; inset: -12px; }
.gc-flying.is-held .gc-chit, .gc-flying.is-held .gc-chit-art { animation: gc-held 1.6s ease-in-out infinite; }
@keyframes gc-held {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 calc(0.5 * var(--u)) rgba(255, 240, 200, 0.7)); }
  50% { transform: translateY(-12%); filter: drop-shadow(0 0 calc(1 * var(--u)) rgba(255, 236, 170, 1)); }
}

/* The line along the bottom: drop a card past it and it goes home */
.gc-reset {
  position: absolute; left: 0; right: 0; top: 93%; height: 7%; z-index: 5; pointer-events: none; opacity: 0;
  border-top: calc(0.2 * var(--u)) dashed rgba(208, 26, 32, 0.85); background: linear-gradient(rgba(208, 26, 32, 0.18), transparent);
  transition: opacity 0.2s ease;
}
.gv.is-dragging-card .gc-reset { opacity: 0.6; }
.gc-reset.is-armed { opacity: 1; background: linear-gradient(rgba(208, 26, 32, 0.35), transparent); }

/* Chits in the shapes and colours of Beni's latest cards: pierce yellow, slash pink, blunt blue */
.gc-chit { width: 1.7em; height: 1.7em; vertical-align: middle; overflow: visible; }
.gc-chit polygon, .gc-chit rect { stroke: #0d0b10; stroke-width: 2; stroke-linejoin: round; }
.gc-chit text { font: 700 15px var(--f-ui); fill: #0d0b10; }
.gc-chit--pierce { fill: #e6c449; }
.gc-chit--slash { fill: #e58fb0; }
.gc-chit--blunt { fill: #5b8fd9; }

/* The card face, from Beni's paper cards */
.gc-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 0.55em; background: #0d0b10; color: var(--bone);
  box-shadow: 0 0 0 0.12em var(--ink), inset 0 0 0 0.16em rgba(236, 230, 214, 0.55);
}
.gc-art { position: absolute; inset: 0 0 38% 0; background: var(--art) center / cover no-repeat; image-rendering: pixelated; }
.gc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 11, 16, 0.75), transparent 30%, transparent 60%, #0d0b10); }
.gc-art--hero { inset: 0; opacity: 0.32; }
.gc-head { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 0.3em; padding: 0.4em 0.5em 0; }
.gc-head h3 { margin: 0; font: var(--f-head-w) 1.2em/1 var(--f-head); text-shadow: 0 0.06em 0 var(--ink); }
.gc-kicker { display: block; font: 700 0.42em/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--redeye); margin-bottom: 0.1em; }
.gc-dodge { display: flex; flex-direction: column; gap: 0.1em; align-items: flex-start; }
.gc-dodge small, .gc-attack small { font: 700 0.42em/1 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); }
.gc-dodge .gem { width: 0.75em; height: 0.75em; }
.gc-when .tod { width: 1.1em; height: 1.1em; }
.gc-attack {
  position: absolute; right: 0.45em; top: 38%; display: flex; flex-direction: column; align-items: center; gap: 0.15em;
  background: rgba(13, 11, 16, 0.78); border: 1px solid rgba(236, 230, 214, 0.3); border-radius: 0.35em; padding: 0.25em 0.35em;
}
.gc-attack b { font-size: 0.6em; }

/* The damage bar: a column per type, its height the number to slay, filling from the bottom */
.gc-bar { position: absolute; left: 0.5em; right: 0.5em; bottom: 0.45em; height: 34%; display: flex; gap: 0.35em; align-items: flex-end; }
.gc-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.12em; }
.gc-col-n { font-size: 0.6em; line-height: 1; }
.gc-col small { font: 700 0.4em/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim); }
.gc-col.is-weak small { color: #9fd0ff; }
.gc-col-shape {
  position: relative; width: 100%; height: calc(var(--h) * 72%); min-height: 0.8em;
  border-top: 0.14em dashed var(--redeye);
}
.gc-col-shape::before, .gc-col-fill { position: absolute; left: 0; right: 0; bottom: 0; }
.gc-col-shape::before { content: ""; top: 0; background: rgba(255, 255, 255, 0.08); }
.gc-col-fill {
  height: calc(var(--taken) / var(--max) * 100%); transition: height 0.35s ease;
  background-image: repeating-linear-gradient(to top, transparent 0 calc(100% / var(--taken, 1) - 1px), rgba(13, 11, 16, 0.45) calc(100% / var(--taken, 1) - 1px) calc(100% / var(--taken, 1)));
}
.gc-col--pierce .gc-col-shape, .gc-col--pierce .gc-col-shape::before { clip-path: polygon(0 0, 50% 9%, 100% 0, 100% 90%, 50% 100%, 0 90%); }
.gc-col--slash .gc-col-shape, .gc-col--slash .gc-col-shape::before { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
.gc-col--pierce .gc-col-shape { box-shadow: inset 0 0 0 0.1em #e6c449; }
.gc-col--slash .gc-col-shape { box-shadow: inset 0 0 0 0.1em #e58fb0; }
.gc-col--blunt .gc-col-shape { box-shadow: inset 0 0 0 0.1em #5b8fd9; }
.gc-col--pierce .gc-col-fill { background-color: #e6c449; }
.gc-col--slash .gc-col-fill { background-color: #e58fb0; }
.gc-col--blunt .gc-col-fill { background-color: #5b8fd9; }
.gc-col.is-hit .gc-col-shape, .gc-socket.is-hit { animation: gc-hit 0.5s ease; }
@keyframes gc-hit { 30% { filter: brightness(2) drop-shadow(0 0 0.4em #fff3c4); transform: scale(1.12); } }

/* The hero card is the inventory: equipment in its slots */
.gc-inv {
  position: absolute; left: 0.45em; right: 0.45em; top: 2.2em; bottom: 38%;
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.25em;
  grid-template-areas: "main head off" "main body off";
}
.gc-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.1em;
  background: rgba(13, 11, 16, 0.72); border: 1px solid rgba(236, 230, 214, 0.28); border-radius: 0.3em; padding: 0.2em 0.15em; min-height: 0;
}
.gc-slot--main { grid-area: main; } .gc-slot--head { grid-area: head; } .gc-slot--body { grid-area: body; } .gc-slot--off { grid-area: off; }
.gc-slot img { width: 64%; image-rendering: pixelated; }
.gc-slot-name { font: 600 0.42em/1.05 var(--f-ui); text-align: center; color: var(--bone-dim); }
.gc-weapon { display: flex; flex-direction: column; gap: 0.1em; }
.gc-weapon .gc-chit { width: 1.15em; height: 1.15em; }
.gc-sockets { display: flex; flex-direction: column; gap: 0.12em; width: 100%; }
.gc-socket { position: relative; display: block; height: 0.55em; border-radius: 0.15em; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.gc-socket i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--taken) / var(--max) * 100%); transition: width 0.35s ease; }
.gc-socket b { position: absolute; inset: 0; font: 700 0.42em/1.3 var(--f-ui); text-align: center; color: var(--bone); text-shadow: 0 0 0.2em #000; }
.gc-socket--pierce { box-shadow: inset 0 0 0 0.08em #e6c449; } .gc-socket--pierce i { background: #e6c449; }
.gc-socket--slash { box-shadow: inset 0 0 0 0.08em #e58fb0; } .gc-socket--slash i { background: #e58fb0; }
.gc-socket--blunt { box-shadow: inset 0 0 0 0.08em #5b8fd9; } .gc-socket--blunt i { background: #5b8fd9; }

/* A vanquished enemy's card goes in a puff */
.gc.is-poof { animation: gc-poof 0.55s ease forwards; }
@keyframes gc-poof { 40% { filter: brightness(2.2) blur(calc(0.1 * var(--u))); } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; filter: blur(calc(0.6 * var(--u))); } }
.gv-actor.is-lunge.gv-actor--left .gv-sprite { animation: gv-lunge-r 0.5s steps(6); }
.gv-actor.is-lunge.gv-actor--right .gv-sprite { animation: gv-lunge-l 0.5s steps(6); }
@keyframes gv-lunge-r { 45% { transform: translateX(15%); } }
@keyframes gv-lunge-l { 45% { transform: translateX(-15%); } }
.gv-actor.is-hit .gv-sprite { animation: gv-hit 0.4s steps(4); }
@keyframes gv-hit { 25%, 75% { filter: brightness(2.4) sepia(1) hue-rotate(-30deg) saturate(4); transform: translateX(2%); } 50% { transform: translateX(-2%); } }
.gv-actor.is-gone { opacity: 0; transform: scale(1.1); transition: opacity 0.6s ease, transform 0.6s ease; }

/* The fixed points mid screen: the decks at the right edge. The battle toggle that stood at the left went with
   Emrah's notes of 13 October */
.gv-side { position: absolute; top: 50%; z-index: 4; }
/* The two decks at the right edge, from Emrah's notes of 13 October: the equipment deck with its gold dots over the
   biome deck with its red, both tucked out of frame but for their edges, and each coming out only while it is in
   play, the biome deck while a draw waits on it and the equipment deck while it hands a card over. No count on
   either, the counts being a strategy metric shown up top. */
.gv-side--right { all: unset; position: absolute; right: 0; z-index: 4; }
.gv-deck { --dot: var(--redeye); top: calc(50% + calc(5.2 * var(--u))); width: calc(6.1 * var(--u)); aspect-ratio: 63 / 88; transform: translate(82%, -50%); transition: transform 0.3s ease; }
.gv-deck--equip { --dot: var(--gold); top: calc(50% - calc(5.45 * var(--u))); }
/* Out in full while in play, Emrah's word of 18 October, the whole back showing, clear of a phone's safe edge */
.gv-deck { --out: translate(calc(-1 * var(--safe-r, 0px) - 0.7 * var(--u)), -50%); }
.gv-deck.is-out { transform: var(--out); }
#gv-deck.is-out { cursor: pointer; }
#gv-deck.is-out:hover { transform: translate(calc(-1 * var(--safe-r, 0px) - 1.1 * var(--u)), -50%); }
.gv-deck:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
/* The deck's back, Emrah's word of 17 October: a solid iron plate, the backing the card frame's iron is bolted to,
   with a pair of eyes set into it, red on the biome deck and gold on the equipment deck (mozaik's deck_back.py) */
.gv-deck { --back: url("/assets/cards/backs/biome-back.png"); }
.gv-deck--equip, .gc-flying.is-card { --back: url("/assets/cards/backs/equip-back.png"); }
.gc-flying.is-card.is-biome { --back: url("/assets/cards/backs/biome-back.png"); }
.gv-back {
  position: absolute; inset: 0; border-radius: calc(0.25 * var(--u));
  background: var(--back) center / 100% 100% no-repeat; image-rendering: pixelated;
  box-shadow: 0 0 0 calc(0.1 * var(--u)) var(--ink), 0 calc(0.3 * var(--u)) calc(0.6 * var(--u)) rgba(0, 0, 0, 0.5);
}
.gv-back:nth-child(1) { transform: translate(calc(-0.44 * var(--u)), calc(0.44 * var(--u))); }
.gv-back:nth-child(2) { transform: translate(calc(-0.22 * var(--u)), calc(0.22 * var(--u))); }
/* A card the equipment deck hands over, in flight from the deck to the hand */
.gc-flying.is-card { --dot: var(--gold); width: calc(6.1 * var(--u)); aspect-ratio: 63 / 88; }

/* The hero card's two red circles, from Beni's paper card: the stamina pool and the spell counter pool */
.gc-head--hero { grid-template-columns: auto 1fr; }
.gc-pools { display: flex; gap: 0.25em; }
.gc-pool {
  width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; align-content: center; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #b3121a 60%, #5a070b); box-shadow: 0 0 0 0.08em var(--ink), inset 0 -0.15em 0.3em rgba(0, 0, 0, 0.45);
}
.gc-pool b { font: 700 0.85em/1 var(--f-ui); color: #fff4ec; text-shadow: 0 0.05em 0 #3a0608; }
.gc-pool small { font: 700 0.3em/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: #ffd9d2; margin-top: 0.1em; }
.gc-inv { top: 2.6em; }

/* Weather: only a look, changing as you move from scene to scene */
.gv { --wxfade: 1.5s; }
.gv[data-mode="title"] { --wxfade: 2.2s; }
.gv-scene, .gv-fauna, .gv-front { transition: filter var(--wxfade) ease-in-out; }
.gv[data-weather="cloudy"] :is(.gv-scene, .gv-fauna, .gv-front) { filter: brightness(0.82) saturate(0.78); }
.gv[data-weather="rain"] :is(.gv-scene, .gv-fauna, .gv-front) { filter: brightness(0.74) saturate(0.7) contrast(1.05); }
.gv[data-weather="storm"] :is(.gv-scene, .gv-fauna, .gv-front) { filter: brightness(0.6) saturate(0.6) contrast(1.1); }
.gv[data-weather="fog"] :is(.gv-scene, .gv-fauna, .gv-front) { filter: brightness(0.9) saturate(0.6) contrast(0.85); }
/* Fog is drawn on two canvases at the scene's pixel size: a lit mist behind the characters, a duller one in front */
.gv-fogc { image-rendering: auto; }
/* Lightning lights the whole scene, to the back of the tunnel, cold and white, the characters left in silhouette */
.gv-flash {
  position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; opacity: 0;
  filter: grayscale(1) brightness(1.9) contrast(1.2) sepia(0.2) hue-rotate(185deg) saturate(1.4); mix-blend-mode: screen;
}
.gv-flash.is-on { animation: gv-flash 0.9s ease-out; }
@keyframes gv-flash { 0% { opacity: 0.9; } 7% { opacity: 0.15; } 14% { opacity: 0.75; } 28% { opacity: 0.25; } 100% { opacity: 0; } }
.gv[data-weather="drizzle"] :is(.gv-scene, .gv-fauna, .gv-front) { filter: brightness(0.86) saturate(0.8); }
.gv[data-weather="drybolt"] :is(.gv-scene, .gv-fauna, .gv-front) { filter: brightness(0.84) saturate(0.82); }
/* Moving into the next scene */
.gv-veil { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; z-index: 5; }
.gv-veil.is-on { opacity: 1; }

/* ── The hero card, from Beni's paper hero board and his black iron frame draft ─ */
/* A solid card */
.gc-face.gc-hero {
  background: #0b0b0d; color: #f4eee0;
  border-radius: 0.35em; box-shadow: 0 0 0 0.06em #000;
}
/* The damage bar's columns, a dashed red top in each chit's shape, filling from the bottom as hits land */
.gh-col-side { fill: none; stroke: rgba(20, 12, 4, 0.55); stroke-width: 1; }
.gh-col-top { fill: none; stroke: #d0141c; stroke-width: 2.2; stroke-dasharray: 5 3; stroke-linecap: round; }
.gh-col-fill { transition: y 0.35s ease, height 0.35s ease; }
.gh-socket.is-hit { animation: gc-hit 0.5s ease; }
/* Each piece is its own little card on the board */
.gh-item {
  position: absolute; inset: 0.12em; border-radius: 0.18em; overflow: hidden; color: #1d1206;
  background: #0b0b0d;
  box-shadow: 0 0 0 0.09em #08080a, inset 0 0 0 0.1em #3a3a42, inset 0 0 0 0.17em #0b0b0e, 0 0.15em 0.3em rgba(0, 0, 0, 0.55);
}
.gh-item-art { position: absolute; left: 50%; top: 52%; width: 74%; transform: translate(-50%, -50%); image-rendering: pixelated; opacity: 0.55; }
.gh-item-name {
  position: absolute; left: 0.32em; right: 1.15em; top: 0.3em; font: var(--f-head-w) 0.74em/1 var(--f-head); color: #1d1206;
  text-shadow: 0 0.05em 0 rgba(255, 236, 190, 0.55);
}
.gh-item-cost { position: absolute; right: 0.28em; top: 0.3em; display: flex; flex-direction: column; gap: 0.1em; }
.gh-item-cost .gems { flex-direction: column; gap: 0.1em; }
.gh-item-cost .gem { width: 0.78em; height: 0.78em; box-shadow: 0 0 0 0.06em #0b0b0e; }
.gh-item-hold { position: absolute; left: 0; right: 0; top: 30%; bottom: 1.15em; display: grid; place-items: center; }
.gh-swing { display: flex; flex-direction: column; align-items: center; gap: 0.1em; }
.gh-swing .gc-chit { width: 2.1em; height: 2.1em; filter: drop-shadow(0 0.08em 0.06em rgba(0, 0, 0, 0.5)); }
.gh-swing i { font: italic 600 0.5em/1 var(--f-ui); color: #3a2410; }
.gh-sockets { display: flex; flex-direction: column; gap: 0.2em; align-items: center; }
.gh-stack { position: relative; display: block; height: min(100%, calc(1.6em * var(--stack-h, 1))); width: auto; align-self: end; margin-bottom: 0.1em; }
.gh-stack.is-hit { animation: gc-hit 0.5s ease; }
.gh-item.is-can .gh-stack { animation: gh-can 0.9s ease-in-out infinite; }
.gh-socket {
  width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 0.12em; transform: rotate(-4deg);
  background: rgba(255, 240, 210, 0.22); box-shadow: inset 0 0 0 0.12em var(--sock), 0 0 0 0.05em rgba(0, 0, 0, 0.35);
}
.gh-socket--blunt { --sock: #4f84d4; } .gh-socket--pierce { --sock: #d6ac2c; } .gh-socket--slash { --sock: #d0607e; }
.gh-socket small { font: 700 0.42em/1.1 var(--f-ui); text-align: center; color: #2a1a08; letter-spacing: 0.03em; }
.gh-socket .gh-held { width: 1.9em; height: 1.9em; transform: rotate(6deg); }
/* A piece that can take the chit in the air: a bone ring round it, and its chit button pulsing for the tap */
.gh-item.is-can {
  cursor: pointer;
  box-shadow: 0 0 0 0.09em #08080a, 0 0 0 0.22em var(--bone), 0 0 0.7em rgba(236, 230, 214, 0.65), inset 0 0 0 0.1em #3a3a42, inset 0 0 0 0.17em #0b0b0e;
}
.gh-item.is-can .gh-swing, .gh-item.is-can .gh-sockets, .gh-item.is-can .gh-spells { animation: gh-can 0.9s ease-in-out infinite; }
@keyframes gh-can { 50% { transform: scale(1.12); } }
/* The chit icons on a weapon or a spell are its attack buttons, Beni's word of 12 October: a tap on one attacks with
   it. One with an enemy in reach and the stamina or the counter to pay glows softly in the stamina green, and the
   stones tapped with a weapon in hand bounce them, saying tap one of these. In a swing a choice of two stacks as before. */
.gh-chit-btn { all: unset; display: inline-flex; align-items: center; gap: 0.1em; cursor: pointer; pointer-events: auto; border-radius: 0.2em; }
.gh-swing .gh-chit-btn { flex-direction: column; }
.gh-chit-btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.gh-chit-btn.is-ready .gc-chit { animation: gh-chit-ready 1.6s ease-in-out infinite; }
.gh-chit-btn.is-nudge .gc-chit { animation: gh-chit-nudge 0.5s ease; }
.gh-chit-btn.is-ready.is-nudge .gc-chit { animation: gh-chit-ready 1.6s ease-in-out infinite, gh-chit-nudge 0.5s ease; }
@keyframes gh-chit-ready {
  0%, 100% { filter: drop-shadow(0 0.08em 0.06em rgba(0, 0, 0, 0.5)) drop-shadow(0 0 0.1em rgba(148, 216, 104, 0.4)); }
  50% { filter: drop-shadow(0 0.08em 0.06em rgba(0, 0, 0, 0.5)) drop-shadow(0 0 0.4em rgba(148, 216, 104, 0.95)); }
}
@keyframes gh-chit-nudge { 30% { transform: scale(1.25); } 60% { transform: scale(0.94); } }

/* ── The enemy card, built as the hero card is: one pixel iron plate, everything else laid over it in its pixels ─ */
.gc-face.ge { background: #0b0b0d; color: #f4eee0; border-radius: 0.35em; box-shadow: 0 0 0 0.06em #000; overflow: hidden; }
.ge > * { position: absolute; }
.ge-art { background: #0b0b0e var(--art) center 40% / cover no-repeat; image-rendering: pixelated; }
.ge.is-redeye .ge-art { box-shadow: inset 0 0 1.2em rgba(208, 26, 32, 0.5); }
.ge-frame { inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.ge-lane, .ge-stone, .ge-chit img { image-rendering: pixelated; }
.ge-stamina { inset: 0; pointer-events: none; }
.ge-stamina > img { position: absolute; }
.ge-stone.is-empty { opacity: 0.28; filter: grayscale(1); }
.ge-chit img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ge-chit b { position: absolute; display: grid; place-items: center; font: 800 0.62em/1 var(--f-ui); color: #0d0b10; }
.ge-chit:not(.is-held) { filter: drop-shadow(0 0.12em 0.15em rgba(0, 0, 0, 0.6)); }
.ge-chit-count, .ge-lane-n { display: grid; place-items: center; font: 800 0.66em/1 var(--f-ui); color: #f4eee0; text-shadow: 0 0 0.25em #000, 0 0.05em 0.1em #000; }
.ge-lane-name { display: grid; place-items: center; font: 800 0.36em/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244, 238, 224, 0.7); }
.ge-anchor.is-hit { animation: gc-hit 0.5s ease; }
/* The name, at the left of the black banner across the top */
.ge-name { display: flex; align-items: center; gap: 0.35em; white-space: nowrap; overflow: hidden; }
.ge-name b { font: var(--f-head-w) calc(1.02em * var(--fit, 1))/1 var(--f-head); color: #f4eee0; overflow: hidden; text-overflow: ellipsis; }
.ge-name small { font: 800 0.4em/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: #ff5a52; }
.ge-name small.is-creep { color: #d9c08a; }
/* A Redeye form's name is red, the word Redeye dropped (Beni, 14 October) */
.ge-name.is-redeye b { color: #e3201b; }
/* The time it turns Redeye, red, in the bar at the foot */
.ge-time { display: grid; place-items: center; font: 800 0.42em/1 var(--f-ui); letter-spacing: 0.22em; text-transform: uppercase; color: #f4eee0; }
.ge-time b { font: var(--f-head-w) 1.45em/1 var(--f-head); letter-spacing: 0.14em; color: #e3201b; }

/* ── Pieces the test site adds ─────────── */
/* Figures arriving, dodging */
.gv-actor.is-dodge .gv-sprite { animation: gv-dodge 0.6s steps(6); }
@keyframes gv-dodge { 40% { transform: translateX(-14%) translateY(-4%); } }
.gv-actor.is-arriving { animation: gv-in-right 1.2s steps(10) both; }
.gv-actor.is-gone { opacity: 0; transition: opacity 0.6s ease; }

/* The hero board's extras: a two handed weapon's second hand, the spell slot, the gate and the corpse */
.gh-item.is-ghost { opacity: 0.55; }
.gh-both { font: 700 0.45em/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.08em; color: #2a1a08; }
.gh-spell { position: absolute; top: 0; left: 0; right: 0; text-align: center; font: 700 0.5em/1 var(--f-ui); color: #5a0f14; }
.gh-spells { display: flex; flex-direction: column; gap: 0.3em; align-items: center; font: 700 0.5em/1.1 var(--f-ui); color: #1d1206; }
/* Each spell learnt: its name over its chits, the cast buttons, small enough for two or three spells to the slot */
.gh-item--spellslot .gh-item-hold { top: 1.3em; }
.gh-spell-row { display: flex; flex-direction: column; align-items: center; gap: 0.15em; }
.gh-spell-chits { display: flex; align-items: center; gap: 0.15em; }
.gh-spell-chits .gc-chit { width: 2.2em; height: 2.2em; filter: drop-shadow(0 0.08em 0.06em rgba(0, 0, 0, 0.5)); }
.gh-spell-chits i { font: italic 600 0.85em/1 var(--f-ui); color: #3a2410; }
.gh-swing em { font: 700 normal 0.42em/1 var(--f-ui); color: #5a0f14; }
.gh-socket--mixed { --sock: #3a3a42; }
.gh-ribbon {
  position: absolute; left: 50%; bottom: 0.55em; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  font: 800 0.5em/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: #f4eee0;
}
.gh-ribbon--corpse { color: #ffb0a8; }
.gc-hero.is-passed .gb-slot, .gc-hero.is-passed .gw-slot { opacity: 0.5; }

/* A card in the hand with no art of its own yet */
.gc-face.gk {
  background: #0b0b0d; color: #f4eee0;
  border-radius: 0.35em; box-shadow: 0 0 0 0.06em #000;
}
.gk-name {
  position: absolute; left: 50%; top: 0.55em; transform: translateX(-50%); max-width: 84%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: var(--f-head-w) 1.08em/1 var(--f-head); color: #f4eee0; padding: 0.22em 0.55em 0.26em; background: linear-gradient(#26262c, #0b0b0e 55%, #18181d); border-radius: 0.2em;
  box-shadow: 0 0 0 0.08em #000, inset 0 0.08em 0 rgba(255, 255, 255, 0.24);
}
.gk-art {
  position: absolute; left: 1.5em; right: 1.5em; top: 2.6em; height: 9.4em; border-radius: 0.15em; display: grid; place-items: center;
  background: #1c140a var(--art, none) center / cover no-repeat; image-rendering: pixelated;
  box-shadow: 0 0 0 0.12em #0b0b0e, 0 0 0 0.2em #3a3a42, 0 0 0 0.28em #0b0b0e, inset 0 0 0.8em rgba(0, 0, 0, 0.6);
}
.gk-art span { font: var(--f-head-w) 1.4em/1 var(--f-head); color: rgba(236, 230, 214, 0.35); }
.gk-kind { position: absolute; left: 1.6em; top: 12.6em; font: 800 0.6em/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: #3a2410; }
.gk-text { position: absolute; left: 1.6em; right: 1.6em; top: 13.9em; bottom: 2.4em; overflow: hidden; font: 600 0.8em/1.25 var(--f-ui); color: #1d1206; }
/* What the biome deck drew */
.gv-draw-card { position: relative !important; left: auto !important; top: auto !important; transform: none !important; --gc-w: min(calc(34 * var(--u)), calc(74cqh * 63 / 88)) !important; filter: drop-shadow(0 calc(1 * var(--u)) calc(1.4 * var(--u)) rgba(0, 0, 0, 0.7)); }


/* ── The light's two sets crossfade when the hour or the weather changes ── */
.gv-shade, .gv-glow { transition: opacity var(--fade) ease-in-out; }
.gv-air.is-off { opacity: 0; }

/* A counter on its way to the slay track */
.gc-flying.is-counter { width: calc(calc(100 * var(--u)) / 384 * 9); }
.gc-planet { display: block; width: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 calc(0.6 * var(--u)) rgba(255, 240, 200, 0.9)); }

/* ── An opened card's plate: what the old panels said about a hero or an enemy ── */
.gc-detail { position: absolute; width: calc(22 * var(--u)); max-height: 90%; overflow: auto; padding: 0.9em 1.05em 1em; font-size: max(12px, calc(1 * var(--u))); line-height: 1.3; pointer-events: auto; cursor: default; }
.gc-detail h3 { margin: 0 0 0.55em; font: var(--f-head-w) 1.45em/1.05 var(--f-head); }
.gc-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.38em 0.9em; margin: 0; }
.gc-detail dt { color: rgba(244, 238, 224, 0.6); font-size: 0.88em; padding-top: 0.08em; }
.gc-detail dd { margin: 0; }
.gc-detail-note { margin: 0.75em 0 0; font-size: 0.92em; }
.gc-detail-lore { margin: 0.85em 0 0; font-style: italic; color: rgba(244, 238, 224, 0.7); }
.gc-detail-hint { margin: 0.85em 0 0; font-size: 0.88em; color: #e8c46a; }

/* ── Buttons and the parts of our windows ── */
.gv .gv-btn {
  font: 600 0.95em/1 var(--f-ui); color: var(--ivory); padding: 0.6em 1em; border: 0; border-radius: 0.25em; cursor: pointer; text-shadow: 0 0.06em 0 #000;
  background: linear-gradient(#34343c, #18181d); box-shadow: 0 0 0 0.08em #050506, inset 0 0.08em 0 rgba(255, 255, 255, 0.16);
}
.gv .gv-btn:hover:not(:disabled), .gv .gv-btn:focus-visible { outline: none; box-shadow: 0 0 0 0.08em #050506, 0 0 0 0.18em rgba(208, 26, 32, 0.85), inset 0 0.08em 0 rgba(255, 255, 255, 0.16); }
.gv .gv-btn[aria-pressed="true"], .gv .gv-btn--red { background: linear-gradient(#a3242a, #5a0f14); }
.gv .gv-btn:disabled { opacity: 0.4; cursor: default; }
.gv-actions { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 1.1em; }
.gv-note { margin: 0.7em 0 0; font-size: 0.88em; line-height: 1.4; color: rgba(244, 238, 224, 0.66); }
.gv-close { all: unset; cursor: pointer; width: 1.5em; height: 1.5em; display: grid; place-items: center; font: 400 1.4em/1 var(--f-ui); color: var(--ivory); border-radius: 0.2em; }
.gv-close:hover, .gv-close:focus-visible { color: #ff6a64; }
.gv-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.8em 0.8em 0.45em 1.15em; }
.gv-sheet-head h2 { margin: 0; font: var(--f-head-w) 1.5em/1.05 var(--f-head); }
.gv-sheet-body { overflow: auto; min-height: 0; padding: 0.2em 1.15em 1.15em; user-select: text; }
.gv-sheet-body h3 { margin: 1.2em 0 0.55em; font: 700 0.74em/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 238, 224, 0.58); }
.gv-sheet-body h3:first-child { margin-top: 0.3em; }
.gv-sheet-body p { line-height: 1.4; }

/* ── The sheets the main menu opens ── */
.gv-sheet-wrap { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(5, 4, 8, 0.5); }
/* A window keeps inside the largest 16 by 9, whose height is 56.25 of --u, and scrolls its body: a percentage cap did nothing in the
   centring grid, so on a phone a long window ran off the bottom (Emrah, 14 October) */
.gv-sheet { width: min(calc(60 * var(--u)), 94%); max-height: calc(calc(56.25 * var(--u)) - 2 * var(--tab-h)); display: flex; flex-direction: column; font-size: max(13px, calc(1.1 * var(--u))); }
.gv-sheet[data-kind="map"], .gv-sheet[data-kind="place"], .gv-sheet[data-kind="glyph"] { width: min(calc(84 * var(--u)), 96%); }
/* The glyph as large as the window lets it, the heroes' lines under it */
.gv-glyph-big { display: block; margin: 0 auto 0.6em; max-width: 100%; max-height: calc(calc(56.25 * var(--u)) - 2 * var(--tab-h) - 7.5em); min-height: 10em; object-fit: contain; border-radius: 0.3em; background: #fff; }
.gv-sheet[data-kind="end"], .gv-sheet[data-kind="new"] { width: min(calc(36 * var(--u)), 94%); }
.gv-feed p { margin: 0 0 0.55em; }
.gv-feed .turn { color: #e8c46a; margin-top: 1em; }
.gv-feed .time { color: #e8b4ff; }
.gv-feed .lore { font-style: italic; color: rgba(244, 238, 224, 0.58); }
.gv-dl { display: grid; grid-template-columns: 1fr auto; gap: 0.5em 1.4em; margin: 0.2em 0 0; }
.gv-dl dt { color: rgba(244, 238, 224, 0.75); }
.gv-dl dd { margin: 0; font-weight: 700; text-align: right; }
/* The map: the castle's two rows of twelve, the walls drawn as bars between squares, and behind each cluster of six
   its own scene, darkened so the board still reads through the squares over it */
.gv-map { overflow: hidden; padding-bottom: 0.3em; }
.gv-map-board { position: relative; }
.gv-map .board { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 12), var(--cell, 5em)); grid-auto-rows: var(--cell, 5em); justify-content: center; gap: 0.3em; min-width: 0; }
.gv-map .cell { position: relative; aspect-ratio: 1; min-width: 0; min-height: 0; padding: 0.3em 0.35em; font-size: 0.78em; overflow: hidden; background: rgba(13, 11, 16, 0.38); border: 1px solid rgba(236, 230, 214, 0.22); border-radius: 0.3em; text-shadow: 0 0.06em 0.2em #000; }
.gv-map .cell.here { border-color: #e8c46a; box-shadow: inset 0 0 0 1px #e8c46a; }
.gv-map .cell.gate { background: rgba(90, 10, 14, 0.42); }
.gv-map .cell.wb::before { content: ""; position: absolute; left: -0.25em; right: -0.25em; bottom: -0.32em; height: 0.32em; z-index: 1; background: #b08a4f; border-radius: 0.1em; }
.gv-map .cell.void { visibility: hidden; }
.gv-map .cell.wr::after { content: ""; position: absolute; top: -0.25em; bottom: -0.25em; right: -0.32em; width: 0.32em; z-index: 1; background: #b08a4f; border-radius: 0.1em; }
.gv-map .cell .n { font-size: 0.85em; color: rgba(244, 238, 224, 0.55); }
.gv-map .cell .tok { display: block; margin-top: 0.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-map .tok.enemy { color: #f0a39c; }
.gv-map .tok.redeye { color: #ff5a52; font-weight: 700; }
.gv-map .tok.muted { color: rgba(244, 238, 224, 0.5); }

/* ── The end of a run ── */
.gv-end { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(5, 4, 8, 0.55); }
.gv-end-win { width: min(calc(56 * var(--u)), 94%); max-height: 86%; overflow: auto; padding: 1.15em 1.35em 1.3em; font-size: max(13px, calc(1.1 * var(--u))); user-select: text; }
.gv-end-win h2 { margin: 0 0 0.65em; font: var(--f-head-w) 1.8em/1.05 var(--f-head); }
.gv-sum { margin: 0; padding: 0.85em 0.95em; white-space: pre-wrap; font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(0, 0, 0, 0.35); border-radius: 0.3em; box-shadow: inset 0 0 0 1px rgba(236, 230, 214, 0.1); }

/* ── The developer console, for Emrah and Beni to test with: / or three quick taps on the dial, over everything ── */
.gv-dev {
  position: absolute; left: 50%; top: calc(0.8 * var(--u)); transform: translateX(-50%); z-index: 30; width: min(calc(56 * var(--u)), 94%); max-height: 60%;
  display: flex; flex-direction: column; font-size: max(14px, calc(1.15 * var(--u))); pointer-events: auto;
}
.gv-dev .gv-sheet-head { padding: 0.55em 0.6em 0.3em 1em; }
.gv-dev .gv-sheet-head h2 { font-size: 1.3em; }
/* The replies, newest at the bottom, each under the line that asked for it in a dimmer colour; the text can be copied */
.gv-dev-head { color: #ff5a52; font-weight: 800; letter-spacing: 0.04em; }
.gv-dev-out {
  flex: 1 1 auto; min-height: 3em; margin: 0 0.75em; padding: 0.6em 0.75em; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 500 0.6em/1.45 ui-monospace, Menlo, monospace; font-size: max(10px, 0.6em); color: var(--ivory); user-select: text; -webkit-user-select: text;
  background: rgba(0, 0, 0, 0.35); border-radius: 0.3em; box-shadow: inset 0 0 0 1px rgba(236, 230, 214, 0.1);
}
.gv-dev-cmd { color: rgba(244, 238, 224, 0.5); }
/* The event log in colour, each phase in its colour on the RTG Turn Logic canvas, in Obsidian's own palette for a dark
   ground: green for NEW TURN and the Hero Attack Phase, red for the draws and End turn, orange for the Enemy Attack
   Phase, cyan for the Inventory Scenario and purple for the slay track and the time */
.gv-ev b { font-weight: 800; }
.gv-ev--newturn { color: #44cf6e; font-weight: 800; }
.gv-ev--turn, .gv-ev--hero { color: #44cf6e; }
.gv-ev--draw, .gv-ev--end { color: #fb464c; }
.gv-ev--enemy { color: #e9973f; }
.gv-ev--inv { color: #53dfdd; }
.gv-ev--time { color: #a882ff; }
.gv-ev--rule { color: var(--ivory); }
.gv-ev--moment { color: rgba(244, 238, 224, 0.55); }
.gv-ev--log { color: rgba(244, 238, 224, 0.36); }
.gv-ev.is-refused { font-style: italic; }
/* The quick buttons, in the battle menu's style; God and Endless turn red while they are on */
.gv-dev-row { display: flex; flex-wrap: wrap; gap: 0.05em 0.25em; padding: 0.4em 0.75em 0; font-size: 0.95em; }
.gv-dev-row .cmd { all: unset; cursor: pointer; position: relative; padding: 0.18em 0.45em 0.18em 1.25em; border-radius: 0.2em; color: var(--ivory); }
.gv-dev-row .cmd:hover, .gv-dev-row .cmd:focus-visible { background: rgba(255, 255, 255, 0.05); }
.gv-dev-row .cmd.is-on { color: #ff5a52; }
/* The line typed in: dark iron, the full width, large enough that a phone doesn't zoom in on it */
.gv-dev-in {
  width: calc(100% - 1.5em); margin: 0.45em 0.75em 0.75em; padding: 0.45em 0.65em; font: 500 0.8em/1.3 ui-monospace, Menlo, monospace; font-size: max(16px, 0.8em);
  color: var(--ivory); caret-color: #ff5a52; background: #0b0b0e; border: 0; border-radius: 0.25em; user-select: text; -webkit-user-select: text;
  box-shadow: inset 0 0 0 1px #3c3c46, inset 0 0.15em 0.3em rgba(0, 0, 0, 0.6);
}
.gv-dev-in::placeholder { color: rgba(244, 238, 224, 0.4); }
.gv-dev-in:focus { outline: none; box-shadow: inset 0 0 0 1px #3c3c46, 0 0 0 0.14em rgba(208, 26, 32, 0.8); }
/* On a phone held sideways the console takes most of the screen and its quick buttons keep to one row that scrolls, so
   the replies get the room to be read (Emrah, 14 October) */
@media (max-height: 500px) {
  .gv-dev { top: 2%; max-height: 96%; width: min(calc(84 * var(--u)), 96%); font-size: 13px; }
  .gv-dev .gv-sheet-head { padding: 0.3em 0.5em 0.15em 0.9em; }
  .gv-dev-row { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 0.3em; }
  .gv-dev .gv-sheet-head, .gv-dev-in { flex: none; }
  .gv-dev-out { min-height: 0; }
  .gv-dev-row .cmd { white-space: nowrap; flex: none; }
  .gv-dev-in { margin: 0.35em 0.75em 0.5em; padding: 0.3em 0.6em; }
}
/* A run the console has cheated wears it in the pills */
.gv-pill--dev { color: #ff5a52; font-weight: 800; letter-spacing: 0.14em; }

/* ── The title: the forest ruin in timelapse, the name, and the way in ── */
/* The splash screen shows no time of day wheel, the scene turning through the hours behind the title alone (Emrah, 14 October) */
.gv[data-mode="title"] :is(.gv-pills, .gv-tab, .gv-side, .gc-reset, .gc-layer, .gv-draw, .gv-sheet-wrap, .gv-end, .gv-next, .gv-feed-drop, .dial-title, .gv-grave, .gv-tod) { display: none; }
.gv-title {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(2.4 * var(--u)); padding-top: calc(11 * var(--u));
  background: radial-gradient(55% 45% at 50% 58%, rgba(0, 0, 0, 0.38), transparent 72%);
}
.gv-logo-wrap { text-align: center; pointer-events: none; }
.gv-logo { margin: 0; font: 400 calc(9.5 * var(--u))/0.85 var(--f-logo); color: var(--ivory); letter-spacing: 0.01em; text-shadow: 0 0.04em 0 #000, 0 0 0.3em rgba(0, 0, 0, 0.7); }
.gv-sub { margin: calc(0.9 * var(--u)) 0 0; font: 700 calc(1.05 * var(--u))/1 var(--f-ui); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(244, 238, 224, 0.82); text-shadow: 0 0.1em 0.35em #000; }
/* The build, small in the corner of the splash, so a tester can tell which version they have (Emrah, 15 October) */
/* On the title, when the run kept is one this version can't read */
.gv-title-note { margin: 0 0 0.6em; max-width: 22em; font: 500 max(11px, calc(0.9 * var(--u)))/1.35 var(--f-ui); color: rgba(236, 230, 214, 0.7); }
.gv-build { position: absolute; right: max(calc(1.2 * var(--u)), env(safe-area-inset-right)); bottom: max(calc(1 * var(--u)), env(safe-area-inset-bottom)); margin: 0; font: 600 max(10px, calc(0.85 * var(--u)))/1 var(--f-ui); letter-spacing: 0.06em; color: rgba(236, 230, 214, 0.45); text-shadow: 0 0.1em 0.3em #000; pointer-events: none; }
.gv-copy { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: max(calc(1 * var(--u)), env(safe-area-inset-bottom)); margin: 0; font: 600 max(10px, calc(0.85 * var(--u)))/1 var(--f-ui); letter-spacing: 0.06em; color: rgba(236, 230, 214, 0.45); text-shadow: 0 0.1em 0.3em #000; pointer-events: none; }
.gv-begin { all: unset; cursor: pointer; padding: 0.6em 1.2em; font: 700 calc(1.35 * var(--u))/1 var(--f-ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory); text-shadow: 0 0.1em 0.45em #000; animation: gv-blink 1.6s steps(1) infinite; }
.gv-begin:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
@keyframes gv-blink { 50% { opacity: 0.3; } }
/* The title's choices as words in the title's type, no box, the one picked marked by a pair of red eyes (Emrah, 17 October) */
.gv-title-menu { display: flex; flex-direction: column; align-items: center; gap: 0.15em; font-size: max(17px, calc(1.9 * var(--u))); }
.gv-title-menu .cmd { all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; padding: 0.22em 0.4em; font: var(--f-head-w) 1em/1.05 var(--f-head); color: rgba(244, 238, 224, 0.72); text-shadow: 0 0.06em 0 #000, 0 0 0.5em rgba(0, 0, 0, 0.9); transition: color 0.2s ease; }
.gv-title-menu .cmd.is-on, .gv-title-menu .cmd:hover, .gv-title-menu .cmd:focus-visible { color: var(--ivory); }
.gv .gv-title-menu .cmd::before { display: none; }
.gv .gv-title-menu .cmd.is-on::before, .gv .gv-title-menu .cmd:focus-visible::before {
  display: block; content: ""; position: absolute; left: auto; right: 100%; top: 0.62em; width: 0.2em; height: 0.2em; margin-right: 0.15em; transform: none; clip-path: none;
  background: #ff3b30; box-shadow: 0.42em 0 0 #ff3b30, 0 0 0.3em 0.05em rgba(255, 40, 30, 0.85), 0.42em 0 0.3em 0.05em rgba(255, 40, 30, 0.85); animation: gv-eyes 4s steps(1) infinite;
}
@keyframes gv-eyes { 0%, 94%, 100% { opacity: 1; } 96% { opacity: 0; } }
.gv-title-menu .cmd small { margin-top: 0.25em; font: 600 0.5em/1 var(--f-ui); letter-spacing: 0.04em; color: rgba(244, 238, 224, 0.62); }
/* New game: the heroes and the switches, over the timelapse */
.gv-title[data-stage="setup"] .gv-logo-wrap { visibility: hidden; }
.gv-setup { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(calc(72 * var(--u)), 94%); max-height: 88%; display: flex; flex-direction: column; font-size: max(13px, calc(1.05 * var(--u))); }
.gv select, .gv input[type="number"] {
  font: inherit; color: var(--ivory); background: #141418; border: 0; border-radius: 0.2em; padding: 0.25em 0.4em; box-shadow: 0 0 0 1px rgba(236, 230, 214, 0.25);
}
.gv input[type="number"] { width: 4.6em; }

/* ── The engine's prompts, in the same iron ── */
body.gv-on #modal { background: rgba(5, 4, 8, 0.45); z-index: 20; }
body.gv-on #modal .box {
  max-width: 460px; padding: 18px 20px 16px; border: 0; border-radius: 6px; color: #f4eee0; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #2a2a31, #0d0d10 52%, #1a1a20); font: 16px/1.35 "Alegreya Sans", system-ui, sans-serif;
  box-shadow: 0 0 0 2px #050506, inset 0 0 0 2px #3c3c46, inset 0 0 0 3px #0b0b0e, 0 10px 30px rgba(0, 0, 0, 0.6);
}
body.gv-on #modal .box h3 { margin: 0 0 6px; font: var(--f-head-w) 21px/1.15 var(--f-head); }
body.gv-on #modal .box .muted { color: rgba(244, 238, 224, 0.7); }
body.gv-on #modal .opts { gap: 2px; }
body.gv-on #modal .opts button { position: relative; padding: 6px 8px 6px 26px; text-align: left; font: inherit; color: #f4eee0; text-shadow: inherit; background: transparent; border: 0; border-radius: 4px; }
body.gv-on #modal .opts button:hover:not(:disabled), body.gv-on #modal .opts button:focus-visible { outline: none; background: rgba(255, 255, 255, 0.05); }
body.gv-on #modal .opts button:hover:not(:disabled)::before, body.gv-on #modal .opts button:focus-visible::before {
  content: ""; position: absolute; left: 8px; top: 50%; width: 9px; height: 12px; transform: translateY(-50%); background: #d01a20; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
body.gv-on #modal .opts button:disabled { color: rgba(244, 238, 224, 0.38); }

/* ── The next step, a fast forward at the bottom right, from Emrah's notes of 13 October: two red arrows and no
   words, ending the turn and shown only while it can be pressed. While a draw can be taken it stays hidden, the
   glowing deck asking for the draw on its own. ── */
/* Placed over the enemy cards, as wide as the one in front and lined up with it, and tall enough for a thumb (Emrah, 17 October) */
.gv-next {
  position: absolute; right: calc(14.6% - 6.25 * var(--u)); bottom: calc(10% + 1.4 * var(--u)); z-index: 4; width: calc(12.5 * var(--u)); height: max(40px, calc(3.6 * var(--u))); padding: 0; margin: 0; border: 0; border-radius: 0.3em; cursor: pointer;
  display: grid; place-items: center; font-size: max(12px, calc(1.15 * var(--u))); color: #d6453d;
  background: var(--iron); box-shadow: var(--iron-edge), 0 0 1.1em rgba(208, 26, 32, 0.55);
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}
.gv-next svg { width: max(22px, calc(2.2 * var(--u))); height: auto; fill: currentColor; filter: drop-shadow(calc(0.08 * var(--u)) calc(0.08 * var(--u)) 0 rgba(0, 0, 0, 0.85)); }
.gv-next:hover, .gv-next:focus-visible { outline: none; box-shadow: var(--iron-edge), 0 0 0 0.18em rgba(208, 26, 32, 0.85); }
.gv-next.is-off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
/* End turn sits over the cards, so the enemy stack and a big hand never cover it (Beni, 14 October) */
.gv-next { z-index: 7; }
/* On a touch screen the controls at the edges reach further than they show, so a thumb near the edge still finds them,
   and the phone isn't left to read a touch on them as the start of a scroll or a zoom */
@media (pointer: coarse) {
  .gv-menu-handle, .gv-next, .gv-deck { touch-action: none; }
  .gv-menu-handle { position: relative; }
  .gv-menu-handle::before { content: ""; position: absolute; inset: 0 -12px -16px -12px; }
  .gv-next::before { content: ""; position: absolute; inset: -12px -10px; }
  .gv-deck::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: -24px; right: 0; }
}
/* The deck glows red while the turn's draw waits on it, and gives a shake when something is tried before it */
/* drawn as a soft red glow round the card that pulses, with no hard neon ring (Beni, 20 October), which a phone draws on
   its own layer */
.gv-deck.is-owed::after { content: ""; position: absolute; inset: 0; border-radius: calc(0.7 * var(--u)); pointer-events: none;
  box-shadow: 0 0 calc(2.2 * var(--u)) calc(0.3 * var(--u)) rgba(190, 30, 34, 0.55);
  animation: gv-deck-glow 1.6s ease-in-out infinite; will-change: opacity; }
@keyframes gv-deck-glow { 50% { opacity: 0.45; } }
.gv-deck.is-nudge { animation: gv-deck-nudge 0.45s ease; }
@keyframes gv-deck-nudge { 25% { transform: var(--out) rotate(-5deg); } 75% { transform: var(--out) rotate(5deg); } }

/* ── The (i) on an opened card's corner, folding its plate away ── */
.gc-info {
  position: absolute; width: max(22px, calc(2.2 * var(--u))); height: max(22px, calc(2.2 * var(--u))); transform: translate(-70%, -30%); margin: 0; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; pointer-events: auto; font: italic 700 max(12px, calc(1.2 * var(--u)))/1 Georgia, "Times New Roman", serif; color: var(--ivory);
  background: var(--iron); box-shadow: 0 0 0 0.12em #050506, inset 0 0 0 0.1em #3c3c46, 0 0.3em 0.7em rgba(0, 0, 0, 0.55);
}
/* Beni's pixel (i) of 20 October in place of the drawn one, the same button whether pressed or not, lit when pressed */
.gc-info { background: none; box-shadow: none; transform: translate(-50%, -50%); transition: opacity 0.18s ease; }
.gc-info img { width: 100%; height: 100%; image-rendering: pixelated; display: block; filter: drop-shadow(0 0.15em 0.3em rgba(0, 0, 0, 0.6)); }
.gc-info.is-coming { opacity: 0; pointer-events: none; transition: none; }
.gc-info[aria-pressed="true"] img { filter: drop-shadow(0 0 0.35em rgba(232, 196, 106, 0.95)); }
.gc-info:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* The card's top bar as the button, invisibly, in place of the (i) (Emrah, 25 October) */
.gc-info { transform: none; border-radius: 0; background: transparent; }
.gc-info img { display: none; }
/* Give to another Hero, Beni's blue giving button on a held card's bottom border (Beni, 20 October) */
.gc-give {
  position: absolute; transform: translate(-50%, -50%); margin: 0; padding: 0.25em 0.8em; cursor: pointer; pointer-events: auto; white-space: nowrap;
  font: 600 13px/1.2 "Grenze", Georgia, serif; color: #f2f5ff; background: #2f62b8; border: 0; border-radius: 0;
  box-shadow: 0 0 0 2px #0b1c3a, inset 0 0 0 1px #6f9be6, 0 0.3em 0.7em rgba(0, 0, 0, 0.55); image-rendering: pixelated;
}
.gc-give:hover { background: #3a72d0; }
.gc-give { transition: opacity 0.18s ease; }
.gc-give.is-coming { opacity: 0; pointer-events: none; transition: none; }
.gc-give:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

/* The hero card's geometry wireframe (?wire), from geometry.json: stand in shapes for the art session to skin */
.gc-face.gw { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.gw-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gw-slot, .gw-anchor { position: absolute; }
.gw-slot .gh-item { inset: 0; font-size: 1.1em; }

/* The hero card: Beni's oversized hero board in his iron, laid out by geometry.json, its art of 12 October */
.gc--hero { aspect-ratio: 159 / 195; } /* the board in glass, geometry.json's extent, Emrah's mocks of 23 October */
.gc-face.gb { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.gb-glass, .gb-stone { position: absolute; image-rendering: pixelated; pointer-events: none; }
/* The move chip, its boots at the board's own pixel size, lit while a step can be taken */
.gb-move { position: absolute; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; }
.gb-move img { position: absolute; left: 50%; top: 50%; width: 32.65%; transform: translate(-50%, -50%); image-rendering: pixelated; pointer-events: none; }
.gb-move:not(.is-ready) img { opacity: 0.7; filter: grayscale(0.5) brightness(0.85); }
.gb-move.is-ready img { filter: drop-shadow(0 0 0.25em rgba(232, 196, 106, 0.7)); }
.gb-move:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* On the glass a worn card loses its frame and its ground, the scene showing through it, its object ringed dark so pale
   and dark gear both read on any scene; in the hand it keeps them (Emrah, 23 October) */
.gb-slot .gq-frame, .gb-slot .gq-ground { display: none; }
.gb-slot .gq-object, .gb-slot .gq-art { filter: drop-shadow(0.8cqw 0 0 var(--glass-edge-out)) drop-shadow(-0.8cqw 0 0 var(--glass-edge-out)) drop-shadow(0 0.8cqw 0 var(--glass-edge-out)) drop-shadow(0 -0.8cqw 0 var(--glass-edge-out)); }
.gb-slot .gq-name { text-shadow: 0 0 0.12em #000, 0 0.06em 0 #000, 0.06em 0 0 #000, -0.06em 0 0 #000, 0 -0.06em 0 #000; }
.gb-track { position: absolute; overflow: hidden; pointer-events: none; }
.gb-chit { position: absolute; }
.gb-chit img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
/* The level on the chit's flat face, drawn by the game so it stays sharp */
.gb-chit b { position: absolute; display: grid; place-items: center; font: 800 0.62em/1 var(--f-ui); color: #0d0b10; }
.gb-slot, .gb-anchor { position: absolute; }
/* The hero's name in the top left of the empty head slot, in the same hand as a worn card's name (Beni's ticket 83) */
.gb-slot[data-slot="head"] { container-type: size; }
.gb-hname { position: absolute; left: 8%; top: 3%; right: 8%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: var(--f-head-w) 9cqw/1 var(--f-head); color: #f4eee0; text-shadow: 0 0 0.12em #000, 0 0.06em 0 #000, 0.06em 0 0 #000, -0.06em 0 0 #000, 0 -0.06em 0 #000; pointer-events: none; }
.gb-slot .gh-item { inset: 0; font-size: 1.1em; }
.gb-anchor { pointer-events: none; }
.gb-anchor.is-hit { animation: gb-hit 0.5s ease; }
@keyframes gb-hit { 30% { background: rgba(255, 238, 190, 0.45); box-shadow: 0 0 0.4em #fff3c4; } }
.gb-stone.is-empty { opacity: 0.28; filter: grayscale(1); }
.gb-count {
  position: absolute; display: grid; place-items: center; pointer-events: none;
  font: 800 0.72em/1 var(--f-ui); color: #fff; text-shadow: 0 0 0.12em #000, 0 0 0.12em #000, 0 0 0.12em #000;
}
.gb-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The stones are buttons: a clear button over each pool, glowing in its colour when it has something to do, the
   stamina stones in green and the spell stones in blue. Softly on the hero's own turn, the fists with an enemy in
   reach or a spell with the counter to cast it, hard and fast while a chit waits in the air for the dodge or the spell */
.gb-pool { --pool-rgb: 148 216 104; position: absolute; margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0.3em; cursor: pointer; pointer-events: auto; }
.gb-pool--spell { --pool-rgb: 94 178 250; }
/* The thumb gets more than the stones: the tap lands on a halo round them, the glow stays on the stones */
.gb-pool::before { content: ""; position: absolute; inset: -35% -30% -45% -25%; }
.gb-pool:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.gb-pool.is-ready { animation: gb-ready 1.6s ease-in-out infinite; }
.gb-pool.is-can { animation: gb-can 0.9s ease-in-out infinite; }
@keyframes gb-ready {
  0%, 100% { box-shadow: 0 0 0 0.1em rgb(var(--pool-rgb) / 0.35), 0 0 0.4em rgb(var(--pool-rgb) / 0.25); }
  50% { box-shadow: 0 0 0 0.16em rgb(var(--pool-rgb) / 0.7), 0 0 0.9em rgb(var(--pool-rgb) / 0.55); }
}
@keyframes gb-can {
  0%, 100% { box-shadow: 0 0 0 0.14em rgb(var(--pool-rgb) / 0.75), 0 0 0.6em rgb(var(--pool-rgb) / 0.5); }
  50% { box-shadow: 0 0 0 0.24em rgb(var(--pool-rgb) / 1), 0 0 1.2em rgb(var(--pool-rgb) / 0.9); }
}

/* ── Emrah's notes of 13 October: the grave, the ×, the capstone and the map's squares ── */
/* The grave, the discard pile, top right under the main menu's handle: a dark recess holding the top card face up.
   While a card from the hand is dragged it marks itself out in the build's dashed red for a drop, and takes the red
   when the card is over it. Over the map it sits above the dim, so the capstone can be swiped to it */
.gv-grave {
  position: absolute; right: calc(1.2 * var(--u)); top: calc(var(--tab-h) + calc(0.5 * var(--u))); width: calc(12 * var(--u)); height: calc(7.8 * var(--u)); z-index: 5;
  display: grid; place-items: center; border-radius: calc(0.45 * var(--u)); pointer-events: none;
}
.gv-grave::after {
  content: ""; position: absolute; inset: calc(0.35 * var(--u)); border-radius: calc(0.3 * var(--u)); border: calc(0.2 * var(--u)) dashed rgba(208, 26, 32, 0.85);
  opacity: 0; transition: opacity 0.2s ease;
}
.gv.is-dragging-card .gv-grave::after { opacity: 0.75; }
.gv-grave.is-over::after { opacity: 1; border-width: calc(0.3 * var(--u)); border-color: #d01a20; }
.gv[data-moving="true"] .gv-grave { z-index: 10; }
/* The map the boot button opens, the same window as the map opened any other way (Beni's ticket 72 of 2 November), the
   squares the hero can reach lit in gold for a tap */
.gv-map .cell.can { cursor: pointer; background: rgba(232, 196, 106, 0.16); border-color: rgba(232, 196, 106, 0.9); animation: gv-can 1.6s ease-in-out infinite; }
.gv-map .cell.can:hover, .gv-map .cell.can:focus-visible { outline: none; background: rgba(232, 196, 106, 0.32); }
@keyframes gv-can { 50% { box-shadow: inset 0 0 0 1px #e8c46a, 0 0 0.9em rgba(232, 196, 106, 0.55); } }
.gv-sheet[data-kind="move"] .gv-map .cell:not(.can):not(.here) { opacity: 0.7; }

/* The skill glyph's table, the whole screen: over the cards, under the top bar's left pills so its tab shuts it again */
.gv-glyph { position: absolute; left: 50%; top: 50%; width: calc(100 * var(--u)); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); z-index: 7; background: #050507; box-shadow: 0 0 0 100vmax #050507; }
.gv-glyph canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.gv[data-glyph="open"] .gv-pills--left { z-index: 8; }
.gv-pill--tab.is-on { box-shadow: 0 0 0 calc(0.12 * var(--u)) #050506, inset 0 0 0 calc(0.1 * var(--u)) #3c3c46, 0 0 0 calc(0.18 * var(--u)) rgba(208, 26, 32, 0.8); }
.gg-read { position: absolute; z-index: 6; max-width: calc(22 * var(--u)); padding: calc(0.7 * var(--u)) calc(0.9 * var(--u)); font: 500 max(11px, calc(1.05 * var(--u)))/1.35 var(--f-ui); color: #f4eee0; pointer-events: none; }
.gg-read p { margin: 0; }
.gg-read .gg-needs { margin-top: 0.35em; color: rgba(244, 238, 224, 0.7); }
.gg-read .gg-go { margin-top: 0.35em; color: #f0d68a; }
/* The glyph's counters on the table, and the taken ones at the left: greyed once taken, as a spent stone is, and glowing
   while a level waits on one */
.gg-ctrs { position: absolute; inset: 0; pointer-events: none; }
.gv-glyph { touch-action: none; user-select: none; }
.gg-ctr { position: absolute; image-rendering: pixelated; transition: opacity 0.5s ease, filter 0.5s ease, transform 0.18s ease, left 0.25s ease, top 0.25s ease; }
/* a counter lifted for a closer look, a little nearer and its shadow further off */
.gg-ctr.is-lifted { z-index: 3; transform: scale(1.3); filter: drop-shadow(calc(0.4 * var(--u)) calc(0.7 * var(--u)) calc(0.5 * var(--u)) rgba(0, 0, 0, 0.7)); }
.gg-ctr.is-lifted.is-open { filter: brightness(1.3) drop-shadow(0 0 calc(0.8 * var(--u)) rgba(255, 240, 190, 1)) drop-shadow(calc(0.4 * var(--u)) calc(0.7 * var(--u)) calc(0.5 * var(--u)) rgba(0, 0, 0, 0.7)); animation: none; }
.gg-ctr.is-dragging { transition: transform 0.18s ease; z-index: 4; }
.gg-ctr.is-dragging.is-small { transform: scale(0.7); }
.gg-taken-ctr.is-dragging { transform: scale(1.12); filter: drop-shadow(calc(0.3 * var(--u)) calc(0.5 * var(--u)) calc(0.4 * var(--u)) rgba(0, 0, 0, 0.7)); }
/* while a counter is being taken, the zone at the left it goes to lights a little, more when it is over it */
.gv-glyph::after { content: ""; position: absolute; left: 2.1%; right: 69.8%; top: 4.6%; bottom: 8.3%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 236, 180, 0.16), transparent); transition: opacity 0.25s ease; }
.gv-glyph.is-taking::after { opacity: 0.6; }
.gv-glyph.is-over::after { opacity: 1; }
.gg-ctr.is-spent { opacity: 0.28; filter: grayscale(1); }
.gg-ctr.is-open { animation: gg-open 1.3s ease-in-out infinite; }
@keyframes gg-open {
  0%, 100% { filter: brightness(1.15) drop-shadow(0 0 calc(0.25 * var(--u)) rgba(255, 240, 190, 0.85)); }
  50% { filter: brightness(1.55) drop-shadow(0 0 calc(1.1 * var(--u)) rgba(255, 240, 190, 1)); }
}
/* while a level waits, what can't be taken steps back */
.gg-ctrs.is-choosing .gg-ctr:not(.is-open):not(.is-spent) { filter: brightness(0.45) saturate(0.6); }
.gc-flying.is-glyph { width: auto; }
/* The hero's strength, dexterity and wisdom, at the right of the glyph */
/* The hero enlarged at the right of the table, breathing, in all they wear, the stats at their feet (Beni, 20 October) */
.gv-glyph canvas.gg-hero { inset: auto; right: 2.5%; top: 15%; height: 56%; width: auto; aspect-ratio: auto; pointer-events: none; z-index: 2; filter: drop-shadow(calc(0.5 * var(--u)) calc(0.9 * var(--u)) calc(0.6 * var(--u)) rgba(0, 0, 0, 0.6)); }
.gg-stats { z-index: 3; }
.gg-stats { position: absolute; left: 76%; top: 72.5%; transform: none; display: grid; gap: calc(1.1 * var(--u)); pointer-events: none;
  font: var(--f-head-w) calc(3 * var(--u))/1 var(--f-head); color: #f4eee0; text-shadow: 0 calc(0.2 * var(--u)) 0 rgba(0, 0, 0, 0.8); }
.gg-stats p { margin: 0; display: flex; align-items: baseline; gap: calc(1.6 * var(--u)); }
.gg-stats b { width: calc(4.4 * var(--u)); font-weight: inherit; letter-spacing: 0.04em; }
.gg-stats .is-str b { color: #e0534a; }
.gg-stats .is-dex b { color: #e88a3a; }
.gg-stats .is-wis b { color: #7c9cf0; }
/* The hero's details on the reading plate, a tap on him on the skill glyph (Emrah, 25 October) */
.gg-read > b { display: block; margin-bottom: 0.4em; font: var(--f-head-w) 1.15em/1 var(--f-head); }
.gg-read > b.gg-read-head { display: flex; justify-content: space-between; gap: 1em; }
.gg-read dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25em 0.8em; margin: 0; }
.gg-read dt { color: rgba(244, 238, 224, 0.6); }
.gg-read dt.is-hi { color: #f4eee0; font-weight: 700; }
.gg-read dd { margin: 0; }
/* ── A weapon or a spell, composed as Beni's example of 14 October: the ground split in its chits' colours, its
   picture large, its name on a dark band with its cost in stones, its chits large in the free corners, its slot's mark
   in the bottom left. The chits are the attack buttons, and in the Hero Attack Phase those that can be pressed rise
   nearer and larger (Emrah, 14 October) ── */
.gh-item.gq { overflow: visible; background: none; box-shadow: none; color: #f4eee0; }
/* An equipment card's window is coloured glass in its damage's colours, Emrah's word of 23 October, in place of the
   painted ground: the same glass as the hero board's panes, the colour laid thin so what is behind the card shows
   through, ringed dark outside and slate in, with a faint sheen across */
.gq-ground {
  position: absolute; inset: 0; border-radius: 0.18em; overflow: hidden;
  background: none;
  filter: saturate(0.82) brightness(0.92);
  box-shadow: var(--glass-pane-ring), 0 0.15em 0.3em rgba(0, 0, 0, 0.55);
}
.gq-ground::before { content: ""; position: absolute; inset: 0; background: var(--ground); opacity: var(--glass-pane-colour); }
.gq-ground::after { content: ""; position: absolute; inset: 0; background: var(--glass-sheen); }
.gq-art { position: absolute; left: 50%; top: 55%; width: 116%; transform: translate(-50%, -50%); image-rendering: pixelated; pointer-events: none;
  filter: drop-shadow(0.06em 0.12em 0.05em rgba(0, 0, 0, 0.55)); }
.gq-band {
  position: absolute; left: 0.17em; right: 0.17em; top: 0.17em; height: 1.3em; display: flex; align-items: center; justify-content: space-between;
  gap: 0.2em; padding: 0 0.22em 0 0.3em; border-radius: 0.08em 0.08em 0 0; background: linear-gradient(rgba(30, 28, 18, 0.92), rgba(14, 12, 8, 0.88));
}
.gq-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: var(--f-head-w) 0.8em/1 var(--f-head); color: #f2e27a; letter-spacing: 0.01em; }
.gq-cost { display: flex; flex: none; }
.gq-cost img { width: 0.95em; height: 0.95em; image-rendering: pixelated; }
.gq-cost img + img { margin-left: -0.3em; }
.gh-chit-btn.gq-pile, .gq-pile { position: absolute; display: block; height: auto; transform-origin: 50% 50%;
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1), filter 0.28s ease; filter: drop-shadow(0 0.1em 0.08em rgba(0, 0, 0, 0.55)); }
.gq-pile--a { left: 5%; top: 21%; }
.gq-pile--b { right: 5%; bottom: 8%; }
.gq-chit { position: absolute; }
.gq-chit img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.gq-chit b { position: absolute; display: grid; place-items: center; font: 800 1.05em/1 var(--f-head); color: #0d0b10; }
.gh-chit-btn.gq-pile.is-ready {
  z-index: 3; transform: translate(calc(var(--rx) * 14%), calc(var(--ry) * 10%)) scale(1.6);
  animation: gq-ready 1.6s ease-in-out infinite;
}
@keyframes gq-ready {
  0%, 100% { filter: drop-shadow(0 0.5em 0.35em rgba(0, 0, 0, 0.6)) drop-shadow(0 0 0.15em rgba(148, 216, 104, 0.5)); }
  50% { filter: drop-shadow(0 0.5em 0.35em rgba(0, 0, 0, 0.6)) drop-shadow(0 0 0.5em rgba(148, 216, 104, 1)); }
}
.gh-chit-btn.gq-pile.is-nudge { animation: gh-chit-nudge 0.5s ease; }
/* an enemy's chit held from a block sits inside the piece's own chit, which shows as its empty frame (Beni, 14 October) */
.gq-chit.is-frame > img { filter: saturate(0.35) brightness(1.45); }
.gq-chit.is-held { filter: drop-shadow(0 0.06em 0.05em rgba(0, 0, 0, 0.55)); }
.gq-chit.is-held b { font-size: 0.8em; }
.gq-both { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font: 700 0.45em/1 var(--f-ui); text-transform: uppercase; letter-spacing: 0.08em; color: #f4eee0; }
.gh-item.gq.is-ghost { opacity: 0.55; }
/* Beni's card of 19 October: the ground only in the window, his object over it and his iron frame over both, the
   name in the plate, the slot's icon drawn on the card where his sits */
.gq--framed { container-type: size; }
.gq--framed .gq-ground { inset: auto; border-radius: 0; box-shadow: none; }
.gq-object, .gq-frame { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.gq-object { filter: drop-shadow(0.04em 0.08em 0.04em rgba(0, 0, 0, 0.5)); }
.gq--framed .gq-band { left: 9%; right: 9%; top: 0; height: 13.6%; padding: 0; background: none; border-radius: 0; }
.gq--framed .gq-name { font-size: 9cqw; color: #f4eee0; text-shadow: 0 0.06em 0 #000; }
.gq--framed .gq-cost img { width: 7.5cqw; height: 7.5cqw; }
.gq-hold { position: absolute; left: 9%; right: 9%; top: 30%; bottom: 14%; display: grid; place-items: center; }
.gq-hold .gh-stack { height: min(100%, calc(28cqw * var(--stack-h, 1))); }
.gq-hold-at { width: 1px; height: 1px; }
.gh-item.gq.is-can .gq-hold { animation: gh-can 0.9s ease-in-out infinite; }
/* An item, a trap or a creep on the same card, on his green */
.gc-face.gz { background: #0b0b0d; border-radius: 0.35em; box-shadow: 0 0 0 0.06em #000; overflow: hidden; container-type: size; }
.gz-ground { position: absolute; background: #006600; }
.gz-scene { position: absolute; image-rendering: pixelated; }
/* An item's text sits on tinted glass in what it does's colour, Emrah's word of 24 October, in place of the iron plate:
   the tinted glass of the top bar, a dark smoke with the colour laid over it, ringed dark outside and slate in, with a
   faint sheen; the card's backing is clear, its frame being solid everywhere but its windows, so what is behind the
   card shows through. A trap's line along its foot sits on the same glass */
.gz-plate { position: absolute; overflow: hidden; background: var(--glass-tint); box-shadow: var(--glass-pane-ring); }
.gz-plate::before { content: ""; position: absolute; inset: 0; background: var(--tint); opacity: var(--glass-tint-colour); }
.gz-plate::after { content: ""; position: absolute; inset: 0; background: var(--glass-sheen); }
.gc-face.gz.gz--item { background: none; box-shadow: 0 0 0 0.06em #000, inset 0 0 0 0.14em #0b0b0d; }
/* An item's object stops at the top edge of its text's glass, 91 of the card's 176 as laid out, so the glass shows the
   scene behind the card and never the part of the card's own picture the plate used to hide (Emrah, 24 October) */
.gz--item .gz-object { clip-path: inset(0 0 calc(100% * 85 / 176) 0); }
/* A room's and a trap's line sit on the same glass along their foot, the card's backing clear and their picture and
   object stopping at the line's top, 139 and 128 of the card's 176 (Emrah, 24 October) */
.gc-face.gz.gz--room, .gc-face.gz.gz--trap { background: none; box-shadow: 0 0 0 0.06em #000, inset 0 0 0 0.14em #0b0b0d; }
.gz--trap .gz-object { clip-path: inset(0 0 calc(100% * 82 / 176) 0); }
.gz--trap .gz-scene { object-fit: cover; object-position: 50% 60%; }
.gz-object { filter: drop-shadow(0 0.6cqw 0.5cqw rgba(0, 0, 0, 0.65)); }
.gz-object, .gz-frame, .gz-icon { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.gz-name { position: absolute; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: var(--f-head-w) 8.6cqw/1 var(--f-head); color: #f4eee0; text-shadow: 0 0.06em 0 #000; }
.gz-text { position: absolute; overflow: hidden; font: 700 7.4cqw/1.18 var(--f-ui); color: #f4eee0; text-shadow: 0 0.07em 0 #000, 0 0 0.2em #000, 0 0 0.35em rgba(0, 0, 0, 0.6); }
.gz-text--top { font-style: italic; }
.gz-text--foot { display: flex; align-items: center; padding: 0 3cqw; background: var(--glass-sheen), var(--glass-tint); box-shadow: var(--glass-pane-ring); }
.gz-bonus { height: 0.95em; width: auto; margin-right: 0.3em; vertical-align: -0.12em; image-rendering: pixelated; }
/* the same in the hand, larger */
.gc-face.gq-face { background: #0b0b0d; border-radius: 0.35em; box-shadow: 0 0 0 0.06em #000; overflow: hidden; }
/* A framed card's backing is clear, its frame being solid everywhere but the window, so the stained glass there shows
   what is behind the card; only the thin rim round the frame keeps the dark (Emrah, 23 October) */
.gc-face.gq-face:has(> .gq--framed) { background: none; box-shadow: 0 0 0 0.06em #000, inset 0 0 0 0.14em #0b0b0d; }
.gq-face > .gq { inset: 0.12em; font-size: 2.15em; }
.gq--book .gq-art { width: 92%; top: 56%; }

/* ── the new game screen (Emrah, 17 October): the heroes as cards, the deck's numbers on a second tab ── */
.gv-setup.gn { width: min(calc(82 * var(--u)), 96%); height: 90%; max-height: none; font-size: max(13px, calc(1.45 * var(--u))); }
.gn-head { gap: 0.8em; }
.gn-tabs { display: flex; gap: 0.3em; margin-right: auto; margin-left: 0.6em; }
.gn-tabs button { all: unset; cursor: pointer; position: relative; padding: 0.45em 0.85em; border-radius: 0.25em; font: 700 0.78em/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 238, 224, 0.6); }
.gn-tabs button[aria-selected="true"] { color: var(--ivory); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 -0.14em 0 #d01a20; }
.gn-tabs button i { position: absolute; top: 0.3em; right: 0.3em; width: 0.45em; height: 0.45em; border-radius: 50%; background: #e8c46a; }
/* Centred when it fits, but never past its top: with every card on a switch the deck ran over the top, out of reach */
.gn-body { flex: 1; display: flex; flex-direction: column; justify-content: safe center; }
.gn-foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.55em 1.15em 0.9em; border-top: 1px solid rgba(236, 230, 214, 0.08); }
.gn-hint { font-size: 0.85em; color: rgba(244, 238, 224, 0.55); }
.gn-heroes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; align-items: start; }
.gn-hero { position: relative; display: flex; flex-direction: column; gap: 0.6em; }
.gn-hero-face { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.3em; padding: 0.7em 0.6em 0.65em; border-radius: 0.45em; background: #0b0b0d;
  box-shadow: 0 0 0 0.1em #000, inset 0 0 0 0.12em rgba(236, 230, 214, 0.28); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.gn-hero.is-on .gn-hero-face { box-shadow: 0 0 0 0.1em #000, inset 0 0 0 0.14em #d01a20, 0 0 1.1em rgba(208, 26, 32, 0.35); }
.gn-hero-face:active { transform: scale(0.98); }
.gn-hero-face:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* The starting gear in one row whatever the column's width, four cards at most, sized to the column */
.gn-starts { container-type: inline-size; display: flex; justify-content: center; gap: 0.35em; }
.gn-start { --gw: min(max(40px, calc(4.6 * var(--u))), calc((100cqw - 1.05em) / 4)); position: relative; width: var(--gw); aspect-ratio: 63 / 88; font-size: calc(var(--gw) / 16); flex: none; }
.gn-item { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4em; border-radius: 0.55em; background: #0b0b0d; box-shadow: 0 0 0 0.12em #000, inset 0 0 0 0.16em rgba(236, 230, 214, 0.3); }
.gn-item img { width: 70%; image-rendering: pixelated; }
.gn-item b { font: 600 1.7em/1.05 var(--f-ui); text-align: center; color: var(--bone); padding: 0 0.3em; }
.gn-modes { flex-wrap: wrap; align-items: center; margin: 0 0 0.8em; }
.gn-modes span, .gn-modes em { font: 700 0.74em/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 238, 224, 0.58); font-style: normal; margin-right: 0.4em; }
.gn-modes em { margin-left: 0.4em; }
.gn-deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2em 1.6em; align-content: start; }
.gn-sw { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 0.7em; padding: 0.42em 0; border-bottom: 1px solid rgba(236, 230, 214, 0.08); }
.gn-sw-art { width: 2.2em; height: 2.2em; object-fit: contain; image-rendering: pixelated; }
.gn-sw-label { display: flex; flex-direction: column; gap: 0.12em; min-width: 0; }
.gn-sw-label b { font-weight: 600; font-size: 0.92em; }
.gn-sw-label small { font-size: 0.78em; color: rgba(244, 238, 224, 0.55); }
.gn-sw.is-changed .gn-sw-label b::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.4em; border-radius: 50%; background: #e8c46a; vertical-align: 0.15em; }
.gn-step { display: flex; align-items: center; gap: 0.2em; }
.gn-step button { all: unset; cursor: pointer; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 0.3em; font: 700 1.1em/1 var(--f-ui); color: var(--ivory); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(236, 230, 214, 0.14); }
.gn-step button:active { background: rgba(208, 26, 32, 0.5); }
.gn-step output { min-width: 2.6em; text-align: center; font: 700 1.05em/1 var(--f-ui); font-variant-numeric: tabular-nums; }
/* The room cards' map, 17 October: each placed square shows its own scene, and a space a room can go in is dashed */
.gv-map .cell[data-scene] { background-size: cover; background-position: center; }
.gv-map .cell.space { border-style: dashed; background: rgba(232, 196, 106, 0.1); }

/* Squares fitted small: the names give way to the scene, the figures shown by their marks alone (Beni's notes of 17 October) */
.gv-map .board.is-small .cell { padding: 0.15em; font-size: 0.6em; }
.gv-map .board.is-small .cell .tok { font-size: 0.9em; }
/* A hero picked by a first tap, Beni's notes of 17 October: lit gold, their name asking for the second tap */
/* The shrine room's mark, Beni's notes of 17 October: a small iron roundel at the top right of the square */
.gv-map .cell .shrine-mark { position: absolute; top: 0.2em; right: 0.2em; z-index: 2; display: grid; place-items: center; width: 1.55em; height: 1.55em; font: 1.45em/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; background: radial-gradient(circle at 35% 30%, #4a4450, #17141b); border: 1px solid #e8c46a; border-radius: 50%; box-shadow: 0 0 0.4em rgba(232, 196, 106, 0.6); text-shadow: none; }
.gv-map .cell .shrine-mark.used { border-color: rgba(236, 230, 214, 0.35); box-shadow: none; filter: grayscale(1) brightness(0.7); }
.gv-map .board.is-small .cell .shrine-mark { font-size: 1.9em; }
.gn-deck .gn-group { grid-column: 1 / -1; margin: 1em 0 0.35em; font: 700 0.74em/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 238, 224, 0.58); }
.gn-deck .gn-group:first-child { margin-top: 0.2em; }
/* ── an equipment card held up from the hand, Emrah's word of 18 October ── */
/* Its (i) sits inside its own top right corner */

/* Turned over by the (i): its lore and what it does on the card itself, over its picture */
/* At the size of the enlarged Nothing card's text, Beni's word of 20 October, scrolling when there is more than fits */
/* A card's lore in the window glass, as every box is (Emrah, 25 October), where it had been a near black panel with a gold edge */
.gc--hand .gc-lore {
  position: absolute; inset: 6%; z-index: 3; display: flex; flex-direction: column; gap: 0.5em; overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  padding: 0.55em 0.9em 0 0.9em; border-radius: var(--glass-radius); background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur); box-shadow: var(--glass-window-ring);
  font: 700 0.9em/1.22 var(--f-ui); color: rgba(244, 238, 224, 0.94); text-align: left; cursor: pointer; -webkit-overflow-scrolling: touch;
}
.gc--hand .gc-lore b { font: var(--f-head-w) 1.25em/1.05 var(--f-head); color: #f4dc9a; }
.gc--hand .gc-lore p { margin: 0; }
.gc--hand .gc-lore .gc-lore-text { font-style: italic; color: rgba(244, 238, 224, 0.78); }
/* More, a button a thumb can find: the width of the panel at its foot, kept in view as the text scrolls */
.gc--hand .gc-lore .gc-lore-more { position: sticky; bottom: 0; align-self: stretch; flex: none; margin: auto -0.9em 0; min-height: max(34px, 2.6em); padding: 0.6em 1em; font: 700 1em/1 var(--f-ui); color: var(--ivory); background: var(--iron); border: 0; border-radius: 0 0 0.5em 0.5em; box-shadow: 0 -0.4em 0.8em rgba(13, 11, 16, 0.9), inset 0 0.08em 0 #3c3c46; cursor: pointer; touch-action: manipulation; }
.gc--hand .gc-lore > :last-child:not(.gc-lore-more) { padding-bottom: 0.9em; }
/* A card held up is drawn afresh at its size rather than scaled up from its size in the hand, which had blurred its
   text when tapped open where a card drawn rises sharp (Beni, 20 October) */
.gc[data-state="focus"] { will-change: auto; }
/* The hero card lit as the place to drop it, and taking it as it snaps in */
.gc--hero.is-drop { filter: drop-shadow(0 0 calc(1.2 * var(--u)) rgba(232, 196, 106, 0.95)); }
.gc--hero.is-taking { filter: drop-shadow(0 0 calc(1.6 * var(--u)) rgba(232, 196, 106, 1)); }
.gc.is-snapping { opacity: 0; transition: left 0.3s cubic-bezier(0.5, 0, 0.75, 0), top 0.3s cubic-bezier(0.5, 0, 0.75, 0), transform 0.3s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.3s ease 0.15s; pointer-events: none; }
/* A word on the table that fades, for what a drop couldn't do */
.gv-hint { position: absolute; left: 50%; bottom: 14%; z-index: 60; transform: translateX(-50%); max-width: 70%; padding: 0.5em 1em; border-radius: 0.4em; background: rgba(13, 11, 16, 0.9); box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.5); font: 600 max(13px, calc(1.1 * var(--u)))/1.3 var(--f-ui); color: #f4dc9a; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.gv-hint.is-on { opacity: 1; }
/* The word to tap an enemy sits up top under the dial, clear of the figures, a little bigger (Beni, 20 October) */
.gv-hint.is-top { bottom: auto; top: 21%; font-size: max(15px, calc(1.3 * var(--u))); }
/* An enemy's name placed over its head by its region map */
.gv-name[style] { transform: translate(-50%, calc(-100% - 0.35 * var(--wu))); }
/* The slots a held card can go into glow, the one under the thumb bright, Beni's notes of 18 October */
.gc--hero [data-slot].is-fit { outline: 0.18em dashed rgba(232, 196, 106, 0.85); outline-offset: -0.18em; border-radius: 0.3em; }
.gc--hero [data-slot].is-over { outline: 0.25em solid #f4dc9a; outline-offset: -0.25em; background: rgba(232, 196, 106, 0.22); box-shadow: 0 0 1em rgba(232, 196, 106, 0.8); }
/* An equipped card being dragged off its slot: a copy follows the thumb */
.gc.is-ghost { --sc: 0.9; opacity: 0.92; transition: none; }
/* The action button, Emrah's and Beni's idea of 18 October: with a card held up it says what the card does, in gold */
.gv-next .gv-next-label { display: none; font: var(--f-head-w) max(15px, calc(1.6 * var(--u)))/1 var(--f-head); letter-spacing: 0.04em; color: #f4dc9a; text-shadow: 0 0.08em 0 rgba(0, 0, 0, 0.85); }
.gv-next[data-mode="action"] svg { display: none; }
.gv-next[data-mode="action"] .gv-next-label { display: block; }
.gv-next[data-mode="action"] { box-shadow: var(--iron-edge), 0 0 1.1em rgba(232, 196, 106, 0.6); }
.gv-next[data-mode="action"].is-cant { filter: grayscale(0.8) brightness(0.7); box-shadow: var(--iron-edge); }

/* An equipped card lifted out of its slot to be looked at, Beni's word of 19 October */
.gc-lift { position: absolute; inset: 0; z-index: 60; background: rgba(6, 5, 8, 0); transition: background 0.25s ease; cursor: pointer; }
.gc-lift.is-up { background: rgba(6, 5, 8, 0.55); }
.gc-lift-card { position: absolute; left: 50%; top: 50%; transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1); transform-origin: 50% 50%; filter: drop-shadow(0 1em 1.4em rgba(0, 0, 0, 0.7)); }
.gc-lift-card > .gc-face { position: absolute; inset: 0; }
.gc-lift-more { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); opacity: 0; transition: opacity 0.2s ease 0.1s; padding: 0.45em 1.2em; font: 700 calc(1.2 * var(--u)) var(--f-ui); color: #f4eee0;
  border-style: solid; border-width: 6px; border-image: url("/assets/ui/button-glass.png") 3 fill / 6px stretch; border-radius: 0; background: none; image-rendering: pixelated; }
/* More shows once the card is turned to its lore by its name, as on a card held up from the hand, and not on its face
   (ticket 46) */
.gc-lift .gc-lift-more { pointer-events: none; }
.gc-lift.is-up.is-lore .gc-lift-more { opacity: 1; pointer-events: auto; }

/* The Nothing cards, Beni's layout of 19 October */
.gz--nothing { background: #000; }
.gz-nothing-lore { display: flex; align-items: center; justify-content: center; text-align: center; font: 700 5.6cqw/1.22 var(--f-ui); color: #f4eee0; }
.gz-nothing-gift { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2cqw; }
.gz-nothing-gift img { width: 22cqw; height: auto; image-rendering: pixelated; }
.gz-nothing-gift img:first-child { width: 18cqw; }

/* The spell slot and the quiver in Beni's border, 19 October */
.gq-spells { position: absolute; left: 10%; right: 10%; top: 15%; bottom: 13%; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; gap: 2cqw; }
.gq-spells small { font: 700 8cqw/1 var(--f-ui); color: rgba(244, 238, 224, 0.7); }
.gq-spell { display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; }
.gq-spell > b { font: var(--f-head-w) 9cqw/1 var(--f-head); color: #f4eee0; text-shadow: 0 0.08em 0 #000; }
.gq-spell-chits { display: flex; align-items: center; gap: 2cqw; }
.gq-spell-chits i { font: italic 700 7cqw/1 var(--f-ui); color: #f4eee0; text-shadow: 0 0.08em 0 #000; }
.gh-chit-btn.gq-spell-btn { position: relative; display: block; height: auto; padding: 0; background: none; border: 0; filter: drop-shadow(0 0.1em 0.08em rgba(0, 0, 0, 0.55)); }
/* the spell slot's chits rise and glow while they can be cast, as a weapon's do (Beni, 19 October) */
.gh-chit-btn.gq-spell-btn { transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1), filter 0.28s ease; transform-origin: 50% 15%; }
.gh-chit-btn.gq-spell-btn.is-ready { z-index: 3; transform: translateY(-6%) scale(1.22); animation: gq-ready 1.6s ease-in-out infinite; }
/* The learnt spell rises to block as a weapon's chits do (Beni, 25 October) */
.gq--spellslot.is-can .gh-chit-btn.gq-spell-btn { z-index: 3; transform: translateY(-6%) scale(1.22); animation: gq-ready 1.6s ease-in-out infinite; }
.gq-spell-btn .gq-chit b { font-size: 10cqw; }
.gq-quiver { position: absolute; right: 9%; bottom: 3.5%; font: 800 7cqw/1 var(--f-ui); color: #f4eee0; text-shadow: 0 0.08em 0 #000, 0 0 0.3em #000; }
/* Targeting, Beni's word of 19 October: the enemies an attack can reach pulse red, the one a first tap picked glows
   gold with a word to tap again, and the second tap sends the damage its way */
.gv-actor.is-target { --glow: drop-shadow(0 0 calc(0.45 * var(--wu)) rgba(214, 52, 40, 0.9)); }
.gv-actor.is-target .gv-sprite { animation: gv-target 1s ease-in-out infinite; }
/* The enemy targeted, Beni's word of 20 October: no glow, the chits the attack will send hung over its head beside its name */
.gv-actor.is-aimed { --glow: drop-shadow(0 0 0 transparent); }
.gv-actor.is-aimed .gv-sprite { animation: none; }
.gv-actor.is-aimed .gv-name { color: #f4dc9a; display: flex; align-items: center; gap: calc(0.35 * var(--wu)); background: rgba(13, 11, 16, 0.82); box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.55); }
.gv-aim { display: inline-flex; gap: calc(0.15 * var(--wu)); }
.gv-aim .gc-chit-art { height: calc(2.5 * var(--wu)); width: auto; margin: calc(-0.35 * var(--wu)) 0; }
@keyframes gv-target { 50% { opacity: 0.78; } }
.gc.is-target .gc-enemy { box-shadow: 0 0 0 0.12em rgba(214, 52, 40, 0.95), 0 0 1em rgba(214, 52, 40, 0.7); }
.gc.is-aimed .gc-enemy { box-shadow: 0 0 0 0.14em rgba(244, 210, 120, 1), 0 0 1.2em rgba(244, 210, 120, 0.85); }
/* A shield's or armour's damage tracks, the enemy card's grooves, each as tall as the chit it takes of that kind, its
   number over it; while a chit it could block flies in, they rise and glow in their own colours (Beni, 19 October) */
.gq-track { position: absolute; display: block; pointer-events: none; transition: transform 0.25s ease, filter 0.25s ease; }
.gq-track-img { position: absolute; left: 0; width: 100%; image-rendering: pixelated; }
.gq-track-lit { opacity: 0; transition: opacity 0.25s ease; }
.gq-track-n { position: absolute; z-index: 3; display: grid; place-items: center; font: 800 6cqw/1 var(--f-ui); color: #f4eee0; text-shadow: 0 0 0.25em #000, 0 0.05em 0.1em #000; pointer-events: none; }
.gq-track-n i { font-style: normal; }
.gq-track-chit { z-index: 2; }
.gq-track-at { position: absolute; pointer-events: none; }
.gh-item.gq.is-can .gq-track { transform: translateY(-9%); animation: gq-track-glow 0.9s ease-in-out infinite; }
.gh-item.gq.is-can .gq-track-lit { opacity: 1; }
/* The vellum script's healing tracks, buttons each, glowing when that kind can be healed (Beni, 25 October) */
.gq-heal-bar { position: absolute; inset: 0; pointer-events: none; z-index: 3; transform-origin: 50% 88%; transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1); }
.gq-heal-bar.is-ready { transform: scale(1.18); }
.gq-heal { pointer-events: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.gq-heal.is-ready { transform: translateY(-9%); animation: gq-track-glow 0.9s ease-in-out infinite; }
.gq-heal .gq-track-lit { opacity: 0.38; }
.gq-heal.is-ready .gq-track-lit { opacity: 1; }
.gq-spell--heal { align-self: start; }
.gq-track--blunt { --tc: 91, 143, 217; } .gq-track--pierce { --tc: 230, 196, 73; } .gq-track--slash { --tc: 229, 143, 176; }
@keyframes gq-track-glow { 0%, 100% { filter: drop-shadow(0 0 1.2cqw rgba(var(--tc), 0.75)); } 50% { filter: drop-shadow(0 0 3cqw rgba(var(--tc), 1)) brightness(1.25); } }
.gz-scene--room { object-fit: cover; object-position: 50% 70%; }
.gz-dolmen { position: absolute; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated; filter: drop-shadow(0 0.6cqw 0.5cqw rgba(0, 0, 0, 0.65)); }
.gq-bonus { display: flex; align-items: center; margin-left: 0.25em; }
.gq-bonus img { width: 0.95em; height: 0.95em; image-rendering: pixelated; }
.gq-bonus img:first-child { width: 0.75em; height: 0.75em; margin-right: 0.08em; }
.gq--framed .gq-bonus img { width: 7.5cqw; height: 7.5cqw; }
.gq--framed .gq-bonus img:first-child { width: 7.5cqw; height: 7.5cqw; }

/* ── The treasure room's cards out of the dolmen, Beni's word of 20 October ── */
.gt { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
/* The mist off the dolmen, a canvas at a low size stretched soft over the scene (Beni's ticket 62 of 1 November) */
.gt-mist { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: auto; filter: blur(calc(0.25 * var(--u))); }
.gt-card { pointer-events: auto; cursor: grab; --gc-w: min(calc(21 * var(--u)), calc(52cqh * 63 / 88)); --sc: 0.06; opacity: 0;
  transition: left 0.5s cubic-bezier(0.25, 0.8, 0.3, 1), top 0.5s cubic-bezier(0.25, 0.8, 0.3, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.3, 1), opacity 0.35s ease; will-change: auto; }
.gt-card.is-out { --sc: 1; opacity: 1; }
.gt-card.is-dragging { transition: none; cursor: grabbing; --sc: 1.04; z-index: 2; }
.gt-card.is-taken { --sc: 0.4; opacity: 0; transition: left 0.4s ease-in, top 0.4s ease-in, transform 0.4s ease-in, opacity 0.4s ease-in; }
.gt-card.is-back { --sc: 0.04; opacity: 0; transition: left 0.45s ease-in, top 0.45s ease-in, transform 0.45s ease-in, opacity 0.4s ease-in 0.05s; }

/* ── The map, Beni's word of 20 October ── */
/* In the window glass as every sheet is, and only as big as the squares placed */
.gv-sheet[data-kind="map"], .gv-sheet[data-kind="place"], .gv-sheet[data-kind="move"] {
  width: fit-content; max-width: min(calc(84 * var(--u)), 96%);
}
.gv-sheet[data-kind="map"] .gv-sheet-body, .gv-sheet[data-kind="place"] .gv-sheet-body, .gv-sheet[data-kind="move"] .gv-sheet-body { overflow: visible; padding-top: calc(var(--cell, 5em) * 0.45); }
.gv-map { overflow: visible; }
/* Each square shows its figures standing on it, poking up over its top edge as a little 3D scene */
.gv-map .cell.has-figs { overflow: visible; }
.gv-map .cell .tok, .gv-map .cell .shrine-mark { display: none; }
.gv-map .cell .mfs { position: absolute; left: 0; right: 0; bottom: 8%; height: 0; z-index: 2; pointer-events: none; }
.gv-map .mf-back, .gv-map .mf-front { position: absolute; left: 50%; bottom: 0; display: flex; align-items: flex-end; transform: translateX(-50%); }
.gv-map .mf-back { bottom: 14%; opacity: 0.96; }
.gv-map .mf { display: block; height: calc(var(--cell, 5em) * 1.05 * var(--h)); width: auto; image-rendering: pixelated; margin: 0 calc(var(--cell, 5em) * -0.14 * var(--h)); filter: drop-shadow(0 calc(var(--cell, 5em) * 0.03) calc(var(--cell, 5em) * 0.02) rgba(0, 0, 0, 0.7)); }
.gv-map .mf-front.is-crowd .mf { margin: 0 calc(var(--cell, 5em) * -0.22 * var(--h)); }
.gv-map .mf-enemy { transform: none; }
.gv-map .mf-enemy.is-redeye { filter: drop-shadow(0 0 calc(var(--cell, 5em) * 0.04) rgba(208, 26, 32, 0.9)); }
.gv-map .mf-corpse { transform: rotate(-90deg) translateX(-30%); filter: grayscale(0.8) brightness(0.6); }
.gv-map .mf-shrine.is-spent { filter: grayscale(0.7) brightness(0.7); }
.gv-map .mf-dolmen { height: calc(var(--cell, 5em) * 0.62); }

/* ── The stamina and spell gems as Beni's pixel stones, his word of 20 October ── */
.gv .gem--stamina, .gv .gem--spell { border: 0; border-radius: 0; background: center / contain no-repeat; image-rendering: pixelated; box-shadow: none; }
.gv .gem--stamina { background-image: url("/assets/board/stones/stamina.png"); }
.gv .gem--spell { background-image: url("/assets/board/stones/spell.png"); }
.gv .gem--stamina.gem--empty, .gv .gem--spell.gem--empty { opacity: 0.3; filter: grayscale(1); }
.gn-card { position: absolute; inset: 0; container-type: inline-size; display: block; }
.gn-card > .gc-face { position: absolute; inset: 0; }
/* Every control's icon one of the game's pixel assets, Beni's word of 20 October: close, back, more, fewer and the menu */
.gv .px-icon { width: 1em; height: 1em; image-rendering: pixelated; display: block; margin: auto; pointer-events: none; }
.gv .gn-foot { background: transparent; }
/* A card's pixel art in place of an emoji in the feed and the menus (Beni, 20 October) */
.px-emoji { display: inline-block; width: 1.7em; height: 1.7em; margin-right: 0.3em; vertical-align: -0.35em; background: center / contain no-repeat; image-rendering: pixelated; }
.px-emoji.is-crop { background-size: 121% 131%; background-position: 50% 57%; }
/* An enemy's or a creep's card picture: the scene of the room it was drawn in, its figure standing in it (Beni, 20 October) */
.ge-art--scene { position: absolute; overflow: hidden; background: #0b0b0e var(--art) center / cover no-repeat; background-size: cover; background-position: center; image-rendering: pixelated; display: block; }
.ge-art--scene .ge-figure { position: absolute; left: 50%; bottom: 6%; height: 62%; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 0.15em 0.2em rgba(0, 0, 0, 0.6)); }
.gz-scene.ge-art--scene .ge-figure { bottom: 26%; height: 44%; }
/* ── Beni's hero selection card, 20 October ── */
.gn-heroes { grid-template-columns: repeat(3, minmax(0, min(15em, 1fr))); justify-content: center; gap: 1.4em; }
.gn-hero { aspect-ratio: 126 / 176; display: block; container-type: size; }
.gv .gn-hero-face { position: absolute; inset: 0; display: block; padding: 0; border-radius: 0.35em; background: #0b0b0e; box-shadow: none; }
.gn-hero.is-on .gn-hero-face { box-shadow: 0 0 0 0.12em #000, 0 0 1.2em 0.2em rgba(208, 26, 32, 0.55); }
.gn-hc-window { position: absolute; display: grid; place-items: start center; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, rgba(236, 230, 214, 0.07), transparent 70%), #0d0c10; }
/* A saved hero's card, Beni's mock ups of ticket 71: the scene they left in behind them, their days and their level */
.gn-roster { grid-template-columns: repeat(3, minmax(0, min(15em, 1fr))); justify-content: start; }
.gn-hc-window img.gn-sh-scene { position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; margin: 0; transform: none; object-fit: cover; filter: none !important; }
.gn-hc-window canvas { position: relative; height: 62%; margin-top: 22%; image-rendering: pixelated; }
.gn-sh.is-fallen .gn-hc-window canvas { filter: grayscale(1) opacity(0.6); }
.gn-sh-days { position: absolute; font: 700 6cqw/1 var(--f-ui); color: var(--ivory); text-shadow: 0 0.08em 0 #000; }
.gn-sh-x { margin-left: 0.2em; font: 800 5.4cqw/1 var(--f-ui); color: var(--ivory); text-shadow: 0 0.08em 0 #000; }
.gv .gn-sh-new { all: unset; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 0.3em; aspect-ratio: 126 / 176; border: 0.1em dashed rgba(236, 230, 214, 0.35); border-radius: 0.35em; font: 700 1em/1 var(--f-ui); color: rgba(244, 238, 224, 0.75); }
.gv .gn-sh-new b { font-size: 2.2em; font-weight: 400; }
/* The multiplayer save, Beni's mock up of ticket 71: the party standing together in one card, with the time of day */
.gv .gn-parties { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); justify-content: start; }
.gv .gn-party { aspect-ratio: 1.42; }
.gn-party-figs { position: absolute; left: 0; right: 0; bottom: 4%; height: 62%; display: flex; justify-content: center; align-items: flex-end; }
.gv .gn-party-figs canvas { position: relative; height: 100%; margin: 0 -7%; image-rendering: pixelated; }
.gn-party.is-fallen .gn-party-figs canvas { filter: grayscale(1) opacity(0.6); }
.gn-party-head { position: absolute; display: grid; grid-auto-flow: column; justify-content: center; align-items: center; gap: 0.5em; font: 700 4.4cqw/1 var(--f-ui); color: var(--ivory); white-space: nowrap; }
.gn-party-head b { font: var(--f-head-w) 6cqw/1 var(--f-head); }
.gn-foot .gv-btn { white-space: nowrap; }
.gn-name { display: flex; align-items: center; gap: 0.5em; margin-right: auto; font: 600 0.95em/1 var(--f-ui); color: var(--ivory); }
.gn-name input { width: 9em; padding: 0.35em 0.5em; font: inherit; color: var(--ivory); background: #0b0b0e; border: 1px solid rgba(236, 230, 214, 0.35); border-radius: 0.2em; }
.gn-hc-window img { height: 62%; margin-top: 6%; image-rendering: pixelated; filter: drop-shadow(0 0.2em 0.3em rgba(0, 0, 0, 0.6)); }
.gn-hero:not(.is-on) .gn-hc-window img { filter: grayscale(0.6) brightness(0.7); }
.gn-hc-frame { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.gn-hc-name { position: absolute; display: grid; place-items: center; font: var(--f-head-w) 7cqw/1 var(--f-head); color: var(--ivory); }
.gn-hc-stones { position: absolute; display: flex; gap: 2%; align-items: center; }
.gn-hc-stones--r { justify-content: flex-end; }
.gn-hc-stones img { height: 100%; image-rendering: pixelated; }
.gn-hc-skill { position: absolute; display: grid; place-items: center; font: 600 5.4cqw/1 var(--f-ui); color: var(--ivory); text-shadow: 0 0.06em 0 #000; }
.gn-hero .gn-starts { position: absolute; z-index: 1; align-items: flex-end; gap: 2cqw; }
.gn-hero .gn-start { --gw: calc((100cqw - 6cqw) / 4); }

/* ── Every button pixel art, Beni's word of 20 October ── */
/* One pixel button, nine by nine and sliced three from each side, drawn at twice its pixels: glass for every button
   (Emrah, 25 October), where it had been iron, red glass for what sets the game going or is pressed, and Beni's blue in
   blue glass for giving. The menu tabs, the top bar's pills, the
   deck amounts, the action button and the rest all wear it */
.gv .gv-btn, .gv .gv-pill, .gv .gn-tabs button, .gv .gn-step button, .gv .gn-step output, .gv .gv-next, .gv .gv-close, .gv .gv-menu-handle,
.gv .gc-give, .gv .gv-menu .cmd {
  border-style: solid; border-width: 6px; border-image: url("/assets/ui/button-glass.png") 3 fill / 6px stretch; border-radius: 0;
  background: none; box-shadow: none; image-rendering: pixelated; box-sizing: border-box;
}
.gv .gv-btn--primary, .gv .gv-btn.is-primary, .gv .gv-btn--red, .gv .gn-foot .gv-btn:last-child, .gv .gv-next[data-mode="action"] { border-image-source: url("/assets/ui/button-glass-red.png"); }
.gv .gc-give { border-image-source: url("/assets/ui/button-glass-blue.png"); background: none; padding: 0.1em 0.6em; }
.gv .gn-tabs button[aria-selected="true"], .gv .gv-pill--tab.is-on, .gv .gv-menu .cmd.is-on { border-image-source: url("/assets/ui/button-glass-red.png"); }
.gv .gv-btn:hover, .gv .gv-pill:hover, .gv .gn-tabs button:hover, .gv .gn-step button:hover, .gv .gv-next:hover, .gv .gv-close:hover, .gv .gv-menu .cmd:hover { filter: brightness(1.18); background: none; }
.gv .gn-step output { min-width: 2.4em; text-align: center; }
.gv .gv-menu .cmd { margin: 0.12em 0; }
/* A card's icon on the deck menu, cut from its sprite, object or scene (Beni, 20 October) */
.gn-sw-icon { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; }
.gn-sw-icon.is-scene { box-shadow: 0 0 0 0.1em #000; }
/* The top bar's tabs inside their pixel border: the line height no longer the tab's full height, so the words sit in the
   middle of the button rather than clipped at its foot (Beni, 20 October) */
.gv .gv-pill { display: flex; align-items: center; justify-content: center; line-height: 1; padding-top: 0; padding-bottom: 0.1em; overflow: visible; }
/* A creep's own object standing in its picture on the enemy card (Beni, 20 October) */
.ge-art--scene .ge-object { position: absolute; left: 50%; bottom: 8%; width: 56%; aspect-ratio: 1; transform: translateX(-50%); background-repeat: no-repeat; image-rendering: pixelated; }
/* The Change buttons on the quiver and the spell slot, Beni's word of 20 October: a pixel iron button hung on the foot
   of the card, as in his mockup of the quiver, the word in the castle's own type */
.gq-change {
  position: absolute; left: 50%; top: 100%; z-index: 4; transform: translate(-50%, -62%);
  padding: 0.05em 0.55em 0.12em; font: 600 0.62em/1 var(--f-ui); color: var(--ivory, #f4eee0); text-shadow: 0 0.08em 0 #000;
  white-space: nowrap; cursor: pointer; touch-action: manipulation;
  border-style: solid; border-width: 4px; border-image: url("/assets/ui/button-glass.png") 3 fill / 4px stretch; border-radius: 0;
  background: none; image-rendering: pixelated; box-sizing: border-box;
}
.gq-change:hover { filter: brightness(1.18); }
.gq-change:active { border-image-source: url("/assets/ui/button-glass-red.png"); }
.gq-change:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* The load screen as the heroes set out (Emrah, 20 October): the biome deck's back turned a quarter anticlockwise and
   filling the screen's height, a pixel bar and a line under its eyes */
.gv-load { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; background: #000; overflow: hidden; transition: opacity 0.4s ease; }
.gv-load.is-out { opacity: 0; pointer-events: none; }
/* the card is 126 by 176, so on its side its width is the screen's height, or less where the screen is narrow */
.gv-load { container-type: size; }
.gv-load-back { position: absolute; left: 50%; top: 50%; width: min(100cqh, calc(100cqw * 126 / 176)); height: auto; max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg); image-rendering: pixelated; }
.gv-load-foot { position: absolute; left: 50%; bottom: 14%; width: min(40%, 22em); transform: translateX(-50%); text-align: center; }
.gv-load-bar { height: 0.9em; border-style: solid; border-width: 4px; border-image: url("/assets/ui/button-glass.png") 3 fill / 4px stretch; image-rendering: pixelated; box-sizing: content-box; }
.gv-load-bar i { display: block; height: 100%; width: 0; background: #b5231c; box-shadow: 0 0 0.5em rgba(255, 60, 40, 0.55); transition: width 0.12s linear; }
.gv-load-say { margin: 0.6em 0 0; font: 600 1em/1 var(--f-ui); color: var(--ivory, #f4eee0); letter-spacing: 0.08em; text-shadow: 0 0.08em 0 #000; }
/* The player's XP under the title menu (Beni, 20 October) */
/* at the top of the title screen, his word of 20 October at 20.31 */
.gv-title-xp { position: absolute; top: calc(2.2 * var(--u, 1vh)); left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; font: 600 1.15em/1 var(--f-ui); color: #e6c449; letter-spacing: 0.1em; text-shadow: 0 0.08em 0 #000; text-align: center; white-space: nowrap; }
/* A pot's object over the head of whoever is to have it, as the attack's chits are (Beni, 20 October) */
.gv-aim--pot { align-items: center; }
.gv-aim-pot { display: inline-block; width: calc(2.8 * var(--wu)); height: calc(2.8 * var(--wu)); margin: calc(-0.5 * var(--wu)) 0; background-repeat: no-repeat; image-rendering: pixelated; filter: drop-shadow(0 0 0.15em #000); }
/* A piece equipped to a slot shows its stamina as the hero card's own stamina counters, as large as those at its top
   left, over the top right corner of the card (Beni, 21 October at 09.42): a hero stone is 12 of the board's units and
   a slot 49 wide, so a stone is a quarter of the card's width, and two overlap by 3 units as the board's do */
/* Beni's figure 2 of 21 October at 18.02 in place of that: the stamina stones in the window's lower left corner, stacked
   upwards when there is more than one, and a bonus, the staff's spell counter, in the top right of the name plate, both
   at his figure's size; the name plate keeps the whole name */
.gq--framed .gq-cost--corner { position: absolute; left: 8%; bottom: 12%; z-index: 2; display: flex; flex-direction: column-reverse; filter: drop-shadow(0 0.5cqw 0.3cqw rgba(0, 0, 0, 0.6)); }
.gq--framed .gq-cost--corner img, .gb-slot .gq--framed .gq-cost--corner img { width: 9cqw; height: 9cqw; }
.gq--framed .gq-cost--corner img + img { margin: 0 0 -2cqw; }
.gq--framed .gq-band .gq-bonus { margin-left: auto; flex: none; }
.gq--framed .gq-bonus img, .gq--framed .gq-bonus img:first-child { width: 8cqw; height: 8cqw; }
/* A piece's chits under its lore at their real sizes, Beni's word of 21 October at 15.17: its defence, and a weapon's
   or a spell's attack, each chit with its height under it */
.gc-lore { --cpx: 0.13em; }
.gc-chits { margin-top: 0.7em; }
.gc-chits > p { margin: 0 0 0.3em; font: 600 0.78em/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; color: #e6c449; }
.gc-chits-row { display: flex; align-items: flex-end; gap: 0.7em; flex-wrap: wrap; }
.gc-chit-ic { display: inline-flex; flex-direction: column; align-items: center; gap: 0.2em; }
.gc-chit-ic-art { position: relative; display: block; width: calc(21 * var(--cpx)); }
.gc-chit-ic-art img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.gc-chit-ic i { font: 700 0.85em/1 var(--f-ui); font-style: normal; color: var(--ivory, #f4eee0); }
.gc-chits-or { align-self: center; font: 600 0.8em/1 var(--f-ui); color: rgba(244, 238, 224, 0.7); }
/* The lore's More, a pixel button like every other (Beni, 21 October) */
/* The lore's title, copy and More raised to the top of the glass, More straight under the copy rather than at the foot
   (Emrah on Beni's ticket 52 of 1 November) */
.gv .gc--hand .gc-lore .gc-lore-more { border-style: solid; border-width: 6px; border-image: url("/assets/ui/button-glass.png") 3 fill / 6px stretch; border-radius: 0; background: none; box-shadow: none; image-rendering: pixelated; margin: 0.3em 0 0.6em; min-height: 0; padding: 0.35em 1em; }
/* The game's own choice boxes, Cast which? and the More menus among them, in the tinted glass of its windows (Emrah,
   25 October), where they had been Beni's granite and iron of 21 October */
body.gv-on #modal .box { background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur);
  border: 0; border-radius: var(--glass-radius); box-shadow: var(--glass-window-ring), var(--glass-window-shadow); }
body.gv-on #modal .box h3 { color: var(--ivory); }
body.gv-on #modal .opts { gap: 6px; }
body.gv-on #modal .opts button { padding: 6px 12px; text-align: center; border-style: solid; border-width: 6px; border-image: url("/assets/ui/button-glass.png") 3 fill / 6px stretch; border-radius: 0; background: none; image-rendering: pixelated; }
body.gv-on #modal .opts button:hover:not(:disabled), body.gv-on #modal .opts button:focus-visible { background: none; filter: brightness(1.18); }
body.gv-on #modal .opts button:hover:not(:disabled)::before, body.gv-on #modal .opts button:focus-visible::before { display: none; }
body.gv-on #modal .opts button:disabled { opacity: 0.55; filter: grayscale(1); }
/* Every choice box fits the screen's height, its card text scrolling inside it and its buttons, Back the last of them,
   always in view; held sideways at 844 by 390 the cape's More had Back below the screen (the audit of 27 October). While
   a tutorial tip is up at one side the box stands on the other, so the tip asking for Back is never under it */
body.gv-on #modal { padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
body.gv-on #modal .box { display: flex; flex-direction: column; max-height: 100%; overflow: hidden; }
body.gv-on #modal .box > h3 { flex: none; }
body.gv-on #modal .box > .muted { flex: 0 1 auto; min-height: 2.6em; overflow: auto; overscroll-behavior: contain; }
body.gv-on #modal .box > .opts { flex: none; max-height: 70%; overflow: auto; }
body.gv-on[data-tut-at="right"] #modal { justify-content: flex-start; }
body.gv-on[data-tut-at="left"] #modal { justify-content: flex-end; }
body.gv-on[data-tut-at="right"] #modal .box, body.gv-on[data-tut-at="left"] #modal .box { max-width: min(460px, 44%); }
/* The deck tab shut while the tutorial is set up */
.gn-tabs [data-tab="deck"]:disabled { opacity: 0.4; cursor: not-allowed; }
/* Beni's notes of 21 October at 22.30. A card equipped to a slot shows its stamina, bonus and spell stones twice the
   size of 0.5.85's, his own size for a phone */
.gb-slot .gq--framed .gq-cost--corner img { width: 18cqw; height: 18cqw; }
.gb-slot .gq--framed .gq-cost--corner img + img { margin: 0 0 -4cqw; }
.gb-slot .gq--framed .gq-bonus img, .gb-slot .gq--framed .gq-bonus img:first-child { width: 16cqw; height: 16cqw; }
/* A chit's level centred on its face as his figure 1.1 has it: the numeral is taller than a level 0 chit's small face,
   and a grid's row grows downward from the top to fit it, so the 0 sat low; a flex box centres it however tall it is */
.gq-chit b, .gc-chit-art b, .ge-chit b, .gb-chit b { display: flex; align-items: center; justify-content: center; font-variant-numeric: lining-nums; }
/* An enemy's card brought up close in the tutorial, as large as the screen allows */
.gv-draw.is-spot { pointer-events: none; }
.gv-draw.is-spot .gv-draw-card { --gc-w: min(calc(48 * var(--u)), calc(90cqh * 63 / 88)) !important; }
/* A weapon on the hero card, Beni's figure 2.1 of 21 October at 22.30: its chit, when it can be pressed, rises over the
   middle of the card to almost cover it, a little see through and glowing; a weapon with two attack types carries a
   Change button at its foot with the other type's chit beside it, the stones sitting above it */
.gh-chit-btn.gq-pile.is-big.is-ready { left: 50%; top: 54%; right: auto; bottom: auto; width: 62% !important; max-height: 74%; opacity: 0.88;
  transform: translate(-50%, -50%) !important; z-index: 3; }
.gq-change.gq-change--weapon { left: 8%; top: auto; bottom: 2%; transform: none; font-size: 11cqw; padding: 0.05em 0.45em 0.12em; }
.gq-change-next { position: absolute; left: 66%; bottom: 3%; width: 15cqw; z-index: 4; pointer-events: none; filter: drop-shadow(0 0.5cqw 0.3cqw rgba(0, 0, 0, 0.6)); }
.gq-change-next .gq-chit { position: absolute; }
.gq:has(.gq-change--weapon) .gq-cost--corner { bottom: 24%; }
/* The spell slot when it can be cast, his figure 2.2: split down the middle, each half the button for one attack type in
   its chits' colour, the spell's name across the top and "or" between */
.gq-split { position: absolute; left: 9%; right: 9%; top: 14%; bottom: 14%; display: flex; gap: 2cqw; }
.gh-chit-btn.gq-half { position: relative; flex: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: rgba(var(--g), 0.92); box-shadow: inset 0 0 0 1cqw rgba(0, 0, 0, 0.35); transform: none; }
.gh-chit-btn.gq-half.is-ready { animation: gq-ready 1.6s ease-in-out infinite; }
.gh-chit-btn.gq-half:disabled { filter: grayscale(0.7) brightness(0.7); cursor: default; }
.gq-half-pile { position: relative; width: 70%; max-height: 70%; }
.gq-half-pile .gq-chit { position: absolute; }
.gq-split-name { position: absolute; left: 0; right: 0; top: 6%; text-align: center; font: var(--f-head-w) 9cqw/1 var(--f-head); color: #f4eee0; text-shadow: 0 0.08em 0 #000, 0 0 0.3em #000; pointer-events: none; }
.gq-split-or { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); font: italic 700 8cqw/1 var(--f-ui); color: #f4eee0; text-shadow: 0 0.08em 0 #000; pointer-events: none; }
/* A framed card's stones back over its top right corner, each kind a column with every stone behind and below the one
   above, and a bonus beside them, its spell stone under its plus mark, so the top border isn't crowded; the sizes as
   0.5.87 has them */
.gq--framed .gq-corner { position: absolute; right: -2cqw; top: -3cqw; z-index: 2; display: flex; align-items: flex-start; gap: 0.5cqw; filter: drop-shadow(0 0.5cqw 0.3cqw rgba(0, 0, 0, 0.6)); }
.gq--framed .gq-corner .gq-cost--corner { position: static; display: flex; flex-direction: column; filter: none; }
.gq--framed .gq-corner .gq-cost--corner img + img { margin: -4.5cqw 0 0; position: relative; z-index: -1; }
.gb-slot .gq--framed .gq-corner .gq-cost--corner img + img { margin: -9cqw 0 0; }
.gq--framed .gq-corner .gq-bonus { display: flex; flex-direction: column; align-items: center; margin: 0; }
.gq--framed .gq-corner .gq-bonus img:first-child { margin: 0 0 -1cqw; }
.gq:has(.gq-change--weapon) .gq-cost--corner { bottom: auto; }
.gb-slot .gq--framed .gq-band { padding-right: 20cqw; }
/* The spell slot split, Beni's notes of 23.29: each half's colour solid and bright to the card's border, its chits as
   large as the half allows, the slash three times and the pierce twice 0.5.87's, a small numeral, and a slight rise */
.gq-split { inset: auto; gap: 0; }
.gh-chit-btn.gq-half { background: rgb(var(--g)); box-shadow: inset 0 0 0 0.6cqw rgba(0, 0, 0, 0.25); }
.gq-half--slash .gq-half-pile { width: 92%; max-height: 80%; }
.gq-half--pierce .gq-half-pile, .gq-half--blunt .gq-half-pile { width: 66%; max-height: 70%; }
.gq-half .gq-chit b { font-size: 6cqw; }
.gh-chit-btn.gq-half.is-ready { animation: gq-ready 1.6s ease-in-out infinite, gq-half-rise 1.6s ease-in-out infinite; }
@keyframes gq-half-rise { 50% { transform: translateY(-2%); } }
.gq-split-name { top: 4%; }
/* A lifted equipped piece's (i) and its lore, as a card held up from the hand has them (Beni, 21 October at 23.29) */
.gc-lift .gc-lift-info { opacity: 0; transition: opacity 0.2s ease 0.15s; }
.gc-lift.is-up .gc-lift-info { opacity: 1; }
.gc-lift-card .gc-lore {
  position: absolute; inset: 6%; z-index: 3; display: flex; flex-direction: column; gap: 0.5em; overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  padding: 1.5em 0.9em 0.9em; border-radius: var(--glass-radius); background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur); box-shadow: var(--glass-window-ring);
  font: 700 0.9em/1.22 var(--f-ui); color: rgba(244, 238, 224, 0.94); text-align: left; cursor: default;
}
.gc-lift-card .gc-lore b { font: var(--f-head-w) 1.25em/1.05 var(--f-head); color: #f4dc9a; }
.gc-lift-card .gc-lore p { margin: 0; }
.gc-lift-card .gc-lore .gc-lore-text { font-style: italic; color: rgba(244, 238, 224, 0.78); }
/* ── The tutorial's second version, Emrah's rules of 22 October ── */
/* While a tip that tells is up the game behind it takes no taps */
.gv-tb-catch { position: absolute; inset: 0; z-index: 1000; }
.gv-tb-catch[hidden] { display: none; }
/* but the main menu stays in reach above it, and what the menu opens, so a player can always quit (Beni's ticket 85 of
   7 November) */
.gv:has(> .gv-tb-catch:not([hidden])) #gv-menu-tab, .gv[data-menu-sheet]:has(> .gv-tb-catch:not([hidden])) #gv-sheet-wrap { z-index: 1002; }
/* A tip in the window glass (Emrah, 25 October), where it had been the glyph's granite in an iron edge. One that tells is a box in the middle, wide and short, with Next at its
   bottom right; one that asks for something is small, red edged, and sits by what it asks for */
.gv .gv-tb { position: absolute; z-index: 1001; box-sizing: border-box; width: min(31em, 54%); max-height: 72%; overflow: auto;
  padding: 0.85em 1.15em 0.75em; color: var(--ivory, #f4eee0); text-shadow: 0 0.08em 0 #000;
  font: 500 max(15px, calc(0.95 * var(--u) + 6px))/1.36 var(--f-ui);
  background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur);
  border-radius: var(--glass-radius); box-shadow: var(--glass-window-ring), var(--glass-window-shadow); }
.gv .gv-tb[hidden] { display: none; }
.gv-tb h2 { margin: 0 0 0.25em; font: var(--f-head-w, 600) 1.3em/1.1 var(--f-head, serif); color: #f4dc9a; }
.gv-tb p { margin: 0; }
.gv-tb-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; margin-top: 0.7em; }
.gv .gv-tb-foot .gv-btn { font: 700 0.86em/1 var(--f-ui); padding: 0.4em 0.95em; color: var(--ivory, #f4eee0); }
.gv .gv-tb-back { display: inline-flex; align-items: center; gap: 0.35em; opacity: 0.85; }
.gv-tb-back svg { width: 0.75em; height: 0.75em; fill: currentColor; }
.gv .gv-tb-next { min-width: 5.6em; }
.gv .gv-tb-next:disabled { opacity: 0.35; }
.gv .gv-tb[data-kind="do"] { width: min(21em, 40%); padding: 0.65em 0.95em 0.6em; box-shadow: inset 0.3em 0 0 #b5231c, var(--glass-window-ring), var(--glass-window-shadow); }
.gv .gv-tb[data-kind="do"] h2 { font-size: 1.15em; color: #f2c94c; }
.gv .gv-tb[data-kind="do"] .gv-tb-foot { margin-top: 0.45em; }
.gv .gv-tb[data-kind="do"] .gv-tb-foot .gv-btn { font-size: 0.78em; padding: 0.3em 0.75em; }
/* where it sits: in the middle, at the top under the bar, low in the middle, at the left beside a card held up in the
   middle, by the biome deck, by the action button, and by Set out on the new game screen */
/* the middle of what the hero card shown at the left leaves free */
.gv .gv-tb[data-at="centre"] { left: 56%; top: 50%; transform: translate(-50%, -50%); width: min(28em, 42%); }
.gv .gv-tb.is-setup[data-at="centre"] { left: 50%; width: min(31em, 54%); }
.gv .gv-tb.is-setup[data-at="low"] { bottom: calc(1.2 * var(--u)); width: min(31em, 60%); }
.gv .gv-tb[data-at="top"] { left: 50%; top: calc(var(--tab-h) + max(24px, calc(2.1 * var(--u))) + 1.4 * var(--u)); transform: translateX(-50%); }
.gv .gv-tb[data-at="low"] { left: 50%; bottom: calc(2.5 * var(--u)); transform: translateX(-50%); }
/* on the skill glyph's table, over the hero's figure at the right, clear of the glyph and of the zone counters are dragged to */
.gv .gv-tb[data-at="right"] { right: max(calc(1.5 * var(--u)), var(--safe-r)); top: 50%; transform: translateY(-50%); width: min(20em, 31%); }
.gv .gv-tb[data-at="left"] { left: max(calc(1.5 * var(--u)), var(--safe-l)); top: 50%; transform: translateY(-50%); width: min(20em, 31%); }
.gv .gv-tb[data-at="deck"] { right: calc(9 * var(--u) + var(--safe-r)); top: calc(50% + 5.2 * var(--u)); transform: translateY(-50%); width: min(17em, 36%); }
.gv .gv-tb[data-at="action"] { right: max(calc(1.2 * var(--u)), var(--safe-r)); bottom: calc(13.5 * var(--u) + 6px); width: min(17em, 36%); }
.gv .gv-tb[data-at="setout"] { right: 5%; bottom: 22%; width: min(16em, 34%); }
.gv .gv-tb.is-in { animation: gv-tb-in 0.3s ease-out; }
@keyframes gv-tb-in { from { opacity: 0; translate: 0 0.5em; } }
/* a tap on the game while a tip tells, or a chit answered another way than it asks: Next, or the tip, gives a shake */
.gv .gv-tb.is-nudge[data-kind="tell"] .gv-tb-next, .gv .gv-tb.is-nudge[data-kind="do"] { animation: gv-tb-nudge 0.4s ease; }
@keyframes gv-tb-nudge { 25% { translate: -0.35em 0; } 75% { translate: 0.35em 0; } }
/* the bonus tip on Beni's gold leaf, its words black */
.gv .gv-tb.is-bonus { background: #c08a12 url("/assets/ui/gold-leaf.png") center / cover no-repeat; color: #0d0b10; text-shadow: 0 1px 0 rgba(255, 240, 180, 0.5); }
.gv .gv-tb.is-bonus h2 { color: #0d0b10; }
/* The bar, only the bar, with Progress in it, under the top bar at the right while the tutorial runs */
.gv .gv-tb-bar { position: absolute; z-index: 1002; right: calc(8.6 * var(--u) + var(--safe-r)); top: calc(var(--tab-h) + 0.7 * var(--u));
  width: max(8.5em, calc(15 * var(--u))); height: max(24px, calc(2.1 * var(--u))); overflow: hidden; pointer-events: none;
  font: 700 max(11px, calc(0.9 * var(--u)))/1 var(--f-ui);
  background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur);
  border-radius: var(--glass-radius); box-shadow: var(--glass-window-ring), 0 0.2em 0.6em rgba(0, 0, 0, 0.5); }
.gv .gv-tb-bar[hidden] { display: none; }
.gv-tb-bar i { position: absolute; left: 3px; top: 3px; bottom: 3px; max-width: calc(100% - 6px); background: linear-gradient(#f2c94c, #b8891a); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); transition: width 0.4s ease; }
.gv-tb-bar b { position: absolute; inset: 0; display: grid; place-items: center; color: #f4eee0; letter-spacing: 0.06em; text-shadow: 0 0 0.25em #000, 0 0.08em 0 #000; }
/* The Noon gate's tip, bigger and in the middle with the card in it (Beni, 21 October at 17.16) */
.gv .gv-tb.has-card[data-at="centre"] { left: 50%; width: min(40em, 70%); max-height: 88%; display: grid; grid-template-columns: auto 1fr; column-gap: 1.2em; align-items: center; }
.gv .gv-tb.has-card .gv-tb-card { grid-row: 1 / span 3; container-type: size; width: min(calc(20 * var(--u)), 30vw); aspect-ratio: 63 / 88; height: auto; }
.gv .gv-tb.has-card .gv-tb-card .gc { --gc-w: 100cqw !important; pointer-events: none; filter: none; }
.gv .gv-tb.has-card .gv-tb-foot { grid-column: 2; }
.gv .gv-tb-bar { pointer-events: none; }
.gv .gv-tb-bar.is-setup { top: calc(1.4 * var(--u)); right: max(calc(1.4 * var(--u)), var(--safe-r)); }
/* What a tip speaks of glows gold: a picture by its own outline, an area as a ring round it */
@keyframes gv-tb-glow { 0%, 100% { filter: drop-shadow(0 0 2px #f2c94c) drop-shadow(0 0 6px rgba(242, 201, 76, 0.55)); } 50% { filter: drop-shadow(0 0 3px #fff2b8) drop-shadow(0 0 13px rgba(242, 201, 76, 0.95)); } }
@keyframes gv-tb-ring { 0%, 100% { box-shadow: 0 0 0 2px #f2c94c, 0 0 8px 2px rgba(242, 201, 76, 0.5); } 50% { box-shadow: 0 0 0 3px #fff2b8, 0 0 18px 6px rgba(242, 201, 76, 0.9); } }
.gv[data-tut-glow~="deck"] #gv-deck, .gv[data-tut-glow~="equip"] #gv-equip,
.gv[data-tut-glow~="stamina"] .gc--hero.is-front .gb-stone[src$="stamina.png"],
.gv[data-tut-glow~="spells"] .gc--hero.is-front .gb-stone[src$="spell.png"],
.gv[data-tut-glow~="weapon"] .gc--hero.is-front .gb-slot[data-slot="hand1"] .gh-chit-btn,
.gv[data-tut-glow~="slash"] .gc--hero.is-front .gb-slot[data-slot="acc2"] :is(.gq-half--slash, .gh-chit-btn),
.gv[data-tut-glow~="chit"] #gc-fly .gc-flying,
.gv[data-tut-glow~="eDodge"] .gc--enemy .ge-stamina .ge-stone,
.gv[data-tut-glow~="wheel"] #gv-tod .dial-pie,
.gv[data-tut-glow~="planets"] #dial-orbit .planet,
.gv[data-tut-glow~="action"] #gv-next, .gv[data-tut-glow~="give"] #gc-give,
.gv[data-tut-glow~="warriorCard"] .gn-hero-face[data-cls="Warrior"], .gv[data-tut-glow~="wizardCard"] .gn-hero-face[data-cls="Wizard"],
.gv[data-tut-glow~="setOut"] [data-t="start"],
.gv[data-tut-glow~="jerkin"] .gc--hand[data-name="Jerkin"], .gv[data-tut-glow~="nothing"] .gc--hand[data-name="Nothing card (lore)"],
.gv[data-tut-glow~="pot"] .gc--hand[data-name="Pot of healing"], .gv[data-tut-glow~="signet"] .gc--hand[data-name="Sun signet"],
.gv[data-tut-glow~="tuft"] .gc--hand[data-name="Tuft of silver fur"], .gv[data-tut-glow~="tablet"] .gc--hand[data-name="Clay tablet"],
.gv[data-tut-glow~="chain"] .gc--hand[data-name="Chain shirt"], .gv[data-tut-glow~="cape"] .gc--hand[data-name="Cape"],
.gv[data-tut-glow~="goblin"] .gc--enemy[data-name="Goblin slave"], .gv[data-tut-glow~="skeleman"] .gc--enemy[data-name="Skeleman"],
.gv[data-tut-glow~="skidokin"] .gc--enemy[data-name="Skidokin wilder"], .gv[data-tut-glow~="bug"] .gc--enemy[data-name="Silver tufted bug"] {
  animation: gv-tb-glow 1.5s ease-in-out infinite; }
.gv[data-tut-glow~="bodySlot"] .gc--hero.is-front .gb-slot[data-slot="body"],
.gv[data-tut-glow~="accSlot"] .gc--hero.is-front .gb-slot[data-slot="acc1"],
.gv[data-tut-glow~="spellslot"] .gc--hero.is-front .gb-slot[data-slot="acc2"],
.gv[data-tut-glow~="hands"] .gc--hero.is-front .gb-slot:is([data-slot="hand1"], [data-slot="hand2"]),
.gv[data-tut-glow~="bar"] .gc--hero.is-front .gb-track,
.gv[data-tut-glow~="day"] .gv-pill--day, .gv[data-tut-glow~="move"] .gc--hero.is-front .gb-move, .gv[data-tut-glow~="heroCard"] .gc--hero.is-front,
.gv[data-tut-glow~="deckTab"] .gn-tabs [data-tab="deck"] { animation: gv-tb-ring 1.5s ease-in-out infinite; }
/* the hero's figure in the scene by the light it already wears, the action button seen even while it can't be pressed,
   and the discard's corner marked out */
.gv[data-tut-glow~="warriorFig"] .gv-actor[data-id="h-Warrior"] { --glow: drop-shadow(0 0 1px #f2c94c) drop-shadow(0 0 5px rgba(242, 201, 76, 0.9)); }
.gv[data-tut-glow~="action"] .gv-next.is-off { opacity: 1; visibility: visible; }
/* In the tutorial the hero board is away while no tip teaches or needs it (Emrah, 25 October) */
.gv.is-tb-noboard .gc--hero { visibility: hidden; pointer-events: none; }
.gv[data-tut-glow~="grave"] .gv-grave::after { opacity: 1; border-color: #f2c94c; animation: gv-tb-dash 1.5s ease-in-out infinite; }
@keyframes gv-tb-dash { 50% { opacity: 0.45; } }
/* the hero card popping up for what is on it */
.gc--hero.is-tb-pop { animation: gv-tb-pop 0.7s ease-out; }
@keyframes gv-tb-pop { 35% { scale: 1.07; } }
/* Into play: the biome deck and the hero cards held out of it until the first tip brings them in, the equipment deck
   until the first reward; a deck a tip speaks of comes out in full */
.gv.is-tb-intro #gv-deck, .gv.is-tb-noequip #gv-equip { transform: translate(160%, -50%) !important; }
.gv-deck.is-tb-out { transform: var(--out); }
/* Beni's figure of 22 October at 16.41: the biome deck twice its size, beside the hero card shown larger, and the
   equipment deck moved up to keep clear of it */
#gv-deck { top: calc(50% + calc(1.5 * var(--u))); width: calc(12.2 * var(--u)); }
.gv-deck--equip { top: calc(50% - calc(14 * var(--u))); }
.gv .gv-tb[data-at="deck"] { right: calc(15 * var(--u) + var(--safe-r)); top: calc(50% + 1.5 * var(--u)); }
/* ── Beni's visual pass of 22 October, his emails of 15.26, 16.41 and 16.56 ── */
/* A piece that can block an incoming chit: a weapon's chit rises over the middle of the card as it does for an attack,
   and a shield's or armour's damage tracks grow there as one, his figure 1 of 15.26; the tap goes to the card */
.gh-item.gq.is-can .gh-chit-btn.gq-pile.is-big { left: 50%; top: 54%; right: auto; bottom: auto; width: 62% !important; max-height: 74%; opacity: 0.92;
  transform: translate(-50%, -50%) !important; z-index: 3; pointer-events: none; animation: gq-ready 1.6s ease-in-out infinite; }
.gq-tracks { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 89.8%; transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1); }
.gh-item.gq.is-can .gq-tracks { z-index: 3; transform: translateY(var(--bigY)) scale(var(--big)); }
.gh-item.gq.is-can .gq-track { transform: none; }
/* The spell slot when it can be cast, his figure 2 of 15.26: two separate large buttons, each in its chits' colour,
   apart from each other and running a little over the slot's border, the spell's name under them */
.gq-split { left: -12% !important; width: 124% !important; gap: 10cqw; z-index: 3; }
.gh-chit-btn.gq-half { border-radius: 1.6cqw; box-shadow: 0 0 0 0.7cqw #0b0b0e, 0 1.6cqw 0 0.7cqw rgba(0, 0, 0, 0.5), inset 0 -1.2cqw 0 rgba(0, 0, 0, 0.22), inset 0 1cqw 0 rgba(255, 255, 255, 0.25); }
.gq-half--slash .gq-half-pile { width: 80%; }
.gq-half--pierce .gq-half-pile, .gq-half--blunt .gq-half-pile { width: 64%; }
.gq-split-or { display: none; }
.gq-split-name { top: auto; bottom: -13%; font-size: 7.5cqw; }
/* A framed card's stones in its name band, at the right where the band has room, not up over the corner, his figure of
   16.56 and the helmet in figure 3 of 15.26: a kind's stones in a row each tucked behind the one before, and a bonus,
   its spell stone under its plus mark, on their left with a gap, so the plus reads as the staff's and not the stamina's.
   A long name shrinks to keep clear of them */
.gq--framed .gq-corner { right: 10cqw; top: 0; height: 19cqw; align-items: center; gap: 2.5cqw; }
.gq--framed .gq-corner .gq-cost--corner { flex-direction: row; }
.gq--framed .gq-corner .gq-cost--corner img + img, .gb-slot .gq--framed .gq-corner .gq-cost--corner img + img { margin: 0 0 0 -3.5cqw; position: relative; z-index: -1; }
.gq--framed .gq-corner .gq-cost--corner img { width: 9cqw; height: 9cqw; }
.gq--framed .gq-corner .gq-bonus img:first-child { width: 5cqw; height: 5cqw; margin: 0 0 -0.6cqw; }
.gq--framed .gq-corner .gq-bonus img { width: 7.5cqw; height: 7.5cqw; }
.gb-slot .gq--framed .gq-corner .gq-cost--corner img { width: 14cqw; height: 14cqw; }
.gb-slot .gq--framed .gq-corner .gq-cost--corner img + img { margin-left: -6cqw; }
.gb-slot .gq--framed .gq-corner .gq-bonus img:first-child { width: 7cqw; height: 7cqw; margin: 0 0 -1cqw; }
.gb-slot .gq--framed .gq-corner .gq-bonus img { width: 10cqw; height: 10cqw; }
.gq--framed .gq-band { padding-right: 12cqw; }
.gq--framed:has(.gq-bonus) .gq-band { padding-right: 22cqw; }
.gb-slot .gq--framed .gq-band { padding-right: 17cqw; }
.gb-slot .gq--framed:has(.gq-cost--corner img + img) .gq-band { padding-right: 25cqw; }
.gb-slot .gq--framed:has(.gq-bonus) .gq-band { padding-right: 30cqw; }
.gq--framed .gq-name { white-space: nowrap; font-size: min(9cqw, calc(118cqw / max(var(--nl, 8), 8))); }
.gb-slot .gq--framed .gq-name { font-size: min(9cqw, calc(100cqw / max(var(--nl, 8), 8))); }
/* the middle tip moved right of the hero card shown larger, clear of the biome deck */
.gv .gv-tb[data-at="centre"] { left: 64%; width: min(26em, 35%); }
/* the hero card grows to its shown size in step with its move, as its scale used to */
.gc--hero { transition: left 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), top 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), transform 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), width 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.4s ease; }
/* The biome deck at the right edge keeps clear of the phone's safe edge only when the notch is on that side, the
   iPhone giving the same edge to both sides held sideways though only one has the notch (Emrah, 22 October): set
   from the way the phone is turned, --notch-r is the safe edge or none */
.gv-deck { --out: translate(calc(-1 * var(--notch-r, var(--safe-r, 0px)) - 0.7 * var(--u)), -50%); }
#gv-deck.is-out:hover { transform: translate(calc(-1 * var(--notch-r, var(--safe-r, 0px)) - 1.1 * var(--u)), -50%); }
.gv .gv-tb[data-at="deck"] { right: calc(15 * var(--u) + var(--notch-r, var(--safe-r))); }
/* The new game screen's hero cards, Emrah's word of 22 October: each figure stands in the middle of its card by its
   own body, its picture shifted by how far off true the body sits in it, and the card behind it see through as tinted
   glass, as the hero card's slots are */
.gv .gn-hero-face { background: rgba(11, 11, 14, 0.3); }
.gn-hc-window { background: linear-gradient(rgba(236, 230, 214, 0.05), rgba(var(--glass-smoke), 0.25)), rgba(var(--glass-smoke), 0.3); -webkit-backdrop-filter: var(--glass-pane-blur); backdrop-filter: var(--glass-pane-blur); }
.gn-hc-window img { position: absolute; left: 50%; top: 6%; height: 62%; width: auto; margin: 0; transform: translateX(calc(-50% + var(--dx, 0%))); }
/* ── The edges on a phone, Emrah's word of 22 October ── */
/* iOS keeps the top strip of a phone held sideways for its own swipes, Control Center at the top right where the main
   menu is, and holds or drops a touch that starts there. On a touch screen the bar along the top hangs 10 pixels
   lower, every pill and the menu taller, so what is pressed sits below that strip; what hangs under the bar moves
   down with it */
@media (pointer: coarse) {
  .gv { --edge-t: 10px; --tab-h: max(30px, calc(2.4 * var(--u))); }
  .gv .gv-pill, .gv .gv-menu-handle { box-sizing: border-box; height: calc(var(--tab-h) + var(--edge-t)); padding-top: var(--edge-t); }
  .gv .gv-pill:not(.gv-pill--tab) { line-height: var(--tab-h); }
  .gv-menu-handle { width: max(52px, calc(var(--tab-h) * 1.7)); }
  .gv-menu-handle::before { inset: 0 -10px -18px -10px; }
  .gv-pills--right { right: calc(max(calc(1.2 * var(--u)), var(--safe-r)) + calc(0.5 * var(--u)) + max(52px, calc(var(--tab-h) * 1.7))); }
  .gv-feed-drop { top: calc(var(--tab-h) + var(--edge-t)); }
  .gv .gv-tb[data-at="top"] { top: calc(var(--tab-h) + var(--edge-t) + max(24px, calc(2.1 * var(--u))) + 1.4 * var(--u)); }
  .gv .gv-tb-bar { top: calc(var(--tab-h) + var(--edge-t) + 0.7 * var(--u)); }
  .gv-grave { top: calc(var(--tab-h) + var(--edge-t) + calc(0.5 * var(--u))); }
  /* the stones' halo no longer reaches up over the bar that now hangs lower */
  .gb-pool::before { top: -8%; }
}
/* ── One card, Emrah's word of 23 October: every card but the hero's board the shape of a slot on it, 49 by 71, its
   width set by the view, small resting and full size in play; the decks, their backs and a drawn card's flight the
   full size, the equipment deck a card's height above the biome deck ── */
.gc:not(.gc--hero) { aspect-ratio: 49 / 71; }
.gc.is-dragging { transition: width 0.25s ease; }
.gv .gv-deck, .gv #gv-deck { width: var(--card-w, calc(12.2 * var(--u))); aspect-ratio: 49 / 71; }
.gv .gv-deck--equip { top: calc(50% + 1.5 * var(--u) - var(--card-h, calc(17 * var(--u))) - 1.2 * var(--u)); }
.gc-flying.is-card { width: var(--card-w, calc(6.1 * var(--u))); aspect-ratio: 49 / 71; }
.gt-card { --gc-w: var(--card-w) !important; }
/* ── The decks, Emrah's mock of 23 October: tucked, both scale down to three fifths and peek from the right edge as a
   pair stacked one over the other, centred top to bottom; one coming out grows to the full card size, centred top to
   bottom, close to the edge and wholly shown ── */
.gv #gv-deck, .gv #gv-equip { transform-origin: 100% 50%;
  transition: transform 0.38s cubic-bezier(0.3, 0.7, 0.3, 1), top 0.38s cubic-bezier(0.3, 0.7, 0.3, 1); }
.gv #gv-equip { top: calc(50% - var(--card-h, calc(17 * var(--u))) * 0.3 - 0.5 * var(--u)); transform: translate(39%, -50%) scale(0.6); }
.gv #gv-deck { top: calc(50% + var(--card-h, calc(17 * var(--u))) * 0.3 + 0.5 * var(--u)); transform: translate(39%, -50%) scale(0.6); }
.gv #gv-equip.is-out, .gv #gv-equip.is-tb-out, .gv #gv-deck.is-out, .gv #gv-deck.is-tb-out { top: 50%; z-index: 5; transform: var(--out); }
.gv #gv-deck.is-out:hover { transform: translate(calc(-1 * var(--notch-r, var(--safe-r, 0px)) - 1.1 * var(--u)), -50%); }
.gv .gv-tb[data-at="deck"] { top: 50%; }
/* ── A weapon's two attack types, Emrah's mocks of 23 October: at rest each chit in its own corner; when one can
   attack it grows to four fifths of the card's width, the first over the card's top edge and the second over its
   bottom, a column of two big buttons, one tap each; the same when they could block ── */
.gq--pair .gh-chit-btn.gq-pile.is-big.is-ready, .gh-item.gq.gq--pair.is-can .gh-chit-btn.gq-pile.is-big { left: 50%; right: auto; width: auto !important; height: 57%; max-width: 92%; max-height: none; opacity: 0.94; z-index: 4; }
.gq--pair .gh-chit-btn.gq-pile--a.is-big.is-ready, .gh-item.gq.gq--pair.is-can .gh-chit-btn.gq-pile--a.is-big { top: 0; bottom: auto; transform: translate(-50%, -14%) !important; }
.gq--pair .gh-chit-btn.gq-pile--b.is-big.is-ready, .gh-item.gq.gq--pair.is-can .gh-chit-btn.gq-pile--b.is-big { top: auto; bottom: 0; transform: translate(-50%, 14%) !important; }
/* ── The old windows and labels brought to the new style, Emrah's word of 23 October: the details plate, the run's
   summary, the game feed, the glyph's reader, the console and the hints in the window glass as the menus and
   sheets are (Emrah, 25 October), where they had been on the skill glyph's granite; the details plate with its X at the top right; the time's label and the lore's More as the iron pixel
   buttons ── */
.gv .gv-hint { background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur);
  border-radius: var(--glass-radius); box-shadow: var(--glass-window-ring), var(--glass-window-shadow); }
.gv .gc-detail { padding-top: 1em; }
.gv .gc-detail .gc-detail-x { position: absolute; top: 0.45em; right: 0.45em; width: 2.1em; height: 2.1em; padding: 0; }
.gv .gc-detail .gc-detail-x img { width: 55%; height: 55%; }
.gv .gc-detail h3 { padding-right: 2.2em; }
.gv .dial-title, .gv .gc--hand .gc-lore .gc-lore-more {
  border-style: solid; border-width: 6px; border-image: url("/assets/ui/button-glass.png") 3 fill / 6px stretch; border-radius: 0;
  background: none; box-shadow: none; image-rendering: pixelated; box-sizing: border-box; }
.gv .dial-title { padding: calc(0.15 * var(--u)) calc(0.55 * var(--u)) calc(0.2 * var(--u)); }
/* The top bar and the action button in tinted glass, Emrah's word of 23 October, the scene showing through them as it
   does through the hero board; red tinted for the tab that is open and the action button when it asks for an action */
.gv .gv-pill, .gv .gv-menu-handle, .gv .gv-next, .gv .dial-title { border-image-source: url("/assets/ui/button-glass.png"); }
.gv .gv-pill--tab.is-on, .gv .gv-next[data-mode="action"] { border-image-source: url("/assets/ui/button-glass-red.png"); }
/* The lore's More on a solid ground with the text fading out above it, so a long card's text never reads through it
   as it scrolls (Emrah on Beni's ticket 52 of 1 November) */
.gv .gc--hand .gc-lore .gc-lore-more { background: #15151b padding-box; box-shadow: 0 -0.9em 0.7em -0.1em #15151b; }

/* ── The deck menu as a clean table, its Options fold, i windows and a card seen large, Beni's list of 25 October ── */
.gn-body--deck { justify-content: flex-start; }
.gn-fold { all: unset; cursor: pointer; display: flex; align-items: center; gap: 0.6em; width: 100%; box-sizing: border-box; margin: 0.1em 0 0.3em; padding: 0.55em 0.2em; border-bottom: 1px solid rgba(236, 230, 214, 0.14); font: 700 0.74em/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 238, 224, 0.85); }
.gn-fold i { width: 0.5em; height: 0.5em; border-right: 0.14em solid currentColor; border-bottom: 0.14em solid currentColor; transform: rotate(-45deg); transition: transform 0.2s ease; }
.gn-fold.is-open i { transform: rotate(45deg); }
.gn-fold.is-changed span::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 0.5em; border-radius: 50%; background: #e8c46a; vertical-align: 0.05em; }
.gn-deck--opts { margin-bottom: 0.6em; }
/* one line a row: the icon, the name cut short rather than wrapped, and the stepper, every row one height */
.gn-sw { grid-template-columns: 2.2em minmax(0, 1fr) auto; min-height: 2.6em; padding: 0.3em 0; }
.gn-sw--plain { grid-template-columns: minmax(0, 1fr) auto; }
.gn-sw-label { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 0.45em; row-gap: 0.1em; }
.gn-sw-label b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gn-sw-label small { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv .gn-step button, .gv .gn-step output { height: 2em; min-height: 2em; box-sizing: border-box; }
.gv .gn-step button { width: 2em; }
.gv .gn-step output { display: grid; place-items: center; min-width: 2.6em; padding: 0 0.35em; line-height: 1; }
.gv .gn-step--word output, .gv .gn-deck--opts .gn-step output { width: 6.4em; font-size: 0.92em; }
.gn-peek { all: unset; cursor: pointer; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 0.25em; }
.gn-peek:focus-visible { outline: 2px solid var(--bone); }
.gn-sw-i { all: unset; cursor: pointer; flex: none; width: 1.25em; height: 1.25em; }
.gn-sw-i img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
/* the i's window over the panel */
.gn-info, .gn-peek-win { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(4, 4, 7, 0.55); border-radius: inherit; }
.gn-info-box { width: min(26em, 86%); max-height: 86%; overflow: auto; display: flex; flex-direction: column; gap: 0.5em; padding: 1em 1.15em; border-radius: var(--glass-radius); background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur); box-shadow: var(--glass-window-ring), var(--glass-window-shadow); }
.gn-info-box b { font: var(--f-head-w) 1.25em/1.1 var(--f-head); color: #f4dc9a; }
.gn-info-box p, .gn-info-box dl { margin: 0; line-height: 1.35; }
.gn-info-box dt { margin-top: 0.45em; font-weight: 700; color: var(--ivory); }
.gn-info-box dd { margin: 0.1em 0 0; color: rgba(244, 238, 224, 0.75); }
.gn-info-box .gv-btn { align-self: flex-end; margin-top: 0.4em; }
/* a card seen large, as held up in the game, its i in its corner */
.gn-peek-card { position: relative; height: 84%; aspect-ratio: 126 / 176; container-type: inline-size; font-size: 0.78em; }
.gn-peek-card > .gc-face { position: absolute; inset: 0; }
.gv .gn-peek-i { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% * 24 / 176); aspect-ratio: auto; padding: 0; border: 0; background: none; display: block; z-index: 4; }
.gn-peek-i img { width: 100%; display: block; image-rendering: pixelated; }
.gn-peek-card .gc-lore {
  position: absolute; inset: 6%; z-index: 3; display: flex; flex-direction: column; gap: 0.5em; overflow: auto; overscroll-behavior: contain;
  padding: 1.5em 0.9em 0.9em; border-radius: var(--glass-radius); background: var(--glass-window); -webkit-backdrop-filter: var(--glass-window-blur); backdrop-filter: var(--glass-window-blur); box-shadow: var(--glass-window-ring);
  font: 700 0.9em/1.22 var(--f-ui); color: rgba(244, 238, 224, 0.94); text-align: left;
}
.gn-peek-card .gc-lore b { font: var(--f-head-w) 1.25em/1.05 var(--f-head); color: #f4dc9a; }
.gn-peek-card .gc-lore p { margin: 0; }
.gn-peek-card .gc-lore .gc-lore-text { font-style: italic; color: rgba(244, 238, 224, 0.78); }

/* ── No scroll bar at rest, a fade where there is more, Emrah's word of 25 October ── */
.gv *, .gv { scrollbar-width: none; }
.gv *::-webkit-scrollbar { display: none; }
[data-fade] { --fa: 0; --fb: 0; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,calc(1 - var(--fa))) 0, #000 1.8em, #000 calc(100% - 1.8em), rgba(0,0,0,calc(1 - var(--fb))) 100%); mask-image: linear-gradient(to bottom, rgba(0,0,0,calc(1 - var(--fa))) 0, #000 1.8em, #000 calc(100% - 1.8em), rgba(0,0,0,calc(1 - var(--fb))) 100%); }
[data-fade].is-above { --fa: 1; }
[data-fade].is-below { --fb: 1; }
.gv-thumb { position: absolute; z-index: 4; width: 3px; border-radius: 3px; background: rgba(244, 238, 224, 0.5); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.gv-thumb.is-on { opacity: 1; transition-duration: 0.08s; }

/* ── The menus in tinted glass, as the hero board is, Emrah's word of 25 October ── */
/* They are .iron windows, drawn in the window glass with the rest near the top of this sheet, and every button the
   game draws is a glass one */
/* The hero select fits and never scrolls (Emrah, 25 October) */
.gn-body:not(.gn-body--deck) { overflow: hidden; padding-bottom: 0.45em; }

/* ── The switches in play grouped, four name and value tables side by side that fit without scrolling (25 October) ── */
.gv-sheet[data-kind="switches"] { width: min(calc(88 * var(--u)), 96%); font-size: max(11px, calc(0.95 * var(--u))); }
.gv-sw-groups { display: grid; grid-template-columns: 1.25fr 1.15fr 1fr 0.9fr; gap: 0 1.4em; align-items: start; }
.gv-sw-group h3 { margin: 0.2em 0 0.45em !important; }
.gv-sw-group .gv-dl { gap: 0.28em 0.8em; }
.gv-sw-group .gv-dl dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The difficulty across the top, its first line (Emrah, 25 October) */
.gv-sw-mode { grid-column: 1 / -1; margin-bottom: 0.5em; }
.gv-sw-mode .gv-dl { grid-template-columns: max-content max-content; }
.gv-sheet[data-kind="switches"] .gv-note { margin: 0.7em 0 0; font-size: 0.9em; }
/* The main menu fits and never scrolls */
.gv-menu.glass { overflow: visible; max-height: none; }
/* ── With one deck in play the other slides off the screen entirely, so the card in play has nothing behind it; with
   neither in play both peek as before (Emrah, 25 October) ── */
.gv:has(#gv-deck.is-out, #gv-deck.is-tb-out) #gv-equip:not(.is-out):not(.is-tb-out),
.gv:has(#gv-equip.is-out, #gv-equip.is-tb-out) #gv-deck:not(.is-out):not(.is-tb-out) { transform: translate(160%, -50%) scale(0.6); }
/* The move pane's chip takes the cards' radius, as its pane now does */
.gb-move { border-radius: 0.3em; }
.gv .gv-menu.glass { gap: 0; padding: 0.5em 0.45em 0.45em; }
.gv .gv-menu.glass .gv-menu-head { margin-bottom: 0.25em; font-size: 1.2em; }
.gv .gv-menu.glass .cmd { min-height: max(24px, 1.55em); padding: 0.1em 0.3em 0.1em 1.3em; margin: 0.05em 0; border-width: 4px; border-image-width: 4px; }

/* ── A card's information at the size of the item cards' own text, wherever it is opened, and no (i) over the name in
   the deck menu's look at a card (Beni, 26 October): the item text is 7.4 of a hundredth of the card's width ── */
.gc--hand, .gc-lift-card { container-type: inline-size; }
.gc--hand .gc-lore, .gc-lift-card .gc-lore, .gn-peek-card .gc-lore { font-size: 7.4cqw; }
.gn-peek-card { font-size: 1em; }
.gv .gn-peek-i img { display: none; }
/* A card lifted from its slot keeps its information clear of More, which now sits inside the card over its foot */
.gc-lift-card .gc-lore { padding-bottom: calc(2.4em + 6px); }
/* The skill glyph's counters and the hero's details read at the size of the tutorial's tips, the game's reading size,
   where they had been the smallest text in it (Beni, 26 October) */
.gg-read { max-width: calc(30 * var(--u)); font-size: max(15px, calc(0.95 * var(--u) + 6px)); }

/* The report form in the menu, Emrah's word of 28 October */
.gv-sheet[data-kind="report"] { max-width: min(34em, 96vw); }
.gv-rep-kinds { margin-top: 0.4em; }
.gv-rep-text, .gv-rep-row input { width: 100%; box-sizing: border-box; background: rgba(10, 8, 7, 0.7); color: inherit; border: 1px solid rgba(239, 230, 218, 0.25); border-radius: 0.4em; padding: 0.55em 0.7em; font: inherit; }
.gv-rep-text { min-height: 6em; resize: vertical; margin-top: 0.4em; }
.gv-rep-row { display: flex; flex-direction: column; gap: 0.3em; margin-top: 0.8em; font-size: 0.9em; }
.gv-rep-row small { opacity: 0.65; }
.gv-rep-row input[type="file"] { padding: 0.35em; }
.gv-rep-msg { align-self: center; opacity: 0.8; }
.gv-sheet a { color: #f0a39c; }
.gv-title-menu a.cmd { text-decoration: none; }
.gv-sheet-wrap:has(.gv-sheet[data-kind="report"]) { z-index: 10; }
/* Message Us is the one window the title opens, from Contact us under its menu */
.gv[data-mode="title"] .gv-sheet-wrap:not([hidden]):has(.gv-sheet[data-kind="report"]) { display: grid; }
.gv .gv-title-foot { all: unset; cursor: pointer; margin-top: -0.6em; font-size: max(13px, calc(1.3 * var(--u))); color: rgba(244, 238, 224, 0.7); text-decoration: underline; text-underline-offset: 0.2em; text-shadow: 0 0.06em 0 #000, 0 0 0.5em rgba(0, 0, 0, 0.9); }
.gv .gv-title-foot:hover, .gv .gv-title-foot:focus-visible { color: var(--ivory); }

/* The ask to turn the phone sideways, over everything while a phone's browser is held upright (the audit of 27 October) */
.gv-turn { display: none; }
@media (orientation: portrait) and (pointer: coarse) and (max-width: 820px) {
  body.gv-on .gv-turn { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; background: #0b0a09; color: #f4eee0; text-align: center; font: 600 22px/1.25 var(--f-head, Georgia, serif); }
  .gv-turn p { margin: 0; max-width: 14em; }
  .gv-turn-phone { width: 46px; height: 80px; border: 3px solid #f4eee0; border-radius: 9px; box-shadow: inset 0 -9px 0 -6px #f4eee0; animation: gv-turn 2.4s ease-in-out infinite; }
}
@keyframes gv-turn { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .gv-turn-phone { animation: none; transform: rotate(-90deg); } }

/* The steps for saving the game to an iPhone's home screen, under Full screen (Emrah, 27 October) */
.gv-steps { margin: 0.6em 0 0.9em; padding-left: 1.4em; }
.gv-steps li + li { margin-top: 0.35em; }

/* Unarmed, Beni's ticket 44 of 1 November: his gloved fist etched small on the glass of the empty hand slot, with the scale
   and weight of the boot icon. The widest part of the glove is the width of the resting chit, redrawn to the chit's own
   pixels (his word of 17.38), and it stands on the chit, greyed as a taken glyph counter is */
.gh-item.gq--fist { background: none; box-shadow: none; }
.gq--fist.is-flipped .gq-fist { transform: translateX(-50%) scaleX(-1); }
.gq--fist .gq-fist { position: absolute; left: 50%; bottom: 35%; width: 34%; height: auto; transform: translateX(-50%); opacity: 0.8; image-rendering: pixelated; pointer-events: none; filter: grayscale(1) brightness(0.6); }
.gq--fist .gh-chit-btn.gq-pile--a:not(.is-ready) { left: 50%; top: 65%; width: 34% !important; transform: translate(-50%, -50%); }
.gq--fist .gh-chit-btn:not(.is-ready) .gq-chit b { display: none; }


/* The map's heroes and enemies as mugshots along each square's foot, head and shoulders cut from their own sprites, to
   save room (Beni's ticket 51 of 1 November) */
.gv-map .mf-mugs { position: absolute; left: 4%; right: 4%; bottom: 6%; z-index: 3; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: calc(var(--cell, 5em) * 0.03); pointer-events: none; }
.gv-map .mf-mug { width: calc(var(--cell, 5em) * 0.3); aspect-ratio: 1; background-repeat: no-repeat; image-rendering: pixelated; background-color: rgba(13, 11, 16, 0.55); box-shadow: 0 0 0 1px rgba(232, 222, 200, 0.35); }
.gv-map .mf-mug.mf-hero { box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.85); }
.gv-map .mf-mug.is-redeye { box-shadow: 0 0 0 1px rgba(208, 26, 32, 0.95), 0 0 calc(var(--cell, 5em) * 0.05) rgba(208, 26, 32, 0.8); }
.gv-map .mf-mug.mf-corpse { filter: grayscale(0.85) brightness(0.6); }

