* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease-in-out;
  padding: 20px;
}

.card {
  background: rgba(20, 20, 30, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hidden {
  display: none !important;
}

.site-title {
  font-size: 1.6rem;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.title-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.code-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.code-input {
  padding: 12px 14px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  outline: none;
  text-align: center;
  letter-spacing: 1px;
}

.btn {
  padding: 12px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #e94560;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #ff5c7a;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  margin-top: 24px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.error-message {
  color: #ffb3c0;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.result-title {
  font-size: 1.4rem;
  margin: 0 0 12px;
  font-weight: 700;
}

.result-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.9;
}

.downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.download-link {
  display: block;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.download-link:hover {
  background: rgba(255, 255, 255, 0.24);
}
