/* Cardly — personal.css («Для себя», warm palette) */

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% -20% -10%;
  background:
    radial-gradient(35% 40% at 30% 60%, rgba(245, 170, 66, 0.22), transparent 70%),
    radial-gradient(35% 40% at 70% 55%, rgba(235, 98, 78, 0.18), transparent 70%),
    radial-gradient(30% 35% at 55% 80%, rgba(80, 188, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hero__title { max-width: 1000px; margin-inline: auto; }
.hero__title .gradient-text { display: inline-block; padding-bottom: 0.06em; }
.hero__lead {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-2);
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
@media (min-width: 734px) {
  .hero__cta { flex-direction: row; justify-content: center; }
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(560px, 60vw, 700px);
  margin-top: clamp(40px, 6vw, 72px);
}
.hero__phone {
  --w: clamp(250px, 24vw, 300px);
  position: relative;
  z-index: 2;
}

.fan {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}
.fan__card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(200px, 25vw, 330px);
  aspect-ratio: 1.586;
  padding: clamp(16px, 2vw, 24px);
  border-radius: clamp(16px, 1.8vw, 22px);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--shadow-2);
  transform: var(--to);
}
.fan__card b { font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.03em; }
.fan__card span { font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; opacity: 0.9; }
.fan__card--1 {
  --to: translate(-82%, -20%) rotate(-13deg);
  background: linear-gradient(135deg, #f58a76, #eb624e 50%, #cf4a35);
}
.fan__card--2 {
  --to: translate(84%, -30%) rotate(10deg);
  background: linear-gradient(135deg, #ffc56e, #f5aa42 50%, #e3901f);
  color: #3a2300;
}
.fan__card--3 {
  --to: translate(76%, 34%) rotate(-7deg);
  background: linear-gradient(135deg, #8fd8ff, #50bcff 50%, #2a9bf0);
  color: #062a40;
}
html.js .fan__card { animation: fan-out 1.1s var(--ease) both; }
html.js .fan__card--1 { animation-delay: 0.45s; }
html.js .fan__card--2 { animation-delay: 0.55s; }
html.js .fan__card--3 { animation-delay: 0.65s; }
@keyframes fan-out {
  from { transform: translate(0, 10%) rotate(0deg) scale(0.8); opacity: 0; }
  to { transform: var(--to); opacity: 1; }
}
@media (max-width: 733px) {
  .fan__card--1 { --to: translate(-58%, -30%) rotate(-13deg); }
  .fan__card--2 { --to: translate(60%, -38%) rotate(10deg); }
  .fan__card--3 { --to: translate(56%, 40%) rotate(-7deg); }
}

/* ---------- Pains ------------------------------------------------------- */
.pain-grid {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
}
@media (min-width: 734px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1068px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }

.pain {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 16px 16px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.pain p {
  padding: 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.pain__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  overflow: hidden;
}
.pain__art--loading { align-content: center; gap: 12px; }
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--text-2);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pain__art--form {
  align-content: center;
  place-items: stretch;
  gap: 7px;
  padding: 14px 18px;
}
.pain__art--form span {
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}
.pain__art--form i {
  display: block;
  padding-left: 9px;
  font-style: normal;
  font-size: 11px;
  line-height: 20px;
  color: var(--text-3);
}
.pain__art--form em {
  justify-self: end;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  color: var(--accent-ink);
}

/* greyed-out Wi-Fi with a red "no connection" badge */
.nosignal {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  color: var(--text-3);
}
.nosignal > svg { width: 100%; height: 100%; opacity: 0.7; }
.nosignal i {
  position: absolute;
  right: -6px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff3b30;
  color: #fff;
  box-shadow: 0 0 0 3px var(--surface);
}
.nosignal i svg { width: 16px; height: 16px; }

.pain__art--apps {
  grid-template-columns: repeat(5, 30px);
  gap: 8px;
  place-content: center;
}
.pain__art--apps i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c);
}

@media (max-width: 733px) {
  .pain-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pain { gap: 12px; padding: 8px 8px 16px; border-radius: 22px; }
  .pain p { padding: 0 6px; font-size: 15px; }
  .pain__art { height: 112px; border-radius: 16px; transform-origin: center; }
  .pain__art > * { scale: 0.82; }
  .pain__art--form { padding: 8px 10px; gap: 4px; }
  .pain__art--form > * { scale: 1; }
  .pain__art--form span { height: 18px; }
  .pain__art--form i { font-size: 9.5px; line-height: 16px; padding-left: 6px; }
  .pain__art--form em { font-size: 9.5px; }
  .pain__art--apps { grid-template-columns: repeat(5, 22px); gap: 6px; }
  .pain__art--apps > * { scale: 1; }
  .pain__art--apps i { width: 22px; height: 22px; border-radius: 6px; }
}

.pains__answer {
  margin-top: clamp(56px, 8vw, 96px);
  text-align: center;
}

/* ---------- Highlights rail -------------------------------------------- */
.highlights__title { margin-bottom: clamp(28px, 4vw, 44px); }
.rail { --rail-card: min(80vw, 360px); }
.hl {
  display: flex;
  flex-direction: column;
  height: clamp(440px, 50vw, 500px);
  padding: 30px 28px 0;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.hl__text {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-2);
  text-wrap: pretty;
}
.hl__text b { color: var(--text); font-weight: 650; }
.hl__art {
  flex: 1;
  display: grid;
  place-items: center;
  padding-bottom: 28px;
}

.hl-number {
  display: grid;
  gap: 4px;
  width: 250px;
  aspect-ratio: 1.586;
  align-content: end;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfdfe, #dbe8ef 55%, #9dc1d4);
  color: #0b2233;
  box-shadow: var(--shadow-2);
}
.hl-number small { font-size: 12px; font-weight: 600; opacity: 0.7; }
.hl-number b { font-size: 30px; letter-spacing: -0.02em; }
.hl-dots { display: flex; margin-top: -20px; padding-left: 30px; }
.hl-dots i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--c);
  color: var(--ci, #fff);
  font-style: normal;
  font-weight: 750;
  font-size: 15px;
}
.hl--account .hl__art { align-content: center; }

.hl-code {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 20px 14px;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1f;
  font-weight: 650;
  font-size: 15px;
  box-shadow: var(--shadow-2);
}
.hl-code .qr { width: 150px; }

.hl-badges { display: flex; align-items: center; }
.hl-badges .badge { width: 84px; }
.hl-badges .badge:nth-child(1) { transform: rotate(-10deg) translateX(14px); }
.hl-badges .badge:nth-child(2) { width: 112px; z-index: 1; }
.hl-badges .badge:nth-child(2) b { font-size: 34px; }
.hl-badges .badge:nth-child(3) { transform: rotate(10deg) translateX(-14px); }

/* ---------- One account / orbit ---------------------------------------- */
.one { overflow: clip; }
.one__text .copy { margin-top: 20px; }
.orbit {
  --r: min(34vw, 228px);
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit__ring {
  position: absolute;
  inset: calc(50% - var(--r));
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
}
.orbit__card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  justify-items: start;
  width: clamp(200px, 30vw, 280px);
  aspect-ratio: 1.586;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fbfdfe, #dbe8ef 55%, #9dc1d4);
  color: #0b2233;
  box-shadow: var(--shadow-2);
}
.orbit__card img { width: 38px; height: 38px; border-radius: 9px; }
.orbit__card small { display: block; margin-top: auto; font-size: 12px; font-weight: 600; opacity: 0.7; }
.orbit__card b { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.orbit__chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 650;
  white-space: nowrap;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) translate(-50%, -50%);
}
.orbit__chip i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  color: var(--ci, #fff);
  font-style: normal;
  font-weight: 750;
  font-size: 12px;
}

/* ---------- Onboarding steps ------------------------------------------- */
.steps3 {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
}
@media (min-width: 1068px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 16px 30px;
  border-radius: var(--radius);
  background: var(--surface);
}
.step > :not(.step__art) { margin-inline: 14px; }
.step__art {
  display: grid;
  place-items: center;
  height: 250px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--tint);
  overflow: hidden;
}
.step .copy { font-size: 17px; }
.step__art--qr .qr-sign { transform: rotate(-4deg); }

/* ---------- Always there (inverse) ------------------------------------- */
.always__text .copy { margin-top: 20px; }
.net {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-2);
}
.net__label { color: var(--text-2); font-size: 14px; font-weight: 600; }
.net__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.net__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.net__status::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.net__replay svg { width: 16px; height: 16px; }

/* Two phones side by side: the ordinary app (smaller, left) and Cardly. */
.always__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 2.4vw, 32px);
}
.race__lane {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.race__phone { --w: clamp(200px, 19vw, 262px); }
.race__phone--other { --w: calc(clamp(200px, 19vw, 262px) * 0.88); }
.race__label { color: var(--text-2); font-size: 14px; font-weight: 600; }
.race__label--cardly { color: var(--text); }
@media (max-width: 1067px) {
  .race__phone { --w: min(43vw, 262px); }
  .race__phone--other { --w: min(38vw, 230px); }
}
@media (max-width: 733px) {
  .race__label { font-size: 13px; }
}

/* ---------- Venue «closer look» ---------------------------------------- */
/* Apple's product viewer, rebuilt: a pill morphs into a card and back.
   personal.js sets [data-look-ready] and --look-w (the card width) on the
   gallery, .is-open while a feature is open and .is-active on the open item
   and its phone widgets, and tweens pixel sizes:
   - desktop: the item's own width/height, so the list reflows around it;
   - small screens: the card flies from its pill (.is-flying) to the top of
     the list, while the other pills fade out in place.
   The caption is always laid out at the full card width and only clipped by
   the card, so it never rewraps mid-animation. Without JS the items render
   as a plain list of captions. */
.look__gallery {
  --look-spring: linear(0, 0.0182, 0.0661, 0.1348, 0.2167, 0.3059, 0.3975, 0.4876, 0.5736, 0.6534, 0.7257, 0.7899, 0.8458, 0.8933, 0.933, 0.9653, 0.9909, 1.0106, 1.0251, 1.0352, 1.0416, 1.045, 1.046, 1.0451, 1.0429, 1.0398, 1.036, 1.0319, 1.0277, 1.0235, 1.0196, 1.0159, 1.0126, 1.0096, 1.0071, 1.0049, 1.0031, 1.0016, 1.0004, 0.9995, 1);
  --look-morph: 0.8s var(--look-spring);
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}
.look__items {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.look__body p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-align: left;
}
.look__body strong { color: var(--text); font-weight: 600; }
.look__device { display: grid; place-items: center; text-align: left; }
.look__phone { --w: clamp(250px, 24vw, 300px); }
.look__pill,
.look__nav,
.look__close { display: none; }

/* interactive mode */
.look__gallery[data-look-ready] .look__items {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.look__gallery[data-look-ready] .look__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex: none;
  border-radius: 28px;
  transition: width var(--look-morph), height var(--look-morph), opacity 0.3s var(--ease) 0.25s;
}
.look__gallery[data-look-ready] .look__item.is-flying { position: static; }
.look__gallery[data-look-ready] .look__card {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: left var(--look-morph), top var(--look-morph), width var(--look-morph), height var(--look-morph);
}
.look__gallery[data-look-ready] .look__item.is-flying .look__card { z-index: 2; }
.look__gallery[data-look-ready] .look__pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 11px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
  /* back after the card has mostly shrunk */
  transition: opacity 0.4s ease-in-out 0.35s;
}
.look__item.is-active .look__pill {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s ease-in-out;
}
.look__plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}
.look__plus::before,
.look__plus::after,
.look__close::before,
.look__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--bg);
}
.look__plus::after { transform: rotate(90deg); }
.look__pill:hover .look__plus { transform: scale(1.1); }
.look__gallery[data-look-ready] .look__body { width: var(--look-w, 380px); }
.look__gallery[data-look-ready] .look__body p {
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.3s ease-in-out, transform 0.4s ease-in-out;
}
.look__gallery[data-look-ready] .look__item.is-active .look__body p {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-in-out 0.25s, transform 0.4s ease-in-out;
}

/* prev / next and close appear while a feature is open */
.look__gallery[data-look-ready] .look__nav,
.look__gallery[data-look-ready] .look__close {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.look__gallery.is-open .look__nav,
.look__gallery.is-open .look__close {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}
.look__nav { gap: 12px; }
.look__arrow,
.look__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.look__arrow svg { width: 16px; height: 16px; }
.look__arrow:disabled { opacity: 0.35; cursor: default; }
.look__arrow:not(:disabled):hover,
.look__close:hover { background: var(--line-strong); }
.look__close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
}
.look__close::before,
.look__close::after { width: 14px; margin-left: -7px; background: var(--text); }
.look__close::before { transform: rotate(45deg); }
.look__close::after { transform: rotate(-45deg); }

/* phone: the open feature is ringed, the rest fade behind an opaque veil
   (real transparency would let the banner show through the QR card) */
.look__gallery[data-look-ready] .venue [data-look-i] { cursor: pointer; }
.look__gallery.is-open .venue .w { transform: scale(0.97); }
.look__gallery[data-look-ready] .venue .w::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--app-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.look__gallery.is-open .venue .w::after { opacity: 0.65; }
.look__gallery.is-open .venue .w.is-active {
  z-index: 2;
  transform: scale(1.04);
  box-shadow: 0 0 0 0.16em var(--brand), 0 0.7em 1.8em rgba(0, 0, 0, 0.2);
}
.look__gallery.is-open .venue .w.is-active::after { opacity: 0; }

@media (min-width: 1068px) {
  .look__gallery {
    grid-template-columns: 36px minmax(0, 380px) 1fr;
    align-items: center;
    gap: 40px;
    min-height: clamp(640px, calc(var(--vh) - var(--header-bottom) - 80px), 780px);
  }
  .look__gallery:not([data-look-ready]) { grid-template-columns: minmax(0, 420px) 1fr; }
  .look__nav { flex-direction: column; }
  .look__arrow--prev svg,
  .look__arrow--next svg { transform: rotate(90deg); }
}
@media (max-width: 1067px) {
  .look__gallery { justify-items: center; text-align: center; }
  .look__gallery[data-look-ready] {
    grid-template-areas: "device" "items" "nav";
    gap: 20px;
  }
  .look__device { grid-area: device; }
  .look__phone { --w: min(56vw, 270px, calc((var(--vh) - var(--header-bottom) - 300px) * 0.478)); }
  .look__gallery[data-look-ready] .look__items {
    grid-area: items;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: start;
    gap: 8px;
    width: 100%;
    max-width: 560px;
  }
  .look__gallery[data-look-ready] .look__pill { padding: 7px 16px 7px 7px; font-size: 15px; gap: 8px; }
  .look__plus { width: 24px; height: 24px; }
  .look__plus::before,
  .look__plus::after { width: 10px; margin-left: -5px; }
  /* one feature at a time: the other pills fade out where they are */
  .look__gallery.is-open .look__item:not(.is-active) {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
  }
  .look__gallery.is-open .look__item.is-active { transition: opacity 0.15s var(--ease); }
  .look__gallery[data-look-ready] .look__body p { padding: 18px 22px; font-size: 16px; }
  .look__nav { grid-area: nav; justify-content: center; }
  .look__close { top: 14px; right: 14px; }
}

/* ---------- Customizer (guest) ----------------------------------------- */
.cz {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1068px) {
  .cz { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.cz__preview { display: grid; place-items: center; }
.cz__phone { --w: clamp(260px, 26vw, 310px); }
.cz__controls {
  display: grid;
  gap: 30px;
  width: min(100%, 460px);
  margin-inline: auto;
}
@media (min-width: 1068px) { .cz__controls { margin-inline: 0; } }
.cz__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.cz__group legend {
  margin-bottom: 14px;
  padding: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.cz__note { color: var(--text-2); font-size: 14px; }
.cz__reset {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17px;
}

/* ---------- Achievements ----------------------------------------------- */
.ach__layout {
  display: grid;
  gap: 20px;
}
@media (min-width: 1068px) {
  .ach__layout { grid-template-columns: 1.15fr 1fr; }
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 10px;
  margin: 0;
  padding: clamp(28px, 4vw, 44px) 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  list-style: none;
}
.badge-grid li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  text-align: center;
}
.badge-grid .badge { width: clamp(68px, 8vw, 88px); margin-bottom: 12px; }
.badge-grid .badge b { font-size: clamp(22px, 2.6vw, 28px); }
.badge-grid li > b { font-size: 15px; letter-spacing: -0.015em; }
.badge-grid small { color: var(--text-2); font-size: 13px; }

.collection {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: radial-gradient(120% 80% at 80% 0%, #1b4a72, transparent 60%), linear-gradient(170deg, #0e2d4a, #071726);
  color: #fff;
}
.collection__head { display: flex; align-items: center; gap: 12px; }
.collection__head .wcard__logo { font-size: 17px; }
.collection__head b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.collection__head small { display: block; font-size: 13px; opacity: 0.7; }
.whales {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.whales i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.whales svg { width: 68%; height: auto; aspect-ratio: 32 / 24; color: var(--wc); }
.whales .r-x { background: rgba(255, 200, 97, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 200, 97, 0.6); }
.r-c { --wc: #9fc6e0; }
.r-r { --wc: #50bcff; }
.r-s { --wc: #c3b4f5; }
.r-x { --wc: #ffc861; }
.rarity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.rarity li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); }
.rarity b { margin-left: auto; color: #fff; }
.rarity__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wc); }
.collection__progress span { font-size: 14px; opacity: 0.8; }
.collection__progress .w__bar { height: 8px; margin-top: 10px; background: rgba(255, 255, 255, 0.14); }
.collection__progress .w__bar i { background: linear-gradient(90deg, #50bcff, #c3b4f5, #ffc861); }
.ach__swap { max-width: 640px; margin: clamp(36px, 5vw, 56px) auto 0; }

/* ---------- Feedback ---------------------------------------------------- */
.fb__card { display: grid; align-content: start; gap: 6px; padding: 16px 16px 32px; }
.fb__card > :not(.fb__art) { margin-inline: 16px; }
.fb__card .eyebrow { margin-bottom: 2px; }
.fb__card .h3 { margin-bottom: 8px; }
.fb__art {
  display: grid;
  place-items: center;
  height: 230px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: var(--tint);
}
.fb-mock {
  display: grid;
  gap: 12px;
  width: min(290px, 88%);
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 15px;
}
.stars--lg svg { width: 26px; height: 26px; }
.fb-mock__bubble {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
}
.fb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.fb-row .stars svg { width: 18px; height: 18px; }
.fb-tag {
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e3f6e8;
  color: #1c7c3a;
  font-size: 12px;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .fb-tag { background: rgba(52, 199, 89, 0.16); color: #4cd964; }
}
