* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #14161c;
  color: #e8e8ee;
  font: 15px/1.4 system-ui, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  min-height: 100%;
}

#hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 720px);
  font-weight: 600;
}

#version { color: #8a8fa3; }

/* The 3D camera fits the arena to any shape, so the stage fills the screen below the HUD. */
#stage {
  position: relative;
  width: min(100%, 720px);
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  min-height: 320px;
}

#arena {
  display: block;
  width: 100%;
  height: 100%;
  background: #1d2029;
  border: 1px solid #2c3040;
  border-radius: 6px;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 18px;
  background: rgba(20, 22, 28, 0.92);
  border-radius: 6px;
}

.overlay[hidden] { display: none; }

h1, h2 { margin: 0 0 10px; font-size: 22px; }

.combos { padding-left: 18px; color: #f0c674; }

button {
  font: inherit;
  color: inherit;
  background: #2f6fd6;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
}

#offer { display: flex; flex-direction: column; gap: 10px; }

#offer button {
  text-align: left;
  background: #262a36;
  border: 1px solid #3b4154;
}

#offer button strong { display: block; color: #f0c674; }

footer { width: min(100%, 720px); color: #f0c674; min-height: 1.4em; }

footer p { margin: 0; }
