:root {
  --bg: #0c1116;
  --bg-soft: #151c23;
  --accent: #f6d365;
  --accent-2: #fda085;
  --text: #f8f7f3;
  --muted: #9aa4b2;
  --danger: #ff6b6b;
  --card: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 10% 10%, #1f2a35 0%, #0c1116 45%, #090c10 100%);
  min-height: 100vh;
}

header {
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px 64px;
  align-items: center;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-size: 38px;
  margin: 0;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.spin-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.spin-btn.pulse {
  animation: pulseGlow 0.6s ease-in-out 2;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(246, 211, 101, 0.0);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(246, 211, 101, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(246, 211, 101, 0.0);
  }
}

.result {
  min-height: 160px;
  border-radius: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 12px;
}

.result h2 {
  margin: 0;
}

#resultText.result-body {
  white-space: pre-line;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.active {
  display: flex;
}

.modal-card {
  background: #111820;
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.preline {
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--text);
  color: #111820;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.status {
  font-size: 14px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 16px;
}

input[type="email"] {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0d1218;
  color: var(--text);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 12px;
  }

  .hero h1 {
    font-size: 30px;
  }
}

/* --- Lose copy styling (cute + sharp) --- */
.soft {
  color: #f5a9c5;               /* 淡いピンク */
  text-shadow: 0 0 18px rgba(245, 169, 197, 0.25);
}

.choice {
  color: rgba(248, 247, 243, 0.92); /* 既存textより少し柔らかく */
  line-height: 1.6;
}

.choice strong {
  color: #ffd27d;               /* ゴールド寄り */
  text-shadow: 0 0 20px rgba(246, 211, 101, 0.25);
}

/* CTA button: cute gradient but still premium */
.btn.cute {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111820;
  border: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn.cute:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.fullscreen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.center {
  text-align: center;
  gap: 16px;
}

.hint {
  margin-top: 8px;
  opacity: 0.7;
}
