@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

:root {
  --bg: #05080d;
  --line: rgba(142, 196, 247, 0.35);
  --text: #edf6ff;
  --muted: #9fb3c7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(58, 210, 255, 0.18), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(255, 117, 66, 0.18), transparent 35%),
    linear-gradient(145deg, #04080d, #09111b 45%, #080d14);
}

.game-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 10px;
  gap: 10px;
}

.game-head {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 10, 16, 0.72);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.game-head h1 {
  margin: 0;
  font-size: 18px;
}

.game-meta {
  color: var(--muted);
  font-size: 12px;
}

.game-stage {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 14, 0.82);
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.pill {
  border: 1px solid rgba(140, 197, 248, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(4, 7, 12, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.pill b {
  color: var(--text);
}

.dom-board {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.grid-board {
  display: grid;
  gap: 8px;
  width: min(560px, 100%);
}

.tile {
  border: 1px solid rgba(149, 198, 245, 0.35);
  border-radius: 10px;
  background: rgba(22, 38, 62, 0.34);
  color: var(--text);
  font-weight: 700;
  user-select: none;
  display: grid;
  place-items: center;
}

.tile.btn {
  cursor: pointer;
}

.tile.btn:hover {
  border-color: rgba(151, 235, 255, 0.8);
}

.controls-tip {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
