/* GLOBAL */
.chelsea-market-regular {
  font-family: "Chelsea Market", system-ui;
  font-weight: 400;
  font-style: normal;
}

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

#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body {
  margin: 0;
  font-family: "Chelsea Market", system-ui;
  background: linear-gradient(180deg, #0a0a1a, #1a1aee, #e8219c);
  color: white;
  text-align: center;
  padding-bottom: 3rem;
}

h1, h2 {
  margin: 0.5rem 0;
}

p {
  line-height: 1.6;
}

/* HERO */
.hero {
  padding: 2rem 1rem 1rem;
}

.logo {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.tagline {
  max-width: 600px;
  margin: 0.5rem auto;
  font-size: 1.1rem;
}

/* HOME BUTTON */
.home-btn {
  display: inline-block;
  margin-bottom: 1.2rem;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
}

.home-btn:hover {
  background: rgba(255,255,255,0.35);
}

/* LISTEN SECTION */
.listen {
  background: rgba(255, 255, 255, 0.15);
  margin: 1rem auto;
  padding: 1.2rem 1rem;
  border-radius: 20px;
  max-width: 700px;
  backdrop-filter: blur(6px);
}

.player {
  margin: 1rem 0 2rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: white;
  color: #333;
  padding: 0.7rem 1.4rem;
  margin: 0.4rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  background: #ffe6f5;
}

.join-us {
  display: flex;
  margin: 0.0rem auto;
  padding: 0.0rem 0;
  max-width: 90%;
  height: 400px;
  width: auto;
  object-fit: contain;
}

/* HOST MODALS */
.host-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.host-modal.active {
  display: flex;
}

.host-modal-box {
  background: linear-gradient(135deg, #1a1aee, #e8219c);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255,255,255,0.35);
}

.about-facts {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-facts li {
  font-size: 1.1rem;
  background: rgba(255,255,255,0.15);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

/* HOST BUTTONS */
.host-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem auto 1rem;
}

.host-btn-juju {
  background: #c0357a;
  color: white;
}

.host-btn-bells {
  background: #4a2fc0;
  color: white;
}

/* ABOUT PAGES */
.about-page {
  max-width: 860px;
}

.about-sign {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.about-tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin: 0 auto 1.5rem;
  max-width: 500px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  text-align: left;
}

.about-card {
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.2rem;
  backdrop-filter: blur(4px);
}

.about-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.about-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.about-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* SHORT FORM */
.shortform {
  margin-top: 1rem;
}

/* FORM PAGE */
.form-page {
  background: rgba(255,255,255,0.15);
  margin: 2.5rem auto;
  padding: 2.5rem 1rem;
  border-radius: 20px;
  max-width: 700px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.contact-section h2 {
  margin-bottom: 0.25rem;
}

.contact-section p {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
}

.guest-form {
  display: grid;
  gap: 0.9rem;
  text-align: left;
}

.guest-form label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.guest-form input,
.guest-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  color: #333;
}

.guest-form textarea {
  resize: vertical;
}

.guest-form input:focus,
.guest-form textarea:focus {
  outline: 2px solid #ffe6f5;
  border-color: #9b7aff;
  box-shadow: 0 0 0 4px rgba(155, 122, 255, 0.18);
}

.guest-form .btn {
  width: 100%;
  text-align: center;
  color: white;
  background: #3f1cbd;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: 0.2s;
}

.guest-form .btn:hover {
  transform: scale(1.02);
  background: #5d39ef;
}

.small-note {
  color: rgba(255,255,255,0.95);
  font-size: 0.85rem;
  margin-top: 0.9rem;
}

/* FOOTER */
footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* QUIZ LAYOUT */
.quiz-wrap {
  max-width: 800px;
  text-align: left;
}

.quiz-description {
  opacity: 0.85;
  margin-top: 0;
  font-size: 1.05rem;
}

/* PROGRESS BAR */
.quiz-progress-track {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  height: 10px;
  margin: 1.2rem 0 0.4rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease;
}

.quiz-counter {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0 0 1.4rem;
}

/* QUIZ OPTION BUTTONS */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.9);
  color: #333;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.15s, transform 0.15s;
}

.quiz-option-btn:hover:not(:disabled) {
  background: #ffe6f5;
  transform: scale(1.02);
}

.quiz-option-btn.selected {
  background: #ff66c4;
  color: white;
  transform: scale(1.02);
}

.quiz-option-btn:disabled {
  cursor: default;
  opacity: 0.8;
}

/* RESULT CARD */
.quiz-result-card {
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: background 0.4s;
}

.quiz-result-emoji {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* FADE TRANSITION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* QUIZ GRID (index + homepage) */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.quiz-card {
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}

.quiz-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.25);
}

.quiz-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.quiz-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.quiz-card-type {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-card-cta {
  align-self: flex-start;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
}

.quiz-card-new {
  border: 2px solid #ff66c4;
  box-shadow: 0 0 12px #ff66c4, 0 0 24px rgba(255, 102, 196, 0.4);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px #ff66c4, 0 0 24px rgba(255, 102, 196, 0.4); }
  50% { box-shadow: 0 0 20px #ff66c4, 0 0 40px rgba(255, 102, 196, 0.6); }
}

.quiz-featured-wrap {
  position: relative;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-featured-wrap .quiz-new-badge {
  margin-bottom: 0.6rem;
}

.quiz-card-featured {
  width: 100%;
  max-width: 500px;
  text-align: center;
  align-items: center;
  font-size: 1.05rem;
}

.quiz-card-featured h3 {
  font-size: 1.4rem;
}

.quiz-new-badge {
  background: #ff66c4;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 20px;
}

.quiz-section-heading {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

/* ANSWER REVIEW (trivia results) */
.quiz-answer-review {
  margin: 1.5rem 0;
  text-align: left;
}

.quiz-review-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

#review-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.review-item {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid transparent;
}

.review-correct {
  border-left-color: #6fffa0;
}

.review-wrong {
  border-left-color: #ff7eb3;
}

.review-question {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.review-your,
.review-right {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.review-right strong {
  color: #6fffa0;
}

/* FACTS BOX (personality results) */
.quiz-result-facts {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-top: 1.2rem;
  text-align: left;
}

.quiz-facts-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 0.8rem;
}

.quiz-result-facts ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-result-facts li {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}
