/* Shared frame for the launcher and all games (ADR 0013): a fixed top bar
   with a large "home" button and the title; the content fills the rest. */
:root {
  --shell-bg: #0F2438;
  --shell-bar: #17324D;
  --shell-text: #F4F7FB;
  --shell-accent: #FFC845;
  --shell-bar-h: clamp(64px, 9vh, 104px);
}
html, body { margin: 0; height: 100%; background: var(--shell-bg); overflow: hidden; }
body { display: flex; flex-direction: column; font-family: "Segoe UI", Verdana, sans-serif; }
.shell-bar {
  flex: 0 0 var(--shell-bar-h); display: flex; align-items: center; gap: 2vw;
  padding: 0 2vw; background: var(--shell-bar); color: var(--shell-text);
  box-sizing: border-box; border-bottom: 3px solid #2C4F73; user-select: none;
}
.shell-home {
  display: inline-flex; align-items: center; gap: 0.4em; height: 74%;
  padding: 0 1.1em; border-radius: 16px; background: var(--shell-accent); color: var(--shell-bg);
  font-size: calc(var(--shell-bar-h) * 0.34); font-weight: 700; text-decoration: none;
}
.shell-home:focus-visible { outline: 4px solid var(--shell-text); outline-offset: 3px; }
.shell-title { flex: 1; text-align: center; font-size: calc(var(--shell-bar-h) * 0.42); font-weight: 700; }
/* Keeps the title centred when the home button is shown on the left. */
.shell-bar::after { content: ""; width: var(--shell-home-w, 0); }
#stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; }
#stage canvas { display: block; }
