:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #080a0b;
  color: #f0ede5;
}
* {
  box-sizing: border-box;
}
html {
  width: 100%;
  height: 100%;
}
body {
  margin: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.game-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 10px 24px;
  border-bottom: 1px solid #ffffff24;
  background: #111110;
  font-size: 14px;
}
.game-banner a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #f0ede5;
  text-decoration: none;
}
.game-banner a:hover {
  color: #c9a227;
}
.game-banner a:focus-visible,
.game-controls button:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 3px;
}
.game-back svg {
  color: #c9a227;
  flex-shrink: 0;
}
.game-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #c9a227;
  font-weight: 600;
}
.game-home {
  font-size: 13px;
}
#game {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: block;
  overflow: hidden;
  background: #080a0b;
}
canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
canvas:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: -2px;
}
.game-controls {
  display: none;
  gap: 12px;
  justify-content: center;
  padding: 8px 16px max(8px, env(safe-area-inset-bottom));
  background: #111110;
}
.game-controls button {
  min-width: 80px;
  min-height: 44px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  background: #24231e;
  color: #f0ede5;
  font: inherit;
  font-size: 13px;
  touch-action: none;
  user-select: none;
}
.game-controls button[data-game-key='Space'] {
  color: #111110;
  background: #c9a227;
  border-color: #c9a227;
}
.game-controls button:active {
  background: #5b5130;
}
.game-no-script {
  padding: 16px;
}
::selection {
  background: #c9a227;
  color: #111110;
}
@media (pointer: coarse) {
  .game-controls {
    display: flex;
  }
}
@media (max-width: 500px) {
  .game-banner {
    padding: 8px 14px;
    gap: 12px;
    font-size: 12px;
  }
  .game-name {
    display: none;
  }
}
