/* Games pages (/games). Built on the site tokens in site.css; every class starts with g- (or ll-
   for Label Lens) so nothing collides with the site's own classes. */

/* Hub cards */
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; padding-bottom: 8px; }
.g-card { display: flex; flex-direction: column; gap: 8px; border-top: 8px solid var(--ink); padding-top: 12px; color: var(--ink); text-decoration: none; }
.g-card img { display: block; width: 100%; height: auto; border-radius: var(--r-panel); background: var(--soft); aspect-ratio: 1200 / 675; border: 2px solid var(--ink); }
.g-card b { font-size: 26px; line-height: 30px; font-weight: 900; letter-spacing: -0.02em; }
.g-card span { color: var(--muted); font-size: 16px; line-height: 24px; }
.g-card .g-card-meta { font: 700 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.g-card:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.g-card:hover img { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.g-card img { transition: transform 0.18s, box-shadow 0.18s; }

/* ---------- The frame: HUD on top, stage and panel ---------- */
.g-game { padding: 4px 0 48px; }
.g-frame {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hud" "stage" "panel";
  border: 2px solid var(--ink); border-radius: var(--r-panel); background: var(--paper); overflow: hidden;
  box-shadow: 0 6px 0 var(--ink);
}
@media (min-width: 900px) {
  .g-frame { grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); grid-template-areas: "hud hud" "stage panel"; }
  .g-panel { border-left: 2px solid var(--ink); }
}
@media (max-width: 899px) { .g-stage { border-bottom: 2px solid var(--ink); } }

.g-hud { grid-area: hud; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-bottom: 2px solid var(--ink); font: 700 13px/1 var(--mono); min-height: 52px; }
.g-hud-round { white-space: nowrap; min-width: 9.5ch; }
.g-pips { display: flex; gap: 7px; flex: 1; justify-content: center; flex-wrap: nowrap; }
.g-pip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule); box-sizing: border-box; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.g-pip[data-s="now"] { border-color: var(--ink); transform: scale(1.2); }
.g-pip[data-s="spot"] { background: var(--answer); border-color: var(--ink); }
.g-pip[data-s="close"] { background: var(--action); border-color: var(--action); }
.g-pip[data-s="range"] { background: var(--rule); border-color: #9a9a96; }
.g-pip[data-s="off"] { border: 2px dashed #8a8a86; }
.g-hud-score { position: relative; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.g-hud-score b { font-size: 22px; font-variant-numeric: tabular-nums; }
.g-hud-score small { color: var(--muted); font-size: 13px; }
.g-float { position: absolute; right: 0; top: -2px; font: 800 15px var(--mono); color: var(--action); pointer-events: none; }
.g-sound { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: var(--r-control); background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; }
.g-sound:hover { background: var(--soft); }
.g-sound svg { width: 18px; height: 18px; }
.g-sound .g-snd-off { display: none; }
.g-sound.g-muted .g-snd-on { display: none; }
.g-sound.g-muted .g-snd-off { display: inline; }
@media (max-width: 520px) {
  .g-hud { gap: 8px; padding-left: 14px; }
  .g-hud-round { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .g-pips { justify-content: flex-start; gap: 6px; }
  .g-pts { display: none; }
}

/* Stage */
.g-stage { grid-area: stage; position: relative; overflow: hidden; background: var(--soft); min-width: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.g-stage-plate, .g-stage-sugar { aspect-ratio: 1 / 1; }
@media (min-width: 560px) and (max-width: 899px) { .g-stage-plate, .g-stage-sugar { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) {
  .g-stage-plate, .g-stage-sugar { aspect-ratio: auto; height: 540px; }
  .g-panel { max-height: 540px; overflow-y: auto; }
  .g-frame-label .g-panel { max-height: 640px; }
}
.g-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.g-fx { z-index: 6; pointer-events: none; }
.g-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; font: 700 13px/1.5 var(--mono); color: var(--muted); z-index: 1; }
.g-msg[hidden] { display: none; }

/* Pill and tags over the stage */
.g-pill {
  position: absolute; left: 50%; top: 12px; z-index: 2; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  padding: 6px 16px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink);
  font: 800 17px/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; transition: background 0.2s;
}
.g-pill.g-hot { background: var(--answer); }
.g-pill:empty { display: none; }
.g-tag {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; text-align: center;
  padding: 5px 10px 6px; border-radius: var(--r-tag); background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: 800 14px/1.15 var(--sans); transition: background 0.2s;
}
.g-tag small { display: block; font: 700 11px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.g-tag.g-hot { background: var(--answer); }
.g-tag.g-hot small { color: var(--ink); }

/* Stamp: the verdict, pressed onto the stage */
.g-stamp {
  position: absolute; top: 14px; right: 14px; z-index: 4; pointer-events: none; display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 8px; border: 3px solid var(--ink); border-radius: 9px; background: var(--paper);
  font: 900 21px/1 var(--sans); letter-spacing: 0.01em; text-transform: uppercase; transform: rotate(-8deg);
  box-shadow: 0 3px 0 var(--ink);
}
.g-stamp span { font: 800 16px/1 var(--mono); padding: 3px 6px; border-radius: 5px; background: var(--ink); color: var(--paper); }
.g-stamp-spot { background: var(--answer); }
.g-stamp-close { background: var(--action); color: var(--paper); }
.g-stamp-close span { background: var(--paper); color: var(--ink); }
.g-stamp-off { border-style: dashed; box-shadow: none; }
.g-stage-plate .g-stamp { top: auto; bottom: 16px; }
.g-stage-label .g-stamp { right: auto; left: 14px; }

/* Intro and results overlays */
.g-intro, .g-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(255, 255, 255, 0.55); }
.g-intro[hidden] { display: none; }
.g-intro-card, .g-over-card {
  max-width: 360px; width: 100%; display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 22px 22px 24px; border: 2px solid var(--ink); border-radius: var(--r-panel); background: var(--paper); box-shadow: 0 6px 0 var(--ink);
}
.g-kicker { margin: 0; font: 700 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.g-intro-title { margin: 0; font: 900 clamp(26px, 4vw, 32px)/1.08 var(--sans); letter-spacing: -0.03em; }
.g-intro-text { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.g-intro .btn { margin-top: 6px; min-width: 180px; }
.g-over-score { margin: 0; font: 900 64px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.g-over-score span { font-size: 30px; color: var(--muted); letter-spacing: -0.02em; }
.g-over-pips { display: flex; gap: 8px; }
.g-over-pips .g-pip { width: 18px; height: 18px; }
.g-over-msg { margin: 0; font-size: 16px; line-height: 1.45; }

/* ---------- Panel ---------- */
.g-panel { grid-area: panel; display: grid; gap: 16px; align-content: start; padding: 20px 20px 22px; min-width: 0; }
.g-q { margin: 0; font: 800 clamp(21px, 2.3vw, 25px)/1.22 var(--sans); letter-spacing: -0.02em; }
.g-control { display: grid; gap: 12px; }
.g-control[hidden] { display: none; }
.g-stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 10px; }
.g-readout { text-align: center; font: 800 32px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-readout small { display: block; font: 700 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.g-step {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 800 28px/1 var(--sans); cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform 0.06s, box-shadow 0.06s; padding: 0;
}
.g-step:hover { background: var(--soft); }
.g-step:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.g-step:disabled { opacity: 0.3; cursor: default; transform: none; box-shadow: 0 3px 0 var(--ink); }

/* Range: a fat track that fills in green to the thumb (--p is set from the script) */
.g-range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.g-range:focus-visible { outline: 3px solid var(--answer); outline-offset: 2px; border-radius: 999px; }
.g-range::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--action) var(--p), var(--paper) var(--p)); }
.g-range::-moz-range-track { height: 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.g-range::-moz-range-progress { height: 10px; border-radius: 999px 0 0 999px; background: var(--action); }
.g-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; border: 3px solid var(--ink); background: var(--answer); box-shadow: 0 2px 0 var(--ink); }
.g-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink); background: var(--answer); }
.g-range:disabled { opacity: 0.45; cursor: default; }
.g-scale { display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); color: var(--muted); margin-top: -4px; }

.g-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.g-actions .btn { flex: 1 1 160px; min-height: 56px; font-size: 17px; box-shadow: 0 4px 0 var(--ink); transition: transform 0.06s, box-shadow 0.06s; }
.g-actions .btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.g-actions .btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.g-actions .btn[hidden] { display: none; }
.btn.g-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.btn.g-ghost:hover { background: var(--soft); color: var(--ink); }
.btn.g-ghost:active { box-shadow: inset 0 0 0 2px var(--ink); }

.g-feedback { display: grid; gap: 12px; font-size: 16px; line-height: 1.5; }
.g-feedback:empty { display: none; }
.g-head { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.g-hl { background: var(--answer); padding: 0 4px; border-radius: 4px; font-weight: 800; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.g-note { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.g-feedback:not(:empty) ~ .g-rules { display: none; }
.g-frame[data-phase="reveal"] .g-control, .g-frame[data-phase="reveal"] .g-hint { display: none; }
.g-frame[data-phase="done"] .g-q, .g-frame[data-phase="done"] .g-control, .g-frame[data-phase="done"] .g-hint, .g-frame[data-phase="done"] .g-rules { display: none; }
.g-hint:empty { display: none; }
.g-hint { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); min-height: 1.45em; }
.g-hint b { color: var(--ink); }

/* Accuracy meter: log scale, answer in the middle, scoring bands around it */
.g-meter { display: grid; gap: 6px; padding-top: 30px; }
.g-meter-track { position: relative; height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.g-zone { position: absolute; top: 0; bottom: 0; }
.g-z1 { background: #e6e6e1; }
.g-z2 { background: #b9dccd; }
.g-z3 { background: var(--answer); }
.g-meter-mid { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.g-meter-pin { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.g-meter-pin b { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 800 12px/1 var(--mono); padding: 4px 6px; border-radius: 5px; background: var(--ink); color: var(--paper); }
.g-meter-pin.g-pin-edge-l b { left: 0; transform: none; }
.g-meter-pin.g-pin-edge-r b { left: auto; right: 0; transform: none; }
.g-meter-scale { display: grid; grid-template-columns: 1fr auto 1fr; font: 700 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.g-meter-scale span:last-child { text-align: right; }
.g-meter-ans { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* Results list */
.g-recap { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.g-recap li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; grid-template-areas: "pip what pts" "pip nums pts"; column-gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.g-recap .g-pip { grid-area: pip; }
.g-recap-what { grid-area: what; font-weight: 700; font-size: 15px; line-height: 1.3; }
.g-recap-nums { grid-area: nums; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.g-recap b { grid-area: pts; font: 800 15px var(--mono); }

/* ---------- Label Lens ---------- */
.g-stage-label { background: var(--pack, #444); min-height: 540px; transition: background 0.45s; }
.ll-pack { position: relative; min-height: 100%; padding: 20px 18px 22px; display: grid; gap: 14px; justify-items: center; align-content: start; color: var(--pack-ink, #fff); }
.ll-pack::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.14)); }
.ll-head { position: relative; justify-self: stretch; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 150px; }
.ll-brand { font: 900 clamp(28px, 4.2vw, 40px)/0.95 var(--sans); letter-spacing: -0.035em; }
.ll-size { font: 700 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; white-space: nowrap; }
.ll-wrap { position: relative; width: min(100%, 360px); transform: rotate(-1.2deg); }
.ll-card { position: relative; background: #fffefa; color: var(--ink); border-radius: 6px; padding: 14px 16px 12px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.28); }
.ll-meta { margin: 0; font: 700 10.5px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.ll-box { border: 2px solid var(--ink); padding: 8px 10px 6px; margin-top: 8px; }
.ll-title { margin: 0; font: 900 30px/1 var(--sans); letter-spacing: -0.02em; }
.ll-per { margin: 2px 0 6px; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.ll-rule { height: 8px; background: var(--ink); margin: 2px 0 0; }
.ll-rule-thin { height: 3px; }
.ll-row {
  position: relative; display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 5px 4px; margin: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink);
  font: 700 14.5px/1.25 var(--sans); text-align: left; cursor: pointer; border-radius: 3px;
  background-image: linear-gradient(var(--answer), var(--answer)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.45s cubic-bezier(.3,.8,.3,1), background-color 0.15s;
}
.ll-row:last-of-type { border-bottom: 0; }
.ll-row.ll-sub { font-weight: 400; padding-left: 18px; }
.ll-row.ll-energy { font-size: 17px; font-weight: 800; padding: 7px 4px; }
.ll-row:hover:not(:disabled) { background-color: #f1f0e8; }
.ll-row:focus-visible { outline: 3px solid var(--action); outline-offset: 1px; }
.ll-row:disabled { cursor: default; }
.ll-row.ll-hit { background-size: 100% 100%; }
.ll-row.ll-miss { background-color: #f1f0e8; }
.ll-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ll-foot { margin: 8px 0 0; display: flex; justify-content: space-between; gap: 8px; font: 400 11.5px/1.3 var(--mono); color: var(--muted); }
.ll-sticker {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 1px;
  background: var(--answer); color: var(--ink); border: 3px solid var(--ink); transform: rotate(9deg); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.ll-sticker[hidden] { display: none; }
.ll-leaving { position: absolute; inset: 0; pointer-events: none; }
.g-tappable .g-canvas { cursor: pointer; }
.ll-sticker small { font: 700 9.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ll-sticker b { font: 900 25px/1 var(--sans); letter-spacing: -0.03em; }
.ll-sticker span { font: 700 11px/1.2 var(--sans); max-width: 84px; justify-self: center; }
.ll-lens {
  position: absolute; z-index: 3; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; pointer-events: none;
  border: 6px solid var(--ink); background: #fffefa; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.ll-lens[hidden] { display: none; }
.ll-lens-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ll-lens-in .ll-card { box-shadow: none; }
.ll-lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%); }
.ll-handle { position: absolute; z-index: 2; width: 16px; height: 62px; border-radius: 8px; background: var(--ink); pointer-events: none; transform-origin: 50% 0; }
.ll-handle[hidden] { display: none; }
.ll-tape {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; min-height: 46px; max-width: 100%;
  padding: 8px 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.28); color: #fff; font: 700 15px/1.2 var(--mono);
}
.ll-tape:empty { visibility: hidden; }
.ll-tape .ll-tok { display: inline-block; }
.ll-tape .ll-op { opacity: 0.75; }
.ll-tape .ll-res { background: var(--answer); color: var(--ink); padding: 4px 8px; border-radius: 6px; font-weight: 800; }
.ll-pkg-bar { --pack: #4b2a1a; --pack-ink: #f6e7c8; }
.ll-pkg-squeeze { --pack: #b8241b; --pack-ink: #fff3e3; }
.ll-pkg-tube { --pack: #1d6a62; --pack-ink: #f3efe2; }
.ll-pkg-box { --pack: #e3cf9d; --pack-ink: #22351d; }
.ll-pkg-jar { --pack: #556b2b; --pack-ink: #f4edd7; }
.ll-pkg-bar .ll-pack { background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 3px, rgba(255, 255, 255, 0.06) 3px 6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 3px, rgba(255, 255, 255, 0.06) 3px 6px); background-size: 16px 100%, 16px 100%; background-position: left top, right top; background-repeat: repeat-y; }
.ll-pkg-tube .ll-pack { background-image: linear-gradient(#d9dcdf, #a7adb3 60%, #c9cdd1), linear-gradient(#c9cdd1, #a7adb3 40%, #d9dcdf); background-size: 100% 12px, 100% 12px; background-position: top, bottom; background-repeat: no-repeat; }
.ll-pkg-box .ll-pack { background-image: linear-gradient(#2f6b3a, #2f6b3a); background-size: 100% 74px; background-repeat: no-repeat; }
.ll-pkg-box .ll-head { color: #f4efe2; }
.ll-pkg-jar .ll-pack { background-image: linear-gradient(#c9a956, #a7883c 55%, #d8bc6c); background-size: 100% 14px; background-repeat: no-repeat; }
@media (min-width: 900px) { .g-stage-label { min-height: 0; height: 640px; } .ll-pack { padding: 26px 28px 26px; } .ll-wrap { width: 360px; } .ll-sticker { top: 22px; right: 22px; width: 118px; height: 118px; } }
@media (max-width: 520px) { .g-stage-label { min-height: 0; } .ll-pack { padding: 16px 14px 18px; gap: 12px; } .ll-sticker { width: 92px; height: 92px; top: 10px; right: 10px; } .ll-sticker b { font-size: 21px; } .ll-head { padding-right: 104px; flex-direction: column; gap: 4px; } .ll-row { font-size: 14px; padding: 4px; } .ll-row.ll-energy { font-size: 15.5px; padding: 6px 4px; } .ll-title { font-size: 26px; } .ll-lens { width: 112px; height: 112px; } }

/* Answer tables and the market badge */
.g-market { display: inline-block; margin-left: 6px; font: 700 11px/16px var(--mono); letter-spacing: 0.06em; border: 1.5px solid var(--rule); border-radius: var(--r-tag); padding: 0 5px; color: var(--muted); vertical-align: 1px; }
.g-code { display: block; font: 400 12px/18px var(--mono); color: var(--muted); }
.g-facts { font-size: 18px; line-height: 29px; }
.g-related { list-style: none; padding: 0 !important; }
.g-related li { border-bottom: 1px solid var(--rule); padding: 8px 0; margin: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .g-pip, .ll-row, .g-stage-label, .g-card img { transition: none; }
}

/* ?capture: only the stage, filling the window, for making preview images */
html.g-capture body > *:not(main), html.g-capture main > *:not(.wrap), html.g-capture .wrap > *:not(.g-game), html.g-capture .g-game > *:not(.g-frame), html.g-capture .g-panel, html.g-capture .g-hud { display: none !important; }
html.g-capture .wrap { max-width: none; padding: 0; }
html.g-capture .g-game { padding: 0; }
html.g-capture .g-frame { display: block; border: 0; border-radius: 0; box-shadow: none; }
html.g-capture .g-stage { width: 100vw; height: 100vh; min-height: 0; aspect-ratio: auto; border: 0; }
