:root {
  --bg: #0f172a;
  --fg: #e2e8f0;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 50% -10%, #1e293b, var(--bg));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
}

.wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.playfield {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playfield canvas {
  width: 100%;
  height: 100%;
  background: linear-gradient(#60a5fa, #93c5fd 60%, #fef9c3);
  border-radius: inherit;
  display: block;
}

.death-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  max-width: 320px;
  max-height: 72%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: none;
  pointer-events: none;
  background: #000;
}

.death-video.visible {
  display: block;
}

@media (max-width: 480px) {
  .playfield {
    width: 100vw;
    height: 100dvh;
    box-shadow: none;
  }
}