* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  cursor: default;
  background: #080808;
}

#screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 5%, rgba(255, 190, 80, 0.05), transparent 18%),
              linear-gradient(180deg, #080808 0%, #f7f7f7 100%);
  overflow: hidden;
}

#screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 80px rgba(255, 155, 0, 0.08);
  pointer-events: none;
}

#power-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid rgba(255, 191, 0, 0.25);
  background: #ffd75f;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}


#power-button.power-on {
  background: rgba(65, 125, 0, 0.402);
}

#text-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

#crt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#mobile-swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.3;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  opacity: 0.88;
  pointer-events: none;
  z-index: 15;
  display: none;
}

canvas {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  display: block;
}

::selection {
  background: transparent;
}

#hidden-input {
  position: fixed;
  left: 8px;
  bottom: 8px;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: auto;
}

@media (max-width: 900px) {
  #mobile-swipe-hint {
    display: block;
  }
}
