/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #000; color: white; font-family: "Silkscreen", monospace; overflow: hidden; }

/* GLOBAL LAYERS */
#app-root { width: 100%; height: 100%; position: relative; }
.mount { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #020202, #050505); }

/* TITLE */
.title {
  position: absolute;
  top: 30%; left: 50%; transform: translateX(-50%);
  font-size: 52px;
  text-shadow: 0 0 12px #f0f, 0 0 18px #0ff;
  letter-spacing: -1px;
  z-index: 5;
  white-space: nowrap;
}
.title span {
  display: inline-block;
  animation: hueShift 2.5s linear infinite;
  filter: drop-shadow(0 0 4px #0ff);
}
@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* BUTTONS */
.bottom-buttons {
  position: absolute;
  bottom: 80px;
  left: 50%; transform: translateX(-50%);
  display: flex;
  gap: 22px;
  z-index: 10;
}
.pixel-button {
  padding: 16px 26px;
  font-size: 22px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: 0.15s ease;
}
.pixel-button:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px) scale(1.05);
}

/* TV OVERLAY */
#tv-overlay {
  position: absolute;
  top: 20px; left: 20px;
  width: 240px; height: 170px;
  border: 4px solid #fff;
  background: black;
  box-shadow: 0 0 14px #0ff, 0 0 26px #f0f;
  overflow: hidden;
  z-index: 20;
  image-rendering: pixelated;
}
#tv-anim {
  width: 100%; height: 100%;
  background-size: cover;
  animation: tvCycle 2.7s steps(1) infinite;
}

@keyframes tvCycle {
  0% { background-image: url("https://dummyimage.com/220x160/000/0ff.png&text=STATIC"); }
  33% { background-image: url("https://dummyimage.com/220x160/111/f0f.png&text=GHOST"); }
  66% { background-image: url("https://dummyimage.com/220x160/222/ff0.png&text=CARTOON"); }
  100% { background-image: url("https://dummyimage.com/220x160/000/0ff.png&text=STATIC"); }
}

/* TICKER */
#quantum-ticker {
  position: fixed;
  bottom: 0; left: 0; width: 100%; height: 36px;
  background: rgba(0, 200, 255, 0.25);
  overflow: hidden;
  color: yellow;
  font-size: 18px;
  white-space: nowrap;
  z-index: 9999;
  padding-left: 12px;
  line-height: 36px;
  border-top: 2px solid rgba(255,255,255,0.3);
}
#quantum-ticker span {
  display: inline-block;
  animation: tickerScroll 14s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* PLACEHOLDER SCREENS */
.screen { display: none; position: absolute; inset: 0; background: black; z-index: 50; }
.screen.active { display: block; }
.placeholder {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 18px;
}
.back-btn {
  padding: 14px 20px;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 720px) {
  .title { font-size: 32px; top: 26%; }
  .pixel-button { font-size: 18px; padding: 14px 20px; }
  #tv-overlay { width: 180px; height: 130px; }
}
