:root {
  --bg: #0b1020;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --canvas-bg: #0a0f1f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  user-select: none;
  overflow: hidden;
  /* full-screen canvas */
}

/* Full-screen canvas (no crop) */
canvas#game {
  display: block;
  width: 100vw;
  height: 100vh;
  background: transparent;
}

/* Optional overlay text hints */
.hint {
  position: absolute;
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 6px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
}

/* Loading overlay */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 1);
  z-index: 20000;
  /* above the start-screen (10000) */
}

.loading-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.loading-bar {
  width: 300px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #06b6d4);
  border-radius: 4px;
  transition: width 0.25s ease;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.loading-text {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Avenir Next World font faces (reference: shoot-runner) */
@font-face {
  font-family: 'AvenirNextWorld-Medium';
  src: url('https://firebasestorage.googleapis.com/v0/b/sticky-20bca.appspot.com/o/fonts%2FAvenirNextWorld-Medium.otf?alt=media&token=6d0c0700-529c-45a3-bfd7-dc79b07030cd') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvenirNextWorld-Bold';
  src: url('https://firebasestorage.googleapis.com/v0/b/sticky-20bca.appspot.com/o/fonts%2FAvenirNextWorld-Bold.otf?alt=media&token=8d06a955-d494-4533-b00f-f419be3a1781') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Start screen title styles */
.title-wrap {
  position: relative;
  display: block;
  line-height: 100%;
}

.title-outline,
.title-fill {
  font-family: 'AvenirNextWorld-Bold', 'Avenir Next World', Arial, sans-serif;
  font-weight: 950;
  font-style: normal;
  line-height: 100%;
  text-align: center;
}

.title-outline {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke-width: 8px;
  -webkit-text-stroke-color: #000;
}

.title-fill {
  position: relative;
  z-index: 1;
  display: block;
  color: #FFF;
  text-shadow: 0 2.551px 0 #000;
}

/* Button style with Avenir */
.start-button {
  border-radius: 12px;
  min-width: 220px;
  border: 4px solid #1b3a6b;
  background: linear-gradient(180deg, #4588EB 0%, #2D62C4 100%);
  box-shadow: 0 6px 0 0 #1A3972;
  color: #FFF;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-family: 'AvenirNextWorld-Bold', 'Avenir Next World', Arial, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 900;
  line-height: 100%;
  padding: 12px 24px;
  cursor: pointer;
}

.sticky-btn {
  border-radius: 8px;
  border: 2px solid #000;
  background: #178BC8;
  box-shadow: 0 4px 0 0 #000;
  color: #E0EAF1;
  text-align: center;
  text-shadow: none;
  font-family: "Avenir Next World", 'AvenirNextWorld-Bold', Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 100%;
}

.btn-title-wrap {
  position: relative;
  display: inline-block;
  line-height: 100%;
}

.btn-outline,
.btn-fill {
  display: block;
  font: inherit;
  font-weight: 950;
  line-height: 100%;
  text-align: inherit;
}

.btn-outline {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #000;
}

.btn-fill {
  position: relative;
  color: #E0EAF1;
  text-shadow: none;
}
