:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #e6edf3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 59%, #25112466 0, transparent 48%),
    #0d1117;
}

main {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 24px 48px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 1;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff97e4, #ec00ac 65%, #86005f);
  box-shadow: 0 0 28px #ed00aa40;
}

h1 {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 26px);
  line-height: 1.6;
  font-weight: 400;
  text-align: center;
  letter-spacing: -.6px;
}

h1 strong { font-weight: 650; letter-spacing: 2px; }
h1 span { color: #8b949e; margin-left: 7px; }

.world {
  width: min(100%, 1000px);
  margin-top: 20px;
  position: relative;
}

canvas {
  width: 100%;
  aspect-ratio: 1000 / 640;
  display: block;
  touch-action: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

canvas:focus-visible {
  outline: 1px solid #a93c91;
  outline-offset: 4px;
  border-radius: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fallback { color: #8b949e; text-align: center; }

@media (max-width: 600px) {
  main { padding: 48px 6px; }
  header { gap: 20px; padding: 0 18px; }
  h1 span { display: block; margin: 3px 0 0; letter-spacing: 0; }
  .world { margin-top: 36px; }
}

@media (max-height: 600px) and (min-width: 601px) {
  main { padding: 24px; }
  header { gap: 12px; }
  .world { width: min(100%, 650px); margin-top: 0; }
}
