/* =========================
   Base
========================= */
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  background: #000;
}

body {
  min-height: 100vh;
  background-color: #000;
  /* background-image: url("background.jpg"); */
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
}

canvas,
#c {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

/* =========================
   Logo
========================= */
#logo {
  position: absolute;
  inset: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

#logo img {
  max-width: 40vw;
}

/* =========================
   FX overlay
========================= */
.comboGlow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.12s linear;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.40), rgba(0, 0, 0, 0) 62%),
    radial-gradient(circle at 50% 50%, rgba(120, 60, 255, 0.18), rgba(0, 0, 0, 0) 55%);
}

/* =========================
   HUD
========================= */
.ui {
  position: fixed;
  left: 50%;
  top: 19vh;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;

  color: #fff;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;

  font: 12px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* =========================
   Panel
========================= */
.panel {
  position: fixed;
  top: 20px;
  left: 50%;
  width: 300px;
  transform: translateX(-50%);

  padding: 10px 12px;
  border-radius: 12px;

  color: #fff;
  user-select: none;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  font: 12px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.panel select,
.panel button {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;

  font: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.panel button {
  cursor: pointer;
}

.hint {
  margin-top: 6px;
  opacity: 0.75;
}

.menu {
  display: flex;
  gap: 10px;
}

.logo {
  text-align: center;
}

.logo img {
  width: 200px;
  margin: 0 auto;
}

/* Level buttons */
.panel button.levelBtn {
  background: rgba(255, 255, 255, 0.67);
  color: #000;
}

.panel button.levelBtn:hover {
  background: #fff;
  color: #000;
}

.panel button.levelBtn.is-active {
  outline: 2px solid rgba(180, 255, 90, 0.55);
  background: rgba(180, 255, 90, 0.12);
  color: #fff;
}

/* =========================
   Credits
========================= */
.credits {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;

  display: flex;
  justify-content: space-between;

  color: #fff;
  opacity: 0.8;

  font: 10px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.credits a {
  color: #fff;
  text-decoration: underline;
}

.credits:hover {
  opacity: 1;
}

/* =========================
   Landscape tweaks
========================= */
@media (max-height: 481px) {
  .panel {
    left: 20px;
    transform: none;
  }

  .ui {
    top: 20px;
    right: 10px;
    left: auto;
    transform: none;
    text-align: right;
  }
}