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

body {
  font-family: "Press Start 2P", monospace;
  background: #0d0d1a;
  background-image: radial-gradient(ellipse at top, #1a1a3e, #0d0d1a);
  min-height: 100vh;
  color: #fff;
  padding: 20px;
}

.page-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* header */

header {
  text-align: center;
  padding: 40px 0 30px;
}

header h1 {
  font-size: 2rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.tagline {
  font-size: 0.5rem;
  color: #aaa;
  line-height: 1.8;
}

/* main card */

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: #1a1a3e;
  border: 3px solid #4444aa;
  border-radius: 10px;
  padding: 30px;
}

.instructions {
  font-size: 0.55rem;
  line-height: 2;
  color: #ccc;
  margin-bottom: 24px;
  text-align: center;
}

.instructions strong {
  color: #ffd700;
}

/* form */

.row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.55rem;
  color: #ffd700;
  letter-spacing: 1px;
}

input[type="text"] {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  padding: 12px;
  background: #0d0d1a;
  border: 2px solid #4444aa;
  border-radius: 6px;
  color: #fff;
  outline: none;
}

input[type="text"]:focus {
  border-color: #ffd700;
}

input::placeholder {
  color: #555;
}

/* buttons */

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #cc0066, #990044);
  color: #fff;
  box-shadow: 0 4px 0 #660033;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #dd0077, #aa0055);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #660033;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #660033;
}

.btn-secondary {
  background: linear-gradient(180deg, #2255cc, #1133aa);
  color: #fff;
  box-shadow: 0 4px 0 #0a1f77;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #3366dd, #2244bb);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0a1f77;
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0a1f77;
}

/* results */

.result-card {
  background: #0a1a0a;
  border: 3px solid #00aa44;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 170, 68, 0.15);
}

.result-label {
  font-size: 0.5rem;
  color: #00aa44;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.story-text {
  font-size: 0.75rem;
  color: #fff;
  line-height: 2.2;
  text-align: left;
}

.story-text .word {
  color: #ffd700;
  text-decoration: underline;
}

/* footer */

footer {
  text-align: center;
  padding: 30px 0 20px;
}

footer p {
  font-size: 0.4rem;
  color: #555;
}

/* responsive */

@media (max-width: 480px) {
  header h1 { font-size: 1.2rem; }
  .btn { font-size: 0.55rem; padding: 12px 18px; }
  .story-text { font-size: 0.6rem; }
}
