/* PasNinja Arcade profile — Steam-inspired structure, neon hub visual language. */
dialog.pn-profile-v2{
  width:min(1180px,calc(100vw - 28px))!important;
  max-width:1180px!important;
  max-height:min(95vh,1080px)!important;
  color:#edf9ff;
  border:1px solid rgba(58,213,255,.28);
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(2,8,18,.80),rgba(2,8,17,.96) 44%,rgba(3,8,16,.98)),
    url('../assets/hub-bg.jpg') center top/cover fixed;
  box-shadow:0 30px 90px #000c,0 0 48px rgba(50,205,255,.08);
  overflow:hidden;
}
dialog.pn-profile-v2::backdrop{background:rgba(0,4,10,.76);backdrop-filter:blur(5px)}
dialog.pn-profile-v2 #modal-content{padding:16px!important;max-height:94vh!important;overflow:auto!important;background:transparent}
dialog.pn-profile-v2 .modal-head{margin:0 0 12px!important;padding:0 2px 8px;border-bottom:1px solid rgba(86,213,255,.12)}
dialog.pn-profile-v2 .modal-head h2{font:800 14px/1.3 var(--display,var(--font,system-ui))!important;letter-spacing:1.5px!important;text-transform:uppercase;color:#dff7ff!important}
dialog.pn-profile-v2 .modal-head .close{border-color:rgba(89,219,255,.16)!important;background:rgba(4,16,28,.72)!important;color:#9db9c9!important}
dialog.pn-profile-v2 .modal-head .close:hover{color:#fff!important;border-color:rgba(85,226,255,.42)!important;box-shadow:0 0 18px rgba(46,218,255,.12)}
.pn-profile-v2-body{font-family:var(--font,system-ui);font-size:14px;line-height:1.5;color:#eaf7ff}

/* Hero / Steam-style identity header */
.pn-profile-hero{position:relative;overflow:hidden;min-height:270px;border-radius:14px;border:1px solid rgba(70,220,255,.30);background:linear-gradient(110deg,rgba(4,18,35,.98),rgba(9,24,43,.85) 54%,rgba(35,9,52,.82));box-shadow:0 16px 50px #0008,0 0 28px rgba(43,218,255,.06)}
.pn-profile-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 18%,rgba(204,65,255,.20),transparent 34%),linear-gradient(90deg,rgba(62,222,255,.055) 1px,transparent 1px),linear-gradient(rgba(62,222,255,.04) 1px,transparent 1px);background-size:auto,42px 42px,42px 42px;pointer-events:none}
.pn-profile-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,#50e2ff,#c74dff,transparent);opacity:.7}
.pn-banner-forest{background:linear-gradient(112deg,rgba(4,24,29,.98),rgba(7,34,38,.88) 54%,rgba(16,20,44,.86))}
.pn-banner-violet{background:linear-gradient(112deg,rgba(11,14,40,.98),rgba(28,17,62,.88) 56%,rgba(64,17,78,.82))}
.pn-banner-ember{background:linear-gradient(112deg,rgba(27,13,30,.98),rgba(60,24,43,.88) 56%,rgba(30,19,48,.84))}
.pn-banner-ocean{background:linear-gradient(112deg,rgba(3,22,39,.98),rgba(4,35,54,.88) 56%,rgba(26,15,54,.82))}
.pn-banner-aurora{background:linear-gradient(112deg,rgba(4,28,42,.98),rgba(19,30,69,.88) 54%,rgba(72,23,86,.84))}
.pn-banner-gold{background:linear-gradient(112deg,rgba(32,25,20,.98),rgba(49,33,34,.90) 54%,rgba(36,21,58,.86))}
.pn-profile-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:154px minmax(0,1fr) 260px;gap:22px;align-items:center;padding:34px 32px;min-height:270px;background:linear-gradient(0deg,rgba(1,6,13,.42),transparent 62%)}
.pn-profile-avatar-wrap{position:relative;width:148px;height:148px}
.pn-profile-icon{width:148px;height:148px;border-radius:20px;border:2px solid #4fe6ff;background:linear-gradient(145deg,#13283e,#0b1120 72%,#27123a);display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 3px rgba(3,11,21,.96),0 0 34px rgba(47,219,255,.18),0 14px 34px #0009}
.pn-profile-icon svg{max-width:128px;max-height:128px;width:128px!important;height:128px!important}
.pn-profile-fallback{font:900 54px var(--display,var(--font,system-ui));color:#67ebff;text-shadow:0 0 24px #a24cff}
.pn-profile-online-dot{position:absolute;right:3px;bottom:4px;width:18px;height:18px;border-radius:50%;background:#4dffad;border:3px solid #06101b;box-shadow:0 0 15px #4dffad}
.pn-profile-identity{min-width:0}
.pn-profile-kicker{display:block;color:#55e5ff;font-size:10px;font-weight:800;letter-spacing:1.55px;text-transform:uppercase}
.pn-profile-identity h2{font:800 clamp(26px,3.5vw,38px)/1.08 var(--display,var(--font,system-ui));letter-spacing:.2px;color:#fff;margin:8px 0 4px!important;overflow-wrap:anywhere;text-shadow:0 0 24px rgba(57,218,255,.10)}
.pn-profile-signature{display:block;width:fit-content;max-width:100%;color:#df86ff;font-size:12px;font-weight:800;letter-spacing:.2px;margin:0 0 10px;overflow-wrap:anywhere}
.pn-profile-identity p{font-size:13px;line-height:1.6;color:#a8bfce;margin:0 0 15px;max-width:650px;white-space:pre-wrap;overflow-wrap:anywhere}
.pn-profile-meta-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}
.pn-profile-meta-chips span{padding:6px 9px;border-radius:999px;border:1px solid rgba(84,215,255,.15);background:rgba(11,31,49,.55);color:#aac5d4;font-size:10px;font-weight:750}
.pn-profile-inline-actions{display:flex;gap:8px;flex-wrap:wrap}
.pn-profile-action,.pn-profile-link{cursor:pointer;color:#dcecf5;background:rgba(11,30,47,.74);border:1px solid rgba(84,214,255,.22);padding:9px 13px;border-radius:8px;font:750 11px var(--font,system-ui);text-decoration:none;transition:.16s ease}
.pn-profile-action:hover,.pn-profile-link:hover{color:#fff;background:rgba(21,49,70,.9);border-color:rgba(79,227,255,.48);box-shadow:0 0 16px rgba(49,214,255,.10)}
.pn-profile-action.primary{border-color:transparent;background:linear-gradient(90deg,#28d5ff,#a84cff);color:#fff;box-shadow:0 0 18px rgba(57,214,255,.14)}
.pn-profile-link{background:transparent;border-color:transparent;color:#62ddf7;padding-inline:4px}
.pn-profile-level-card{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:16px;border-radius:12px;border:1px solid rgba(74,216,255,.20);background:rgba(4,17,31,.68);backdrop-filter:blur(12px)}
.pn-level-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pn-level-top>span{display:flex;flex-direction:column;gap:3px}.pn-level-top small{font-size:9px;letter-spacing:1.2px;color:#728fa1}.pn-level-top b{font-size:15px;color:#e8f9ff}
.pn-level-top>strong{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;border:2px solid #4ce5ff;color:#f4fcff;font:900 21px var(--display,var(--font,system-ui));box-shadow:inset 0 0 20px rgba(54,221,255,.09),0 0 18px rgba(54,221,255,.10)}
.pn-profile-track{height:7px;border-radius:99px;overflow:hidden;background:#14283a;margin:14px 0 6px}.pn-profile-track span{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#39ddff,#d24fff);box-shadow:0 0 10px rgba(62,222,255,.45)}
.pn-profile-level-caption{font-size:10px;color:#7898aa;margin-bottom:14px}
.pn-level-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding-top:12px;border-top:1px solid rgba(84,214,255,.10)}
.pn-level-mini span{text-align:center;min-width:0}.pn-level-mini b{display:block;color:#f2fbff;font-size:15px;font-variant-numeric:tabular-nums}.pn-level-mini small{display:block;color:#708b9c;font-size:8px;text-transform:uppercase;letter-spacing:.3px}

/* Steam-style tab strip */
.pn-profile-tabs{display:flex;gap:6px;overflow-x:auto;margin:14px 0;padding:7px;border:1px solid rgba(69,214,255,.15);border-radius:11px;background:rgba(3,13,25,.76);backdrop-filter:blur(14px)}
.pn-profile-tabs button{background:transparent;color:#7f9bab;border:0;border-radius:7px;cursor:pointer;font:800 11px var(--font,system-ui);padding:10px 14px;white-space:nowrap;transition:.15s ease}
.pn-profile-tabs button:hover{color:#fff;background:rgba(62,211,255,.06)}
.pn-profile-tabs button.active{color:#fff;background:linear-gradient(90deg,rgba(47,214,255,.17),rgba(178,65,255,.14));box-shadow:inset 0 -2px #4ce5ff}

/* Profile body: main feed + Steam-like rail */
.pn-steam-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.pn-profile-primary{min-width:0}
.pn-profile-panel{min-height:220px}.pn-profile-panel[hidden]{display:none!important}
.pn-profile-panel-card,.pn-profile-rail-card{border:1px solid rgba(72,214,255,.15);border-radius:13px;background:linear-gradient(180deg,rgba(4,16,29,.91),rgba(3,11,22,.87));box-shadow:0 15px 42px #0006;overflow:hidden}
.pn-profile-panel-card{padding:18px}
.pn-panel-title,.pn-achievements-heading,.pn-rail-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pn-panel-title{margin:0 0 13px}.pn-panel-title h3,.pn-achievements-heading h3,.pn-rail-head h3{font:800 13px var(--display,var(--font,system-ui));letter-spacing:.45px;margin:0;color:#eefaff}
.pn-profile-panel>p{color:#90a9b8;font-size:12px;line-height:1.6;max-width:76ch;margin:0 0 17px;white-space:pre-wrap;overflow-wrap:anywhere}
.pn-profile-about-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:18px 0 4px}

/* Featured + icon showcase */
.pn-profile-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.pn-feature-tile{min-width:0;min-height:145px;display:grid;align-content:start;gap:7px;padding:15px;background:linear-gradient(145deg,rgba(12,35,53,.82),rgba(22,14,45,.74));border:1px solid rgba(75,217,255,.15);border-radius:10px;overflow:hidden}
.pn-feature-tile>span{font:800 9px var(--font,system-ui);letter-spacing:1.05px;color:#58dff7}
.pn-feature-tile strong{font-size:15px;color:#f2fbff;overflow-wrap:anywhere}.pn-feature-tile p{margin:0!important;font-size:11px!important;color:#8ea7b7!important}
.pn-feature-game-cover{width:100%;height:92px;object-fit:cover;object-position:center;border-radius:7px;border:1px solid rgba(74,219,255,.18);filter:saturate(.95) contrast(1.03)}
.pn-feature-achievement-icon{width:46px;height:46px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(145deg,#15324b,#291347);border:1px solid rgba(92,226,255,.25);color:#8dedff;font-size:23px}
.pn-profile-showcase{margin:0 0 18px;padding:15px;border:1px solid rgba(74,213,255,.12);border-radius:10px;background:rgba(5,19,33,.58)}
.pn-profile-showcase-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.pn-profile-showcase-head h3{margin:0 0 2px!important;font-size:12px!important}.pn-profile-showcase-head p{margin:0!important;color:#728e9f!important;font-size:10px!important}
.pn-profile-showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.pn-profile-showcase-item{min-width:0;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:9px 6px;border:1px solid rgba(79,211,255,.14);border-radius:9px;background:rgba(5,15,28,.75);text-align:center}
.pn-profile-showcase-item.filled{border-color:color-mix(in srgb,var(--pn-showcase-color,#59dfff) 54%,transparent);background:radial-gradient(circle at 50% 34%,color-mix(in srgb,var(--pn-showcase-color,#59dfff) 15%,transparent),rgba(4,13,25,.84) 75%)}
.pn-profile-showcase-item.empty{border-style:dashed;color:#6e8796}.pn-profile-showcase-item.empty>span{font-size:24px;font-weight:300;line-height:1}
.pn-profile-showcase-art{width:54px;height:54px;display:grid;place-items:center}.pn-profile-showcase-art svg{width:51px!important;height:51px!important;max-width:100%;max-height:100%}
.pn-profile-showcase-item small{color:#dcebf3;font:700 9px/1.3 var(--font,system-ui);overflow-wrap:anywhere}.pn-profile-showcase-item.empty small{color:#728b9a}

/* Recent activity */
.pn-profile-recent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pn-profile-recent>span{background:rgba(8,24,39,.7);color:#9ab2c1;border:1px solid rgba(70,207,255,.12);border-radius:8px;padding:10px 12px;font-size:11px}
.pn-profile-recent-game{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:9px;align-items:center;background:rgba(6,21,36,.72);border:1px solid rgba(71,214,255,.12);border-radius:8px;padding:7px;min-width:0}
.pn-profile-recent-game:hover{border-color:rgba(72,226,255,.30);background:rgba(10,29,47,.82)}
.pn-profile-recent-game img{width:68px;height:45px;object-fit:cover;border-radius:6px;flex:none}.pn-profile-recent-game div{min-width:0}.pn-profile-recent-game strong,.pn-profile-recent-game small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pn-profile-recent-game strong{font-size:11px;color:#edf9ff}.pn-profile-recent-game small{font-size:9px;color:#708d9e;margin-top:3px}.pn-profile-recent-game em{font-style:normal;color:#56dff8;font-size:9px;font-weight:900;padding-right:3px}

/* Right rail */
.pn-profile-rail{display:grid;gap:12px;position:sticky;top:0}
.pn-profile-rail-card{padding:14px}
.pn-rail-head{margin-bottom:10px}.pn-rail-head h3{font-size:11px}.pn-rail-head>span{font-size:9px;color:#5bdff7;font-weight:800}
.pn-rail-ach-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.pn-rail-ach{min-width:0;aspect-ratio:1;border-radius:9px;display:grid;place-items:center;text-align:center;padding:5px;border:1px solid rgba(85,219,255,.18);background:linear-gradient(145deg,#102b43,#261244);overflow:hidden}
.pn-rail-ach>span{font-size:20px;line-height:1}.pn-rail-ach small{width:100%;font-size:7px;color:#9db4c2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pn-rail-friend{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 0;border-bottom:1px solid rgba(66,204,255,.07)}.pn-rail-friend:last-child{border-bottom:0}
.pn-rail-avatar{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#16344d,#451b62);border:1px solid rgba(80,220,255,.28);font-weight:900;color:#dff9ff}.pn-rail-avatar i{position:absolute;right:0;bottom:1px;width:8px;height:8px;border-radius:50%;background:#526678;border:2px solid #06111d}.pn-rail-avatar i.online{background:#4bffad;box-shadow:0 0 8px #4bffad}
.pn-rail-friend b,.pn-rail-friend small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pn-rail-friend b{font-size:10px;color:#edfaff}.pn-rail-friend small{font-size:8px;color:#6f8e9f;margin-top:2px}.pn-rail-friend em{font-style:normal;font-size:8px;color:#607e90}
.pn-rail-game{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid rgba(66,204,255,.07)}.pn-rail-game:last-child{border-bottom:0}.pn-rail-game span{min-width:0}.pn-rail-game b,.pn-rail-game small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pn-rail-game b{font-size:10px}.pn-rail-game small{font-size:8px;color:#6e8999;margin-top:2px}.pn-rail-game em{font-style:normal;font-size:8px;color:#7bdff1;white-space:nowrap}
.pn-rail-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid rgba(66,204,255,.07);font-size:9px}.pn-rail-stat:last-child{border-bottom:0}.pn-rail-stat span{color:#718c9d}.pn-rail-stat b{color:#e9f9ff;font-size:10px}
.pn-rail-empty{margin:0!important;padding:8px 0!important;color:#678292!important;font-size:9px!important}

/* Games */
.pn-profile-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pn-game-progress{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid rgba(72,211,255,.13);background:rgba(6,22,37,.74);color:#e7f6fc;border-radius:8px;padding:12px;cursor:pointer;font:11px var(--font,system-ui)}
.pn-game-progress:hover{border-color:rgba(78,229,255,.38);background:rgba(11,33,51,.84)}
.pn-game-color{width:4px;align-self:stretch;border-radius:8px;flex-shrink:0}.pn-game-progress>span:nth-child(2){flex:1;min-width:0}.pn-game-progress strong,.pn-game-progress small{display:block;overflow-wrap:anywhere}.pn-game-progress small{color:#7895a6;margin-top:3px}.pn-game-progress>span:last-child{color:#64dff5;font-weight:800}

/* Achievements */
.pn-achievements-heading>span{font-size:10px;color:#62dff4}.pn-achievement-filters{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 15px}.pn-achievement-filters label,.pn-edit-label{display:flex;flex-direction:column;gap:6px;color:#9bb1bf;font-size:10px;min-width:170px}.pn-achievement-filters select,.pn-edit-label select,.pn-edit-label textarea{width:100%;padding:10px 11px;border-radius:8px;border:1px solid rgba(76,211,255,.18);background:#081a2b;color:#effbff;font:11px var(--font,system-ui);outline:none}.pn-achievement-filters select:focus,.pn-edit-label select:focus,.pn-edit-label textarea:focus{border-color:rgba(76,229,255,.48);box-shadow:0 0 0 3px rgba(49,210,255,.06)}
.pn-edit-label{margin:13px 0;max-width:600px}.pn-edit-label>span{font-size:9px;color:#6d8796}.pn-edit-label textarea{min-height:96px;resize:vertical;line-height:1.5}
.pn-profile-privacy{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;max-width:600px}.pn-profile-privacy input{accent-color:#45dfff;width:17px;height:17px;flex:none}
.pn-achievements-list{display:grid;gap:8px;max-height:460px;overflow-y:auto;padding-right:4px}
.pn-achievement{display:flex;align-items:center;gap:12px;background:rgba(5,20,34,.76);border:1px solid rgba(71,204,255,.12);padding:12px;border-radius:8px;min-width:0}.pn-achievement.earned{background:linear-gradient(90deg,rgba(17,42,55,.80),rgba(30,15,52,.68));border-color:rgba(76,222,255,.25)}
.pn-achievement-symbol{width:42px;height:42px;border:1px solid rgba(83,221,255,.22);background:linear-gradient(145deg,#14344c,#281447);display:grid;place-items:center;border-radius:8px;font-size:20px;flex-shrink:0;color:#92efff}.pn-achievement-info{flex:1;min-width:0}.pn-achievement-info strong{display:block;color:#effaff;font-size:12px}.pn-achievement-game{font-size:8px;color:#56dff4;text-transform:uppercase;letter-spacing:.5px}.pn-achievement-info p{margin:3px 0 8px!important;font-size:10px!important;line-height:1.4!important;color:#8ca6b5!important}.pn-achievement-progress{background:#152d3e;height:4px;border-radius:10px;overflow:hidden}.pn-achievement-progress span{display:block;height:100%;background:linear-gradient(90deg,#3bdbff,#c84eff)}.pn-achievement-fraction{font-size:9px;font-weight:700;color:#9ab5c4;white-space:nowrap}.pn-achievement-reward{display:block;margin:0 0 7px;color:#e3a8ff;font-size:9px}.pn-empty{color:#708b9a;padding:22px}
.pn-profile-guest-note{color:#e8bf7f;margin-top:10px;font-size:10px}

/* Existing frame customization stays functional. */
.pn-profile-icon.pn-profile-frame{position:relative;border-width:2px}.pn-profile-icon.pn-frame-neon{border-color:#46e8ff;box-shadow:0 0 0 1px #46e8ff55,0 14px 34px #0008,0 0 22px #18bad955}.pn-profile-icon.pn-frame-rune{border:4px double #b7ef83;box-shadow:0 14px 34px #0008,0 0 18px #87b95d55}.pn-profile-icon.pn-frame-gold{border-color:#f4cb63;box-shadow:0 0 0 3px #735318,0 14px 34px #0008,0 0 19px #f4cb6350}.pn-profile-icon.pn-frame-void{border-color:#ad7cff;box-shadow:0 0 0 2px #5e378f,0 14px 34px #0008,0 0 22px #914cff66}

/* Keep hub-only profile stylesheet helpers that existed before this redesign. */
.topbar nav .nav{font-size:12px}.topbar .header-chest-btn,.topbar .header-shop-btn{box-shadow:none!important}
#discover-view .pn-library-layout{column-gap:clamp(20px,2.2vw,35px)!important;padding-block:30px 48px!important}#discover-view .pn-side-list{gap:5px!important}#discover-view .pn-side-item{min-height:42px!important}#discover-view .pn-main-library .game-grid{gap:clamp(14px,1.6vw,22px)!important}

@media(max-width:940px){
  .pn-profile-hero-grid{grid-template-columns:120px minmax(0,1fr);padding:25px}.pn-profile-avatar-wrap,.pn-profile-icon{width:116px;height:116px}.pn-profile-icon svg{width:100px!important;height:100px!important}.pn-profile-level-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 210px;column-gap:16px;align-items:center}.pn-level-top{grid-row:1/4}.pn-profile-track,.pn-profile-level-caption,.pn-level-mini{grid-column:2}.pn-profile-track{margin-top:3px}.pn-steam-profile-layout{grid-template-columns:1fr}.pn-profile-rail{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.pn-profile-stats-card{grid-column:span 2}
}
@media(max-width:680px){
  dialog.pn-profile-v2 #modal-content{padding:10px!important}.pn-profile-hero{min-height:0}.pn-profile-hero-grid{grid-template-columns:1fr;text-align:center;padding:20px 14px;gap:14px}.pn-profile-avatar-wrap{margin:auto}.pn-profile-identity p{margin-inline:auto}.pn-profile-meta-chips,.pn-profile-inline-actions{justify-content:center}.pn-profile-level-card{grid-column:auto;display:block;text-align:left}.pn-profile-tabs{margin:10px 0}.pn-profile-featured{grid-template-columns:1fr}.pn-profile-showcase{padding:11px}.pn-profile-showcase-head{align-items:flex-start;flex-wrap:wrap;gap:8px}.pn-profile-showcase-grid{gap:6px}.pn-profile-showcase-item{min-height:82px;padding:7px 4px;gap:4px}.pn-profile-showcase-art{width:42px;height:42px}.pn-profile-showcase-art svg{width:40px!important;height:40px!important}.pn-profile-showcase-item small{font-size:8px}.pn-profile-recent,.pn-profile-game-grid{grid-template-columns:1fr}.pn-profile-rail{grid-template-columns:1fr}.pn-profile-stats-card{grid-column:auto}.pn-achievement{gap:8px;padding:9px}.pn-achievement-symbol{width:36px;height:36px}.pn-achievement-fraction{font-size:8px}#discover-view .pn-library-layout{padding-top:16px!important}
}

/* Public friend profiles use the same neon profile language. */
.public-profile-card{display:flex;flex-direction:column;gap:14px;padding:4px 0;color:#eaf8ff}
.public-profile-banner{background:linear-gradient(110deg,rgba(5,21,38,.96),rgba(17,23,51,.90) 62%,rgba(54,16,70,.82));border:1px solid rgba(75,219,255,.25);border-radius:12px;padding:18px;display:flex;align-items:center;gap:16px;box-shadow:0 14px 38px rgba(0,0,0,.38),0 0 22px rgba(51,213,255,.06)}
.public-profile-meta h2{font:800 24px var(--display,var(--font,system-ui));letter-spacing:.2px;margin:0;color:#fff;display:flex;align-items:center;gap:9px}.public-profile-meta .level-badge{color:#64e3fa!important;background:rgba(49,213,255,.10)!important;border-color:rgba(64,221,255,.28)!important}
.public-signature-title{display:inline-block;font-size:10px;font-weight:800;color:#df86ff;background:rgba(203,70,255,.10);border:1px solid rgba(203,70,255,.24);padding:3px 8px;border-radius:999px;margin-top:4px;letter-spacing:.3px}
.public-profile-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px;background:rgba(3,13,24,.68);padding:10px;border-radius:10px;border:1px solid rgba(73,210,255,.12);text-align:center}.public-profile-stats-grid .stat-box{padding:8px;border-radius:8px;background:rgba(10,27,43,.6)}.public-profile-stats-grid .stat-box small{display:block;font-size:8px;color:#718d9e;letter-spacing:.75px}.public-profile-stats-grid .stat-box strong{font-size:14px;color:#e8f9ff!important;font-family:var(--display,var(--font,system-ui))}
.public-profile-card .showcase-pedestal-section{background:rgba(4,16,29,.78)!important;border-color:rgba(76,213,255,.14)!important}.public-profile-card .showcase-pedestal-title{color:#64dff4!important}.public-profile-card .showcase-slot{background:rgba(4,14,26,.78)!important;border-color:rgba(77,207,255,.14)!important}


/* Exact Steam-style profile concept integration (based on the approved standalone mockup). */
dialog.pn-profile-v2{width:min(1220px,calc(100vw - 24px))!important;max-width:1220px!important;border-color:rgba(54,224,255,.26)!important;background:linear-gradient(180deg,rgba(1,6,16,.58),rgba(1,7,16,.90) 52%,#030710 100%),url('../assets/hub-bg.jpg') center top/cover fixed!important}
dialog.pn-profile-v2 #modal-content{padding:18px!important}
.pn-steam-exact{--pn-cyan:#53e8ff;--pn-mag:#db4cff;--pn-panel:rgba(3,12,24,.82);--pn-muted:#91a9bb;max-width:1110px;margin:0 auto}
.pn-steam-exact .pn-profile-hero{min-height:280px;border-radius:16px;border-color:rgba(66,225,255,.28);background:radial-gradient(circle at 76% 10%,rgba(195,65,255,.19),transparent 32%),linear-gradient(110deg,rgba(4,12,24,.95),rgba(5,18,34,.72) 52%,rgba(8,11,30,.78))!important}
.pn-steam-exact .pn-profile-hero-grid{grid-template-columns:166px minmax(0,1fr) 240px;gap:24px;padding:36px;min-height:280px}
.pn-steam-exact .pn-profile-avatar-wrap,.pn-steam-exact .pn-profile-icon{width:148px;height:148px}.pn-steam-exact .pn-profile-icon svg{width:132px!important;height:132px!important;max-width:132px;max-height:132px}
.pn-steam-exact .pn-profile-identity h2{font-size:34px}.pn-steam-exact .pn-profile-signature{color:#df86ff;margin-bottom:8px}.pn-steam-exact .pn-profile-identity p{margin:8px 0 17px}.pn-steam-exact .pn-profile-meta-chips{gap:9px}.pn-steam-exact .pn-profile-meta-chips span{padding:7px 10px;font-size:10px}
.pn-steam-exact .pn-profile-action{padding:10px 16px;border-radius:9px}.pn-steam-exact .pn-profile-level-card{padding:15px}.pn-steam-exact .pn-level-top>strong{width:66px;height:66px;font-size:22px;border-width:3px}.pn-steam-exact .pn-level-mini b{font-size:14px}.pn-steam-exact .pn-level-mini small{font-size:7.5px}
.pn-steam-exact .pn-profile-tabs{gap:8px;margin:16px 0;padding:8px;border-radius:12px}.pn-steam-exact .pn-profile-tabs button{padding:10px 15px;font-size:11px}
.pn-steam-exact .pn-steam-profile-layout{grid-template-columns:minmax(0,1fr) 305px;gap:16px}.pn-steam-exact .pn-profile-primary{display:grid;gap:16px}.pn-steam-exact .pn-profile-panel:not([hidden]){display:grid;gap:16px}.pn-steam-exact .pn-profile-panel-card,.pn-steam-exact .pn-profile-rail-card{border-radius:14px;border-color:rgba(67,221,255,.18);background:linear-gradient(180deg,rgba(4,15,29,.91),rgba(4,12,23,.85));box-shadow:0 16px 50px rgba(0,0,0,.45),0 0 35px rgba(28,202,255,.05)}.pn-steam-exact .pn-profile-panel-card{padding:16px 18px}.pn-steam-exact .pn-steam-section{margin:0}.pn-steam-exact .pn-panel-title{margin:0 0 13px}.pn-steam-exact .pn-panel-title h3,.pn-steam-exact .pn-rail-head h3{font-size:13px}.pn-steam-exact .pn-profile-link{font-size:10px;color:#61dff7}
.pn-steam-showcase{display:grid;grid-template-columns:1.25fr .75fr;gap:12px}.pn-steam-hero-shot,.pn-steam-mini-shot{position:relative;overflow:hidden;border-radius:11px;border:1px solid rgba(70,218,255,.16);background:linear-gradient(180deg,transparent 45%,rgba(4,8,20,.88)),var(--pn-shot) center/cover no-repeat;color:#fff;cursor:pointer;text-align:left}.pn-steam-hero-shot{height:235px;width:100%}.pn-steam-hero-shot::after,.pn-steam-mini-shot::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(2,7,16,.88));pointer-events:none}.pn-steam-hero-shot>span,.pn-steam-mini-shot>span{position:absolute;z-index:1;left:16px;right:12px;bottom:14px;display:flex;flex-direction:column;gap:2px}.pn-steam-hero-shot b{font:800 20px var(--display,var(--font,system-ui))}.pn-steam-hero-shot small,.pn-steam-mini-shot small{font-size:9px;color:#94b1c2}.pn-steam-shot-stack{display:grid;grid-template-rows:1fr 1fr;gap:12px}.pn-steam-mini-shot{min-height:110px}.pn-steam-mini-shot.empty{background:linear-gradient(135deg,#11254d,#251249 52%,#09111f);cursor:default}.pn-steam-mini-shot.empty::after{display:none}.pn-steam-section-note{color:#7f9aac!important;font-size:10px!important;margin:10px 0 0!important}
.pn-steam-activity-item{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:13px;align-items:center;padding:14px 0;border-bottom:1px solid rgba(80,209,255,.09)}.pn-steam-activity-item:last-child{border-bottom:0}.pn-steam-game-cover{width:84px;height:56px;object-fit:cover;border-radius:8px;border:1px solid rgba(95,225,255,.17)}.pn-steam-activity-copy h3{font-size:12px;margin:0 0 4px;color:#effaff}.pn-steam-activity-copy p{margin:0;color:#7896a8;font-size:9px}.pn-steam-activity-item>em{font-style:normal;font-size:9px;color:#819eaf;white-space:nowrap}.pn-steam-ach-row{display:flex;gap:6px;margin-top:7px;align-items:center}.pn-steam-ach-row span{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;background:linear-gradient(145deg,#123754,#231342);border:1px solid rgba(101,231,255,.24);font-size:14px}.pn-steam-ach-row small{font-size:8px;color:#658191}
.pn-steam-fav-game{display:grid;grid-template-columns:105px 1fr;gap:14px}.pn-steam-fav-game>img{width:105px;height:140px;object-fit:cover;border-radius:11px;border:1px solid rgba(67,225,255,.22)}.pn-steam-fav-game h3{margin:2px 0 8px;font-size:13px}.pn-steam-statline{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(76,205,255,.08);font-size:9px}.pn-steam-statline span{color:#7f9cac}.pn-steam-statline b{color:#e5f9ff}
.pn-steam-exact .pn-profile-rail{display:grid;gap:16px;position:static}.pn-steam-exact .pn-profile-rail-card{padding:14px 16px}.pn-steam-exact .pn-rail-head{padding:0 0 10px;border-bottom:1px solid rgba(69,217,255,.08);margin-bottom:3px}.pn-steam-exact .pn-rail-ach-grid{padding:10px 0 6px}.pn-steam-exact .pn-rail-friend{padding:9px 0}.pn-steam-exact .pn-rail-game{padding:9px 0}
.pn-steam-friends-full{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pn-steam-friend-full{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid rgba(68,211,255,.10);border-radius:9px;background:rgba(5,19,32,.70)}.pn-steam-friend-avatar{position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#17304c,#4a1b68);border:1px solid rgba(87,223,255,.35);font-weight:900}.pn-steam-friend-avatar i{position:absolute;width:8px;height:8px;border-radius:50%;right:0;bottom:1px;background:#526678;border:2px solid #06111d}.pn-steam-friend-avatar i.online{background:#4bffad;box-shadow:0 0 8px #4bffad}.pn-steam-friend-full b,.pn-steam-friend-full small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pn-steam-friend-full b{font-size:10px}.pn-steam-friend-full small{font-size:8px;color:#6f8e9f}.pn-steam-friend-full em{font-style:normal;font-size:8px;color:#607e90}
.pn-steam-inventory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.pn-steam-inventory-grid>div{padding:16px;border:1px solid rgba(70,215,255,.13);border-radius:10px;background:rgba(7,24,39,.72);text-align:center}.pn-steam-inventory-grid b{display:block;font-size:22px;color:#edfaff}.pn-steam-inventory-grid span{display:block;font-size:8px;color:#718fa1;text-transform:uppercase;letter-spacing:.5px;margin-top:4px}.pn-empty-block{color:#6f8999!important;font-size:10px!important;padding:15px 2px!important;margin:0!important}
@media(max-width:940px){.pn-steam-exact .pn-profile-hero-grid{grid-template-columns:130px minmax(0,1fr)}.pn-steam-exact .pn-profile-avatar-wrap,.pn-steam-exact .pn-profile-icon{width:120px;height:120px}.pn-steam-exact .pn-profile-icon svg{width:104px!important;height:104px!important}.pn-steam-exact .pn-profile-level-card{grid-column:1/-1}.pn-steam-exact .pn-steam-profile-layout{grid-template-columns:1fr}.pn-steam-exact .pn-profile-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pn-steam-exact .pn-profile-hero-grid{grid-template-columns:1fr;text-align:center;padding:20px 14px}.pn-steam-exact .pn-profile-meta-chips,.pn-steam-exact .pn-profile-inline-actions{justify-content:center}.pn-steam-showcase{grid-template-columns:1fr}.pn-steam-shot-stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}.pn-steam-mini-shot{min-height:90px}.pn-steam-friends-full{grid-template-columns:1fr}.pn-steam-inventory-grid{grid-template-columns:repeat(2,1fr)}.pn-steam-exact .pn-profile-rail{grid-template-columns:1fr}.pn-steam-activity-item{grid-template-columns:70px minmax(0,1fr)}.pn-steam-game-cover{width:70px}.pn-steam-activity-item>em{grid-column:2}.pn-steam-fav-game{grid-template-columns:84px 1fr}.pn-steam-fav-game>img{width:84px;height:118px}}

/* =============================================================
   PROFILE V2 — compact platform profile inspired by the selected
   reference: left profile navigation, banner identity strip,
   compact stats, achievement cards, comments/activity, friends rail.
   Existing profile data + progression systems remain unchanged.
   ============================================================= */
dialog.pn-profile-v3{
  width:min(1280px,calc(100vw - 24px))!important;max-width:1280px!important;
  max-height:96vh!important;margin:auto!important;padding:0!important;
  color:#edf6fb!important;border:1px solid rgba(88,111,135,.28)!important;
  border-radius:13px!important;background:#11161e!important;
  box-shadow:0 34px 110px rgba(0,0,0,.72),0 0 0 1px rgba(41,199,255,.04)!important;
  overflow:hidden!important;
}
dialog.pn-profile-v3::backdrop{background:rgba(0,3,8,.78);backdrop-filter:blur(6px)}
dialog.pn-profile-v3 #modal-content{padding:0!important;max-height:96vh!important;overflow:auto!important;background:#11161e!important}
dialog.pn-profile-v3 .modal-head{
  position:sticky;top:0;z-index:40;height:42px;margin:0!important;padding:0 12px 0 18px!important;
  display:flex;align-items:center;justify-content:space-between;background:#151a22!important;
  border-bottom:1px solid rgba(118,139,160,.12)!important
}
dialog.pn-profile-v3 .modal-head h2{margin:0!important;font:800 11px var(--display,var(--font,system-ui))!important;letter-spacing:1.8px!important;text-transform:uppercase;color:#dce8ef!important}
dialog.pn-profile-v3 .modal-head .close{width:30px!important;height:30px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#71808f!important;font-size:19px!important;cursor:pointer}
dialog.pn-profile-v3 .modal-head .close:hover{background:#202731!important;color:#fff!important}

.pn-profile-v3-body{font-family:var(--font,system-ui);font-size:13px;color:#e9f1f6;background:#11161e}
.pn-v3-shell{display:grid;grid-template-columns:188px minmax(0,1fr);min-height:760px}
.pn-v3-sidebar{position:sticky;top:42px;align-self:start;height:calc(96vh - 42px);min-height:620px;padding:26px 12px 18px;background:#151a22;border-right:1px solid rgba(116,139,160,.11);display:flex;flex-direction:column}
.pn-v3-side-heading{display:flex;align-items:center;gap:10px;padding:0 10px 18px;font:800 13px var(--display,var(--font,system-ui));letter-spacing:.8px;color:#f3f8fb}
.pn-v3-side-heading span{font-size:10px;color:#e9f1f5;transform:rotate(45deg)}
.pn-v3-side-nav{display:grid;gap:4px}
.pn-v3-side-nav button{width:100%;display:flex;align-items:center;gap:11px;padding:11px 12px;border:0;border-radius:7px;background:transparent;color:#737f8d;text-align:left;font:700 11px var(--font,system-ui);cursor:pointer;transition:.15s ease}
.pn-v3-side-nav button span{font-size:7px;color:#586572;transform:rotate(45deg)}
.pn-v3-side-nav button:hover{background:#1c222c;color:#c8d5dd}
.pn-v3-side-nav button.active{background:#202630;color:#f6fbff;box-shadow:inset 2px 0 #4ed8ff}
.pn-v3-side-nav button.active span{color:#65ddff}
.pn-v3-side-card{margin-top:auto;padding:13px;border:1px solid rgba(83,112,136,.17);border-radius:8px;background:#121820}
.pn-v3-side-card small,.pn-v3-mini-profile small{display:block;font-size:8px;color:#677583;letter-spacing:.9px;font-weight:800}
.pn-v3-side-card strong{display:block;margin:4px 0 2px;color:#61dfff;font:800 19px var(--display,var(--font,system-ui))}
.pn-v3-side-card span{font-size:9px;color:#596978}
.pn-v3-edit-side{margin-top:9px;padding:10px;border:1px solid rgba(71,203,242,.20);border-radius:7px;background:#18222c;color:#a9d9e8;font:800 10px var(--font,system-ui);cursor:pointer}
.pn-v3-edit-side:hover{border-color:rgba(73,219,255,.45);color:#fff}

.pn-v3-main{min-width:0;background:linear-gradient(180deg,#11161e,#10151c 60%,#0f141b)}
.pn-v3-profile-top{margin:24px 25px 0;border-radius:9px;background:#151b23;border:1px solid rgba(102,124,146,.13);overflow:hidden}
.pn-v3-banner{height:112px;position:relative;background:linear-gradient(90deg,rgba(5,10,17,.12),rgba(8,14,22,.02)),url('../assets/hub-bg.jpg') center 39%/cover no-repeat;filter:saturate(.78) brightness(.76)}
.pn-v3-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,15,22,.18),transparent 55%,rgba(10,15,22,.24)),linear-gradient(0deg,rgba(14,20,27,.68),transparent 45%)}
.pn-v3-banner>span{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);font:400 19px Yellowtail,var(--font,system-ui);letter-spacing:1px;color:rgba(255,255,255,.82);text-shadow:0 2px 16px rgba(0,0,0,.7);white-space:nowrap}
.pn-banner-forest .pn-v3-banner{filter:hue-rotate(72deg) saturate(.58) brightness(.67)}
.pn-banner-violet .pn-v3-banner{filter:hue-rotate(-16deg) saturate(.95) brightness(.70)}
.pn-banner-ember .pn-v3-banner{filter:hue-rotate(130deg) saturate(.8) brightness(.72)}
.pn-banner-ocean .pn-v3-banner{filter:hue-rotate(22deg) saturate(.72) brightness(.72)}
.pn-banner-aurora .pn-v3-banner{filter:hue-rotate(52deg) saturate(.95) brightness(.78)}
.pn-banner-gold .pn-v3-banner{filter:hue-rotate(150deg) saturate(.70) brightness(.78)}
.pn-v3-summary{position:relative;min-height:154px;display:grid;grid-template-columns:118px minmax(0,1fr) minmax(310px,38%);gap:18px;padding:0 24px 21px;background:#161c24}
.pn-v3-avatar-wrap{position:relative;width:104px;height:104px;margin-top:-39px;z-index:4}
.pn-v3-avatar{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:#10161e;border:4px solid #161c24;box-shadow:0 0 0 1px rgba(83,215,249,.28),0 8px 24px rgba(0,0,0,.42);overflow:hidden}
.pn-v3-avatar svg{width:90px!important;height:90px!important;max-width:90px;max-height:90px}
.pn-v3-avatar.pn-frame-neon{box-shadow:0 0 0 2px #4edfff,0 0 18px rgba(65,220,255,.26),0 0 0 5px #161c24!important}
.pn-v3-avatar.pn-frame-gold{box-shadow:0 0 0 2px #d4a749,0 0 18px rgba(223,179,74,.22),0 0 0 5px #161c24!important}
.pn-v3-online-dot{position:absolute;right:8px;bottom:8px;width:13px;height:13px;border-radius:50%;background:#4be0a0;border:3px solid #161c24;box-shadow:0 0 8px rgba(75,224,160,.55)}
.pn-v3-identity{padding-top:20px;min-width:0}
.pn-v3-name-line{display:flex;align-items:center;gap:8px;min-width:0}
.pn-v3-name-line h2{margin:0;font:700 20px var(--font,system-ui);letter-spacing:.1px;color:#f0f5f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pn-v3-account-pill{padding:3px 7px;border-radius:5px;background:#28313b;color:#90a0ad;font-size:8px;font-weight:800;border:1px solid rgba(116,138,158,.14)}
.pn-v3-identity>small{display:block;margin-top:5px;color:#677683;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:550px}
.pn-v3-medals{display:flex;gap:8px;margin-top:18px}
.pn-v3-medal{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#131a22;border:1px solid rgba(91,114,135,.28);box-shadow:inset 0 0 0 2px rgba(21,29,38,.8);overflow:hidden;color:#637585;font-weight:900}
.pn-v3-medal svg{width:31px!important;height:31px!important;max-width:31px;max-height:31px}
.pn-v3-medal.empty{border-style:dashed;color:#465463;font-size:14px}
.pn-v3-level-block{padding-top:17px;align-self:start}
.pn-v3-level-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:7px;color:#dce8ee}
.pn-v3-level-head span{font:700 14px var(--display,var(--font,system-ui));letter-spacing:.4px}
.pn-v3-level-head span::before{content:"✦";margin-right:7px;color:#40cfff;font-size:11px}
.pn-v3-level-head small{font-size:8px;color:#697b89}
.pn-v3-xp-track{height:3px;background:#252e37;overflow:hidden;border-radius:99px}
.pn-v3-xp-track>span{display:block;height:100%;background:#32c9f3;box-shadow:0 0 8px rgba(50,201,243,.42)}
.pn-v3-stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:27px}
.pn-v3-stat-strip>div{text-align:center;padding:4px 5px;border-right:1px solid rgba(102,124,143,.10)}
.pn-v3-stat-strip>div:last-child{border-right:0}
.pn-v3-stat-strip small{display:block;font-size:7px;color:#667581;letter-spacing:.6px;margin-bottom:3px}
.pn-v3-stat-strip b{font:700 13px var(--font,system-ui);color:#d6e4eb}

.pn-v3-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:15px;padding:17px 25px 28px}
.pn-v3-primary{min-width:0}.pn-v3-page:not([hidden]){display:grid;gap:15px}
.pn-v3-card{border:1px solid rgba(101,123,143,.11);border-radius:8px;background:#151b23;padding:15px 16px;box-shadow:0 12px 28px rgba(0,0,0,.16)}
.pn-v3-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.pn-v3-card-head h3{margin:0;font:700 12px var(--font,system-ui);color:#e5edf1;letter-spacing:.15px}
.pn-v3-card-head h3 span{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:5px;border-radius:6px;background:#202832;color:#8393a0;font-size:8px;padding:0 5px}
.pn-v3-card-head button{border:0;background:transparent;color:#71818d;font:700 8.5px var(--font,system-ui);cursor:pointer;padding:5px 3px}
.pn-v3-card-head button:hover{color:#4bd9ff}
.pn-v3-best-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pn-v3-best-ach{min-height:72px;display:grid;grid-template-columns:49px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border-radius:7px;border:1px solid rgba(102,124,143,.10);background:#121820;position:relative;overflow:hidden}
.pn-v3-best-ach::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#5b6772}
.pn-v3-best-ach.featured::before{background:#40d8ff;box-shadow:0 0 10px rgba(64,216,255,.5)}
.pn-v3-best-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#1a212a;border:1px solid rgba(119,140,158,.18);font-size:20px;filter:saturate(.8)}
.pn-v3-best-ach b{display:block;font-size:9px;color:#dbe6ec;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pn-v3-best-ach small{display:block;margin-top:4px;font-size:7.5px;color:#657481;line-height:1.35}

.pn-v3-comment-compose{display:grid;grid-template-columns:34px minmax(0,1fr) 52px;gap:8px;align-items:center;margin-bottom:12px}
.pn-v3-comment-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#252d37;border:1px solid rgba(121,141,159,.16);font-size:10px;font-weight:900;color:#bccbd4}
.pn-v3-comment-avatar.self{box-shadow:0 0 0 1px rgba(55,203,244,.16)}
.pn-v3-comment-compose input{height:33px;width:100%;border:1px solid rgba(101,123,143,.13);border-radius:6px;background:#1b222b;color:#d9e4e9;padding:0 10px;outline:none;font:500 9px var(--font,system-ui)}
.pn-v3-comment-compose input:focus{border-color:rgba(65,202,242,.38)}
.pn-v3-comment-compose button{height:33px;border:1px solid rgba(63,198,238,.19);border-radius:6px;background:#1c2932;color:#87cddd;font:800 8px var(--font,system-ui);cursor:pointer}
.pn-v3-comment{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:8px 0;border-bottom:1px solid rgba(94,115,134,.07)}
.pn-v3-comment-meta{display:flex;align-items:center;gap:6px}.pn-v3-comment-meta b{font-size:8.5px;color:#cbd7dd}.pn-v3-comment-meta small{font-size:7px;color:#52616d}.pn-v3-comment p{margin:3px 0 0;color:#75848f;font-size:8.5px;line-height:1.45}
.pn-v3-feed-sep{display:flex;align-items:center;gap:8px;margin:13px 0 7px;color:#53616d;font-size:7.5px;text-transform:uppercase;letter-spacing:.7px}.pn-v3-feed-sep::before,.pn-v3-feed-sep::after{content:"";height:1px;background:rgba(100,121,140,.08);flex:1}
.pn-v3-feed-events{display:grid;gap:5px}.pn-v3-feed-event{display:grid;grid-template-columns:45px minmax(0,1fr);gap:9px;align-items:center;padding:6px;border-radius:6px;background:#131920}.pn-v3-feed-event img{width:45px;height:28px;object-fit:cover;border-radius:4px;filter:saturate(.72) brightness(.85)}.pn-v3-feed-event b{display:block;font-size:8px;color:#b8c6ce}.pn-v3-feed-event small{display:block;margin-top:2px;font-size:7px;color:#5f6e79}
.pn-v3-empty{margin:7px 0;color:#5d6b76;font-size:8.5px}
.pn-v3-intro{margin:0 0 12px!important;color:#6d7c87!important;font-size:9px!important}

.pn-v3-right-rail{display:grid;gap:15px;align-content:start}
.pn-v3-friends-card .pn-rail-friend{grid-template-columns:34px minmax(0,1fr) auto!important;padding:7px 0!important;border-bottom:1px solid rgba(101,123,143,.06)}
.pn-v3-friends-card .pn-rail-avatar{width:31px!important;height:31px!important;font-size:9px!important;background:#242c35!important;border-color:rgba(106,130,151,.14)!important}
.pn-v3-friends-card .pn-rail-avatar i{width:7px!important;height:7px!important}
.pn-v3-friends-card .pn-rail-friend b{font-size:8.5px!important;color:#cbd7dd!important}.pn-v3-friends-card .pn-rail-friend small{font-size:7px!important;color:#60707c!important}.pn-v3-friends-card .pn-rail-friend em{font-size:7px!important;color:#51ccee!important;border:1px solid rgba(69,204,240,.24);border-radius:5px;padding:2px 4px}
.pn-v3-mini-profile{padding:13px 14px}.pn-v3-mini-profile strong{display:block;margin:5px 0 3px;font-size:10px;color:#dce7ec}.pn-v3-mini-profile span{font-size:8px;color:#60707c}

/* Existing functional sub-views reskinned for V2. */
.pn-profile-v3 .pn-profile-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
.pn-profile-v3 .pn-game-progress{background:#121820!important;border-color:rgba(97,118,137,.10)!important;border-radius:7px!important;padding:10px!important;color:#ccd7dd!important}
.pn-profile-v3 .pn-game-progress:hover{border-color:rgba(67,201,239,.26)!important;background:#161f28!important}
.pn-profile-v3 .pn-achievements-heading{margin-bottom:10px}.pn-profile-v3 .pn-achievements-heading h3{font-size:12px!important}.pn-profile-v3 .pn-achievement-filters{background:#121820!important;border-color:rgba(99,121,140,.10)!important}.pn-profile-v3 .pn-achievement{background:#121820!important;border-color:rgba(99,121,140,.09)!important;border-radius:7px!important}.pn-profile-v3 .pn-achievement.earned{border-color:rgba(62,193,231,.18)!important}.pn-profile-v3 .pn-achievement-progress span{background:#42caef!important}.pn-profile-v3 .pn-achievement-symbol{background:#1a222b!important;border-color:rgba(108,131,151,.14)!important}
.pn-profile-v3 .pn-steam-activity-item{border-color:rgba(97,119,138,.08)!important}.pn-profile-v3 .pn-steam-game-cover{border-color:rgba(103,126,147,.11)!important;filter:saturate(.76)}
.pn-profile-v3 .pn-steam-friends-full{grid-template-columns:repeat(2,minmax(0,1fr))}.pn-profile-v3 .pn-steam-friend-full{background:#121820!important;border-color:rgba(98,120,139,.10)!important}.pn-profile-v3 .pn-steam-inventory-grid>div{background:#121820!important;border-color:rgba(98,120,139,.10)!important}
.pn-profile-v3 .pn-edit-label{color:#8796a2!important}.pn-profile-v3 .pn-edit-label textarea,.pn-profile-v3 .pn-edit-label select{background:#111820!important;border-color:rgba(100,123,143,.13)!important;color:#d9e5ea!important}.pn-profile-v3 .pn-profile-action{background:#1a232c!important;border-color:rgba(92,116,137,.15)!important;color:#9fb0bb!important}.pn-profile-v3 .pn-profile-action.primary{background:#19313c!important;border-color:rgba(62,198,236,.24)!important;color:#a7e6f4!important}
.pn-profile-v3 .pn-steam-fav-game>img{filter:saturate(.78) brightness(.85);border-color:rgba(94,118,139,.12)!important}.pn-profile-v3 .pn-steam-statline{border-color:rgba(94,115,134,.07)!important}.pn-profile-v3 .pn-steam-statline span{color:#64747f!important}.pn-profile-v3 .pn-steam-statline b{color:#cbd7dd!important}

@media(max-width:1000px){
  .pn-v3-shell{grid-template-columns:150px minmax(0,1fr)}
  .pn-v3-summary{grid-template-columns:104px minmax(0,1fr)}
  .pn-v3-level-block{grid-column:1/-1;padding:0 0 8px 122px;margin-top:-8px}
  .pn-v3-stat-strip{margin-top:14px}
  .pn-v3-content-grid{grid-template-columns:minmax(0,1fr) 210px}
  .pn-v3-best-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  dialog.pn-profile-v3{width:calc(100vw - 10px)!important;max-height:98vh!important}
  .pn-v3-shell{display:block}.pn-v3-sidebar{position:static;height:auto;min-height:0;padding:10px;display:block;border-right:0;border-bottom:1px solid rgba(108,130,150,.10)}
  .pn-v3-side-heading{display:none}.pn-v3-side-nav{display:flex;overflow-x:auto;gap:4px}.pn-v3-side-nav button{width:auto;white-space:nowrap;padding:9px 10px}.pn-v3-side-card,.pn-v3-edit-side{display:none}
  .pn-v3-profile-top{margin:10px 10px 0}.pn-v3-banner{height:88px}.pn-v3-summary{grid-template-columns:88px minmax(0,1fr);padding:0 13px 14px;gap:11px}.pn-v3-avatar-wrap,.pn-v3-avatar{width:82px;height:82px}.pn-v3-avatar-wrap{margin-top:-30px}.pn-v3-avatar svg{width:70px!important;height:70px!important}.pn-v3-identity{padding-top:12px}.pn-v3-name-line h2{font-size:16px}.pn-v3-level-block{padding:0;grid-column:1/-1;margin-top:0}.pn-v3-stat-strip{margin-top:12px}.pn-v3-content-grid{grid-template-columns:1fr;padding:10px}.pn-v3-right-rail{grid-template-columns:1fr 1fr}.pn-v3-friends-card{grid-column:1/-1}.pn-v3-best-grid{grid-template-columns:1fr}.pn-profile-v3 .pn-profile-game-grid,.pn-profile-v3 .pn-steam-friends-full{grid-template-columns:1fr!important}
}
@media(max-width:480px){.pn-v3-right-rail{grid-template-columns:1fr}.pn-v3-stat-strip small{font-size:6px}.pn-v3-stat-strip b{font-size:11px}.pn-v3-account-pill{display:none}.pn-v3-identity>small{white-space:normal}.pn-v3-comment-compose{grid-template-columns:30px minmax(0,1fr);}.pn-v3-comment-compose button{grid-column:2;width:60px}.pn-v3-best-ach{grid-template-columns:42px minmax(0,1fr)}.pn-v3-best-icon{width:36px;height:36px}}


/* =============================================================
   PROFILE V2.1 — full-window profile surface
   The arcade chrome disappears behind the modal; the selected
   compact profile itself becomes the entire viewport.
   ============================================================= */
dialog.pn-profile-v3{
  position:fixed!important;inset:0!important;
  width:100vw!important;max-width:none!important;
  height:100dvh!important;max-height:none!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  background:#0f141b!important;box-shadow:none!important;
  overflow:hidden!important;
}
dialog.pn-profile-v3::backdrop{background:#0f141b!important;backdrop-filter:none!important}
dialog.pn-profile-v3 #modal-content{
  width:100%!important;height:100dvh!important;max-height:none!important;
  padding:0!important;overflow:auto!important;background:#0f141b!important;
  scrollbar-gutter:stable;
}
/* Keep only a small exit control; the old modal title bar is gone. */
dialog.pn-profile-v3 .modal-head{
  position:fixed!important;top:14px!important;right:16px!important;left:auto!important;
  width:auto!important;height:auto!important;z-index:5000!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  pointer-events:none;
}
dialog.pn-profile-v3 .modal-head h2{display:none!important}
dialog.pn-profile-v3 .modal-head .close{
  pointer-events:auto!important;width:38px!important;height:38px!important;
  display:grid!important;place-items:center!important;border:1px solid rgba(118,139,160,.18)!important;
  border-radius:9px!important;background:rgba(17,23,31,.88)!important;color:#8797a4!important;
  font-size:22px!important;line-height:1!important;box-shadow:0 8px 22px rgba(0,0,0,.26)!important;backdrop-filter:blur(12px);
}
dialog.pn-profile-v3 .modal-head .close:hover{background:#202832!important;color:#fff!important;border-color:rgba(75,208,244,.30)!important}
.pn-profile-v3-body,.pn-v3-shell,.pn-v3-main{min-height:100dvh!important}
.pn-v3-shell{display:block!important;background:#0f141b!important}
.pn-v3-sidebar{display:none!important}
.pn-v3-main{width:100%!important;background:linear-gradient(180deg,#11161e 0%,#0f141b 68%,#0d1218 100%)!important;padding:28px clamp(18px,3vw,54px) 46px!important}
.pn-v3-profile-top{
  width:min(1440px,100%)!important;margin:0 auto!important;
  border-radius:10px!important;overflow:hidden!important;
}
.pn-v3-banner{height:150px!important}
.pn-v3-summary{min-height:174px!important;grid-template-columns:128px minmax(0,1fr) minmax(340px,38%)!important;padding:0 30px 24px!important}
.pn-v3-avatar-wrap,.pn-v3-avatar{width:112px!important;height:112px!important}
.pn-v3-avatar-wrap{margin-top:-43px!important}
.pn-v3-avatar svg{width:96px!important;height:96px!important;max-width:96px!important;max-height:96px!important}
.pn-v3-content-grid{
  width:min(1440px,100%)!important;margin:0 auto!important;
  grid-template-columns:minmax(0,1fr) 280px!important;gap:18px!important;
  padding:20px 0 0!important;
}
.pn-v3-card{border-radius:9px!important}
@media(max-width:1000px){
  .pn-v3-main{padding:18px 18px 34px!important}
  .pn-v3-summary{grid-template-columns:104px minmax(0,1fr)!important;padding:0 20px 18px!important}
  .pn-v3-level-block{grid-column:1/-1!important;padding:0 0 8px 122px!important;margin-top:-8px!important}
  .pn-v3-content-grid{grid-template-columns:minmax(0,1fr) 230px!important}
}
@media(max-width:760px){
  dialog.pn-profile-v3{width:100vw!important;height:100dvh!important;max-height:none!important}
  .pn-v3-main{padding:10px 10px 28px!important}
  .pn-v3-profile-top{margin:0!important;width:100%!important}
  .pn-v3-banner{height:96px!important}
  .pn-v3-summary{grid-template-columns:88px minmax(0,1fr)!important;padding:0 13px 14px!important;gap:11px!important}
  .pn-v3-avatar-wrap,.pn-v3-avatar{width:82px!important;height:82px!important}
  .pn-v3-avatar-wrap{margin-top:-30px!important}
  .pn-v3-avatar svg{width:70px!important;height:70px!important;max-width:70px!important;max-height:70px!important}
  .pn-v3-level-block{padding:0!important;grid-column:1/-1!important;margin-top:0!important}
  .pn-v3-content-grid{grid-template-columns:1fr!important;padding:10px 0 0!important}
  .pn-v3-right-rail{grid-template-columns:1fr 1fr!important}
  .pn-v3-friends-card{grid-column:1/-1!important}
  dialog.pn-profile-v3 .modal-head{top:9px!important;right:9px!important}
}
@media(max-width:480px){.pn-v3-right-rail{grid-template-columns:1fr!important}}


/* =============================================================
   PROFILE V2.2 — compact profile window + direct picture/cover edit
   ============================================================= */
dialog.pn-profile-v3{
  position:fixed!important;inset:0!important;
  width:min(860px,calc(100vw - 28px))!important;max-width:860px!important;
  height:auto!important;max-height:88vh!important;
  margin:auto!important;padding:0!important;
  border:1px solid rgba(92,116,137,.28)!important;border-radius:13px!important;
  background:#11161e!important;box-shadow:0 30px 100px rgba(0,0,0,.72)!important;
  overflow:hidden!important;
}
dialog.pn-profile-v3::backdrop{background:rgba(0,3,8,.78)!important;backdrop-filter:blur(7px)!important}
dialog.pn-profile-v3 #modal-content{width:100%!important;height:auto!important;max-height:88vh!important;padding:0!important;overflow:auto!important;background:#11161e!important}
dialog.pn-profile-v3 .modal-head{position:sticky!important;top:0!important;right:auto!important;left:auto!important;width:100%!important;height:38px!important;z-index:5000!important;margin:0!important;padding:0 10px 0 16px!important;border-bottom:1px solid rgba(103,126,147,.10)!important;background:#151a22!important;pointer-events:auto!important}
dialog.pn-profile-v3 .modal-head h2{display:block!important;font-size:10px!important}
dialog.pn-profile-v3 .modal-head .close{width:29px!important;height:29px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
.pn-profile-v3-body,.pn-v3-shell,.pn-v3-main{min-height:0!important}
.pn-v3-shell{display:block!important;background:#11161e!important}
.pn-v3-sidebar{display:none!important}
.pn-v3-main{width:100%!important;min-height:0!important;background:linear-gradient(180deg,#11161e,#0f141b)!important;padding:0 0 18px!important}
.pn-v3-profile-top{width:auto!important;margin:12px 14px 0!important;border-radius:9px!important}
.pn-v3-banner{height:102px!important;background-position:center 42%!important}
.pn-v3-summary{min-height:142px!important;grid-template-columns:105px minmax(0,1fr) minmax(245px,36%)!important;gap:14px!important;padding:0 18px 16px!important}
.pn-v3-avatar-wrap,.pn-v3-avatar{width:92px!important;height:92px!important}
.pn-v3-avatar-wrap{margin-top:-34px!important}
.pn-v3-avatar svg{width:78px!important;height:78px!important;max-width:78px!important;max-height:78px!important}
.pn-v3-identity{padding-top:16px!important}.pn-v3-name-line h2{font-size:18px!important}.pn-v3-identity>small{max-width:390px}
.pn-v3-medals{margin-top:14px}.pn-v3-medal{width:34px;height:34px}.pn-v3-medal svg{width:27px!important;height:27px!important}
.pn-v3-level-block{padding-top:14px!important}.pn-v3-stat-strip{margin-top:22px!important}.pn-v3-stat-strip b{font-size:12px!important}
.pn-v3-content-grid{width:auto!important;margin:0!important;grid-template-columns:minmax(0,1fr) 210px!important;gap:12px!important;padding:10px 14px 0!important}
.pn-v3-card{padding:13px 14px!important}.pn-v3-best-ach{min-height:66px;padding:8px}.pn-v3-best-grid{gap:7px}
.pn-v3-header-edit{margin-left:auto;border:1px solid rgba(68,202,239,.18);border-radius:6px;background:#1b2530;color:#9dc3d0;font:800 8px var(--font,system-ui);padding:5px 8px;cursor:pointer}.pn-v3-header-edit:hover{color:#fff;border-color:rgba(70,211,248,.36)}
.pn-v3-mini-nav{display:flex;gap:4px;margin:9px 14px 0;padding:5px;border:1px solid rgba(101,123,143,.10);border-radius:8px;background:#151b23;overflow-x:auto}.pn-v3-mini-nav button{border:0;border-radius:6px;background:transparent;color:#71818e;font:800 9px var(--font,system-ui);padding:7px 10px;cursor:pointer}.pn-v3-mini-nav button:hover{color:#dbe7ed;background:#1b232c}.pn-v3-mini-nav button.active{color:#eaf9ff;background:#1d2c36;box-shadow:inset 0 -2px #42cdf3}
.pn-v3-avatar-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.pn-v3-avatar-choice{min-width:0;border:1px solid rgba(97,119,138,.12);border-radius:8px;background:#121820;color:#718493;padding:8px 4px;cursor:pointer;display:grid;place-items:center;gap:4px}.pn-v3-avatar-choice:hover{border-color:rgba(64,204,241,.32);background:#17212a}.pn-v3-avatar-choice.selected{border-color:#42cef4;box-shadow:0 0 0 1px rgba(66,206,244,.20),0 0 16px rgba(66,206,244,.08)}.pn-v3-avatar-choice svg{width:42px!important;height:42px!important}.pn-v3-avatar-choice small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}
.pn-v3-edit-section{padding:11px 0 14px;border-bottom:1px solid rgba(101,123,143,.08)}.pn-v3-edit-title b{display:block;color:#dce7ec;font-size:10px}.pn-v3-edit-title span{display:block;color:#657783;font-size:8px;margin-top:2px}.pn-v3-cover-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.pn-demo-row{opacity:.92}.pn-demo-row::after{content:'PREVIEW';margin-left:auto;color:#556570;font-size:6px;letter-spacing:.8px;font-weight:900}
.pn-v3-best-ach.pn-demo-row::after{position:absolute;right:6px;top:5px}
.pn-v3-feed-event.pn-demo-row::after{align-self:center}
.pn-v3-friends-card .pn-rail-avatar svg{width:25px!important;height:25px!important;max-width:25px;max-height:25px}
@media(max-width:760px){
  dialog.pn-profile-v3{width:calc(100vw - 10px)!important;max-height:96vh!important}
  dialog.pn-profile-v3 #modal-content{max-height:96vh!important}
  .pn-v3-profile-top{margin:8px 8px 0!important}.pn-v3-banner{height:84px!important}
  .pn-v3-summary{grid-template-columns:82px minmax(0,1fr)!important;padding:0 12px 12px!important;gap:9px!important}.pn-v3-avatar-wrap,.pn-v3-avatar{width:74px!important;height:74px!important}.pn-v3-avatar-wrap{margin-top:-27px!important}.pn-v3-avatar svg{width:63px!important;height:63px!important;max-width:63px!important;max-height:63px!important}.pn-v3-level-block{grid-column:1/-1!important;padding:0!important;margin-top:0!important}.pn-v3-content-grid{grid-template-columns:1fr!important;padding:8px!important}.pn-v3-right-rail{grid-template-columns:1fr 1fr!important}.pn-v3-friends-card{grid-column:1/-1!important}.pn-v3-mini-nav{margin:7px 8px 0}.pn-v3-avatar-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:480px){.pn-v3-right-rail{grid-template-columns:1fr!important}.pn-v3-avatar-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.pn-v3-summary{grid-template-columns:74px minmax(0,1fr)!important}.pn-v3-level-head span{font-size:12px!important}.pn-v3-name-line h2{font-size:15px!important}}


/* PROFILE refresh — stronger compact gaming profile window */
dialog.pn-profile-v3{width:min(1120px,calc(100vw - 28px))!important;max-width:1120px!important;border:1px solid rgba(71,206,255,.22)!important;border-radius:22px!important;box-shadow:0 28px 90px rgba(0,0,0,.58),0 0 42px rgba(49,210,255,.08)!important;background:rgba(6,13,24,.86)!important;overflow:hidden!important}
dialog.pn-profile-v3::backdrop{background:rgba(2,5,12,.72)!important;backdrop-filter:blur(8px)!important}
dialog.pn-profile-v3 #modal-content{background:linear-gradient(180deg,rgba(4,9,18,.96),rgba(6,13,24,.96))!important;max-height:92vh!important;overflow:auto!important}
dialog.pn-profile-v3 .modal-head{padding:14px 18px!important;background:linear-gradient(180deg,rgba(11,18,33,.96),rgba(7,12,22,.96))!important;border-bottom:1px solid rgba(77,210,255,.12)!important}
dialog.pn-profile-v3 .modal-head h2{display:block!important;font:800 12px var(--display,var(--font,system-ui))!important;letter-spacing:2px!important;color:#ebf8ff!important}
dialog.pn-profile-v3 .modal-head .close{background:rgba(20,29,46,.72)!important;border:1px solid rgba(78,214,255,.16)!important;color:#9fb4c2!important;border-radius:10px!important}
dialog.pn-profile-v3 .modal-head .close:hover{background:rgba(32,44,66,.95)!important;color:#fff!important}

.pn-profile-v3-body{background:radial-gradient(circle at top right,rgba(161,61,255,.08),transparent 25%),linear-gradient(180deg,#09111d,#0c1522 38%,#0b121e)!important;color:#eaf7ff!important}
.pn-v3-shell{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;min-height:unset!important}
.pn-v3-sidebar{background:linear-gradient(180deg,rgba(11,18,31,.9),rgba(7,13,24,.86))!important;border-right:1px solid rgba(76,213,255,.10)!important;padding:18px 14px!important}
.pn-v3-side-heading{color:#8bc9df!important;letter-spacing:2px!important}
.pn-v3-side-nav button{border:1px solid transparent!important;border-radius:12px!important;color:#a9bdcb!important;padding:11px 12px!important;transition:.2s ease}
.pn-v3-side-nav button:hover{background:rgba(40,216,255,.06)!important;color:#f1fbff!important}
.pn-v3-side-nav button.active{background:linear-gradient(90deg,rgba(42,216,255,.18),rgba(180,63,255,.12))!important;border-color:rgba(84,222,255,.20)!important;color:#fff!important;box-shadow:none!important}
.pn-v3-side-card,.pn-v3-card{border:1px solid rgba(78,208,255,.11)!important;background:linear-gradient(180deg,rgba(10,18,31,.94),rgba(10,17,29,.92))!important;box-shadow:0 16px 40px rgba(0,0,0,.26)!important}
.pn-v3-side-card{border-radius:16px!important;padding:14px!important}
.pn-v3-edit-side{border-radius:12px!important;border:1px solid rgba(84,220,255,.24)!important;background:linear-gradient(90deg,rgba(36,214,255,.16),rgba(179,67,255,.12))!important;color:#effbff!important}
.pn-v3-main{padding:0 0 16px!important}
.pn-v3-profile-top{margin:18px 18px 0!important;border-radius:20px!important;overflow:hidden!important;border:1px solid rgba(84,213,255,.18)!important;background:linear-gradient(140deg,rgba(10,18,33,.95),rgba(18,16,39,.9) 60%,rgba(8,17,30,.96))!important;box-shadow:0 22px 50px rgba(0,0,0,.34)!important}
.pn-v3-banner{height:156px!important;display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;padding:18px 18px 0!important;background:linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,.08)),radial-gradient(circle at top right,rgba(196,75,255,.25),transparent 30%),url('../assets/hub-bg.jpg') center/cover!important;position:relative!important}
.pn-v3-banner::after{content:'';position:absolute;left:0;right:0;bottom:0;height:60%;background:linear-gradient(to top,rgba(5,11,19,.88),transparent)}
.pn-v3-banner span{position:relative;z-index:1;background:rgba(8,16,29,.62);border:1px solid rgba(92,220,255,.14);padding:8px 12px;border-radius:999px;font-size:11px;letter-spacing:1.6px;color:#d9f5ff}
.pn-v3-summary{grid-template-columns:120px minmax(0,1fr) 270px!important;gap:18px!important;padding:0 20px 18px!important;position:relative!important}
.pn-v3-avatar-wrap{margin-top:-42px!important;position:relative!important}
.pn-v3-avatar{width:108px!important;height:108px!important;border:4px solid rgba(8,15,26,.96)!important;box-shadow:0 0 0 1px rgba(86,218,255,.22),0 18px 34px rgba(0,0,0,.26)!important;background:#0c1320!important}
.pn-v3-avatar svg{width:92px!important;height:92px!important}
.pn-v3-avatar-edit{position:absolute;right:-4px;bottom:8px;width:32px;height:32px;border-radius:50%;border:1px solid rgba(86,220,255,.26);background:linear-gradient(180deg,#182435,#101925);color:#ebf9ff;cursor:pointer;display:grid;place-items:center;font-size:14px;box-shadow:0 6px 18px rgba(0,0,0,.22)}
.pn-v3-avatar-edit:hover{background:linear-gradient(180deg,#213148,#152132)}
.pn-v3-online-dot{right:4px!important;bottom:6px!important;border-width:3px!important}
.pn-v3-identity{padding-top:10px!important}
.pn-v3-name-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.pn-v3-name-line h2{font-size:28px!important;line-height:1.05!important;margin:0!important}
.pn-v3-account-pill{background:rgba(28,42,62,.72)!important;border:1px solid rgba(87,219,255,.14)!important;color:#89deff!important}
.pn-v3-header-edit,.pn-v3-header-cover,.pn-v3-card-head button,#pn-cancel-edit{border:1px solid rgba(85,216,255,.14)!important;background:rgba(16,26,41,.84)!important;color:#dff6ff!important;border-radius:10px!important;padding:8px 12px!important;font-size:11px!important}
.pn-v3-header-edit:hover,.pn-v3-header-cover:hover,.pn-v3-card-head button:hover,#pn-cancel-edit:hover{background:rgba(22,36,56,.98)!important}
.pn-v3-identity>small{display:block;color:#9eb2c2!important;font-size:12px!important;line-height:1.45!important;margin-top:8px!important}
.pn-v3-medals{margin-top:14px!important;gap:10px!important}
.pn-v3-medal{width:54px!important;height:54px!important;border-radius:14px!important;background:linear-gradient(145deg,#122135,#20153c)!important;border:1px solid rgba(95,222,255,.16)!important;box-shadow:inset 0 0 18px rgba(70,212,255,.04)!important}
.pn-v3-level-block{padding-top:14px!important}
.pn-v3-level-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.pn-v3-level-head span{font-size:14px!important;letter-spacing:1px!important;color:#ebf8ff!important}
.pn-v3-level-head small{font-size:11px!important;color:#8ba0b1!important}
.pn-v3-xp-track{height:10px!important;border-radius:999px!important;background:#182738!important;border:1px solid rgba(83,117,149,.18)!important;overflow:hidden!important}
.pn-v3-xp-track span{background:linear-gradient(90deg,#39dbff,#ae54ff)!important;box-shadow:0 0 12px rgba(57,219,255,.24)!important}
.pn-v3-stat-strip{margin-top:14px!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important}
.pn-v3-stat-strip>div{background:rgba(13,22,36,.86)!important;border:1px solid rgba(81,211,255,.10)!important;border-radius:14px!important;padding:10px 12px!important}
.pn-v3-stat-strip small{display:block;color:#71899d!important;font-size:10px!important;letter-spacing:1.2px!important;margin-bottom:6px}
.pn-v3-stat-strip b{font-size:18px!important;color:#eefaff!important}
.pn-v3-mini-nav{margin:14px 18px 0!important;padding:8px!important;border-radius:16px!important;background:rgba(10,18,31,.84)!important;border:1px solid rgba(78,211,255,.12)!important;gap:8px!important}
.pn-v3-mini-nav button{border-radius:10px!important;padding:10px 14px!important;color:#9bb1c1!important}
.pn-v3-mini-nav button.active{background:linear-gradient(90deg,rgba(39,217,255,.18),rgba(173,67,255,.14))!important;color:#fff!important}
.pn-v3-content-grid{padding:14px 18px!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:14px!important}
.pn-v3-card{border-radius:18px!important;padding:16px 16px 17px!important}
.pn-v3-card-head{padding-bottom:12px!important;margin-bottom:14px!important;border-bottom:1px solid rgba(79,211,255,.08)!important}
.pn-v3-card-head h3{font-size:15px!important;letter-spacing:.2px!important}
.pn-v3-card-head h3 span{color:#7fdfff!important}
.pn-v3-rail-intro,.pn-v3-intro{color:#7f94a4!important;font-size:11px!important;margin:-3px 0 12px!important}
.pn-v3-best-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.pn-v3-best-ach{border-radius:16px!important;background:linear-gradient(145deg,#121f35,#191833)!important;border:1px solid rgba(88,216,255,.13)!important;padding:14px!important;min-height:92px!important;align-items:flex-start!important}
.pn-v3-best-ach.featured{background:linear-gradient(145deg,rgba(24,44,72,.98),rgba(43,21,73,.95))!important;border-color:rgba(95,221,255,.24)!important}
.pn-v3-best-icon{width:54px!important;height:54px!important;border-radius:14px!important;background:rgba(8,15,24,.46)!important;border:1px solid rgba(90,219,255,.18)!important;font-size:22px!important}
.pn-v3-games-grid{display:grid;gap:10px!important}
.pn-v3-game-tile{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:center;width:100%;padding:10px!important;border-radius:14px!important;border:1px solid rgba(84,215,255,.10)!important;background:rgba(13,21,35,.86)!important;color:#eef8ff!important;text-align:left;cursor:pointer}
.pn-v3-game-tile:hover{background:rgba(16,27,45,.98)!important;border-color:rgba(96,226,255,.24)!important}
.pn-v3-game-tile img{width:100px;height:64px;object-fit:cover;border-radius:10px;border:1px solid rgba(88,120,150,.18)}
.pn-v3-game-tile b{display:block;font-size:13px;margin-bottom:4px}.pn-v3-game-tile small{color:#91a7b7;font-size:11px;line-height:1.35}
.pn-v3-comments .pn-v3-comment-compose{background:rgba(12,20,33,.9)!important;border:1px solid rgba(86,211,255,.10)!important;border-radius:14px!important;padding:10px!important}
.pn-v3-comment-compose input{background:transparent!important;color:#eaf7ff!important}
.pn-v3-comment-compose button{border-radius:10px!important;background:linear-gradient(90deg,#34d9ff,#9d54ff)!important;color:#fff!important;border:0!important;padding:9px 14px!important}
.pn-v3-comment{padding:11px 0!important;border-bottom:1px solid rgba(75,206,255,.06)!important}
.pn-v3-feed-events{display:grid;gap:10px!important}.pn-v3-feed-event{background:rgba(12,20,33,.84)!important;border:1px solid rgba(85,208,255,.10)!important;border-radius:14px!important;padding:10px!important}
.pn-v3-feed-event img,.pn-steam-game-cover{border-radius:10px!important;border:1px solid rgba(83,116,144,.18)!important;filter:saturate(.9)}
.pn-v3-right-rail{gap:14px!important}
.pn-v3-friends-card .pn-rail-friend,.pn-steam-friend-full{background:rgba(12,20,33,.84)!important;border:1px solid rgba(85,208,255,.10)!important;border-radius:14px!important;padding:10px 11px!important}
.pn-steam-friends-full{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.pn-steam-friend-avatar,.pn-rail-avatar{width:42px!important;height:42px!important;border-radius:50%!important;background:linear-gradient(145deg,#18314f,#4f1e67)!important;border:1px solid rgba(92,221,255,.28)!important;display:grid!important;place-items:center!important;overflow:hidden!important}
.pn-v3-mini-profile strong{font-size:12px!important;color:#edfaff!important}.pn-v3-mini-profile span{font-size:10px!important;color:#7d95a6!important}
.pn-v3-edit-section{background:rgba(12,20,33,.84)!important;border:1px solid rgba(84,209,255,.10)!important;border-radius:14px!important;padding:14px!important;margin-bottom:14px!important}
.pn-v3-avatar-picker{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(86px,1fr))!important;gap:10px!important}
.pn-v3-avatar-choice{background:rgba(16,26,41,.86)!important;border:1px solid rgba(86,214,255,.12)!important;border-radius:14px!important;color:#ebf7ff!important;padding:10px 8px!important}.pn-v3-avatar-choice.selected{border-color:rgba(89,223,255,.36)!important;box-shadow:0 0 0 1px rgba(89,223,255,.18) inset}
.pn-v3-cover-actions{display:flex;gap:10px;flex-wrap:wrap}
.pn-profile-v3 .pn-edit-label textarea,.pn-profile-v3 .pn-edit-label select{border-radius:12px!important;padding:10px 12px!important;background:#101927!important;color:#e8f7ff!important;border:1px solid rgba(84,208,255,.12)!important}
.pn-profile-about-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
@media(max-width:980px){.pn-v3-shell{grid-template-columns:1fr!important}.pn-v3-sidebar{border-right:0!important;border-bottom:1px solid rgba(78,211,255,.10)!important}.pn-v3-content-grid{grid-template-columns:1fr!important}.pn-v3-right-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pn-v3-summary{grid-template-columns:110px minmax(0,1fr)!important}.pn-v3-level-block{grid-column:1/-1!important;padding-top:0!important}}
@media(max-width:720px){dialog.pn-profile-v3{width:calc(100vw - 10px)!important}.pn-v3-profile-top{margin:10px 10px 0!important}.pn-v3-banner{height:110px!important}.pn-v3-summary{grid-template-columns:88px minmax(0,1fr)!important;padding:0 12px 14px!important}.pn-v3-avatar{width:84px!important;height:84px!important}.pn-v3-avatar svg{width:70px!important;height:70px!important}.pn-v3-name-line h2{font-size:20px!important}.pn-v3-stat-strip{grid-template-columns:1fr 1fr 1fr!important}.pn-v3-content-grid{padding:10px!important}.pn-v3-best-grid{grid-template-columns:1fr!important}.pn-v3-right-rail{grid-template-columns:1fr!important}.pn-v3-sidebar{padding:12px!important}.pn-v3-side-nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.pn-v3-game-tile{grid-template-columns:78px minmax(0,1fr)!important}.pn-v3-game-tile img{width:78px!important;height:54px!important}}

/* HOTFIX: compact profile has no left profile sidebar. Keep main content full width. */
dialog.pn-profile-v3 .pn-v3-shell{display:block!important;grid-template-columns:none!important;width:100%!important}
dialog.pn-profile-v3 .pn-v3-sidebar{display:none!important}
dialog.pn-profile-v3 .pn-v3-main{display:block!important;grid-column:1/-1!important;width:100%!important;min-width:0!important}
