/* v04: the rich cards the coach sends (test cards, recaps, the sealed breakdown, the result) */
.card {
  width: min(100%, 340px);
  border-radius: 22px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 30, 50, .08);
}
.card__pad { padding: 16px 16px 15px; display: grid; gap: 10px; }
.card__kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.card__text { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f1f3f7; font-size: 13px; font-weight: 700; color: var(--ink); }

/* the test card that opens each level */
.lvcard__art { height: 112px; position: relative; overflow: hidden; display: grid; place-items: center; }
.lvcard__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lvcard__emoji { position: relative; font-size: 46px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.lvcard--dec .lvcard__art { background: linear-gradient(135deg, #1b7cff, #5aa2ff); }
.lvcard--scan .lvcard__art { background: linear-gradient(135deg, #7c3aed, #b085ff); }
.lvcard--press .lvcard__art { background: linear-gradient(135deg, #ff3b30, #ff8a5c); }
.lvcard__step { position: absolute; left: 12px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 12px; font-weight: 800; }

/* recap card between levels */
.recap__rows { display: grid; gap: 8px; }
.recap__row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.recap__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 15px; }
.recap__ico.ok { background: var(--green); }
.recap__ico.no { background: #c3c8d1; }
.recap__row b { display: block; font-size: 15px; }
.recap__row span { color: var(--ink-2); font-size: 13px; }
.recap__t { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; text-align: right; color: var(--ink-2); }
.recap__t em { font-style: normal; color: var(--ink); display: block; font-size: 15px; }
.build { display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.build__top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; padding-top: 8px; }
.build__top span { color: var(--out); }
.build__bar { height: 8px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
.build__bar i { display: block; height: 100%; width: var(--from, 0%); background: linear-gradient(90deg, var(--out), #59a3ff); border-radius: 4px; animation: grow 1.2s var(--ease) .3s forwards; }
@keyframes grow { to { width: var(--to); } }
.build__lines { display: grid; gap: 5px; filter: blur(3.5px); opacity: .55; }
.build__lines i { height: 9px; border-radius: 5px; background: #cfd5df; }

/* the result card: sealed at the gate, unlocked on the result */
.res { position: relative; width: min(100%, 350px); }
.res__head { padding: 18px 18px 16px; display: grid; gap: 4px; background: linear-gradient(160deg, #0d1b33 0%, #13284d 60%, #1b3a6e 100%); color: #fff; }
.res__head .card__kicker { color: rgba(255, 255, 255, .6); }
.res__score { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 0; }
.res__score b { font-size: 96px; line-height: .9; font-weight: 900; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.res__score span { font-size: 26px; font-weight: 800; opacity: .55; }
.res__tier { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.res__tier i { display: inline-block; padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .14); }
.ladder { position: relative; margin: 16px 26px 2px; height: 44px; }
.ladder__line { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.ladder__fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: #fff; width: 0; transition: width 1.1s var(--ease) .35s; }
.res.is-open .ladder__fill { width: calc(100% * var(--wn)); }
.ladder__step { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.ladder__step i { width: 18px; height: 18px; border-radius: 50%; background: #1b3a6e; border: 3px solid rgba(255, 255, 255, .35); }
.ladder__step.is-past i { background: #fff; border-color: #fff; }
.ladder__step.is-you { color: #fff; }
.ladder__step.is-you i { background: var(--out); border-color: #fff; box-shadow: 0 0 0 5px rgba(27, 124, 255, .45); }
.ladder__step.is-pro { color: #ffd60a; }
.ladder__step.is-pro i { border-color: #ffd60a; }
.res__gap { padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; font-weight: 800; font-size: 17px; }
.res__gap span { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.res__gap b { color: var(--out); }

.res.is-sealed .res__in { filter: blur(14px); transform: scale(1.04); }
.res__in { transition: filter .9s var(--ease), transform .9s var(--ease); }
.res__lock {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 8px;
  color: #fff; text-align: center; background: rgba(10, 20, 40, .25); transition: opacity .45s, transform .45s var(--spring);
}
.res__lock i { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: wobble 2.4s ease-in-out infinite; }
.res__lock b { font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.res__lock small { font-size: 13px; opacity: .9; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.res:not(.is-sealed) .res__lock { opacity: 0; transform: scale(1.4); pointer-events: none; }
@keyframes wobble { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }

/* the #1 thing to fix */
.fix { border-color: rgba(255, 59, 48, .25); }
.fix .card__kicker { color: var(--red); }
.fix__said { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fix__said div { border-radius: 14px; background: #f5f6f9; padding: 10px 12px; display: grid; gap: 2px; }
.fix__said small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.fix__said b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.fix__said div.is-real { background: #fff1f0; }
.fix__said div.is-real b { color: var(--red); }
.fix__said div.is-real.is-up { background: #effbf3; }
.fix__said div.is-real.is-up b { color: var(--green-ink); }
.fix__proof { margin: 0; font-size: 14px; color: var(--ink); background: #f5f6f9; border-radius: 14px; padding: 10px 12px; line-height: 1.35; }
.fix__good { margin: 0; font-size: 14px; font-weight: 700; color: var(--green-ink); }

/* the VSL as a video message */
.vmsg { width: min(64vw, 250px); border-radius: 22px; overflow: hidden; background: #0a0f1d; box-shadow: 0 8px 24px rgba(20, 30, 50, .12); }
.vmsg .vsl { border-radius: 22px; }

/* the call invite + every moment (evidence) */
.ev__row { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ev__row:first-child { border-top: 0; padding-top: 0; }
.ev__img { width: 62px; height: 40px; border-radius: 9px; object-fit: cover; background: #dde2ea; display: block; }
.ev__who b { display: block; font-size: 14px; line-height: 1.2; }
.ev__who span { font-size: 12px; color: var(--ink-2); }
.ev__t { text-align: right; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.35; }
.ev__t em { font-style: normal; font-weight: 800; font-size: 14px; display: block; }
.ev__t em.ok { color: var(--green-ink); }
.ev__t em.no { color: var(--ink-3); }
.lvl { display: grid; gap: 8px; }
.lvl__row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; font-size: 14px; }
.lvl__row b { font-weight: 700; }
.lvl__row span { font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.lvl__row strong { min-width: 44px; text-align: right; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lvl__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #eef1f6; overflow: hidden; }
.lvl__bar i { display: block; height: 100%; border-radius: 3px; background: var(--out); }
.lvl__bar i.is-weak { background: var(--red); }

.stagger > * { animation: pop .45s var(--spring) both; animation-delay: var(--d, 0s); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (min-width: 900px) {
  .card { width: min(100%, 380px); }
  .res { width: 380px; }
  .vmsg { width: 270px; }
}
