
/* ==============================
   1. GENERAL
============================== */

/* ==============================
   FONTS
============================== */

@font-face {
  font-family: "Shantell Sans";
  src: url("assets/fonts/ShantellSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}


@font-face {
  font-family: "Shantell Sans";
  src: url("assets/fonts/ShantellSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}



/* ==============================
   COMIC RELIEF FONTS
============================== */


@font-face {
  font-family: "Comic Relief";
  src: url("../assets/fonts/ComicRelief-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Relief";
  src: url("../assets/fonts/ComicRelief-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {
  

font-family: "Comic Relief", Arial, sans-serif;


  color: #332d35;
  background: #f8eee5;
}

* {
  box-sizing: border-box;
}

button {
  

font-family: "Comic Relief", Arial, sans-serif;


  font-weight: 500;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 5%, #ffe1d7, transparent 35%),
    radial-gradient(circle at 90% 80%, #e1ebdc, transparent 35%),
    #f8eee5;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

/* ==============================
   2. HEADER
============================== */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand {
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 800;
}




.brand-link {
  font-family: "Shantell Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: #332d35;
  text-decoration: none;
  cursor: pointer;
}

.brand-link:link,
.brand-link:visited,
.brand-link:hover,
.brand-link:active {
  color: #332d35;
}

.brand-link:hover {
  text-decoration: underline;
}

.brand-link:focus-visible {
  color: #332d35;
  outline: 2px solid #8b605c;
  outline-offset: 4px;
  border-radius: 3px;
}




.pill {
  background: #ffffff88;
  border: 1px solid #d9c8c5;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12px;
}

/* ==============================
   3. MAIN CONTENT
============================== */

.panel {
  background: #fffdf9;
  border: 1px solid #eaded7;
  border-radius: 25px;
  padding: clamp(22px, 5vw, 38px);
  box-shadow: 0 12px 40px #65482b0e;
}

/* Replace with Canva images later */

.art {
  border: 2px dashed #d6c8c1;
  border-radius: 19px;
  background: #faf3ed;
  color: #84736c;

  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;

  padding: 22px;
  font-size: 13px;
  margin: 18px 0;
}

.art:has(img) {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.story-image {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: contain;
  border-radius: 18px;
  margin: 18px 0;
}

.cover-image {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: contain;
  border-radius: 18px;
  margin: 18px 0;
}

.question-heading {
  margin-top: 35px;
  margin-bottom: 18px;
}
/* ==============================
   4. TYPOGRAPHY
============================== */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 800;
  color: #977a78;
}

.chapter-info {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  font-weight: 800;
  color: #977a78;
}

h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.12;
  margin: 12px 0;
}

h2 {
  font-size: clamp(24px, 5vw, 32px);
  margin: 10px 0 16px;
}

h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

p {
  line-height: 1.75;
  white-space: normal;
}

.intro-text {
  white-space: pre-line;
}

.story {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  white-space: normal;
  margin-bottom: 30px;
}

.narration {
  margin: 10px 0;
  font-family: "Shantell Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.dialogue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}

.dialogue-avatar {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

.dialogue-text {
  flex: 1;
  min-width: 0;
  font-family: "Shantell Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.muted {
  color: #746a70;
}

.small {
  font-size: 13px;
}

/* ==============================
   5. CHOICE BUTTONS
============================== */


.choices {
  display: grid;
  gap: 11px;
  margin-top: 35px;
  margin-bottom: 45px;
}


.choice {
  

font-family: "Comic Relief", Arial, sans-serif;


  font-weight: 500;
  text-align: left;
  background: white;
  border: 1.5px solid #e8dcd5;
  border-radius: 15px;
  padding: 17px;
  cursor: pointer;
  color: #332d35;
  transition: .15s;
}

.choice:hover,
.choice:focus-visible {
  border-color: #c48d83;
  background: #fff4ef;
  transform: translateY(-1px);
}

/* ==============================
   6. ACTION BUTTONS
============================== */

.primary,
.secondary {
  border: 0;
  border-radius: 13px;
  padding: 14px 18px;
  font-weight: 750;
  cursor: pointer;
}

.primary {
  background: #8b605c;
  color: white;
}

.primary:hover {
  background: #744c49;
}

.secondary {
  background: #eee6df;
  color: #3e3537;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

button:focus-visible {
  outline: 3px solid #b78e88;
  outline-offset: 3px;
}

/* ==============================
   7. QUIZ PROGRESS
============================== */

.progress {
  height: 8px;
  background: #eee6e1;
  border-radius: 50px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress > div {
  height: 100%;
  background: #b48a7b;
  transition: width .2s;
}

/* ==============================
   8. RESULT PAGE
============================== */

/* Centre personality description */

.animal-name + .muted + p {
  text-align: center;
}

/* Centre personality quote */

.animal-name + .muted {
  text-align: center;
}

/* Personality name */

.mascot-container + h1 {
  text-align: center;
}

/* Compatibility character layout */

.match-character {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.match-character h3 {
  margin: 0;
  flex: 1;
}

/* Small mascot image */

.match-mascot {
  width: 75px;
  height: 75px;
  object-fit: contain;
  flex-shrink: 0;
}

.mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.mascot-image {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.animal-name {
  font-size: 22px;
  font-weight: 500;
  color: #977a78;
  margin: -8px 0 8px;
  text-align: center;
}

.profile-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.profile-list li,
.match-character + p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.profile-list li:last-child {
  margin-bottom: 0;
}

.match-label,
.profile-label {
  display: inline-block;
  background: #f5e9e4;
  border: 1px solid #ead6cd;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #977a78;
  margin-bottom: 12px;
}

.mini .match-label + h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini {
  border: 1px solid #e9dfd9;
  background: white;
  border-radius: 16px;
  padding: 16px;
}

.tag {
  display: inline-block;
  background: #f5e9e4;
  border-radius: 50px;
  padding: 7px 12px;
  font-size: 12px;
  margin: 3px;
}

.barrow {
  display: grid;
  grid-template-columns: 115px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  font-size: 13px;
}

.bar {
  height: 11px;
  background: #eee8e5;
  border-radius: 20px;
  overflow: hidden;
}

.bar > div {
  height: 100%;
  background: #b48a7b;
  border-radius: 20px;
}

/* ==============================
   9. OTHER ELEMENTS
============================== */

.divider {
  border: 0;
  border-top: 1px solid #eee5e0;
  margin: 25px 0;
}

.notice {
  padding: 12px 15px;
  border-radius: 12px;
  background: #f3f0e7;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

/* ==============================
   10. FOOTER
============================== */

footer {
  text-align: center;
  color: #847873;
  margin-top: 25px;
}

.footer-copyright {
  

font-family: "Comic Relief", Arial, sans-serif;


  font-size: 11px;
  line-height: 1.4;
  color: #746a70;
  margin: 0 0 8px;
}

.footer-tagline {
  

font-family: "Comic Relief", Arial, sans-serif;


  font-size: 14px;
  line-height: 1.4;
  color: #365675;
  margin: 0;
}

/* ==============================
   11. MOBILE RESPONSIVE
============================== */

@media (max-width: 520px) {

  html {
    min-height: 100%;
  }

  body {
    min-height: 100dvh;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 5px 8px 10px;
  }

  /* Header */

  .top {
    gap: 5px;
    margin-bottom: 5px;
  }

  .brand {
    font-size: 14px;
  }

   
.brand-link {
  font-size: 18px;
}


  .pill {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Main panel */

  .panel {
    padding: 10px 12px;
    border-radius: 14px;
  }

  /* Chapter heading */

  .chapter-info {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .eyebrow {
    font-size: 10px;
  }

  h1 {
    font-size: 23px;
    margin: 6px 0;
  }

  h2 {
    font-size: 18px;
    margin: 5px 0 8px;
  }

  h3 {
    font-size: 15px;
  }

  /* Chapter illustrations */

  .story-image,
  .cover-image {
    width: 100%;
    height: clamp(80px, 17dvh, 140px);
    object-fit: contain;
    margin: 4px 0;
  }

  .art {
    min-height: 0;
    margin: 4px 0;
    padding: 0;
  }

  /* Narration and story text */

  .story,
  .narration,
  .dialogue-text {
    font-size: 12px;
    line-height: 1.3;
  }

  .story {
    margin-bottom: 6px;
  }

  .narration {
    margin: 5px 0;
  }

  p {
    line-height: 1.35;
  }

  /* Character dialogue */

  .dialogue {
    gap: 6px;
    margin: 6px 0;
  }

  .dialogue-avatar {
    width: 28px;
    height: 28px;
  }

  /* Answer choices */


.choices {
  gap: 5px;
  margin-top: 15px;
  margin-bottom: 25px;
}


  .choice {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 9px;
  }

  /* Navigation buttons */

  .primary,
  .secondary {
    padding: 9px 11px;
    font-size: 12px;
  }

  .actions {
    gap: 6px;
    margin-top: 8px;
  }

  /* Progress bar */

  .progress {
    height: 5px;
    margin: 6px 0 4px;
  }

  /* Result page */

  .grid {
    grid-template-columns: 1fr;
  }

  .barrow {
    grid-template-columns: 95px 1fr 34px;
  }

  .mascot-container {
    margin: 12px 0;
  }

  .mascot-image {
    width: 150px;
  }

  .match-mascot {
    width: 55px;
    height: 55px;
  }

  .mini {
    padding: 12px;
  }

  .divider {
    margin: 14px 0;
  }

  /* Footer */

  footer {
    margin-top: 10px;
  }

  .footer-copyright {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .footer-tagline {
    font-size: 12px;
  }
}

/* ==============================
   12. MOBILE RESULT - 2 COLUMNS
============================== */

@media (max-width: 520px) {

  /* Personality and compatibility cards */

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  /* Smaller cards */

  .mini {
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
  }

  .mini h3 {
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 5px;
  }

  .mini p,
  .mini li {
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  /* Compatibility mascot */

  .match-character {
    flex-direction: column-reverse;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .match-mascot {
    width: 45px;
    height: 45px;
  }

  /* Smaller labels */

  .match-label,
  .profile-label {
    font-size: 9px;
    padding: 4px 6px;
    letter-spacing: 0.03em;
  }

  .profile-list {
    padding-left: 14px;
  }

  .profile-list li {
    margin-bottom: 4px;
  }
}

/* ==============================
   13. EXTRA COMPACT MOBILE RESULTS
============================== */

@media (max-width: 520px) {

  /* Main layout */

  main {
    padding: 4px 6px 8px;
  }

  .panel {
    padding: 8px;
    border-radius: 12px;
  }

  /* Main mascot */

  .mascot-container {
    margin: 2px 0;
  }

  .mascot-image {
    width: 75px;
    max-height: 75px;
  }

  /* Personality name */

  .mascot-container + h1 {
    font-size: 17px;
    line-height: 1.1;
    margin: 3px 0;
  }

  .animal-name {
    font-size: 12px;
    margin: 0 0 3px;
  }

  /* Quote */

  .animal-name + .muted {
    font-size: 10px;
    line-height: 1.2;
    margin: 3px 0;
  }

  /* Description */

  .animal-name + .muted + p {
    font-size: 10px;
    line-height: 1.25;
    margin: 4px 0;
  }

  /* Section headings */

  h2 {
    font-size: 14px;
    margin: 6px 0;
  }

  h3 {
    font-size: 11px;
    margin-bottom: 3px;
  }

  /* Two-column cards */

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .mini {
    min-width: 0;
    padding: 6px;
    border-radius: 8px;
  }

  .mini h3 {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .mini p,
  .mini li {
    font-size: 10px;
    line-height: 1.35;
    margin: 2px 0;
    overflow-wrap: anywhere;
  }

  /* Personality lists */

  .profile-list {
    margin: 3px 0 0;
    padding-left: 12px;
  }

  .profile-list li {
    margin-bottom: 2px;
  }

  /* Compatibility */

  .match-character {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2px;
    margin-bottom: 3px;
    text-align: center;
  }

  .match-character h3 {
    font-size: 10px;
  }

  .match-mascot {
    width: 32px;
    height: 32px;
  }

  .match-label,
  .profile-label {
    font-size: 8px;
    padding: 3px 5px;
    margin-bottom: 3px;
    letter-spacing: 0;
  }

  /* Trait breakdown */

  .barrow {
    grid-template-columns: 65px 1fr 24px;
    gap: 4px;
    margin: 4px 0;
    font-size: 9px;
  }

  .bar {
    height: 5px;
  }

  /* Tags */

  .tag {
    font-size: 9px;
    padding: 3px 5px;
    margin: 2px;
  }

  /* Other text */

  .small,
  .notice {
    font-size: 10px;
    line-height: 1.25;
  }

  .notice {
    padding: 6px;
  }

  /* Spacing */

  .divider {
    margin: 6px 0;
  }

  .actions {
    gap: 5px;
    margin-top: 6px;
  }

  .primary,
  .secondary {
    font-size: 10px;
    padding: 7px 9px;
  }

  footer {
    margin-top: 6px;
  }

   .question-heading {
    margin-top: 22px;
    margin-bottom: 12px;
  }
}

/* ==============================
   14. MOBILE RESULT SPACING
   & IDEAL WEEKEND
============================== */

@media (max-width: 520px) {

  /* Gap above Singapore survival kit */

  .grid + .divider {
    margin-top: 14px;
  }

  /* Ideal weekend text */

  .panel .weekend-text {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    margin: 8px 0 !important;
  }
}

/* ==============================
   15. INTRO PAGE
   MATCH BOTH PARAGRAPHS
============================== */

.intro-text,
.intro-text ~ .art + p,
.intro-story {
  font-family: "Shantell Sans", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 520px) {

  .intro-text,
  .intro-text ~ .art + p,
  .intro-story {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }
}


/* Desktop */
.logo img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}
