* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: radial-gradient(circle at 50% 25%, #0d1110 0%, #050607 70%);
  font-family: "JetBrains Mono", "Menlo", Consolas, monospace;
}

/* Phaser's Scale Manager (autoCenter: CENTER_BOTH) centers the canvas
   inside this container by itself — do NOT also flex-center it here,
   or the two offsets stack and push the canvas off-center. */
#game-container {
  width: 100vw;
  height: 100vh;
}

#game-container canvas {
  box-shadow: 0 0 70px rgba(184, 240, 0, 0.08);
}

/* Score-sharing panel — a little terminal window, shown on the
   game-over screen. Positioned over the scaled canvas by game.js
   (left/top/width are set there). */
.share-score {
  position: fixed;
  transform: translateX(-50%);
  width: min(100%, 460px);
  margin: 0;
  padding: 0 0 14px;
  box-sizing: border-box;
  background: #0b0e11;
  box-shadow: inset 0 0 0 1px #1e242b, 0 0 40px rgba(0, 0, 0, 0.5);
  color: #a9b3bd;
  font-family: "JetBrains Mono", "Menlo", Consolas, monospace;
  z-index: 10;
}

.share-score[hidden] {
  display: none;
}

.share-score__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #11151a;
  border-bottom: 1px solid #1e242b;
}

.share-score__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7f8a96;
}

.share-score__dots {
  display: flex;
  gap: 5px;
}

.share-score__dots span {
  width: 8px;
  height: 8px;
  background: #2a323b;
}

.share-score__dots span:last-child {
  background: #b8f000;
}

.share-score__text {
  display: block;
  width: 100%;
  min-height: 88px;
  box-sizing: border-box;
  resize: none;
  border: none;
  padding: 12px 14px;
  background: transparent;
  color: #a9b3bd;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
}

.share-score__text:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #b8f000;
}

.share-score__text::selection {
  background: #b8f000;
  color: #0a0b0c;
}

.share-score__copy {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px;
  min-height: 44px;
  border: none;
  background: #0f1216;
  box-shadow: inset 0 0 0 1px #2a323b;
  color: #f4f6f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-score__copy:hover,
.share-score__copy:focus-visible {
  background: #b8f000;
  color: #0a0b0c;
  box-shadow: none;
}

.share-score__status {
  min-height: 1.2em;
  margin: 8px 14px 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  color: #b8f000;
}
