/* Player Dossier (owner 2026-11-16, concept B "Paperdoll" of canvas E32AmYfhfkuqFeJzzw9Eib).
   Every class is ds- prefixed: site.css already owns .chip, .panel, .hero, .btn, .search.
   Rank colours are plasma intensity (the leaderboard's rule), never gold/silver/bronze. */

/* The design's type, under PRIVATE family names: site.css declares no @font-face for Barlow / Inter / JetBrains
   (the rest of the site renders its fallbacks), and declaring those names here would restyle every page. */
@font-face { font-family: "DsBarlow"; font-weight: 500; font-display: swap; src: url(fonts/BarlowCondensed-latin-500.woff2) format("woff2"); }
@font-face { font-family: "DsBarlow"; font-weight: 600; font-display: swap; src: url(fonts/BarlowCondensed-latin-600.woff2) format("woff2"); }
@font-face { font-family: "DsBarlow"; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-latin-700.woff2) format("woff2"); }
@font-face { font-family: "DsInter"; font-weight: 400 700; font-display: swap; src: url(fonts/Inter-latin-var.woff2) format("woff2"); }
@font-face { font-family: "DsMono"; font-weight: 400 700; font-display: swap; src: url(fonts/JetBrainsMono-latin-var.woff2) format("woff2"); }

.col.ds-col { max-width: 1360px; container-type: inline-size; font-family: var(--ds-b);
  --ds-d: "DsBarlow", var(--f-display); --ds-b: "DsInter", var(--f-body); --ds-m: "DsMono", var(--f-mono); }
.ds-top { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; padding: 36px 0 22px; }
.ds-top h2 { font-family: var(--ds-d); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.04; letter-spacing: .02em; margin: 0; }
.ds-top h2 .eyebrow { display: block; font-family: var(--ds-m); font-size: 11px; letter-spacing: .32em;
  color: var(--text-dim); margin-bottom: 6px; }
.ds-find { position: relative; flex: 1 1 320px; max-width: 520px; }
.ds-find svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; fill: none;
  stroke: var(--text-dim); stroke-width: 2; pointer-events: none; }
.ds-search { height: 44px; width: 100%; box-sizing: border-box; border-radius: 10px;
  border: 1px solid rgba(140,200,240,.28); background: rgba(4,16,30,.85); color: var(--text-hi);
  padding: 0 14px 0 40px; font: 15px var(--ds-b); outline: none; }
.ds-search:focus { border-color: var(--plasma-core); box-shadow: 0 0 0 3px rgba(5,199,252,.2); }
.ds-sugg { position: absolute; top: 50px; left: 0; right: 0; z-index: 6; margin: 0; padding: 4px; list-style: none;
  background: #041424; border: 1px solid rgba(140,200,240,.24); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.ds-sugg[hidden] { display: none; }
.ds-sugg a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--text-hi); text-decoration: none; font-size: 14px; }
.ds-sugg a:hover, .ds-sugg a:focus-visible, .ds-sugg a.is-active { background: rgba(5,199,252,.12); outline: none; }
.ds-sugg .ds-lv { font-family: var(--ds-m); font-size: 11px; min-width: 46px; text-align: center;
  padding: 2px 6px; border-radius: 6px; background: var(--plasma); color: #031022; }
.ds-sugg .ds-none { padding: 10px 12px; font-family: var(--ds-m); font-size: 12px; color: var(--text); }

.ds-note { font-family: var(--ds-m); font-size: 12.5px; color: var(--text-dim); padding: 90px 0; text-align: center; line-height: 1.7; }
.ds-note b { color: var(--text-hi); font-weight: 500; }

.ds-hero { display: grid; grid-template-columns: 300px minmax(0,1fr) 400px; gap: 28px; align-items: start; }
.ds-lower { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 28px; margin-top: 28px; }
.ds-panel { background: linear-gradient(180deg, rgba(8,32,56,.72), rgba(4,18,34,.72));
  border: 1px solid rgba(140,200,240,.18); border-radius: 14px; padding: 18px 20px; }
.ds-h { font-family: var(--ds-d); text-transform: uppercase; font-size: 22px; font-weight: 600;
  letter-spacing: .12em; color: var(--text-hi); margin: 0; }
.ds-hrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ds-mono { font-family: var(--ds-m); font-size: 11px; color: var(--text-dim); }
.ds-fine { font-family: var(--ds-m); font-size: 10.5px; color: #3E6A85; margin-top: 8px; line-height: 1.5; }

/* loadout */
.ds-loadout { padding: 16px 14px; max-height: 704px; overflow: auto; scrollbar-width: thin; scrollbar-color: #144C74 transparent; }
.ds-loadout .ds-h { font-size: 20px; letter-spacing: .14em; }
.ds-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ds-group { display: flex; flex-direction: column; gap: 2px; }
.ds-slot { font-family: var(--ds-m); font-size: 10.5px; letter-spacing: .24em; color: #3E7FA3; padding-left: 8px; }
.ds-gear { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 9px; border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s; animation: dsRise .5s cubic-bezier(.16,.84,.28,1) both; }
.ds-gear:hover { background: rgba(5,199,252,.08); border-color: rgba(5,199,252,.35); transform: translateX(3px); }
.ds-ico { width: 40px; height: 40px; border-radius: 8px; background: rgba(4,28,48,.9);
  border: 1px solid rgba(140,200,240,.18); display: grid; place-items: center; overflow: hidden; }
.ds-ico img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.ds-gname { font-size: 13px; color: var(--text-hi); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.ds-tag { font-family: var(--ds-m); font-size: 9.5px; letter-spacing: .12em; color: var(--plasma-core);
  border: 1px solid rgba(5,199,252,.4); border-radius: 5px; padding: 2px 5px; }
.ds-gfoot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(140,190,220,.13);
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.ds-gempty { font-size: 13px; color: var(--text); padding: 10px 8px; line-height: 1.5; }

/* stage */
.ds-stagecol { display: flex; flex-direction: column; gap: 12px; }
.ds-stage { position: relative; height: 640px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 92%, rgba(5,199,252,.20), transparent 70%), linear-gradient(180deg, #05182B, #03101F);
  border: 1px solid rgba(140,200,240,.16); }
.ds-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.ds-sil { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); height: 78%; width: auto;
  fill: rgba(5,199,252,.10); stroke: rgba(5,199,252,.45); stroke-width: 1.2; transition: opacity .6s;
  animation: dsPulse 2.6s ease-in-out infinite; }
.ds-sil.is-gone { opacity: 0; animation: none; }
.ds-scan { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(5,199,252,.035) 0 1px, transparent 1px 4px); mix-blend-mode: screen; }
.ds-who { position: absolute; left: 18px; top: 16px; right: 170px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.ds-who .ds-k { font-family: var(--ds-m); font-size: 10.5px; letter-spacing: .26em; color: #3E7FA3; }
.ds-who .ds-cn { font-family: var(--ds-d); text-transform: uppercase; font-size: 26px; font-weight: 600;
  color: var(--text-hi); letter-spacing: .04em; line-height: 1.05; overflow-wrap: anywhere; }
.ds-status { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 999px; background: rgba(4,16,30,.8); border: 1px solid rgba(140,200,240,.2);
  font-family: var(--ds-m); font-size: 11px; color: var(--text); }
.ds-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.ds-dot.is-on { background: #34E08A; box-shadow: 0 0 8px #34E08A; }
.ds-dot.is-dead { background: #FF8A80; }
.ds-load { position: absolute; left: 12px; right: 12px; bottom: 16px; text-align: center; font-family: var(--ds-m);
  font-size: 12px; color: var(--text-dim); pointer-events: none; }
.ds-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ds-btn { appearance: none; border: 1px solid rgba(5,199,252,.45); background: rgba(4,20,36,.78); color: var(--text-hi);
  font-family: var(--ds-d); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; height: 44px;
  padding: 0 16px; border-radius: 10px; cursor: pointer; transition: background .2s, box-shadow .2s; }
.ds-btn:hover { background: rgba(5,199,252,.16); box-shadow: 0 0 14px rgba(4,148,252,.45); }
.ds-btn[aria-pressed="true"] { background: var(--plasma-core); color: #031022; }
.ds-btn:disabled { opacity: .4; cursor: default; box-shadow: none; background: rgba(4,20,36,.78); }

/* identity */
.ds-idcol { display: flex; flex-direction: column; gap: 14px; }
.ds-ident { display: flex; gap: 16px; align-items: center; }
.ds-hex { width: 88px; height: 98px; flex: none; display: grid; place-items: center; background: var(--plasma-core);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: dsIgnite .8s both; }
.ds-hexin { width: 78px; height: 87px; background: #06182C; display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ds-hexin .ds-k { font-family: var(--ds-m); font-size: 10px; letter-spacing: .2em; color: var(--text); }
.ds-hexin .ds-n { font-family: var(--ds-d); font-size: 40px; font-weight: 700; color: var(--text-hi); line-height: 1; }
.ds-name { font-family: var(--ds-d); text-transform: uppercase; font-size: 56px; font-weight: 700; color: var(--text-hi);
  line-height: .95; letter-spacing: .02em; overflow-wrap: anywhere; margin: 0; }
.ds-sub { font-size: 13px; color: var(--text); margin-top: 6px; }
.ds-xprow { display: flex; justify-content: space-between; font-family: var(--ds-m); font-size: 12px; margin-bottom: 6px; color: var(--text); }
.ds-xprow span + span { color: var(--text-dim); }
.ds-xpbar { height: 10px; border-radius: 6px; background: rgba(140,190,220,.13); overflow: hidden; }
.ds-xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #0C42EE, #05C7FC); transform-origin: left;
  animation: dsFill 1.2s cubic-bezier(.16,.84,.28,1) .3s both; box-shadow: 0 0 12px rgba(5,199,252,.7); }
.ds-brag { position: relative; overflow: hidden; background: var(--plasma-core); color: #031022; font-family: var(--ds-d);
  text-transform: uppercase; font-size: 22px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 10px 12px;
  border-radius: 10px; box-shadow: 0 0 24px rgba(5,199,252,.45); }
.ds-brag::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: dsSheen 3.6s ease-in-out 1.2s infinite; }
.ds-rkgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.ds-rk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(4,20,36,.6); border: 1px solid rgba(140,190,220,.13); animation: dsRise .6s cubic-bezier(.16,.84,.28,1) both; }
.ds-rk .ds-k { font-family: var(--ds-m); font-size: 10.5px; letter-spacing: .18em; color: var(--text-dim); }
.ds-rk .ds-v { font-family: var(--ds-d); font-size: 26px; font-weight: 600; color: var(--text-hi); line-height: 1; }
.ds-rk .ds-of { font-family: var(--ds-m); font-size: 10.5px; color: var(--text-dim); text-align: right; }
.ds-rkmore { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ds-rm { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 9px; background: rgba(4,20,36,.5);
  border: 1px solid rgba(140,190,220,.1); min-width: 0; }
.ds-rm .ds-k { font-family: var(--ds-m); font-size: 9.5px; letter-spacing: .14em; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-rm .ds-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ds-rm .ds-v { font-size: 15px; color: var(--text-hi); font-weight: 600; }

.ds-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 26px; padding: 0 8px;
  border-radius: 7px; font-family: var(--ds-m); font-size: 13px; font-weight: 500;
  background: transparent; color: var(--text-dim); border: 1px solid #2A4562; animation: dsIgnite .7s cubic-bezier(.3,0,.1,1) both; }
.ds-chip.sm { min-width: 44px; height: 22px; font-size: 11.5px; }
.ds-chip.t-core { background: #05C7FC; color: #031022; border-color: #9FEAFF; box-shadow: 0 0 14px rgba(5,199,252,.8);
  animation: dsIgnite .7s cubic-bezier(.3,0,.1,1) both, dsBreathe 4.2s ease-in-out 1s infinite; }
.ds-chip.t-hot { background: #04B9FC; color: #031022; border-color: #04B9FC; box-shadow: 0 0 8px rgba(4,185,252,.5); }
.ds-chip.t-plasma { background: #0494FC; color: #031022; border-color: #0494FC; }
.ds-chip.t-deep { background: #0C42EE; color: #FFFFFF; border-color: #0C42EE; }
.ds-chip.t-out { color: var(--text); border-color: #3A5A7A; }

.ds-fav { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.ds-fav .ds-ico { width: 52px; height: 52px; flex: none; }
.ds-fav .ds-ico img { width: 44px; height: 44px; }
.ds-fav .ds-k { font-family: var(--ds-m); font-size: 10px; letter-spacing: .2em; color: var(--text-dim); }
.ds-fav .ds-fn { font-family: var(--ds-d); text-transform: uppercase; font-size: 22px; font-weight: 600; color: var(--text-hi); }

/* skills */
.ds-skgrid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 18px; align-items: start; padding-top: 14px; }
.ds-radar { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 300 / 280; }
.ds-radar svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: dsRadar 1s cubic-bezier(.16,.84,.28,1) .2s both; }
.ds-radar .ds-grid { fill: none; stroke: rgba(140,190,220,.16); stroke-width: 1; }
.ds-radar .ds-shape { fill: rgba(5,199,252,.22); stroke: #05C7FC; stroke-width: 2; stroke-linejoin: round; }
.ds-rl { position: absolute; white-space: nowrap; pointer-events: none; }
.ds-rl .ds-k { font-family: var(--ds-d); font-size: 13px; letter-spacing: .1em; color: var(--text); line-height: 1.1; }
.ds-rl .ds-r { font-family: var(--ds-m); font-size: 11px; color: var(--text-dim); }
.ds-rl .ds-r.is-lit { color: #05C7FC; }
.ds-catgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; }
.ds-cat { display: flex; flex-direction: column; gap: 5px; }
.ds-cathead { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ds-catname { font-family: var(--ds-d); text-transform: uppercase; font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--text-hi); }
.ds-catname span { font-family: var(--ds-m); font-size: 11px; color: var(--text-dim); letter-spacing: 0; }
.ds-sk { display: grid; grid-template-columns: 110px minmax(0,1fr) 22px; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.2; }
.ds-sk > span:first-child { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-sk > span:last-child { font-family: var(--ds-m); color: var(--text-hi); text-align: right; }
.ds-tr { height: 6px; border-radius: 4px; background: rgba(140,190,220,.12); overflow: hidden; }
.ds-tr i { display: block; height: 100%; background: #0494FC; transform-origin: left; animation: dsFill .9s cubic-bezier(.16,.84,.28,1) both; }
.ds-tr i.is-max { background: #05C7FC; box-shadow: 0 0 8px rgba(5,199,252,.8); }
.ds-noskill { font-size: 12px; color: #3E5F75; }
.ds-other { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(140,190,220,.13); display: flex; gap: 8px 16px;
  flex-wrap: wrap; font-size: 12.5px; color: var(--text); }
.ds-other b { color: var(--text-hi); }

/* record, biography, traits */
.ds-right { display: flex; flex-direction: column; gap: 18px; }
.ds-rec { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.ds-rec div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 9px; background: rgba(4,20,36,.5); min-width: 0; }
.ds-rec .ds-k { font-family: var(--ds-m); font-size: 9.5px; letter-spacing: .14em; color: var(--text-dim); }
.ds-rec .ds-v { font-family: var(--ds-d); font-size: 24px; font-weight: 600; color: var(--text-hi); }
.ds-bio { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.ds-bio.is-empty { color: var(--text-dim); font-style: normal; }
.ds-epi { font-family: var(--ds-d); text-transform: uppercase; font-size: 20px; letter-spacing: .06em; color: var(--plasma-core); margin: 10px 0 0; }
.ds-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 190px; overflow: auto; }
.ds-trait { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid rgba(140,190,220,.3); color: var(--text); }
.ds-trait.k-pos { color: #7CF0B4; border-color: rgba(52,224,138,.45); background: rgba(52,224,138,.08); }
.ds-trait.k-neg { color: #FF9AA6; border-color: rgba(228,52,74,.45); background: rgba(228,52,74,.08); }
.ds-trait.k-job { color: #F5D37A; border-color: rgba(227,179,65,.5); background: rgba(227,179,65,.08); }
.ds-foot { margin-top: 20px; font-family: var(--ds-m); font-size: 11px; color: #3E6A85; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.ds-foot a { color: var(--plasma-hot); text-decoration: none; }

@keyframes dsIgnite { 0% { opacity: 0; transform: scale(.7); filter: brightness(2.4) } 60% { opacity: 1; filter: brightness(1.6) } 100% { opacity: 1; transform: scale(1); filter: none } }
@keyframes dsBreathe { 0%, 100% { box-shadow: 0 0 10px rgba(5,199,252,.55) } 50% { box-shadow: 0 0 22px rgba(5,199,252,.95), 0 0 44px rgba(5,199,252,.35) } }
@keyframes dsRise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes dsFill { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes dsRadar { from { opacity: 0; transform: scale(.3) rotate(-30deg) } to { opacity: 1; transform: none } }
@keyframes dsSheen { 0% { left: -45% } 55%, 100% { left: 120% } }
@keyframes dsPulse { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }

/* container queries (the design's own breakpoints): the rail takes part of the window, so the column's width,
   not the viewport's, decides the layout. */
@container (max-width: 1300px) {
  .ds-skgrid { grid-template-columns: 1fr; }
}
@container (max-width: 1040px) {
  .ds-hero { grid-template-columns: 280px minmax(0,1fr); }
  .ds-idcol { grid-column: 1 / -1; }
  .ds-lower { grid-template-columns: 1fr; }
}
@container (max-width: 760px) {
  .ds-top { padding: 22px 0 16px; }
  .ds-hero { grid-template-columns: 1fr; gap: 16px; }
  .ds-idcol { grid-column: auto; }
  .ds-stagecol { order: -1; }
  .ds-loadout { max-height: none; order: 1; }
  .ds-stage { height: 460px; }
  .ds-lower { gap: 16px; margin-top: 16px; }
  .ds-name { font-size: 44px; }
  .ds-catgrid { grid-template-columns: 1fr; }
  .ds-sk { grid-template-columns: 120px minmax(0,1fr) 22px; }
  .ds-rkmore, .ds-rec { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ds-panel { padding: 14px; }
  .ds-who { right: 16px; top: 54px; }
  .ds-who .ds-cn { font-size: 20px; }
}
/* the phone bar (owner 2026-11-16): Legal moves to the page footers and the Dossier takes its place.
   Only while the Dossier tab is shown: a switched-off dossier gives Legal its place back. */
@media (max-width: 560px) {
  .rail-item[data-route="dossier"]:not([hidden]) ~ .rail-item[data-route="legal"] { display: none; }
  .rail-item[data-route="dossier"] .lb { letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-col *, .ds-col *::after { animation: none !important; transition: none !important; }
}
.rail-item[hidden], .gate[hidden] { display: none; }
/* leaderboard names open the player's dossier (app.js lbName) */
.ds-lblink { color: inherit; text-decoration: none; }
.ds-lblink:hover, .ds-lblink:focus-visible { color: var(--plasma-hot); text-decoration: underline; text-underline-offset: 3px; }
