/* NOBK Online profile, second layout (profile2.js). [profile2]  One theme for every profile; the top card's pattern and colour wash are the player's pick (LOOK in profile2.js). */
body.p2 { --p2-bg: #0f0f10; --p2-panel: #16161a; --p2-panel2: #1e1e22; --p2-line: #2b2b2e; --p2-gold: #ffc44a; --p2-acc: #ffc44a; --p2-banner: none; --p2-r: 14px;
  --p2-bgimg: radial-gradient(520px 260px at 12% 0%, color-mix(in srgb, var(--p2-acc) 20%, transparent), transparent 70%); }
body.p2 .pcover { border-radius: var(--p2-r); background: var(--p2-banner), var(--p2-bgimg), var(--p2-bg); border-color: var(--p2-line); border-top: 3px solid var(--p2-acc); }
body.p2 .pcmain .avatar.big { box-shadow: 0 0 0 3px var(--p2-bg), 0 0 0 5px var(--p2-acc); }
.p2-tag { margin: 4px 0 8px; color: var(--muted, #9aa3b2); font-size: 14px; overflow-wrap: anywhere; }
body.p2-no-favs .pcover .showcase, body.p2-no-activity #p2-act, body.p2-no-showcase #p2-show, body.p2-no-ranks #p2-ranks, body.p2-no-friends #p2-fr { display: none !important; }
body.p2 .pcover::before { display: none; }
/* favourites: crest and faces as big as the superstar, in the middle of their block */
body.p2 .showcase .shblock:not(.wide) .shrow { align-items: center; gap: 10px; }
body.p2 .showcase .fp { width: 96px; }
body.p2 .showcase .fp .face.lg, body.p2 .showcase .fp .crest.lg { width: 92px; height: 92px; }
body.p2 .showcase .fp .crest.lg b { font-size: 24px; }
body.p2 .showcase .fp b { font-size: 13px; }
body.p2 .showcase .fp.wwe { width: auto; }
body.p2 .showcase .p2-carfav .fp { width: 170px; color: inherit; text-decoration: none; }
body.p2 .showcase .p2-carfav .fp b { white-space: normal; }
.p2-car { display: block; width: 160px; height: 92px; overflow: hidden; }
.p2-car img { width: 160px; height: 160px; margin-top: -34px; object-fit: contain; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); transition: transform .15s; }
body.p2 .showcase .p2-carfav a.fp:hover .p2-car img { transform: scale(1.06); }
body.p2 .showcase .p2-carfav a.fp:focus-visible { outline: 2px solid var(--p2-acc); outline-offset: 4px; border-radius: 8px; }
body.p2 .showcase .p2-mkfav .fp { width: 110px; color: inherit; text-decoration: none; }
body.p2 .showcase .p2-mkfav .face.lg { background: radial-gradient(circle at 50% 30%, #4a1512, #140808); box-shadow: 0 0 0 2px var(--p2-panel, #17171a), 0 0 0 3px #a8431f; }
body.p2 .showcase .p2-mkfav .face.lg img { height: 100%; }
body.p2 .showcase .p2-mkfav a.fp:hover .face.lg { box-shadow: 0 0 0 2px var(--p2-panel, #17171a), 0 0 0 3px var(--p2-acc); }
body.p2 .showcase .p2-mkfav a.fp:focus-visible { outline: 2px solid var(--p2-acc); outline-offset: 4px; border-radius: 8px; }
@media (max-width: 640px) { body.p2 .showcase .fp { width: 84px; } body.p2 .showcase .fp .face.lg, body.p2 .showcase .fp .crest.lg { width: 76px; height: 76px; } }
body.p2 .pcover .gamebar { display: none; }
body.p2 .pcinfo h1 { color: #fff; }
body.p2 .pcinfo .slinks { margin-top: 12px; }
body.p2 #gamebody, body.p2 #pg-frames { display: none; }
body.p2 .p2-game.open .p2-slot #gamebody, body.p2 .p2-game.open .p2-slot #pg-frames { display: block; }

#p2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 20px; }
.p2-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.p2-side { flex: 1 1 270px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.p2-box { background: var(--p2-panel); border: 1px solid var(--p2-line); border-radius: var(--p2-r); padding: 18px 20px; min-width: 0; }
.p2-box.flush { padding: 0; overflow: hidden; }
.p2-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.p2-box.flush > .p2-h { margin: 0; padding: 13px 20px; background: var(--p2-panel2); border-bottom: 1px solid var(--p2-line); }
.p2-h h2 { margin: 0; font: 800 21px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.p2-h h2::before { content: none; }
.p2-h span, .p2-dim { color: var(--muted, #9aa3b2); font-size: 13px; }
.p2-cap { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #9aa3b2); margin-bottom: 12px; display: flex; justify-content: space-between; }
.p2-cap b { color: var(--text, #fff); font-size: 13px; letter-spacing: 0; }
.p2-wait { padding: 26px 20px; color: var(--muted, #9aa3b2); text-align: center; }

.p2-game { padding: 18px 20px; border-bottom: 1px solid var(--p2-line); }
.p2-game[hidden] { display: none; }
.p2-top { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.p2-art { position: relative; flex: none; width: 184px; height: 69px; border-radius: 6px; overflow: hidden; background: var(--p2-panel2); display: block; }
.p2-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p2-art > i { display: none; }
.p2-art > .p2-logo { position: absolute; inset: 0; margin: auto; width: auto; height: 78%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); }
.p2-art.noart > .p2-logo { display: none; }
a.p2-art { transition: filter .15s, box-shadow .15s; } a.p2-art:hover { filter: brightness(1.15); box-shadow: 0 0 0 2px var(--p2-acc); }
a.p2-art:focus-visible, .p2-name a:focus-visible { outline: 2px solid var(--p2-acc); outline-offset: 2px; }
.p2-name a { color: inherit; text-decoration: none; } .p2-name a:hover b { text-decoration: underline; }
.p2-art.noart > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-style: normal; }
.p2-art.noart > i img { width: 30px; height: 30px; object-fit: contain; }
.p2-art.noart > i b { font: 800 20px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.p2-name { flex: 999 1 180px; min-width: 0; }
.p2-name b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.p2-name small.on { color: #3ddc84; font-size: 12.5px; font-weight: 600; }
.p2-rec { flex: 1 1 150px; text-align: right; color: var(--muted, #9aa3b2); font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.p2-rec b { font-size: 14.5px; font-weight: 700; color: var(--text, #fff); }
.p2-bot { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 10px; background: var(--p2-bg); }
.p2-ach { flex: 999 1 240px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.p2-achbar { flex: 999 1 200px; min-width: 0; }
.p2-achbar b { font-size: 13.5px; font-weight: 600; }
.p2-achbar .bar, .p2-rt .bar { height: 8px; border-radius: 99px; background: #26262b; margin-top: 7px; overflow: hidden; }
.p2-achbar .bar i { display: block; height: 100%; border-radius: 99px; background: var(--p2-acc); }
.p2-icons { display: flex; gap: 6px; align-items: center; }
.p2-ic { position: relative; display: block; width: 40px; height: 40px; border-radius: 8px; outline: 0; }
.p2-ic > img { width: 100%; height: 100%; border-radius: 8px; background: var(--p2-panel2); object-fit: cover; display: block; transition: transform .12s; }
.p2-ic:hover > img, .p2-ic:focus-visible > img { transform: scale(1.08); box-shadow: 0 0 0 2px var(--p2-acc); }
.p2-plus { height: 40px; min-width: 40px; padding: 0 9px; border-radius: 8px; background: var(--p2-panel2); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
/* achievement name + description, as soon as the pointer is on the icon (also on keyboard focus / tap) */
.p2-tip { position: absolute; z-index: 5; bottom: calc(100% + 10px); right: -6px; width: max-content; max-width: min(260px, 70vw); padding: 9px 12px; border-radius: 9px;
  background: #0b0b0d; border: 1px solid #3a3a40; box-shadow: 0 10px 28px rgba(0,0,0,.55); color: #c7cede; font-size: 12.5px; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .1s, transform .1s; pointer-events: none; }
.p2-tip b { display: block; color: var(--text, #fff); font-size: 13.5px; margin-bottom: 2px; }
.p2-tip::after { content: ""; position: absolute; top: 100%; right: 20px; border: 6px solid transparent; border-top-color: #3a3a40; }
.p2-ic:hover > .p2-tip, .p2-ic:focus > .p2-tip { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .p2-tip, .p2-ic > img { transition: none; } }
.p2-btn { flex: none; min-height: 44px; padding: 0 18px; border-radius: 9px; border: 1px solid #3a3a40; background: var(--p2-panel2); color: var(--text, #fff);
  font: 700 14px/1 inherit; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; margin-left: auto; }
.p2-btn:hover { border-color: var(--p2-acc); }
.p2-btn:focus-visible, #p2-all:focus-visible { outline: 2px solid var(--p2-acc); outline-offset: 2px; }
.p2-slot { display: none; }
.p2-game.open .p2-slot { display: block; margin-top: 14px; padding-top: 6px; border-top: 1px dashed var(--p2-line); }
.p2-foot { padding: 12px 20px; display: flex; justify-content: flex-end; min-height: 20px; }
.p2-foot:empty { display: none; }
.p2-game:last-of-type { border-bottom: 0; }
#p2-all { background: none; border: 0; color: var(--text, #fff); font: 700 13.5px inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.p2-rings { display: flex; flex-wrap: wrap; gap: 10px; }
.p2-ring { position: relative; overflow: hidden; flex: 1 1 130px; max-width: 220px; min-width: 0; text-align: center; padding: 16px 8px 14px; border-radius: 12px; background: var(--p2-bg); }
.p2-dial { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--p2-acc) var(--pc, 0%), #26262b 0); }
.p2-dial span { width: 80px; height: 80px; border-radius: 50%; background: var(--p2-bg); display: grid; place-items: center; }
.p2-dial img { width: 44px; height: 44px; object-fit: contain; }
.p2-rn { margin-top: 10px; font: 800 18px/1.1 "Barlow Condensed", sans-serif; color: var(--muted, #9aa3b2); font-variant-numeric: tabular-nums; }
.p2-rn em { font-style: normal; font-size: 26px; color: var(--text, #fff); }
.p2-ring b { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #c7cede; overflow-wrap: anywhere; }
.p2-ring small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #9aa3b2); }
/* platinum: every achievement of the game */
.p2-ring.plat { background: linear-gradient(160deg, #1b2533, #101318); box-shadow: inset 0 0 0 1px #cfe6ff, 0 8px 26px rgba(120,180,255,.25); }
.p2-ring.plat .p2-dial { background: conic-gradient(#cfe6ff, #ffffff, #9fc4ff, #cfe6ff); }
.p2-ring.plat .p2-dial span { background: #141b26; }
.p2-ring.plat em, .p2-ring.plat b { color: #e6f2ff; }
.p2-ring.plat i { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 99px; font: 800 10.5px/1.4 Inter, sans-serif; letter-spacing: .12em; font-style: normal; color: #0e1620; background: linear-gradient(90deg, #cfe6ff, #ffffff, #b9d4f5); }
.p2-ring.plat::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); animation: p2shine 3.8s ease-in-out infinite; }
#pcomments.p2-wall { margin: 0; }
.p2-state { font: 800 26px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--muted, #9aa3b2); margin-bottom: 10px; }
.p2-state.on { color: #3ddc84; margin-bottom: 2px; }
.p2-state.on + .p2-dim { margin-bottom: 10px; }
.p2-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--p2-line); font-size: 14.5px; font-weight: 600; }
.p2-row b { font: 800 22px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }

.p2-ranklist { display: flex; flex-direction: column; gap: 10px; }
.p2-rank { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--p2-line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 16%, var(--p2-panel2)), var(--p2-panel2)); }
.p2-emb { flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.p2-emb img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.p2-rt { min-width: 0; flex: 1; }
.p2-rt small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #9aa3b2); }
.p2-rt > div:first-of-type { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p2-rt b { font: 800 24px/1.15 "Barlow Condensed", sans-serif; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.p2-rt b.dv { color: var(--rc); }
.p2-rt i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted, #9aa3b2); }
.p2-rt span { display: block; font-size: 12px; color: var(--muted, #9aa3b2); margin-top: 2px; }
.p2-rt .bar { height: 6px; }
.p2-rt .bar i { display: block; height: 100%; border-radius: 99px; background: var(--rc); }
/* top 10: the big card. Div 1: a light runs over it */
.p2-rank.top, .p2-rank.d1 { flex-direction: column; align-items: stretch; padding: 0 0 14px; border-color: var(--p2-gold);
  box-shadow: 0 0 0 3px rgba(255,196,74,.14), 0 10px 30px color-mix(in srgb, var(--rc) 28%, transparent); }
.p2-rank.d1:not(.top) { border-color: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 18%, transparent), 0 10px 30px color-mix(in srgb, var(--rc) 28%, transparent); }
.p2-rank.top .p2-emb, .p2-rank.d1 .p2-emb { width: auto; height: 132px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 45%, transparent), transparent 68%); }
.p2-rank.top .p2-emb img, .p2-rank.d1 .p2-emb img { max-height: 118px; }
.p2-rank.top .p2-rt, .p2-rank.d1 .p2-rt { padding: 0 14px; }
.p2-rank.top .p2-rt b, .p2-rank.d1 .p2-rt b { font-size: 30px; }
.p2-rib { position: absolute; right: -34px; top: 14px; transform: rotate(40deg); background: var(--p2-gold); color: #2a1a00; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 40px; z-index: 1; }
.p2-rank.d1::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); animation: p2shine 4.5s ease-in-out infinite; }
@keyframes p2shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.p2-friend { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text, #fff); text-decoration: none; }
.p2-friend .avatar { width: 36px; height: 36px; border-radius: 9px; flex: none; font-size: 16px; }
.p2-friend span { min-width: 0; }
.p2-friend b { display: block; font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2-friend small { font-size: 12px; color: var(--muted, #9aa3b2); }
.p2-friend.on small { color: #3ddc84; }
.p2-friend:hover b { text-decoration: underline; }
@media (max-width: 640px) { .p2-art { width: 138px; height: 52px; } .p2-tip { right: auto; left: -6px; } .p2-tip::after { right: auto; left: 20px; } .p2-rec { text-align: left; flex-basis: 100%; } .p2-btn { margin-left: 0; width: 100%; justify-content: center; } .p2-game, .p2-box.flush > .p2-h { padding-left: 14px; padding-right: 14px; } }
@media (prefers-reduced-motion: reduce) { .p2-rank.d1::after, .p2-ring.plat::after { animation: none; display: none; } }
