:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06080f;
  color: #f7fbff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(36, 196, 220, 0.22), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(255, 215, 112, 0.16), transparent 26%),
    #06080f;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  background: #f4f7fb;
  color: #070b12;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button + button {
  background: #202938;
  color: #f4f7fb;
}

.shell {
  position: relative;
  width: min(100vw, 1100px);
  min-height: min(100vh, 720px);
  padding: 24px;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #080d18;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hud {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hud div {
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.82);
}

.hud span,
.panel small,
.eyebrow {
  display: block;
  color: #9fb2c8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hud strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.panel {
  position: absolute;
  left: clamp(32px, 7vw, 96px);
  bottom: clamp(32px, 8vw, 92px);
  width: min(420px, calc(100% - 64px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(16px);
}

.panel[hidden] {
  display: none;
}

.panel h1 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.panel p {
  margin: 0 0 1rem;
  color: #dce8f5;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .shell {
    padding: 12px;
  }

  .hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hud div {
    min-width: 0;
  }

  .panel {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}
