/*
  Season Pass tab. Sources: Prefabs/UI/SeasonPass/SeasonPassScreen.prefab, SeasonPassTierRow.prefab,
  Prefabs/UI/Hub/HubTabBanner.prefab, SeasonPassTierRowView.cs (the spine and card colours).
  Sizes are canvas units via --u (see tokens.css); the phone layout follows the prefab, the wide
  layout (.pass--wide) is the desktop composition: the header spans the column, the points chip and
  the premium pitch sit side by side and the tiers run as a horizontal track.
*/

/* ---- Page + panel (SeasonPassScreen/Panel) ------------------------------------------------------ */
.pass-root {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pass {
  --pass-ink: #1b2559;
  --pass-muted: #78808b;
  --pass-free: #f6fafd;
  --pass-premium: #fdfcf8;
  --pass-edge: #edeef2;
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--pass-ink);
}
.pass--phone {
  padding: calc(19 * var(--u)) calc(20 * var(--u)) calc(15 * var(--u));
}
.pass-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(5 * var(--u));
  padding-bottom: calc(40 * var(--u));
  border-radius: calc(48 * var(--u));
  background: linear-gradient(180deg, #f5f8fd, #f1f4f9);
  /* TrueShadow offsetAngle 270 puts the shadow above the caster (Unity y up) */
  box-shadow: 0 calc(-10 * var(--u)) calc(28 * var(--u)) rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.pass-empty-state {
  flex: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(48px, 10vh, 110px) calc(36 * var(--u));
  text-align: center;
}
.pass-empty-state .pass-empty { padding: 0; }
.pass-feedback {
  flex: none;
  padding: calc(22 * var(--u)) calc(36 * var(--u));
  border-radius: calc(32 * var(--u));
  background: var(--danger-ink);
  color: #fff;
  font-weight: var(--w-medium);
  font-size: calc(30 * var(--u));
  line-height: 1.3;
  text-align: center;
}

/* TextMeshPro auto-size labels (FitText sets --fs in canvas units) */
.fit-text {
  display: block;
  min-width: 0;
  font-size: calc(var(--fs) * var(--wk, 1) * var(--u));
  white-space: nowrap;
}

/* ---- Header band (HubTabBanner as the pass screen overrides it) --------------------------------- */
.pass-banner {
  position: relative;
  flex: none;
  height: calc(300 * var(--u));
  overflow: hidden;
  border-radius: calc(48 * var(--u)) calc(48 * var(--u)) 0 0;
  background: #9eccec;
}
.pass-banner__art {
  position: absolute;
  left: 0;
  bottom: calc(-72 * var(--u));
  width: max(calc(1664 * var(--u)), 100%);
  aspect-ratio: 1536 / 443;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.pass-banner__title {
  position: absolute;
  left: calc(44 * var(--u));
  top: calc(48 * var(--u));
  width: calc(620 * var(--u));
  height: calc(66 * var(--u));
  line-height: calc(66 * var(--u));
  font-weight: var(--w-black);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1e2a44;
}
.pass-banner__icon {
  position: absolute;
  left: calc(46 * var(--u));
  top: calc(116 * var(--u));
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
}
.pass-banner__subtitle {
  position: absolute;
  left: calc(90 * var(--u));
  top: calc(118 * var(--u));
  width: calc(560 * var(--u));
  height: calc(36 * var(--u));
  line-height: calc(36 * var(--u));
  font-weight: var(--w-semibold);
  color: #1f5a99;
}
.pass-banner__robot {
  position: absolute;
  right: calc(-7 * var(--u));
  top: calc(43 * var(--u));
  width: calc(376 * var(--u));
  height: calc(376 * var(--u));
}

/* ---- Season Points chip (PointsRow/PointsChip) -------------------------------------------------- */
.pass-points {
  flex: none;
  height: calc(234 * var(--u));
  padding: calc(16 * var(--u)) calc(30 * var(--u)) calc(8 * var(--u));
}
.pass-points__chip {
  position: relative;
  height: 100%;
  border-radius: calc(30 * var(--u));
  background: #fff;
  box-shadow: 0 calc(-8 * var(--u)) calc(18 * var(--u)) calc(2 * var(--u)) rgba(0, 26, 64, 0.3);
}
.pass-points__caption,
.pass-points__value,
.pass-points__next {
  position: absolute;
  left: calc(5% - 16 * var(--u));
  width: 53%;
  display: flex;
}
.pass-points__caption {
  top: calc(2.8 * var(--u));
  height: calc(46.2 * var(--u));
  align-items: flex-end;
  font-weight: var(--w-medium);
  font-size: calc(24 * var(--u));
  letter-spacing: -0.02em;
  color: var(--pass-muted);
}
.pass-points__value {
  top: calc(36 * var(--u));
  height: calc(84 * var(--u));
  align-items: center;
  font-weight: var(--w-bold);
  line-height: 1;
  color: var(--pass-ink);
  gap: calc(16 * var(--u));
}
.pass-points__icon { flex: none; width: calc(72 * var(--u)); height: calc(72 * var(--u)); object-fit: contain; }
.pass-points__number { flex: 1; min-width: 0; }
.pass-points__track {
  position: absolute;
  left: calc(34 * var(--u));
  top: calc(135.3 * var(--u));
  width: calc(442 * var(--u));
  height: calc(16 * var(--u));
  border-radius: calc(8 * var(--u));
  background: #e5e5e5;
  overflow: hidden;
}
.pass-points__fill {
  display: block;
  height: 100%;
  border-radius: calc(8 * var(--u));
  background: #feb801;
}
.pass-points__next {
  top: calc(163.8 * var(--u));
  height: calc(33.6 * var(--u));
  align-items: center;
  font-weight: var(--w-medium);
  font-size: calc(22 * var(--u));
  color: var(--pass-muted);
}
.pass-points__how {
  --btn-h: calc(87 * var(--u));
  --btn-font: calc(28 * var(--u));
  position: absolute;
  right: calc(28 * var(--u));
  top: calc(99.5 * var(--u));
  width: calc(372 * var(--u));
  height: calc(87 * var(--u));
  min-width: 0;
  padding: 0 calc(20 * var(--u));
  /* BaseButtonYellowLarge as the pass overrides it: a 4-unit rim (light gold above, dark gold below),
     a cream glow and a dark gold edge under the white label */
  --btn-edge: #80560a;
  border: calc(3.5 * var(--u)) solid transparent;
  background:
    linear-gradient(180deg, #ffd129, #ffc800) padding-box,
    linear-gradient(180deg, #f6e08c 0%, #c79b34 100%) border-box;
  box-shadow: 0 calc(5 * var(--u)) calc(12 * var(--u)) rgba(255, 242, 186, 0.95);
  letter-spacing: 0.05em;
  text-shadow:
    0 calc(3 * var(--u)) 0 var(--btn-edge),
    0 0 calc(1.5 * var(--u)) var(--btn-edge);
}

/* ---- Premium includes (PremiumIncludes/Strip) -------------------------------------------------- */
.pass-includes {
  flex: none;
  height: calc(196 * var(--u));
}
.pass-includes__strip {
  position: relative;
  height: calc(184 * var(--u));
  margin: calc(6 * var(--u)) calc(30 * var(--u));
  border-radius: calc(30 * var(--u));
  background: #fff4e0;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #f3dfc0;
}
.pass-includes__crown {
  position: absolute;
  left: calc(30 * var(--u));
  top: calc(18 * var(--u));
  width: calc(38 * var(--u));
  height: calc(38 * var(--u));
  object-fit: contain;
}
.pass-includes__title {
  position: absolute;
  left: calc(80 * var(--u));
  right: calc(20 * var(--u));
  top: calc(17 * var(--u));
  height: calc(40 * var(--u));
  line-height: calc(40 * var(--u));
  font-weight: var(--w-bold);
  font-size: calc(28 * var(--u));
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--pass-ink);
}
.pass-includes__chips {
  position: absolute;
  left: calc(14 * var(--u));
  right: calc(14 * var(--u));
  bottom: calc(18 * var(--u));
  height: calc(94 * var(--u));
  display: flex;
  gap: calc(12 * var(--u));
}
.pass-chip {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: 0 calc(12 * var(--u)) 0 calc(18 * var(--u));
  border-radius: calc(26 * var(--u));
  background: #fff;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #efe3cf;
}
.pass-chip__icon {
  flex: none;
  width: calc(54 * var(--u));
  height: calc(54 * var(--u));
  object-fit: contain;
}
.pass-chip__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pass-chip__top {
  height: calc(36 * var(--u));
  line-height: calc(36 * var(--u));
  font-weight: var(--w-bold);
  color: var(--pass-ink);
}
.pass-chip__bottom {
  height: calc(30 * var(--u));
  line-height: calc(30 * var(--u));
  font-weight: var(--w-medium);
  color: #5f6877;
}

/* ---- Ladder card (Body/Content/LadderCard) ---------------------------------------------------- */
.pass-body {
  flex: 1 1 0;
  min-height: calc(300 * var(--u));
}
/* the ladder fades out above the call to action (AdventureEdgeFadeView, the game's own scroll edge) instead of
   being cut mid-row by a hard line; the fade (the shared 48 units) only shows while more rows are below */
.pass-body.fade-scroll {
  flex: 1 1 0;
  min-height: calc(300 * var(--u));
}
.pass-ladder {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  padding: calc(2 * var(--u)) calc(20 * var(--u)) calc(28 * var(--u));
}
.pass-ladder__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  padding: calc(7 * var(--u)) calc(12 * var(--u)) calc(16 * var(--u));
  border-radius: calc(28 * var(--u));
  background: #fbfcfe;
}
.pass-ladder__wash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 0;
  border-radius: calc(24 * var(--u));
  background: #fbfbf9;
}
.pass-ladder__head {
  position: relative;
  display: flex;
  gap: calc(14 * var(--u));
  height: calc(70 * var(--u));
  padding: calc(4 * var(--u)) calc(8 * var(--u)) calc(4 * var(--u)) 0;
}
.pass-pill {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: calc(56 * var(--u));
  border-radius: calc(28 * var(--u));
}
.pass-pill--free {
  background: #eaf3fe;
  color: #4f7fbf;
}
.pass-pill--premium {
  background: #fef6e9;
  color: #db8e3d;
}
.pass-pill__icon {
  position: absolute;
  object-fit: contain;
}
.pass-pill--free .pass-pill__icon {
  left: 28%;
  width: 7%;
  top: 14%;
  height: 72%;
}
.pass-pill--premium .pass-pill__icon {
  left: 25%;
  width: 5%;
  top: 20%;
  height: 60%;
}
.pass-pill__label {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3%;
  display: flex;
  align-items: center;
  font-weight: var(--w-semibold);
  font-size: calc(23 * var(--u));
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.pass-pill--free .pass-pill__label {
  left: 39%;
}
.pass-pill--premium .pass-pill__label {
  left: 34%;
}
.pass-empty {
  padding: calc(40 * var(--u)) calc(24 * var(--u));
  text-align: center;
  font-weight: var(--w-medium);
  font-size: calc(26 * var(--u));
  color: #808890;
}

/* ---- Tier row (SeasonPassTierRow.prefab) ------------------------------------------------------ */
.pass-ladder__rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(28.5 * var(--u));
  padding: calc(9 * var(--u)) calc(8 * var(--u)) 0 calc(2 * var(--u));
}
.pass-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(98 * var(--u)) minmax(0, 1fr);
  grid-template-rows: calc(86 * var(--u));
  column-gap: calc(5 * var(--u));
  align-items: center;
}
.pass-row > .pass-card {
  height: calc(105 * var(--u));
}

/* reward cards: the free card holds the tier's state, the premium card the pass reward */
.pass-card {
  position: relative;
  border-radius: calc(26 * var(--u));
  box-shadow:
    inset 0 0 0 calc(2 * var(--u)) var(--pass-edge),
    0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.037);
}
.pass-card--free {
  background: var(--pass-free);
  --pass-amount: #252935;
}
.pass-card--free.is-locked {
  --pass-amount: #343a45;
}
.pass-card--premium {
  background: var(--pass-premium);
  --pass-amount: #252935;
}
.pass-card--premium.is-locked {
  --pass-amount: #525560;
}
.pass-plate {
  position: absolute;
  left: calc(142 * var(--u));
  top: 50%;
  width: calc(56 * var(--u));
  height: calc(56 * var(--u));
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #e6e9ee;
}
.pass-plate img {
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  object-fit: contain;
}
.pass-card__amount {
  position: absolute;
  left: calc(214 * var(--u));
  right: calc(8 * var(--u));
  top: 10%;
  bottom: 10%;
  display: flex;
  align-items: center;
  font-weight: var(--w-medium);
  font-size: calc(24 * var(--u));
  white-space: nowrap;
  color: var(--pass-amount);
}
.pass-lock,
.pass-claimed {
  position: absolute;
  left: calc(28 * var(--u));
  top: 50%;
  width: calc(56 * var(--u));
  height: calc(56 * var(--u));
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: calc(20 * var(--u));
  background: #f1f4f7;
}
.pass-lock .tinted-icon {
  width: calc(26 * var(--u));
  height: calc(30 * var(--u));
}
.pass-claimed {
  background: #e8f7f2;
}
.pass-claimed__disc {
  display: grid;
  place-items: center;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border-radius: 50%;
  background: linear-gradient(180deg, #2eb869, #24a45c);
  box-shadow: inset 0 0 0 calc(1 * var(--u)) #10944d;
}
.pass-claimed__disc img {
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  object-fit: contain;
}
.pass-claim {
  --btn-h: calc(73.5 * var(--u));
  --btn-font: calc(24 * var(--u));
  position: absolute;
  left: 2%;
  top: 15%;
  width: 28%;
  height: 70%;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.pass-claim__label {
  flex: 1;
  min-width: 0;
  padding: 0 calc(16 * var(--u));
  text-align: center;
}
.pass-claim[aria-busy='true'] {
  filter: saturate(0.7);
}
.pass-nib {
  position: absolute;
  left: calc(100% - 2 * var(--u));
  top: 50%;
  width: calc(18 * var(--u));
  height: calc(24 * var(--u));
  transform: translateY(-50%);
}

/* spine: the numbered disc and its dashed connector */
.pass-spine {
  position: relative;
  height: calc(74 * var(--u));
}
.pass-row .pass-spine__dash {
  position: absolute;
  left: calc(50% - 1 * var(--u));
  top: calc(-14 * var(--u));
  bottom: calc(-14 * var(--u));
  width: calc(4.5 * var(--u));
  background-color: #bcbfc5;
  -webkit-mask-image: url('../assets/unity/Art/UI/Icons/SeasonPass/SpineDash.webp');
  mask-image: url('../assets/unity/Art/UI/Icons/SeasonPass/SpineDash.webp');
  -webkit-mask-repeat: repeat-y;
  mask-repeat: repeat-y;
  -webkit-mask-size: calc(8 * var(--u)) calc(114 * var(--u));
  mask-size: calc(8 * var(--u)) calc(114 * var(--u));
  -webkit-mask-position: calc(-2 * var(--u)) bottom;
  mask-position: calc(-2 * var(--u)) bottom;
}
.pass-disc {
  --s: 66;
  --ring: 3;
  --num: 42;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: calc(var(--s) * var(--dk, 1) * var(--u));
  height: calc(var(--s) * var(--dk, 1) * var(--u));
  transform: translate(-50%, -50%);
}
.pass-row .pass-disc {
  transform: translate(-50%, calc(-50% - 6 * var(--u)));
}
.pass-disc__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: calc(var(--ring) * var(--dk, 1) * var(--u)) solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #4c99f5 0%, #3b87f0 50%, #2c65b4 100%) padding-box,
    linear-gradient(180deg, #ffffff, #d9f2ff) border-box;
  box-shadow: 0 calc(3 * var(--dk, 1) * var(--u)) calc(8 * var(--dk, 1) * var(--u)) rgba(143, 161, 184, 0.32);
}
.pass-disc__num {
  font-weight: var(--w-bold);
  font-size: calc(var(--num) * var(--dk, 1) * var(--u));
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.pass-disc--current {
  --s: 68;
  --ring: 4;
}
.pass-disc--current .pass-disc__face {
  background:
    linear-gradient(180deg, #fec22a, #feb602) padding-box,
    linear-gradient(180deg, #f8db43 0%, #fce8b4 50%, #d99002 100%) border-box;
  box-shadow: none;
}
.pass-disc--current .pass-disc__num {
  color: #fffada;
}
.pass-disc__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 14 * var(--dk, 1) * var(--u));
  height: calc(100% + 14 * var(--dk, 1) * var(--u));
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff7d6;
  box-shadow: inset 0 0 0 calc(2 * var(--dk, 1) * var(--u)) #ebdca4;
}
.pass-disc--muted {
  --s: 58;
  --ring: 2;
  --num: 31;
}
.pass-disc--muted .pass-disc__face {
  background:
    linear-gradient(180deg, #f4f6f7, #f1f3f4) padding-box,
    linear-gradient(180deg, #d2d1d6, #b5b4b9) border-box;
  box-shadow: none;
}
.pass-disc--muted .pass-disc__num {
  color: #858994;
}

/* ---- Footer (GET PREMIUM PASS) ---------------------------------------------------------------- */
.pass-footer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--u));
  min-height: calc(124 * var(--u));
  padding: calc(12 * var(--u)) calc(20 * var(--u)) 0;
}
.pass-cta {
  --btn-h: calc(112 * var(--u));
  --btn-font: calc(32 * var(--u));
  height: calc(112 * var(--u));
  /* BaseButtonGreenLarge: green face, a pale-green rim, no hard label edge */
  --btn-edge: rgba(0, 40, 15, 0.4);
  border: calc(4 * var(--u)) solid transparent;
  background:
    linear-gradient(180deg, #21914a, #158540) padding-box,
    linear-gradient(180deg, #a9d9b5, #8fc8a0) border-box;
  box-shadow: 0 calc(6 * var(--u)) calc(12 * var(--u)) rgba(0, 50, 20, 0.2);
  letter-spacing: 0.07em;
  text-shadow: 0 calc(2 * var(--u)) 0 var(--btn-edge);
}

/* ---- First-time reward hint (FirstTimeHintView) ----------------------------------------------- */
.pass-hint {
  position: absolute;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: calc(420 * var(--u));
  max-width: calc(940 * var(--u));
  height: calc(84 * var(--u));
  padding: 0 calc(44 * var(--u));
  border-radius: 999px;
  background: #041845;
  box-shadow:
    inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.22),
    0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: var(--w-medium);
  font-size: calc(32 * var(--u));
  white-space: nowrap;
  text-align: center;
}
.pass-hint.is-on {
  display: flex;
}
.pass-hint__pointer {
  position: absolute;
  top: calc(-14 * var(--u));
  left: var(--pointer-x, 50%);
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  transform: translateX(-50%) rotate(45deg);
  border-top-left-radius: calc(5 * var(--u));
  background: #041845;
}

/* ---- How to earn (HowToEarnPopup) -------------------------------------------------------------- */
.pass-how {
  --k: 1;
  background: rgba(13, 20, 31, 0.55);
}
/* phone: the dim covers the page between the hub header and the tab bar, as in Unity */
.app--phone .pass-how {
  position: absolute;
  padding: 0;
}
.app--wide .pass-how {
  --k: 1.3;
}
.pass-how__card {
  position: relative;
  width: calc(640 * var(--u) * var(--k));
  height: calc(560 * var(--u) * var(--k));
  border-radius: calc(28 * var(--u) * var(--k));
  background: #fff;
  box-shadow:
    inset 0 0 0 calc(2 * var(--u) * var(--k)) #e6e6e7,
    0 calc(10 * var(--u) * var(--k)) calc(10 * var(--u) * var(--k)) rgba(0, 0, 0, 0.0667);
  color: #031c26;
  animation: pop-in var(--t-med) var(--ease-spring);
}
.pass-how__card:focus {
  outline: none;
}
.pass-how__title {
  position: absolute;
  left: 8%;
  width: 72%;
  top: calc(44.8 * var(--u) * var(--k));
  height: calc(112 * var(--u) * var(--k));
  display: flex;
  align-items: center;
  font-weight: var(--w-bold);
  font-size: calc(28 * var(--u) * var(--k));
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.pass-how__close {
  position: absolute;
  left: calc(92% - 22 * var(--u) * var(--k));
  top: calc(67.2 * var(--u) * var(--k) - 22 * var(--u) * var(--k));
  width: calc(44 * var(--u) * var(--k));
  height: calc(44 * var(--u) * var(--k));
  display: grid;
  place-items: center;
  border-radius: calc(9 * var(--u) * var(--k));
  background: #f3f4f6;
  font-weight: var(--w-bold);
  font-size: calc(28 * var(--u) * var(--k));
  line-height: 1;
  color: #031c26;
}
.pass-how__close:hover {
  background: #e7e9ee;
}
.pass-how__rows {
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(168 * var(--u) * var(--k));
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--u) * var(--k));
}
.pass-how__row {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u) * var(--k));
  min-height: calc(88 * var(--u) * var(--k));
  padding: calc(4 * var(--u) * var(--k)) 0;
}
.pass-how__icon {
  flex: none;
  width: calc(56 * var(--u) * var(--k));
  height: calc(56 * var(--u) * var(--k));
  object-fit: contain;
}
.pass-how__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--u) * var(--k));
}
.pass-how__row-title {
  font-weight: var(--w-semibold);
  font-size: calc(24 * var(--u) * var(--k));
  line-height: 1.25;
  color: #031c26;
}
.pass-how__row-body {
  font-weight: var(--w-semibold);
  font-size: calc(18 * var(--u) * var(--k));
  line-height: 1.33;
  color: #37474f;
}

/* Keep secondary information readable on a physical-size phone. The ladder
   retains its own scroll region rather than making labels smaller to fit. */
.pass--phone .pass-points__next {
  font-size: max(11px, calc(22 * var(--u)));
  height: auto;
  line-height: 1.2;
  color: #46516b;
}
.pass--phone .pass-includes {
  height: auto;
}
.pass--phone .pass-includes__strip {
  height: auto;
  padding: 8px 6px 6px;
}
.pass--phone .pass-includes__title {
  position: static;
  height: auto;
  padding-left: 21px;
  font-size: max(11px, calc(28 * var(--u)));
  line-height: 1.2;
  white-space: normal;
}
.pass--phone .pass-includes__crown {
  left: 10px;
  top: 8px;
  width: 13px;
  height: 13px;
}
.pass--phone .pass-includes__chips {
  position: static;
  height: auto;
  min-height: 38px;
  margin-top: 6px;
  gap: 4px;
}
.pass--phone .pass-chip {
  padding: 5px 6px;
  gap: 4px;
}
/* each chip is one bold line over one smaller muted line, as in Unity; FitText shrinks a long
   (Finnish) line rather than wrapping it into a third row */
.pass--phone .pass-chip__top,
.pass--phone .pass-chip__bottom {
  height: auto;
  line-height: 1.2;
}
.pass--phone .pass-chip__top {
  --wk: 1.1;
}
.pass--phone .pass-chip__bottom {
  --wk: 1.25;
  color: #5f6877;
}
/* the call to action takes the ladder rows' own side inset (card 20 + padding 12 + the rows' 2 left / 8 right), so
   its edges stand under the free and premium cards instead of 12 px wider than them */
.pass--phone .pass-footer {
  padding-left: calc(34 * var(--u));
  padding-right: calc(40 * var(--u));
}
/* the icon and value end 12 px before HOW TO EARN (a five-digit total auto-sizes rather than running
   under it) */
.pass--phone .pass-points__value {
  width: calc(95% - 384 * var(--u) - 12px);
}
/* the bar stops well short of HOW TO EARN (the button is 372 units wide, 28 from the chip's edge) */
.pass--phone .pass-points__track {
  width: min(calc(442 * var(--u)), calc(100% - 434 * var(--u) - 14px));
}
.pass--phone .pass-pill__label {
  font-size: max(10px, calc(23 * var(--u)));
  letter-spacing: 0;
}
.pass--phone .pass-card__amount {
  font-size: max(12px, calc(24 * var(--u)));
}
/* "150 Coins" auto-sizes (TMP auto size) so a longer Finnish "150 kolikkoa" stays inside the card;
   at full size it keeps the 12 px floor (0.5 px per canvas unit of the 24-unit size) */
.pass-card__amount .fit-text {
  flex: 1 1 auto;
  min-width: 0;
}
.pass--phone .pass-card__amount .fit-text {
  font-size: max(calc(var(--fs) * 0.5px), calc(var(--fs) * var(--u)));
}

/* ======================================================================================================
   Wide layout (>= 760 px): the desktop composition. The header band spans the centred column, the
   points chip sits beside the premium pitch, and the tiers run as a horizontal track.
   The band and the track are sized to the window height (the tiers below), so the whole tab, both
   reward lanes included, fits without scrolling from a 1280x720 laptop up, and a tall window gets
   larger tiles rather than empty space. Sizes are canvas units unless they say px.
   ====================================================================================================== */
.pass--wide {
  /* 881-999 px tall (a 1440x900 desktop); the tiers further down retune these */
  --pb: calc(300 * var(--u)); /* band height */
  --title-k: 1.4; /* title and countdown, over the phone's TMP sizes */
  --sub-k: 1.3;
  --lane-card: 248; /* reward lane: the card plus 14 units of air */
  --lane-spine: 110; /* the disc (and the target's halo) keeps clear air to the cards */
  --dk: 1.35; /* spine disc */
  --tile-pad: 16;
  --plate: 84;
  --plate-img: 62;
  --amount-fs: 34;
  --state-h: 72; /* the state row: padlock and "Needs 130", the Claimed check, or Claim */
  --state-fs: 30;
  --lock: 56;
  --tile-min: 280; /* the narrowest tier column; the track shows as many whole columns as fit */
  display: flex;
  flex-direction: column;
  padding: 14px 24px 22px;
}
.pass--wide .pass-panel {
  flex: 1 0 auto;
  gap: 0;
  padding-bottom: 0;
  border-radius: calc(52 * var(--u));
}
/* no season published: a short card with the one line, not a window-high empty panel */
.pass--wide .pass-panel:has(> .pass-empty-state) {
  flex: none;
}

/* ---- header band: title and countdown at the left, centred on the band; the crowned robot stands
   behind the band's lower edge and is cut where the phone (and Unity) cut it, below the chest badge */
.pass--wide .pass-banner {
  height: var(--pb);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: calc(14 * var(--u));
  row-gap: calc(var(--pb) * 0.02);
  padding: 0 calc(var(--pb) * 1.6 + 48 * var(--u)) 0 calc(72 * var(--u));
  border-radius: calc(52 * var(--u)) calc(52 * var(--u)) 0 0;
}
.pass--wide .pass-banner__art {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  background-size: 177% auto;
  background-position: 5% 54%;
}
.pass--wide .pass-banner__title {
  --wk: var(--title-k);
  position: relative;
  left: auto;
  top: auto;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  line-height: 1.12;
}
.pass--wide .pass-banner__icon {
  position: relative;
  left: auto;
  top: auto;
  width: calc(34 * var(--sub-k) * var(--u));
  height: calc(34 * var(--sub-k) * var(--u));
}
.pass--wide .pass-banner__subtitle {
  --wk: var(--sub-k);
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  line-height: 1.25;
}
.pass--wide .pass-banner__robot {
  right: calc(var(--pb) * 0.16);
  top: calc(var(--pb) * 0.035);
  width: calc(var(--pb) * 1.38);
  height: calc(var(--pb) * 1.38);
}

/* ---- the body under the band ------------------------------------------------------------------- */
.pass-desk {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 26px 16px;
}
.pass-desk__top {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 18px;
  align-items: stretch;
}
.pass-desk__top.is-solo {
  grid-template-columns: minmax(0, 1fr);
}
.pass-desk__pitch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* points chip: caption, value, bar and next-tier line stacked at the left, HOW TO EARN at the right */
.pass--wide .pass-points {
  height: auto;
  padding: 0;
}
.pass--wide .pass-points__chip {
  height: 100%;
  padding: calc(26 * var(--u)) calc(40 * var(--u));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: calc(36 * var(--u));
  border-radius: calc(40 * var(--u));
}
.pass--wide .pass-points__caption,
.pass--wide .pass-points__value,
.pass--wide .pass-points__next,
.pass--wide .pass-points__track {
  position: static;
  grid-column: 1;
  width: auto;
  height: auto;
}
.pass--wide .pass-points__caption {
  font-size: calc(30 * var(--u));
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pass--wide .pass-points__value {
  --wk: 1.2;
  line-height: 1.1;
}
.pass--wide .pass-points__track {
  height: calc(20 * var(--u));
  margin: calc(10 * var(--u)) 0 calc(12 * var(--u));
  border-radius: calc(10 * var(--u));
}
.pass--wide .pass-points__next {
  font-size: calc(30 * var(--u));
  line-height: 1.2;
}
.pass--wide .pass-points__how {
  --btn-h: calc(104 * var(--u));
  --btn-font: calc(32 * var(--u));
  position: relative;
  right: auto;
  top: auto;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  width: auto;
  height: calc(104 * var(--u));
  min-width: calc(360 * var(--u));
  padding: 0 calc(36 * var(--u));
}

/* premium pitch: the strip over the call to action */
/* when the points chip is the taller of the two (a narrow window), the strip and its chips grow so
   the call to action still lines up with the chip's lower edge */
.pass--wide .pass-includes {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  height: auto;
}
.pass--wide .pass-includes__strip {
  flex: 1 0 auto;
  height: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
  padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u));
  border-radius: calc(36 * var(--u));
}
.pass--wide .pass-includes__crown {
  left: calc(34 * var(--u));
  top: calc(16 * var(--u));
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
}
.pass--wide .pass-includes__title {
  position: static;
  height: calc(42 * var(--u));
  line-height: calc(42 * var(--u));
  padding-left: calc(72 * var(--u));
  font-size: calc(32 * var(--u));
}
.pass--wide .pass-includes__chips {
  position: static;
  flex: 1 0 auto;
  height: auto;
  min-height: calc(104 * var(--u));
  gap: calc(14 * var(--u));
}
.pass--wide .pass-chip {
  --wk: 1.2;
  padding: 0 calc(12 * var(--u)) 0 calc(20 * var(--u));
  gap: calc(16 * var(--u));
  border-radius: calc(30 * var(--u));
}
.pass--wide .pass-chip__icon {
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
}
.pass--wide .pass-chip__text {
  gap: calc(2 * var(--u));
}
.pass--wide .pass-chip__top {
  height: auto;
  line-height: 1.2;
}
.pass--wide .pass-chip__bottom {
  --wk: 1.2;
  height: auto;
  line-height: 1.2;
}
.pass--wide .pass-footer {
  min-height: 0;
  padding: 0;
}
.pass--wide .pass-cta {
  --btn-h: calc(100 * var(--u));
  --btn-font: calc(34 * var(--u));
  height: calc(100 * var(--u));
}

/* ---- the track: lane names pinned at the left, one column per tier ---------------------------- */
.pass-track {
  position: relative;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: calc(14 * var(--u)) 0 calc(14 * var(--u)) calc(22 * var(--u));
  border-radius: calc(40 * var(--u));
  background: #fbfcfe;
  overflow: hidden;
}
.pass-track__labels {
  display: grid;
  grid-template-rows: calc(var(--lane-card) * var(--u)) calc(var(--lane-spine) * var(--u)) calc(var(--lane-card) * var(--u));
  align-items: center;
  justify-items: stretch;
  padding-right: calc(22 * var(--u));
}
.pass-track__labels .pass-pill {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  height: calc(72 * var(--u));
  padding: 0 calc(26 * var(--u)) 0 calc(22 * var(--u));
  border-radius: calc(36 * var(--u));
}
.pass-track__labels .pass-pill__icon {
  position: static;
  flex: none;
  width: calc(38 * var(--u));
  height: calc(38 * var(--u));
}
.pass-track__labels .pass-pill__label {
  position: static;
  font-size: calc(28 * var(--u));
  letter-spacing: 0.03em;
}
.pass-track__viewport {
  position: relative;
  min-width: 0;
}
.pass-track__list {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  outline-offset: -3px;
  border-radius: calc(28 * var(--u));
}
.pass-track__list::-webkit-scrollbar {
  display: none;
}
.pass-track__list:focus-visible {
  outline: 3px solid #337fe0;
  box-shadow: none;
}
.pass-track__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--u));
}
.pass-track__arrow {
  --size: calc(84 * var(--u));
  background: #fff;
  box-shadow:
    inset 0 0 0 calc(2 * var(--u)) #e3e7ef,
    0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(27, 37, 89, 0.16);
}
.pass-track__arrow:hover:not(:disabled) {
  background: #f1f5ff;
}
.pass-track__arrow:disabled {
  opacity: 0.38;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #e3e7ef;
  cursor: default;
}
.pass-track__arrow:disabled:active {
  transform: none;
}

/* one tier column: exactly 1/n of the list, so the list always shows whole tiers */
.pass-tile {
  position: relative;
  flex: none;
  width: calc(100% / var(--n, 4));
  display: grid;
  grid-template-rows: calc(var(--lane-card) * var(--u)) calc(var(--lane-spine) * var(--u)) calc(var(--lane-card) * var(--u));
  justify-items: center;
  align-items: center;
}
.pass-tile.is-current::before {
  content: '';
  position: absolute;
  inset: 0 calc(6 * var(--u));
  border-radius: calc(40 * var(--u));
  background: linear-gradient(180deg, rgba(254, 182, 2, 0.12), rgba(254, 182, 2, 0.05));
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(235, 220, 164, 0.8);
}
.pass-tile .pass-spine {
  width: 100%;
  height: calc(var(--lane-spine) * var(--u));
}
.pass-tile .pass-spine__dash {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 2.25 * var(--u));
  height: calc(4.5 * var(--u));
  background: repeating-linear-gradient(90deg, #bcbfc5 0 calc(14 * var(--u)), transparent calc(14 * var(--u)) calc(26 * var(--u)));
}
.pass-tile:first-child .pass-spine__dash {
  left: 50%;
}
.pass-tile:last-child .pass-spine__dash {
  right: 50%;
}

.pass-card--tile {
  width: calc(100% - 22 * var(--u));
  height: calc((var(--lane-card) - 14) * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--u));
  padding: calc(var(--tile-pad) * var(--u)) calc(10 * var(--u));
}
.pass-card--tile .pass-plate {
  position: static;
  transform: none;
  flex: none;
  width: calc(var(--plate) * var(--u));
  height: calc(var(--plate) * var(--u));
}
.pass-card--tile .pass-plate img {
  width: calc(var(--plate-img) * var(--u));
  height: calc(var(--plate-img) * var(--u));
}
.pass-card--tile .pass-card__amount {
  position: static;
  justify-content: center;
  width: 100%;
  font-size: calc(var(--amount-fs) * var(--u));
  line-height: 1.1;
}
.pass-card--tile .pass-card__amount .fit-text {
  --wk: calc(var(--amount-fs) / 24);
  text-align: center;
}
.pass-card__state {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  width: 100%;
  height: max(calc(var(--state-h) * var(--u)), 40px);
}
/* a premium card whose reward is open has no state to show: its plate and amount centre in the card */
.pass-card__state:empty {
  display: none;
}
.pass-card__state-text {
  font-weight: var(--w-medium);
  font-size: calc(var(--state-fs) * var(--u));
  white-space: nowrap;
  color: #4f5968;
}
.pass-card--tile .pass-lock,
.pass-card--tile .pass-claimed {
  position: static;
  transform: none;
  flex: none;
  width: calc(var(--lock) * var(--u));
  height: calc(var(--lock) * var(--u));
  border-radius: calc(var(--lock) * 0.36 * var(--u));
}
.pass-card--tile .pass-lock .tinted-icon {
  width: calc(var(--lock) * 0.46 * var(--u));
  height: calc(var(--lock) * 0.54 * var(--u));
}
.pass-card--tile .pass-claimed__disc {
  width: calc(var(--lock) * 0.64 * var(--u));
  height: calc(var(--lock) * 0.64 * var(--u));
}
.pass-card--tile .pass-claim {
  --btn-h: max(calc(var(--state-h) * var(--u)), 40px);
  --btn-font: calc(27 * var(--u));
  position: static;
  width: min(calc(210 * var(--u)), 100%);
  height: max(calc(var(--state-h) * var(--u)), 40px);
  padding: 0 calc(20 * var(--u));
  /* the card is tight around the state row: keep the button's glow inside it */
  box-shadow: inset 0 calc(-5 * var(--u)) 0 var(--btn-lip);
}
.pass-track--empty {
  display: block;
  padding: calc(48 * var(--u)) calc(24 * var(--u));
}
.pass-track--empty .pass-empty {
  padding: 0;
  font-size: calc(30 * var(--u));
}

/* ---- window height tiers ---------------------------------------------------------------------- */
/* a large monitor (1920x1080) or a portrait tablet: a taller band and larger tiles */
@media (min-height: 1000px) {
  .pass--wide {
    --pb: calc(330 * var(--u));
    --lane-card: 304;
    --lane-spine: 124;
    --dk: 1.45;
    --tile-pad: 18;
    --plate: 120;
    --plate-img: 88;
    --amount-fs: 38;
    --state-h: 84;
    --state-fs: 32;
    --lock: 62;
    --tile-min: 320;
  }
}
/* a 1180x820 landscape tablet: a lower band and mid-size tiles */
@media (max-height: 880px) {
  .pass--wide {
    --pb: calc(240 * var(--u));
    --title-k: 1.3;
    --sub-k: 1.2;
    --lane-card: 232;
    --lane-spine: 98;
    --dk: 1.2;
    --tile-pad: 14;
    --plate: 72;
    --plate-img: 54;
    --amount-fs: 32;
    --state-h: 72;
    --state-fs: 28;
    --lock: 50;
    --tile-min: 290;
  }
}
/* a 1280x720 laptop or a 1024x768 tablet: the band drops to ~110 px and the tiles tighten so both
   reward lanes stay on screen */
@media (max-height: 800px) {
  .pass--wide {
    --pb: calc(190 * var(--u));
    --title-k: 1.15;
    --sub-k: 1.1;
    --lane-card: 208;
    --lane-spine: 84;
    --dk: 1.05;
    --tile-pad: 13;
    --plate: 54;
    --plate-img: 40;
    --amount-fs: 30;
    --state-h: 72;
    --state-fs: 27;
    --lock: 44;
    --tile-min: 250;
  }
  .pass--wide .pass-points__chip {
    padding: calc(20 * var(--u)) calc(36 * var(--u));
  }
  .pass--wide .pass-points__value {
    --wk: 1;
  }
  .pass--wide .pass-includes__strip {
    gap: calc(8 * var(--u));
    padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u));
  }
  .pass--wide .pass-includes__crown {
    top: calc(12 * var(--u));
  }
  .pass--wide .pass-includes__chips {
    min-height: calc(90 * var(--u));
  }
  .pass--wide .pass-cta {
    --btn-h: calc(86 * var(--u));
    height: calc(86 * var(--u));
  }
  .pass-desk {
    gap: 10px;
    padding: 10px 24px 12px;
  }
  .pass-track {
    padding-top: calc(8 * var(--u));
    padding-bottom: calc(8 * var(--u));
  }
}

/* ---- narrower windows ------------------------------------------------------------------------- */
/* 900-1099 px (a 1024x768 tablet): the pitch takes more of the row so its chips stay readable, and
   HOW TO EARN drops under the points */
@media (min-width: 900px) and (max-width: 1099px) {
  .pass-desk__top:not(.is-solo) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .pass-desk__top:not(.is-solo) .pass-points__chip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .pass-desk__top:not(.is-solo) .pass-points__how {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    min-width: 0;
    height: calc(88 * var(--u));
    margin-top: calc(14 * var(--u));
  }
}
/* below 900 px (a portrait tablet): the pitch drops under the points chip, and the track takes the
   full width, its lane names moving to the lanes' outer edges: FREE PASS over the free lane (with the
   arrows), PREMIUM PASS under the premium lane */
@media (min-width: 760px) and (max-width: 899px) {
  .pass--wide {
    --lane-card: 248;
    --lane-spine: 110;
    --dk: 1.35;
    --tile-pad: 16;
    --plate: 84;
    --plate-img: 62;
    --amount-fs: 34;
    --state-h: 72;
    --state-fs: 30;
    --lock: 56;
    --tile-min: 280;
  }
  .pass-desk__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .pass-track {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    row-gap: calc(12 * var(--u));
    padding: calc(20 * var(--u)) calc(22 * var(--u));
  }
  .pass-track__labels {
    display: contents;
  }
  .pass-track__labels .pass-pill--free {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
  }
  .pass-track__nav {
    grid-row: 1;
    grid-column: 2;
  }
  .pass-track__viewport {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .pass-track__labels .pass-pill--premium {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
  }
}

/* under 1240 px the premium chips are narrower: a smaller icon leaves their text room */
@media (min-width: 760px) and (max-width: 1239px) {
  .pass--wide .pass-chip {
    padding: 0 calc(10 * var(--u)) 0 calc(14 * var(--u));
    gap: calc(10 * var(--u));
  }
  .pass--wide .pass-chip__icon {
    width: calc(50 * var(--u));
    height: calc(50 * var(--u));
  }
}

/* HOW TO EARN auto-sizes its label (28u down to 20u) so the longer Finnish NÄIN ANSAITSET stays inside the
   fixed-width button with TMP's bold spacing */
.pass-points__how .pass-points__how-label {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}
.pass--wide .pass-points__how .pass-points__how-label {
  --wk: 1.143; /* 32u on wide, as the wide button's own font */
}
