* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: #0a0a0c;
  color: #eaeaea;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#stage { position: relative; width: 100vw; height: 100vh; }

#video { display: none; }

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hud {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  pointer-events: none;
  z-index: 10;
}

#brand {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 18px;
}
#brand span { color: #c6ff00; font-weight: 400; letter-spacing: 0; }

#status {
  font-size: 12px;
  color: #9a9aa0;
  font-family: ui-monospace, Menlo, monospace;
}

#skins {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  z-index: 10;
}

#skins .sep {
  width: 1px;
  background: #2c2c32;
  margin: 4px 2px;
}

.skin, .mode, #fullframe, #reset {
  background: rgba(15,15,18,.75);
  border: 1px solid #2c2c32;
  color: #cfcfd4;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .15s;
}
.skin:hover, .mode:hover, #fullframe:hover, #reset:hover { border-color: #c6ff00; color: #fff; }
.skin.active, .mode.active {
  background: #c6ff00;
  color: #0a0a0c;
  border-color: #c6ff00;
  font-weight: 700;
}
#fullframe.active { background: #c6ff00; color: #0a0a0c; }
#reset:hover { border-color: #ff5a3c; color: #ff5a3c; }

#hint {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  text-align: center;
  font-size: 12px;
  color: #8a8a90;
  background: rgba(10,10,12,.55);
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
  transition: opacity .5s;
}
#hint.faded { opacity: 0; }

#overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,10,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 20;
  text-align: center;
  padding: 40px;
}
#overlay.hidden { display: none; }
#overlay-text { font-size: 15px; color: #d0d0d5; max-width: 480px; line-height: 1.5; }
#overlay button {
  background: #c6ff00;
  border: none;
  color: #0a0a0c;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#overlay #demo-btn { background: transparent; border: 1px solid #3a3a40; color: #cfcfd4; font-weight: 400; }
