/* Greenhouse Photon Bouncer: the scene (a canvas cut-away of Earth, with the gauges at its right edge) on the left, the
 * order's controls on the right, inside the practice shell's stage. The scene is the same picture in both themes; the
 * panel follows the site tokens. */
.gpb { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; padding: 8px 12px 10px 6px; }
.gpb-scene { position: relative; min-width: 0; min-height: 0; border-radius: 14px; overflow: hidden; background: #0b1638;
  box-shadow: 0 3px 12px rgb(0 0 0 / .25), inset 0 0 0 1px rgb(0 0 0 / .4); }
.gpb-scene canvas { position: absolute; inset: 0; }

/* the panel */
.gpb-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; overflow: hidden; padding-bottom: 72px; }
.gpb-h { margin: 0; font-size: 18px; font-weight: 800; }
.gpb-help { margin: 0; font-size: 16px; color: var(--tlg-text-muted); line-height: 1.35; }

/* route */
.gpb-tray { display: flex; align-items: center; min-height: 64px; padding: 6px 10px; border-radius: 12px; border: 2px dashed var(--tlg-border-strong); }
html .gpb-token { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 16px 6px 8px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 800;
  cursor: grab; border: 2px solid #7a5a00; background: #fff4c2; color: #3b2c00; }
html .gpb-token--ir { border-color: #7a1606; background: #ffe0d6; color: #4a0d00; }
html .gpb-token:focus-visible, html .gpb-card:focus-visible, html .gpb-chip:focus-visible { outline: var(--tlg-focus-width, 3px) solid var(--tlg-focus, #2563eb); outline-offset: 2px; }
.gpb-ic { flex: none; }
.gpb-zones { display: flex; flex-direction: column; gap: 8px; }
.gpb-zone { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 4px 8px; min-height: 70px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--tlg-border-strong); background: var(--tlg-surface); }
.gpb-zone-ic { font-size: 24px; line-height: 1; text-align: center; color: var(--tlg-text-muted); }
.gpb-zone-t { font-size: 16px; font-weight: 700; line-height: 1.25; }
.gpb-zone-slot { grid-column: 1 / -1; min-height: 0; display: flex; }
.gpb-zone-slot:empty { display: none; }
.gpb-zone.is-over, html.pdz-armed .gpb-zone { border-style: dashed; border-color: var(--ps-accent, #b4441f); }
.gpb-zone.is-over { background: color-mix(in srgb, var(--ps-accent, #b4441f) 10%, var(--tlg-surface)); }
.gpb-zone.is-ok, .gpb-bin.is-ok { border-style: solid; border-color: #1e9650; box-shadow: 0 0 0 2px #1e9650; }
.gpb-zone.is-ok .gpb-zone-t::after { content: "  ✓ the real fate"; color: #1e7a42; }
.gpb-zone.is-bad { border-style: solid; border-color: #c0281c; }
.gpb-zone.is-bad .gpb-zone-t::after { content: "  ✗"; color: #c0281c; }

/* sort + rank cards */
.gpb-cards { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; }
.gpb-card-home { min-height: 48px; }
html .gpb-card { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 4px 10px; border-radius: 10px; border: 2px solid #1d5c8f;
  background: var(--tlg-surface); color: var(--tlg-text); font: inherit; font-size: 16px; line-height: 1.2; cursor: grab; text-align: left; max-width: 340px; }
.gpb-card-t { display: inline-flex; flex-direction: column; }
.gpb-card-t small { font-size: 16px; color: var(--tlg-text-muted); }
.gpb-card--gas { padding-left: 2px; }
.gpb-card--gas .gpb-card-t { flex-direction: column; }
.gpb-gas { font-weight: 800; color: var(--tlg-text-muted); }
.gpb-sw { border-radius: 6px; flex: none; }
html .gpb-card.is-ok { box-shadow: 0 0 0 3px #1e9650; }
html .gpb-card.is-ok::after { content: "✓"; font-weight: 900; color: #1e7a42; }
html .gpb-card.is-bad { box-shadow: 0 0 0 3px #c0281c; }
html .gpb-card.is-bad::after { content: "✗"; font-weight: 900; color: #c0281c; }
.gpb-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.gpb-bin { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; border: 2px dashed var(--tlg-border-strong); min-height: 120px; }
.gpb-bin.is-over { border-color: var(--ps-accent, #b4441f); background: color-mix(in srgb, var(--ps-accent, #b4441f) 10%, transparent); }
.gpb-bin-h { margin: 0; font-size: 16px; line-height: 1.25; }
.gpb-bin-h span { display: block; color: var(--tlg-text-muted); }
.gpb-bin-slot { display: flex; flex-direction: column; gap: 6px; }
.gpb-bin-slot .gpb-card { max-width: 100%; }
.gpb--gases .gpb-bin-slot { flex-direction: row; flex-wrap: wrap; }
.gpb-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gpb-slot { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 12px; border: 2px dashed var(--tlg-border-strong); min-height: 60px; }
.gpb-slot-l { font-size: 16px; font-weight: 800; line-height: 1.2; }
.gpb-slot-in { min-height: 48px; display: flex; align-items: center; }
.gpb-slot.is-over { border-color: var(--ps-accent, #b4441f); }
.gpb-slot.is-ok { border-style: solid; border-color: #1e9650; }
.gpb-slot.is-bad { border-style: solid; border-color: #c0281c; }

/* chips */
.gpb-q { display: flex; flex-direction: column; gap: 6px; }
.gpb-q-t { margin: 0; font-size: 16px; font-weight: 800; }
.gpb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gpb-chips--v { flex-direction: column; }
html .gpb-chip { min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--tlg-border-strong); background: var(--tlg-surface); color: var(--tlg-text);
  font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; line-height: 1.25; }
html .gpb-chip:hover:not(:disabled) { border-color: var(--ps-accent, #b4441f); }
html .gpb-chip[aria-checked="true"] { background: var(--ps-accent, #b4441f); border-color: var(--ps-accent, #b4441f); color: #fff; }
html .gpb-chip:disabled { cursor: default; }
html .gpb-chip.is-right { box-shadow: 0 0 0 3px #1e9650; }
html .gpb-chip.is-right::after { content: " ✓"; }
html .gpb-chip.is-wrong { box-shadow: 0 0 0 3px #c0281c; }
html .gpb-chip.is-wrong::after { content: " ✗"; }
.gpb-gbox { position: relative; flex: none; }
.gpb-gbox .plg-legend:empty { display: none; }
.gpb-sl .pss { gap: 4px; }

/* numbers */
.gpb-sheet { padding: 8px 12px; border-radius: 12px; background: #fff8ea; color: #2a2116; border: 1px solid #e3cfa8; }
.gpb-sheet p { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: 16px; line-height: 1.45; }
.gpb-sheet p span { color: #6a5638; }
.gpb-sheet .gpb-sheet-f { display: block; margin-top: 4px; font-weight: 800; color: #9b3a12; }
.gpb .pn-units { display: none; }

/* the Briefing example and the Start art */
.gpb-ex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gpb-ex--narrow .gpb-ex-row { grid-template-columns: 1fr; }
.gpb-ex-fig { margin: 0; min-width: 0; }
.gpb-ex-fig canvas { display: block; border-radius: 10px; }
.gpb-ex-fig figcaption { font-size: 16px; font-weight: 700; margin-top: 4px; }
.gpb-start { width: 100%; height: 100%; display: grid; place-items: center; }
.gpb-start canvas { border-radius: 18px; box-shadow: 0 6px 18px rgb(0 0 0 / .3); }

/* narrow screens: stack */
@media (max-width: 900px) {
  .gpb { position: relative; grid-template-columns: 1fr; height: auto; }
  .gpb-scene { height: 420px; }
  .gpb-panel { overflow: visible; padding-bottom: 12px; }
}
