/* Friendship quizzes (the tickdare-ported /{lang}/dare module): design layer only.
   Loaded by the 7 quiz views (dare, create, play, playForSurpriseGift, character, playerAnswer,
   playerCertificate) and scoped to their .friendship-quiz wrapper, so no other page changes.
   It restyles the existing markup; every id/class the quiz scripts use is left as it is, and the
   game logic, quiz data, texts and ad code are untouched. Brand: #f44a25 orange, #ed1681 pink.
   Change log: docs/tickdare-port-adaptations.md (§8). */

/* Body font per script: Poppins has no Cyrillic / Arabic / Thai / CJK / full Vietnamese letters, so those
   pages would mix Poppins (Latin words like names) with a system font. A geometric font of the same feel
   for each script goes first (loaded by partials/friendship_quiz_styles.blade.php); it also has Latin, so
   whole lines stay in one font. */
html[lang="ru"], html[lang="uk"], html[lang="vi"] { --fq-script-font: 'Montserrat'; }
html[lang="ar"] { --fq-script-font: 'Tajawal'; }
html[lang="th"] { --fq-script-font: 'Prompt'; }
html[lang="ja"] { --fq-script-font: 'Noto Sans JP'; }
html[lang="ko"] { --fq-script-font: 'Noto Sans KR'; }
html[lang="zh-CN"] { --fq-script-font: 'Noto Sans SC'; }
html[lang="zh-TW"] { --fq-script-font: 'Noto Sans TC'; }

.friendship-quiz {
  --fq-orange: #f44a25;
  --fq-pink: #ed1681;
  --fq-gradient: linear-gradient(135deg, #f44a25 0%, #ed1681 100%);
  --fq-ink: #221b2e;
  --fq-muted: #6f6680;
  --fq-line: #ece4f0;
  --fq-soft: #faf7fc;
  --fq-card-shadow: 0 10px 30px rgba(60, 26, 80, .08), 0 1px 2px rgba(60, 26, 80, .05);
  --fq-right: #16a34a;
  --fq-wrong: #e5484d;
  --fq-font: var(--fq-script-font, 'Poppins'), 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--fq-font);
  color: var(--fq-ink);
  background: linear-gradient(180deg, #fff3ee 0%, #fdf1f7 38%, #f8f6fb 100%);
  padding: 4px 0 28px;
  overflow-x: hidden;
}
.friendship-quiz h1, .friendship-quiz h2, .friendship-quiz h3, .friendship-quiz h4,
.friendship-quiz h5, .friendship-quiz h6, .friendship-quiz p, .friendship-quiz input,
.friendship-quiz select, .friendship-quiz button, .friendship-quiz .btn, .friendship-quiz table,
/* link-style buttons (<a class="normal-button"><b>…</b></a>) and lists fell back to Arial from global CSS */
.friendship-quiz a, .friendship-quiz b, .friendship-quiz strong, .friendship-quiz label, .friendship-quiz li,
.friendship-quiz td, .friendship-quiz th, .friendship-quiz .normal-button, .friendship-quiz .roundy {
  font-family: var(--fq-font);
}

/* ---------- layout: one centred mobile column ---------- */
.friendship-quiz .container {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.friendship-quiz .container .container { max-width: none; padding-left: 0; padding-right: 0; }
.friendship-quiz .columns { margin-left: 0; margin-right: 0; }
.friendship-quiz .columns > .column { padding-left: 0; padding-right: 0; }
.friendship-quiz .sides > .box,
.friendship-quiz .container#entername .box {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--fq-card-shadow);
  padding: 22px 18px;
  margin: 10px 0 16px;
}

/* the master layout's .long is word-break:break-all ("Q/uiz", "Delet/e") */
.friendship-quiz .long,
.friendship-quiz .table,
.friendship-quiz .table th,
.friendship-quiz .table td,
.friendship-quiz h5 {
  word-break: normal;
  overflow-wrap: break-word;
}

/* ---------- headings and text ---------- */
.friendship-quiz h3 b, .friendship-quiz h3 .strong b { font-weight: 800; }
.friendship-quiz #entername .text-center h3:first-of-type,
.friendship-quiz #congrats {
  font-size: 23px !important;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fq-ink);
  margin: 2px 0 6px;
}
/* balanced lines: no lone emoji or word on the last line of a title */
.friendship-quiz h1, .friendship-quiz h2, .friendship-quiz h3, .friendship-quiz h4, .friendship-quiz h5 { text-wrap: balance; }
/* quiz-list card titles: "balance" split names into even halves ("Friendship / Trust Challenge");
   "pretty" fills each line and only avoids a lone last word */
.friendship-quiz--list .dare-card h3 { text-wrap: pretty; }
/* Korean wraps between words (spaces), not inside them */
html[lang="ko"] .friendship-quiz h1, html[lang="ko"] .friendship-quiz h2, html[lang="ko"] .friendship-quiz h3,
html[lang="ko"] .friendship-quiz h4, html[lang="ko"] .friendship-quiz h5, html[lang="ko"] .friendship-quiz h6,
html[lang="ko"] .friendship-quiz p, html[lang="ko"] .friendship-quiz .btn, html[lang="ko"] .friendship-quiz .normal-button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* the empty error slot + <br> left a tall gap between the name box and the start button */
.friendship-quiz #nametb ~ br { display: none; }
.friendship-quiz .has-error:empty { display: none; }
.friendship-quiz .quiz-title {
  display: block;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--fq-orange);
  margin-bottom: 14px;
}
.friendship-quiz font[size] b,
.friendship-quiz font[size] {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--fq-muted);
  margin-bottom: 10px;
}

/* quiz instructions (HTML from the quiz record): a quiet panel under the start button */
.friendship-quiz #quizzess > .text-center,
.friendship-quiz #entername .box > .text-center {
  padding-bottom: 6px;
}
.friendship-quiz #quizzess > :not(.text-center),
.friendship-quiz #entername .box > :not(.text-center) {
  text-align: start;
}
.friendship-quiz #quizzess > h3, .friendship-quiz #quizzess > h4,
.friendship-quiz #entername .box > h3, .friendship-quiz #entername .box > h4 {
  font-size: 16px !important;
  line-height: 1.4;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--fq-ink);
}
.friendship-quiz #quizzess > p, .friendship-quiz #entername .box > p,
.friendship-quiz #quizzess > p b, .friendship-quiz #entername .box > p b {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--fq-muted);
  margin: 0 0 8px;
}

.friendship-quiz #quizzess > p small, .friendship-quiz #entername .box > p small {
  font-size: 14px;
  line-height: 1.55;
}
.friendship-quiz #quizzess > p small strong, .friendship-quiz #entername .box > p small strong {
  font-weight: 600;
  color: #4a4258;
}

/* the page description at the bottom of the create page */
.friendship-quiz p.h6 {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--fq-muted);
  margin: 0;
}

/* ---------- inputs and the main button ---------- */
.friendship-quiz #sel1,
.friendship-quiz #nametb {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--fq-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  background-color: var(--fq-soft);
  color: var(--fq-ink);
  font-size: 16px;
  font-weight: 500;
  padding: 0 14px;
}
.friendship-quiz #nametb { text-align: center; margin-top: 6px; }
.friendship-quiz #nametb::placeholder { color: #a79fb3; font-weight: 500; }
.friendship-quiz #sel1:focus,
.friendship-quiz #nametb:focus {
  outline: none;
  border-color: var(--fq-pink) !important;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(237, 22, 129, .12) !important;
}
.friendship-quiz .form-group { margin-bottom: 4px; }
.friendship-quiz .has-error { display: block; font-size: 13px; margin-top: 4px; color: var(--fq-wrong); }
.friendship-quiz .ng-view > .strong b,
.friendship-quiz .text-center > div > .strong b { font-size: 14px; color: var(--fq-muted); font-weight: 600; }

.friendship-quiz .normal-button,
.friendship-quiz .roundy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  margin: 8px 0 16px !important;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--fq-gradient) !important;
  background-size: 100% 100% !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: none;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(237, 22, 129, .25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.friendship-quiz .normal-button b,
.friendship-quiz .roundy b { color: #fff; font-weight: 700; }
/* long translated labels wrap as one block with the arrow beside it (not the arrow alone on a new line) */
.friendship-quiz .normal-button > b,
.friendship-quiz .roundy > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.3;
}
.friendship-quiz .normal-button > b > .icon,
.friendship-quiz .roundy > b > .icon { flex: none; }
.friendship-quiz .roundy { width: auto; min-width: 230px; height: auto; padding: 14px 24px !important; margin: 6px auto 4px !important; }
.friendship-quiz a:has(> .roundy) { display: block; text-decoration: none; }
.friendship-quiz .normal-button:active,
.friendship-quiz .roundy:active { transform: scale(.98); box-shadow: 0 5px 12px rgba(237, 22, 129, .22); }

/* prize preview on the friend's name screen (Ticket quizzes) */
.friendship-quiz .ticketSet { gap: 8px; justify-content: center; margin: 4px 0 12px; }
.friendship-quiz .ticketSet .ticket { margin: 0 !important; font-size: 12px; font-weight: 600; color: var(--fq-muted); }
/* prize previews: tickets are wide (≈182×100), badges round — size by the column, capped by height */
.friendship-quiz .ticketSet .ticket img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(140px, 100%);
  max-height: 96px;
  margin: 0 auto 4px;
  object-fit: contain;
}
/* Fredoka One has no Cyrillic / Arabic / Thai / CJK / full Vietnamese: there the ticket words fall back to
   the page's script font, so give it its heavy weight to keep the chunky look */
html:is([lang="ru"], [lang="uk"], [lang="ar"], [lang="vi"], [lang="th"], [lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="zh-TW"])
  .friendship-quiz :is(.ticketSet .ticket span, #bestTicket h3, #goodTicket h3, #fakeTicket h3) { font-weight: 800 !important; }
/* ticket labels on the start screen: the original Fredoka One */
.friendship-quiz .ticketSet .ticket span {
  font-family: 'Fredoka One', var(--fq-font) !important;
  font-size: 15px !important;
  font-weight: 400;
  letter-spacing: 1px;
  color: #6b5f7d;
}
.friendship-quiz .ticketSet .ticket br { display: none; } /* blank line between ticket and its label */

/* start screen text scales up with the screen (it was phone-sized on tablet/desktop) */
.friendship-quiz #entername .ng-view > .strong b,
.friendship-quiz #entername .text-center > div > .strong b { font-size: 15px; }
@media (min-width: 768px) {
  .friendship-quiz #entername .text-center h3:first-of-type,
  .friendship-quiz #congrats { font-size: 27px !important; }
  .friendship-quiz .quiz-title { font-size: 19px; }
  .friendship-quiz .ticketSet .ticket span { font-size: 17px !important; }
  .friendship-quiz #entername .ng-view > .strong b,
  .friendship-quiz #entername .text-center > div > .strong b { font-size: 16px; }
}

/* ---------- question flow ---------- */
/* create page: the numbered circles become a slim progress bar with a "3/15" counter */
.friendship-quiz .countdown { max-width: 528px; margin: 6px auto 12px; padding: 0 16px; }
.friendship-quiz .countdown ul {
  display: flex;
  gap: 4px;
  position: relative;
  padding-top: 22px;
  counter-reset: fq-question;
}
.friendship-quiz .countdown ul li {
  counter-increment: fq-question;
  flex: 1 1 0;
  width: auto;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 99px;
  background: #eadfea;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.friendship-quiz .countdown ul li.active { background: var(--fq-gradient); }
.friendship-quiz .countdown ul li.currentQuestion { background: #f7b4a3; }
.friendship-quiz .countdown ul li.currentQuestion::after,
.friendship-quiz .countdown ul::after {
  position: absolute;
  top: 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.friendship-quiz .countdown ul li.currentQuestion::after {
  content: counter(fq-question) " /";
  inset-inline-end: 2.2ch;
  color: var(--fq-orange);
}
.friendship-quiz .countdown ul::after {
  content: counter(fq-question);
  inset-inline-end: 0;
  width: 2ch;
  text-align: start;
  color: var(--fq-muted);
}

/* friend play pages: "Question about Asha… 3/15" */
.friendship-quiz #quizeques > h3 { margin: 4px 0 10px; }
.friendship-quiz .smallGreyText {
  font-size: 15px;
  font-weight: 700;
  color: var(--fq-ink) !important;
}
.friendship-quiz .smallGreyText .attempted { color: var(--fq-orange) !important; }

.friendship-quiz .skipButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px auto 12px;
  padding: 7px 14px;
  border: 1.5px solid #f6cbbd;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--fq-orange) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.friendship-quiz .question-div > .skipButton { display: flex; width: max-content; }

.friendship-quiz .card-gradient {
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--fq-card-shadow);
  padding: 18px 12px 12px;
}
.friendship-quiz .question { font-size: inherit; font-weight: inherit; }
/* the question title only (answer labels are h5.text-center inside .questions too) */
.friendship-quiz .questions > h5 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--fq-ink);
  margin: 0 6px 14px;
}
.friendship-quiz .options-div > .container > .row { margin-left: 0; margin-right: 0; }
.friendship-quiz .options-div > .container > .row > .col-md-10 { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
.friendship-quiz .questions .card-img-top { padding: 0; border-radius: 16px; }
.friendship-quiz .questions > .row,
.friendship-quiz .questions > p + .row { margin-left: -5px; margin-right: -5px; }
.friendship-quiz .Question__PaddingLeft__m01FU { padding: 5px; margin: 0; }
.friendship-quiz .questions > .row,
.friendship-quiz .questions > p + .row { justify-content: center; }

/* Answer options that are just an emoji ("Which emoji does … use most?") looked lost in a wide button.
   This face maps the system colour-emoji font to the emoji ranges only, 1.45× larger, and goes first in the
   options' font stack — emoji-only answers read clearly; letters keep the normal font. */
@font-face {
  font-family: 'FQ Answer Emoji';
  src: local('Apple Color Emoji'), local('Segoe UI Emoji'), local('Noto Color Emoji'), local('Segoe UI Symbol');
  size-adjust: 145%;
  unicode-range: U+1F000-1FAFF, U+2600-27BF, U+2B00-2BFF, U+1F1E6-1F1FF, U+FE0F, U+200D;
}
.friendship-quiz .option h5,
.friendship-quiz .option .card-body {
  font-family: 'FQ Answer Emoji', var(--fq-font) !important;
}
.friendship-quiz .option {
  height: 100%;
  margin: 0;
  padding: 6px;
  border: 1.5px solid var(--fq-line);
  border-radius: 18px;
  background: var(--fq-soft);
  filter: none;
  box-shadow: 0 2px 0 #e7deeb;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.friendship-quiz .option .card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  padding: 0;
  border-radius: 13px;
  background: #f1ecf4;
}
.friendship-quiz .option .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 6px 4px !important;
}
.friendship-quiz .option:not(:has(img)) .card-body { min-height: 44px; padding: 6px 10px !important; }
.friendship-quiz .option h5,
.friendship-quiz .option .Question__h5_lineheight__2u7Xf {
  margin: 0;
  background: transparent;
  color: var(--fq-ink);
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 600;
}
.friendship-quiz .option:has(img) h5,
.friendship-quiz .option:has(img) .Question__h5_lineheight__2u7Xf { width: 100%; font-size: 14px; font-weight: 600; }
.friendship-quiz .option:has(img) .card-body { padding: 6px 2px 4px !important; }
/* long words in narrow answer cards (ru "Романтический", de compounds…): proper hyphenation by the
   page language (<html lang> is set per site language) instead of a raw mid-word cut */
.friendship-quiz .option h5,
.friendship-quiz--answers .options h5 { -webkit-hyphens: auto; hyphens: auto; }
.friendship-quiz .option:active { transform: scale(.98); }
@media (hover: hover) {
  .friendship-quiz .option:hover,
  .friendship-quiz .option-ans:hover {
    background: #fff4ef;
    border-color: #f7b4a3;
    box-shadow: 0 2px 0 #f2c6b9;
    color: var(--fq-ink);
  }
  .friendship-quiz .option-ans:hover h5 { background: transparent; color: var(--fq-ink); }
}
@media (hover: none) {
  /* touch screens keep :hover after a tap; don't let the old orange hover stick */
  .friendship-quiz .option-ans:hover { background: var(--fq-soft); box-shadow: 0 2px 0 #e7deeb; color: var(--fq-ink); }
  .friendship-quiz .option-ans:hover h5 { background: transparent; color: var(--fq-ink); }
}

/* picked / right / wrong (classes set by the existing quiz scripts) */
.friendship-quiz .option.optionActive {
  background: var(--fq-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(237, 22, 129, .25) !important;
}
.friendship-quiz .option.option-right {
  background: var(--fq-right) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .28) !important;
  top: 0;
}
.friendship-quiz .option.option-wrong {
  background: var(--fq-wrong) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(229, 72, 77, .28) !important;
  top: 0;
}
.friendship-quiz .option.optionActive h5,
.friendship-quiz .option.option-right h5,
.friendship-quiz .option.option-wrong h5 {
  background: transparent !important;
  color: #fff !important;
  top: 0 !important;
}
/* the answers page marks picks with .option-right/.option-wrong/.optionActive but without .option */
.friendship-quiz--answers .options.option-right,
.friendship-quiz--answers .options.option-wrong,
.friendship-quiz--answers .options.optionActive {
  height: 100%;
  margin: 0;
  padding: 6px;
  border: 0 !important;
  border-radius: 18px;
  filter: none;
  top: 0;
}
.friendship-quiz--answers .options.option-right { background: var(--fq-right) !important; box-shadow: 0 6px 16px rgba(22, 163, 74, .25); }
.friendship-quiz--answers .options.option-wrong { background: var(--fq-wrong) !important; box-shadow: 0 6px 16px rgba(229, 72, 77, .25); }
.friendship-quiz--answers .options.optionActive { background: var(--fq-gradient) !important; box-shadow: 0 6px 16px rgba(237, 22, 129, .22); }
.friendship-quiz--answers .options .card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  padding: 0;
  border-radius: 13px;
}
.friendship-quiz--answers .options .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px 4px !important;
}
.friendship-quiz--answers .options h5 {
  margin: 0 !important;
  top: 0 !important;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  word-break: normal;
  overflow-wrap: break-word;
}
/* picked answers (one, or right + wrong) sit centred at a readable size on every screen */
.friendship-quiz--answers .questions > .row { justify-content: center; }
.friendship-quiz--answers .questions > .row > .Question__PaddingLeft__m01FU.col-6 {
  flex: 0 0 46%;
  max-width: 170px;
  margin: 0;
}
.friendship-quiz--answers .questions > .row > .Question__PaddingLeft__m01FU.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Question change without the "blink": the outgoing and incoming questions share one grid cell (no
   collapse, no doubled height), the incoming one fades in, the outgoing one can't be tapped while it
   fades, and the existing jump-to-top becomes a smooth scroll. Pairs with showNext() showing the next
   question at the start of the fade (create/play/gift/character views). */
.friendship-quiz .questionUpperDiv { display: grid; }
.friendship-quiz .questionUpperDiv > .question-div { grid-area: 1 / 1; min-width: 0; }
.friendship-quiz .question-div { animation: fq-question-in .35s ease-out both; }
.friendship-quiz .question-div[style*="opacity"] { pointer-events: none; }
@keyframes fq-question-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
html:has(.friendship-quiz) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  .friendship-quiz .question-div { animation: none; }
  html:has(.friendship-quiz) { scroll-behavior: auto; }
}

/* creating / calculating / loading */
.friendship-quiz #creating, .friendship-quiz #loaders { text-align: center; }
.friendship-quiz #creating h2, .friendship-quiz #loaders h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fq-ink);
  margin: 18px 0 8px;
}
.friendship-quiz #creating .spinner > div { background: var(--fq-pink); }

/* ---------- result (friend) ---------- */
.friendship-quiz #results .text-center > h5 { margin: 0 0 2px; }
.friendship-quiz #congbad { font-size: 20px; font-weight: 800; }
.friendship-quiz #results h1.heading,
.friendship-quiz #results .bigFont {
  font-size: 26px !important;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 8px;
}
.friendship-quiz #results h4 { font-size: 18px; margin: 10px 0 6px; }
.friendship-quiz #results h4 .strong b { font-weight: 700; color: var(--fq-ink); }
.friendship-quiz kbd#congo {
  display: inline-block;
  padding: 6px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--fq-ink);
  color: #ffd166;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--fq-font);
  letter-spacing: .5px;
  vertical-align: middle;
}
/* the reward (ticket = wide image, badge = round image): sized by height so both read big */
.friendship-quiz #results .heading.bigFont + img,
.friendship-quiz #bestTicket img, .friendship-quiz #goodTicket img, .friendship-quiz #fakeTicket img {
  display: block;
  width: auto !important;
  height: auto;
  max-width: min(240px, 80%) !important;
  max-height: 140px;
  margin: 8px auto 0 !important;
}
/* stray <br> under the reward (Ticket/Character types) left an empty band above the score */
.friendship-quiz #results .text-center > br { display: none; }
/* the ticket's name ("TICKET" / translated) in the original playful Fredoka One, as a bold 3D word in the
   ticket's colour (--hero: green best / purple good / red fake); scripts Fredoka lacks fall back to the
   page's script font */
.friendship-quiz #bestTicket h3, .friendship-quiz #goodTicket h3, .friendship-quiz #fakeTicket h3 {
  font-family: 'Fredoka One', var(--fq-font) !important;
  font-size: 26px !important;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hero, var(--fq-pink)) !important;
  text-shadow: 0 3px 0 color-mix(in srgb, var(--hero, #ed1681) 55%, #1a0d2e), 0 8px 16px rgba(30, 10, 50, .18);
  margin: 10px 0 8px;
}
.friendship-quiz .divider { height: 1px; margin: 16px 0 14px; background: var(--fq-line); }
.friendship-quiz #results h6 {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--fq-muted);
  margin: 0 0 6px;
}

/* Character quizzes: the personality names are the original "sticker" lettering — the Rocher colour
   font from the master layout, tinted per character by its palette class (.purples, .mint, .v1…).
   Re-assert it here because this file's Poppins rule for h1–h6/b is more specific than master's. */
.friendship-quiz .character,
.friendship-quiz #characterName,
.friendship-quiz .character-results,
.friendship-quiz .character-results * {
  font-family: 'Rocher', var(--fq-font) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  line-height: 1.15;
}
.friendship-quiz .character,
.friendship-quiz #characterName { margin: 2px 0 6px; }

/* ---- die-cut sticker look ----
   A thick white edge (stacked white drop-shadows follow the glyph shapes of the colour font), a soft
   cast shadow, and a glow in the character's own colour. Each palette class sets its glow colour. */
.friendship-quiz .character,
.friendship-quiz .character-results {
  --sticker-glow: rgba(237, 22, 129, .45);
  --sticker-edge: 3px;
  display: inline-block;
  filter:
    drop-shadow(var(--sticker-edge) 0 0 #fff) drop-shadow(calc(var(--sticker-edge) * -1) 0 0 #fff)
    drop-shadow(0 var(--sticker-edge) 0 #fff) drop-shadow(0 calc(var(--sticker-edge) * -1) 0 #fff)
    drop-shadow(0 6px 6px rgba(45, 20, 70, .22)) drop-shadow(0 0 16px var(--sticker-glow));
}
/* per character colour: glow, plus fill + 3D depth used by the non-Latin sticker fonts below
   (Rocher's own palettes draw the Latin letters) */
.friendship-quiz .character, .friendship-quiz .character-results { --sticker-fill: #f0559b; --sticker-depth: #b02a68; }
.friendship-quiz .purples { --sticker-glow: rgba(139, 108, 240, .55); --sticker-fill: #8b6cf0; --sticker-depth: #5a3fc0; }
.friendship-quiz .mint    { --sticker-glow: rgba(56, 196, 196, .5);   --sticker-fill: #3cc8c8; --sticker-depth: #1f8e95; }
.friendship-quiz .v1      { --sticker-glow: rgba(240, 104, 170, .5);  --sticker-fill: #f06aa8; --sticker-depth: #b8326f; }
.friendship-quiz .v2      { --sticker-glow: rgba(70, 200, 90, .45);   --sticker-fill: #4cc85a; --sticker-depth: #2a8a35; }
.friendship-quiz .v3      { --sticker-glow: rgba(255, 138, 61, .5);   --sticker-fill: #ff8a3d; --sticker-depth: #c25812; }
.friendship-quiz .v4      { --sticker-glow: rgba(79, 179, 240, .5);   --sticker-fill: #4fb3f0; --sticker-depth: #2276b8; }
.friendship-quiz .v5      { --sticker-glow: rgba(224, 90, 214, .5);   --sticker-fill: #e05ad6; --sticker-depth: #9c2a94; }
.friendship-quiz .v8      { --sticker-glow: rgba(245, 190, 30, .5);   --sticker-fill: #f5be1e; --sticker-depth: #c48a05; }
.friendship-quiz .grays   { --sticker-glow: rgba(140, 146, 160, .45); --sticker-fill: #9aa0aa; --sticker-depth: #636874; }
.friendship-quiz .red     { --sticker-glow: rgba(239, 75, 75, .5);    --sticker-fill: #ef4b4b; --sticker-depth: #b02323; }
/* Rocher has no Cyrillic / Arabic / Thai / CJK letters and only part of Vietnamese: those languages get a
   chunky rounded font for their script (loaded by character.blade.php), filled in the character's colour
   with a 3D depth shadow — the same sticker, just another alphabet */
html[lang="ru"], html[lang="uk"] { --sticker-script-font: 'Rubik'; }
html[lang="ar"] { --sticker-script-font: 'Baloo Bhaijaan 2'; }
html[lang="vi"], html[lang="hi"] { --sticker-script-font: 'Baloo 2'; } /* Baloo 2 draws Vietnamese and Devanagari */
html[lang="th"] { --sticker-script-font: 'Mitr'; }
html[lang="ja"] { --sticker-script-font: 'M PLUS Rounded 1c'; }
html[lang="ko"] { --sticker-script-font: 'Jua'; }
html[lang="zh-CN"] { --sticker-script-font: 'ZCOOL KuaiLe'; }
html[lang="zh-TW"] { --sticker-script-font: 'Noto Sans TC'; }
html:is([lang="ru"], [lang="uk"], [lang="ar"], [lang="vi"], [lang="hi"], [lang="th"], [lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="zh-TW"])
  .friendship-quiz :is(.character, #characterName, .character-results, .character-results *) {
  font-family: var(--sticker-script-font), var(--fq-font) !important;
  font-weight: 800 !important;
  color: var(--sticker-fill) !important;
  -webkit-text-fill-color: var(--sticker-fill);
  text-shadow: 0 3px 0 var(--sticker-depth), 0 4px 0 var(--sticker-depth);
  letter-spacing: .5px;
}
html:is([lang="ko"], [lang="zh-CN"]) .friendship-quiz :is(.character, #characterName, .character-results, .character-results *) {
  font-weight: 400 !important; /* Jua / ZCOOL KuaiLe are single heavy weights; no fake bold */
}
/* result: slapped onto the card once (no endless shaking), then a calm sway */
.friendship-quiz #characterName {
  transform: rotate(-4deg);
  margin: 10px 0 14px;
  animation: fq-sticker-slap .7s cubic-bezier(.2, 1.4, .4, 1) .15s both, fq-sticker-sway 5s ease-in-out 1.2s infinite !important;
}
/* Personality Board: small sticker chips, alternating tilt like a sticker collection */
/* scales with the screen so long names ("MYSTERIOUS") fit the narrow Personality column on small phones */
.friendship-quiz .character-results { --sticker-edge: 2px; font-size: clamp(14px, 4.4vw, 22px) !important; white-space: nowrap; }
@media (min-width: 768px) { .friendship-quiz .character-results { font-size: 26px !important; } }
.friendship-quiz tbody tr:nth-child(odd) .character-results { transform: rotate(-3deg); }
.friendship-quiz tbody tr:nth-child(even) .character-results { transform: rotate(2.5deg); }
/* start-screen strip: a sticker sheet sliding past */
.friendship-quiz .marquee-c { padding: 8px 0; }
/* seamless TV-ticker loop: the script puts the list in twice; scrolling by -50% (one copy) and jumping back
   is invisible because copy 2 sits exactly where copy 1 started. No leading 100% blank, no gap at the end. */
.friendship-quiz .marquee-c ul {
  display: inline-flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  animation: fq-character-ticker 24s linear infinite; /* ~67px/s for the 10-name list, a TV-ticker pace */
}
.friendship-quiz .marquee-c li { flex: none; padding: 0 1rem; }
@keyframes fq-character-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .friendship-quiz .marquee-c ul { animation-duration: 90s; }
}
.friendship-quiz .marquee-c .character { --sticker-edge: 2.5px; }
.friendship-quiz .marquee-c li:nth-child(odd) .character { transform: rotate(-4deg); }
.friendship-quiz .marquee-c li:nth-child(even) .character { transform: rotate(3deg); }
/* ---- personality result as a stage ----
   The card's top is a spotlight tinted in the character's colour (palette class on #characterName,
   picked up with :has), with a few sparkles; "Congrats" becomes a small eyebrow pill (no endless
   heartbeat), "You got" a quiet lead-in, the sticker the hero, the description a soft quote card. */
/* ===== Result reveal — every quiz type =====
   One stage for all results: the card top is a spotlight tinted in the reward's colour with a few
   sparkles; "Congrats" is a small eyebrow pill (no endless heartbeat); "You got" a quiet lead-in; the
   reward is the hero (personality sticker / ticket / the score itself); the rest fades up in a short
   stagger when the result appears (#results is shown by the page script, which starts the animations). */
.friendship-quiz #results .box { --hero: #ed1681; padding-top: 26px; overflow: hidden; }
.friendship-quiz #results .box:has(#characterName.purples) { --hero: #8b6cf0; }
.friendship-quiz #results .box:has(#characterName.mint)    { --hero: #3cc8c8; }
.friendship-quiz #results .box:has(#characterName.v1)      { --hero: #f06aa8; }
.friendship-quiz #results .box:has(#characterName.v2)      { --hero: #4cc85a; }
.friendship-quiz #results .box:has(#characterName.v3)      { --hero: #ff8a3d; }
.friendship-quiz #results .box:has(#characterName.v4)      { --hero: #4fb3f0; }
.friendship-quiz #results .box:has(#characterName.v5)      { --hero: #e05ad6; }
.friendship-quiz #results .box:has(#characterName.v8)      { --hero: #f5be1e; }
.friendship-quiz #results .box:has(#bestTicket[style*="block"]) { --hero: #f2a900; } /* gold: the best ticket/cup */
.friendship-quiz #results .box:has(#goodTicket[style*="block"]) { --hero: #7c5cff; }
.friendship-quiz #results .box:has(#fakeTicket[style*="block"]) { --hero: #ef4444; }
.friendship-quiz #results .box {
  background:
    radial-gradient(3px 3px at 18% 22%, color-mix(in srgb, var(--hero) 70%, #fff) 50%, transparent 55%),
    radial-gradient(2px 2px at 82% 18%, color-mix(in srgb, var(--hero) 60%, #fff) 50%, transparent 55%),
    radial-gradient(2.5px 2.5px at 74% 36%, #ffd166 50%, transparent 55%),
    radial-gradient(2px 2px at 26% 40%, #ffd166 50%, transparent 55%),
    radial-gradient(90% 300px at 50% 0%, color-mix(in srgb, var(--hero) 20%, #fff) 0%, #fff 100%);
}
.friendship-quiz #results .text-center > h5:first-child {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid color-mix(in srgb, var(--hero) 30%, #fff);
  font-size: 13px !important;
  letter-spacing: .6px;
  animation: fq-reveal-up .45s ease both !important;
}
.friendship-quiz #results .text-center > h5:first-child * { font-size: 13px !important; }
/* (not on the gift page: there the heading is the "Tap the box…" instruction and stays bold) */
.friendship-quiz.friendship-quiz:not(.friendship-quiz--gift) #results h1.heading {
  font-size: 18px !important;
  font-weight: 700;
  color: var(--fq-muted) !important;
  background: none;
  -webkit-text-fill-color: currentColor;
  margin: 0 0 2px;
  animation: fq-reveal-up .45s ease .12s both;
}
/* Default / Certificate: the score is the hero — "You got · 8/15" */
.friendship-quiz #results .box:has(.chart-gauge) h4 { margin: 4px 0 2px; animation: fq-score-pop .6s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.friendship-quiz #results .box:has(.chart-gauge) h4 .strong b {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fq-muted);
}
.friendship-quiz #results .box:has(.chart-gauge) kbd#congo {
  padding: 10px 28px;
  border-radius: 22px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: none;
  background: linear-gradient(160deg, #2b2140 0%, #1a1326 100%);
  box-shadow: 0 14px 30px rgba(34, 27, 46, .25), 0 0 0 6px color-mix(in srgb, var(--hero) 14%, #fff);
}
.friendship-quiz #results .chart-wrapper { animation: fq-reveal-up .5s ease .55s both; }
/* Ticket: the ticket slaps onto the card like a sticker, slightly tilted */
.friendship-quiz #bestTicket img, .friendship-quiz #goodTicket img, .friendship-quiz #fakeTicket img {
  filter: drop-shadow(0 12px 16px rgba(34, 27, 46, .22));
  animation: fq-ticket-slap .7s cubic-bezier(.2, 1.4, .4, 1) .25s both;
}
/* ---- ticket names as die-cut stickers (same look as the character names) ----
   Each tier has its own colour (gold best · purple good · red fake): a chunky word in that colour with a 3D
   depth, a thick white cut edge (stacked white drop-shadows follow the letters in any script), a soft cast
   shadow and a glow. On the result it slaps on after the ticket, then sways; on the start screen the three
   labels are small stickers with alternating tilt, like a sticker sheet. */
.friendship-quiz #bestTicket, .friendship-quiz .ticketSet .ticket:nth-child(1) { --tier: #f2a900; --tier-depth: #a86a00; --tier-glow: rgba(245, 179, 1, .5); --tier-tilt: -3deg; }
.friendship-quiz #goodTicket, .friendship-quiz .ticketSet .ticket:nth-child(2) { --tier: #7c5cff; --tier-depth: #4b2fc4; --tier-glow: rgba(124, 92, 255, .45); --tier-tilt: 2deg; }
.friendship-quiz #fakeTicket, .friendship-quiz .ticketSet .ticket:nth-child(3) { --tier: #ef4444; --tier-depth: #a61b1b; --tier-glow: rgba(239, 68, 68, .45); --tier-tilt: -2deg; }
.friendship-quiz #bestTicket h3, .friendship-quiz #goodTicket h3, .friendship-quiz #fakeTicket h3 {
  display: inline-block;
  max-width: 92%;
  line-height: 1.12;
  color: var(--tier) !important;
  -webkit-text-fill-color: var(--tier);
  text-shadow: 0 3px 0 var(--tier-depth), 0 5px 0 var(--tier-depth);
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 7px 7px rgba(45, 20, 70, .22)) drop-shadow(0 0 16px var(--tier-glow));
  transform: rotate(-3deg);
  will-change: transform; /* the endless sway only moves the layer: the filtered sticker is painted once, not every frame */
  margin: 22px 0 14px;
  animation: fq-sticker-slap .7s cubic-bezier(.2, 1.4, .4, 1) .6s both, fq-sticker-sway 5s ease-in-out 1.6s infinite !important;
}
/* scripts Fredoka One can't draw (or only partly: Vietnamese) use the same chunky sticker font per script as the
   character names (loaded by partials/sticker_script_font for just these letters) — never a thin fallback */
html:is([lang="ru"], [lang="uk"], [lang="ar"], [lang="vi"], [lang="hi"], [lang="th"], [lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="zh-TW"])
  .friendship-quiz :is(.ticketSet .ticket span, #bestTicket h3, #goodTicket h3, #fakeTicket h3) {
  font-family: var(--sticker-script-font), var(--fq-font) !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  text-transform: none;
}
/* the big result sticker is CAPITALS in every script that has them (Latin already; Cyrillic + Vietnamese too) —
   the small start-screen labels stay in normal case on purpose: easier to read at 14px and long names wrap less */
html:is([lang="ru"], [lang="uk"], [lang="vi"]) .friendship-quiz :is(#bestTicket h3, #goodTicket h3, #fakeTicket h3) { text-transform: uppercase; letter-spacing: .5px; }
html:is([lang="ko"], [lang="zh-CN"]) .friendship-quiz :is(.ticketSet .ticket span, #bestTicket h3, #goodTicket h3, #fakeTicket h3) { font-weight: 400 !important; }
html[lang="th"] .friendship-quiz :is(.ticketSet .ticket span, #bestTicket h3, #goodTicket h3, #fakeTicket h3) { font-weight: 600 !important; }
/* the "Congrats!" pill above takes the ticket's colour too (the page script sets green/purple/red inline) */
.friendship-quiz #results .box:has(#bestTicket[style*="block"]) #congbad { color: var(--hero) !important; }
.friendship-quiz .ticketSet .ticket span {
  display: inline-block;
  margin-top: 4px;
  color: var(--tier) !important;
  -webkit-text-fill-color: var(--tier);
  text-shadow: 0 1.5px 0 var(--tier-depth);
  filter:
    drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff)
    drop-shadow(0 3px 3px rgba(45, 20, 70, .18)) drop-shadow(0 0 4px var(--tier-glow));
  transform: rotate(var(--tier-tilt));
  line-height: 1.18;
}
/* small labels stay crisp on phones: a touch smaller, so long names (pt/es/pl…) wrap less */
@media (max-width: 480px) {
  .friendship-quiz .ticketSet .ticket span { font-size: 13.5px !important; letter-spacing: .4px; }
}
/* Japanese / Korean / Chinese: dense characters need a bigger size to stay legible inside the sticker edge
   (their names are short, so they still fit on one or two lines) */
html:is([lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="zh-TW"]) .friendship-quiz .ticketSet .ticket span { font-size: 17px !important; letter-spacing: 0; }
/* no spaces in ja/zh: keep the short name on one line instead of breaking "カッ|プ"; ko only breaks between words */
html:is([lang="ja"], [lang="zh-CN"], [lang="zh-TW"]) .friendship-quiz :is(.ticketSet .ticket span, #bestTicket h3, #goodTicket h3, #fakeTicket h3) { white-space: nowrap; }
html[lang="ko"] .friendship-quiz :is(.ticketSet .ticket span, #bestTicket h3, #goodTicket h3, #fakeTicket h3) { word-break: keep-all; }
/* Devanagari / Thai / Arabic marks sit above and below the letters: one size up keeps them clear of the edge */
html:is([lang="hi"], [lang="th"], [lang="ar"], [lang="vi"]) .friendship-quiz .ticketSet .ticket span { font-size: 15.5px !important; letter-spacing: 0; line-height: 1.35; }
@media (min-width: 768px) {
  html:is([lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="zh-TW"]) .friendship-quiz .ticketSet .ticket span { font-size: 19px !important; }
  html:is([lang="hi"], [lang="th"], [lang="ar"], [lang="vi"]) .friendship-quiz .ticketSet .ticket span { font-size: 17.5px !important; }
}
/* everything after the hero fades up last */
.friendship-quiz #results .text-center > :is(h4, .character-span, .divider, h6, a) { animation: fq-reveal-up .5s ease .7s both; }
.friendship-quiz #results .box:has(.chart-gauge) .text-center > h4 { animation: fq-score-pop .6s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
@keyframes fq-reveal-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fq-score-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fq-ticket-slap {
  0% { opacity: 0; transform: scale(1.7) rotate(-12deg); }
  60% { opacity: 1; transform: scale(.95) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .friendship-quiz #results *, .friendship-quiz #results .text-center > h5:first-child { animation: none !important; }
}
.friendship-quiz--character #results #characterName { font-size: 46px !important; margin: 8px 0 18px; }
.friendship-quiz--character #results .character-span {
  max-width: 460px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--fq-line);
  box-shadow: 0 6px 18px rgba(60, 26, 80, .06);
  font-size: 15.5px;
  line-height: 1.6;
  color: #4b4259;
}
@media (min-width: 768px) {
  .friendship-quiz--character #results #characterName { font-size: 58px !important; }
  .friendship-quiz--character #results .character-span { font-size: 17px; }
}
@keyframes fq-sticker-slap {
  0% { opacity: 0; transform: scale(1.9) rotate(-14deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg); }
}
@keyframes fq-sticker-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(-2deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .friendship-quiz #characterName { animation: none !important; }
}

/* match gauge (Default quizzes): the percentage was plain black 16px sans-serif */
.friendship-quiz .chart-gauge text#Value {
  font-family: var(--fq-font);
  font-weight: 800;
  font-size: 20px;
  fill: var(--fq-ink);
}
.friendship-quiz .chart-gauge .needle,
.friendship-quiz .chart-gauge .needle-center { fill: var(--fq-ink); }
/* the scrolling strip of every character type on the friend's start screen */
.friendship-quiz .marquee-c {
  margin: 4px 0 10px;
  /* names fade in/out at the card edges instead of being chopped */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.friendship-quiz .marquee-c .character { font-size: 26px !important; margin: 4px 0; }
.friendship-quiz .character-span {
  display: block;
  font-family: var(--fq-font) !important;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fq-muted);
  margin: 0 4px 6px;
}

/* ---------- share card (owner) ---------- */
/* the quiz's prize image (a ticket, a badge, a round illustration…): shown whole, never cropped */
.friendship-quiz #quesImg {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 130px;
  object-fit: contain;
  margin: 6px auto 14px;
  filter: drop-shadow(0 6px 14px rgba(60, 26, 80, .14));
}
.friendship-quiz .facebookbtn > .columns > br { display: none; }
.friendship-quiz #copylink {
  width: 100%;
  height: 48px;
  border: 1.5px dashed #f3b2c9 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  background: #fff7fa !important;
  color: var(--fq-ink) !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 0 12px;
}
.friendship-quiz .mytooltip { margin: 10px 0 12px; }
.friendship-quiz .mytooltip > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 1.5px solid var(--fq-pink) !important;
  border-radius: 999px;
  background: #fff;
  color: var(--fq-pink);
  font-size: 14px;
  font-weight: 700;
}
.friendship-quiz button,
.friendship-quiz .btn,
.friendship-quiz .btn-create,
.friendship-quiz input,
.friendship-quiz select { box-sizing: border-box; }
.friendship-quiz .btn {
  border-radius: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.friendship-quiz .btn.btn-success.long,
.friendship-quiz .btn.btn-warning.long,
.friendship-quiz .btn.btn-error.long {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  height: auto;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}
.friendship-quiz .btn.btn-success.long {
  border: 0;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 211, 102, .25);
}
.friendship-quiz .btn.btn-warning.long {
  border: 1.5px solid var(--fq-line);
  background: #fff;
  color: var(--fq-ink);
  margin-top: 10px;
}
.friendship-quiz .btn.btn-error.long {
  min-height: 46px;
  border: 1.5px solid #f4c7c8;
  background: #fff;
  color: var(--fq-wrong);
  font-size: 15px;
  margin-top: 10px;
}
.friendship-quiz .facebookbtn { margin-top: 10px; }
.friendship-quiz .facebookbtn > .columns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
/* Facebook + Messenger side by side when the language's word fits, otherwise each takes a full row */
.friendship-quiz .facebookbtn > .columns > .column:not(.col-sm-12) { flex: 1 1 0; min-width: max-content; padding: 0; }
.friendship-quiz .facebookbtn > .columns > .col-sm-12 { flex: 1 1 100%; padding: 0; margin: 0; }
.friendship-quiz .btn.fb,
.friendship-quiz .btn.msngr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin: 0 !important;
  padding: 0 12px;
  border: 0;
  color: #fff;
  font-size: 15px;
}
.friendship-quiz .btn.msngr img { width: 22px; height: 22px; }
.friendship-quiz .btn.fb { background: #1877f2; }
.friendship-quiz .btn.msngr { background: linear-gradient(135deg, #0695ff, #a334fa 60%, #ff6968); }
.friendship-quiz .share_addthis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}
.friendship-quiz .share_addthis .x-social { margin: 0; }
.friendship-quiz .share_addthis .icon-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  font-size: 20px;
}
.friendship-quiz .share_addthis .icon-social img { width: 22px; height: 22px; }
.friendship-quiz .share_addthis .icon-social .desktop-only { font-size: 14px; }
/* one even row of icon buttons on every screen (the "Share" words beside each icon wrapped the row on desktop) */
.friendship-quiz .share_addthis { flex-wrap: nowrap; gap: 8px; }
.friendship-quiz .share_addthis .x-social { flex: 1 1 0; min-width: 0; max-width: 52px; }
.friendship-quiz .share_addthis .x-social > a { display: block; }
.friendship-quiz .share_addthis .icon-social { width: 100%; min-width: 0; height: 44px; padding: 0; border-radius: 13px; }
.friendship-quiz .share_addthis .icon-social .desktop-only { display: none; }

/* photo answers: 3 per row from tablet up (the quiz markup uses 4 per row, too small in this column) */
@media (min-width: 768px) {
  .friendship-quiz .questions > .row > .Question__PaddingLeft__m01FU.col-md-3 { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ---------- scoreboards ---------- */
.friendship-quiz .bluetext h5,
.friendship-quiz .bluetext center h5 {
  font-size: 18px;
  font-weight: 800;
  color: var(--fq-ink);
  margin: 18px 0 10px;
}
.friendship-quiz .friendboard-sec {
  margin-top: 6px;
  padding: 10px;
  border-radius: 22px;
  box-shadow: var(--fq-card-shadow);
}
.friendship-quiz .friendboard-sec .friend-scoreboard {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}
/* light leaderboard header (same look as the table boards), not a heavy gradient bar */
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading {
  margin: 0;
  padding: 12px 8px;
  background: var(--fq-soft);
  border-bottom: 1px solid var(--fq-line);
  color: var(--fq-muted);
}
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--fq-muted);
}
.friendship-quiz .friendboard-sec .friend-scoreboard > .text-center { padding: 18px 10px; color: var(--fq-muted); font-size: 14px; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul li div { min-height: 50px; }
.friendship-quiz .friendboard-sec .friend-scoreboard .fa-trash { color: #b5abc0; font-size: 18px; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul li div span,
.friendship-quiz .friendboard-sec .friend-scoreboard ul li div span a { color: var(--fq-ink); font-weight: 600; }

.friendship-quiz .table {
  width: 100%;
  margin: 6px 0 4px;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--fq-card-shadow);
}
.friendship-quiz .table .thead-light th {
  padding: 12px 8px;
  border: 0;
  background: var(--fq-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  vertical-align: middle;
}
.friendship-quiz .table td,
.friendship-quiz .table tbody th {
  padding: 12px 8px;
  border-top: 1px solid var(--fq-line);
  vertical-align: middle;
}
.friendship-quiz .table .playerName,
.friendship-quiz .table .playerName a { display: block; font-size: 15px; font-weight: 700; color: var(--fq-ink); text-decoration: none; }
.friendship-quiz .table .playerScore,
.friendship-quiz .table .playerScore b { display: block; font-size: 12.5px; font-weight: 600; color: var(--fq-pink); white-space: nowrap; }
.friendship-quiz .table td img { max-width: 72px !important; }
.friendship-quiz .table .fa-trash { color: #b5abc0; font-size: 18px; }
.friendship-quiz .table + .text-center { padding: 14px 10px 4px; color: var(--fq-muted); font-size: 14px; }

/* ---- scoreboards as a modern leaderboard (all quiz types) ----
   Every player is a rounded card row with breathing room; a rank badge (gold / silver / bronze for the top
   3 — the board is already sorted by score) leads the row; name left-aligned and bold with a small "see
   answers" eye after it; the score as a pink pill under the name; the reward (sticker / ticket / gift)
   on the right. Column labels are small and quiet, no bar. */
.friendship-quiz table.table {
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.friendship-quiz table.table .thead-light tr > th {
  padding: 4px 16px 0 !important;
  background: transparent;
  border: 0;
  color: #9a90a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.friendship-quiz table.table .thead-light tr > th:first-child { text-align: left; padding-left: 60px !important; }
.friendship-quiz table.table tbody { counter-reset: fq-rank; }
.friendship-quiz table.table tbody tr { counter-increment: fq-rank; }
.friendship-quiz table.table tbody tr > th,
.friendship-quiz table.table tbody tr > td {
  padding: 12px 14px !important;
  background: #fff;
  border-top: 1px solid var(--fq-line);
  border-bottom: 1px solid var(--fq-line);
  vertical-align: middle;
  transition: background .2s ease;
}
.friendship-quiz table.table tbody tr > :first-child { border-left: 1px solid var(--fq-line); border-radius: 18px 0 0 18px; text-align: left; }
.friendship-quiz table.table tbody tr > :last-child { border-right: 1px solid var(--fq-line); border-radius: 0 18px 18px 0; }
.friendship-quiz table.table tbody tr:hover > * { background: #fff8fb; }
/* rank badge: pinned in its own left slot (not floated) so a long, wrapping name never pushes the score
   pill under it */
.friendship-quiz table.table tbody tr > th { position: relative; padding-left: 60px !important; }
.friendship-quiz table.table tbody tr > th::before {
  content: counter(fq-rank);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  background: #f3eef8;
  color: #6f6680;
  font-size: 13px;
  font-weight: 800;
}
.friendship-quiz table.table tbody tr:nth-child(1) > th::before { background: linear-gradient(145deg, #ffe48a, #f5a623); color: #6b4400; box-shadow: 0 4px 10px rgba(245, 166, 35, .35); }
.friendship-quiz table.table tbody tr:nth-child(2) > th::before { background: linear-gradient(145deg, #f2f4f7, #c3cad4); color: #4a5260; }
.friendship-quiz table.table tbody tr:nth-child(3) > th::before { background: linear-gradient(145deg, #fbd3b0, #d98a52); color: #5e2e0c; }
/* name, with the "see answers" eye right after it */
.friendship-quiz table.table .playerName { display: block; overflow: hidden; }
/* row-reverse puts the eye (first in the markup) after the name, so it never covers the last letter */
.friendship-quiz table.table .playerName a {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: var(--fq-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.friendship-quiz table.table .playerName a > i.fa-eye {
  flex: none;
  position: static;
  margin: 0;
  transform: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fde7f1;
  color: var(--fq-pink);
  font-size: 10px;
}
/* score pill */
.friendship-quiz table.table .playerScore { display: block; margin-top: 4px; }
.friendship-quiz table.table .playerScore b {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fde7f1;
  color: var(--fq-pink);
  font-size: 12px;
  font-weight: 700;
}
.friendship-quiz table.table tbody td { text-align: center; }
@media (max-width: 480px) {
  .friendship-quiz table.table tbody tr > th, .friendship-quiz table.table tbody tr > td { padding: 10px 10px !important; }
  .friendship-quiz table.table tbody tr > th { padding-left: 48px !important; }
  .friendship-quiz table.table tbody tr > th::before { width: 28px; height: 28px; left: 10px; }
  .friendship-quiz table.table .thead-light tr > th:first-child { padding-left: 48px !important; }
  .friendship-quiz table.table .playerName a { font-size: 15px; }
}
/* list boards (Default / Certificate): header and rows on one equal-column grid so each heading sits over
   its value whatever the column count (2 for friends, 3 with the creator's Delete); white rows with soft
   dividers; the medal (an absolutely placed ::before) keeps its left slot */
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading,
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  padding-left: 40px !important;
  padding-right: 10px !important;
}
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading > span,
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span { width: auto !important; text-align: center; }
/* names left-aligned here too (first column, heading and rows) */
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading > span:first-child,
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:first-child { text-align: left; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div {
  min-height: 60px;
  margin: 0 0 10px;
  background: #fff !important;
  border: 1px solid var(--fq-line) !important;
  border-radius: 18px;
  transition: background .2s ease;
}
/* the medal stays centred on the row at every width */
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div { position: relative; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div::before { top: 50% !important; left: 10px !important; transform: translateY(-50%); }
/* the list board (heading + rows) sits in a white card like the table boards on the other quiz types */
.friendship-quiz .container:has(> .result .friendboard-sec) {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--fq-card-shadow);
  padding: 8px 18px 8px !important;
  margin-top: 18px;
  width: calc(100% - 32px); /* same width as the result card above it */
}
@media (min-width: 768px) { .friendship-quiz .container:has(> .result .friendboard-sec) { width: 100%; max-width: 672px; } }
@media (min-width: 1024px) { .friendship-quiz .container:has(> .result .friendboard-sec) { max-width: 772px; } }
/* list boards as card rows too: no box around them, quiet column labels */
.friendship-quiz .friendboard-sec { padding: 0; box-shadow: none; background: transparent; }
.friendship-quiz .friendboard-sec .friend-scoreboard { border-radius: 0; overflow: visible; background: transparent; }
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading { background: transparent !important; border: 0 !important; padding-top: 4px; padding-bottom: 6px; }
.friendship-quiz .friendboard-sec .friend-scoreboard .table-heading span { color: #9a90a8 !important; font-size: 11px !important; letter-spacing: 1px; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul { margin: 0; padding: 0; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:first-child { font-size: 16px; font-weight: 700; }
/* same name + eye + score-pill treatment as the table boards (their medals stay as the rank marker) */
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fq-ink);
  text-decoration: none;
}
/* (the theme's fixed 100px span width also hit the name inside the link and pushed the eye away) */
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:first-child a > span { order: 1; width: auto !important; min-width: 0; }
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:first-child a > img,
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:first-child a > i {
  order: 2;
  flex: none;
  box-sizing: border-box;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 5px;
  border-radius: 50%;
  background: #fde7f1;
  color: var(--fq-pink) !important;
  font-size: 10px;
  object-fit: contain;
}
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div > span:nth-child(2) {
  justify-self: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fde7f1;
  color: var(--fq-pink) !important;
  font-size: 13px;
  font-weight: 700;
}
.friendship-quiz .friendboard-sec .friend-scoreboard ul li > div:hover { background: #fff8fb !important; }

/* promo banner and the empty ad holders keep their own behaviour; just round the banner */
.friendship-quiz .text-center > a > img[src*="cdn.helopal.club"] { border-radius: 18px !important; }

/* ---------- friend's answers page ---------- */
.friendship-quiz--answers .text-center > h3 font { color: var(--fq-ink); }
.friendship-quiz--answers .text-center > h3 { margin: 14px 0 8px; }
.friendship-quiz--answers .questionUpperDiv > div { margin-bottom: 12px; }

/* the certificate block's container had a fixed 75vh height, leaving a 100–150px blank band under the
   certificate; size it to the certificate instead */
.friendship-quiz--certificate .user_friendship_certificate > .main-container { height: auto !important; min-height: 0 !important; padding-bottom: 18px; }

/* ---------- friendship certificate page (phones) ----------
   The artwork (img/certificate-mob.png, 470x594) scales with the width while the frame took a vh height,
   so the seal slid under the names and a blank band appeared below. Keep the frame at the artwork's
   proportions and fit the text above the seal. */
@media (max-width: 480px) {
  .friendship-quiz--certificate .share-certificate .share-certificate-inner {
    box-sizing: border-box;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 470 / 594;
    /* bottom padding keeps the seal (lowest ~25% of the artwork) free of text; long names make the
       frame taller instead, and the artwork stretches with it */
    padding: 9% 0 32% !important;
    background-size: 100% 100% !important;
  }
  .friendship-quiz--certificate .share-certificate-heading,
  .friendship-quiz--certificate .share-certificate .friendship_certificate_usrfrendnam {
    overflow-wrap: anywhere;
  }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_year_head {
    font-size: clamp(18px, 5.6vw, 22px) !important;
    line-height: 1.25 !important;
    padding-top: 0 !important;
  }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_sub_head {
    font-size: 12.5px !important;
    padding-bottom: 2px !important;
  }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_quote {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  /* names stacked (friend, handshake, owner), as the original mobile design: each gets the full width */
  .friendship-quiz--certificate .share-certificate .friendship_certificate_usrnam_usrfrendnam {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2px 7% 0 !important;
  }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_usrnam_usrfrendnam .friendship_certificate_usrfrendnam {
    font-size: 16px !important;
    line-height: 21px !important;
  }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_usrnam_usrfrendnam .friendship_certificate_handshakeimg { width: auto !important; }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_handshakeimg img { width: 30px !important; height: 20px !important; }
}

/* Names have no length limit (pname is VARCHAR(255), no maxlength), so the certificate bounds them:
   the name under the title takes at most 2 lines, the "Name 🤝 Name" row stays one line, each name
   ending in "…" when too long. The heading above the frame keeps the full name. */
.friendship-quiz--certificate .share-certificate-inner > .friendship_certificate_usrfrendnam {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 7%;
}
.friendship-quiz--certificate .friendship_certificate_usrnam_usrfrendnam .friendship_certificate_usrfrendnam {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.friendship-quiz--certificate .friendship_certificate_usrnam_usrfrendnam .friendship_certificate_handshakeimg { flex: none; }
@media (min-width: 481px) {
  /* tablet/desktop artwork (img/certificate.png) is landscape, seal from ~70% down, names side by side:
     the full-width name above takes one line, the two names up to two lines each */
  .friendship-quiz--certificate .share-certificate-inner > .friendship_certificate_usrfrendnam { -webkit-line-clamp: 1; }
  .friendship-quiz--certificate .friendship_certificate_usrnam_usrfrendnam { align-items: center; }
  .friendship-quiz--certificate .friendship_certificate_usrnam_usrfrendnam .friendship_certificate_usrfrendnam {
    flex: 1 1 0;
    width: auto !important;
    max-width: 40%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
}
@media (max-width: 340px) {
  .friendship-quiz--certificate .share-certificate-inner > .friendship_certificate_usrfrendnam { -webkit-line-clamp: 1; }
  .friendship-quiz--certificate .share-certificate .share-certificate-inner { padding-top: 7% !important; }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_quote { line-height: 1.35 !important; }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_usrnam_usrfrendnam .friendship_certificate_usrfrendnam { font-size: 15px !important; line-height: 20px !important; }
  .friendship-quiz--certificate .share-certificate .friendship_certificate_handshakeimg img { width: 26px !important; height: 18px !important; }
}
.friendship-quiz--certificate .share-certificate-heading {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 14px !important;
}

.friendship-quiz--certificate .create-quiz-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 54px;
  border-radius: 16px;
  background: var(--fq-gradient) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  box-shadow: 0 10px 22px rgba(237, 22, 129, .25);
}

/* ---------- quiz list (/{lang}/dare) ---------- */
.friendship-quiz--list .dare-wrap { max-width: 1120px; margin: 14px auto 36px; padding: 0 16px; }
.friendship-quiz--list .dare-wrap h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  margin: 6px 0 16px;
  background: var(--fq-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.friendship-quiz--list .dare-grid { gap: 14px; }
.friendship-quiz--list .dare-card {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--fq-card-shadow);
}
.friendship-quiz--list .dare-card .thumb { aspect-ratio: 1 / 1; object-fit: cover; }
.friendship-quiz--list .dare-card .body { padding: 10px 12px 12px; gap: 10px; }
.friendship-quiz--list .dare-badge { display: none; }
.friendship-quiz--list .dare-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px !important;
  line-height: 1.35;
  font-weight: 700;
  color: var(--fq-ink);
}
.friendship-quiz--list .dare-card .btn-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--fq-gradient);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px rgba(237, 22, 129, .22);
}
/* hover glow via box-shadow, never filter/transform on the link: those would make the link the containing block of its
   stretched ::after, shrinking the click area back to the button exactly while the pointer is over the thumbnail */
.friendship-quiz--list .dare-card .btn-create:hover { background: var(--fq-gradient); box-shadow: 0 8px 20px rgba(237, 22, 129, .34); }
/* the picture opens the quiz through its own plain link (.thumb-link); no stretched ::after overlay and no transform
   while pressed — the moving overlay made thumbnail clicks unreliable (2026-10-03) */
.friendship-quiz--list .dare-card { position: relative; }
.friendship-quiz--list .dare-card .thumb-link { display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.friendship-quiz--list .dare-card .thumb-link .thumb { display: block; width: 100%; -webkit-user-drag: none; user-select: none; }
.friendship-quiz--list .dare-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(60, 26, 80, .14); }
.friendship-quiz--list .dare-card:focus-within { outline: 3px solid rgba(237, 22, 129, .35); outline-offset: 2px; }
.friendship-quiz--list .dare-card .btn-create .icon { flex: none; }
@media (max-width: 560px) {
  .friendship-quiz--list .dare-wrap { padding: 0 14px; }
  .friendship-quiz--list .dare-wrap h1 { font-size: 22px; }
  .friendship-quiz--list .dare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .friendship-quiz--list .dare-card h3 { font-size: 14px !important; }
  .friendship-quiz--list .dare-card .btn-create { font-size: 13.5px; }
}

/* ---------- Surprise gift (Trick or Treat): premium box + cinematic reveal ----------
   Same elements and behaviour as before (#click_gift checkbox, .click_label lid with the existing
   onclick, .wishes_container filled by the page script, confetti from makeItRain) — only the look and
   motion change: a velvet stage, a glossy ruby box with gold satin ribbon and bow, idle float + wiggle,
   then the lid flies off, light rays burst and the gift rises on a glowing card. */
.friendship-quiz--gift .outer-box-gift-container {
  /* the box mouth sits (92px + box height × scale) above the stage bottom; the open-burst effects aim there */
  --gift-scale: 1;
  --gift-mouth: calc(92px + 113px * var(--gift-scale));
  position: relative;
  height: auto;
  /* sized to fit box + risen card + a ~40px gap above it (see the size ladder at the end of this section) */
  min-height: 470px;
  margin: 10px 0 6px;
  padding: 0 0 16px;
  align-items: flex-end;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  /* a slowly drifting aurora — pink, violet, orange and a touch of cyan over deep night — with a warm
     glow on the floor under the box */
  background:
    radial-gradient(34% 12% at 50% calc(100% - 92px), rgba(255, 176, 92, .5) 0%, transparent 70%),
    radial-gradient(38% 30% at 18% 22%, rgba(255, 79, 163, .55) 0%, transparent 70%),
    radial-gradient(40% 34% at 86% 28%, rgba(124, 92, 255, .6) 0%, transparent 70%),
    radial-gradient(46% 36% at 46% 92%, rgba(255, 128, 64, .42) 0%, transparent 70%),
    radial-gradient(30% 24% at 78% 78%, rgba(56, 225, 255, .22) 0%, transparent 70%),
    linear-gradient(165deg, #1d0a36 0%, #2b0d4d 48%, #12061f 100%);
  background-size: 100% 100%, 160% 160%, 160% 160%, 160% 160%, 160% 160%, 100% 100%;
  animation: fq-aurora 16s ease-in-out infinite alternate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(40, 10, 70, .35);
}
@keyframes fq-aurora {
  0%   { background-position: 0 0, 0% 0%, 100% 0%, 50% 100%, 100% 100%, 0 0; }
  50%  { background-position: 0 0, 30% 20%, 70% 30%, 30% 80%, 60% 70%, 0 0; }
  100% { background-position: 0 0, 10% 40%, 90% 10%, 70% 90%, 80% 50%, 0 0; }
}
/* glints: a few bright twinkles with a soft halo */
.friendship-quiz--gift .outer-box-gift-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(3px 3px at 12% 18%, #fff 45%, rgba(255, 255, 255, .25) 60%, transparent 75%),
    radial-gradient(2px 2px at 28% 42%, #ffe9a8 50%, transparent 70%),
    radial-gradient(3px 3px at 46% 10%, #fff 45%, rgba(255, 255, 255, .25) 60%, transparent 75%),
    radial-gradient(2px 2px at 64% 30%, #ffd1ec 50%, transparent 70%),
    radial-gradient(3.5px 3.5px at 84% 14%, #fff 45%, rgba(255, 255, 255, .3) 60%, transparent 75%),
    radial-gradient(2px 2px at 92% 46%, #b9f3ff 50%, transparent 70%),
    radial-gradient(2px 2px at 7% 58%, #ffd1ec 50%, transparent 70%),
    radial-gradient(2.5px 2.5px at 72% 60%, #fff 50%, transparent 70%);
  animation: fq-gift-twinkle 2.6s ease-in-out infinite alternate;
}
/* on open: a light bloom from the box mouth + soft holographic rays that turn slowly */
.friendship-quiz--gift .outer-box-gift-container::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--gift-mouth);
  width: 820px;
  height: 820px;
  margin: 0 0 -410px -410px;
  z-index: -1;
  opacity: 0;
  scale: .3;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 250, 230, .95) 0%, rgba(255, 214, 140, .7) 8%, rgba(255, 120, 190, .35) 20%, transparent 40%),
    repeating-conic-gradient(from 0deg,
      rgba(255, 120, 190, .12) 0deg 5deg, transparent 5deg 15deg,
      rgba(255, 210, 120, .11) 15deg 20deg, transparent 20deg 30deg,
      rgba(140, 220, 255, .10) 30deg 35deg, transparent 35deg 45deg);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 22%, transparent 60%);
  mask: radial-gradient(circle, #000 0%, #000 22%, transparent 60%);
}
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked)::after {
  animation: fq-bloom-in .8s cubic-bezier(.2, .9, .3, 1) .2s both, fq-holo-spin 22s linear 1s infinite;
}
/* on open: one shockwave ring + a spray of glowing sparkles from the box mouth (the sparkles are one dot
   with many coloured box-shadows) */
.friendship-quiz--gift .card-gift-container::before,
.friendship-quiz--gift .card-gift-container::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--gift-mouth);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.friendship-quiz--gift .card-gift-container::before {
  width: 120px;
  height: 120px;
  margin: 0 0 -60px -60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 236, 200, .9);
  box-shadow: 0 0 24px rgba(255, 180, 220, .8), inset 0 0 18px rgba(255, 220, 160, .6);
}
.friendship-quiz--gift .card-gift-container::after {
  width: 6px;
  height: 6px;
  margin: 0 0 -3px -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    -120px -90px 0 1px #ffd166, 110px -110px 0 0 #ff7ab8, -60px -150px 0 1px #fff, 70px -160px 0 0 #8be9ff,
    -160px -30px 0 0 #ff7ab8, 160px -40px 0 1px #ffd166, -30px -180px 0 0 #c7a6ff, 30px -120px 0 1px #fff,
    -100px -170px 0 0 #8be9ff, 140px -150px 0 0 #fff, -150px -120px 0 1px #c7a6ff, 90px -60px 0 0 #ffd166,
    -80px -40px 0 0 #fff, 50px -200px 0 1px #ff7ab8, -190px -80px 0 0 #ffd166, 190px -90px 0 0 #c7a6ff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9));
}
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .card-gift-container::before { animation: fq-shockwave .9s cubic-bezier(.2, .8, .3, 1) .25s both; }
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .card-gift-container::after { animation: fq-sparkle-burst 1.3s cubic-bezier(.15, .8, .3, 1) .3s both; }
@keyframes fq-bloom-in { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes fq-holo-spin { to { rotate: 360deg; } }
@keyframes fq-shockwave { 0% { opacity: 1; scale: .2; } 100% { opacity: 0; scale: 3.2; } }
@keyframes fq-sparkle-burst { 0% { opacity: 1; scale: .1; } 60% { opacity: 1; } 100% { opacity: 0; scale: 1.25; translate: 0 -24px; } }
.friendship-quiz--gift .card-gift-container { padding-bottom: 0; }
.friendship-quiz--gift .arrow_gift { margin-left: 0 !important; }
.friendship-quiz--gift .arrowsign { display: none !important; }

/* idle: float + a wiggle every few seconds, with a soft glow under the box */
.friendship-quiz--gift .birthday-gift { margin-top: 70px; }
/* The gift is a rendered 3D image — Microsoft Fluent Emoji "Wrapped gift" 3D (MIT licence,
   public/img/friendship-quiz/gift-3d.png, 256px) — split in two on the same elements so the opening still
   works: the box element shows the box body, the lid element shows the lid with its bow. Both draw the
   same image at the same scale (0.96 → 245.76px), offset so the halves meet exactly where they do in the
   image (lid: x22–231, y18–121; body: x38–215, y122–239). Shadows use drop-shadow so they follow the art. */
.friendship-quiz--gift .gift_container {
  width: 170px;
  height: 113px;
  border-radius: 0;
  background: url("../img/friendship-quiz/gift-3d.png") no-repeat -36.5px -117.1px / 245.76px 245.76px;
  box-shadow: none;
  filter: drop-shadow(0 18px 12px rgba(20, 0, 30, .45)) drop-shadow(0 0 34px rgba(255, 170, 60, .28));
  animation: fq-gift-float 3.4s ease-in-out infinite;
}
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .gift_container { animation: none; }
.friendship-quiz--gift .gift_container::before,
.friendship-quiz--gift .gift_container::after { display: none; }
/* once the lid is off, the top of the box reads as an opening: shadowed inner wall under a lit rim */
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .gift_container::before {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  width: auto;
  height: 16px;
  border: 0;
  border-top: 2px solid rgba(255, 236, 170, .9);
  border-radius: 8px 8px 0 0;
  transform: none;
  background: linear-gradient(180deg, rgba(110, 50, 0, .75) 0%, rgba(110, 50, 0, 0) 100%);
  animation: fq-reveal-up .25s ease .12s both;
}
/* lid + bow (drawn in the content box — the transparent padding below it is the tap area while closed) */
.friendship-quiz--gift .click_label {
  box-sizing: content-box;
  width: 200.6px;
  height: 100px;
  left: -15.4px;
  top: -100px;
  border-radius: 0;
  background: url("../img/friendship-quiz/gift-3d.png") no-repeat -21.1px -17.3px / 245.76px 245.76px;
  background-origin: content-box;
  /* drop-shadow follows the painted lid only (a box-shadow would outline the transparent tap area) */
  box-shadow: none;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .3));
  transform-origin: 50% 100%;
  animation: none;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), top .9s cubic-bezier(.2, .8, .2, 1), opacity .5s ease .45s;
}
.friendship-quiz--gift .click_label::before,
.friendship-quiz--gift .click_label::after { display: none; }
/* the whole box opens it (transparent hit area under the lid, only while closed) */
.friendship-quiz--gift #click_gift:not(:checked) + .click_label {
  padding-bottom: 113px;
  background-clip: content-box;
  z-index: 3;
  animation: fq-gift-wiggle 4.2s ease-in-out 1.2s infinite;
}
/* open, step 1: the box squashes and recoils (anticipation) and warm light spills out of it */
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .gift_container {
  transform-origin: 50% 100%;
  animation: fq-box-pop .45s cubic-bezier(.3, .7, .4, 1) both;
  /* warm light spilling up out of the open box */
  filter: drop-shadow(0 20px 12px rgba(20, 0, 30, .45)) drop-shadow(0 -26px 34px rgba(255, 214, 140, .75)) drop-shadow(0 0 34px rgba(255, 90, 160, .32));
  transition: filter .6s ease .3s;
}
/* step 2: the lid pops up with a tilt, then tumbles off the side under gravity */
.friendship-quiz--gift #click_gift:checked + .click_label {
  top: -100px;
  transform-origin: 50% 100%;
  transition: none;
  animation: fq-lid-off .9s cubic-bezier(.33, .66, .5, 1) .08s both;
}

/* the reveal: the gift rises from the box on a glowing card */
.friendship-quiz--gift .wishes_container,
.friendship-quiz--gift .wishes_container.moved {
  left: 50%;
  bottom: 100%;
  width: 230px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fff4fa 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 18px 40px rgba(0, 0, 0, .35), 0 0 70px rgba(255, 200, 120, .55);
  color: var(--fq-ink);
  opacity: 0;
  z-index: -1;
  transform: translate(-50%, 100%);
  /* grows from its bottom-centre, i.e. out of the box mouth */
  transform-origin: 50% 100%;
  clip-path: inset(0 0 100% 0);
  transition: none;
}
/* step 3: the gift rises OUT of the box — the clip keeps everything below the box's top edge hidden, so
   it appears to come up from inside — and eases to rest just above the box */
.friendship-quiz--gift #click_gift:checked ~ .wishes_container {
  opacity: 1;
  z-index: 5;
  /* resting state: no clip, so the card's glow and shadow show in full once it has risen */
  transform: translate(-50%, -18px);
  clip-path: none;
  /* "backwards" holds the hidden start frame during the delay; after the rise the rule above applies */
  animation: fq-gift-rise 1s cubic-bezier(.3, .6, .35, 1) .3s backwards;
}
.friendship-quiz--gift .image_gift,
.friendship-quiz--gift .image_gift.large {
  display: block;
  width: auto;
  min-width: 0;
  max-width: 100%;
  max-height: 140px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
}
/* (#results scope: the result-heading rule "#results .bigFont" also matches this element) */
.friendship-quiz--gift #results p.gift_name,
.friendship-quiz--gift .gift_name {
  margin: 10px 0 0;
  font-size: 18px !important;
  line-height: 1.25;
  font-weight: 800;
  color: transparent !important;
  background: var(--fq-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}
.friendship-quiz--gift .gift_name:empty { display: none; }

/* "Tap to open" pill. The page script hides it (display:none) on open, which made the box jump down;
   keep its space and fade it instead so the box stays put while the gift rises. */
.friendship-quiz--gift .helper_gift { display: block !important; margin-top: 16px; transition: opacity .3s ease, visibility .3s; }
.friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .helper_gift { opacity: 0; visibility: hidden; }
.friendship-quiz--gift .help_gift p {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  animation: fq-gift-pulse 1.8s ease-in-out infinite;
}

@keyframes fq-box-pop {
  0% { transform: scale(1, 1); }
  22% { transform: scale(1.06, .9); }
  48% { transform: scale(.97, 1.05); }
  72% { transform: scale(1.01, .99); }
  100% { transform: scale(1, 1); }
}
@keyframes fq-lid-off {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  12% { transform: translate(0, 4px) rotate(0); }
  34% { transform: translate(-14px, -78px) rotate(-16deg); }
  52% { transform: translate(-58px, -104px) rotate(-38deg); }
  80% { opacity: 1; }
  100% { transform: translate(-230px, 190px) rotate(-150deg); opacity: 0; }
}
/* the card comes up small (narrower than the box mouth) from inside the box and grows steadily to full
   size as it rises. Card bottom starts 30% below the rim with its top just at the rim; the clip (bottom
   inset = depth below rim ÷ scale) hides whatever is still inside the box. */
@keyframes fq-gift-rise {
  0% { transform: translate(-50%, 30%) scale(.3); clip-path: inset(0 0 100% 0); }
  20% { transform: translate(-50%, 15%) scale(.42); clip-path: inset(0 0 36% 0); }
  40% { transform: translate(-50%, 0) scale(.58); clip-path: inset(0 0 0 0); }
  100% { transform: translate(-50%, -18px) scale(1); clip-path: inset(0 0 0 0); }
}
@keyframes fq-gift-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fq-gift-wiggle {
  0%, 82%, 100% { transform: rotate(0); }
  85% { transform: rotate(-5deg); }
  88% { transform: rotate(5deg); }
  91% { transform: rotate(-3deg); }
  94% { transform: rotate(2deg); }
}
@keyframes fq-gift-rays { to { transform: rotate(360deg); } }
@keyframes fq-gift-twinkle { from { opacity: .45; } to { opacity: 1; } }
@keyframes fq-gift-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
/* Size ladder. The box and the card live in .main_container_gift and scale TOGETHER (from the bottom),
   so they always keep the same proportions; the stage height is matched to each step so the risen card
   sits ~40px below the stage top. Phone (361–767px) is the 1× base: box 170px, card 230px, picture 140px. */
@media (max-width: 360px) {
  .friendship-quiz--gift .outer-box-gift-container { min-height: 430px; --gift-scale: .9; }
  .friendship-quiz--gift .main_container_gift { transform: scale(.9); transform-origin: 50% 100%; }
}
@media (min-width: 768px) {
  /* tablet / laptop: a little bigger, and short enough that heading + stage + score fit a 1366×768 laptop */
  .friendship-quiz--gift .outer-box-gift-container { min-height: 500px; --gift-scale: 1.1; }
  .friendship-quiz--gift .main_container_gift { transform: scale(1.1); transform-origin: 50% 100%; }
}
@media (min-width: 768px) and (min-height: 860px) {
  /* tall screens (portrait tablets, full-HD desktops): room for a bigger gift */
  .friendship-quiz--gift .outer-box-gift-container { min-height: 560px; --gift-scale: 1.25; }
  .friendship-quiz--gift .main_container_gift { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .friendship-quiz--gift .gift_container,
  .friendship-quiz--gift #click_gift:not(:checked) + .click_label,
  .friendship-quiz--gift .outer-box-gift-container::before,
  .friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked)::after,
  .friendship-quiz--gift .help_gift p { animation: none; }
  .friendship-quiz--gift .outer-box-gift-container { animation: none; }
  .friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked)::after { opacity: 1; scale: 1; }
  .friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .card-gift-container::before,
  .friendship-quiz--gift .outer-box-gift-container:has(#click_gift:checked) .card-gift-container::after { animation: none; }
}


/* ---------- small phones ---------- */
@media (max-width: 360px) {
  .friendship-quiz .container { padding-left: 12px; padding-right: 12px; }
  .friendship-quiz .sides > .box, .friendship-quiz .container#entername .box { padding: 20px 14px; border-radius: 20px; }
  .friendship-quiz .questions > h5 { font-size: 18px; }
  .friendship-quiz .option h5, .friendship-quiz .option .Question__h5_lineheight__2u7Xf { font-size: 14.5px; }
  .friendship-quiz .option:has(img) h5,
  .friendship-quiz .option:has(img) .Question__h5_lineheight__2u7Xf { font-size: 12.5px; }
  .friendship-quiz .card-gradient { padding: 16px 8px 10px; border-radius: 20px; }
  .friendship-quiz #entername .text-center h3:first-of-type,
  .friendship-quiz #congrats { font-size: 21px !important; }
  .friendship-quiz .table .thead-light th { font-size: 12px; padding: 10px 6px; }
  .friendship-quiz .table td, .friendship-quiz .table tbody th { padding: 10px 6px; }
}

/* the site header keeps one row on the quiz pages at 320–360px (logo + icons) */
@media (max-width: 360px) {
  html:has(.friendship-quiz) .site-navbar > .container { flex-wrap: nowrap; }
  html:has(.friendship-quiz) .site-navbar .logo-txt img { max-width: 118px !important; }
}

/* ---------- phone type scale (standard mobile sizes: 16px body, ≥13px small labels) ---------- */
@media (max-width: 767px) {
  .friendship-quiz .option h5,
  .friendship-quiz .option .Question__h5_lineheight__2u7Xf { font-size: 16px; }
  .friendship-quiz .option:has(img) h5,
  .friendship-quiz .option:has(img) .Question__h5_lineheight__2u7Xf { font-size: 14px; }
  .friendship-quiz .questions > h5 { font-size: 20px; }
  .friendship-quiz .smallGreyText { font-size: 16px; }
  .friendship-quiz .skipButton { font-size: 14px; }
  .friendship-quiz #quizzess > p, .friendship-quiz #entername .box > p,
  .friendship-quiz #quizzess > p b, .friendship-quiz #entername .box > p b,
  .friendship-quiz #quizzess > p small, .friendship-quiz #entername .box > p small,
  .friendship-quiz #entername .box li, .friendship-quiz #quizzess li { font-size: 15px; }
  .friendship-quiz p.h6 { font-size: 16px; }
  .friendship-quiz font[size] b, .friendship-quiz font[size] { font-size: 15px; }
  .friendship-quiz #copylink { font-size: 15px; }
  .friendship-quiz .mytooltip > .btn { font-size: 15px; }
  .friendship-quiz .friendboard-sec .friend-scoreboard .table-heading span,
  .friendship-quiz .table .thead-light th { font-size: 13px; }
  .friendship-quiz .table .playerScore, .friendship-quiz .table .playerScore b { font-size: 13px; }
  .friendship-quiz .friendboard-sec .friend-scoreboard ul li div span,
  .friendship-quiz .friendboard-sec .friend-scoreboard ul li div span a { font-size: 15px; }
  .friendship-quiz .friendboard-sec .friend-scoreboard > .text-center,
  .friendship-quiz .table + .text-center { font-size: 15px; }
  .friendship-quiz--list .dare-card h3 { font-size: 15px !important; }
  .friendship-quiz--list .dare-card .btn-create { font-size: 14px; }
}
@media (max-width: 360px) {
  .friendship-quiz .option h5,
  .friendship-quiz .option .Question__h5_lineheight__2u7Xf { font-size: 15px; }
  .friendship-quiz .option:has(img) h5,
  .friendship-quiz .option:has(img) .Question__h5_lineheight__2u7Xf { font-size: 13px; }
  .friendship-quiz .questions > h5 { font-size: 19px; }
  .friendship-quiz--list .dare-card h3 { font-size: 14px !important; }
}

/* ---------- tablet & desktop scale ----------
   Phones keep the sizes above; from 768px the column widens and type, controls, cards and images grow
   to standard desktop sizes (owner: "on big screen everything should be standard size"). */
@media (min-width: 768px) {
  .friendship-quiz .container { max-width: 720px; padding-left: 24px; padding-right: 24px; }
  .friendship-quiz .countdown { max-width: 672px; }
  .friendship-quiz .sides > .box,
  .friendship-quiz .container#entername .box { max-width: none; padding: 32px 36px; border-radius: 28px; }
  .friendship-quiz .card-gradient { padding: 26px 22px 20px; border-radius: 28px; }

  .friendship-quiz #quizzess > h3, .friendship-quiz #quizzess > h4,
  .friendship-quiz #entername .box > h3, .friendship-quiz #entername .box > h4 { font-size: 18px !important; }
  .friendship-quiz #quizzess > p, .friendship-quiz #entername .box > p,
  .friendship-quiz #quizzess > p b, .friendship-quiz #entername .box > p b,
  .friendship-quiz #quizzess > p small, .friendship-quiz #entername .box > p small,
  .friendship-quiz #entername .box li, .friendship-quiz #quizzess li { font-size: 16px; }
  .friendship-quiz p.h6 { font-size: 17px; }
  .friendship-quiz font[size] b, .friendship-quiz font[size] { font-size: 16px; }

  .friendship-quiz #sel1, .friendship-quiz #nametb { height: 58px; font-size: 18px; border-radius: 16px !important; }
  .friendship-quiz .normal-button, .friendship-quiz .roundy { min-height: 60px; font-size: 18px; border-radius: 18px; }
  .friendship-quiz .skipButton { font-size: 15px; padding: 9px 18px; }

  .friendship-quiz .countdown ul { padding-top: 26px; }
  .friendship-quiz .countdown ul li { height: 8px; }
  .friendship-quiz .countdown ul li.currentQuestion::after,
  .friendship-quiz .countdown ul::after { font-size: 15px; line-height: 18px; }
  .friendship-quiz .smallGreyText { font-size: 18px; }

  .friendship-quiz .questions > h5 { font-size: 25px; margin: 0 8px 20px; }
  .friendship-quiz .option { border-radius: 20px; padding: 8px; }
  .friendship-quiz .option h5,
  .friendship-quiz .option .Question__h5_lineheight__2u7Xf { font-size: 18px; }
  .friendship-quiz .option:not(:has(img)) .card-body { min-height: 56px; }
  .friendship-quiz .option:has(img) h5,
  .friendship-quiz .option:has(img) .Question__h5_lineheight__2u7Xf { font-size: 16px; }
  .friendship-quiz .Question__PaddingLeft__m01FU { padding: 7px; }

  .friendship-quiz #results h1.heading, .friendship-quiz #results .bigFont { font-size: 32px !important; }
  .friendship-quiz #congbad { font-size: 24px; }
  .friendship-quiz #results h4 { font-size: 22px; }
  .friendship-quiz kbd#congo { font-size: 24px; padding: 8px 18px; }
  .friendship-quiz #results h6 { font-size: 18px; }
  .friendship-quiz #bestTicket h3, .friendship-quiz #goodTicket h3, .friendship-quiz #fakeTicket h3 { font-size: 32px !important; }
  .friendship-quiz #results .heading.bigFont + img,
  .friendship-quiz #bestTicket img, .friendship-quiz #goodTicket img, .friendship-quiz #fakeTicket img {
    max-width: min(320px, 80%) !important;
    max-height: 180px;
  }
  .friendship-quiz .character, .friendship-quiz #characterName { font-size: 40px !important; }
  .friendship-quiz .character-span { font-size: 18px; }

  .friendship-quiz .ticketSet { gap: 16px; }

  .friendship-quiz #quesImg { max-width: 200px; max-height: 170px; }
  .friendship-quiz #copylink { height: 54px; font-size: 16px; }
  .friendship-quiz .mytooltip > .btn { height: 46px; font-size: 16px; padding: 0 28px; }
  .friendship-quiz .btn.btn-success.long,
  .friendship-quiz .btn.btn-warning.long { min-height: 58px; font-size: 18px; }
  .friendship-quiz .btn.btn-error.long { min-height: 52px; font-size: 16px; }
  .friendship-quiz .btn.fb, .friendship-quiz .btn.msngr { height: 52px; font-size: 17px; }
  .friendship-quiz .share_addthis { gap: 12px; }
  .friendship-quiz .share_addthis .x-social { max-width: 60px; }
  .friendship-quiz .share_addthis .icon-social { height: 52px; font-size: 24px; border-radius: 15px; }
  .friendship-quiz .share_addthis .icon-social img { width: 26px; height: 26px; }

  .friendship-quiz .bluetext h5, .friendship-quiz .bluetext center h5 { font-size: 22px; margin: 26px 0 14px; }
  .friendship-quiz .table .thead-light th,
  .friendship-quiz .friendboard-sec .friend-scoreboard .table-heading span { font-size: 15px; padding: 14px 10px; }
  .friendship-quiz .table td, .friendship-quiz .table tbody th { padding: 14px 10px; }
  .friendship-quiz .table .playerName, .friendship-quiz .table .playerName a { font-size: 17px; }
  .friendship-quiz .table .playerScore, .friendship-quiz .table .playerScore b { font-size: 14px; }
  .friendship-quiz .table td img { max-width: 110px !important; }
  .friendship-quiz .friendboard-sec .friend-scoreboard ul li div { min-height: 60px; }
  .friendship-quiz .friendboard-sec .friend-scoreboard ul li div span,
  .friendship-quiz .friendboard-sec .friend-scoreboard ul li div span a { font-size: 16px; }
  .friendship-quiz .friendboard-sec .friend-scoreboard > .text-center,
  .friendship-quiz .table + .text-center { font-size: 16px; }

  .friendship-quiz--answers .text-center > h3 { font-size: 26px !important; }
  .friendship-quiz--answers .questions > .row > .Question__PaddingLeft__m01FU.col-6 { max-width: 220px; }
  .friendship-quiz--answers .options h5 { font-size: 17px; }

  .friendship-quiz--list .dare-wrap h1 { font-size: 32px; margin: 10px 0 22px; }
  .friendship-quiz--list .dare-card h3 { font-size: 16px !important; }
  .friendship-quiz--list .dare-card .btn-create { min-height: 46px; font-size: 15px; }
}
@media (min-width: 1024px) {
  .friendship-quiz .container { max-width: 820px; }
  .friendship-quiz .countdown { max-width: 772px; }
  .friendship-quiz .questions > h5 { font-size: 27px; }
  /* photo answers 4 per row on desktop (3 per row on tablet) */
  .friendship-quiz .questions > .row > .Question__PaddingLeft__m01FU.col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .friendship-quiz--list .dare-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
}

/* ---------- "More friendship quizzes" strip under a friend's result (partials/friendship_quiz_more) ----------
   a white card the width of the result card; a swipeable row of quiz cards (square thumbnail + 2-line title)
   that snap into place; "See all" opens the full list. */
.friendship-quiz .fq-more {
  box-sizing: border-box;
  width: calc(100% - 24px);
  margin: 18px auto 0;
  padding: 16px 0 14px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--fq-card-shadow);
  text-align: left;
  animation: fq-reveal-up .5s ease .9s both;
}
.friendship-quiz .fq-more__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 10px;
}
.friendship-quiz .fq-more__title { margin: 0; font-size: 17px !important; font-weight: 800; color: var(--fq-ink); }
.friendship-quiz .fq-more__all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fde7f1;
  color: var(--fq-pink) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.friendship-quiz .fq-more__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 18px;
  padding: 2px 18px 6px;
  scrollbar-width: none;
}
.friendship-quiz .fq-more__row::-webkit-scrollbar { display: none; }
.friendship-quiz .fq-more__card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--fq-ink) !important;
  text-decoration: none !important;
  transition: transform .2s ease;
}
.friendship-quiz .fq-more__card:hover { transform: translateY(-3px); }
.friendship-quiz .fq-more__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f3eef8;
  box-shadow: 0 6px 14px rgba(60, 26, 80, .12);
}
.friendship-quiz .fq-more__card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .friendship-quiz .fq-more { width: 100%; max-width: 672px; }
  .friendship-quiz .fq-more__title { font-size: 20px !important; }
  .friendship-quiz .fq-more__card { flex-basis: 150px; }
  .friendship-quiz .fq-more__card span { font-size: 14px; }
}
@media (min-width: 1024px) { .friendship-quiz .fq-more { max-width: 772px; } }
@media (prefers-reduced-motion: reduce) { .friendship-quiz .fq-more { animation: none; } }

/* ---------- ad slots (partials/site_ad_slot: the site's standard AdSense / GAM block, unchanged) ----------
   spacing only — the ad itself is never styled, resized or hidden */
.friendship-quiz .site-ad-slot { width: 100%; margin: 20px auto 24px; text-align: center; clear: both; }
/* some slots sit straight in the page wrapper (not in the content column), so a responsive unit stretched
   to ~1190px on desktop, wider than the cards: keep every slot to the content column's width (container only;
   the responsive ad sizes itself to it) */
@media (min-width: 768px) { .friendship-quiz .site-ad-slot { max-width: 672px; margin-left: auto; margin-right: auto; } }
@media (min-width: 1024px) { .friendship-quiz .site-ad-slot { max-width: 772px; } }
