:root {
  color-scheme: light;
  --page-bg: #07111f;
  --panel: rgba(7, 17, 31, 0.8);
  --panel-border: rgba(148, 163, 184, 0.25);
  --ink: #e2e8f0;
  --accent: #38bdf8;
  --accent-strong: #f97316;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 24%),
    linear-gradient(180deg, #020617 0%, #07111f 50%, #0f172a 100%);
  display: grid;
  place-items: center;
  padding: 20px;
}

.shell {
  width: min(1080px, 100%);
  display: grid;
  gap: 16px;
}

.footer {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(14px);
}

.footer p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
}

#game {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.52);
}

canvas {
  display: block;
}

.shell:fullscreen,
.shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 0;
  gap: 0;
  display: grid;
  place-items: center;
  background: #020617;
}

.shell:fullscreen .footer,
.shell:-webkit-full-screen .footer {
  display: none;
}

.shell:fullscreen #game,
.shell:-webkit-full-screen #game {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .footer {
    padding: 16px;
  }
}

@media (max-height: 820px) {
  body {
    padding: 10px 12px;
  }

  .shell {
    gap: 10px;
  }

  .footer {
    border-radius: 18px;
    padding: 10px 14px;
  }

  .footer p {
    font-size: 13px;
  }
}

@media (max-height: 760px) {
  body {
    padding: 8px 10px;
  }

  .shell {
    gap: 8px;
  }

  .footer {
    display: none;
  }
}
