/* Opt-in chrome only. Player layout, input and fullscreen remain game-owned. */
@font-face {
  font-family: ArcadeBricolage;
  src: url('/assets/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
body.arcade-shell {
  --arcade-sage: #e8ece5;
  --arcade-paper: #f9f8e9;
  --arcade-ink: #242631;
  --arcade-muted: #596952;
  --arcade-clay: #af7950;
  --arcade-line: #b9c4b0;
  background: var(--arcade-sage);
  color: var(--arcade-ink);
  font-family: ArcadeBricolage, Bricolage, sans-serif;
}
.arcade-shell .arcade-title {
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .98;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.arcade-shell .arcade-frame {
  border-color: var(--arcade-ink);
  box-shadow: 4px 5px 0 #59695226;
}
.arcade-shell .arcade-bar {
  background: #d3dccb;
  color: var(--arcade-ink);
  border-color: var(--arcade-line);
}
.arcade-shell :is(#play, #launch, #resume).arcade-launch {
  background: var(--arcade-clay);
  border-color: var(--arcade-ink);
  color: #171c19;
  min-height: 44px;
  font-weight: 750;
  box-shadow: 0 3px 0 #70503c;
}
.arcade-shell :is(#play, #launch, #resume).arcade-launch:hover:enabled { background: #ddbd84; }
.arcade-shell :is(#play, #launch, #resume).arcade-launch:active:enabled { box-shadow: 0 1px 0 #70503c; }
.arcade-shell :is(#play, #launch, #resume).arcade-launch:focus-visible { outline: 3px solid #406570; outline-offset: 5px; }
.arcade-shell .arcade-help {
  color: var(--arcade-muted);
  border-color: var(--arcade-line);
}
.arcade-shell .arcade-help h2 { color: var(--arcade-ink); }
.arcade-shell .arcade-controls {
  background-color: #d3dccb;
  color: var(--arcade-ink);
  border-color: var(--arcade-line);
}
/* Static art lives in idle covers, never in the engine canvas or input layer. */
.arcade-shell .arcade-idle::before {
  content: '';
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: #d3dccb url('./crow.svg') center / 56px 56px no-repeat;
  box-shadow: 3px 3px 0 #70503c;
  image-rendering: pixelated;
  pointer-events: none;
}
html[data-theme="dark"] .arcade-shell .arcade-idle::before {
  background-image: url('./crow-night.svg');
}
.arcade-shell .arcade-idle :is(.pixel-door, .portal, .moon) { display: none; }
.arcade-shell .arcade-scene {
  display: flex;
  justify-content: flex-end;
  height: 96px;
  margin: 8px 2px -1px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout paint;
}
.arcade-shell .arcade-scene canvas {
  display: block;
  width: 288px;
  height: 96px;
  max-width: none;
  image-rendering: pixelated;
  pointer-events: none;
}
/* The art is outside these containers; these rules also guard accidental placement. */
.arcade-shell :fullscreen .arcade-scene,
.arcade-shell .expanded .arcade-scene,
.arcade-shell.is-expanded .arcade-scene,
.arcade-shell.expanded .arcade-scene { display: none; }
.arcade-shell .arcade-frame:fullscreen,
.arcade-shell .arcade-frame.expanded { box-shadow: none; }
@media (max-width: 600px) {
  .arcade-shell .arcade-scene { justify-content: center; margin-top: 0; }
  .arcade-shell .arcade-frame { box-shadow: 2px 3px 0 #59695226; }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-shell .arcade-scene, .arcade-shell .arcade-idle::before { animation: none; transition: none; }
}
/* Give the console priority over oversized headings and setup prose. */
.arcade-shell .arcade-title { font-size: clamp(2.8rem, 6.2vw, 5.2rem); letter-spacing: -.055em; line-height: .98; margin-block: 9px 15px; }
.arcade-shell .return { margin-bottom: 24px; font-size: 13px; }
.arcade-shell header { padding-bottom: 12px; }
.arcade-shell .tab { font-size: 12px; border: 0; border-radius: 6px; background: #dbe2d3; padding: 6px 10px; }
.arcade-shell .setup { gap: 28px; padding: 22px 0 12px; }
.arcade-shell .setup h2 { font-size: 22px; }
.arcade-shell .setup p { font-size: 14px; line-height: 1.6; }
.arcade-shell .arcade-scene { margin-top: 0; height: 88px; }
.arcade-shell .arcade-help { padding-block: 24px 12px; }
.arcade-shell .arcade-help h2 { font-size: 22px; }
.arcade-shell .arcade-help p { font-size: 14px; line-height: 1.65; }
html[data-theme="dark"] .arcade-shell .tab { background: #354337; }
@media (max-width: 600px) { .arcade-shell .return { margin-bottom: 22px; } .arcade-shell .setup { gap: 10px; padding-top: 16px; } .arcade-shell .arcade-scene { height: 76px; } }
