:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #07080c;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(87, 43, 103, 0.25), transparent 46%),
    #07080c;
}

body {
  display: block;
}

#game-shell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
}

#canvas-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#canvas {
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  width: var(--codexia-surface-width, 1280px);
  height: var(--codexia-surface-height, 720px);
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  outline: 0;
}

#canvas:focus-visible { outline: 2px solid #45d7eb; }

#canvas:fullscreen {
  width: var(--codexia-surface-width, 100vw);
  height: var(--codexia-surface-height, 100vh);
  max-height: none;
  background: #07080c;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

#world-credential:focus { outline: 2px solid #61d6c6; outline-offset: 2px; }

#admission-form button {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 4px;
  color: #07100f;
  background: #76dccc;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#admission-form button:hover { background: #91eadc; }
.admission-note { margin: 16px 0 0; color: #7f9798; font-size: 12px; line-height: 1.45; }
