/* Burn code panel (lab/lab-common/burncode.js). Dark, to match the Laser Lab game pages (they are single-look, by choice). */
.burncode {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #5b6b7a;
  border-radius: 10px;
  background: #16212b;  /* opaque: the panel reads the same on every page theme */
  color: #eef3f6;
  text-align: left;
}
.burncode[hidden] { display: none; }
.burncode-title { margin: 0; font-size: 1rem; letter-spacing: .04em; }
.burncode-code {
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #0d1419;
  color: #f4d27a;
  font: 600 .85rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
  max-height: 9rem;
  overflow: auto;
}
.burncode-copy {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #f4d27a;
  color: #14202a;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}
.burncode-burn {
  justify-self: start;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #ff7a3d;
  color: #14202a;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  cursor: pointer;
}
.burncode-burn[hidden] { display: none; }
.burncode-burn:focus-visible,
.burncode-copy:focus-visible,
.burncode-code:focus-visible { outline: 3px solid #8ec5ff; outline-offset: 2px; }
.burncode-status { min-height: 1em; font-size: .85rem; color: #b8c7d3; }
.burncode-note { margin: 0; font-size: .9rem; color: #d7e1e8; }

/* Test mode (owner 10-17): a badge on the Lab cards and a slim banner on each game page while the games are in test. */
.badge {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  margin: 6px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4d27a;
  color: #14202a;
  font: 700 .72rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
  vertical-align: middle;
}
.test-mode-banner {
  margin: 0;
  padding: 6px 12px;
  background: #1d2a36;
  color: #d7e1e8;
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
  border-bottom: 1px solid #f4d27a;
}
.test-mode-banner strong { color: #f4d27a; }
/* The game pages' top row (tools/golive/chrome.py): the back link to the Slab Lab yard beside the test-mode banner. */
.lab-chrome { display: flex; align-items: stretch; background: #1d2a36; border-bottom: 1px solid #f4d27a; }
.lab-chrome .test-mode-banner { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
/* the bar's own small face: a game's display font (Lanes' Press Start 2P) would make the banner four lines on a phone */
.lab-chrome .test-mode-banner { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; line-height: 1.4; }
.lab-back {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-right: 1px solid rgba(244, 210, 122, .35);
  color: #f4d27a;
  font: 700 .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-decoration: none;
  white-space: nowrap;
}
.lab-back:hover { background: rgba(244, 210, 122, .1); }
.lab-back:focus-visible { outline: 3px solid #f4d27a; outline-offset: -3px; }
/* phones: the link floats, so the banner's text wraps around it instead of losing a whole column (no extra banner lines) */
@media (max-width: 480px) {
  .lab-chrome { display: block; }
  .lab-chrome::after { content: ""; display: block; clear: both; }
  .lab-back { float: left; min-height: 44px; min-width: 44px; box-sizing: border-box; padding: 6px 9px; margin-right: 4px; border-right: 0; border-radius: 0 0 6px 0; background: rgba(244, 210, 122, .12); }
  .lab-back-l { display: none; }
  .lab-chrome .test-mode-banner { padding: 6px 8px; }
}
@media (max-width: 480px) {
  .badge { margin-top: 4px; padding: 1px 6px; font-size: .62rem; }
}
