:root {
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1d283a;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: rgba(15, 23, 42, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-main);
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero-small {
  margin-bottom: 1.25rem;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(249, 115, 22, 0.35), rgba(15,23,42,0.9));
  margin-bottom: 1rem;
}

.logo-wrapper.small {
  margin-bottom: 0.75rem;
}

.logo {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.85);
}

.logo.small {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.hero h1 {
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h2 {
  font-size: 1rem;
  margin: 0.25rem 0 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0 auto;
  max-width: 340px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px var(--border-subtle);
  backdrop-filter: blur(12px);
  margin-bottom: 1.75rem;
}

.card.game-card {
  margin-bottom: 1.25rem;
}

.card-text {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  box-shadow:
    0 10px 25px rgba(249, 115, 22, 0.45),
    0 0 0 1px rgba(248, 250, 252, 0.08);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.btn-secondary {
  margin-top: 0.5rem;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 6px 18px rgba(249, 115, 22, 0.3),
    0 0 0 1px rgba(248, 250, 252, 0.08);
  filter: brightness(0.98);
}

.btn-primary:hover::after {
  opacity: 1;
}

.disclaimer {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--accent);
}

.footer {
  margin-top: auto;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  padding: 0.75rem 0 0.25rem;
}

.footer p {
  margin: 0.1rem 0;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.slot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  padding: 0.4rem 0.2rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, #020617, #020617);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.35),
    0 4px 10px rgba(15, 23, 42, 0.9);
}

.slot-cell.highlight {
  box-shadow:
    inset 0 0 0 2px rgba(249, 115, 22, 0.9),
    0 0 12px rgba(249, 115, 22, 0.8);
}

.spin-result {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field input,
.field select {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.15rem;
}

.signup-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.signup-card {
  display: none;
}

.signup-card.visible {
  display: block;
}

@media (min-width: 640px) {
  .app {
    padding: 3rem 1.5rem 3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .card {
    padding: 1.75rem 1.5rem 2rem;
  }
}
