/* Cover, login, conversation cards, myth vs fact, earn a badge and the
   resource page. Coordinates are artboard px measured off Storyboard 2a. */

/* ---------- the mint-bordered card the content screens share ----------
   A 13px mint band around a white rounded panel (p12, p24, p27, p31). */

.mintcard {
  position: absolute;
  border: 12px solid var(--mint);
  border-radius: 20px;
  outline: 1px solid var(--aqua);
  outline-offset: -1px;
  background: var(--white);
}

/* The lighter bordered panel used for answer lists and side notes (p17). */
.panel {
  position: absolute;
  border: 2px solid #cfe3e6;
  border-radius: 14px;
  background: var(--white);
}

/* ---------- hover definitions ---------- */

.gloss {
  position: relative;
  display: inline-block;
  /* Slim side padding so trailing punctuation sits right against the highlight. */
  padding: 2px 3px;
  border-radius: 4px;
  background: #b8d537;
  box-shadow: none;
  color: var(--ink);
  line-height: 1.25;
  vertical-align: baseline;
  cursor: help;
}

.tooltip,
#tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: 320px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: none !important;
  border-radius: 10px;
  background: #f0f9bd !important;
  box-shadow: none !important;
  filter: none !important;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.tooltip strong {
  font-weight: var(--fw-bold);
}

.tooltip a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* Fills the gap under the tip so the pointer can reach a link inside it. */
.tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

/* ---------- Cover (p2) ---------- */

/* The mint wave across the bottom of the two bare screens. */
/* The wave is traced off the storyboard, so it is drawn as a path rather
   than approximated with a clip-path ellipse. */
.cover-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-title {
  position: absolute;
  top: 146px;
  left: 85px;
  margin: 0;
  color: var(--navy);
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
}

.cover-begin {
  position: absolute;
  top: 262px;
  left: 181px;
  z-index: 2;
  width: 248px;
  height: 63px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.cover-begin:hover {
  background: var(--navy-hover);
}

.cover-privacy {
  position: absolute;
  top: 351px;
  left: 85px;
  z-index: 2;
  width: 470px;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.cover-privacy a {
  color: inherit;
  text-decoration: underline;
}

/* Decorative only — must not sit above BEGIN / privacy and steal clicks.
   Asset102 (hero.svg): photo ring + bubble + three cards as one graphic. */
.cover-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Placed so Asset102's navy photo ring matches the storyboard disc at
   ~605,118 / 474px; cards and bubble travel with the same scale. */
.cover-hero {
  position: absolute;
  top: 31px;
  left: 605px;
  display: block;
  width: 658px;
  height: auto;
}

.cover-foot {
  position: absolute;
  top: 600px;
  left: 14px;
  width: 790px;
}

.cover-foot p {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.cover-browsers {
  display: flex;
  gap: 24px;
}

.cover-browsers a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
}

.cover-browsers svg {
  width: 18.7px;
  height: 18.7px;
}

/* The artwork carries the "Creative services provided by" line. */
.cover-credit {
  margin-top: 10px;
}

.cover-credit img {
  display: block;
  width: 349px;
  height: 23.74px;
}

.cover-lockup {
  position: absolute;
  top: 645.15px;
  left: 800.23px;
  width: 464.16px;
  height: 60.24px;
}

/* ---------- Login (p3) ---------- */

.login-card {
  position: absolute;
  top: 73px;
  left: 272px;
  width: 736px;
  padding: 30px 60px 34px;
  border: 1px solid #d5d7da;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  font-weight: 600;
}

.login-lead {
  margin: 17px auto 0;
  width: 440px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32;
}

.login-label {
  display: block;
  width: 454px;
  margin: 22px auto 7px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.login-input {
  display: block;
  width: 454px;
  height: 59px;
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid #cfe3e6;
  border-radius: 10px;
  background: var(--mint);
  font-family: var(--font);
  font-size: 17px;
}

.login-input::placeholder {
  color: #a9adb1;
}

.login-input.is-invalid {
  border: 2px solid #d1495b;
  background: #fdecee;
}

.login-go {
  display: block;
  width: 350px;
  height: 69px;
  margin: 26px auto 0;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 23px;
  font-weight: 600;
}

.login-go:hover:not(:disabled) {
  background: var(--navy-hover);
}

.login-go:disabled {
  opacity: 0.4;
  cursor: default;
}

.login-fine {
  width: 566px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 19px;
}

.login-rule {
  width: 668px;
  margin: 37px auto 0;
  border: 0;
  border-top: 1px solid #b9ccd6;
}

.login-skip-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px auto 0;
}

.login-skip {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-skip-note {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Conversation Cards: the deck (p16) ---------- */

.deck-lead {
  position: absolute;
  top: 115px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: var(--fs-instruction);
  font-weight: 600;
}

/* Cards are 234 wide on a 110 pitch, so the fan is centred on the artboard. */
.deck {
  --card-w: 234px;
  --pitch: 110px;

  position: absolute;
  top: 153px;
  left: 50%;
  width: calc(var(--card-w) + (var(--n) - 1) * var(--pitch));
  height: 331px;
  transform: translateX(-50%);
}

.deck-card {
  position: absolute;
  top: 0;
  left: calc(var(--i) * var(--pitch));
  width: var(--card-w);
  height: 331px;
  padding: 11px;
  border: 2px solid var(--teal);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.deck-card:hover,
.deck-card.is-top:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 14px 28px rgba(0, 84, 150, 0.18);
}

.deck-card:active {
  transform: translateY(-4px);
  transition-duration: 0.12s;
}

/* Deal animation (p16 → p17): backs go mint and hide their face art; the
   drawn card swaps to the numbered question face at the flip midpoint. */
.deck.is-dealing .deck-card {
  cursor: default;
}

.deck-card.is-stacking {
  background: var(--mint);
  border-radius: 16px;
}

.deck-card.is-stacking .deck-face {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.deck-card.is-flipping {
  background: var(--mint);
  border-radius: 16px;
}

/* Paddings, type, border and glossary chips are authored for the qstack,
   then divided by the deal scale so the open face matches .qcard exactly —
   including wrap on cards that carry gloss chips (e.g. Prevention). */
.deck-card.is-face-up {
  --deal-sx: 1;
  --deal-sy: 1;

  display: block;
  padding: calc(14px / var(--deal-sy)) calc(14px / var(--deal-sx));
  text-align: left;
  border-width: calc(2px / var(--deal-sy)) calc(2px / var(--deal-sx));
  border-radius: calc(16px / var(--deal-sx));
  background: var(--mint);
  overflow: hidden;
}

.deck-card.is-face-up .qcard-face {
  height: 100%;
  padding: 0 calc(15px / var(--deal-sx));
  border-radius: calc(8px / var(--deal-sx));
}

.deck-card.is-face-up .qcard-face p {
  margin: 0 0 calc(8px / var(--deal-sy));
  font-size: calc(18px / var(--deal-sy));
  line-height: calc(24.5px / var(--deal-sy));
}

.deck-card.is-face-up .gloss {
  padding: calc(2px / var(--deal-sy)) calc(3px / var(--deal-sx));
  border-radius: calc(4px / var(--deal-sx));
}

.deck-card.is-face-up .qcard-n {
  width: calc(46px / var(--deal-sx));
  height: calc(46px / var(--deal-sy));
  font-size: calc(34px / var(--deal-sy));
  border-radius: calc(8px / var(--deal-sx)) 0 calc(16px / var(--deal-sx)) 0;
}

.deck-card.is-face-up .qcard-n.is-tl {
  top: calc(14px / var(--deal-sy));
  left: calc(14px / var(--deal-sx));
  border-radius: calc(8px / var(--deal-sx)) 0 calc(16px / var(--deal-sx)) 0;
}

.deck-card.is-face-up .qcard-n.is-br {
  right: calc(14px / var(--deal-sx));
  bottom: calc(14px / var(--deal-sy));
  border-radius: calc(16px / var(--deal-sx)) 0 calc(8px / var(--deal-sx)) 0;
}

.deck-face {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding-top: 42px;
  border-radius: 6px;
  background: var(--mint);
}

.deck-face img {
  width: 146px;
  height: 146px;
  border-radius: 50%;
}

.deck-label {
  color: var(--navy);
  font-size: var(--fs-instruction);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* ---------- Conversation Cards: a question (p17-p23) ---------- */

/* The cards not yet drawn peek out 18px apart behind the flipped one. */
.qstack {
  position: absolute;
  top: 133px;
  left: 237px;
  width: 268px;
  height: 379px;
}

.qcard-back {
  position: absolute;
  inset: 0;
  left: calc(-18px * (var(--k) + 1));
  border: 2px solid var(--teal);
  border-radius: 16px;
  background: var(--mint);
}

/* The back that slides into the front slot while the answered card lifts. */
.qcard-back.is-front {
  display: block;
  padding: 14px;
  overflow: hidden;
}

.qcard {
  position: absolute;
  inset: 0;
  padding: 14px;
  border: 2px solid var(--teal);
  border-radius: 16px;
  background: var(--mint);
}

.qcard-face {
  display: grid;
  align-content: center;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--white);
}

/* Storyboard 5a p21: “Follow-up” sits above the question on the card. */
.qcard-followup {
  margin: 0 0 8px;
  color: var(--follow);
  font-size: 18px;
  font-weight: 600;
  line-height: 24.5px;
}

.qcard-face > p:not(.qcard-followup) {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24.5px;
}

.qcard-n {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--mint);
  color: var(--card-num);
  font-size: 34px;
  font-weight: 600;
}

.qcard-n.is-tl {
  top: 14px;
  left: 14px;
  border-radius: 8px 0 16px 0;
}

.qcard-n.is-br {
  right: 14px;
  bottom: 14px;
  border-radius: 16px 0 8px 0;
}

/* Stack keeps the privacy footnote under the panel as its height grows. */
.qpanel-stack {
  position: absolute;
  top: 133px;
  left: 576px;
  width: 548px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qpanel-stack .qpanel {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
}

.qpanel {
  top: 133px;
  left: 576px;
  width: 548px;
  min-height: 355px;
  padding: 14px 22px 22px;
}

.qpanel-count {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.qpanel-lead {
  margin: 10px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

/* Age follow-up: Submit sits halfway between the last option and the panel edge. */
.qpanel.is-compact {
  padding-bottom: 14px;
}

.qpanel.is-compact .submit-btn {
  margin-top: 16px;
}

.opt-list {
  display: grid;
  gap: 15px;
  margin: 10px 25px 0;
}

.opt {
  display: grid;
  place-items: center;
  height: 53px;
  padding: 4px 18px;
  border: 2px solid var(--option);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--option);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
}

.opt:hover {
  background: var(--ice);
}

.opt.is-on {
  background: var(--navy);
  color: var(--white);
}

.opt-other {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px 0 40px;
  cursor: pointer;
}

.opt-other > span {
  flex: none;
}

.opt-field {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #a9d3cf;
  border-radius: 6px;
  background: #eef7f6;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: text;
}

.opt-field::placeholder {
  color: #a7abae;
}

.opt-field:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.submit-btn {
  display: block;
  width: 140px;
  height: 42px;
  margin: 16px auto 0;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
}

.submit-btn:hover:not(:disabled) {
  background: var(--teal-hover);
}

.submit-btn:disabled {
  background: var(--teal);
  color: var(--white);
  cursor: default;
}

/* Once an answer is submitted, the teal Submit button fades to 20%. */
.submit-btn.is-faded,
.submit-btn.is-faded:disabled {
  opacity: 0.2;
  background: var(--teal);
  color: var(--white);
  pointer-events: none;
}

.opt-list.is-locked .opt {
  cursor: default;
}

.opt-list.is-locked .opt:hover {
  background: var(--white);
}

.opt-list.is-locked .opt.is-on:hover {
  background: var(--navy);
}

/* Unselected answers stay outline-only. A fill is only for the chosen one. */
.earn-choice,
.earn-choice:disabled:not(.is-on) {
  background: var(--white);
  color: var(--option);
  border: 2px solid var(--option);
  opacity: 1;
  cursor: pointer;
}

.earn-choice:hover:not(:disabled):not(.is-on) {
  background: var(--ice);
}

.earn-choice.is-on,
.earn-choice.is-on:disabled {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  cursor: default;
}

/* ---------- note-entry card (p23) ---------- */

.note-wrap {
  margin-top: 17px;
}

.note-input {
  display: block;
  width: 100%;
  height: 92px;
  padding: 12px 16px;
  border: 1px solid #cfe3e6;
  border-radius: 10px;
  background: var(--mint);
  font-family: var(--font);
  font-size: var(--fs-body);
  resize: none;
}

.note-input::placeholder {
  color: #9aa0a6;
}

.note-count {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.note-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Edit (teal outline, like Skip) sits to the left of Submit. */
.edit-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.edit-bar .submit-btn {
  margin: 0;
}

.edit-btn {
  width: 140px;
  height: 42px;
  border: 2px solid var(--teal);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--teal);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
}

.edit-btn:hover:not(:disabled),
.edit-btn:focus-visible {
  background: var(--ice);
}

/* Until there's a submitted answer to change, Edit fades like a spent Submit. */
.edit-btn:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.privacy-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

/* Storyboard sits the line under the answer panel, left-aligned with it. */
.privacy-note-cards {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  text-align: left;
}

.privacy-note a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* Sits in the gap between the note buttons and the badge line. */
.privacy-note-earn {
  position: absolute;
  left: 256px;
  width: 490px;
  bottom: 78px;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

html[data-viewport="desktop"] .mintcard-earn.has-note .earn-main {
  top: 22px;
}

html[data-viewport="desktop"] .has-note .earn-q {
  margin-top: 8px;
}

html[data-viewport="desktop"] .has-note .earn-controls {
  margin-top: 10px;
}

/* ---------- Myth vs Fact (p24-p26) ---------- */

.mintcard-myth {
  top: 120px;
  left: 225px;
  width: 832px;
  height: 454px;
  padding: 26px 30px 0;
}

.myth-lead {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

/* Keeps the bubble's vertical slot on the result screen. */
.myth-lead[aria-hidden="true"] {
  visibility: hidden;
}

/* The navy speech bubble, with the tail the storyboard hangs at bottom-left. */
.myth-statement {
  position: relative;
  width: 709px;
  margin: 16px auto 0;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32;
  text-align: center;
}

.myth-statement::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 24px;
  border-top: 20px solid var(--navy);
  border-right: 24px solid transparent;
}

.myth-statement.is-right {
  background: #5f9d93;
  color: var(--white);
}

.myth-statement.is-right::after {
  border-top-color: #5f9d93;
}

.myth-statement.is-wrong {
  background: #c1676a;
  color: var(--white);
}

.myth-statement.is-wrong::after {
  border-top-color: #c1676a;
}

.paddles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 56px;
  margin-top: 42px;
}

.paddle {
  position: relative;
  display: block;
  transition: transform 0.35s ease;
}

.paddle-art {
  display: block;
  width: 190px;
}

.paddle.is-up {
  transform: translateY(-20px);
}

/* Offsets are the lines layer's place relative to the paddle in the
   Asset132/133 artwork, so they track the paddle width. */
.paddle-lines {
  position: absolute;
  top: 14.98%;
  left: -11.09%;
  width: 122.08%;
  max-width: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.paddle-fact .paddle-lines {
  left: -11.39%;
}

.paddle.is-up .paddle-lines {
  opacity: 1;
}

.myth-submit {
  position: absolute;
  right: 30px;
  bottom: 22px;
  width: 170px;
  height: 45px;
  margin: 0;
  font-size: 20px;
}

.myth-result {
  margin-top: 88px;
  padding-left: 33px;
}

.myth-result h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 600;
}

.myth-result.is-right h2 {
  color: var(--teal);
}

.myth-result.is-wrong h2 {
  color: var(--myth-wrong);
}

.myth-puzzled {
  position: relative;
}

.qmarks {
  position: absolute;
  top: -27.4px;
  width: 44.06px;
  height: 71.48px;
}

.qmarks-l {
  right: calc(100% + 7.8px);
}

.qmarks-r {
  left: calc(100% + 3px);
}

/* Asset170 matches the Asset134 question-mark size and gap. */
.fact-burst {
  position: absolute;
  top: -27.4px;
  width: 44.06px;
  height: 71.48px;
  object-fit: contain;
  pointer-events: none;
}

.fact-burst-l {
  right: calc(100% + 7.8px);
}

.fact-burst-r {
  left: calc(100% + 3px);
  transform: scaleX(-1);
}

.myth-result p {
  width: 725px;
  margin: 19px 0 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 24px;
}

/* ---------- Earn A Badge (p27-p30) ---------- */

.mintcard-earn {
  top: 91px;
  left: 224px;
  width: 832px;
  height: 423px;
  padding: 18px 26px;
}

.earn-badge {
  position: absolute;
  top: 66px;
  left: 66px;
  display: block;
  width: 177px;
  height: 215px;
}

.earn-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.earn-badge .badge-face {
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.earn-badge.is-unlocked .badge-face {
  opacity: 1;
}

/* The prompt column is centred on the card's right-hand side (p27). */
.earn-main {
  position: absolute;
  top: 47px;
  left: 256px;
  width: 490px;
  text-align: center;
}

.earn-main h2 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
  font-weight: 600;
}

.earn-q {
  margin: 16px auto 0;
  width: 440px;
  font-size: var(--fs-instruction);
  font-weight: 600;
  line-height: 1.28;
}

.earn-controls {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.earn-define {
  margin: 8px auto 0;
  font-size: 15px;
  line-height: 20px;
}

.earn-define p {
  margin: 0;
}

.earn-define ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.earn-define strong {
  color: var(--ink);
}

.earn-define + .earn-controls {
  margin-top: 12px;
}

html[data-viewport="desktop"] .mintcard-earn.has-define {
  height: 443px;
}

html[data-viewport="desktop"] .has-define .earn-main {
  top: 32px;
}

html[data-viewport="desktop"] .has-define .earn-controls {
  gap: 10px;
}

html[data-viewport="desktop"] .has-define .earn-choice {
  height: 46px;
}

/* Follow-up note: count left, then Submit below flush to the textarea's right edge. */
.earn-controls:has(#earn-note) {
  width: 375px;
  margin-inline: auto;
  gap: 8px;
}

.earn-controls:has(#earn-note) .note-input {
  width: 100%;
  height: 92px;
  text-align: left;
}

.earn-controls:has(#earn-note) .note-count {
  margin: 0;
  text-align: left;
}

.earn-controls:has(#earn-note) .note-bar {
  margin: 0;
  justify-content: flex-end;
}

.earn-controls:has(#earn-note) .note-bar .submit-btn {
  margin: 0;
}

.earn-choice {
  width: 375px;
  min-width: 0;
  height: 52px;
  margin: 0 auto;
  font-size: 18px;
}

.earn-foot {
  position: absolute;
  bottom: 21px;
  left: 26px;
  right: 26px;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 22px;
  text-align: center;
}

/* The looping nudge on the drawer's Claim badge button (p30). */
.claim-badge {
  margin-left: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  animation: nudge-left 1.6s ease-in-out infinite;
}

@keyframes nudge-left {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-8px);
  }
}

/* The 3s "next time" message shown for Not yet (p29).
   Fade in place — pop-down's translateY would overwrite translateX(-50%)
   and make the panel look like it slides in from the right. */
.panel-remind {
  left: 50%;
  top: 14px;
  width: 470px;
  transform: translateX(-50%);
  padding: 52px 26px;
  background: #dcf0ee;
  box-shadow: none;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  text-align: center;
}

.panel-remind.is-enter {
  animation: panel-fade 0.28s ease-out;
}

@keyframes panel-fade {
  from {
    opacity: 0;
  }
}

/* ---------- Resource (p31) ---------- */

.res-lead {
  position: absolute;
  top: 94px;
  left: 0;
  right: 0;
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  font-weight: 600;
  text-align: center;
}

.res-lead2 {
  position: absolute;
  top: 129px;
  left: 0;
  right: 0;
  margin: 0;
  font-size: var(--fs-instruction);
  font-weight: 600;
  text-align: center;
}

.mintcard-res {
  top: 176px;
  left: 198px;
  width: 859px;
  height: 336px;
  padding: 47px 50px;
}

.res-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.42;
  text-decoration: none;
}

.res-row + .res-row {
  margin-top: 71px;
}

.res-row:hover {
  background: var(--mint);
}

.res-row img {
  width: 58px;
  height: 74px;
  object-fit: contain;
}

.mintcard-res-many {
  height: auto;
  padding: 26px 50px;
}

.mintcard-res-many .res-row {
  grid-template-columns: 60px 1fr;
}

.mintcard-res-many .res-row + .res-row {
  margin-top: 20px;
}

.mintcard-res-many .res-row img {
  width: 46px;
  height: 59px;
}

.mintcard-res-many .res-row.has-qr {
  grid-template-columns: 72px 1fr;
}

.res-row img.is-qr {
  width: 64px;
  height: 64px;
}

/* ---------- End ---------- */

.mintcard-finish {
  top: 170px;
  left: 110px;
  width: 1060px;
  max-height: 368px;
  padding: 14px 36px 16px;
  overflow-y: auto;
}

.finish-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.finish-top .res-row {
  flex: 1 1 auto;
  grid-template-columns: 60px 1fr;
}

.finish-top .res-row img {
  width: 42px;
  height: 52px;
}

.finish-share {
  flex: none;
  gap: 10px;
}

.finish-share svg {
  width: 20px;
  height: 20px;
}

.finish-h {
  margin: 12px 0 6px;
  padding: 12px 14px 0;
  border-top: 1px solid rgba(0, 84, 150, 0.2);
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}

.finish-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
}

.finish-link {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.finish-link:hover {
  background: var(--mint);
}

.finish-link img {
  width: 30px;
  height: 38px;
  object-fit: contain;
}

.finish-link small {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Welcome ---------- */

.mintcard-welcome {
  top: 150px;
  left: 198px;
  width: 859px;
  height: auto;
  padding: 48px 64px;
}

.welcome-text {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
}

.welcome-text strong {
  color: var(--navy);
}

/* ---------- All topics complete ---------- */

.modal-complete {
  position: absolute;
  top: 120px;
  left: 50%;
  z-index: 30;
  width: 700px;
  padding: 34px 48px 30px;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid #8f8f8f;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  text-align: center;
}

html[data-viewport="desktop"] .modal-complete {
  top: calc(130px + var(--ex-h, 0px) / 2);
}

.modal-complete.is-enter {
  animation: complete-in 0.3s ease-out;
}

@keyframes complete-in {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
  }
}

.modal-complete h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 600;
}

.complete-heading {
  position: relative;
  display: inline-block;
}

.complete-burst {
  position: absolute;
  top: -24px;
  width: 44px;
  height: 71px;
  object-fit: contain;
  pointer-events: none;
}

.complete-burst-l {
  right: calc(100% + 8px);
}

.complete-burst-r {
  left: calc(100% + 4px);
  transform: scaleX(-1);
}

.modal-complete p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.5;
}

.modal-complete a {
  color: var(--navy);
}

.complete-next {
  gap: 8px;
  margin: 0 auto;
}

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Desktop fills the window (see shell.css): the wave bleeds past the
   content frame to the stage's sides and bottom edge. */
html[data-viewport="desktop"] .cover-wave {
  inset: auto;
  top: 0;
  left: calc(var(--ex-w, 0px) / -2);
  width: calc(100% + var(--ex-w, 0px));
  height: calc(100% + var(--ex-h, 0px) / 2);
}

/* The cover's browser note and AKF lockup ride the window's bottom corners
   rather than the centred content frame, inset equally from each side. */
html[data-viewport="desktop"] {
  --cover-edge: 20px;
}

html[data-viewport="desktop"] .cover-foot {
  top: calc(600px + var(--ex-h, 0px) / 2);
  left: calc(var(--cover-edge) - var(--ex-w, 0px) / 2);
}

html[data-viewport="desktop"] .cover-lockup {
  top: calc(645.15px + var(--ex-h, 0px) / 2);
  left: calc(1280px + var(--ex-w, 0px) / 2 - var(--cover-edge) - 464.16px);
}
