*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05060a; color: #f2f4f8; }
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}
.bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  font-size: 14px;
  border-bottom: 1px solid #1a1e27;
}
.brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #39d98a; text-decoration: none; }
.help { margin: 0; color: #9aa3b2; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav { display: flex; gap: 14px; }
nav a { color: #f2f4f8; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: #39d98a; text-decoration: underline; }
.game {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.notice { margin: 16px; color: #9aa3b2; text-align: center; }
.notice[data-error] { color: #ff8fa3; }
@media (max-width: 640px) { .help { display: none; } }
