:root {
  --bg-1: #040814;
  --bg-2: #0b1536;
  --panel: rgba(7, 12, 29, 0.78);
  --panel-border: rgba(123, 255, 245, 0.22);
  --text: #eef7ff;
  --muted: rgba(238, 247, 255, 0.72);
  --cyan: #79fff2;
  --pink: #ff5fcf;
  --gold: #ffd36f;
  --orange: #ff8f5c;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(121, 255, 242, 0.18), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(255, 95, 207, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}

body::after {
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 211, 111, 0.22), transparent 34%),
    radial-gradient(circle at 18% 110%, rgba(121, 255, 242, 0.14), transparent 28%);
}

.page-shell {
  width: min(1160px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 12px 8px 24px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-family: "Bungee", sans-serif;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0.04em;
}

.hero-copy {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

kbd {
  display: inline-block;
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92em;
  font-family: inherit;
}

.status-grid,
.info-grid {
  display: grid;
  gap: 14px;
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.status-card,
.info-card,
.game-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.status-card,
.info-card {
  border-radius: 22px;
}

.status-card {
  padding: 16px 18px;
}

.status-label {
  display: block;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: rgba(238, 247, 255, 0.62);
}

.status-card strong {
  font-size: clamp(1rem, 2.3vw, 1.32rem);
}

.game-panel {
  border-radius: 28px;
  padding: 18px;
}

.progress-shell {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold));
  box-shadow: 0 0 24px rgba(121, 255, 242, 0.4);
  transition: width 120ms linear;
}

.canvas-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 31, 64, 0.95), rgba(7, 12, 29, 0.98));
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  touch-action: manipulation;
}

.overlay {
  position: absolute;
  left: 20px;
  top: 20px;
  width: min(360px, calc(100% - 40px));
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(3, 8, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.overlay.hidden {
  display: none;
}

.overlay-tag {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--gold);
}

.overlay h2 {
  margin: 0 0 10px;
  font-family: "Bungee", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.overlay p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.action-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

button {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.action-row button,
.jump-button {
  color: #091322;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition: transform 120ms ease, filter 120ms ease;
}

.action-row button {
  border-radius: 999px;
  padding: 14px 22px;
}

.jump-button {
  width: 100%;
  margin-top: 16px;
  border-radius: 20px;
  padding: 16px 20px;
  font-size: 1rem;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.info-card {
  padding: 18px;
}

.info-card h2 {
  margin: 0 0 10px;
  font-family: "Bungee", sans-serif;
  font-size: 1.1rem;
  line-height: 1.15;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .status-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 16vw, 4.4rem);
  }

  .status-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .game-panel {
    padding: 14px;
  }

  .overlay {
    left: 14px;
    top: 14px;
    width: calc(100% - 28px);
    padding: 16px;
  }

  .jump-button {
    position: sticky;
    bottom: 12px;
  }
}
