@font-face {
  font-family: "SFNS Mono Local";
  src: url("./assets/fonts/SFNSMono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #040506;
  --text: rgba(241, 243, 236, 0.95);
  --text-soft: rgba(214, 221, 210, 0.72);
  --text-strong: #ffffff;
  --accent: #d8ffaf;
  --warning: #ffdfb2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(249, 183, 94, 0.08), transparent 22%),
    radial-gradient(circle at 78% 8%, rgba(88, 152, 116, 0.1), transparent 28%),
    linear-gradient(180deg, #07110f 0%, #040708 48%, #020202 100%);
  color: var(--text);
  font-family: "SFNS Mono Local", ui-monospace, SFMono-Regular, Menlo, monospace;
}

body {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

#ascii-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.bbs-intro {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #020403;
  opacity: 1;
  transition: opacity 260ms ease;
}

.bbs-intro.is-handoff {
  opacity: 0;
}

.bbs-intro.is-hidden {
  display: none;
}

.bbs-intro__ascii {
  display: block;
  width: 100%;
  height: 100%;
}

.resolution-warning {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  text-align: center;
}

.resolution-warning[hidden] {
  display: none;
}

.resolution-warning__copy {
  display: grid;
  gap: 0.8rem;
}

.resolution-warning__title,
.resolution-warning__subtitle {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resolution-warning__title {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.resolution-warning__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 760px) {
  .bbs-intro {
    inset: 0;
  }
}
