* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, #1b1040, #08060f 70%);
  font-family: "Courier New", monospace;
  color: #e8e6ff;
  user-select: none;
  overscroll-behavior: none;
}

.wrap { width: min(96vw, 900px); text-align: center; }

h1 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 6px;
  color: #6bffb8;
  text-shadow: 0 0 12px #6bffb8, 0 0 30px #1fd68a;
}

small { font-size: 11px; letter-spacing: 2px; color: #ff6bd6; }

canvas {
  width: 100%;
  aspect-ratio: 25 / 14;
  display: block;
  cursor: crosshair;
  background: #0c0818;
  border: 2px solid #6bffb8;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(107, 255, 184, 0.35);
}


p { margin: 10px 0 0; font-size: 13px; opacity: 0.75; }

@media (pointer: coarse) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    min-height: 100dvh;
    height: 100dvh;
    touch-action: none;
  }

  .wrap {
    position: fixed;
    inset: 0;
    margin: auto;
  }

  canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    touch-action: none;
    object-fit: contain;
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  canvas {
    border-left: 0;
    border-right: 0;
  }
}