/* ISUCK — the page is a frame around one canvas, nothing more. */

:root {
  --void: #0a0807;
  --paper: #120f0e;
  --surface: #1c1715;
  --ink: #efe7d8;
  --muted: #a99c89;
  --blood: #b6382d;
  --blood-dim: #7b211c;
  --bone: #d8ceb8;
  --focus: #e0b95d;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: none;
}

#shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, #1c1715 0%, var(--void) 72%);
}

/* The canvas keeps its 16:9 aspect and is scaled by the renderer's own
   device-pixel handling, so let CSS size it and never stretch it. */
#game {
  display: block;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  background: var(--paper);
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

#game:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: var(--space-3);
  min-height: 44px;
  padding: 12px var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--focus);
  color: var(--void);
  font-weight: 700;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus { top: var(--space-3); }

#boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
  background: var(--void);
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
#boot.gone { opacity: 0; }

.boot-title {
  font-size: clamp(34px, 7vw, 76px);
  letter-spacing: 0.18em;
  color: var(--bone);
  text-shadow: 0 0 26px rgba(168, 39, 31, 0.55);
}

.boot-note {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #8d8275;
}

.noscript {
  position: absolute;
  inset: auto 0 12% 0;
  margin: 0 auto;
  max-width: 34em;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone);
}

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

@media (prefers-reduced-motion: reduce) {
  #boot { transition: none; }
}
