/* The Locker, its Settings/profile card, the loadout strip and the results
   "Unlocked!" moment (Unlockables 2.1, 370 contract). Injected once as a
   <link> by apps/portal/src/routes/unlockables-panel.mjs. Site tokens
   (design-tokens.css): ink surfaces, silver rules, blue for selection, brass
   invites action, mint confirms. Each look brings its own accent light
   (--locker-accent). Works from 320 px with no horizontal scroll; every
   control is a 44 px target; motion stops under prefers-reduced-motion. */

.locker,
.locker-teaser,
.loadout-strip,
.rr-unlocked-section {
  --locker-ink: var(--site-ink, #090f1b);
  --locker-panel: var(--site-panel, #142137);
  --locker-raised: var(--site-panel-raised, #1b2d47);
  --locker-paper: var(--site-paper, #f3f0e6);
  --locker-muted: var(--site-muted, #bac7da);
  --locker-blue: var(--site-blue-text, #92b6ff);
  --locker-brass: var(--site-brass, #f2c464);
  --locker-mint: var(--site-mint, #74ddb0);
  --locker-rule: var(--site-rule, rgba(216, 226, 239, 0.14));
  --locker-rule-strong: var(--site-rule-strong, rgba(216, 226, 239, 0.3));
  box-sizing: border-box;
  min-width: 0;
  color: var(--locker-paper);
  font: 400 15px/1.55 var(--font-body, system-ui, sans-serif);
  overflow-wrap: anywhere;
}

.locker *, .locker *::before, .locker *::after,
.locker-teaser *, .locker-teaser *::before, .locker-teaser *::after,
.loadout-strip *, .loadout-strip *::before, .loadout-strip *::after,
.rr-unlocked-section *, .rr-unlocked-section *::before, .rr-unlocked-section *::after {
  box-sizing: border-box;
}

/* The Locker owns the route grid on /locker. */
#officialApp .official-cabinet-grid.locker-command-grid { display: block; }
#officialApp:not([data-step="locker"]) .locker { display: none !important; }
#officialApp:not([data-step="settings"]):not([data-step="profile"]) .locker-teaser { display: none !important; }
.locker[hidden], .locker-teaser[hidden], .loadout-strip[hidden] { display: none !important; }

.locker {
  display: grid;
  gap: 20px;
  width: 100%;
}

.locker-head { display: grid; gap: 4px; max-width: 760px; }
.locker-eyebrow {
  margin: 0;
  color: var(--locker-blue);
  font: 700 12px/1.2 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.locker-title {
  margin: 0;
  color: var(--locker-paper);
  font: 800 clamp(34px, 5vw, 52px)/1 var(--font-heading, "Arial Narrow", sans-serif);
  letter-spacing: 0.01em;
}
.locker-overview { margin: 0; color: var(--locker-paper); font-weight: 600; }
.locker-notice { margin: 0; color: var(--locker-muted); font-size: 14px; }
.locker-status { margin: 0; color: var(--locker-mint); font-weight: 600; }
.locker-status:empty { display: none; }

/* Game tabs: a scrollable row on phones, a segmented bar on wide screens. */
.locker-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--locker-rule);
  border-radius: 14px;
  background: rgba(9, 15, 27, 0.6);
  overflow-x: auto;
  scrollbar-width: none;
}
.locker-tabs::-webkit-scrollbar { display: none; }
#officialApp .locker-tab,
.locker-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--locker-muted);
  font: 700 15px/1.1 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}
#officialApp .locker-tab:hover:not(:disabled) { transform: none; filter: none; color: var(--locker-paper); background: rgba(146, 182, 255, 0.08); }
#officialApp .locker-tab[aria-selected="true"] {
  color: var(--locker-paper);
  background: var(--locker-raised);
  border-color: rgba(146, 182, 255, 0.45);
  box-shadow: inset 0 -2px 0 var(--locker-blue);
}
#officialApp .locker-tab:focus-visible { outline: none; box-shadow: var(--site-focus, 0 0 0 3px #f2c464); }
.locker-tab-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(146, 182, 255, 0.14);
  color: var(--locker-blue);
  font: 700 12px/1.4 var(--font-score, monospace);
}

.locker-panel { display: grid; gap: 22px; min-width: 0; }
.locker-panel[hidden] { display: none; }
.locker-subhead {
  margin: 0 0 10px;
  color: var(--locker-muted);
  font: 700 12px/1.2 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.locker-equipped-list,
.locker-hero-list,
.locker-archive-list,
.locker-teaser-games,
.locker-grid,
.loadout-slots,
.rr-unlocked-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Equipped now: one chip per slot. */
.locker-equipped-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px;
}
.locker-equipped-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "dot slot" "dot value";
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--locker-rule);
  border-radius: 10px;
  background: var(--locker-panel);
}
.locker-equipped-item > .locker-swatch { grid-area: dot; }
.locker-equipped-slot { grid-area: slot; color: var(--locker-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.locker-equipped-item > strong { grid-area: value; font-weight: 700; line-height: 1.25; }
.locker-equipped-item[data-state="standard"] > strong { color: var(--locker-muted); font-weight: 500; }

.locker-swatch {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--locker-rule-strong);
  background-color: #2a3b57;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}

/* Featured cards: the preview stage leads, the copy follows. */
.locker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 18px;
}
.locker-card { min-width: 0; }
.locker-card-body {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--locker-rule);
  border-radius: var(--radius-card, 12px);
  background: var(--locker-panel);
}
.locker-card[data-state="equipped"] .locker-card-body {
  border-color: color-mix(in srgb, var(--locker-accent, #92b6ff) 65%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--locker-accent, #92b6ff) 35%, transparent), 0 18px 48px -24px var(--locker-accent, #92b6ff);
}

.locker-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--locker-accent, #92b6ff) 26%, transparent), transparent 62%),
    linear-gradient(180deg, #0c1526 0%, #070c17 100%);
}
.locker-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(7, 12, 23, 0.55));
  z-index: 2;
}
.locker-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.locker-card[data-state="locked"] .locker-canvas { filter: saturate(0.82) brightness(0.92); }

/* The poster: the look's name over its own accent light while the live
   preview loads, or where it cannot run. Never a broken box. */
.locker-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  overflow: hidden;
}
.locker-poster[hidden] { display: none; }
.locker-stage[data-preview] > .locker-poster-idle { display: none; }
.locker-poster-idle .locker-poster-glow { animation: none; opacity: 0.45; }
.locker .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.locker-poster-glow {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 70%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--locker-accent, #92b6ff) 80%, white) 0%, color-mix(in srgb, var(--locker-accent, #92b6ff) 30%, transparent) 38%, transparent 70%);
  filter: blur(6px);
  opacity: 0.75;
  animation: locker-breathe 3.6s ease-in-out infinite;
  z-index: -1;
}
.locker-poster::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.09) 50%, transparent 58%);
  animation: locker-sheen 4.8s ease-in-out infinite;
}
.locker-poster-name {
  position: relative;
  color: var(--locker-paper);
  font: 800 clamp(26px, 4vw, 38px)/1 var(--font-heading, "Arial Narrow", sans-serif);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--locker-accent, #92b6ff) 80%, transparent);
}
.locker-poster-hint {
  position: relative;
  color: var(--locker-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes locker-breathe { 0%, 100% { opacity: 0.55; scale: 0.94; } 50% { opacity: 0.85; scale: 1.04; } }
@keyframes locker-sheen { 0% { translate: -30% 0; } 60%, 100% { translate: 30% 0; } }

.locker-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--locker-rule-strong);
  background: rgba(9, 15, 27, 0.78);
  color: var(--locker-muted);
  font: 700 11px/1.4 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.locker-badge[data-state="equipped"] { color: var(--locker-ink); background: var(--locker-mint); border-color: transparent; }
.locker-badge[data-state="unlocked"] { color: var(--locker-paper); border-color: rgba(146, 182, 255, 0.6); }

.locker-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  min-width: 0;
}
.locker-kicker {
  margin: 0;
  color: color-mix(in srgb, var(--locker-accent, #92b6ff) 70%, white);
  font: 700 12px/1.2 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.locker-card-title {
  margin: 0;
  color: var(--locker-paper);
  font: 800 clamp(26px, 3vw, 32px)/1.05 var(--font-heading, "Arial Narrow", sans-serif);
  letter-spacing: 0.01em;
}
.locker-card-title:focus { outline: none; }
.locker-fantasy { margin: 0; color: var(--locker-paper); font-style: italic; opacity: 0.86; }
.locker-facts { display: grid; gap: 10px; margin: 6px 0 2px; }
.locker-facts > div { display: grid; gap: 2px; }
.locker-facts dt { color: var(--locker-muted); font: 700 11px/1.3 var(--font-body, system-ui, sans-serif); letter-spacing: 0.14em; text-transform: uppercase; }
.locker-facts dd { margin: 0; display: grid; gap: 6px; color: var(--locker-paper); }
.locker-how-done { color: var(--locker-mint); font-weight: 600; }
.locker-link { color: var(--locker-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.locker-link:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--site-focus, 0 0 0 3px #f2c464); }

.locker-progress { display: grid; gap: 4px; }
.locker-progress progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(216, 226, 239, 0.12);
}
.locker-progress progress::-webkit-progress-bar { background: rgba(216, 226, 239, 0.12); border-radius: 999px; }
.locker-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--locker-blue), var(--locker-accent, var(--locker-mint))); border-radius: 999px; }
.locker-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--locker-blue), var(--locker-accent, var(--locker-mint))); border-radius: 999px; }
.locker-progress-label { color: var(--locker-muted); font: 500 13px/1.3 var(--font-score, monospace); }

.locker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.locker-note { margin: 0; color: var(--locker-muted); font-size: 12px; letter-spacing: 0.02em; }

/* Buttons and button-links share one shape (the global button rule is
   rounded and upper-case; the Locker keeps the label's case). */
#officialApp .locker-button,
.locker-button,
.loadout-strip .loadout-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--locker-rule-strong);
  border-radius: var(--radius-control, 6px);
  background: var(--locker-raised);
  color: var(--locker-paper);
  font: 700 15px/1.1 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}
#officialApp .locker-button:hover:not(:disabled), .locker-button:hover:not(:disabled) { transform: none; filter: none; border-color: var(--locker-blue); }
#officialApp .locker-button-primary, .locker-button-primary { background: var(--locker-brass); border-color: var(--locker-brass); color: var(--locker-ink); }
#officialApp .locker-button-primary:hover:not(:disabled), .locker-button-primary:hover:not(:disabled) { border-color: var(--locker-paper); filter: brightness(1.05); }
#officialApp .locker-button:disabled, .locker-button:disabled { opacity: 0.6; cursor: not-allowed; }
.locker-button:focus-visible, .loadout-strip .loadout-chip:focus-visible, .loadout-locker-link:focus-visible { outline: none; box-shadow: var(--site-focus, 0 0 0 3px #f2c464); }

/* Heroes and the Tower note. */
.locker-hero-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.locker-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--locker-rule);
  border-radius: 10px;
  background: var(--locker-panel);
}
.locker-hero-copy { display: grid; gap: 2px; min-width: 0; }
.locker-hero-detail { color: var(--locker-muted); font-size: 14px; }
.locker-hero[data-state="unlocked"] .locker-hero-detail { color: var(--locker-mint); }
.locker-tower-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--locker-rule-strong);
  border-radius: 10px;
  color: var(--locker-muted);
}

/* The archive: collapsed by default. */
.locker-archive {
  border: 1px solid var(--locker-rule);
  border-radius: var(--radius-card, 12px);
  background: rgba(9, 15, 27, 0.55);
}
.locker-archive > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.locker-archive > summary::-webkit-details-marker { display: none; }
.locker-archive > summary::after { content: "+"; color: var(--locker-blue); font: 700 20px/1 var(--font-body, system-ui, sans-serif); }
.locker-archive[open] > summary::after { content: "\2212"; }
.locker-archive > summary:focus-visible { outline: none; border-radius: 12px; box-shadow: var(--site-focus, 0 0 0 3px #f2c464); }
.locker-archive-title { font: 800 22px/1 var(--font-heading, "Arial Narrow", sans-serif); }
.locker-archive-count { margin-left: auto; color: var(--locker-muted); font: 600 13px/1.2 var(--font-score, monospace); }
.locker-archive > .locker-notice { padding: 0 16px 12px; }
.locker-archive-slot { padding: 14px 16px 16px; border-top: 1px solid var(--locker-rule); }
.locker-archive-slot-title { margin: 0; font: 700 13px/1.2 var(--font-body, system-ui, sans-serif); letter-spacing: 0.12em; text-transform: uppercase; color: var(--locker-paper); }
.locker-archive-effect { margin: 2px 0 10px; color: var(--locker-muted); font-size: 14px; }
.locker-archive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.locker-archive-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--locker-rule);
  border-radius: 10px;
  background: var(--locker-panel);
}
.locker-archive-row[data-state="equipped"] { border-color: rgba(116, 221, 176, 0.6); }
.locker-archive-row[data-state="locked"] .locker-swatch { opacity: 0.45; }
.locker-archive-copy { display: grid; gap: 2px; min-width: 0; }
.locker-archive-state, .locker-archive-need { color: var(--locker-muted); font-size: 13px; }
#officialApp .locker-archive-row .locker-button { padding: 8px 14px; font-size: 14px; }

/* The Locker card on Settings and the own profile. */
.locker-teaser {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 18px 0 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--locker-rule);
  border-radius: var(--radius-card, 12px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(146, 182, 255, 0.16), transparent 70%),
    var(--locker-panel);
}
.locker-teaser-head { display: grid; gap: 4px; }
.locker-teaser .locker-title { font-size: clamp(28px, 4vw, 38px); }
.locker-teaser-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.locker-teaser-games li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--locker-rule);
  border-radius: 10px;
  background: rgba(9, 15, 27, 0.5);
}
.locker-teaser-games strong { flex: 1; font-weight: 700; }
.locker-teaser-swatches { display: inline-flex; }
.locker-teaser-swatches .locker-swatch { width: 14px; height: 14px; margin-left: -4px; }
.locker-teaser-swatches .locker-swatch:first-child { margin-left: 0; }
.locker-teaser-swatches .locker-swatch[data-state="locked"] { opacity: 0.35; }
.locker-teaser .locker-button { justify-self: start; }

/* Loadout strip on a game's mode select. */
.loadout-strip {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 18px 0 4px;
  padding: 14px 16px 16px;
  border: 1px solid var(--locker-rule);
  border-radius: var(--radius-card, 12px);
  background: linear-gradient(180deg, rgba(27, 45, 71, 0.85), rgba(20, 33, 55, 0.92));
}
.loadout-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.loadout-title { margin: 0; color: var(--locker-paper); font: 800 24px/1 var(--font-heading, "Arial Narrow", sans-serif); letter-spacing: 0.02em; text-transform: none; }
.loadout-note { margin: 0; color: var(--locker-muted); font-size: 13px; }
.loadout-locker-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--locker-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.loadout-status { margin: 0; color: var(--locker-mint); font-size: 14px; }
.loadout-status:empty { display: none; }
.loadout-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; align-items: start; }
.loadout-slot { position: relative; min-width: 0; display: grid; gap: 6px; }
#officialApp .loadout-strip .loadout-chip,
.loadout-strip .loadout-chip {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "dot slot" "dot value";
  justify-items: start;
  column-gap: 10px;
  row-gap: 0;
  padding: 8px 12px;
  text-align: left;
  background: rgba(9, 15, 27, 0.55);
}
#officialApp .loadout-strip .loadout-chip:hover:not(:disabled) { transform: none; filter: none; border-color: var(--locker-blue); }
#officialApp .loadout-strip .loadout-chip[aria-expanded="true"] { border-color: var(--locker-blue); background: var(--locker-raised); }
.loadout-chip > .locker-swatch { grid-area: dot; align-self: center; }
.loadout-slot-label { grid-area: slot; color: var(--locker-muted); font: 600 11px/1.3 var(--font-body, system-ui, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; }
.loadout-slot-value { grid-area: value; color: var(--locker-paper); font-weight: 700; }
.loadout-slot[data-state="standard"] .loadout-slot-value { color: var(--locker-muted); font-weight: 500; }
.loadout-menu {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--locker-blue);
  border-radius: 10px;
  background: var(--locker-ink);
}
.loadout-menu-legend { padding: 0 4px; color: var(--locker-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.loadout-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.loadout-option:hover { background: rgba(146, 182, 255, 0.08); }
.loadout-option[data-state="equipped"] { background: rgba(116, 221, 176, 0.1); }
.loadout-option[data-state="locked"] { cursor: not-allowed; opacity: 0.72; }
/* The native radio covers the whole row (the site's 44 px touch floor applies
   to inputs on touch screens), invisible; the indicator is drawn beside it. */
.loadout-option { position: relative; }
#officialApp .loadout-option input, .loadout-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.loadout-radio { flex: none; width: 20px; height: 20px; border: 2px solid var(--locker-rule-strong); border-radius: 50%; }
.loadout-option input:checked ~ .loadout-radio { border-color: var(--locker-mint); background: radial-gradient(circle, var(--locker-mint) 0 45%, transparent 50%); }
.loadout-option:has(input:focus-visible) { box-shadow: var(--site-focus, 0 0 0 3px #f2c464); }
.loadout-option-title { font-weight: 600; }
.loadout-option-note { flex-basis: 100%; padding-left: 58px; color: var(--locker-muted); font-size: 12px; }
.loadout-option-tag { padding: 1px 8px; border-radius: 999px; background: var(--locker-brass); color: var(--locker-ink); font: 700 11px/1.5 var(--font-body, system-ui, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; }

/* Results: "Unlocked!" */
.rr-unlocked-section { display: grid; gap: 10px; }
.rr-unlocked-section[hidden] { display: none; }
.rr-unlocked-title { color: var(--locker-brass); font: 800 28px/1 var(--font-heading, "Arial Narrow", sans-serif); letter-spacing: 0.02em; }
.rr-unlocked-list { display: grid; gap: 10px; }
.rr-unlocked-card {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--locker-accent, #92b6ff) 55%, transparent);
  border-radius: 12px;
  background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--locker-accent, #92b6ff) 18%, transparent), transparent 70%), rgba(9, 15, 27, 0.6);
  animation: locker-arrive 520ms cubic-bezier(.2, .8, .2, 1) both;
}
.rr-unlocked-card:not(:has(.rr-unlocked-stage)) { grid-template-columns: 1fr; }
.rr-unlocked-stage { border-radius: 8px; }
.rr-unlocked-copy { display: grid; gap: 4px; min-width: 0; }
.rr-unlocked-kicker { margin: 0; color: var(--locker-muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.rr-unlocked-name { color: var(--locker-paper); font: 800 26px/1.05 var(--font-heading, "Arial Narrow", sans-serif); }
.rr-unlocked-effect { margin: 0; color: var(--locker-paper); opacity: 0.86; font-size: 14px; }
.rr-unlocked-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rr-unlocked-status { margin: 0; color: var(--locker-mint); font-size: 14px; }
.rr-unlocked-status:empty { display: none; }
@keyframes locker-arrive { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* A slot on its standard look shows an empty dashed ring, not a colour. */
.locker-equipped-item[data-state="standard"] > .locker-swatch,
.loadout-slot[data-state="standard"] .loadout-chip > .locker-swatch { background: transparent; border: 1.5px dashed var(--locker-rule-strong); box-shadow: none; }

@media (max-width: 560px) {
  .loadout-slots { grid-template-columns: 1fr 1fr; }
  .loadout-slot:has(.loadout-menu) { grid-column: 1 / -1; }
  .locker-equipped-list { grid-template-columns: 1fr 1fr; }
  .locker-equipped-item { min-height: 48px; padding: 6px 10px; }
  .locker-card-copy { padding: 16px; }
  .locker-hero { grid-template-columns: auto 1fr; }
  .locker-hero .locker-button { grid-column: 1 / -1; }
  .locker-archive-row { grid-template-columns: auto 1fr; }
  .locker-archive-row .locker-button { grid-column: 1 / -1; }
  .rr-unlocked-card { grid-template-columns: 1fr; }
  .loadout-locker-link { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .locker-poster-glow, .locker-poster::before, .rr-unlocked-card { animation: none; }
}
.ranked-results-backdrop[data-reduced-motion="true"] .rr-unlocked-card { animation: none; }

/* The loader hides the canvas until a preview draws; without this, display:block kept it (2026-10-23). */
.locker-canvas[hidden] { display: none; }

/* Keep all four games discoverable on phones without a hidden horizontal tab. */
@media(max-width:600px) {
 .locker-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:6px; padding:6px; }
 #officialApp .locker-tab { min-width:0; width:100%; min-height:48px; padding:10px 8px; white-space:normal; font-size:12px; justify-content:center; }
 .locker-tab-count { flex:0 0 auto; }
}

.locker-new-mark {
  align-self: center;
  display: inline-flex;
  align-items: center;
  margin-inline-start: .55rem;
  padding: .19em .55em;
  border: 1px solid #89c9b1;
  border-radius: .3em;
  background: #19392f;
  color: #d6ffe9;
  font: 700 .72rem/1.3 var(--font-body, system-ui, sans-serif);
  vertical-align: middle;
}
.locker-new-mark[hidden], .locker-seen-button[hidden] { display: none; }
.locker-seen-button { justify-self: start; min-height: 44px; margin-block: .65rem; }
.new-cabinet-slots button:has(.locker-new-mark) { position: relative; padding-inline-end: 3.7rem; }
.new-cabinet-slots button .locker-new-mark { position: absolute; inset-inline-end: .35rem; inset-block-start: .35rem; }


.locker-turntable {
  display: grid;
  grid-template-columns: minmax(12rem, .9fr) minmax(11rem, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin: 0 0 1rem;
  padding: clamp(.8rem, 2vw, 1.5rem);
  color: var(--locker-paper, #e6ecf6);
  background: radial-gradient(ellipse at 76% 70%, #233247 0, #141e2b 33%, #0d151f 72%);
  border: 1px solid var(--locker-border, #46566d);
  border-radius: .8rem;
}
.locker-turntable-caption { display: grid; align-content: center; gap: .5rem; min-width: 0; }
.locker-turntable-label { color: var(--locker-muted, #b9c5d4); font-size: .9rem; }
.locker-turntable-name { font-size: clamp(1.05rem, 2vw, 1.35rem); }
#officialApp .locker-turntable-select { width: 100%; min-width: 0; min-height: 44px; padding: .4rem .55rem; font: inherit; color: #f2f5fa; background: #172330; border: 1px solid #62738a; border-radius: .35rem; }
.locker-turntable-stage { display: grid; justify-items: center; min-width: 0; }
.locker-turntable-view {
  position: relative; width: min(100%, 14rem); aspect-ratio: 1; overflow: hidden;
  touch-action: pan-y; user-select: none; cursor: ew-resize;
}
.locker-turntable-image { display: block; max-width: none; height: 100%; object-fit: fill; pointer-events: none; }
.locker-turntable-image[hidden], .locker-turntable-failure[hidden], .locker-turntable-retry[hidden] { display: none; }
.locker-turntable-failure { position: absolute; inset: 45% .5rem auto; color: var(--locker-muted, #b9c5d4); text-align: center; font-size: .85rem; }
.locker-turntable-controls { display: grid; grid-template-columns: 44px minmax(4rem, auto) 44px; align-items: center; justify-content: center; gap: .4rem; }
#officialApp .locker-turntable-step { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: 0; padding: 0; font: 600 1.65rem/1 system-ui, sans-serif; color: #edf3ff; background: #152331; border: 1px solid #667991; border-radius: .4rem; }
.locker-turntable-angle { text-align: center; color: #dbe4f0; font-variant-numeric: tabular-nums; }
.locker-turntable :is(button,select,[role="slider"]):focus-visible { outline: 3px solid #f2c464; outline-offset: 2px; }
@media(max-width: 620px) {
  .locker-turntable { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .locker-turntable-view { width: min(100%, 11.5rem); }
}


.locker-turntable-photos { width: 100%; display: flex; justify-content: center; }
.locker-turntable[data-comparing="true"] .locker-turntable-photos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
}
.locker-turntable[data-comparing="true"] .locker-turntable-view,
.locker-turntable-reference {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--locker-border, #46566d); border-radius: .45rem;
}
.locker-reference-retry { position: absolute; inset: 35% .25rem auto; }
.locker-turntable [hidden], #officialApp .locker-turntable select[hidden] { display: none; }

.locker-loadout-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin-block: .75rem;
}
.locker-loadout-controls select {
  min-height: 44px;
  max-width: 100%;
}
.locker-loadout-controls .locker-note { flex-basis: 100%; margin: 0; }

.locker-grid > [hidden],
.locker-archive-row[hidden],
.locker-archive-slot[hidden],
.locker-archive[hidden] { display: none; }

.chikun-fitting { margin-block: 1rem; padding: .7rem 1rem; border: 1px solid #536870; border-radius: .6rem; }
.chikun-fitting summary { cursor: pointer; padding-block: .65rem; font-weight: 700; }
.chikun-fitting-controls, .chikun-fitting-stages { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-block: .8rem; }
.chikun-fitting-controls label { display: grid; gap: .25rem; }
.chikun-fitting-controls select { min-height: 44px; max-width: 100%; }
.chikun-fitting-stages figure { margin: 0; min-width: 0; max-width: 100%; }
.chikun-fitting-stages canvas { display: block; max-width: 100%; height: auto; border-radius: .35rem; }
.chikun-fitting-stages figcaption { font-size: .82rem; padding-block: .35rem; }
/* STK-V06 / STK-02.06 (visual overhaul 2026-11-24): STACKED Locker states by shape as well as colour,
   in the cabinet's minted-edge vocabulary. Earned: a whole milled ring. Equipped: a double ring with a
   check. Locked: a broken-arc ring, a dashed frame and a deeper dim. Readable in greyscale at the
   smallest Locker card; the mark sits top-right, clear of the status chip. Presentation only. */
.locker-panel[data-game="stacked"] .locker-stage { position: relative; }
.locker-panel[data-game="stacked"] .locker-card .locker-stage::after {
  content: ""; position: absolute; inset: 8px 8px auto auto; width: 22px; height: 22px; border-radius: 50%;
  box-sizing: border-box; pointer-events: none; z-index: 2;
}
.locker-panel[data-game="stacked"] .locker-card[data-state="unlocked"] .locker-stage::after {
  border: 3px solid #e6eef8; box-shadow: 0 0 0 1px #071321, inset 0 0 0 1px #071321;
  background: repeating-conic-gradient(from 0deg, transparent 0 8deg, rgba(230,238,248,.35) 8deg 12deg);
}
.locker-panel[data-game="stacked"] .locker-card[data-state="equipped"] .locker-stage::after {
  content: "✓"; display: grid; place-items: center; color: #071321; font: 900 13px/1 system-ui, sans-serif;
  border: 3px double #071321; background: var(--locker-mint, #74ddb0); box-shadow: 0 0 0 2px var(--locker-mint, #74ddb0);
}
.locker-panel[data-game="stacked"] .locker-card[data-state="locked"] .locker-stage::after {
  border: 3px solid #9fb0c0; border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(-20deg); opacity: .85; box-shadow: none;
}
.locker-panel[data-game="stacked"] .locker-card[data-state="locked"] .locker-card-body { border-style: dashed; }
.locker-panel[data-game="stacked"] .locker-card[data-state="locked"] .locker-canvas { filter: grayscale(.65) brightness(.78); }
.locker-panel[data-game="stacked"] .locker-card[data-state="equipped"] .locker-card-body { border-width: 2px; }
@media (prefers-reduced-motion: reduce) { .locker-panel[data-game="stacked"] .locker-card .locker-stage::after { transition: none; } }
