:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #080b08;
  color: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 35%, rgb(58 94 48 / 28%), transparent 40rem),
    #080b08;
}

.shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: minmax(0, 1fr) auto;
}

.game-frame {
  position: relative;
  width: min(100vw, calc((100vh - 66px) * 4 / 3), 960px);
  margin: auto;
  aspect-ratio: 4 / 3;
  background: #000;
  box-shadow: 0 24px 90px rgb(0 0 0 / 70%);
}

canvas,
.hit-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  image-rendering: auto;
}

.hit-layer {
  overflow: hidden;
}

.menu-hit {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.show-hitboxes .menu-hit {
  border: 1px solid rgb(255 225 84 / 85%);
  background: rgb(255 225 84 / 10%);
}

.menu-hit:focus-visible {
  outline: 2px solid rgb(255 239 128 / 90%);
  outline-offset: 2px;
  background: rgb(255 239 128 / 12%);
}

.hint {
  color: #9ca596;
  font-size: 0.85rem;
}

.menu-message {
  position: absolute;
  left: 50%;
  bottom: 3%;
  max-width: 86%;
  padding: 8px 13px;
  border-radius: 6px;
  background: rgb(0 0 0 / 78%);
  color: #fff4be;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 150ms;
  pointer-events: none;
}

.menu-message.visible {
  opacity: 1;
}

.page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 66px;
  padding: 12px 18px;
  border-top: 1px solid #263026;
  background: #101510;
}

.page-controls a,
.page-controls label {
  color: #e5e8df;
  font-size: 0.9rem;
}

.page-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 520px) {
  .page-controls {
    gap: 10px;
  }
}
