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

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

* { cursor: none !important; }

#custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

#custom-cursor::before,
#custom-cursor::after {
  content: '';
  position: absolute;
  background: #f5c020;
}

#custom-cursor::before {
  width: 2px;
  height: 20px;
  left: 9px;
  top: 0;
}

#custom-cursor::after {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

#custom-cursor.clicking::before,
#custom-cursor.clicking::after {
  background: #e8219c;
}

#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;
}

.hero-announcement {
  display: inline-block;
  margin: 0.8rem auto 0.2rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #f5c020;
  color: #1a1a1a;
  font-weight: bold;
}

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

.hero-name {
  font-size: 3rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.hero-byline {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0.8;
}

/* SITE NAV */
:root { --nav-h: 64px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 600;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  text-decoration: none;
  text-align: left;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name {
  font-size: 1.3rem;
}

.nav-brand-byline {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.nav-tabs {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tabs a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-tabs a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-tabs a[aria-current="page"] {
  background: #e8219c;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: white;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }

  .nav-tabs {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    background: rgba(10, 10, 26, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.open .nav-tabs { display: flex; }

  .nav-tabs a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
}

/* 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;
}

/* BUBBLES */
.bubble-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}

#bubble-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 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;
}

/* EPISODE ARCHIVE */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

.episode-card {
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.episode-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

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

.episode-desc {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

.episode-btn {
  align-self: flex-start;
  margin: 0.4rem 0 0;
  background: #e8219c;
  color: white;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.celeb-tag {
  display: inline-block;
  background: #f5c020;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* 404 PAGE */
.not-cool-verdict {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  animation: glow-pulse 2s ease-in-out infinite;
}

.not-cool-divider {
  margin: 1.5rem auto 0.5rem;
  font-size: 0.85rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.shorts-embed-wrap {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

/* 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;
}

.fb-banner {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1877F2;
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  max-width: 90vw;
}

.fb-banner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.quiz-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.quiz-share-label {
  font-size: 0.85rem;
  opacity: 0.7;
  width: 100%;
  text-align: center;
}

.quiz-share-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

/* 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;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: 90%;
  max-width: 600px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #ff66c4;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 102, 196, 0.3);
  z-index: 9999;
  text-align: left;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  opacity: 0;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 600px) {
  .cookie-banner-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cookie-banner a {
  color: #ff66c4;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #ff9ed8;
}

.cookie-banner-buttons {
  flex-shrink: 0;
}

.cookie-accept-btn {
  background: #ff66c4;
  color: white !important;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem !important;
  margin: 0 !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 102, 196, 0.4);
}

.cookie-accept-btn:hover {
  background: #ffe6f5;
  color: #c0357a !important;
  transform: scale(1.05);
}


/* WATCH PAGE */
.watch-page {
  max-width: 960px;
}

.video-embed-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-embed-title {
  margin: 0.6rem 0 1.5rem;
}

.video-embed-title span {
  opacity: 0.7;
  font-size: 0.9rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.video-grid-shorts {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s, background 0.2s;
}

.video-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.video-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.video-card-short img {
  aspect-ratio: 9 / 16;
}

.video-card-title {
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-date {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* HOSTS PAGE */
.host-card {
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}

.host-card:hover {
  transform: translateY(-3px);
}

/* LIVE BANNER */
.live-banner {
  position: relative;
  z-index: 550;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(90deg, #3f1cbd, #1a1aee);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.live-banner[hidden] {
  display: none;
}

.live-banner.is-live {
  background: linear-gradient(90deg, #c4002b, #ff0033, #c4002b);
}

.live-banner-badge {
  font-weight: bold;
  letter-spacing: 0.06em;
}

.live-banner.is-live .live-banner-badge {
  animation: live-pulse 1.6s ease-in-out infinite;
}

.live-banner-text {
  opacity: 0.95;
}

.live-banner-cta {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.live-banner:hover .live-banner-cta {
  background: rgba(255, 255, 255, 0.35);
}

@keyframes live-pulse {
  50% { opacity: 0.55; }
}

/* ACCOUNTS */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.hero-actions[hidden] {
  display: none;
}

.hero-welcome {
  margin-top: 1.2rem;
  font-size: 1.25rem;
}

.btn-google {
  background: white;
  color: #1f1f1f;
}

.btn-google::before {
  content: "G";
  display: inline-block;
  margin-right: 0.55rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #4285f4;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nav-account {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Sound on/off + admin/fan view switch + clan quiz nudge (SiteNav) */
.nav-tabs { margin-left: auto; }

.nav-sound {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.15rem;
  cursor: pointer;
}

.nav-sound:hover { background: rgba(255, 255, 255, 0.22); }

@media (max-width: 1100px) {
  .nav-sound { margin-left: auto; }
}

.nav-view {
  display: block;
  padding: 0.5rem 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: none;
  color: white;
  font: inherit;
  cursor: pointer;
}

.nav-view.is-fan {
  border-style: solid;
  border-color: #f5c020;
  color: #f5c020;
}

.clan-nudge {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0.55rem 1rem;
  background: #f5c020;
  color: #1a1a1a;
  font-weight: bold;
  text-align: center;
}

.clan-nudge a { color: #3f1cbd; }

.nav-account.signed-in {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.12);
}

.account-page {
  max-width: 520px;
}

.account-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.2rem 0;
  text-align: left;
}

.account-form input[type="text"] {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 1.05rem;
}

.account-form input[type="text"]:focus {
  outline: none;
  border-color: #f5c020;
}

.account-form .btn {
  align-self: center;
  border: 0;
  font: inherit;
}

.form-error {
  margin: 0;
  color: #ffd1e8;
  font-weight: bold;
}

.form-ok {
  margin: 0;
  color: #b8ffcf;
  font-weight: bold;
}

.account-danger {
  margin-top: 2rem;
  text-align: left;
  opacity: 0.9;
}

.account-danger summary {
  text-align: center;
}

.btn-danger {
  background: #c4002b;
  color: white;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Notifications (account page) */
.account-notify {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.account-notify h3 {
  margin: 0 0 0.3rem;
}

.push-device {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.push-device .small-note {
  flex-basis: 100%;
  margin: 0;
}

.push-device .btn {
  border: 0;
  font: inherit;
}

.push-device [hidden] {
  display: none;
}

.board-notify-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: inherit;
  font-size: 0.9rem;
  opacity: 0.85;
}

.draft-banner {
  max-width: 700px;
  margin: 1rem auto 0;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: #f5c020;
  color: #1a1a1a;
  font-weight: bold;
}

/* ADMIN */
body.admin-mode,
body.admin-mode * {
  cursor: auto !important;
}

body.admin-mode a,
body.admin-mode button,
body.admin-mode select,
body.admin-mode label {
  cursor: pointer !important;
}

body.admin-mode input[type="text"],
body.admin-mode input:not([type]),
body.admin-mode textarea {
  cursor: text !important;
}

.admin-page {
  max-width: 900px;
  text-align: left;
}

.admin-page h2 {
  text-align: center;
}

.admin-crumbs {
  font-size: 0.9rem;
  opacity: 0.85;
}

.admin-crumbs a,
.admin-row-link {
  color: white;
}

.admin-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  text-align: center;
}

.admin-tile:hover {
  background: rgba(255, 255, 255, 0.25);
}

.admin-tile.is-soon {
  opacity: 0.55;
}

.admin-tile-icon {
  font-size: 2rem;
}

.admin-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-row-main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
  color: white;
  text-decoration: none;
}

.admin-row-main:hover strong {
  text-decoration: underline;
}

.admin-meta {
  flex-basis: 100%;
  font-size: 0.85rem;
  opacity: 0.8;
}

.admin-badge {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
}

.admin-badge.is-published {
  background: #1a8a5a;
}

.admin-badge.is-draft {
  background: #f5c020;
  color: #1a1a1a;
}

.admin-wide {
  max-width: 980px;
}

/* QUIZ BUILDER */
.qe {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qe-card {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(10, 10, 26, 0.35);
}

.qe-card h3 {
  margin: 0 0 0.3rem;
}

.qe-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  font-weight: bold;
}

.qe-hint {
  font-size: 0.85rem;
  font-weight: normal;
  opacity: 0.8;
}

.qe-warn {
  font-size: 0.85rem;
  font-weight: normal;
  color: #ffd27a;
}

.qe-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: normal;
  font-family: system-ui, sans-serif;
  background: white;
  color: #1a1a1a;
}

.qe-input:focus {
  outline: none;
  border-color: #f5c020;
}

.qe-title {
  font-size: 1.2rem;
}

.qe-slug {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: normal;
  font-size: 0.9rem;
}

.qe-slug span {
  white-space: nowrap;
  opacity: 0.85;
}

.qe-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qe-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.qe-result {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem;
  border-radius: 12px;
  border-left: 6px solid;
  background: rgba(255, 255, 255, 0.1);
}

.qe-emoji {
  width: 3.4rem;
  flex: none;
  text-align: center;
}

.qe-color {
  flex: none;
  width: 2.6rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
}

.qe-question {
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.qe-qhead {
  margin-bottom: 0.5rem;
}

.qe-option {
  margin: 0.35rem 0 0.35rem 1.6rem;
}

.qe-option.is-correct .qe-input {
  border-color: #3ddc84;
}

.qe-correct {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 2.6rem;
  color: #3ddc84;
  font-weight: bold;
}

.qe-select {
  flex: 0 0 15rem;
  width: auto;
}

.qe-select.is-missing {
  border-color: #ff6b8b;
}

.qe-icon {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
}

.qe-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.qe-icon:disabled,
.qe-link:disabled {
  opacity: 0.35;
}

.qe-link {
  margin: 0.3rem 0 0 1.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: #ffd27a;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
}

.qe-danger {
  color: #ff9db3;
}

.qe-icon.qe-danger:hover:not(:disabled) {
  background: #c4002b;
  color: white;
}

.qe-add {
  margin: 0.6rem 0 0;
  border: 0;
  font: inherit;
}

.qe-bar {
  /* sticky, not fixed: .listen's backdrop-filter would trap a fixed bar inside the card */
  position: sticky;
  bottom: 0;
  z-index: 700;
  margin: 0 -1rem;
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1.2rem;
  background: rgba(10, 10, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.qe-status.is-published {
  color: #3ddc84;
}

.qe-status.is-draft {
  color: #ffd27a;
}

.qe-errors {
  flex-basis: 100%;
  order: 3;
  margin: 0;
  padding-left: 1.2rem;
  color: #ffb3c6;
  font-size: 0.9rem;
}

.qe-notice {
  color: #b8ffcf;
}

.qe-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.qe-actions .btn {
  margin: 0;
  border: 0;
  font: inherit;
}

.qe-actions .qe-link {
  margin: 0 0 0 0.6rem;
}

.qe-publish {
  background: #3ddc84;
  color: #0a0a1a;
}

@media (max-width: 640px) {
  .qe-option {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .qe-select {
    flex: 1 1 100%;
  }
}

/* BLOG */
.blog-page {
  max-width: 760px;
  text-align: left;
}

.blog-page > h2 {
  text-align: center;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.blog-card {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.blog-card h3 {
  margin: 0.2rem 0 0.4rem;
}

.blog-card p {
  margin: 0;
  opacity: 0.9;
}

.blog-date {
  font-size: 0.85rem;
  opacity: 0.75;
}

.blog-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #ffd27a;
}

.blog-article .blog-date {
  text-align: center;
}

.blog-body {
  font-family: system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
  font-family: "Chelsea Market", system-ui;
  margin: 1.6rem 0 0.4rem;
}

.blog-body a {
  color: #ffd27a;
}

.blog-body img {
  max-width: 100%;
  border-radius: 12px;
}

.blog-body blockquote {
  margin: 1rem 0;
  padding: 0.4rem 1rem;
  border-left: 4px solid #e8219c;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 10px 10px 0;
}

.blog-body code {
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.blog-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 1.5rem 0;
}

.be-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.be-tabs button {
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font: inherit;
}

.be-tabs button.is-active {
  background: #e8219c;
}

.be-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.be-body {
  min-height: 22rem;
  line-height: 1.6;
  resize: vertical;
}

.be-preview {
  min-height: 22rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

/* CLANS */
.clan-pill {
  display: inline-block;
  margin: 0.4rem auto;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  color: white;
  font-weight: bold;
}

.clan-pill span {
  font-weight: normal;
  opacity: 0.9;
}

.account-page .clan-pill {
  display: table;
}

.sort-status {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.05rem;
}

.sort-status a {
  color: #ffd27a;
}

/* ADMIN PEOPLE */
.clan-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.clan-counts .clan-pill {
  margin: 0;
  font-size: 0.85rem;
}

.admin-search {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 0;
}

.admin-search .btn {
  margin: 0;
  border: 0;
  font: inherit;
}

.people-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.people-table th {
  text-align: left;
  padding: 0.4rem;
  opacity: 0.8;
  font-weight: normal;
}

.people-table td {
  padding: 0.45rem 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
}

.people-table .qe-input {
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.people-table tr.is-banned td {
  opacity: 0.6;
}

.admin-badge.is-banned {
  margin-left: 0.4rem;
  background: #c4002b;
}

.inline-form {
  margin: 0;
}

.inline-form .qe-link {
  margin: 0;
}

@media (max-width: 700px) {
  .people-table th:nth-child(4),
  .people-table td:nth-child(4) {
    display: none;
  }
}

/* BOARDS */
.boards-page {
  max-width: 760px;
  text-align: left;
}

.boards-page > h2,
.boards-page > p {
  text-align: center;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.board-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border-left: 6px solid var(--board);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
}

.board-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.board-emoji {
  font-size: 1.8rem;
}

.board-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.board-text span,
.board-count {
  font-size: 0.85rem;
  opacity: 0.8;
}

.board-compose {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}

.board-compose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.board-compose .btn {
  margin: 0;
  border: 0;
  font: inherit;
}

.board-signin {
  text-align: center;
}

.board-signin a {
  color: #ffd27a;
}

.board-posts {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.board-post {
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.board-post.is-hidden {
  opacity: 0.65;
  border: 1px dashed rgba(255, 255, 255, 0.5);
}

.board-empty {
  text-align: center;
  opacity: 0.8;
}

.board-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.board-post-head time {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.7;
}

.board-post-head a {
  color: #ffd27a;
}

.board-post-body {
  margin: 0.4rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: system-ui, sans-serif;
}

.board-hidden-note {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: #ffd27a;
}

.board-post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.board-post-actions form {
  margin: 0;
}

.board-post-actions .qe-link {
  margin: 0;
}

.board-post-actions .btn {
  margin: 0;
  border: 0;
  font: inherit;
  padding: 0.35rem 0.9rem;
}

.mod-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.role-badge {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: bold;
}

.role-badge.is-host {
  background: #f5c020;
  color: #1a1a1a;
}

.role-badge.is-moderator {
  background: #1a8a5a;
}

.flag-menu summary {
  color: #ff9db3;
  text-decoration: underline;
}

.flag-menu form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: rgba(10, 10, 26, 0.6);
}

.mod-item {
  list-style: none;
}

/* Clan boards: the clan's own look (boards/[board].astro) */
.boards-page.clan-board {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  padding-top: 0;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--c2) 35%, #0b0b24), #0b0b24 85%);
  border: 2px solid color-mix(in srgb, var(--c1) 70%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 40%, transparent), 0 0 60px color-mix(in srgb, var(--c1) 45%, transparent);
}

.clan-board-watermark {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  font-size: 18rem;
  line-height: 1;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
  user-select: none;
}

.clan-board > *:not(.clan-board-watermark) { position: relative; }

.clan-board-banner {
  position: relative;
  overflow: hidden;
  margin: 0 -1rem 1rem;
  padding: 1.8rem 1rem 1.2rem;
  border-radius: 20px 20px 0 0;
  background: var(--pattern), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.25);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* A slow shine across the banner */
.clan-board-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: clan-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes clan-shine {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.clan-board-crest {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3), 0 0 35px rgba(255, 255, 255, 0.45);
  font-size: 3.6rem;
  animation: clan-float 4s ease-in-out infinite;
}

.clan-board-crest.has-badge { background: none; }

.clan-board-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clan-board-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

.clan-board-name {
  margin: 0.15rem 0;
  font-family: var(--clan-font);
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  line-height: 1.1;
}

.clan-board-motto {
  margin: 0 0 0.8rem;
  font-family: var(--clan-font);
  font-size: 1.15rem;
}

.clan-board-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
}

.clan-board-stats li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  text-shadow: none;
}

.clan-board-home {
  color: white;
  font-size: 0.9rem;
}

.clan-board .board-post:not(.is-challenge) {
  background: color-mix(in srgb, var(--c1) 16%, rgba(255, 255, 255, 0.08));
  border-left: 4px solid var(--c1);
}

.clan-board .board-post.is-reply {
  background: color-mix(in srgb, var(--c2) 18%, rgba(255, 255, 255, 0.05));
  border-left-color: var(--c2);
}

.clan-board .board-replies {
  border-left-color: color-mix(in srgb, var(--c2) 60%, transparent);
}

.clan-board .board-compose .btn,
.clan-board .reply-menu .btn {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.clan-board .qe-input:focus {
  border-color: var(--c1);
}

@media (prefers-reduced-motion: reduce) {
  .clan-board-banner::after,
  .clan-board-crest { animation: none; }
}

/* Replies + daily challenges on the boards */
.board-replies {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
}

.board-post.is-reply {
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
}

.reply-menu {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.reply-menu summary {
  cursor: pointer;
  color: #ffd27a;
}

.reply-menu .board-compose {
  margin: 0.4rem 0 0;
}

.board-post.is-challenge {
  border: 2px solid #f5c020;
  background: linear-gradient(135deg, rgba(245, 192, 32, 0.22), rgba(232, 33, 156, 0.18));
}

.board-post.is-pinned {
  box-shadow: 0 0 18px rgba(245, 192, 32, 0.45);
}

.challenge-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f5c020;
}

.challenge-title {
  margin: 0.2rem 0 0.4rem;
}

.board-challenge-tag {
  font-size: 0.8rem;
  color: #f5c020;
}

.challenge-boards {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.3rem 1rem;
}

.challenge-boards legend {
  margin-bottom: 0.3rem;
}

/* Share button (components/ShareButton.astro) */
.share-wrap {
  position: relative;
  display: inline-block;
}

.share-btn {
  cursor: pointer;
}

.share-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 9rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: #0a0a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.share-menu a,
.share-menu button {
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: white;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.share-menu a:hover,
.share-menu button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.blog-share {
  margin: 0.5rem 0 1rem;
}

/* Points (account page + nav toast) */
.points-today {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.points-today li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.points-today li.done {
  background: #1a8a5a;
}

.point-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1000;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #f5c020;
  color: #1a1a1a;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 150%);
  transition: transform 0.4s ease;
}

.point-toast.show {
  transform: translate(-50%, 0);
}

.idea-box {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.idea-box .quiz-section-heading,
.idea-box > p {
  text-align: center;
}

/* QUIZ STATS */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(10, 10, 26, 0.35);
}

.stat-tile strong {
  font-size: 2rem;
}

.stat-tile span {
  opacity: 0.8;
}

.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  margin-top: 0.6rem;
}

.stat-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-bar span {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: #f5c020;
}

.stat-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.7;
}

.stat-question {
  margin-bottom: 1rem;
}

.stat-question p {
  margin: 0.4rem 0;
}

.stat-row {
  display: grid;
  grid-template-columns: minmax(8rem, 2fr) 3fr 5rem;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.stat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-meter {
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.stat-meter span {
  display: block;
  height: 100%;
}

.stat-num {
  text-align: right;
  opacity: 0.85;
}

/* NEWSLETTER */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.newsletter-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 480px;
  margin: 0.8rem auto 0;
}

.newsletter-inline .qe-input {
  flex: 1 1 16rem;
}

.newsletter-inline .btn {
  margin: 0;
  border: 0;
  font: inherit;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 1.05rem;
}

.nl-preview {
  background: white;
  color: #1a1a1a;
}

.nl-preview a {
  color: #3f1cbd;
}

/* CLAN LANDING PAGES */
.clan-home {
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.clan-welcome {
  margin: 0 auto 1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-weight: bold;
}

.clan-welcome a {
  color: var(--c1);
}

.clan-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: 24px;
  background: var(--pattern), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.25);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.clan-badge {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.25);
  font-size: 5.5rem;
  animation: clan-float 4s ease-in-out infinite;
}

.clan-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Until the clan badge artwork arrives (lib/clan-themes.ts badge) */
.clan-badge.is-coming,
.cq-reveal-emoji.is-coming {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin-left: auto;
  margin-right: auto;
  border: 3px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  padding: 0 1.2rem;
  box-sizing: border-box;
  filter: none;
}

.cq-reveal-emoji img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

@keyframes clan-float {
  50% { transform: translateY(-8px); }
}

.clan-era {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.clan-name {
  margin: 0.2rem 0;
  font-family: var(--clan-font);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.1;
}

.clan-motto {
  margin: 0.4rem 0 1rem;
  font-family: var(--clan-font);
  font-size: 1.3rem;
}

.clan-members {
  font-size: 1.1rem;
}

.clan-members strong {
  font-size: 1.5rem;
}

.clan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.clan-btn {
  background: white;
  color: #1a1a1a;
  text-shadow: none;
}

.clan-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.clan-panel {
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  border-top: 6px solid var(--c1);
  background: rgba(10, 10, 26, 0.55);
}

.clan-panel h2 {
  font-family: var(--clan-font);
  color: var(--c2);
  filter: brightness(1.4);
}

.clan-panel a {
  color: #ffd27a;
}

/* Clan board on the clan landing page */
.clan-chat {
  margin-top: 1rem;
  text-align: left;
}

.clan-chat h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.clan-chat-lock {
  font-family: inherit;
  font-size: 0.8rem;
  opacity: 0.75;
}

.clan-chat .board-post:not(.is-challenge) {
  background: color-mix(in srgb, var(--c1) 16%, rgba(255, 255, 255, 0.08));
  border-left: 4px solid var(--c1);
}

.clan-chat .board-compose .btn {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: white;
}

/* /clans/: at a glance + clan philosophy */
.clans-glance {
  margin-top: 1.5rem;
  text-align: left;
}

.clans-glance h3 { text-align: center; }

.clans-glance ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clans-glance li a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  border-left: 6px solid var(--c1);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 35%, transparent), color-mix(in srgb, var(--c2) 20%, transparent));
  color: white;
  text-decoration: none;
  transition: transform 0.15s;
}

.clans-glance li a:hover { transform: translateX(4px); }

.clans-philosophy {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232, 33, 156, 0.35), rgba(63, 28, 189, 0.45));
  border: 2px solid rgba(255, 255, 255, 0.35);
  text-align: center;
}

.clans-philosophy h3 { margin-top: 0; }

.clans-philosophy p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

/* Clan story (data/clan-lore.ts) on the clan landing pages */
.clan-motto-secondary {
  margin: -0.6rem 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.clan-colors {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.clan-swatch {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.clan-lore {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.clan-story {
  padding: 1.6rem clamp(1.2rem, 4vw, 2.6rem);
  border-radius: 24px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--c1) 30%, rgba(10, 10, 26, 0.85)), rgba(10, 10, 26, 0.85) 60%, color-mix(in srgb, var(--c2) 30%, rgba(10, 10, 26, 0.85)));
  border: 2px solid color-mix(in srgb, var(--c1) 55%, transparent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  font-size: 1.08rem;
  line-height: 1.65;
}

.clan-lore h2 {
  margin-top: 0;
  font-family: var(--clan-font);
  color: color-mix(in srgb, var(--c2) 45%, white);
}

.clan-story h2 {
  text-align: center;
  font-size: 2rem;
}

.clan-story-lead::first-letter {
  float: left;
  margin: 0.1rem 0.5rem 0 0;
  font-family: var(--clan-font);
  font-size: 3.6rem;
  line-height: 0.8;
  color: color-mix(in srgb, var(--c1) 55%, white);
}

.clan-story-lead {
  font-size: 1.2rem;
}

.clan-story-beat {
  margin: 1.2rem 0;
  font-family: var(--clan-font);
  font-size: 1.3rem;
  text-align: center;
}

.clan-lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.clan-values {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clan-values li {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.clan-values li:last-child { border-bottom: 0; }

.clan-reputation {
  padding: 1.6rem 1.4rem;
  border-radius: 24px;
  background: var(--pattern), linear-gradient(135deg, var(--c1), var(--c2));
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.clan-reputation h2 { color: white; }

.clan-reputation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clan-reputation li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-weight: bold;
  text-shadow: none;
}

.clan-rep-tag {
  margin: 1rem 0 0;
  font-family: var(--clan-font);
  font-size: 1.3rem;
}

.clan-sayings {
  padding: 0.5rem 0;
  text-align: center;
}

.clan-sayings blockquote {
  margin: 0.4rem auto;
  font-family: var(--clan-font);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.2;
  color: white;
  text-shadow: 0 0 18px color-mix(in srgb, var(--c1) 80%, transparent), 0 0 40px color-mix(in srgb, var(--c2) 60%, transparent);
}

.clan-philosophy p { line-height: 1.6; }

.clan-signoff {
  margin: 1.2rem -1.4rem -1.2rem;
  padding: 1rem 1.4rem;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-family: var(--clan-font);
  font-size: 1.15rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Fade-up on scroll (only when JS turned it on and motion is OK) */
.reveal-on .clan-lore .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on .clan-lore .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.clan-points strong {
  font-size: 2rem;
}

.clan-awards {
  padding-left: 1.2rem;
}

.clan-awards strong {
  color: #3ddc84;
}

/* CLANS INDEX + SCOREBOARD */
.clans-page {
  max-width: 900px;
}

.clan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.clan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: white;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.clan-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.clan-card-emoji {
  font-size: 3rem;
}

.clan-card-count {
  font-size: 0.85rem;
  opacity: 0.9;
}

.scoreboard {
  max-width: 760px;
}

.score-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.score-row {
  display: grid;
  grid-template-columns: 2rem 2rem minmax(7rem, 11rem) 1fr 3.5rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  text-align: left;
}

.score-row:hover {
  background: rgba(255, 255, 255, 0.2);
}

.score-rank {
  font-weight: bold;
  text-align: center;
}

.score-emoji {
  font-size: 1.4rem;
}

.score-bar {
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 0.6s;
}

.score-points {
  font-weight: bold;
  text-align: right;
}

@media (max-width: 560px) {
  .score-row {
    grid-template-columns: 1.6rem 1.8rem 1fr 3rem;
  }

  .score-bar {
    display: none;
  }
}

.points-form {
  margin: 1rem 0;
}

.points-form .btn {
  border: 0;
  font: inherit;
}

.quiz-back-btn {
  margin-top: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font: inherit;
  font-size: 0.9rem;
}

.quiz-back-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* CLAN SORTING QUIZ ("ceremony") */
.cq {
  --c1: #e8219c;
  --c2: #3f1cbd;
  --gold: #f5c020;
  position: relative;
  overflow: hidden;
  max-width: 820px;
  min-height: 560px;
  margin: 1rem auto 2rem;
  padding: 2.2rem 1.4rem 2rem;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(63, 28, 189, 0.55), transparent 65%), linear-gradient(180deg, #0b0b24, #160c33 70%, #2a0d3a);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 8px #0b0b24, 0 0 0 10px rgba(245, 192, 32, 0.6), 0 20px 60px rgba(0, 0, 0, 0.6);
  font-family: 'Cinzel', 'Chelsea Market', serif;
  isolation: isolate;
}

.cq.revealed {
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c1) 45%, #0b0b24), color-mix(in srgb, var(--c2) 55%, #0b0b24));
  transition: background 1s;
}

.cq-stars {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #ffe9a8, transparent),
    radial-gradient(2px 2px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 65%, #ffd1ef, transparent),
    radial-gradient(1.5px 1.5px at 10% 70%, #fff, transparent),
    radial-gradient(1px 1px at 55% 50%, #fff, transparent);
  background-size: 180px 180px;
  opacity: 0.8;
  transform: scale(calc(1 + var(--depth) * 0.07));
  transition: transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.cq-stars-far {
  background-size: 90px 90px;
  opacity: 0.4;
  transform: scale(calc(1 + var(--depth) * 0.03));
}

.cq-screen[hidden] {
  display: none !important;
}

.cq-start,
.cq-deciding,
.cq-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  text-align: center;
}

.cq-crest {
  position: relative;
  width: 210px;
  height: 210px;
  margin-bottom: 1rem;
  animation: cq-spin 40s linear infinite;
}

.cq-crest span.has-badge { background: none; overflow: hidden; }

.cq-crest span img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cq-crest span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -23px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c1) 60%, #0b0b24);
  box-shadow: 0 0 0 2px var(--gold);
  font-size: 1.5rem;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-88px) rotate(calc(var(--i) * -360deg / var(--n)));
}

/* the Snug logo in the middle of the ring (not the clan badges in the ring) */
.cq-crest > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(245, 192, 32, 0.5);
  animation: cq-spin 40s linear infinite reverse;
}

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

.cq-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.cq-title {
  margin: 0.4rem 0;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.15;
  background: linear-gradient(180deg, #fff6d6, var(--gold) 60%, #c98a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.cq-sub {
  max-width: 34rem;
  margin: 0.3rem auto;
  font-family: 'Chelsea Market', system-ui;
  opacity: 0.95;
}

.cq-small {
  font-size: 0.9rem;
  opacity: 0.75;
}

.cq-go {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.9rem 2.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe48a, var(--gold) 50%, #d99a00);
  color: #2a1500;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 0 0 3px #0b0b24, 0 0 0 5px var(--gold), 0 8px 30px rgba(245, 192, 32, 0.45);
  animation: cq-glow 2.4s ease-in-out infinite;
}

.cq-go:hover {
  transform: scale(1.05);
}

@keyframes cq-glow {
  50% { box-shadow: 0 0 0 3px #0b0b24, 0 0 0 5px var(--gold), 0 8px 45px rgba(245, 192, 32, 0.8); }
}

.cq-sound {
  margin-top: 1rem;
  font-family: 'Chelsea Market', system-ui;
  font-size: 0.9rem;
  opacity: 0.85;
}

.cq-play {
  position: relative;
  text-align: center;
}

.cq-path {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.cq-path li {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245, 192, 32, 0.5);
  transform: rotate(45deg);
  transition: background 0.4s, box-shadow 0.4s;
}

.cq-path li.done {
  background: var(--gold);
}

.cq-path li.here {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.cq-step {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.cq-card {
  padding: 1.6rem 1.2rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(245, 192, 32, 0.55);
  background: rgba(11, 11, 36, 0.72);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 4px rgba(11, 11, 36, 0.72), inset 0 0 0 5px rgba(245, 192, 32, 0.25);
}

.cq-q {
  margin: 0 0 1.2rem;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.cq-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.cq-opt {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(245, 192, 32, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-family: 'Chelsea Market', system-ui;
  font-size: 1rem;
  text-align: left;
  opacity: 0;
  animation: cq-opt-in 0.45s ease-out var(--d) forwards;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cq-opt:hover:not(:disabled) {
  background: rgba(232, 33, 156, 0.25);
  border-color: #ff66c4;
  transform: translateY(-2px);
}

.cq-opt.chosen {
  background: linear-gradient(90deg, #e8219c, #3f1cbd);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(232, 33, 156, 0.6);
}

/* Picture questions */
.cq-opts.cq-opts-pics {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.cq-opt.cq-opt-pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.4rem 0.6rem;
  text-align: center;
  font-size: 0.85rem;
}

.cq-opt-pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cq-opt-pic:hover:not(:disabled) img { transform: scale(1.05) rotate(-2deg); }

.cq-opt-pic.chosen img { filter: drop-shadow(0 0 14px rgba(245, 192, 32, 0.9)); }

@media (max-width: 560px) {
  .cq-opts.cq-opts-pics { grid-template-columns: repeat(2, 1fr); }
}

.qe-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes cq-opt-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* moving towards the result: new questions fly in from far away, answered ones fly past */
.cq-in-forward { animation: cq-in-forward 0.55s cubic-bezier(.2, .8, .2, 1) both; }
.cq-out-forward { animation: cq-out-forward 0.42s ease-in both; }
.cq-in-back { animation: cq-in-back 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.cq-out-back { animation: cq-out-back 0.42s ease-in both; }

@keyframes cq-in-forward {
  from { opacity: 0; transform: scale(0.7) translateY(30px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes cq-out-forward {
  to { opacity: 0; transform: scale(1.35); filter: blur(10px); }
}

@keyframes cq-in-back {
  from { opacity: 0; transform: scale(1.3); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes cq-out-back {
  to { opacity: 0; transform: scale(0.7) translateY(30px); filter: blur(10px); }
}

/* Clan quiz: the magic moment between questions */
.cq-magic {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(232, 33, 156, 0.35), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(63, 28, 189, 0.55), transparent 60%),
    radial-gradient(circle at 50% 42%, rgba(245, 192, 32, 0.18), transparent 40%),
    rgba(5, 4, 18, 0.96);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.cq-magic.on { opacity: 1; }

/* display:grid above would otherwise beat [hidden] and leave an invisible layer over the page */
.cq-magic[hidden] { display: none; }

.cq-magic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cq-magic-inner {
  position: relative;
  max-width: 34rem;
  padding: 0 1.5rem;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.6s cubic-bezier(.2, 1.3, .4, 1);
}

.cq-magic.on .cq-magic-inner { transform: none; }

/* a soft dark glow behind the orb and words, so scenery never gets in the way of reading */
.cq-magic-inner::before {
  content: '';
  position: absolute;
  inset: -2.5rem -4rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6, 4, 20, 0.78) 0%, rgba(6, 4, 20, 0.55) 45%, rgba(6, 4, 20, 0) 72%);
}

.cq-magic-orb {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 60% 70%, rgba(255, 102, 196, 0.75), transparent 55%),
    radial-gradient(circle at 40% 55%, rgba(127, 214, 255, 0.7), transparent 60%),
    radial-gradient(circle, #6b4bff, #1a0f4a 75%);
  box-shadow: 0 0 0 3px rgba(255, 233, 168, 0.6), 0 0 50px rgba(182, 155, 255, 0.9), 0 0 120px rgba(255, 102, 196, 0.55);
  animation: cq-orb-float 2.4s ease-in-out infinite;
}

/* a slow shimmer swirling inside the orb */
.cq-magic-orb span {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.35), transparent 30%, rgba(245, 192, 32, 0.35), transparent 60%);
  mix-blend-mode: screen;
  animation: cq-orb-spin 3s linear infinite;
}

@keyframes cq-orb-float {
  50% { transform: translateY(-8px) scale(1.04); }
}

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

.cq-magic-kicker {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f5c020;
}

.cq-magic-line {
  min-height: 3.2em;
  margin: 0.4rem 0 0;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  line-height: 1.35;
  color: white;
  text-shadow: 0 0 18px rgba(182, 155, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cq-continue {
  display: block;
  margin: 1.1rem auto 0;
  transition: opacity 0.2s, transform 0.2s;
}

.cq-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cq-back {
  margin-top: 1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(245, 192, 32, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #ffe9a8;
  font-family: 'Chelsea Market', system-ui;
}

.cq-back:hover {
  background: rgba(245, 192, 32, 0.12);
}

.cq-mute {
  position: absolute;
  top: -1.2rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(245, 192, 32, 0.5);
  border-radius: 50%;
  background: rgba(11, 11, 36, 0.8);
  font-size: 1.1rem;
}

.cq-wheel {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 50px rgba(245, 192, 32, 0.6);
  font-size: 4.5rem;
  animation: cq-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes cq-pulse {
  to { transform: scale(1.08); box-shadow: 0 0 0 3px var(--gold), 0 0 80px rgba(245, 192, 32, 0.9); }
}

.cq-reveal-emoji {
  font-size: 7rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: cq-reveal 0.9s cubic-bezier(.2, 1.4, .4, 1) both;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

@keyframes cq-reveal {
  from { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cq *,
  .cq-stars {
    animation: none !important;
    transition: none !important;
  }

  .cq-opt {
    opacity: 1;
  }
}

/* SHOP (merch: src/pages/shop, src/components/shop) */
.shop-page { max-width: 960px; }
.shop-bar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.shop-bar a { color: white; text-decoration: none; opacity: 0.9; }
.shop-bar a:hover { opacity: 1; text-decoration: underline; }
#shop-cart-count { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border-radius: 999px; background: #f5c020; color: #1a1a1a; font-weight: bold; }
#shop-cart-count[hidden] { display: none; }
.shop-empty { font-size: 1.15rem; margin: 2rem 0; }
.shop-empty a, .shop-info a, .shop-page p a { color: #ffe066; }
.shop-muted { opacity: 0.85; }
.shop-small { font-size: 0.85rem; opacity: 0.8; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.shop-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.8rem; border-radius: 16px; background: rgba(255,255,255,0.15); color: white; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.shop-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.25); }
.shop-card img, .shop-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: rgba(255,255,255,0.2); display: block; }
.shop-card.sold-out img { filter: grayscale(0.7); opacity: 0.7; }
.shop-product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; text-align: left; margin-top: 0.5rem; }
.shop-gallery { display: grid; gap: 0.6rem; }
.shop-gallery img { width: 100%; border-radius: 16px; display: block; }
.shop-subtitle { opacity: 0.85; margin-top: 0; }
.shop-price { font-size: 1.6rem; font-weight: bold; margin: 0.3rem 0; color: #f5c020; }
.shop-desc { line-height: 1.6; }
.shop-buy { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.shop-option { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.shop-option legend { font-weight: bold; margin-bottom: 0.3rem; }
.shop-chip { font: inherit; padding: 0.4rem 0.9rem; border-radius: 999px; border: 2px solid rgba(255,255,255,0.6); background: transparent; color: white; }
.shop-chip.on { background: white; color: #333; border-color: white; }
.shop-chip.out { opacity: 0.45; text-decoration: line-through; }
.shop-qty { display: flex; align-items: center; gap: 0.6rem; }
.shop-qty input { width: 4.5rem; font: inherit; padding: 0.4rem 0.6rem; border-radius: 10px; border: 0; }
.shop-page button.btn { border: 0; font: inherit; }
.shop-page .btn[disabled] { opacity: 0.55; transform: none; }
.shop-add { margin: 0.2rem 0; }
.shop-cart { text-align: left; margin: 1rem 0; }
.shop-line { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px dashed rgba(255,255,255,0.35); }
.shop-line img, .shop-line-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,0.2); display: block; }
.shop-line-name { display: flex; flex-direction: column; gap: 0.1rem; }
.shop-line-name span { font-size: 0.88rem; opacity: 0.85; }
.shop-line-qty { display: flex; align-items: center; gap: 0.5rem; }
.shop-line-qty button { font: inherit; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: white; color: #333; }
.shop-line-total { font-weight: bold; min-width: 4.5rem; text-align: right; }
.shop-totals { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; margin: 1rem 0; }
.shop-checkout { max-width: 560px; margin: 0 auto; text-align: left; }
.shop-checkout h3 { margin: 1rem 0 0.2rem; }
.shop-two, .shop-three { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
.shop-three { grid-template-columns: 2fr 1fr 1fr; }
.shop-two label, .shop-three label { display: flex; flex-direction: column; }
.shop-radio { display: flex; align-items: center; gap: 0.5rem; font-weight: normal !important; }
.shop-radio input { width: auto !important; }
.shop-stripe { background: white; border-radius: 16px; padding: 1rem; margin-bottom: 1rem; min-height: 120px; }
.shop-checkout .btn-ghost { margin-left: 0; }
.shop-info { text-align: left; margin-top: 1.5rem; background: rgba(0,0,0,0.15); border-radius: 14px; padding: 0.8rem 1rem; }
.shop-info summary { font-weight: bold; }
.shop-info ul { padding-left: 1.2rem; line-height: 1.6; }
@media (max-width: 700px) {
  .shop-product-grid { grid-template-columns: 1fr; }
  .shop-line { grid-template-columns: 56px 1fr auto; }
  .shop-line-total { grid-column: 2 / -1; text-align: left; }
  .shop-three { grid-template-columns: 1fr 1fr; }
  .shop-three label:first-child { grid-column: 1 / -1; }
}
