
@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;
}

@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;
}

/* GENERAL */

:root {
  font-family: "Comic Relief", Arial, sans-serif;
  color: #332d35;
  background: #dceeff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 5%, #ffffff, transparent 35%),
    radial-gradient(circle at 90% 80%, #b8d9ff, transparent 35%),
    #dceeff;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

button {
  font-family: "Comic Relief", Arial, sans-serif;
  font-weight: 500;
}

/* 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: #547fa8;
  text-decoration: none;
}

.brand-link:hover {
  opacity: 0.8;
}

.pill {
  background: #ffffff88;
  border: 1px solid #cbdced;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12px;
}

/* MAIN PANEL */

.panel {
  background: #ffffff;
  border: 1px solid #d5e3f1;
  border-radius: 25px;
  padding: clamp(22px, 5vw, 38px);
  box-shadow: 0 12px 40px #3656750e;
}

.art {
  border: 2px dashed #bfd2e6;
  border-radius: 19px;
  background: #f1f7ff;
  color: #547fa8;
  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,
.cover-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 350px;
  object-fit: contain;
  border-radius: 18px;
  margin: 18px 0;
}

/* TYPOGRAPHY */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 800;
  color: #547fa8;
}

.chapter-info {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 18px;
  font-weight: 800;
  color: #547fa8;
}

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;
}

.muted {
  color: #607d99;
}

.small {
  font-size: 13px;
}

.question-heading {
  margin-top: 35px;
  margin-bottom: 18px;
}

/* STORY AND DIALOGUE */

.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;
}

/* CHOICES */

.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;
  font-size: 16px;
  background: white;
  border: 1.5px solid #cbdced;
  border-radius: 15px;
  padding: 17px;
  cursor: pointer;
  color: #332d35;
  transition: .15s;
}

.choice:hover,
.choice:focus-visible {
  border-color: #7fa8d1;
  background: #f1f7ff;
  transform: translateY(-1px);
}

/* ACTION BUTTONS */

.primary,
.secondary {
  border: 0;
  border-radius: 13px;
  padding: 14px 18px;
  font-weight: 750;
  cursor: pointer;
}

.primary {
  background: #547fa8;
  color: white;
}

.primary:hover {
  background: #416b93;
}

.secondary {
  background: #e3edf8;
  color: #365675;
}

.secondary:hover {
  background: #d2e4f6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

button:focus-visible {
  outline: 3px solid #7fa8d1;
  outline-offset: 3px;
}

/* PROGRESS */

.progress {
  height: 8px;
  background: #e3edf8;
  border-radius: 50px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress > div {
  height: 100%;
  background: #7fa8d1;
  transition: width .2s;
}

/* FEEDBACK */

.feedback,
.feedback-text {
  background: #f1f7ff;
  border: 1px solid #cbdced;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 18px;
  font-family: "Shantell Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.feedback p,
.feedback-text p {
  margin: 0;
  font: inherit;
}

.feedback .actions,
.feedback-text .actions {
  margin-top: 18px;
}

.feedback > .primary,
.feedback-text > .primary,
.feedback > button,
.feedback-text > button {
  margin-top: 18px;
}

.feedback p + .primary,
.feedback-text p + .primary,
.feedback p + button,
.feedback-text p + button {
  margin-top: 18px;
}

/* RESULT PAGE */

.animal-name + .muted + p,
.animal-name + .muted,
.mascot-container + h1 {
  text-align: center;
}

.match-character {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.match-character h3 {
  margin: 0;
  flex: 1;
}

.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: #547fa8;
  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: #f1f7ff;
  border: 1px solid #cbdced;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #547fa8;
  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 #d5e3f1;
  background: white;
  border-radius: 16px;
  padding: 16px;
}

.tag {
  display: inline-block;
  background: #f1f7ff;
  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: #e3edf8;
  border-radius: 20px;
  overflow: hidden;
}

.bar > div {
  height: 100%;
  background: #7fa8d1;
  border-radius: 20px;
}

/* OTHER ELEMENTS */

.divider {
  border: 0;
  border-top: 1px solid #dce7f2;
  margin: 25px 0;
}

.notice {
  padding: 12px 15px;
  border-radius: 12px;
  background: #f1f7ff;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

footer {
  text-align: center;
  margin-top: 25px;
}

.footer-copyright {
  font-family: "Comic Relief", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: #607d99;
  margin: 0;
}

/* INTRO */

.intro-text,
.intro-text ~ .art + p,
.intro-story {
  font-family: "Shantell Sans", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

/* MOBILE */

@media (max-width: 520px) {

  html,
  body {
    width: 100%;
    min-width: 0;
  }

  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 4px 6px 8px;
  }

  .panel {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
  }

  .top {
    gap: 5px;
    margin-bottom: 5px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-link {
    font-size: 18px;
  }

  .pill {
    font-size: 10px;
    padding: 4px 8px;
  }

  .chapter-info {
    font-size: 12px;
    letter-spacing: .04em;
  }

  .eyebrow {
    font-size: 10px;
  }

  h1 {
    font-size: 23px;
    margin: 6px 0;
  }

  h2 {
    font-size: 14px;
    margin: 5px 0 8px;
  }

  h3 {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .story-image,
  .cover-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(80px, 17dvh, 140px);
    object-fit: contain;
    margin: 4px 0;
  }

  .art {
    min-height: 0;
    margin: 4px 0;
    padding: 0;
  }

  .art:has(img) {
    border: none;
    background: transparent;
    padding: 0;
    min-height: 0;
  }

  .art .story-image {
    margin: 0;
  }

  .story,
  .narration,
  .dialogue-text {
    font-family: "Shantell Sans", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
  }

  .story {
    margin-bottom: 6px;
  }

  .narration {
    margin: 5px 0;
  }

  p {
    line-height: 1.35;
  }

  .intro-text,
  .intro-text ~ .art + p,
  .intro-story {
    font-family: "Shantell Sans", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
  }

  .dialogue {
    gap: 6px;
    margin: 6px 0;
  }

  .dialogue-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .dialogue-text {
    min-width: 0;
  }

  .choices {
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .choice {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 9px;
  }

  .question-heading {
    margin-top: 22px;
    margin-bottom: 12px;
  }

  .feedback,
  .feedback-text {
    padding: 10px 12px;
    margin: 8px 0 12px;
    border-radius: 9px;
    font-family: "Shantell Sans", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
  }

  .feedback p,
  .feedback-text p {
    margin: 0;
    font: inherit;
  }

  .feedback .actions,
  .feedback-text .actions,
  .feedback > .primary,
  .feedback-text > .primary,
  .feedback > button,
  .feedback-text > button,
  .feedback p + .primary,
  .feedback-text p + .primary,
  .feedback p + button,
  .feedback-text p + button {
    margin-top: 12px;
  }

  .primary,
  .secondary {
    font-size: 10px;
    padding: 7px 9px;
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
  }

  .progress {
    height: 5px;
    margin: 6px 0 4px;
  }

  /* MOBILE RESULT */

  .mascot-container {
    margin: 2px 0;
  }

  .mascot-image,
  .mascot-container .result-mascot {
    width: 75px;
    max-width: 100%;
    max-height: 75px;
    object-fit: contain;
  }

  .mascot-container + h1,
  .result-title {
    font-size: 17px;
    line-height: 1.1;
    margin: 3px 0;
    text-align: center;
  }

  .animal-name {
    font-size: 12px;
    margin: 0 0 3px;
  }

  .animal-name + .muted,
  .result-quote {
    font-size: 10px;
    line-height: 1.2;
    margin: 3px 0;
    text-align: center;
  }

  .animal-name + .muted + p,
  .result-summary {
    font-size: 10px;
    line-height: 1.25;
    margin: 4px 0;
    text-align: center;
  }

  .result-title ~ h2,
  .result-summary ~ h2 {
    font-size: 14px;
    margin: 6px 0;
  }

  .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;
  }

  .profile-list {
    margin: 3px 0 0;
    padding-left: 12px;
  }

  .profile-list li {
    margin-bottom: 2px;
  }

  .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;
    object-fit: contain;
  }

  .match-mascot img,
  .match-mascot .result-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .match-label,
  .profile-label {
    font-size: 8px;
    padding: 3px 5px;
    margin-bottom: 3px;
    letter-spacing: 0;
  }

  .barrow {
    grid-template-columns: 65px 1fr 24px;
    gap: 4px;
    margin: 4px 0;
    font-size: 9px;
  }

  .bar {
    height: 5px;
  }

  .tag {
    font-size: 9px;
    padding: 3px 5px;
    margin: 2px;
  }

  .small,
  .notice {
    font-size: 10px;
    line-height: 1.25;
  }

  .notice {
    padding: 6px;
  }

  .panel .weekend-text {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    margin: 8px 0;
  }

  .divider {
    margin: 6px 0;
  }

  .grid + .divider {
    margin-top: 14px;
  }

  footer {
    margin-top: 6px;
  }

  .footer-copyright {
    font-size: 9px;
  }
}


/* =====================================
   WORKPLACE RESULT MASCOT FIX
   Desktop + Mobile
===================================== */

/* Main personality mascot container */

.mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 15px auto;
}

/* Main personality mascot */

.mascot-container .result-mascot {
  display: block;
  width: 150px;
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin: 0 auto;
}

/* Compatibility mascot container */

.match-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}

/* Compatibility mascot image */

.match-mascot .result-mascot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 520px) {

  .mascot-container {
    margin: 5px auto;
  }

  .mascot-container .result-mascot {
    width: 75px;
    height: 75px;
  }

  .match-mascot {
    width: 32px;
    height: 32px;
  }
}


/* Desktop */
.logo img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}
