@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&display=swap');

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

body {
  background: linear-gradient(135deg, #2a0a0a 0%, #4a1111 30%, #2a0a0a 60%, #1a0505 100%);
  color: #f0e6d3;
  font-family: Georgia, 'Times New Roman', serif;
  min-height: 100vh;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

/* Stars */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

.star {
  position: absolute;
  color: #ffd700;
  animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 15px; left: 8%; font-size: 10px; animation-delay: 0s; }
.star:nth-child(2) { top: 35px; right: 12%; font-size: 8px; animation-delay: 1s; }
.star:nth-child(3) { top: 8px; right: 30%; font-size: 12px; animation-delay: 0.5s; }
.star:nth-child(4) { top: 55px; left: 25%; font-size: 6px; animation-delay: 1.5s; }
.star:nth-child(5) { top: 20px; left: 50%; font-size: 9px; animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Icon */
.crest {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ae0001, #740001);
  border: 2px solid #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  margin: 0 auto 0.8rem;
}

/* Header */
.subtitle-text {
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: #d4a843;
  text-transform: uppercase;
}

.main-title {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: #ffd700;
  margin: 0.5rem 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 40px rgba(174, 0, 1, 0.3);
  line-height: 1.2;
}

.invite-text {
  font-size: 1rem;
  color: #d4a843;
}

/* Divider */
.divider {
  margin: 1.5rem auto;
  width: 250px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ae0001 20%, #ffd700 50%, #ae0001 80%, transparent);
  border-radius: 2px;
}

/* Cards */
.info-card {
  background: rgba(174, 0, 1, 0.1);
  border: 1px solid rgba(174, 0, 1, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  box-shadow: inset 0 0 30px rgba(174, 0, 1, 0.05);
}

.info-label {
  color: #d4a843;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-value {
  font-size: 1.1rem;
  margin-top: 0.3rem;
}

.info-detail {
  color: #d4a843;
}

.info-separator {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ae0001, transparent);
  margin: 1rem auto;
}

/* Form */
.form-card {
  background: rgba(174, 0, 1, 0.08);
  border: 1px solid rgba(174, 0, 1, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  text-align: left;
}

.form-title {
  text-align: center;
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Type toggle */
.type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.type-btn {
  flex: 1;
  padding: 0.7rem 0.5rem;
  background: rgba(174, 0, 1, 0.05);
  border: 1px solid rgba(174, 0, 1, 0.2);
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  cursor: pointer;
  color: #a89060;
  font-family: Georgia, serif;
  transition: all 0.3s ease;
}

.type-btn.active {
  background: rgba(174, 0, 1, 0.3);
  border-color: #ae0001;
  color: #f0e6d3;
  box-shadow: 0 0 10px rgba(174, 0, 1, 0.2);
}

/* Form fields */
.form-group {
  margin-bottom: 0.8rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: #d4a843;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(174, 0, 1, 0.25);
  border-radius: 6px;
  color: #f0e6d3;
  font-size: 0.9rem;
  font-family: Georgia, serif;
  outline: none;
  transition: border-color 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6a5040;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #ffd700;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Counters */
.counters {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.counter {
  text-align: center;
}

.counter-label {
  font-size: 0.7rem;
  color: #d4a843;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.counter-btn {
  width: 32px;
  height: 32px;
  background: rgba(174, 0, 1, 0.15);
  border: 1px solid rgba(174, 0, 1, 0.3);
  border-radius: 6px;
  color: #f0e6d3;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  transition: all 0.2s;
}

.counter-btn:hover {
  background: rgba(174, 0, 1, 0.3);
  border-color: #ae0001;
}

.counter-value {
  font-size: 1.3rem;
  min-width: 24px;
}

/* Family section */
.family-fields {
  display: none;
}

.family-fields.visible {
  display: block;
}

/* Submit */
.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #ae0001, #d4163c);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  font-family: Georgia, serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(174, 0, 1, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  box-shadow: 0 4px 20px rgba(174, 0, 1, 0.5);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success message */
.success-message {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.success-message.visible {
  display: block;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-title {
  font-family: 'Cinzel Decorative', Georgia, serif;
  color: #ffd700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.success-text {
  color: #d4a843;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #6a3030;
}

/* Splash screen */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0505 0%, #2a0a0a 40%, #4a1111 60%, #2a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.splash-content {
  text-align: center;
  animation: fadeIn 1.5s ease-in;
}

.splash-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.splash-title {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  padding: 0 1.5rem;
  line-height: 1.3;
}

.splash-divider {
  margin: 1.2rem auto;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ae0001 20%, #ffd700 50%, #ae0001 80%, transparent);
}

.splash-text {
  color: #d4a843;
  font-size: 1rem;
  letter-spacing: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.splash.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Music toggle */
.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(174, 0, 1, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.music-toggle:hover {
  background: rgba(174, 0, 1, 0.5);
}

/* Responsive */
@media (max-width: 400px) {
  .main-title {
    font-size: 2rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .type-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.3rem;
  }
}
