html,
body {
  margin: 0;
  padding: 0;
  overflow-y: hidden;
}

html {
  height: 100%;
}

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

body {
  background: #fa95cc;
  font-family: 'Courier New', monospace;
  text-align: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.container {
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === GIF BESAR & RESPONSIF === */
.sanrio-gif {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* === TYPING TEXT BESAR & RAPI === */
.typing-text {
  font-size: clamp(20px, 9vw, 42px);
  font-weight: bold;
  color: #000000;
  letter-spacing: 2px;
  margin: 20px 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  opacity: 0;
  line-height: 1.3;
  margin-top: -15px;
  text-align: center;
  padding: 0 15px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.typing-text.show {
  opacity: 1;
  animation: typing 3s steps(35) forwards;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* === BUTTON PIXEL === */
.pixel-btn {
  margin-top: 25px;
  padding: 12px 28px;
  background: #fa57ae;
  color: rgb(0, 0, 0);
  border: 6px solid #f782bc;
  border-radius: 10px;
  font: bold 16px 'Courier New';
  cursor: pointer;
  box-shadow: 0 0 0 2px #000000;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
  image-rendering: pixelated;
}

.pixel-btn.visible {
  opacity: 1;
  transform: scale(1);
  animation: pop 0.5s ease-out;
}

.pixel-btn:hover {
  background: #ff53b7;
  transform: scale(1.1);
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .sanrio-gif {
    max-width: 400px;
    border-width: 7px;
  }

  .typing-text {
    font-size: 17px;
    letter-spacing: 1.5px;
  }

  .pixel-btn {
    padding: 11px 26px;
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .sanrio-gif {
    max-width: 420px;
  }
}