#content:is([data-route="account"],[data-route="profile"]) { width: min(1480px,100%); padding: 48px 20px 32px; }

.account-profile-top { position: relative; }
.account-profile-cover {
  --profile-banner: url('/ludik-profile-warehouse.jpg');
  height: 241px;
  border: 1px solid #e9d8ff29;
  border-radius: 48px;
  background: linear-gradient(96deg,#17121d55,#100f162b 58%,#1b153b40), var(--profile-banner) center 58% / cover, #211e25;
}
.account-profile-cover[data-profile-banner="yard"] { --profile-banner:url('/ludik-upgrade-yard.jpg'); }
.account-profile-cover[data-profile-banner="armory"] { --profile-banner:url('/ludik-case-armory.webp'); }
.account-profile-cover[data-profile-banner="arena"] { --profile-banner:url('/ludik-arena-hero.jpg'); }
.account-profile-id {
  position: absolute;
  inset: 32px auto auto 32px;
  width: min(393px,calc(100% - 64px));
  border: 1px solid #e9d8ff36;
  border-radius: 28px;
  background: #1c1722d9;
}
.account-profile-identity { display: flex; align-items: center; gap: 8px; min-height: 123px; padding: 17px; }
.account-profile-copy { display: grid; flex: 1; grid-template-columns: minmax(0,1fr); gap: 8px; min-width: 0; }
.account-profile-name { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.account-profile-name h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; color: #fff; font: 700 18px/24px var(--font-interface); letter-spacing: 0; }
.account-player-id {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: 20px;
  background: #e9d8ff10;
  color: #eee5f5;
  font: 600 12px/1.2 var(--font-interface);
  font-variant-numeric: tabular-nums;
}
.account-player-id:hover { background: #e9d8ff24; }
.account-player-id svg { width: 13px; height: 13px; }
.account-profile-avatar, .account-settings-avatar {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #c196ff6b;
  color: #fbf1ff;
  font-weight: 800;
  background: linear-gradient(145deg,#43345382,#181620c9),url('/vault-hero.jpg') 65% 58% / 170px auto;
}
.account-profile-avatar { width: 88px; height: 88px; border-radius: 20px; font-size: 32px; }
.account-profile-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin: 0; }
.account-profile-counts > div { display: grid; gap: 2px; min-width: 0; padding: 8px 5px; border-radius: 14px; background: #e9d8ff14; text-align: center; }
.account-profile-counts dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6daee; font: 500 11px/14px var(--font-interface); }
.account-profile-counts dd { margin: 0; color: #f6f2fa; font: 700 20px/24px var(--font-interface); font-variant-numeric: tabular-nums; }
.account-profile-rank {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 16px;
  align-items: center;
  min-height: 52px;
  padding: 4px 8px;
  gap: 7px;
  border-top: 1px solid #e9d8ff24;
  border-radius: 0 0 27px 27px;
  background: linear-gradient(90deg,#44345a,#241d2d);
}
.account-profile-rank:hover { background: #483560; }
.account-profile-rank .rank-emblem { width: 24px; height: 24px; }
.account-profile-rank > span:last-child { color: #eedcff; font-size: 24px; }
.account-rank-meter { display: grid; gap: 5px; }
.account-rank-meter > span { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; color: #f2e6ff; font-size: 13px; }
.account-rank-meter small { color: #ddd0e8; font-size: inherit; }
.account-rank-meter .account-rank-award { color: #f3dcb0; font-size: 12px; overflow-wrap: anywhere; }
.account-rank-meter progress { appearance: none; min-width: 0; width: 100%; height: 9px; border: 0; border-radius: 12px; background: #e9d8ff24; color: #c196ff; }
.account-rank-meter progress::-webkit-progress-bar { border-radius: 12px; background: #e9d8ff24; }
.account-rank-meter progress::-webkit-progress-value { border-radius: 12px; background: #c196ff; }
.account-rank-meter progress::-moz-progress-bar { border-radius: 12px; background: #c196ff; }
.account-profile-controls { position: relative; display: flex; gap: 4px; width: fit-content; margin: -20px 64px 0 auto; padding: 4px; border-radius: 16px; background: #100f12; }
.account-profile-controls button { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 125px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; color: #f6f2fa; background: #e9d8ff1a; font: 600 14px/1.2 var(--font-interface); }
.account-profile-controls button:first-child { min-width: 144px; }
.account-profile-controls svg { flex: none; color: #e5cef6; }
.account-profile-controls button:hover { background: #e9d8ff30; }

.account-profile-sections { display: grid; gap: 16px; min-width: 0; margin-top: 32px; padding-top: 32px; }
.account-profile-tabs { display: flex; align-items: center; min-width: 0; min-height: 72px; padding: 8px 16px 8px 8px; border-radius: 24px; background: #e9d8ff0d; }
.account-profile-tab-list { display: flex; width: fit-content; max-width: 100%; overflow: auto hidden; scrollbar-width: none; border-radius: 16px; background: #e9d8ff0d; }
.account-profile-tab-list::-webkit-scrollbar { display: none; }
.account-profile-tabs a { display: flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 16px; border-radius: 16px; color: #c8bdce; font: 600 20px/1.1 var(--font-interface); white-space: nowrap; }
.account-profile-tabs a:nth-child(1) { min-width: 124px; }
.account-profile-tabs a:nth-child(2) { min-width: 156px; }
.account-profile-tabs a:nth-child(3) { min-width: 163px; }
.account-profile-tabs a:nth-child(4) { min-width: 174px; }
.account-profile-tabs a:nth-child(5) { min-width: 190px; }
.account-profile-tabs a:is(:hover,[aria-current]) { color: #f6f2fa; background: #e9d8ff1a; }
.account-profile-tabs a svg { flex: none; opacity: .8; }
.account-profile-tabs a:focus-visible { outline-offset: -3px; }
.account-profile-content { min-width: 0; padding: 18px; border-radius: 28px; background: #e9d8ff0d; }
.account-profile-content th { background: #27212d; }
.account-profile-content:has(.account-profile-empty, .account-profile-author-empty) { padding: 0; }
.account-profile-empty, .account-profile-author-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 295px; padding: 24px 12px; text-align: center; }
.account-profile-author-empty { min-height: 117px; gap: 8px; padding-block: 12px; }
.account-profile-empty-emblem { display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 16px; border-radius: 100%; color: #c2a8e0; background: radial-gradient(circle,#b887ff2c,transparent 69%); }
.account-profile-empty-emblem svg { width: 70px; height: 70px; filter: drop-shadow(0 8px 14px #07050c9c); }
.account-profile-empty h2, .account-profile-author-empty h2 { margin: 0; color: #f6f2fa; font: 600 20px/24px var(--font-interface); letter-spacing: normal; }
.account-profile-author-empty h2 { font-size: 18px; }
.account-profile-empty p { margin: 0; color: #c8bdce; font: 500 16px/20px var(--font-interface); }
.account-profile-empty .account-profile-cta { min-height: 52px; margin-top: 8px; padding-inline: 32px; border-radius: 20px; color: #f9f2ff; text-transform: uppercase; }
.account-profile-author-cases { --case-columns: 4; --case-art-height: 220px; --store-text: #f6f2fa; display: grid; grid-template-columns: minmax(0,1fr); justify-items: start; gap: 16px; }
.account-profile-author-cases .player-case-grid { width: 100%; justify-content: flex-start; margin: 0; }

.public-profile .account-profile-id {
  --profile-glass-top:#938b91;
  --profile-glass-mid:#4e4653;
  --profile-glass-bottom:#2b242c;
  inset:50% auto auto 32px;
  translate:0 -50%;
  border-color:#e8e3ff8f;
  background:radial-gradient(ellipse at 17% 15%,#f5f9ff3d,transparent 59%),
    linear-gradient(180deg,var(--profile-glass-top),var(--profile-glass-mid) 35%,var(--profile-glass-bottom) 82%,var(--profile-glass-mid));
  box-shadow:inset 0 0 18px #f0eaff69,inset 0 -1px 1px #f6e8ff99,0 4px 20px #08060f63;
}
.public-profile .account-profile-id[data-rank="1"] { --profile-glass-top:#a6acb8; --profile-glass-mid:#586279; --profile-glass-bottom:#343948; }
.public-profile .account-profile-id[data-rank="2"] { --profile-glass-top:#b7a078; --profile-glass-mid:#716146; --profile-glass-bottom:#3d2a29; }
.public-profile .account-profile-id[data-rank="3"] { --profile-glass-top:#a09bbe; --profile-glass-mid:#67537f; --profile-glass-bottom:#382948; }
.public-profile .account-profile-id[data-rank="4"] { --profile-glass-top:#b3b8e0; --profile-glass-mid:#675ca7; --profile-glass-bottom:#2f2256; }
.public-profile .account-profile-identity { min-height:122px; }
.public-profile .account-profile-counts > div { padding-inline:12px; text-align:start; }
.public-profile .account-profile-counts dt { color:#f6f2fab3; }
.public-profile .account-profile-counts dd { overflow:hidden; text-overflow:ellipsis; }
.public-profile .account-player-id { color:#f6f2fac4; }
.public-profile-hidden-label { display:flex; align-items:center; justify-content:center; gap:4px; min-height:56px; border-radius:14px; color:#f6f2fab3; background:#17101718; font:600 14px/18px var(--font-interface); text-align:center; }
.public-profile-hidden-label svg { flex:none; width:16px; height:16px; }
.public-profile-hidden { display:grid; place-content:center; justify-items:center; gap:4px; min-height:202px; margin-top:88px; padding:18px 12px; border-radius:28px; background:#e9d8ff0d; text-align:center; }
.public-profile-hidden > svg { width:44px; height:44px; margin-bottom:8px; color:#8e8794; }
.public-profile-hidden h2 { margin:0; color:#f6f2fa; font:650 20px/24px var(--font-interface); letter-spacing:normal; }
.public-profile-hidden p { margin:0; color:#aca3b2; font:500 16px/20px var(--font-interface); }
.public-profile-portrait { position: relative; flex: none; }
.public-profile-rank {
  position: absolute; inset: auto -4px -4px auto; display: grid; place-items: center;
  width: 32px; aspect-ratio: 1; filter:drop-shadow(0 2px 4px #100a23);
}
.public-profile-rank .rank-emblem { width: 32px; height: 32px; }
.public-profile-rank[data-rank="0"] .rank-emblem { filter: sepia(.8) hue-rotate(336deg) saturate(1.3); }
.public-profile-rank[data-rank="1"] .rank-emblem { filter: saturate(.1) brightness(1.24); }
.public-profile-rank[data-rank="2"] .rank-emblem { filter: sepia(1) saturate(1.9); }
.public-profile-rank[data-rank="3"] .rank-emblem { filter: hue-rotate(328deg); }
.public-profile .account-profile-tab-list { padding-inline:1px; box-shadow:inset 0 0 0 1px #f6f2fa14; }
.public-profile .account-profile-tabs a { gap:4px; border:1px solid transparent; color:#a097a7; }
.public-profile .account-profile-tabs a > svg { width:24px; height:24px; }
.public-profile .account-profile-tabs a:is(:hover,[aria-current]) {
  color:#f6f2fa;
  border-color:#f6f2fa0d;
  background:radial-gradient(ellipse at 50% 100%,#a466ff33,transparent 72%), #e9d8ff12;
}
.public-profile-best { display:grid; gap:16px; margin-top:32px; }
.public-profile-best h2 { margin:0; font:700 16px/19px var(--font-interface); color:#f6f2fa77; letter-spacing:normal; text-transform:uppercase; }
.public-profile-drop-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; list-style:none; margin:0; padding:0; }
.public-profile-drop-grid li { min-width:0; }
.public-profile-drop {
  position:relative; isolation:isolate; display:block; width:100%; height:230px; padding:0;
  border:0; border-radius:32px; color:#f6f2fa; background:transparent;
}
.public-profile-drop-scene {
  display:grid; align-content:end; width:100%; height:100%; padding:0 12px 25px; position:relative; isolation:isolate;
  overflow:hidden; border-radius:inherit; text-align:center;
  background:radial-gradient(ellipse 31% 78% at 49% 14%,color-mix(in srgb,var(--inventory-skin-tone) 61%,#100910),transparent 85%),
    radial-gradient(ellipse 70% 51% at 43% 69%,#3a2b3855,transparent 100%),#1c191f;
}
.public-profile-drop-scene::before {
  content:""; position:absolute; inset:auto 0 0; height:51%; z-index:-2;
  background:linear-gradient(180deg,#241d2600 8%,#251b2f32 65%,#0f0d1573),url('/ludik-profile-warehouse.jpg') center bottom / 305% auto;
  mask-image:linear-gradient(transparent,#000 73%);
}
.public-profile-drop:is(:hover,:focus-visible) .public-profile-drop-scene { box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--inventory-skin-tone) 78%,transparent); }
.skin-preview.public-profile-drop-art { position:absolute; z-index:-1; inset:0 auto auto 50%; translate:-50% 0; width:min(100%,238px); height:180px; }
.public-profile-drop-art img { padding:0; filter:drop-shadow(0 10px 12px #08060bcc); }
.public-profile-drop-copy { display:grid; min-width:0; color:#f6f2fa; text-shadow:0 2px 5px #120d19; }
.public-profile-drop-copy small { color:#f6f2fab3; font:400 13px/16px var(--font-interface); }
.public-profile-drop-copy strong { font:650 16px/19px var(--font-interface); }
.public-profile-drop-copy strong,.public-profile-drop-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.public-profile-drop-price {
  position:absolute; inset:auto auto -17px 50%; translate:-50% 0; display:flex; align-items:center; gap:5px;
  height:34px; padding:0 7px; border:1px solid #dbb8ff1c; border-radius:12px;
  background:radial-gradient(ellipse at 50% 100%,#a466ff65,transparent 78%),#1a171e;
  font:650 20px/24px var(--font-interface); white-space:nowrap; font-variant-numeric:tabular-nums;
}
.public-profile-drop-price .credit-glyph { width:17px; height:22px; }
.public-profile-cases { --case-columns:5; --case-art-height:220px; gap:24px; }
.public-profile-cases .store-case { min-height:385px; }
.public-profile-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:min(100%,640px); margin:0; }
.public-profile-stats > div { display:grid; gap:4px; min-width:0; min-height:74px; padding:13px 16px; border-radius:20px; background:#e9d8ff0d; }
.public-profile-stats dt { color:#c8bdce; font-size:13px; }
.public-profile-stats dd { margin:0; font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.public-profile .account-profile-content:has(.public-profile-cases,.public-profile-cases-empty) { padding:0; background:transparent; }
.public-profile .account-profile-content:has(.profile-activity) { padding:0; background:transparent; }
.profile-activity-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; margin:0; list-style:none; }
.profile-activity-record { position:relative; min-width:0; border-radius:16px; background:linear-gradient(#1b191e,#141317); }
.profile-activity-record > header { display:flex; align-items:center; min-height:31px; padding:7px 12px 6px; color:#ada5b0; font:500 14px/16px var(--font-interface); }
.profile-activity-upgrade, .profile-activity-contract { display:grid; position:relative; min-width:0; height:125px; gap:4px; }
.profile-activity-upgrade { grid-template-columns:repeat(2,minmax(0,1fr)); }
.profile-activity-contract { grid-template-columns:minmax(0,41fr) minmax(0,59fr); height:128px; }
.profile-activity-item, .profile-activity-credit { position:relative; display:grid; isolation:isolate; width:100%; height:100%; min-width:0; min-height:0;
  align-content:end; justify-items:center; color:#f6f2fa; border:1px solid #e9d8ff19; border-radius:16px;
  --history-tier:var(--inventory-skin-tone,var(--tier-color,#9986b8));
  background:radial-gradient(ellipse 40% 105% at 50% 27%,color-mix(in srgb,var(--history-tier) 58%,white),var(--history-tier) 24%,color-mix(in srgb,var(--history-tier) 48%,transparent) 56%,transparent 100%),#1b1820;
}
.profile-activity-item { cursor:pointer; padding:0 6px; text-align:center; }
.profile-activity-item:hover { border-color:var(--history-tier); }
.profile-activity-item:focus-visible, .profile-battle-replay:focus-visible { outline-offset:-3px; }
.skin-preview.profile-activity-picture { position:absolute; z-index:-1; inset:0 9px 42px; }
.profile-activity-picture img { padding:0; filter:drop-shadow(0 3px 4px #0a080db8); }
.profile-activity-item-label { display:grid; width:100%; min-width:0; text-align:center; translate:0 4px; font:500 14px/16px var(--font-interface); }
.profile-activity-item-label :is(strong,small) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-activity-item-label small { color:#d2c8da; font-size:12px; line-height:14px; }
.profile-activity-item-label strong { font-weight:600; }
.profile-history-amount { display:inline-flex; align-items:center; justify-content:center; gap:4px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.profile-history-amount .credit-glyph { flex:none; width:11px; height:15px; font-size:8px; border-radius:4px; }
.profile-activity-item-label > .profile-history-amount { justify-self:center; min-height:24px; margin-top:3px; padding:3px 7px; border:1px solid #edddff1f; border-radius:8px; background:#e9d8ff15; font-size:14px; }
.profile-activity-item-label > .profile-history-amount .credit-glyph { filter:grayscale(1); }
.profile-activity-credit { background:radial-gradient(ellipse 54% 95% at 50% 25%,#58378575,transparent 70%),#201d25; }
.profile-activity-credit-logo.credit-glyph { position:absolute; top:13px; left:50%; translate:-50% 0; width:28px; height:36px; border-radius:8px; font-size:20px; color:#c78bff; box-shadow:0 0 20px #a06df88a,inset 0 0 6px #9f63df63; }
.profile-activity-source { position:relative; min-width:0; }
.profile-activity-source [data-profile-slide] { height:100%; }
.profile-activity-carousel { position:absolute; inset:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:2px 3px 0 5px; pointer-events:none; }
.profile-activity-carousel output { font-size:11px; padding:2px 4px; border-radius:5px; background:#1b1624d9; }
.profile-activity-carousel > div { display:flex; pointer-events:auto; }
.profile-activity-carousel button { display:grid; place-items:center; width:26px; height:26px; padding:0; border:1px solid transparent;
  color:#f6f2fa; border-radius:8px; font-size:18px; background:#1b1624d9; cursor:pointer; }
.profile-activity-carousel button:disabled { opacity:.45; cursor:default; }
.profile-activity-carousel button:focus-visible { outline-offset:-2px; }
.profile-activity-outcome { display:inline-flex; justify-content:center; align-items:center; border:1px solid #e9d8ff32;
  border-radius:8px; min-height:24px; padding:2px 6px; background:#282331; color:#e8d5f4; white-space:nowrap; font-size:12px; font-variant-numeric:tabular-nums; }
.profile-upgrade-result[data-outcome="win"], .profile-activity-outcome[data-outcome="win"] { --history-outcome:#bcf66a; --history-outcome-back:#35421e; }
.profile-upgrade-result[data-outcome="loss"], .profile-activity-outcome[data-outcome="loss"] { --history-outcome:#ff527f; --history-outcome-back:#4b1d2c; }
.profile-activity-outcome:is([data-outcome="win"],[data-outcome="loss"]) { border-color:color-mix(in srgb,var(--history-outcome) 75%,transparent); color:var(--history-outcome); background:var(--history-outcome-back); }
.profile-upgrade-result { position:absolute; top:33px; left:50%; translate:-50% 0; display:grid; justify-items:center; gap:3px; pointer-events:none; }
.profile-upgrade-result > b { display:grid; place-items:center; width:22px; height:22px; border:3px solid #4b4851; border-radius:50%; background:#19171c; color:var(--history-outcome); font:800 11px/1 var(--font-interface); }
.profile-contract-side { position:relative; min-width:0; }
.profile-contract-inputs { display:grid; grid-template:repeat(2,minmax(0,1fr))/repeat(5,minmax(0,1fr)); gap:4px; min-width:0; height:100%; }
.profile-activity-item-mini { border-radius:12px; }
.profile-activity-item-mini .profile-activity-picture { inset:2px; }
.profile-contract-empty { display:grid; place-items:center; border:1px solid #e9d8ff10; border-radius:12px; color:#c7b0dd28; background:#e9d8ff09; }
.profile-contract-empty svg { height:30px; fill:currentColor; }
.profile-contract-facts { position:absolute; inset:auto 0 0; display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:4px 8px; margin:0; padding:12px 6px 7px; opacity:0; background:#141216eb; border-radius:11px; pointer-events:none; }
.profile-contract-side:is(:hover,:focus-within) .profile-contract-facts { opacity:1; }
.profile-contract-facts dt { color:#c2b7c8; font-size:11px; }
.profile-contract-facts dd { margin:2px 0 0; font-size:13px; }
.profile-contract-facts .credit-glyph { width:9px; height:12px; font-size:6px; }
.profile-activity-battle { min-height:208px; }
.profile-activity-battle header > .profile-activity-outcome { position:absolute; top:-4px; left:50%; translate:-50% 0; text-transform:uppercase; }
.profile-battle-replay { display:flex; align-items:center; gap:4px; height:112px; padding:3px 5px; border-radius:12px; }
.profile-battle-replay:hover { background:#e9d8ff0a; }
.profile-battle-case { width:calc(25% - 3px); height:104px; object-fit:contain; }
.profile-battle-footer { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; margin:5px 8px 6px; padding:4px 4px 4px 12px; border-radius:18px; background:#1d1a22; }
.profile-battle-players { display:flex; align-items:center; }
.profile-battle-avatar { display:grid; place-items:center; position:relative; width:27px; height:27px; border:2px solid #5b5163; border-radius:50%;
  background:#302341; color:#f3e9fd; font-size:11px; font-weight:700; text-decoration:none; }
.profile-battle-avatar[aria-current="true"] { border-color:#bcf66a; z-index:1; }
.profile-battle-avatar + .profile-battle-avatar { margin-left:-3px; }
.profile-battle-avatar:is(:hover,:focus-visible) { z-index:1; }
.profile-battle-footer dl { display:flex; flex:none; gap:4px; margin:0; text-align:center; font-size:13px; }
.profile-battle-footer dl > div { padding:5px 12px; border-radius:14px; background:#e9d8ff0c; }
.profile-battle-footer dt { color:#c8bdce; }
.profile-battle-footer dd { margin:0; font-weight:700; }
.profile-activity-footer { text-align:center; margin-top:16px; }
.account-profile-empty.public-activity-empty { min-height:227px; border:1px solid #e9d8ff19; border-radius:28px; background:#1b191e; }
.profile-skin-grid { padding:0; margin:0; list-style:none; }
.profile-activity-skin.inventory-card {
  --skin-glow:var(--inventory-skin-tone,#b993e9);
  background:radial-gradient(ellipse 33% 96% at 50% 34%,color-mix(in srgb,var(--skin-glow),white 74%),
    color-mix(in srgb,var(--skin-glow),white 44%) 22%,var(--skin-glow) 36%,color-mix(in srgb,var(--skin-glow),#1c1921 42%) 57%,transparent 100%),
    radial-gradient(ellipse 70% 81% at 48% 84%,color-mix(in srgb,var(--skin-glow),transparent 62%),transparent 82%),#1c1921;
}
.profile-activity-skin.inventory-card::before { background:linear-gradient(0deg,#100e1259,transparent 48%); }
.profile-activity-skin .profile-skin-art { position:absolute; z-index:-1; top:15px; left:50%; width:83px; height:62px; translate:-50% 0; }
.profile-skin-art img { padding:0; filter:drop-shadow(0 4px 3px #0b080e92); }
.profile-skin-price { position:absolute; inset:11px 11px auto 39px; display:flex; justify-content:flex-end; align-items:center; gap:4px; color:#f6f2fa;
  font:600 14px/16px var(--font-interface); white-space:nowrap; font-variant-numeric:tabular-nums; text-shadow:0 1px 4px #08070bd9; }
.profile-skin-price .credit-glyph { width:10px; height:13px; font-size:8px; border-radius:3px; line-height:1; filter:grayscale(1); opacity:.75; }
.profile-skin-name { position:absolute; inset:auto 43px 11px 15px; display:grid; color:#f6f2fa; text-shadow:0 1px 4px #08070bd9; }
.profile-skin-name :is(small,strong) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-skin-name small { color:#bdb5c3; font:400 12px/14px var(--font-interface); }
.profile-skin-name strong { font:600 14px/16px var(--font-interface); }
.profile-skin-name abbr { text-decoration:none; }
.profile-skin-status { display:grid; place-items:center; position:absolute; left:7px; top:7px; width:28px; height:28px; padding:0;
  border:1px solid #e9d8ff20; border-radius:8px; color:#f6f2fa; background:#e9d8ff0d; }
.profile-skin-status:hover { background:#4d4057; }
.profile-skin-status:focus-visible { outline-offset:-2px; }
.profile-activity-footer .button { min-width:130px; min-height:40px; padding:8px 16px;
  border-radius:12px; color:#f6f2fa; font:600 14px/20px var(--font-interface); }

@media (max-width:1000px) {
  .profile-activity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .profile-activity-grid { grid-template-columns:minmax(0,1fr); }
  .profile-skin-price { right:8px; }
  .profile-skin-name { right:35px; left:8px; }
}

#dialog:has(.account-settings-body) {
  width: min(430px,calc(100% - 24px)); max-width: calc(100% - 24px); padding: 16px 24px 24px; border: 0;
  border-radius: 32px; background: #1d1b21;
}
#dialog:has(.account-settings-body) .dialog-head {
  display: grid; grid-template-columns: 28px minmax(0,1fr) 28px;
  gap: 8px; margin-bottom: 24px;
}
#dialog:has(.account-settings-body) .dialog-head h2 {
  grid-column: 2; margin: 0; text-align: center; font: 600 20px/24px var(--font-interface);
}
#dialog:has(.account-settings-body) .dialog-head button, .account-settings-audio {
  display: grid; place-items: center; width: 28px; height: 28px; min-height: 0;
  padding: 0; border: 0; border-radius: 50%; background: #e9d8ff0d;
}
#dialog:has(.account-settings-body) .dialog-head button[data-action="close"] { font-size: 22px; line-height: 1; }
#dialog:has(.account-settings-body) #dialog-content { position: relative; }
.account-settings-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; min-width: 0; }
.account-settings-audio { position: absolute; inset: 0 auto auto 0; color: #c4b9ce; }
.account-settings-audio[aria-pressed="false"] { color: #8d8394; }
.account-settings-audio svg { width: 16px; height: 16px; }
.account-settings-group { display: grid; gap: 4px; min-width: 0; }
.account-settings-account { gap: 0; border-radius: 20px; border: 1px solid #e9d8ff0e; }
.account-settings-player { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 65px; padding: 8px; }
.account-settings-avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 21px; }
.account-settings-player strong {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 650 16px/20px var(--font-interface);
}
.account-settings-option {
  display: grid; grid-template-columns: 24px minmax(0,1fr) 44px; align-items: center; gap: 8px;
  min-height: 66px; padding: 7px 12px; border: 1px solid #e9d8ff10; border-radius: 16px; background: #e9d8ff0b;
}
.account-settings-account .account-settings-option { margin: 0 -1px -1px; }
.account-settings-option-icon { display: grid; place-items: center; color: #a99dae; }
.account-settings-option-icon svg { width: 24px; height: 24px; }
.account-settings-option strong, .account-settings-option small {
  display: block; color: #f6f2fa; font: 600 16px/20px var(--font-interface);
  overflow-wrap: anywhere;
}
.account-settings-option small { color: #a69cae; font: 500 14px/18px var(--font-interface); }
.account-settings-link {
  display: grid; grid-template-columns: 24px minmax(0,1fr) 22px; align-items: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 7px 12px; border: 1px solid #e9d8ff10; border-radius: 16px;
  background: #e9d8ff0b; color: #f6f2fa; text-align: start; font: 600 16px/20px var(--font-interface);
}
.account-settings-link > svg { justify-self: center; width: 17px; height: 17px; }
.account-settings-link:hover { background: #e9d8ff18; }
.account-settings-switch {
  --profile-switch-width: 40px;
  --profile-switch-height: 24px;
  --profile-switch-stroke: 2px;
  --profile-switch-gap: 2px;
  --profile-switch-thumb: calc(var(--profile-switch-height) - 2 * (var(--profile-switch-stroke) + var(--profile-switch-gap)));
  --profile-switch-offset: calc((var(--profile-switch-width) - var(--profile-switch-height)) / 2);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.account-settings-switch::before, .account-settings-switch::after {
  content: "";
  grid-area: 1 / 1;
  box-sizing: border-box;
  pointer-events: none;
}
.account-settings-switch::before {
  width: var(--profile-switch-width);
  height: var(--profile-switch-height);
  border: var(--profile-switch-stroke) solid #e9d8ff28;
  border-radius: 999px;
  background: #e9d8ff12;
}
.account-settings-switch::after {
  width: var(--profile-switch-thumb);
  height: var(--profile-switch-thumb);
  translate: calc(-1 * var(--profile-switch-offset)) 0;
  border-radius: 50%;
  background: #8a8092;
  transition: translate .16s ease, background-color .16s ease;
}
.account-settings-switch[aria-checked="true"]::before { background: #5b3c7e; }
.account-settings-switch[aria-checked="true"]::after { translate: var(--profile-switch-offset) 0; background: #efe2fc; }
.account-settings-body .account-settings-logout {
  min-height: 52px; gap: 8px; border: 1px solid #e9d8ff10; border-radius: 20px; background: #e9d8ff0b;
  color: #f6f2fa; text-transform: uppercase; font: 650 16px/20px var(--font-interface);
}
.account-settings-body .account-settings-logout:hover:not(:disabled) { background: #e9d8ff22; color: #f6f2fa; }
.account-settings-body .account-settings-logout svg { color: #b7aabb; }

.account-banner-options { display: grid; gap: 8px; }
.account-banner-option {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; width: 100%; min-height: 88px; padding: 10px 12px; overflow: hidden; border: 1px solid #e9d8ff20;
  border-radius: 16px; background: #151318; color: #f6f2fa; text-align: start; font: 650 16px/20px var(--font-interface);
}
.account-banner-option::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#0e0b15e0,transparent 72%); }
.account-banner-option img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-banner-option:is([aria-pressed="true"],:hover) { border-color: #bc94e9; }

.account-session-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.account-session-list li {
  display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 64px;
  padding: 8px 12px; border: 1px solid #e9d8ff10; border-radius: 16px; background: #e9d8ff0b;
}
.account-session-copy { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; font: 600 15px/20px var(--font-interface); }
.account-session-copy time, .account-session-message { color: #a69cae; font: 500 14px/18px var(--font-interface); }
.account-session-message { margin: 8px 0 16px; text-align: center; }
.account-session-current { padding: 5px 7px; border-radius: 8px; background: #79deb019; color: #a0e7c9; font: 600 12px/16px var(--font-interface); }
.account-session-revoke { padding: 7px 9px; border: 1px solid #e9d8ff12; border-radius: 10px; background: #e9d8ff0d; color: #f0e8f7; font: 600 13px/16px var(--font-interface); }
.account-session-revoke:hover { background: #e9d8ff22; }

.account-trade-form { display: grid; gap: 12px; }
.account-trade-form > label { color: #f6f2fa; font: 600 16px/20px var(--font-interface); }
.account-trade-form input {
  width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid #e9d8ff23;
  border-radius: 12px; background: #151218; color: #f6f2fa; font: 500 14px/18px var(--font-interface);
}
.account-trade-form input:focus { border-color: #bc94e9; }
.account-trade-form p { margin: 0; color: #b7acbd; font: 500 14px/20px var(--font-interface); }
.account-trade-help { display: inline-flex; justify-self: start; align-items: center; gap: 4px; color: #c9a8f7; font: 600 14px/18px var(--font-interface); }
.account-trade-help svg { width: 16px; height: 16px; }
.account-trade-help:hover { color: #f3e7ff; }
.account-trade-form .button { min-height: 46px; margin-top: 4px; border-radius: 14px; }

@media (max-width: 768px) {
  #content:is([data-route="account"],[data-route="profile"]) { padding: 16px; }
  .account-profile-cover { height: 201px; border-radius: 32px; }
  .account-profile-id { position: relative; inset: auto; width: 100%; margin-top: -64px; }
  .account-profile-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; margin: 8px 0 0; }
  .account-profile-controls button:first-child, .account-profile-controls button { padding-inline: 8px; min-width: 0; }
  .account-profile-sections { padding-top: 16px; }
  .account-profile-content { padding: 12px; }
  .account-profile-author-cases { --case-columns: 2; --case-art-height: 148px; }
  .public-profile .account-profile-cover { background-position:center, 57% 61%; }
  .public-profile .account-profile-id { position:absolute; inset:50% 12px auto; width:auto; max-width:393px; margin:0; }
  .public-profile .account-profile-counts > div { padding-inline:7px; }
  .public-profile-hidden { margin-top:36px; }
  .public-profile-best { margin-top:22px; }
  .public-profile-drop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:22px; }
  .public-profile-drop { height:154px; border-radius:20px; }
  .public-profile-drop-scene { padding-inline:6px; padding-bottom:19px; }
  .skin-preview.public-profile-drop-art { width:min(100%,150px); height:111px; }
  .public-profile-drop-copy small { font-size:11px; line-height:14px; }
  .public-profile-drop-copy strong { font-size:13px; line-height:16px; }
  .public-profile-drop-price { inset-block-end:-13px; height:26px; gap:4px; font-size:15px; }
  .public-profile-drop-price .credit-glyph { width:13px; height:16px; font-size:11px; }
  .public-profile-cases .store-case { min-height:262px; }
  .public-profile-stats > div { padding:9px; border-radius:13px; }
  .public-profile-stats dt { font-size:12px; }
  .public-profile-stats dd { font-size:18px; }
}
@media (max-width: 370px) {
  .account-profile-identity { padding-inline: 12px; }
  .account-profile-avatar { width: 64px; height: 78px; }
  .account-profile-counts > div { padding-inline: 2px; }
  .account-profile-tabs { padding-inline: 8px; }
  #dialog:has(.account-settings-body) { padding-inline: 16px; }
  #dialog:has(.account-settings-body) .dialog-head h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-settings-switch::after { transition: none; }
}

html:not([data-ludik-theme="stencil"]) #content[data-route="account"] > .account-profile {
  .account-profile-name h1 {
    color: var(--platform-paper);
    font: 900 clamp(1.25rem, 2.1vw, 1.6rem)/1.12 var(--platform-display);
  }

  :is(.account-profile-avatar, .account-player-id, .account-profile-counts > div, .account-profile-controls button) {
    border: 1px solid var(--line);
    border-radius: var(--platform-control-radius);
    color: var(--text);
    background-color: var(--well);
  }
  .account-profile-avatar {
    border-color: var(--bright-line);
    background-image: linear-gradient(145deg,#38281e85,#191210c9), url('/vault-hero.jpg');
  }
  :is(.account-profile-counts dt, .account-rank-meter small, .account-profile-controls svg) { color: var(--muted); }
  :is(.account-profile-counts dd, .account-rank-meter > span) { color: var(--text); }
  :is(.account-player-id, .account-profile-controls button):is(:hover,:focus-visible) {
    color: var(--lime);
    border-color: var(--bright-line);
  }
  .account-profile-controls button { min-height: 44px; background: var(--panel); }
  .account-profile-controls button:is(:hover,:focus-visible) svg { color: currentColor; }
  .account-profile-rank { border-color: var(--line); border-radius: 0 0 var(--platform-control-radius) var(--platform-control-radius); }
  :is(.account-profile-rank > span:last-child, .account-rank-meter .account-rank-award) { color: var(--platform-paper); }
  .account-rank-meter progress { background: var(--line); }
  .account-rank-meter progress::-webkit-progress-bar { background: var(--line); }

  .account-profile-sections { margin-top: clamp(16px, 2.5vw, 32px); padding-top: 0; }
  .account-profile-tabs {
    min-height: 0;
    padding: 6px;
    border: 1px solid var(--line);
  }
  .account-profile-tabs a {
    min-width: 0;
    height: clamp(44px, 4vw, 52px);
    padding-inline: clamp(10px, 1.35vw, 18px);
    border: 1px solid transparent;
    font-size: clamp(.875rem, 1.35vw, 1.05rem);
  }
  .account-profile-tabs a:is(:hover,[aria-current]) { border-color: var(--bright-line); }
  .account-profile-tabs a[aria-current] svg { opacity: 1; }

  .account-profile-content { border: 1px solid var(--line); }
  .account-profile-content:has(> :is(.inventory-empty,.inventory-stock)) { border-color: transparent; }
  :is(.account-profile-empty, .account-profile-author-empty, .inventory-empty) h2 {
    color: var(--platform-paper);
    font: 900 clamp(1.15rem, 2.2vw, 1.6rem)/1.2 var(--platform-display);
    text-transform: uppercase;
  }
  .account-profile-empty-emblem { color: var(--platform-paper); background: radial-gradient(circle,#f8e6c61a,transparent 69%); }
  .inventory-empty { border: 1px solid var(--line); }
  .inventory-stock-count strong { color: var(--platform-paper); background: var(--well); }
  .inventory-sort option { color: var(--text); background: var(--panel); }
  .inventory-card-pick[type="checkbox"] { accent-color: var(--lime); }
  .inventory-card:has(input:focus-visible) { outline-color: var(--lime); }

  @media (max-width: 768px) {
    .account-profile-sections { gap: 12px; }
    :is(.account-profile-empty, .inventory-empty) { min-height: 208px; padding-block: 16px; }
    .account-profile-empty-emblem { width: 72px; height: 72px; margin-bottom: 8px; }
    .account-profile-empty-emblem svg { width: 52px; height: 52px; }
  }
}

html:not([data-ludik-theme="stencil"]):has(#content[data-route="account"] > :is(.account-profile,.page-head)) #dialog.dialog-wallet:has(.wallet-form) {
  --account-panel: var(--ld-dark-panel,#241b19);
  --account-well: #191210;
  --account-line: #554039;
  --account-line-hover: #85675d;
  --account-text: #fff1df;
  --account-muted: var(--ld-muted,#c6ada1);
  --account-paper: var(--ld-paper,#f8e6c6);
  --account-yellow: var(--ld-yellow,#ffdc29);
  --account-ink: var(--ld-ink,#15100e);
  --lime: var(--account-yellow);
  border: 1px solid var(--account-line-hover);
  border-radius: 6px;
  color: var(--account-text);
  background: var(--ld-shell,#15110f);

  width: min(430px, calc(100% - 24px));
  height: fit-content;
  max-height: calc(100dvh - 24px);
  #dialog-content { min-height: 0; }
  .dialog-head h2 {
    color: var(--account-paper);
    font: 900 clamp(1.15rem, 2vw, 1.5rem)/1.15 var(--ld-display,var(--font-display));
    text-transform: uppercase;
  }
  .dialog-head .icon-button {
    border: 1px solid var(--account-line);
    border-radius: 4px;
    color: var(--account-paper);
    background: var(--account-well);
  }
  .dialog-head .icon-button:is(:hover,:focus-visible) {
    color: var(--account-yellow);
    border-color: var(--account-line-hover);
  }
  .wallet-balance {
    border-color: var(--account-line);
    border-radius: 6px;
    color: var(--account-text);
    background: var(--account-panel);
  }
  .wallet-entry label { color: var(--account-text); }
  :is(.wallet-balance > span, .wallet-confirm p, .wallet-input span, .form label) { color: var(--account-muted); }
  .wallet-input input {
    border-color: var(--account-line);
    border-radius: 4px;
    color: var(--account-text);
    background: var(--account-well);
  }
  .wallet-input input:focus {
    border-color: var(--account-yellow);
  }
  .wallet-input input::placeholder { color: var(--account-muted); }
  .wallet-balance strong span { color: inherit; font-size: inherit; }
  .wallet-balance button { color: var(--account-yellow); }
  .wallet-balance button:hover { color: var(--account-paper); }

  .button.secondary { border-color: var(--account-line-hover); border-radius: 4px; color: var(--account-text); background: var(--account-panel); }
  .button[type="submit"] {
    border: 1px solid var(--account-yellow);
    border-radius: 4px;
    color: var(--account-ink);
    background: var(--account-yellow);
    box-shadow: none;
  }
  .button[type="submit"]:is(:hover,:focus-visible):not(:disabled) {
    border-color: var(--account-paper);
    color: var(--account-ink);
    background: var(--account-paper);
  }
}

/* Comic presentation of the public profile and its item dialogs. */
html:not([data-ludik-theme="stencil"]) #content[data-route="profile"] {
  .account-profile-top {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: 241px;
    padding: 24px clamp(12px, 3vw, 32px);
  }

  .public-profile .account-profile-cover {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: 100%;
  }

  .public-profile .account-profile-id {
    position: relative;
    inset: auto;
    translate: none;
    width: min(100%, 480px);
    max-width: none;
    margin: 0;
    border-color: var(--bright-line);
    box-shadow: 4px 4px 0 var(--inverse);
  }

  .account-profile-identity { gap: 12px; }
  .account-profile-name { flex-wrap: wrap; justify-content: start; gap: 6px 12px; }
  .account-profile-name h1 {
    flex: 0 1 auto;
    max-width: 100%;
    overflow: visible;
    color: var(--platform-paper);
    font: 900 clamp(1.5rem, 2.4vw, 2.15rem)/1.05 var(--platform-display);
    overflow-wrap: anywhere;
    text-wrap: balance;
    white-space: normal;
  }

  .account-profile-avatar {
    border-color: var(--bright-line);
    border-radius: var(--platform-card-radius);
    color: var(--platform-paper);
    background: linear-gradient(145deg, #33231a82, #191210c9), url("/vault-hero.jpg") 65% 58% / 170px auto;
    font-family: var(--platform-display);
  }

  :is(.account-player-id, .profile-skin-status, [data-action="profile-skin-inspect"], .profile-activity-carousel button) {
    border: 1px solid var(--line);
    border-radius: var(--platform-control-radius);
    color: var(--platform-paper);
    background: var(--well);
  }

  .account-player-id { min-height: 30px; }
  :is(.account-player-id, .profile-skin-status, [data-action="profile-skin-inspect"], .profile-activity-carousel button):hover:not(:disabled) {
    border-color: var(--bright-line);
    color: var(--lime);
    background: var(--panel);
  }

  .public-profile .account-profile-counts > div {
    padding: 6px 4px;
    border-radius: var(--platform-control-radius);
    text-align: center;
  }
  .account-profile-counts dt { overflow-wrap: anywhere; white-space: normal; }

  :is(.account-profile-counts > div, .public-profile-hidden-label, .profile-battle-footer,
      .profile-battle-footer dl > div, .profile-contract-facts, .profile-activity-carousel output) {
    color: var(--text);
    background: var(--well);
  }

  :is(.account-profile-counts dt, .public-profile-stats dt, .profile-activity-record > header, .profile-contract-facts dt,
      .profile-battle-footer dt, .public-profile-hidden p, .profile-activity-item-label small, .profile-skin-name small,
      .public-profile-drop-copy small, .public-profile-cases :is(.store-case-category, .player-case-openings)) {
    color: var(--muted);
  }

  :is(.account-profile-sections, .public-profile-hidden) { margin-block-start: clamp(20px, 3vw, 36px); }
  .account-profile-sections { padding-block-start: 0; gap: 12px; }

  .public-profile .account-profile-tabs {
    min-height: 0;
    padding: 5px;
    border: 1px solid var(--line);
  }
  .public-profile .account-profile-tab-list {
    width: 100%;
    padding: 0;
    gap: 4px;
    flex-wrap: wrap;
    overflow: visible;
    box-shadow: none;
  }
  .public-profile .account-profile-tabs a {
    height: auto;
    min-width: 0;
    min-height: 44px;
    padding: 5px 12px;
    font: 750 .95rem/1.15 var(--font-interface);
  }
  .public-profile .account-profile-tabs a > svg { width: 17px; height: 17px; }
  .public-profile .account-profile-tabs a:hover:not([aria-current]) { border-color: var(--line); }
  .public-profile .account-profile-tabs a[aria-current="page"] {
    border-color: var(--lime);
    color: var(--inverse);
    background: var(--lime);
  }
  .public-profile .account-profile-tabs a:focus-visible { outline: 2px solid var(--platform-paper); outline-offset: -3px; }
  .public-profile .account-profile-tabs a[aria-current="page"]:focus-visible { outline-color: var(--inverse); }

  .public-profile .account-profile-content:has(> :is(.profile-activity, .public-profile-cases, .public-profile-cases-empty)) {
    background: transparent;
  }
  :is(.public-profile-hidden, .public-activity-empty, .public-profile-cases-empty, .public-profile-stats > div,
      .profile-activity-record, .public-profile-cases .store-case) {
    border: 1px solid var(--line);
    border-radius: var(--platform-card-radius);
    background: var(--panel);
  }
  :is(.public-profile-best, .public-profile-hidden, .public-activity-empty, .public-profile-cases-empty) h2 {
    color: var(--platform-paper);
    font: 900 clamp(1.15rem, 2vw, 1.55rem)/1.12 var(--platform-display);
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  :is(.public-profile-hidden > svg, .account-profile-empty-emblem) { color: var(--lime); }
  .account-profile-empty-emblem {
    width: 66px;
    height: 66px;
    margin-block-end: 8px;
    border: 1px solid var(--line);
    border-radius: var(--platform-card-radius);
    background: var(--well);
  }
  .account-profile-empty-emblem svg { width: 34px; height: 34px; filter: none; }
  .public-profile-hidden-label { border-radius: var(--platform-control-radius); }
  .public-profile-hidden-label svg { color: var(--lime); }

  :is(.public-profile-drop, .profile-activity-item, .profile-activity-credit, .profile-battle-replay,
      .profile-battle-footer, .profile-battle-footer dl > div, .profile-contract-empty, .profile-contract-facts) {
    border-radius: var(--platform-card-radius);
  }
  .public-profile-drop-scene {
    padding-block-end: 43px;
    border: 1px solid var(--line);
    background: radial-gradient(ellipse at 50% 22%, color-mix(in srgb, var(--inventory-skin-tone) 56%, var(--panel)), transparent 66%), var(--panel);
  }
  .public-profile-drop-scene::before {
    background: linear-gradient(180deg, transparent, #15110f99), url("/ludik-profile-warehouse.jpg") center bottom / 305% auto;
  }
  .public-profile-drop-copy { color: var(--text); text-shadow: 0 2px 5px var(--inverse); }
  .public-profile-drop-price {
    inset-block-end: 7px;
    height: 29px;
    border-color: var(--bright-line);
    border-radius: var(--platform-control-radius);
    color: var(--platform-paper);
    background: var(--well);
  }

  .profile-skin-grid { gap: 8px; }
  .profile-activity-skin.inventory-card {
    background: radial-gradient(ellipse at 50% 24%, color-mix(in srgb, var(--skin-glow) 58%, var(--panel)), transparent 70%), var(--panel);
  }
  .profile-activity-item {
    border-color: var(--line);
    background: radial-gradient(ellipse at 50% 16%, color-mix(in srgb, var(--history-tier) 52%, var(--panel)), transparent 75%), var(--well);
  }
  .profile-activity-item:hover { border-color: var(--history-tier); }
  :is(.profile-activity-credit, .profile-contract-empty, .profile-battle-avatar) {
    border-color: var(--line);
    color: var(--muted);
    background: var(--well);
  }
  .public-profile .credit-glyph {
    border-color: color-mix(in srgb, var(--lime) 52%, var(--well));
    color: var(--lime);
    background: color-mix(in srgb, var(--lime) 13%, var(--well));
    box-shadow: none;
  }
  .profile-activity-credit-logo.credit-glyph { border-radius: var(--platform-control-radius); }
  .profile-activity-item-label { padding-block-end: 5px; translate: none; }
  :is(.profile-activity-item-label > .profile-history-amount, .profile-activity-outcome, .profile-activity-carousel output) {
    border-radius: var(--platform-control-radius);
  }
  .profile-activity-item-label > .profile-history-amount {
    border-color: var(--line);
    color: var(--platform-paper);
    background: var(--well);
  }
  :is(.profile-skin-price, .profile-activity-item-label) .credit-glyph { filter: none; opacity: 1; }
  .profile-activity-outcome:not([data-outcome="win"], [data-outcome="loss"]) {
    border-color: var(--line);
    color: var(--platform-paper);
    background: var(--well);
  }
  .profile-activity-battle header { justify-content: space-between; flex-wrap: wrap; gap: 4px; }
  .profile-activity-battle header > .profile-activity-outcome { position: static; translate: none; }
  .profile-battle-replay:hover { background: var(--well); }
  .profile-battle-avatar[aria-current="true"] { border-color: var(--lime); color: var(--lime); }
  .profile-battle-avatar:is(a:hover, a:focus-visible) { border-color: var(--bright-line); color: var(--platform-paper); }
  .profile-activity-footer .button { min-height: 44px; }

  .public-profile-cases { gap: 12px; }
  .public-profile-cases .player-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(145px, 21vw, 250px)), 1fr));
    gap: 8px;
  }
  .public-profile-cases .store-case { min-height: 0; padding: 12px 6px 8px; color: var(--text); }
  .public-profile-cases .store-case:is(:hover, :focus-visible) { border-color: var(--lime); }
  .public-profile-cases .store-credit {
    border-color: var(--bright-line);
    border-radius: var(--platform-control-radius);
    color: var(--platform-paper);
    background: var(--well);
  }
  .public-profile-cases .store-credit svg { color: var(--lime); filter: none; }
  .public-profile-cases .store-case:is(:hover, :focus-visible) .store-credit {
    border-color: var(--lime);
    color: var(--inverse);
    background: var(--lime);
    box-shadow: none;
  }
  .public-profile-cases .store-case:is(:hover, :focus-visible) .store-credit svg { color: inherit; }

  @media (max-width: 768px) {
    .account-profile-top { min-height: 201px; padding-block: 12px; }
    .public-profile .account-profile-cover { background-position: center, 57% 61%; }
    .account-profile-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 10px; }
    .account-profile-copy { display: contents; }
    .account-profile-name { flex-direction: column; align-items: flex-start; min-width: 0; gap: 4px; }
    .account-profile-avatar { width: 62px; height: 62px; font-size: 27px; }
    .public-profile-rank, .public-profile-rank .rank-emblem { width: 26px; height: 26px; }
    :is(.account-profile-counts, .public-profile-hidden-label) { grid-column: 1 / -1; }
    .public-profile-hidden-label { min-height: 34px; }
    .public-profile .account-profile-tabs a { flex: 1 0 auto; padding-inline: 6px; font-size: .82rem; }
    .public-profile-drop-grid { row-gap: 8px; }
    .public-profile-drop { height: 168px; }
    .public-profile-drop-price { height: 25px; }
    .public-profile-drop-scene { padding-block-end: 36px; }
    .skin-preview.public-profile-drop-art { height: 101px; }
  }
}

html:not([data-ludik-theme="stencil"]) body:has(#content[data-route="profile"]) #dialog:has(
  .stack > .skin-preview, .inventory-inspect-scene, .form > textarea[readonly]
) {
  .dialog-head h2 {
    color: var(--ld-paper, #f8e6c6);
    font: 900 clamp(1.25rem, 3vw, 2rem)/1.12 var(--ld-display, var(--font-display));
    overflow-wrap: anywhere;
  }
  :is(.dialog-head button, textarea[readonly]) {
    border-radius: 4px;
    border-color: var(--bright-line, #85675d);
    color: var(--ld-paper, #f8e6c6);
    background: var(--well, #191210);
  }
  .dialog-head button:is(:hover, :focus-visible) { color: var(--ld-yellow, #ffdc29); }
  &:not(:has(.inventory-inspect-scene)) {
    border-color: var(--bright-line, #85675d);
    border-radius: 6px;
    background: var(--ld-dark-panel, #241b19);
  }
  .inventory-inspect-wear { color: var(--ld-muted, #c6ada1); }
}
