@font-face{
  font-family:"Zatmenie Pixel";src:url("../assets/fonts/Zatmenie-Pixel-Bold.woff?v=2") format("woff");
  font-weight:700;font-style:normal;font-display:swap
}
@font-face{
  font-family:"Zatmenie Pixel";src:url("../assets/fonts/Zatmenie-Pixel-Regular.woff") format("woff");
  font-weight:400;font-style:normal;font-display:swap
}
.player-hub{
  --text:#fff4e5;--muted:#b8a596;--hi:#ffb56e;
  --ui-font:system-ui,Arial,sans-serif;--display-font:Chaos,var(--ui-font);
  --control-bg:#392619;--control-border:#ad784d69;--control-text:#ffe0bd;
  background:radial-gradient(ellipse at 68% 20%,#51301838,transparent 52%),#120d0a;
  font:700 14px/1.5 var(--ui-font);font-synthesis:none
}
.player-hub :is(.ctl,.tag){font:700 14px/1.4 var(--ui-font)}
.player-hub .ico{width:18px;height:18px;shape-rendering:auto}
.player-hub .rail{
  position:relative;top:auto;left:auto;bottom:auto;transform:none;
  width:min(1240px,calc(100% - 64px));margin:24px auto 0;padding:12px 18px;
  border-radius:20px;display:flex;align-items:center;justify-content:space-between;
  gap:24px;background:#211810b8;clip-path:none
}
.player-hub .rail .mark{display:flex;align-items:center;gap:10px;width:auto;min-height:42px;flex:none;color:#fff2df}
.player-hub .mark img{width:30px;height:30px}
.player-hub .mark span{font:700 17px/1.2 var(--ui-font)}
.player-hub .rail nav{display:flex;align-items:center;width:auto;gap:6px}
.player-hub .rail nav a{
  display:flex;align-items:center;justify-content:center;gap:8px;width:auto;
  padding:10px 13px;min-height:42px;border-radius:12px;font:700 13px/1.3 var(--ui-font)
}
.player-hub .rail nav a span{max-width:none;overflow-wrap:normal}
.player-hub .rail a[aria-current=page]{background:#59331966;color:#ffcd9d}
.player-hub .main{width:min(1240px,calc(100% - 64px));margin:28px auto 0;padding-bottom:32px}
.player-hub .crumbs{margin:0 0 16px;padding:0 4px;min-height:25px;font-size:14px}

.identity-profile{
  --tint:#ffb56e;display:block;position:relative;background:#21170f;
  border:1px solid #c1936a38;border-radius:26px;overflow:hidden;
  content-visibility:visible;contain-intrinsic-block-size:none
}
.profile-deck{
  --identity-width:42%;--seam:clamp(52px,7vw,100px);display:grid;grid-template-columns:minmax(0,var(--identity-width)) minmax(0,1fr);
  min-height:456px;isolation:isolate;position:relative
}
.profile-deck::before{
  content:"";position:absolute;inset:0 auto 0 0;width:var(--identity-width);z-index:-1;pointer-events:none;
  background:repeating-linear-gradient(-60deg,transparent 0 63px,#efd4af16 63px 64px),
    repeating-linear-gradient(30deg,transparent 0 63px,#efd4af16 63px 64px);
  mask-image:linear-gradient(90deg,#000 90%,transparent)
}
.profile-identity{
  display:flex;flex-direction:column;align-items:flex-start;min-width:0;
  position:relative;z-index:2;padding:56px 16px 30px 48px
}
.detail-card .profile-deck,.detail-card .profile-scene{min-height:390px}
.detail-card .profile-identity{align-self:center;padding-block:26px}
.profile-name{
  font:700 clamp(38px,4.6vw,64px)/1 var(--ui-font);letter-spacing:0;
  margin:0;color:#fff3df;overflow-wrap:anywhere;max-width:100%
}
.profile-handle{min-width:0;max-width:100%}
.profile-kicker{margin:0 0 9px;color:#d2ad8c;font:700 12px/1.3 var(--ui-font);letter-spacing:.075em;text-transform:uppercase}
.profile-meta{max-width:100%;min-width:0;margin-top:10px}
.founder-meta{--badge-size:26px;--badge-gap:9px}
.profile-role{
  display:flex;align-items:center;gap:7px;
  color:var(--tint);font:700 14px/1.4 var(--ui-font)
}
.profile-role::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.founder-role{font:400 19px/1.15 Chaos,monospace;letter-spacing:.025em;gap:var(--badge-gap)}
.founder-role::before{content:none}
.founder-role .action-sprite{width:var(--badge-size);height:var(--badge-size);image-rendering:pixelated;object-fit:contain}
.profile-bio{
  max-width:44ch;font:700 14px/1.65 var(--ui-font);margin:12px 0 0;color:#ebd6c1;
  overflow-wrap:anywhere;white-space:pre-wrap
}
.founder-meta .profile-bio{
  margin-left:calc(var(--badge-size)/2);padding-left:calc(var(--badge-size)/2 + var(--badge-gap) - 1px);
  border-left:1px solid #d08a56a6
}
.profile-actions{display:grid;justify-items:start;gap:6px;width:100%;max-width:420px;margin-top:auto;padding-top:28px}
.profile-links,.profile-tools{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap;max-width:100%}
.player-hub .profile-actions .ctl{
  display:inline-grid;grid-template-columns:22px minmax(0,auto);justify-content:start;align-content:center;
  min-height:44px;min-width:0;max-width:100%;gap:7px;border-radius:9px;font:400 14px/1.35 var(--ui-font);
  padding:6px 9px;text-align:left;overflow-wrap:anywhere;
  color:var(--control-text);background:var(--control-bg);border-color:var(--control-border)
}
.profile-actions .ctl span{min-width:0}
.profile-actions .ico{width:16px;height:16px}
.profile-actions .action-sprite{display:block;width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
.profile-actions .ctl:is(:hover,:focus-visible,[aria-expanded=true]){background:#583820;border-color:#e1925a97;color:#ffedd8}
.owner-actions{gap:8px;margin-top:20px;padding-top:0}
.owner-actions .profile-tools{
  display:grid;width:100%;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:7px
}
.player-hub .owner-actions .profile-tools .ctl{min-height:49px;font-size:15px}
.player-hub .owner-actions .profile-wardrobe{background:#4d321f;border-color:#ba825879}
.player-hub .owner-actions .profile-wardrobe:is(:hover,:focus-visible,[aria-expanded=true]){background:#583820;border-color:#e1925a97;color:#ffedd8}
.owner-actions .profile-links{width:100%;padding-top:2px;border-top:1px solid #ad784d4f;gap:0 8px}
.player-hub .owner-actions .profile-links .ctl{
  grid-template-columns:18px minmax(0,auto);background:transparent;border-color:transparent;
  min-height:44px;font-size:13px;padding:4px 7px
}
.player-hub .owner-actions .profile-links .ctl:is(:hover,:focus-visible){background:#58382070;border-color:#ba825879}
.owner-actions .profile-links .action-sprite{width:18px;height:18px}
.owner-actions .ctl span{-webkit-text-stroke:.32px currentColor}

.profile-scene{position:relative;min-width:0;min-height:456px;overflow:hidden}
.scene-location{
  position:absolute;inset:0 0 0 var(--identity-width);width:calc(100% - var(--identity-width));height:100%;
  object-fit:cover;object-position:center;z-index:-1;pointer-events:none;
  opacity:.77;mask-image:linear-gradient(90deg,transparent,#0002 calc(var(--seam)*.22),#0008 calc(var(--seam)*.50),#000d calc(var(--seam)*.76),#000 var(--seam))
}
.scene-avatar{
  display:block;position:absolute;inset:0;width:100%;height:100%;
  image-rendering:pixelated;cursor:grab;touch-action:pan-y;z-index:2
}
.scene-avatar:active{cursor:grabbing}
.scene-avatar:focus-visible{outline:2px solid #ffc384;outline-offset:-8px;border-radius:18px}
.profile-scene [data-turn]{
  position:absolute;top:14px;right:14px;z-index:3;width:42px;height:42px;
  border:1px solid #fff0d235;border-radius:12px;color:#fff0dd;background:#22160ed9;
}
.profile-scene [data-turn]:hover{background:#4a2a18}
.profile-loadout{
  display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;list-style:none;
  border-top:1px solid #c1936a2e;margin:0;padding:12px 25px;background:#1b130d;
  color:#d9bda0;font-size:13px
}
.profile-loadout li{display:flex;align-items:baseline;gap:7px;overflow-wrap:anywhere}
.profile-loadout li::before{content:"";flex:none;width:4px;height:4px;align-self:center;border-radius:50%;background:#c9956b}
.identity-profile .locker{
  display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:25px 32px;
  background:#19120d;border-top:1px solid #c1936a30;min-height:0
}
.identity-profile .locker-right{grid-row:1}
.identity-profile .stage{grid-row:2;align-items:flex-start;justify-content:flex-start}
.identity-profile .pose{display:none}
.identity-profile .stage-message{margin:0 0 9px}
.identity-profile .pose-edit{width:100%}
.pose-edit .pose-panel{
  margin:0;padding:16px;grid-template-columns:minmax(145px,220px) minmax(0,1fr);
  align-items:start;gap:18px;background:#221810;border-color:#c1936a38
}
.pose-monitor{position:sticky;top:12px;min-width:0;background:radial-gradient(ellipse at 55% 45%,#68432664,transparent 70%),#18100b;border-radius:10px}
.pose-preview{width:100%;height:auto;aspect-ratio:1;display:block;image-rendering:pixelated;cursor:grab;touch-action:pan-y}
.pose-preview:active{cursor:grabbing}
.pose-workbench,[data-pose-tools],[data-emote-tools]{display:grid;gap:12px;min-width:0}
.pose-modes,.pose-actions,.emote-list{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-start}
.pose-modes .ctl,.pose-actions .ctl,.emote-list .ctl{min-height:44px;padding:7px 11px}
.pose-modes [data-pose-close]{margin-left:auto;background:transparent;color:#d4b99f}
.pose-check{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 4px;color:#d4b99f;font-size:13px}
.pose-check input{accent-color:#ffa961}
.pose-edit .action-sprite{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}
.pose-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,176px),1fr));gap:10px}
.pose-fields fieldset{min-width:0;margin:0;padding:8px 10px 3px;border:1px solid #c1936a38;border-radius:9px}
.pose-fields legend{padding:0 4px;color:#f4cfad;font-size:13px}
.pose-field{min-width:0;display:block}
.pose-field>span{gap:5px}
.pose-hand select{min-height:44px;max-width:100%}
.pose-hand,.pose-field>span{line-height:1.45}
.pose-field output{white-space:nowrap}
.emote-status{margin:0;color:#cbb097;font-size:13px}
.identity-profile .locker-menu{gap:7px;border-bottom:1px solid #c1936a20;padding-bottom:15px}
.identity-profile .locker-menu .ctl{min-height:40px;padding:9px 12px;border-radius:10px}
.identity-profile .shelf{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));max-height:270px;margin:0;padding:3px}
.identity-profile .item{border-radius:12px;background:#231a14;border-color:#bc8c602c;transition:background .18s,border-color .18s,transform .18s}
.identity-profile .item:hover{transform:translateY(-2px);border-color:#ffa75f88}
.identity-profile .item[aria-pressed=true]{background:#3a2619;border-color:#ffa75fa0}
.identity-profile .item-info{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:none;border:0;padding:8px 0 0;min-height:0}
.identity-profile .item-info>strong{font-size:14px;color:#f4d8b9}
.identity-profile .item-info>p{margin:0;flex:1;font-size:13px;color:#bc9d82}
.identity-profile .item-info .ctl{border-radius:10px;padding:9px 12px;min-height:40px}
.identity-profile .locker-right>.actions{display:none}
.identity-profile .selection{position:static}
.player-hub .foot{margin-top:22px;background:none;border:0;padding:16px 4px;border-radius:0}
.player-hub .foot strong{font:700 15px/1.4 var(--ui-font)}
.player-hub .foot p{font-size:12px;color:#a58b74}
.player-hub .edit h2{font-size:16px;line-height:1.4}
.catalogue-card .profile-deck{--identity-width:50%;min-height:300px}
.catalogue-card .profile-scene{min-height:300px}
.catalogue-card .profile-identity{padding:26px 14px 26px 30px}
.catalogue-card .profile-name{font-size:clamp(27px,3.3vw,43px)}
.catalogue-card .profile-bio{max-width:36ch}
@media(max-width:1000px){
 .player-hub .rail,.player-hub .main{width:calc(100% - 36px)}
 .profile-identity{padding-left:30px}
 .player-hub .rail nav a{padding-inline:9px}
}
@media(max-width:700px){
 .player-hub .rail{margin-top:12px;padding:9px 12px;gap:8px;flex-wrap:wrap}
 .player-hub .mark span{font-size:14px}
 .player-hub .rail .mark{min-height:32px}
 .player-hub .rail nav{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.72fr) minmax(0,1.68fr);gap:3px}
 .player-hub .rail nav a{flex-direction:column;gap:4px;min-height:50px;font-size:11px;padding:7px 1px}
 .player-hub .main{margin-top:18px;padding-bottom:16px}
 .identity-profile{border-radius:22px}
 .profile-deck,.detail-card .profile-deck,.catalogue-card .profile-deck{grid-template-columns:minmax(0,1fr);min-height:0}
 .profile-deck::before{
   grid-area:1/1/3/2;position:relative;inset:auto;width:auto;
   mask-image:linear-gradient(180deg,#000 0 65%,transparent)
 }
 .profile-identity,.catalogue-card .profile-identity{display:contents}
 .profile-deck :is(.profile-handle,.profile-meta,.profile-actions,.profile-scene){grid-column:1}
 .profile-meta{grid-row:2;margin:6px 0 0;padding:0 22px}
 .profile-role{font-size:13px}
 .profile-role.founder-role{font-size:17px}
 .profile-handle{grid-row:1;padding:20px 22px 0}
 .profile-name,.catalogue-card .profile-name{font-size:clamp(36px,9vw,48px)}
 .profile-scene,.catalogue-card .profile-scene{grid-row:3;min-height:285px;margin-top:10px}
 .scene-location{
   grid-area:3/1/4/2;inset:-22px 0 0;width:100%;height:calc(100% + 22px);
   mask-image:linear-gradient(180deg,transparent,#0001 24px,#0005 45px,#000b 70px,#000 104px)
 }
 .profile-scene [data-turn]{top:12px;right:12px}
 .profile-bio,.catalogue-card .profile-bio{font-size:13px;max-width:none;margin-top:10px}
 .profile-actions{grid-row:4;padding:0 18px;margin:12px 0 16px;gap:5px}
 .player-hub .profile-actions .ctl{padding-inline:7px;font-size:13px;gap:5px;grid-template-columns:20px minmax(0,auto)}
 .profile-actions .action-sprite{width:20px;height:20px}
 .detail-card .profile-deck:has(.owner-actions)::before{grid-area:1/1/4/2}
 .detail-card .profile-deck:has(.owner-actions) .profile-scene{grid-row:4;min-height:256px;margin-top:0}
 .detail-card .profile-deck:has(.owner-actions) .scene-location{grid-area:4/1/5/2;inset:0;height:100%}
 .owner-actions{grid-row:3;max-width:none;padding-inline:22px;margin:14px 0 0}
 .player-hub .owner-actions .profile-tools .ctl{font-size:14px}
 .owner-actions .profile-links{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);column-gap:7px}
 .player-hub .owner-actions .profile-links .ctl{font-size:12px;padding-inline:4px}
 .profile-loadout{padding:10px 22px;font-size:12px}
 .identity-profile .locker{padding:19px 18px}
 .identity-profile .shelf{grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}
 .identity-profile .locker-menu .ctl{font-size:13px;min-height:42px;padding:8px}
 .catalogue-card .profile-scene{min-height:225px}
 .pose-edit .pose-panel{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}
 .pose-monitor{position:relative;top:auto;width:min(100%,180px);justify-self:center}
 .pose-hand{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 .profile-actions .ctl,.identity-profile .item{transition:none}
 .identity-profile .locker{animation:none}
}

.directory-header{margin-bottom:22px}
.directory-header h1{margin:0;font-size:clamp(32px,6vw,54px);line-height:1.15}
.directory-header p{margin:8px 0 12px;color:var(--muted);font-weight:400}
.directory-founder{display:inline-flex;align-items:center;min-height:44px;gap:8px;color:var(--hi)}
.directory-founder:hover{text-decoration:underline;text-underline-offset:4px}
.directory .toolbar{margin-bottom:14px}
.directory #results{flex:none;color:var(--muted);font-weight:400}
.directory-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;scroll-margin-top:12px}
.directory-list li{min-width:0}
.directory-entry{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:62px;padding:8px 10px;background:#251910;border:1px solid #c1936a38;border-radius:12px;color:var(--text);transition:background .18s,border-color .18s}
.directory-entry:hover{background:#362317;border-color:#c1936a78}
.directory-entry>.ico{color:var(--hi)}
.directory-mark{display:grid;place-items:center;aspect-ratio:1;border-radius:8px;background:#56351d;color:#ffcc99;text-transform:uppercase}
.directory-nick{overflow-wrap:anywhere}
.directory-nick small{display:block;margin-top:2px;color:var(--muted);font-weight:400}
#roster-pages:not([hidden]){display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:20px}
#roster-pages .ctl,.directory-profile .ctl{min-height:44px;border-radius:12px}
#roster-pages .ctl:disabled{opacity:.45;cursor:default;pointer-events:none}
:is(.directory,.directory-profile) :is(a,button,input):focus-visible{outline:2px solid var(--hi);outline-offset:3px}
.directory-profile{max-width:660px;padding:clamp(18px,4vw,36px);border:1px solid #c1936a38;border-radius:20px;background:#21170f}
.directory-profile .profile-name{margin:6px 0 20px;overflow-wrap:anywhere}
.directory-profile .action-sprite{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
.profile-playtime{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:10px 0 0;font-size:13px}
.profile-playtime dt{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:400}
.profile-playtime dt .ico{width:16px;height:16px;color:var(--hi)}
.profile-playtime dd{margin:0;color:var(--text)}
.directory-profile .profile-playtime{margin:0 0 18px;padding:12px;border-radius:12px;background:#ffffff08}
@media(max-width:900px){.directory-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.directory-list{grid-template-columns:minmax(0,1fr)}.directory .toolbar{flex-wrap:wrap}.directory .search{flex-basis:100%}.directory #results{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.directory-entry{transition:none}}

/* Player profiles, portrait gallery and playtime charts. */
.player-hub {
  --grid-veil:
    linear-gradient(#d6dde418 1px,transparent 1px),
    linear-gradient(90deg,#d6dde418 1px,transparent 1px);
}

.player-hub .rail nav .action-sprite,
.profile-role > .action-sprite {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.profile-role::before { content: none; }

.identity-profile[data-tone="neutral"] { --tint: #f1dac6; }
.identity-profile[data-tone="neutral"] .profile-deck {
  background: radial-gradient(ellipse at 74% 35%,#505358 0%,#373a40 45%,#27292d 84%);
}
.identity-profile[data-tone="neutral"] .profile-deck::before {
  background: linear-gradient(105deg,#24262a 0%,#2a2d32 63%,#2b2e3300 100%);
}
.identity-profile[data-tone="neutral"] .profile-scene,
.identity-profile:has(.locker:not([hidden])) .profile-scene {
  background-image: var(--grid-veil),radial-gradient(ellipse at 55% 66%,#aaa8a517,transparent 68%);
  background-size: 25px 25px,25px 25px,auto;
  mask-image: linear-gradient(to right,transparent,#000 11%);
}
.identity-profile .locker,
.identity-profile .pose-monitor {
  background-image: var(--grid-veil),linear-gradient(145deg,#33363a,#25272b);
  background-size: 25px 25px,25px 25px,auto;
}
.identity-profile .pose-panel { background: #262526; }
.scene-location[hidden] { display: none; }

.directory-header h1,.profile-name,.tops-toolbar h2,
.gallery-nick,.rank-spotlight strong,.rank-spotlight-time {
  font-family: var(--display-font);
  font-weight: 400;
}
.directory-header h1 { font-size: clamp(44px,7.5vw,84px); line-height: .98; }
.directory-header p { margin-top: 10px; }
.directory .toolbar { margin-bottom: 12px; }
.directory .search input { font-weight: 400; }
.directory-list {
  grid-template-columns: repeat(5,minmax(0,1fr));
  column-gap: clamp(12px,2vw,25px);
  row-gap: 22px;
  align-items: start;
  padding: 10px 0 24px;
}
.directory-list > li:nth-child(even) { margin-top: 22px; }
.gallery-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 26px 26px 13px 13px;
}
.gallery-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: .96;
  border-radius: 38% 38% 16% 16% / 43% 43% 15% 15%;
  background:
    repeating-linear-gradient(0deg,transparent 0 23px,#f9c9a210 23px 24px),
    repeating-linear-gradient(90deg,transparent 0 23px,#f9c9a210 23px 24px),
    radial-gradient(ellipse at 50% 38%,var(--gallery-glow,#78482d),transparent 73%),
    var(--gallery-base,#2e201b);
  box-shadow: inset 0 0 0 1px #efd2b12d;
  overflow: hidden;
  transition: border-radius .24s ease,background-color .24s ease,box-shadow .24s ease;
}
.directory-list > li:nth-child(4n+2) { --gallery-glow:#714164; --gallery-base:#302032; }
.directory-list > li:nth-child(4n+3) { --gallery-glow:#476451; --gallery-base:#1d2c26; }
.directory-list > li:nth-child(4n+4) { --gallery-glow:#795a41; --gallery-base:#362820; }
.gallery-art canvas,.rank-spotlight canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.gallery-art canvas {
  mask-image: linear-gradient(#000 0 72%,#000b 86%,transparent 100%);
  transform: translateY(4%);
  transition: transform .26s ease;
}
.gallery-tile:is(:hover,:focus-visible) .gallery-art {
  border-radius: 29% 29% 14% 14% / 36% 36% 14% 14%;
  box-shadow: inset 0 0 0 1px #f3ab77aa,0 8px 24px #0005;
}
.gallery-tile:is(:hover,:focus-visible) .gallery-art canvas { transform: translateY(1%) scale(1.045); }
.gallery-caption { min-width: 0; padding: 0 3px 2px; }
.gallery-nick {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(18px,2vw,26px);
  line-height: 1.06;
}
.gallery-caption small {
  display: block;
  margin-top: 5px;
  color: #d8c0ab;
  font-size: 13px;
}
.gallery-open {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #19100de0;
  color: #ffe0be;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease,transform .2s ease;
  pointer-events: none;
}
.gallery-tile:is(:hover,:focus-visible) .gallery-open { opacity: 1; transform: none; }

.tops { --chart-gutter: 34px; }
.tops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tops-toolbar h2 { margin: 0; font-size: clamp(25px,4vw,42px); line-height: 1; }
.tops-worlds { display: flex; gap: 5px; flex-wrap: wrap; }
.tops-worlds .ctl { padding: 7px 13px; min-height: 44px; border-radius: 12px; }
.tops-worlds .ctl[aria-pressed="true"] { border-color: #f1ae78; background: #734121; color: #fff4e4; }
.tops-context { margin: 10px 0 16px; color: #d1b9a6; font-size: 15px; }
 .tops-chart.is-sparse { align-items: start; }
.tops-chart.is-sparse .rank-spotlight-art { width: min(62%,220px); }
.tops-chart {
  display: grid;
  grid-template-columns: minmax(200px,.85fr) minmax(0,1.55fr);
  align-items: stretch;
  gap: clamp(14px,2vw,26px);
}
.rank-spotlight,.rank-figure {
  margin: 0;
  border: 1px solid #d7af883f;
  border-radius: 23px;
  min-width: 0;
}
.rank-spotlight {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  align-items: center;
  justify-items: center;
  padding: 22px 15px 24px;
  text-align: center;
  background: var(--grid-veil),radial-gradient(ellipse at 50% 47%,#86512c 0%,#4e2e23 47%,#271b19 82%);
  background-size: 28px 28px,28px 28px,auto;
  overflow: hidden;
  transition: border-color .2s ease;
}
.rank-spotlight:is(:hover,:focus-visible) { border-color: #ffcd97; }
.rank-spotlight-label {
  padding: 5px 12px;
  border: 1px solid #ebba7a6b;
  border-radius: 9px;
  background: #2d1c17;
  color: #ffd7a0;
}
.rank-spotlight-art { width: min(100%,350px); aspect-ratio: 224/228; }
.rank-spotlight-art canvas { mask-image: linear-gradient(#000 0 73%,transparent 97%); }
.rank-spotlight strong {
  align-self: end;
  font-size: clamp(27px,4.5vw,54px);
  line-height: .98;
  overflow-wrap: anywhere;
  min-width: 0;
}
.rank-spotlight-time { color: #ffca93; font-size: clamp(19px,2.6vw,31px); margin-top: 7px; }
.rank-figure {
  padding: clamp(12px,2vw,22px);
  background: #241917;
}
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.rank-row {
  display: grid;
  grid-template-columns: var(--chart-gutter) minmax(0,1fr) auto;
  grid-template-rows: auto 6px;
  row-gap: 5px;
  border-radius: 9px;
  padding: 6px 0;
  color: #ffead6;
}
.rank-row:is(:hover,:focus-visible) { background: #483027; }
.rank-position { color: #c9ab96; align-self: center; }
.rank-player { font-size: clamp(14px,2vw,20px); overflow-wrap: anywhere; line-height: 1.12; }
.rank-time { padding-left: 5px; color: #ebc9ae; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-track { grid-column: 2 / -1; height: 6px; background: #ffd0ad1c; border-radius: 5px; }
.rank-bar {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg,#a96740,#ffc17d);
  transform-origin: left;
  animation: reveal-playtime .42s cubic-bezier(.24,.7,.26,1) both;
}
.rank-list li:first-child .rank-bar { background: linear-gradient(90deg,#ca7945,#ffe8a3); }
@keyframes reveal-playtime { from { transform: scaleX(0); } }
.rank-axis {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 9px 0 0 var(--chart-gutter);
  font-size: clamp(10px,1.5vw,13px);
  color: #d1b8a4;
}
.tops-empty { grid-column: 1/-1; color: var(--muted); }
@media(max-width: 950px) { .directory-list { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width: 730px) {
  .directory-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .identity-profile[data-tone="neutral"] .profile-scene,
  .identity-profile:has(.locker:not([hidden])) .profile-scene { mask-image: linear-gradient(to bottom,transparent,#000 15%); }
}
@media(max-width: 620px) {
  .tops-chart { grid-template-columns: minmax(0,1fr); }
  .rank-spotlight { padding: 15px 12px; }
  .rank-spotlight-art { width: min(62%,220px); }
}
@media(max-width: 490px) {
  .directory-list { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 13px; }
  .directory-list > li:nth-child(even) { margin-top: 14px; }
  .player-hub .rail nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; }
  .player-hub .rail nav a { font-size: 10px; min-width: 0; }
  .player-hub .rail nav a span { overflow-wrap: anywhere; }
  .tops { --chart-gutter: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-art,.gallery-art canvas,.gallery-open,.rank-spotlight { transition: none; }
  .gallery-tile:is(:hover,:focus-visible) .gallery-art canvas { transform: translateY(4%); }
  .rank-bar { animation: none; }
}

