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

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --success: #22c55e;
  --success-dark: #16a34a;
  --danger: #ef4444;
  --background: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loader */
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Icons */
.geo-icon, .welcome-icon, .error-icon, .win-icon, .lose-icon, .claimed-icon, .played-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

/* Typography */
h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover, .btn-primary:active {
  background: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover, .btn-success:active {
  background: var(--success-dark);
}

.btn-large {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  min-width: 250px;
}

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

.btn.pressing {
  transform: scale(0.95);
  background: var(--success-dark);
}

/* Form */
.form-group {
  width: 100%;
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
}

#feedback-form {
  width: 100%;
}

/* Slot Machine */
.slots-container {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.slot {
  width: 80px;
  height: 100px;
  background: var(--card);
  border: 3px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.slot.spinning {
  animation: slotSpin 0.1s linear infinite;
}

@keyframes slotSpin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Prize Card */
.prize-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  width: 100%;
}

.prize-card h3 {
  font-size: 1.5rem;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.prize-code {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 2px;
}

.prize-expires {
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 0;
}

.claim-instructions {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Confetti */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Responsive */
@media (max-width: 400px) {
  .screen {
    padding: 1.5rem;
  }
  
  .slot {
    width: 70px;
    height: 90px;
    font-size: 2.5rem;
  }
  
  .btn-large {
    min-width: 200px;
    padding: 1rem 1.5rem;
  }
}
