:root {
  --bg: #121212;
  --text: #ffffff;
  --muted: #cccccc;
  --accent: #ffcc00;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}

/* easter egg overlay */
#secretOverlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  background-image: url("https://i.imgur.com/n1oZF5i.png");
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: bottom right;
  transition: opacity 0.8s ease, transform 1s ease;
}
#secretOverlay.active { opacity: 1; }
#secretOverlay.zoom { transform: scale(1.8); }

.container-wrapper {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}

.container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 42px 48px;
  border-radius: 16px;
  width: 500px;
  max-width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* anim summon */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-block {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 25px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.top-block:hover {
  opacity: 0.8;
}

.pixel-image {
  width: 46px;
  height: 46px;
  image-rendering: pixelated;
}

.top-text p {
  margin: 0;
  font-size: 1.9rem;
  font-family: 'Pixelify Sans', sans-serif;
  color: var(--text);
}

.main-text h1 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.main-text p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 25px;
  line-height: 1.5;
}

input, button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  outline: none;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.25s ease;
}

input {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text);
}

input::placeholder {
  color: rgba(255,255,255,0.4);
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,204,0,0.15);
}

button {
  background: #212121;
  color: var(--text);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button:hover:not(:disabled) {
  background: var(--accent);
  color: #121212;
}

button:disabled {
  background: #333;
  color: #777;
  cursor: not-allowed;
}

#result {
  margin-top: 12px;
  font-size: 1.15rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#result.show-result {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 480px) {
  .container {
    padding: 32px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .container-wrapper {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
