/* Shared frame for the Times Square arcade minigames (xiaoOS palette). */
:root {
  --bg: #0b0a09;
  --ink: #f4efe6;
  --muted: #a39d92;
  --hairline: rgba(244, 239, 230, 0.14);
  --accent: #00d2ff;
  --accent-ink: #002a35;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bar {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
/* The module's name on a solid label, as on xiaoOS windows. */
.bar h1 {
  margin: 0 auto 0 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
}
.bar b { color: var(--ink); font-weight: 500; }
.bar button {
  min-height: 36px;
  padding: 6px 12px;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--muted);
  cursor: pointer;
}
.bar button:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
canvas {
  display: block;
  margin: auto;
  touch-action: none;
  image-rendering: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
