/* Shared Moonforge client details. Screen-specific composition lives with each page. */
.client-topbar {
  background: linear-gradient(180deg, var(--plate-sheen), var(--steel-flat) 38%, var(--bg-1));
  border-bottom-color: var(--trim-dark);
  box-shadow: inset 0 1px 0 var(--line-strong), 0 2px 0 var(--steel-dark), 0 8px 20px var(--shadow);
}
.client-nav .kit-tab {
  transition: color 120ms ease-out;
}
.client-nav .kit-tab:is(.on, [aria-current="page"])::after {
  height: 3px;
  box-shadow: 0 1px 0 var(--you-edge);
}
.client-account {
  transition: color 120ms ease-out;
}
.client-silver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.client-silver::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--text-dim);
  box-shadow: inset 2px 2px 0 var(--text), inset -2px -2px 0 var(--line-strong);
  clip-path: polygon(2px 0, 8px 0, 10px 2px, 10px 8px, 8px 10px, 2px 10px, 0 8px, 0 2px);
}

/* A press is transient; selected navigation remains a separate, stable state. */
:where(.title-screen, .client-shell, .game-settings, .results-screen) .btn {
  transition: transform 90ms ease-out, filter 120ms ease-out, color 120ms ease-out;
}
:where(.title-screen, .client-shell, .game-settings, .results-screen) .btn:active:not(:disabled) {
  transform: translateY(2px);
}
:where(.client-shell, .game-settings) .input:focus-visible {
  outline: 2px solid var(--you-light);
  outline-offset: 2px;
}

/* The open menu uses the same forged frame as the rest of the client. */
.forge-select-trigger span[aria-hidden="true"] {
  color: var(--you-light);
  transition: transform 120ms ease-out;
}
.forge-select-trigger[aria-expanded="true"] span[aria-hidden="true"] { transform: rotate(180deg); }
.forge-select-menu {
  top: calc(100% + 5px);
  min-width: 100%;
  padding: 5px;
  border: 8px solid transparent;
  border-image: url('/c/7e3b3375da5f0c9761558b21d39d7874f8906318c7da420ce073476b3cac8fc5.png') 7 / 14px stretch;
  background: var(--panel-steel) padding-box;
  box-shadow: 0 12px 28px var(--shadow);
}
.forge-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--plate-edge);
  font-weight: 700;
}
.forge-select-option::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  background: transparent;
}
.forge-select-option[aria-pressed="true"]::before { background: var(--you); }
.forge-select-option:is(:hover, :focus-visible) { background: var(--face-steel-hover); }

@media (prefers-reduced-motion: reduce) {
  .client-nav .kit-tab, .client-account, .forge-select-trigger span[aria-hidden="true"],
  :where(.title-screen, .client-shell, .game-settings, .results-screen) .btn { transition: none; }
  :where(.title-screen, .client-shell, .game-settings, .results-screen) .btn:active:not(:disabled) { transform: none; }
}

/* A sold champion the account does not own (ui/front/champion_lock.rs): its portrait greyed as every locked thing is,
   under a plate in the portrait's corner with the kit's pixel lock and its price in Silver. The plate sits over the
   portrait, so no tile changes size, and takes no clicks: a press on the tile opens the way to buy the champion. */
:is(.qp-tile, .room-tile, .sandbox-champ, .home-roster-tile, .roster-tile).locked { position: relative; }
:is(.qp-tile, .room-tile, .sandbox-champ, .home-roster-tile, .roster-tile).locked img { filter: grayscale(1) brightness(0.55); }
.qp-tile.locked > .socket { position: relative; }
.champ-lock { --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8' shape-rendering='crispEdges'%3E%3Cpath fill-rule='evenodd' d='M2 0h3v1H2zM1 1h1v2H1zM5 1h1v2H5zM0 3h7v5H0zM3 5h1v2H3z'/%3E%3C/svg%3E");
  position: absolute; z-index: 1; top: 0; left: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; color: var(--text); background: var(--locked); border: 1px solid var(--bg-0); font: 700 var(--t-badge)/1 var(--font-body); pointer-events: none; }
.champ-lock > i { flex: none; width: 7px; height: 8px; background: currentColor; -webkit-mask: var(--lock) 0 0 / 7px 8px; mask: var(--lock) 0 0 / 7px 8px; }
.champ-lock > b { font-weight: 700; }
/* The Sandbox dock's portraits are about 50px: the lock alone, the price in the tile's tooltip and the prompt. */
.sandbox-champ .champ-lock { padding: 2px 3px; }
.sandbox-champ .champ-lock > b { display: none; }
/* The prompt a press on a locked champion opens. */
dialog.champ-lock-prompt { width: min(460px, calc(100vw - 32px)); padding: 20px; color: var(--text); }
dialog.champ-lock-prompt::backdrop { background: var(--scrim-strong); }
.champ-lock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.champ-lock-head .socket > img { width: 64px; height: 64px; filter: grayscale(1) brightness(0.55); }
.champ-lock-head h3 { margin: 2px 0; font: 400 var(--t-l)/1.1 var(--font-head); }
.champ-lock-state { margin: 0; color: var(--text-dim); font-weight: 700; }
/* A locked champion's own page: its price over the action that buys it. */
.champion-locked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.champion-money { display: grid; gap: 6px; margin-top: 4px; }
