/* Reset + base typography + cosmos background + iPad polish */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  font-family: 'Fredoka', sans-serif;
  background: #0a0e27;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.cosmos {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, #2a1a5e 0%, #0a0e27 50%, #050714 100%);
  z-index: -2;
}

.cosmos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 60% 70%, #fff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent),
    radial-gradient(1px 1px at 80% 10%, #fff, transparent),
    radial-gradient(2px 2px at 90% 60%, #ffd700, transparent),
    radial-gradient(1px 1px at 33% 80%, #ff66c4, transparent);
  background-size: 200px 200px;
  background-repeat: repeat;
  animation: tw 8s ease-in-out infinite;
}

.nebula {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.nebula.pink {
  background: rgba(255, 102, 196, .3);
  top: -200px;
  left: -100px;
}

.nebula.blue {
  background: rgba(102, 204, 255, .25);
  bottom: -200px;
  right: -100px;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 20px;
  animation: fi .5s ease;
  max-width: 800px;
  margin: 0 auto;
}

.screen.active {
  display: block;
}

#loginScreen {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#loginScreen.active {
  display: flex;
}
