@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap");

:root {
  --panel: rgba(9, 14, 29, 0.84);
  --panel-border: rgba(255, 255, 255, 0.32);
  --text: #f9f3dd;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #090f1d;
  color: var(--text);
  touch-action: none;
  font-family: "VT323", monospace;
}

#game-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#hud {
  position: absolute;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  padding: 10px 10px 0;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.chip {
  padding: 6px 8px;
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  background: rgba(3, 5, 12, 0.58);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1.4;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  z-index: 10;
  padding: 14px;
}

.overlay.hidden {
  display: none;
}

.panel {
  width: min(560px, 100%);
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.32);
}

h1,
h2 {
  margin: 0 0 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 17px;
  line-height: 1.25;
}

p {
  margin: 5px 0;
  font-size: 24px;
  line-height: 1.1;
}

.btn {
  width: 100%;
  margin-top: 12px;
  border: 2px solid #fce9be;
  border-radius: 6px;
  background: linear-gradient(180deg, #ee8b48, #bb4f1f);
  color: white;
  padding: 12px 8px 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.25;
}

.sub-link {
  display: block;
  margin-top: 10px;
  color: #95c8ff;
  font-size: 22px;
  text-decoration: none;
}
