:root {
  --font-interface: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Impact, "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", sans-serif;
  --font-interface-narrow: "Arial Narrow", "Liberation Sans Narrow", var(--font-interface);
  --font-input: system-ui, -apple-system, "Segoe UI", sans-serif;
  --type-caption: calc(12rem / 15);
  --type-label: calc(14rem / 15);
  --type-body: calc(16rem / 15);
  --type-emphasis: calc(18rem / 15);
  --type-title: calc(20rem / 15);
  --type-subhead: calc(24rem / 15);
  --type-display: calc(32rem / 15);
  --type-foreground: #f6f2fa;
  --type-muted: #b8afc1;
  font-family: var(--font-interface);
  font-size: 93.75%;
}

body {
  color: var(--type-foreground);
  font-size: var(--type-body);
  line-height: 1.375;
}

.primary-link {
  color: var(--type-foreground);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.2143;
}

.primary-link:not(.rank-link) > span:last-child { letter-spacing: -.04em; }

.primary-link.rank-link > span:last-child {
  font-family: var(--font-display);
  font-size: var(--type-emphasis);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .014em;
  text-transform: uppercase;
}

.header-credit .number {
  color: var(--type-foreground);
  font-family: var(--font-interface);
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1.2;
}

.topbar .header-signin {
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.25;
}

.drop-live-label {
  font-size: var(--type-label);
  font-weight: 600;
}

.live-drop-copy strong {
  color: var(--type-foreground);
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.1429;
  letter-spacing: -.04em;
}

.live-drop-copy small {
  margin-top: 0;
  color: var(--type-muted);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: 1.1667;
  letter-spacing: -.055em;
}

.surface > footer {
  color: var(--type-muted);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.1429;
}

.store-display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .03em;
}

.store-slide-inner .store-display {
  font-size: clamp(calc(44rem / 15), 5vw, calc(64rem / 15));
  letter-spacing: .02em;
}

.store-slide-inner p {
  color: rgb(246 242 250 / .7);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.1875;
  text-shadow: 0 1px 6px #08050a;
}

.store-mode span { font-size: var(--type-subhead); }

.store-heading {
  font-size: var(--type-display);
}

.store-heading .store-display {
  letter-spacing: .0175em;
  scale: 1 .96;
  translate: 0 .5px;
}

.store-heading .store-chance-display {
  letter-spacing: normal;
  white-space: nowrap;
}

.store-heading[aria-label="50/50"] .store-chance-display {
  letter-spacing: .015em;
  scale: 1 .96;
}

.store-chance-display > span {
  display: inline-block;
  transform: scaleX(var(--glyph-scale, 1));
  transform-origin: left center;
  margin-inline-end: var(--glyph-spacing, 0em);
}

/* Reserve the scaled advance for the chance labels without changing their line height. */
[data-case-chance-glyph="1"] { --glyph-scale: .89; --glyph-spacing: -.045em; }
[data-case-chance-glyph="2"] { --glyph-scale: 1.066; --glyph-spacing: .034em; }
[data-case-chance-glyph="5"] { --glyph-scale: 1.035; --glyph-spacing: .019em; }
[data-case-chance-glyph="%"] { --glyph-scale: 1.239; --glyph-spacing: .169em; }
[data-case-chance-glyph="/"] { --glyph-scale: 1.11; --glyph-spacing: .045em; }

.store-player-shelf .player-case-intro {
  font-weight: 500;
  line-height: 1.1429;
}

.store-case-name {
  color: var(--type-foreground);
  font-size: var(--type-emphasis);
  font-weight: 600;
  line-height: 1.1667;
}

.store-credit, .store-button {
  color: var(--type-foreground);
  font-size: var(--type-body);
  line-height: 1.25;
}

.store-credit { font-weight: 600; }
.store-button { font-weight: 700; }

.case-console .game-primary {
  color: #f9f5ff;
  font-size: var(--type-emphasis);
  font-weight: 700;
  line-height: 1.1667;
  letter-spacing: .05em;
}

.case-console .game-primary [data-case-cost] {
  font-size: var(--type-body);
  font-weight: 700;
  line-height: 1.1875;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}

.case-quantity label span {
  font-size: var(--type-body);
  font-weight: 700;
  line-height: 1.1875;
  font-variant-numeric: proportional-nums;
}

.case-prizes h2 {
  font-size: var(--type-subhead);
  font-weight: 700;
  line-height: 1.2083;
  letter-spacing: -.01em;
}

@media (min-width: 768px) {
  .case-bonus > label { font-size: calc(13rem / 15); line-height: 1.0769; }
  .case-bonus small { font-weight: 600; letter-spacing: .01em; }
}

.case-bonus small, .case-prize-name small { font-variation-settings: "opsz" 24; }

.game-item strong {
  bottom: calc(.27rem + var(--type-caption) * 1.1667);
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.1429;
}

.game-item small {
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: 1.1667;
}

#content .upgrade-display > strong, .game-picker h2 {
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

#content .upgrade-display > small {
  color: var(--type-muted);
  font-family: var(--font-interface-narrow);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.2143;
  letter-spacing: .011em;
}

.upgrade-chance small {
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1.1667;
  letter-spacing: -.075em;
}

#content .upgrade-options nav button {
  font-weight: 600;
  line-height: calc(20rem / 15);
}

.upgrade-game .picker-tools input {
  font-family: var(--font-input);
  line-height: normal;
}

.upgrade-game .picker-sort span {
  line-height: normal;
  letter-spacing: -.035em;
}

.upgrade-game .picker-empty > strong {
  font-size: var(--type-title);
  font-weight: 600;
  line-height: calc(24rem / 15);
}

.upgrade-game .picker-empty .button {
  font-size: var(--type-body);
  font-weight: 700;
}

.upgrade-center .game-primary {
  font-size: var(--type-title);
  font-weight: 850;
  line-height: 1.2;
}

.contract-sum small {
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.1875;
}

.price, .stat strong, .tag {
  font-family: var(--font-interface);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 850px) {
  #mobile-nav a, #mobile-nav button {
    font-size: var(--type-caption);
    font-weight: 400;
    line-height: 1.1667;
    letter-spacing: -.054em;
  }
}

@media (max-width: 900px) {
  #content .upgrade-picker-views span { font-size: var(--type-label); font-weight: 600; }
  .upgrade-game .picker-empty > strong { font-size: var(--type-body); }
}

@media (max-width: 760px) {
  #content .upgrade-display > strong { font-size: var(--type-label); line-height: 1.2143; }
}

@media (max-width: 740px) {
  .header-credit .number { font-size: var(--type-body); }
  .drop-live-label { font-size: var(--type-caption); }
  .live-drop-copy small { font-size: calc(10rem / 15); }
  .live-drop-copy strong { font-size: var(--type-label); }

  .store-slide-inner .store-display {
    font-size: clamp(var(--type-display), 6vw, calc(46rem / 15));
  }

  .store-slide-inner p {
    font-size: var(--type-caption);
    line-height: 1.1667;
  }

  .store-slide-inner .store-button {
    font-size: var(--type-label);
    line-height: 1.2857;
  }

  .store-heading { font-size: calc(28rem / 15); }
  .store-heading .store-display { scale: 1 .93; }
  .store-heading .store-chance-display { scale: .98 .955; }
  .case-console .game-primary, .upgrade-center .game-primary { font-size: var(--type-body); }
  .case-console .game-primary [data-case-cost] { font-size: clamp(12px,calc(15.5 * var(--case-unit)),15px); }
  .case-quantity label span { font-size: clamp(12px,calc(15 * var(--case-unit)),15px); }
}
