/* DUSTDROP v39 — Player Identity + Mobile Action Sheets
   Presentation & secondary interactions only. Roulette / audio / economy unchanged. */
:root{--v39-ice:#83d9f5;--v39-line:#31536b;--v39-ink:#eaf7ff}
#profile{color:var(--v39-ink)}
#profile .v39-profile-hero{position:relative;overflow:hidden;isolation:isolate;border:1px solid #3f718b;border-radius:23px;background:radial-gradient(circle at 80% 8%,#2776a34a,transparent 50%),linear-gradient(130deg,#11293e 0%,#0b192a 68%,#081522);box-shadow:0 22px 45px #0005,inset 0 1px #ffffff21;margin:4px 0 14px;min-height:300px}
#profile .v39-profile-hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.2;background:linear-gradient(125deg,transparent 30%,#98d7f21c 31%,transparent 32%,transparent 67%,#98d7f21c 68%,transparent 69%);background-size:130px 130px}
#profile .v39-hero-portrait{position:absolute;inset:0 0 0 auto;width:53%;z-index:-1;overflow:hidden;opacity:.75;mask-image:linear-gradient(90deg,transparent 0%,black 42%),linear-gradient(to top,transparent 1%,black 40%);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent 0%,black 42%);pointer-events:none}
#profile .v39-hero-portrait img{position:absolute;width:100%;height:100%;object-fit:contain;object-position:bottom right;filter:drop-shadow(0 10px 18px #000a) saturate(.8) contrast(1.05)}
#profile .v39-hero-content{padding:22px 24px 21px;position:relative;z-index:1;width:100%;min-height:300px;display:flex;flex-direction:column;align-items:stretch}
#profile .v39-idline{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.7px;color:#a7cce1;font-weight:900;padding-bottom:20px;max-width:100%}
#profile .v39-emblem{font-size:18px;line-height:1;color:#83defa}
#profile .v39-id-demo{margin-left:auto;flex-shrink:0;padding:5px 10px;background:#15374f9e;color:#a2d5e9;letter-spacing:1px;border:1px solid #487c94;border-radius:999px;font-size:9px}
#profile .v39-profile-top{padding:0;margin:0;align-items:center;gap:13px;max-width:72%;background:none;border:0;box-shadow:none}
#profile .v39-profile-top .v34-profile-avatar{flex:0 0 65px;width:65px;height:65px;border-radius:17px;background:linear-gradient(155deg,#2f6382,#132e48);border:1px solid #8fd9ed;box-shadow:inset 0 1px #ffffff3b,0 9px 17px #0007;display:grid;place-items:center;font-size:22px;color:#effbff;text-shadow:0 1px 8px #0008;margin:0}
#profile .v39-profile-top .v34-profile-identity{min-width:0}
#profile .v39-profile-top .v34-profile-identity h2{font-size:clamp(22px,3vw,34px);margin:3px 0 4px;line-height:1.1;overflow-wrap:anywhere;color:#f4fbff}
#profile .v39-profile-top .v34-profile-identity p{color:#a6c4d6;line-height:1.4;font-size:11px;margin:3px 0 0;max-width:260px}
#profile .v39-profile-top .v34-kicker{color:#8bd1ed;font-size:9px;letter-spacing:1.5px}
#profile .v39-rank-card{margin:25px 0 0;padding:13px 15px 10px;border-radius:13px;max-width:74%;background:linear-gradient(125deg,#102e43ed,#081b2be6);border:1px solid #3d687f;box-shadow:inset 0 1px #ffffff0a}
#profile .v39-rank-card .v34-rank-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
#profile .v39-rank-card .v34-rank-row>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px}
#profile .v39-rank-card .v34-rank-row small{width:100%;font-size:9px;letter-spacing:.8px;color:#97bcd2}
#profile .v39-rank-card .v34-rank-row strong{font-size:35px;line-height:1;color:#bfefff}
#profile .v39-rank-card .v34-rank-row span{font-weight:800;color:#e7f7ff}
#profile .v39-rank-card .v34-rank-next{text-align:right;color:#94bad1;font-size:10px;max-width:152px}
#profile .v39-rank-card .v34-progress-track{height:7px;margin:11px 0 5px;background:#071725;border-radius:999px;border:1px solid #27475e;overflow:hidden}
#profile .v39-rank-card .v34-progress-track span{height:100%;display:block;background:linear-gradient(90deg,#1684bb,#80e3f7);border-radius:999px;box-shadow:0 0 10px #56dcf88c}
#profile .v39-rank-card p{font-size:9px;color:#83a5bc;margin:6px 0 0;line-height:1.4}
#profile .v39-showcase{display:grid;grid-template-columns:minmax(170px,40%) minmax(0,1fr);gap:17px;align-items:center;position:relative;overflow:hidden;border:1px solid #345872;border-radius:19px;background:linear-gradient(135deg,#0b1c2c,#132b3e 58%,#0a1b2b);min-height:182px;padding:14px 20px;margin:0 0 16px;box-shadow:inset 0 1px #ffffff14,0 12px 25px #0003}
#profile .v39-showcase-graphic{position:relative;height:158px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:radial-gradient(ellipse at 50% 60%,#245e7e78,#081828 70%);border:1px solid #294963;overflow:hidden}
#profile .v39-weapon-glow{position:absolute;inset:auto 9% 15%;height:18px;border-radius:50%;background:#65bfe98a;filter:blur(22px)}
#profile .v39-showcase-graphic:before{content:'◇';position:absolute;font-size:110px;color:#77b5db1a;font-weight:100;top:-4px}
#profile .v39-showcase-graphic img{position:relative;width:100%;height:100%;max-width:360px;object-fit:contain;filter:drop-shadow(0 12px 15px #0009);padding:10px}
#profile .v39-showcase-copy{min-width:0;position:relative;z-index:1}
#profile .v39-showcase-eyebrow{font-size:10px;font-weight:900;letter-spacing:1.2px;color:#85c9e7}
#profile .v39-showcase-copy h3{font-size:clamp(18px,2.6vw,25px);line-height:1.2;margin:8px 0;color:#f0faff;overflow-wrap:anywhere}
#profile .v39-showcase-copy p{font-size:12px;color:#a0bcd0;line-height:1.45;margin:6px 0 15px;max-width:330px}
#profile .v39-showcase-copy .button{min-height:43px;padding:10px 16px;font-size:12px;border-color:#3a6c83}
#profile .v34-profile-stats{margin-top:3px}
#profile .v34-profile-stats .v31-stat{border-radius:13px;background:linear-gradient(140deg,#102335,#0a1929);border:1px solid #2d4b60;box-shadow:inset 0 1px #ffffff10}
/* One independent, reusable secondary action system, not the case-opening modal. */
.v39-sheet-overlay[hidden]{display:none!important}
.v39-sheet-overlay{position:fixed;z-index:120;inset:0;background:#020811d9;display:flex;align-items:flex-end;justify-content:center;padding:0;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.v39-sheet{background:linear-gradient(170deg,#152e43 0%,#0c1b2a 55%,#091623);border:1px solid #497b92;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -28px 65px #0009,inset 0 1px #ffffff25;display:flex;flex-direction:column;overflow:hidden;min-height:150px;max-height:calc(94dvh - env(safe-area-inset-top));width:min(540px,100%);outline:none;animation:v39-rise .22s cubic-bezier(.21,.75,.25,1)}
@keyframes v39-rise{from{transform:translateY(35px);opacity:.5}to{transform:translateY(0);opacity:1}}
.v39-sheet-handle{align-self:center;height:4px;width:42px;border-radius:99px;background:#628da6;margin:10px 0 3px;flex-shrink:0}
.v39-sheet-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 18px 15px;border-bottom:1px solid #2c5065;flex-shrink:0}
.v39-sheet-head span{color:#83c8e3;font-size:9px;font-weight:900;letter-spacing:1.6px}
.v39-sheet-head h2{font-size:21px;line-height:1.15;letter-spacing:-.45px;margin:3px 0 0;color:#f0faff}
.v39-sheet-close{border:1px solid #3a6781;border-radius:13px;background:#163349;color:#e7f8ff;width:45px;height:45px;font-size:16px;flex-shrink:0}
.v39-sheet-scroll{padding:15px 18px calc(20px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1;min-height:0}
.v39-sheet-lead{font-size:12px;line-height:1.5;color:#a4c2d6;margin:0 0 13px}
.v39-sheet-itemlist{display:grid;gap:8px}
.v39-sheet-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:10px;border-radius:13px;background:#10263b;border:1px solid #31566b;min-height:76px;color:#effaff}
.v39-sheet-item:active{background:#1b435b}
.v39-sheet-item img{width:85px;height:58px;object-fit:contain;flex-shrink:0;background:#071929;border-radius:9px}
.v39-sheet-item span{flex:1;min-width:0}
.v39-sheet-item b{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.v39-sheet-item small{display:block;font-size:10px;color:#9dbdd1;line-height:1.4;margin-top:4px}
.v39-sheet-item strong{font-size:10px;color:#95ddf9;flex-shrink:0}
.v39-sheet-quiet{display:block;width:100%;min-height:43px;padding:10px 12px;color:#99c2d8;background:transparent;border:0;margin-top:8px;font-size:12px}
.v39-sheet-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.v39-sheet-actions .button{min-height:50px;border-radius:12px;font-size:12px;line-height:1.3;padding:12px 9px}
.v39-sheet-actions .v39-sheet-quiet{grid-column:1/-1}
.v39-sheet-empty{text-align:center;display:flex;flex-direction:column;align-items:center;padding:20px 8px;gap:9px}
.v39-sheet-empty>span{display:grid;place-items:center;width:64px;height:64px;border-radius:17px;border:1px solid #5081a0;color:#8cd5f1;background:#193e59;font-size:28px}
.v39-sheet-empty b{color:#effaff;font-size:19px}
.v39-sheet-empty p{font-size:12px;line-height:1.5;color:#9bbbd0;max-width:260px;margin:0 0 9px}
.v39-filter-form{display:grid;gap:14px}
.v39-filter-form label{display:flex;flex-direction:column;gap:7px;color:#aac9dc;font-size:12px;font-weight:800}
.v39-filter-form input,.v39-filter-form select{width:100%;min-width:0;min-height:49px;padding:10px 12px;background:#091a2a;border:1px solid #416b84;border-radius:11px;color:#e8f6ff;font-size:16px;outline-offset:2px}
.v39-inspect-art{height:215px;border-radius:15px;border:1px solid #345672;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--v39-rarity) 24%,#182c3d),#071724 70%);display:grid;place-items:center}
.v39-inspect-art img{height:95%;width:95%;object-fit:contain;filter:drop-shadow(0 13px 16px #0009)}
.v39-inspect h3{font-size:20px;line-height:1.2;margin:15px 0 7px;color:#f1faff}
.v39-inspect-meta{border-top:1px solid #32546b;margin-top:13px;padding-top:7px}
.v39-inspect-meta>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;border-bottom:1px solid #27465b;padding:11px 0}
.v39-inspect-meta span{color:#9cb9cc;font-size:11px;flex:0 0 auto}
.v39-inspect-meta strong{font-size:11px;color:#edfaff;text-align:right;overflow-wrap:anywhere}
.v39-confirm{text-align:center}
.v39-confirm img{height:130px;width:min(100%,290px);object-fit:contain;display:block;margin:3px auto 11px;filter:drop-shadow(0 10px 13px #0009)}
.v39-confirm-mark{margin:4px auto 16px;width:70px;height:70px;display:grid;place-items:center;border:1px solid #4b829c;background:#193b53;border-radius:18px;font-size:32px;color:#9ae5ff}
.v39-confirm>b{font-size:18px;display:block;margin-bottom:8px;color:#effaff}
.v39-confirm>span{display:block;color:#99bed4;font-size:12px;margin:7px 0 0}
.v39-confirm>strong{display:block;color:#9de2ff;font-size:29px;margin:4px 0 8px}
.v39-confirm p{font-size:12px;color:#a4c1d3;line-height:1.55;max-width:330px;margin:0 auto}
html.v39-sheet-open,body.v39-sheet-open{overflow:hidden!important}
.v39-inventory-mobile-tools,.v39-mobile-pick{display:none}
@media(min-width:760px){
 .v39-sheet-overlay{align-items:center;padding:24px}
 .v39-sheet{border:1px solid #497b92;border-radius:23px;max-height:min(740px,calc(100dvh - 48px));width:min(535px,100%)}
 .v39-sheet-handle{display:none}
 #profile .v39-profile-hero{min-height:305px}
}
@media(max-width:759px){
 #profile .v39-profile-hero{min-height:300px;border-radius:19px}
 #profile .v39-hero-content{padding:18px 14px 16px;min-height:300px}
 #profile .v39-idline{font-size:9px;letter-spacing:.8px;padding-bottom:21px}
 #profile .v39-hero-portrait{width:64%;opacity:.56}
 #profile .v39-profile-top{max-width:100%;align-items:center}
 #profile .v39-profile-top .v34-profile-avatar{width:56px;height:56px;flex-basis:56px;font-size:18px}
 #profile .v39-profile-top .v34-profile-identity h2{font-size:24px;max-width:205px}
 #profile .v39-profile-top .v34-profile-identity p{font-size:10px;max-width:192px}
 #profile .v39-rank-card{margin-top:auto;max-width:100%;padding:12px 13px;background:#0c2133e8;backdrop-filter:blur(8px)}
 #profile .v39-rank-card .v34-rank-row strong{font-size:30px}
 #profile .v39-rank-card .v34-rank-next{font-size:9px;max-width:133px}
 #profile .v39-showcase{grid-template-columns:138px minmax(0,1fr);gap:10px;padding:10px;min-height:166px;border-radius:17px}
 #profile .v39-showcase-graphic{height:139px}
 #profile .v39-showcase-eyebrow{font-size:8px;letter-spacing:.8px}
 #profile .v39-showcase-copy h3{font-size:17px;margin:6px 0}
 #profile .v39-showcase-copy p{font-size:10px;line-height:1.4;margin:5px 0 11px}
 #profile .v39-showcase-copy .button{font-size:10px;min-height:41px;padding:9px}
 #inventory .v31-inventory-filters{display:none!important}
 #inventory .v39-inventory-mobile-tools{display:block;margin:8px 0 13px}
 #inventory .v39-mobile-filter{width:100%;min-height:49px;padding:10px 13px;display:flex;align-items:center;gap:10px;border-radius:13px;border:1px solid #3b6e87;background:#10273a;box-shadow:inset 0 1px #ffffff15;color:#e3f5ff;font-weight:800;font-size:12px;text-align:left}
 #inventory .v39-mobile-filter>span{font-size:19px;color:#8bd8f7}
 #inventory .v39-mobile-filter strong{font-size:10px;margin-left:auto;color:#96bed4;font-weight:600;text-align:right}
 #upgrade .v39-mobile-pick{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:12px 14px;margin:8px 0 10px;border:1px solid #4e98ae;border-radius:13px;background:linear-gradient(120deg,#164461,#102b40);color:#eafaff;font-size:13px;font-weight:850;box-shadow:inset 0 1px #ffffff20}
 #upgrade .v39-mobile-pick:disabled{opacity:.45}
 .v39-sheet-head{padding:10px 15px 12px}
 .v39-sheet-scroll{padding:12px 15px calc(20px + env(safe-area-inset-bottom))}
}
@media(max-width:355px){
 #profile .v39-showcase{grid-template-columns:110px minmax(0,1fr)}
 #profile .v39-showcase-graphic{height:128px}
 #profile .v39-profile-top .v34-profile-identity h2{font-size:21px}
 #profile .v39-profile-top .v34-profile-identity p{font-size:9px}
 #profile .v39-idline{font-size:8px}
 .v39-sheet-item img{width:70px}
 .v39-sheet-item strong{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.v39-sheet{animation:none!important}#profile .v39-showcase *{transition:none!important}}
