/* ===========================
   Philosopher (Serif)
=========================== */

@font-face {
  font-family: "Philosopher";
  src: url("../../assets/fonts/Philosopher-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Philosopher";
  src: url("../../assets/fonts/Philosopher-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Philosopher";
  src: url("../../assets/fonts/Philosopher-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Philosopher";
  src: url("../../assets/fonts/Philosopher-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

/* ===========================
   Mulish (Sans-serif)
=========================== */

@font-face {
  font-family: "Mulish";
  src: url("../../assets/fonts/Mulish-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
}

@font-face {
  font-family: "Mulish";
  src: url("../../assets/fonts/Mulish-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 200 900;
  font-style: italic;
}

/* ===========================
   Language Switcher
=========================== */

.language-switcher {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  padding: 6px 12px;
  border: 1px solid #8b4513;
  background: white;
  color: #8b4513;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Mulish", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #8b4513;
  color: white;
  transform: translateY(-2px);
}

.lang-btn.active {
  background: #8b4513;
  color: white;
  font-weight: 700;
}

@media (max-width: 768px) {
  .language-switcher {
    top: 10px;
    right: 10px;
    padding: 6px;
    gap: 4px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
}

body {
  font-family:
    "Mulish",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  color: #333;

  background-image: url("../../assets/images/parchment-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  background-color: #f4efe4;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  z-index: 0;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0) 80%
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 90%
    );

  background-size:
    300px 300px,
    250px 250px,
    220px 220px;
  animation: shimmerMove 18s linear infinite;
  opacity: 0.45;
}

h1,
h2,
h3,
h4,
.quiz-title,
#saint-name {
  font-family: "Philosopher", Georgia, serif;
}

blockquote {
  font-family: "Philosopher", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}

button,
.answer-button,
.start-button,
.rank-move {
  font-family: "Mulish", sans-serif;
  font-weight: 600;
}

#saint-name {
  letter-spacing: 0.03em;
}

h2 {
  font-weight: 700;
}

p {
  font-weight: 400;
  line-height: 1.65;
}

@keyframes shimmerMove {
  0% {
    background-position:
      0px 0px,
      200px 100px,
      -150px -120px;
  }
  50% {
    background-position:
      300px 400px,
      0px 200px,
      -300px 100px;
  }
  100% {
    background-position:
      0px 0px,
      200px 100px,
      -150px -120px;
  }
}

.progress-hidden #progress-bar {
  display: none;
}

.quiz-container {
  max-width: 800px;
  margin: 30px auto;
  margin-top: 40px;
  padding: 26px 22px;
  text-align: center;
  position: relative;

  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.quiz-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 120px;
  height: auto;
  opacity: 0.95;
}

.quiz-title {
  color: #800000;
  font-size: 2em;
  margin-bottom: 20px;
}

#question-container {
  margin-top: 20px;
  animation: fadeIn 0.5s ease-in-out;
}

.answer-button {
  display: block;
  margin: 12px auto;
  background: #9b0d24;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition:
    background 0.25s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}

.answer-button:hover {
  background: #7f0b1d;
}
.answer-button:active {
  transform: scale(0.97);
}

.answer-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.answer-button:disabled:hover {
  background: #9b0d24;
}

#question-container > div .answer-button {
  margin: 0;
  width: 100%;
}

.saint-bio {
  margin: 8px 0 14px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2f2f2f;
}

/* =========================
   GLOBAL PROGRESS BAR
========================= */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 8px;

  background: rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: #9b0d24;
  transition: width 0.4s ease;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================
   RESULT SCREEN
========================= */

#result-container {
  text-align: center;
  padding: 140px 40px 40px;
  animation: fadeIn 1s ease-in-out;
}

.result-card {
  max-width: 1120px;
  margin: 0 auto 60px;
  background: #fff;
  border-radius: 22px;
  padding: 30px 50px 30px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

#saint-name {
  font-size: 2.2rem;
  color: #7a1f1f;
  margin-top: 0;
  margin-bottom: 30px;
}

/* =========================
   TWO-COLUMN LAYOUT
========================= */

.two-column-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.left-column {
  width: 300px;
  flex-shrink: 0;
}

.right-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.chart-panel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px 20px 18px;
  background: linear-gradient(
    180deg,
    rgba(247, 244, 235, 0.75) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 18px;
  overflow: hidden;
}

.chart-panel-heading {
  margin: 0 72px 4px 0;
  max-width: none;
  text-align: left;
}

.chart-panel-subtitle {
  margin: 0;
  color: #6a5a55;
  font-size: 0.92rem;
  line-height: 1.45;
}

#saint-tag-chart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  max-width: none;
  cursor: zoom-in;
}

.tag-chart-shell {
  display: grid;
  gap: 16px;
}

.embedded-tag-chart {
  justify-items: center;
}

.radar-chart-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

#saint-tag-chart .radar-chart-svg {
  width: min(100%, 520px);
}

.tag-profile-trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(122, 31, 31, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tag-profile-trigger:hover {
  background: #ffffff;
  border-color: rgba(122, 31, 31, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.tag-profile-trigger-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.radar-grid {
  fill: none;
  stroke: rgba(122, 31, 31, 0.18);
  stroke-width: 1.3;
}

.radar-axis {
  stroke: rgba(122, 31, 31, 0.25);
  stroke-width: 1.1;
}

.radar-level-label {
  fill: #8a8a8a;
  font-family: "Mulish", sans-serif;
  font-size: 10px;
}

.radar-label {
  fill: #3b312f;
  font-family: "Mulish", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.radar-shape {
  fill: rgba(110, 186, 104, 0.35);
  stroke: rgba(72, 153, 68, 0.95);
  stroke-width: 3;
}

.radar-dot {
  fill: #489944;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.chart-empty {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

#saint-message {
  width: 100%;
  margin-top: 20px;
}

#saint-message .saint-bio,
#saint-message blockquote {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

#saint-message blockquote {
  margin-top: 16px;
}

#saint-image {
  width: 260px;
  max-width: 100%;
  border-radius: 20px;
  background: #7a1f1f;
}

.illustrator-credit {
  font-family: "Mulish", sans-serif;
  font-size: 10px;
  color: #999;
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

#all-saints-container .illustrator-credit {
  text-align: left;
  font-size: 12px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
    align-items: center;
  }

  .left-column {
    width: 100%;
  }

  #saint-tag-chart {
    padding: 8px 0 0;
    max-width: 100%;
  }

  .chart-panel {
    height: auto !important;
    padding: 20px 14px 16px;
  }

  .chart-panel-heading {
    max-width: 100%;
    margin-bottom: 6px;
  }

  .chart-panel-subtitle {
    font-size: 0.88rem;
  }

  #saint-tag-chart .radar-chart-svg {
    width: min(100%, 360px);
  }

  .tag-profile-trigger {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  #saint-image {
    display: block;
    margin: 0 auto;
  }
}

#saint-message a {
  color: #7a1f1f;
  text-decoration: underline;
}

/* =========================
   TAG PILLS
========================= */

#saint-tags {
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  background: #b8ad7f;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.tag-pill:hover {
  background: #9e956a;
  transform: translateY(-1px);
}

.tag-pill-label {
  font-weight: 700;
}

.tag-pill-scored {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
}

.tag-pill-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(36, 24, 24, 0.55);
}

.tag-profile-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.tag-profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(122, 31, 31, 0.08);
  color: #7a1f1f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.tag-profile-copy {
  max-width: 680px;
  margin: 0 auto 18px;
  color: #5c5c5c;
}

#tag-profile-modal-chart {
  max-width: 700px;
  margin: 0 auto 18px;
}

.modal-tag-chart .radar-chart-svg {
  max-width: 100%;
}

.tag-profile-modal-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-open {
  overflow: hidden;
}

/* =========================
   PRAYER BLOCK
========================= */

.saint-prayer {
  clear: both;
  margin: 40px 0;
  padding: 30px 36px;
  background: #f3f1e8;
  border-radius: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2f2f2f;
  position: relative;
  text-align: left;
}

.prayer-title {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 14px;
}

/* Further readings (replaces the button) */
.further-readings {
  clear: both;
  margin: 14px 0 0;
  text-align: left;
}

.further-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
  /* Font is already Philosopher via your global h4 rule */
}

.further-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.further-list li {
  margin: 6px 0;
}

.further-list a {
  color: #7a1f1f;
  text-decoration: underline;
  word-break: break-word;
}

/* =========================
   POST–READING SECTION
   (everything below Further readings)
========================= */

.post-reading-section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 50px 40px 40px;
  border-radius: 22px;
  border: 2px solid #b8ad7f;
  position: relative;
  text-align: center;
  background: #fff;
}

/* =========================
   RELATED SAINTS (Figma-like)
========================= */

.post-reading-section {
  margin-top: 50px;
  padding: 50px 40px 40px;
  border-radius: 22px;
  border: 2px solid #b8ad7f;
  position: relative;
  text-align: center;
  background: #fff;
}

.related-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);

  background: #b8ad7f;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;

  border: 6px solid #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 10px;
  justify-items: center;
}

.related-card {
  text-align: center;
}

.related-card a {
  color: inherit;
  text-decoration: none;
}

.related-card a:hover {
  text-decoration: underline;
  color: #800000;
}

.related-card img {
  width: 180px;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 0 auto 12px;
  background: #ddd;
}

.related-card .name {
  font-size: 1.05rem;
  margin-top: 4px;
  color: #2b2b2b;
}

.related-hint {
  color: #666;
  font-size: 0.95rem;
  margin-top: 8px;
  text-align: center;
}

/* =========================
   RETAKE BUTTON (CTA)
========================= */

.retake-wrap {
  padding: 40px 0 60px;
  text-align: center;
}

#retake-button {
  display: inline-block;
  margin: 0;
  background: #9b0d24;
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 1.2rem;
  border-radius: 14px;
  cursor: pointer;
}

#retake-button:hover,
#meet-all-saints-button:hover,
#retake-from-gallery:hover {
  background: #7f0b1d;
}

#meet-all-saints-button,
#retake-from-gallery {
  display: inline-block;
  margin: 0 10px;
  background: #9b0d24;
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 1.2rem;
  border-radius: 14px;
  cursor: pointer;
}

/* =========================
   ALL SAINTS GALLERY
========================= */

#all-saints-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
}

#all-saints-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  color: #7a1f1f;
  margin-bottom: 40px;
}

.all-saints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.all-saints-grid .saint-card {
  text-align: center;
  cursor: pointer;
}

.all-saints-grid .saint-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 0 auto 12px;
  background: #ddd;
  transition: transform 0.2s ease;
}

.all-saints-grid .saint-card:hover img {
  transform: scale(1.03);
}

.all-saints-grid .saint-card .name {
  font-size: 1.1rem;
  color: #2b2b2b;
  margin-top: 8px;
}

.all-saints-grid .saint-card:hover .name {
  color: #800000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .all-saints-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .all-saints-grid .saint-card img {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .all-saints-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .all-saints-grid .saint-card img {
    max-width: 140px;
  }

  .retake-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px 50px;
  }

  .retake-wrap button,
  .retake-wrap #retake-button,
  .retake-wrap #meet-all-saints-button,
  .retake-wrap #retake-from-gallery {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0;
    padding: 14px 24px;
    font-size: 1.1rem;
  }
}

/* =========================
   RANKING UI
========================= */

.ranking-item {
  margin-bottom: 12px;
}

.rank-select {
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  overflow: visible;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.rank-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  position: relative;
  transition:
    transform 0.15s ease-out,
    background 0.2s ease;
  will-change: transform;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.rank-item:hover:not(.dragging) {
  background: #f5f5f5;
}

.rank-item.dragging {
  opacity: 0 !important;
  pointer-events: none;
  transition: none;
}

.rank-item.placeholder {
  background: transparent;
  border: 3px dashed #d91e63;
  opacity: 1;
  transform: scale(1);
  cursor: grabbing;
  padding: 14px 16px;
  box-sizing: border-box;
  transition: none;
}

.rank-item-dragging-overlay {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  cursor: grabbing;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ccc;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rank-item-dragging-overlay .rank-handle {
  cursor: grabbing;
}

.rank-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.rank-move {
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.rank-move:active {
  transform: scale(0.98);
}

.rank-handle {
  cursor: grab;
  user-select: none;
  opacity: 0.7;
  font-size: 1.2rem;
  pointer-events: auto;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.rank-handle:active {
  cursor: grabbing;
  opacity: 1;
}

@media (max-width: 768px) {
  .rank-handle {
    font-size: 1.4rem;
    padding: 6px 8px;
    min-width: 32px;
    min-height: 32px;
  }
}

.rank-label {
  flex: 1;
  user-select: none;
  pointer-events: none;
  text-align: center;

  white-space: normal;
  overflow: visible;
  word-break: break-word;

  min-width: 0;
}

/* =========================
   START SCREEN (New layout)
========================= */

.start-screen {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.start-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#start-screen {
  overflow-x: auto;
}

.start-copy {
  padding: clamp(24px, 4vw, 60px);
  align-self: center;
  text-align: left;
  max-height: 100vh;
  overflow-y: auto;

  background: none;
  backdrop-filter: none;
}

.start-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.start-logo {
  max-width: clamp(80px, 18vw, 160px);
  height: auto;
}

.start-name {
  color: #7a1f1f;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.start-subtitle {
  color: #2f2f2f;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  margin: 0 0 14px;
}

.start-description {
  max-width: 580px;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 20px;
  color: #2f2f2f;
}

/* Version toggle (Senior / Young) */
.version-toggle {
  display: inline-flex;
  border: 2px solid #9b0d24;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 20px;
}

.version-btn {
  background: transparent;
  color: #9b0d24;
  border: none;
  padding: 8px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.version-btn.active {
  background: #9b0d24;
  color: #fff;
}

.version-btn:hover:not(.active) {
  background: rgba(155, 13, 36, 0.1);
}

.start-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.start-cta {
  background: #9b0d24;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.15s ease;
}

.start-cta:hover {
  background: #7f0b1d;
}
.start-cta:active {
  transform: scale(0.98);
}

.start-art {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.start-mosaic {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 75%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.6;
}

.mosaic-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mosaic-tile {
  width: 100%;
  height: 100%;
  background-image: url("../../assets/images/saints/webp/start-mosaic.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@keyframes mosaicScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

.start-people {
  position: absolute;
  right: -4vw;
  bottom: 0;

  height: clamp(60vh, 70vw, 92vh);
  width: auto;
  max-width: none;

  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 900px) {
  .start-hero {
    grid-template-columns: 1fr;
  }

  .start-art {
    min-height: 55vh;
  }

  .start-people {
    right: -10%;
    height: 82vh;
    max-height: 82vh;
  }

  .start-mosaic {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .start-copy {
    padding: clamp(16px, 3vw, 28px);
  }

  .start-brand {
    gap: 10px;
    margin-bottom: 10px;
  }

  .start-logo {
    max-width: clamp(60px, 16vw, 100px);
  }

  .start-name {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin: 6px 0 10px;
  }

  .start-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    margin: 0 0 10px;
  }

  .start-description {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 16px;
  }

  .start-actions {
    flex-direction: column;
    gap: 8px;
  }

  .start-cta {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .start-art {
    min-height: 40vh;
  }
}

#question-container h2 {
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.global-logo {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 120px;
  height: auto;
  z-index: 1000;
  opacity: 0.95;
  display: none;
}

.quiz-container:not(.hidden) ~ .global-logo,
.quiz-container:not(.hidden) + .global-logo {
  display: block;
}

@media (max-width: 768px) {
  .global-logo {
    width: 70px;
    top: 12px;
    left: 18px;
  }

  .quiz-container {
    max-width: 94vw;
    margin: 90px auto 16px;
    padding: 18px 14px;
    position: relative;

    background: #fff;
    border-radius: 18px;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.12),
      inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  .quiz-logo {
    width: 95px;
    top: 14px;
    left: 14px;
  }

  .start-description {
    max-width: 92vw;
    font-size: 0.9rem;
  }
  .further-readings {
    margin-top: 18px;
  }

  .answer-button {
    display: block;
    margin: 12px auto;
    background: #9b0d24;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1.05rem;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition:
      background 0.25s ease,
      transform 0.15s ease,
      opacity 0.2s ease;
  }

  .answer-button:hover {
    background: #7f0b1d;
  }
  .answer-button:active {
    transform: scale(0.97);
  }

  .answer-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #9b0d24;
  }
  .answer-button:disabled:hover {
    background: #9b0d24;
  }

  .rank-item {
    padding: 14px 12px;
    gap: 10px;
    align-items: flex-start;
  }

  .rank-handle {
    font-size: 1.4rem;
    padding: 4px 6px;
  }

  .rank-label {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  #result-container {
    padding: 110px 18px 18px;
  }

  .result-card {
    padding: 22px 16px 26px;
    border-radius: 18px;
  }

  #saint-image {
    float: none;
    display: block;
    width: min(320px, 85vw);
    margin: 0 auto 14px;
    border-radius: 18px;
  }

  #saint-name {
    font-size: 1.8rem;
  }

  .saint-prayer {
    padding: 18px 16px;
    margin: 18px 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .related-card img {
    width: min(220px, 70vw);
  }

  .related-title {
    font-size: 1rem;
    padding: 10px 18px;
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }
}
