/* CrateMarket 1.1.28 Web-only presentation and viewport contracts. */

html.cm-ui-refresh.cm-ui-page-game .cm-first-entry-price {
  display: inline-grid !important;
  grid-template-columns: repeat(2, max-content);
  align-items: baseline;
  justify-content: center;
  gap: 1px 7px;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}

html.cm-ui-refresh.cm-ui-page-game .cm-first-entry-price > s,
html.cm-ui-refresh.cm-ui-page-game .cm-first-entry-price > strong {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

html.cm-ui-refresh.cm-ui-page-game .cm-first-entry-price > s {
  color: var(--muted, #aab3cd);
  text-decoration-color: #ff8e99;
  text-decoration-thickness: 2px;
}

html.cm-ui-refresh.cm-ui-page-game .cm-first-entry-price > strong {
  color: #f2ecff;
  font-size: 1.06em;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(159, 122, 255, .34);
}

html.cm-ui-refresh.cm-ui-page-game .cm-first-entry-price > small {
  grid-column: 1 / -1;
  color: #cbbcff;
  font-size: .69em;
  font-weight: 900;
  letter-spacing: .025em;
  text-align: center;
  white-space: nowrap;
}

html.cm-ui-refresh.cm-ui-page-game .cm-game-conveyor .crate-cost.cm-first-entry-price {
  font-size: clamp(.62rem, .82vw, .74rem);
}

html.cm-ui-refresh.cm-ui-page-game .selected-main .cm-first-entry-price {
  width: auto;
  margin-inline: .2rem;
  vertical-align: middle;
  font-size: clamp(.72rem, 1.05vw, .9rem);
}

/* The game content is narrower than the viewport beside the desktop rail.
   Stack the purchase controls before their min-content width can squeeze the
   selected-crate details into an unreadable column. */
@media (max-width: 1450px) {
  html.cm-ui-refresh.cm-ui-page-game .cm-game-selection {
    grid-template-columns: minmax(0, 1fr);
  }

  html.cm-ui-refresh.cm-ui-page-game .cm-game-selection .buy-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

html.cm-ui-refresh.cm-ui-page-game .first-entry-price-note {
  margin-top: .35rem;
  color: #cbbcff;
  font-size: .76rem;
  font-weight: 900;
}

/* Exact inventory values are semantic so native layouts can place Owned and Total on two lines. */
html.cm-ui-refresh.cm-ui-page-game .cm-inventory-count {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  overflow: visible;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

html.cm-ui-refresh.cm-ui-page-game .cm-inventory-count > span {
  white-space: nowrap;
}

html.cm-ui-refresh.cm-ui-page-game .cm-inventory-count > span:not(:last-child)::after {
  content: "\00a0\2022\00a0";
}

html.crate-market-android.cm-ui-page-game .cm-inventory-count,
html.crate-market-ios.cm-ui-page-game .cm-inventory-count {
  display: grid;
  justify-items: start;
  gap: 2px;
  overflow: visible;
}

html.crate-market-android.cm-ui-page-game .cm-inventory-count > span::after,
html.crate-market-ios.cm-ui-page-game .cm-inventory-count > span::after {
  content: none;
}

html.crate-market-android.cm-ui-page-game .cm-inventory-count .cm-inventory-owned,
html.crate-market-android.cm-ui-page-game .cm-inventory-count .cm-inventory-total,
html.crate-market-ios.cm-ui-page-game .cm-inventory-count .cm-inventory-owned,
html.crate-market-ios.cm-ui-page-game .cm-inventory-count .cm-inventory-total {
  display: block;
  max-width: 100%;
  overflow: visible;
}

html.crate-market-android.cm-ui-page-game .cm-inventory-count .cm-inventory-unit,
html.crate-market-ios.cm-ui-page-game .cm-inventory-count .cm-inventory-unit {
  display: none;
}

/* Dynamic Market prices fit their card without becoming miniature scroll panes. */
html.cm-ui-refresh.cm-ui-page-game .cm-dynamic-market .cm-market-card .price.cm-dynamic-exact-price {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  word-break: normal !important;
  font-size: var(--cm-dynamic-price-fit, clamp(.68rem, 1.18vw, .9rem));
  font-variant-numeric: tabular-nums;
  letter-spacing: -.018em;
}

html.cm-ui-refresh.cm-ui-page-game .cm-dynamic-market .cm-market-price-stack {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

/* Premium account/menu controls keep full labels and genuine 44px targets. */
html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > .btn,
html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > a.btn,
html.cm-ui-refresh.cm-ui-page-game #modalDone {
  min-width: 0;
  min-height: 44px;
  padding: .62rem .78rem;
  border: 1px solid rgba(175, 145, 255, .58);
  border-radius: .78rem;
  background:
    linear-gradient(180deg, rgba(171, 130, 255, .24), rgba(91, 63, 156, .19)),
    rgba(17, 19, 32, .94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 7px 18px rgba(4,3,12,.2);
  color: #f4f0ff;
  font-size: clamp(.72rem, .83vw, .86rem);
  font-weight: 900;
  line-height: 1.18;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .1s ease;
}

html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > .btn:hover,
html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > a.btn:hover,
html.cm-ui-refresh.cm-ui-page-game #modalDone:hover {
  border-color: rgba(207, 187, 255, .92);
  background:
    linear-gradient(180deg, rgba(185, 148, 255, .34), rgba(101, 67, 177, .25)),
    rgba(20, 21, 37, .98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 9px 22px rgba(25,12,69,.3);
}

html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > .btn:active,
html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > a.btn:active,
html.cm-ui-refresh.cm-ui-page-game #modalDone:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.28);
}

html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > .btn:focus-visible,
html.cm-ui-refresh.cm-ui-page-game .cloud-account-actions > a.btn:focus-visible,
html.cm-ui-refresh.cm-ui-page-game #modalDone:focus-visible {
  outline: 3px solid rgba(205, 185, 255, .72);
  outline-offset: 2px;
}

@media (min-width: 901px) {
  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) {
    --cm-desktop-header-height: 8rem;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar > .top-actions {
    grid-template-columns: minmax(31rem, 1fr) 11.5rem 15rem;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-box {
    grid-template-columns: minmax(8rem, .52fr) minmax(0, 1.7fr);
    align-items: stretch;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr));
    align-content: center;
    gap: .42rem;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-actions .btn {
    min-height: 44px;
    padding-inline: .6rem;
    white-space: normal;
  }
}

@media (min-width: 901px) and (max-width: 1250px) {
  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) {
    --cm-desktop-header-height: 12.75rem;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar > .top-actions {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-box {
    grid-column: 1 / -1;
    grid-template-columns: minmax(8rem, .42fr) minmax(0, 1.7fr);
  }
}

/* Leaderboard and Status own one bounded dialog; only their inner content scrolls. */
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"],
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] {
  box-sizing: border-box;
  overflow: hidden !important;
  padding: clamp(10px, 2vh, 18px);
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] > .modal-card,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] > .modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: calc(var(--cm-visible-height, 100dvh) - clamp(20px, 4vh, 36px));
  padding: clamp(14px, 2.4vh, 24px);
  overflow: hidden !important;
  text-align: left;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .cm-opening-stage,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] .cm-opening-stage,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] > .modal-card > .eyebrow,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] > .modal-card > .eyebrow {
  display: none;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] #modalTitle,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] #modalTitle {
  margin: 0 2.5rem .65rem 0;
  font-size: clamp(1.2rem, 2.3vw, 1.72rem);
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] #modalText,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] #modalText {
  min-height: 0;
  overflow: hidden;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] #modalDone,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] #modalDone {
  justify-self: stretch;
  width: 100%;
  margin-top: 12px;
  flex: 0 0 auto;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-wrap {
  display: grid;
  grid-template-rows: auto minmax(6rem, 1fr) auto;
  height: 100%;
  min-height: 0;
  gap: 9px;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-scroll {
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table {
  width: 100%;
  table-layout: fixed;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table th:first-child,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table td:first-child {
  width: 4.3rem;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table th:last-child,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table td:last-child {
  display: table-cell;
  width: min(47%, 19rem);
  max-width: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-personal-rank,
html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] .step12-status-card strong {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-personal-rank .cm-coin-value {
  display: block;
  overflow: visible;
  white-space: normal;
  font-size: clamp(.72rem, 1.35vw, .92rem);
}

html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] .step12-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: clamp(7px, 1.3vh, 11px);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

html.crate-market-android.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] > .modal-card,
html.crate-market-android.cm-ui-page-game #modal[data-cm-modal-kind="status"] > .modal-card,
html.crate-market-ios.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] > .modal-card,
html.crate-market-ios.cm-ui-page-game #modal[data-cm-modal-kind="status"] > .modal-card {
  max-height: calc(var(--cm-native-visible-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  padding: 14px;
}

@media (max-width: 520px), (max-height: 640px) {
  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table th,
  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-table td {
    padding: 6px 5px;
    font-size: .7rem;
  }

  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-leaderboard-meta,
  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="leaderboard"] .step12-personal-rank {
    gap: 4px;
    padding: 7px 8px;
    font-size: .7rem;
  }

  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] .step12-status-grid {
    gap: 6px;
  }

  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] .step12-status-card {
    padding: 8px;
  }
}

@media (max-width: 360px) {
  html.cm-ui-refresh.cm-ui-page-game #modal[data-cm-modal-kind="status"] .step12-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact default sign-in at 100%; internal scrolling remains a safe zoom/keyboard fallback. */
html.cm-ui-refresh.cm-ui-page-game #authModal {
  box-sizing: border-box;
  overflow: hidden;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

html.cm-ui-refresh.cm-ui-page-game #authModal > .auth-card {
  max-height: calc(var(--cm-visible-height, 100dvh) - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  padding: 11px clamp(14px, 2vw, 20px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .cm-auth-brand-icon {
  width: clamp(2rem, 5vh, 3rem);
  height: clamp(2rem, 5vh, 3rem);
  margin-bottom: 2px;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .eyebrow {
  margin: 2px 0;
  font-size: .65rem;
}

html.cm-ui-refresh.cm-ui-page-game #authModal #authTitle {
  margin: 1px 0 3px;
  font-size: clamp(1.15rem, 2.7vh, 1.48rem);
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-intro {
  margin: 0 0 clamp(6px, 1.1vh, 10px);
  font-size: clamp(.68rem, 1.35vh, .78rem);
  line-height: 1.28;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-mode-switch,
html.cm-ui-refresh.cm-ui-page-game #authModal .auth-form,
html.cm-ui-refresh.cm-ui-page-game #authModal .step9-social-auth {
  gap: clamp(5px, .9vh, 8px);
  margin-block: clamp(5px, .9vh, 9px);
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-field {
  gap: 3px;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-field input,
html.cm-ui-refresh.cm-ui-page-game #authModal .auth-field select {
  min-height: 38px;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-mode-switch .btn,
html.cm-ui-refresh.cm-ui-page-game #authModal .step9-social-grid .step9-social-btn,
html.cm-ui-refresh.cm-ui-page-game #authModal #authSubmit,
html.cm-ui-refresh.cm-ui-page-game #authModal .step7-auth-actions .btn {
  min-height: 44px;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-mode-switch {
  padding: 2px;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .step9-provider-note {
  min-height: 0;
  font-size: .68rem;
  line-height: 1.2;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .step9-divider {
  gap: 6px;
  font-size: .66rem;
  line-height: 1;
}

html.cm-ui-refresh.cm-ui-page-game #authModal #step7TurnstileHost {
  margin: 2px 0;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .step7-auth-actions {
  margin-top: 4px;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-message {
  min-height: 0;
  margin: 4px 0;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .auth-message:not(:empty) {
  padding: .35rem .5rem;
  line-height: 1.25;
}

html.cm-ui-refresh.cm-ui-page-game #authModal .cm-auth-trust-links {
  margin-top: 5px;
  padding-top: 4px;
}

/* Admin destructive workflows. */
html.cm-ui-refresh.cm-ui-page-admin .cm-announcement-actions,
html.cm-ui-refresh.cm-ui-page-admin .cm-health-delete-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

html.cm-ui-refresh.cm-ui-page-admin .cm-health-delete-row {
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 118, 127, .055);
}

html.cm-ui-refresh.cm-ui-page-admin .cm-health-selected-version {
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
}

html.cm-ui-refresh.cm-ui-page-admin .cm-health-selected-version strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

html.cm-ui-refresh.cm-ui-page-admin #healthPreviewVersionPurge:disabled,
html.cm-ui-refresh.cm-ui-page-admin #healthPurgeSubmit:disabled {
  cursor: not-allowed;
  opacity: .52;
}

/* 1.1.28 desktop account contract: the name owns its row and the seven
   regular account actions stay in one compact row at normal 100% widths. */
@media (min-width: 1200px) {
  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar > .top-actions {
    grid-template-columns: minmax(36rem, 1fr) minmax(8.5rem, 9.5rem) minmax(12rem, 13rem);
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .info-box:has(#balance) {
    min-width: 12rem;
    overflow: visible;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar #balance {
    display: block;
    max-width: none;
    overflow: visible !important;
    font-size: clamp(.67rem, .62vw, .76rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1.2;
    text-overflow: clip;
    white-space: nowrap;
    scrollbar-width: none;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar #balance::-webkit-scrollbar {
    display: none;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-box {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: stretch;
    gap: .42rem;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-copy {
    min-width: 0;
    overflow: visible;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar #cloudAccountName {
    display: block;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar #marketplaceConnectionStatus {
    max-width: 100%;
    text-overflow: clip;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-actions {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(.18rem, .28vw, .34rem);
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-actions > .btn,
  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .cloud-account-actions > a.btn {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: .45rem clamp(.2rem, .34vw, .42rem);
    font-size: clamp(.64rem, .57vw, .74rem);
    line-height: 1.1;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    overflow-wrap: normal;
    white-space: normal;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .step6-admin-access {
    display: flex;
    min-width: 0;
    justify-content: flex-end;
  }

  html.cm-production.cm-web-scroll-ready.cm-ui-refresh.cm-ui-page-game:not(.crate-market-android):not(.crate-market-ios) body > header.topbar .step6-admin-access.hidden {
    display: none;
  }
}

html.cm-ui-refresh.cm-ui-page-game #step12AuthGate[data-state="resolving"] .step12-auth-gate-icon,
html.cm-ui-refresh.cm-ui-page-game #step12AuthGate[data-state="cloud"] .step12-auth-gate-icon {
  animation: cm1128-gate-pulse 1.3s ease-in-out infinite alternate;
}

@keyframes cm1128-gate-pulse {
  from { opacity: .58; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  html.cm-ui-refresh.cm-ui-page-game #step12AuthGate .step12-auth-gate-icon { animation: none !important; }
}


/* CrateMarket 1.1.28 conveyor pending storage card */
.cm-pending-crate {
  opacity: 0.72;
  pointer-events: none;
}
.cm-pending-crate .crate-count {
  white-space: nowrap;
}
