/* Playority Community 1.0 — scoped UI, existing navy/slate/cyan palette. */
.ply-community-surface{--pc-bg:#2d3f52;--pc-soft:#233346;--pc-text:#f3f0f7;--pc-muted:#d6d3e7;--pc-line:rgba(191,202,211,.22);--pc-accent:#00d1ff;color:var(--pc-text);font-size:15px;line-height:1.55;min-width:0;scroll-margin-top:100px}
.ply-community-surface *{box-sizing:border-box}
.ply-community-surface button,.ply-community-surface select,.ply-community-surface textarea{font:inherit;color:var(--pc-text);background:var(--pc-soft);border:1px solid var(--pc-line);border-radius:9px;box-shadow:none;max-width:100%;padding:8px 12px;line-height:1.4;text-transform:none;letter-spacing:normal}
.ply-community-surface button{cursor:pointer;min-height:38px}
.ply-community-surface button:disabled{opacity:.55;cursor:wait}
.ply-community-surface button:focus-visible,.ply-community-surface textarea:focus-visible,.ply-community-surface select:focus-visible,.ply-community-surface summary:focus-visible{outline:2px solid var(--pc-accent);outline-offset:3px}
.ply-community-surface .ply-community-primary{background:var(--pc-accent);color:#10151c;border-color:var(--pc-accent)}
.ply-community-wall{padding:20px;align-self:start;background:var(--pc-bg);border:1px solid var(--pc-line);border-radius:14px}
.ply-community-head,.ply-community-toolbar,.ply-community-actions,.ply-community-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ply-community-head,.ply-community-toolbar{justify-content:space-between}
.ply-community-head h2{margin:0;font-size:26px;line-height:1.2;color:var(--pc-text)}
.ply-community-head p{margin:5px 0 0;color:var(--pc-muted);font-size:13px}
.ply-community-head>button{padding:6px 10px;font-size:13px}
.ply-community-toolbar{margin:16px 0;gap:8px}
.ply-community-toolbar>label{display:flex;align-items:center;gap:6px;color:var(--pc-muted);font-size:12px}
.ply-community-tabs{display:flex;gap:6px;flex-wrap:wrap}
.ply-community-tabs button{font-size:13px;background:transparent;border-color:transparent;padding:8px 10px}
.ply-community-tabs button[aria-pressed=true]{color:var(--pc-accent);border-color:var(--pc-accent);background:var(--pc-soft)}
.ply-community-thread{border:1px solid var(--pc-line);border-radius:12px;background:var(--pc-soft);margin:0 0 14px;min-width:0;overflow-wrap:anywhere}
.ply-community-context{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--pc-line)}
.ply-community-cover{width:48px!important;height:64px!important;object-fit:cover;border-radius:6px;flex-shrink:0}
.ply-community-context>div{min-width:0;flex:1}
.ply-community-game{color:var(--pc-accent);font-size:13px}
.ply-community-context h3{color:var(--pc-text);font-size:15px;line-height:1.4;margin:3px 0 0}
.ply-community-new{color:var(--pc-accent);font-size:12px;white-space:nowrap}
.ply-community-comment{padding:14px 16px;min-width:0}
.ply-community-author{display:flex;gap:9px;align-items:center;margin-bottom:10px}
.ply-community-author img{width:32px!important;height:32px!important;object-fit:cover;border-radius:50%}
.ply-community-author strong{font-size:13px;color:var(--pc-text)}
.ply-community-author span{display:block;font-size:12px;color:var(--pc-muted)}
.ply-community-text{white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.ply-community-text a,.ply-community-footer a{color:var(--pc-accent)}
.ply-community-reply-context{font-size:12px;color:var(--pc-muted);margin-bottom:8px}
.ply-community-actions{margin-top:10px;gap:14px}
.ply-community-actions button,.ply-community-footer button{padding:4px 0;background:transparent;border:0;color:var(--pc-accent);font-size:13px}
.ply-community-footer{padding:10px 16px;border-top:1px solid var(--pc-line);gap:14px}
.ply-community-footer a{font-size:13px;margin-left:auto}
.ply-community-footer [data-community-mute]{color:var(--pc-muted);font-size:12px}
.ply-community-compose{padding:14px 0;margin:0 0 18px}
.ply-community-compose label{font-size:13px}
.ply-community-compose textarea{width:100%;min-height:90px;margin:7px 0;resize:vertical;display:block}
.ply-community-compose .ply-community-actions label{display:flex;align-items:center;gap:7px}
.ply-community-compose .ply-community-actions button{padding:9px 14px;margin-left:auto}
.ply-community-compose input[type=checkbox]{appearance:auto;width:16px;height:16px;margin:0}
.ply-community-compose select{padding:6px;font-size:13px}
.ply-community-reply-slot{padding:0 16px}
.ply-community-replies{margin:0 16px 14px;border-left:2px solid var(--pc-line)}
.ply-community-replies .ply-community-comment{padding:12px}
.ply-community-menu{position:relative;margin-left:auto;font-size:13px}
.ply-community-menu summary{cursor:pointer;list-style:none;padding:8px}
.ply-community-menu>div{display:flex;gap:10px;flex-wrap:wrap;background:var(--pc-bg);padding:10px;border-radius:8px;border:1px solid var(--pc-line)}
.ply-community-spoiler summary{cursor:pointer;color:var(--pc-accent);padding:8px 0}
.ply-community-empty{color:var(--pc-muted);padding:12px 0;margin:0}
.ply-community-empty a{color:var(--pc-accent)}
.ply-community-more{width:100%;background:transparent!important}
.ply-community-status{font-size:13px;color:var(--pc-muted);margin:10px 0 0}
.ply-community-status:empty{display:none}
.ply-community-preferences{background:var(--pc-soft);border:1px solid var(--pc-line);border-radius:10px;padding:14px;margin-bottom:18px}
.ply-community-preferences h3{font-size:15px;color:var(--pc-text);margin:0 0 10px}
.ply-community-preferences>label{display:flex;align-items:center;gap:8px;font-size:13px;margin:9px 0}
.ply-community-surface [hidden]{display:none!important}
.ply-community-jump{display:inline-flex;align-items:center;min-height:40px;margin:8px 0 12px;padding:8px 14px;border:1px solid rgba(0,209,255,.55);border-radius:9px;color:#00d1ff;text-decoration:none}
.ply-community-surface:not(.ply-community-wall){margin:26px 0;padding:20px;background:var(--pc-bg);border:1px solid var(--pc-line);border-radius:14px}
/* Dashboard: reflow existing panels without replacing list logic. */
.ply-dash-wrap.ply-community-dashboard{max-width:1280px}
.ply-community-dashboard .ply-profile{padding:16px 20px}
.ply-community-dashboard .ply-profile .ply-avatar{width:72px;height:72px;min-width:72px}
.ply-community-dashboard .ply-username{font-size:24px}
.ply-community-dashboard .ply-userhash{font-size:13px}
.ply-community-dashboard .ply-grid.ply-community-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);grid-template-areas:"wall wishlist" "plan handles" "history handles";gap:20px;align-items:start}
.ply-community-grid .ply-community-wall{grid-area:wall}
.ply-community-grid>.ply-panel--wishlist{grid-area:wishlist;min-width:0;height:auto;min-height:0;max-height:none}
.ply-community-grid>.ply-panel--backlog{grid-area:plan;min-width:0}
.ply-community-grid>.ply-panel--history{grid-area:history;min-width:0}
.ply-community-grid>#ply-handles-panel{grid-area:handles;min-width:0}
.ply-community-grid .ply-wishlist-scroll{min-height:0;max-height:520px;height:auto}
.ply-community-shortcuts{display:none;gap:8px;margin:0 0 16px}
.ply-community-shortcuts a{display:flex;align-items:center;justify-content:center;border:1px solid rgba(191,202,211,.22);border-radius:9px;padding:9px 12px;font-size:13px;color:#d6d3e7;background:#233346;min-height:44px;text-decoration:none}
.ply-community-shortcuts a:first-child{color:#00d1ff;border-color:#00d1ff}
@media(max-width:980px){.ply-community-dashboard .ply-grid.ply-community-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"wall" "plan" "wishlist" "history" "handles"}.ply-community-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.ply-community-dashboard .ply-profile .ply-avatar{width:52px;height:52px;min-width:52px}.ply-community-dashboard .ply-username{font-size:20px}.ply-community-grid .ply-wishlist-scroll{max-height:420px}}
@media(max-width:600px){.ply-community-wall,.ply-community-surface:not(.ply-community-wall){padding:14px}.ply-community-head h2{font-size:22px}.ply-community-head{gap:8px}.ply-community-toolbar{align-items:start}.ply-community-tabs{gap:2px}.ply-community-tabs button{font-size:12px;padding:8px}.ply-community-surface button{min-height:44px}.ply-community-context{padding:12px;gap:10px;flex-wrap:wrap}.ply-community-cover{width:36px!important;height:48px!important}.ply-community-new{margin-left:auto}.ply-community-comment{padding:12px}.ply-community-footer{padding:8px 12px;gap:12px}.ply-community-compose textarea,.ply-community-surface select{font-size:16px}.ply-community-replies{margin:0 12px 12px}.ply-community-compose .ply-community-actions button{margin-left:0}.ply-community-shortcuts{gap:5px}.ply-community-shortcuts a{padding:8px 4px;font-size:12px}.ply-community-dashboard .ply-profile{padding:12px}.ply-community-dashboard .ply-profile-left{gap:10px}.ply-community-dashboard .ply-profile-right .ply-btn-outline{font-size:12px;padding:8px 10px}.ply-community-dashboard .ply-userhash{display:none}}

.ply-community-latest{padding:10px 16px;border-top:1px solid var(--pc-line);color:var(--pc-muted);font-size:13px}.ply-community-latest strong{font-size:12px}.ply-community-latest p{margin:4px 0 0}.ply-community-wall .ply-community-thread:not(.ply-community-expanded)>.ply-community-comment .ply-community-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

.ply-community-translation-label{font-size:11px;opacity:.65;margin-top:8px}.ply-community-original{font-size:12px;margin-top:4px}.ply-community-original summary{cursor:pointer;color:#00d1ff}.ply-community-original>div{margin-top:8px;white-space:normal}

/* 1.2: shared, compact comment components on dashboard, news and game pages. */
.ply-community-surface{--pc-bg:#2b3c4e;--pc-soft:#223244;--pc-line:rgba(180,200,221,.15);--pc-muted:#aebdce;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}
.ply-community-surface button,.ply-community-surface select,.ply-community-surface textarea,.ply-community-surface h2,.ply-community-surface h3,.ply-community-surface p{font-family:inherit}
.ply-community-surface .ply-community-head h2{font-size:24px;line-height:1.2;margin:0!important;letter-spacing:-.4px}
.ply-community-surface .ply-community-head p{font-size:12px;margin:4px 0 0!important;color:var(--pc-muted)}
.ply-community-wall{padding:18px!important;border-radius:18px;background:linear-gradient(145deg,#2f4255,#293a4c)}
.ply-community-surface:not(.ply-community-wall){padding:20px;margin:24px 0;border-radius:18px;background:linear-gradient(145deg,#293a4c,#243446)}
.ply-community-head>button{border-radius:8px;min-height:32px;padding:6px 10px;background:rgba(15,27,41,.25);font-size:12px}
.ply-community-toolbar{margin:12px 0 14px;gap:8px}
.ply-community-tabs{gap:3px;padding:3px;background:rgba(11,23,35,.23);border:1px solid var(--pc-line);border-radius:10px}
.ply-community-tabs button{min-height:32px;padding:6px 10px;border-radius:7px;font-size:12px;color:#bac8d7}
.ply-community-tabs button[aria-pressed=true]{background:#354d63;border-color:transparent;color:#eefaff;box-shadow:0 1px 5px #14233440}
.ply-community-thread{margin-bottom:10px;border-radius:13px;background:#213143;border-color:rgba(183,203,225,.15);box-shadow:0 4px 15px #13202e15;overflow:hidden}
.ply-community-feed>.ply-community-thread:last-child{margin-bottom:0}
.ply-community-context{padding:11px 14px;gap:10px;background:rgba(255,255,255,.015);border-bottom-color:rgba(180,200,220,.1)}
.ply-community-cover{width:32px!important;height:43px!important;border-radius:5px}
.ply-community-context .ply-community-game{font-size:12px;font-weight:650;color:#6bdfff}
.ply-community-context h3{font-size:13px!important;font-weight:500!important;line-height:1.35;margin:2px 0 0!important;color:#c4d1df!important}
.ply-community-comment{padding:13px 14px 7px}
.ply-community-author{margin-bottom:8px;gap:8px}
.ply-community-author img{width:30px!important;height:30px!important}
.ply-community-author>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ply-community-author strong{font-size:12px;font-weight:650}
.ply-community-author span{display:inline;font-size:11px;color:#94a8bd}
.ply-community-text{font-size:14px;line-height:1.6;color:#edf3fa}
.ply-community-comment>.ply-community-actions{margin-top:3px;gap:12px}
.ply-community-actions button,.ply-community-footer button{min-height:30px;font-size:12px;padding:4px 0;color:#68ddff}
.ply-community-actions button:hover,.ply-community-footer button:hover{color:#ddf9ff;background:transparent;text-decoration:underline}
.ply-community-footer{padding:7px 14px;gap:12px;border-top-color:rgba(180,200,220,.1);min-height:40px}
.ply-community-footer a{font-size:12px;text-decoration:none;color:#99b3c9}
.ply-community-footer a:hover{color:#6bdfff}
.ply-community-footer [data-community-subscribe]{color:#aebdce;font-size:11px}
.ply-community-footer [data-community-mute]{color:#8fa5bb;font-size:11px}
.ply-community-menu summary{padding:4px 8px;color:#9eb1c5;min-height:30px}
.ply-community-menu summary::-webkit-details-marker{display:none}
.ply-community-menu>div{position:absolute;z-index:20;right:0;bottom:32px;width:180px;flex-direction:column;align-items:flex-start;gap:2px;box-shadow:0 8px 25px #0b152b80}
.ply-community-thread:has(.ply-community-menu[open]){overflow:visible}
.ply-community-compose{padding:14px;margin:0 0 14px;border:1px solid var(--pc-line);background:rgba(11,23,35,.2);border-radius:12px}
.ply-community-compose>label{display:block;color:#c7d5e4;font-size:12px;font-weight:600;line-height:1.4}
.ply-community-surface .ply-community-compose textarea{display:block;width:100%;min-height:94px;border:1px solid rgba(172,195,220,.2);background:#1c2b3b;color:#f2f7fc;border-radius:9px;margin:8px 0 0;padding:11px 12px;line-height:1.55;font-size:14px;box-shadow:inset 0 1px 4px #10203120}
.ply-community-compose textarea::placeholder{color:#8da2b8;opacity:1}
.ply-community-compose textarea:focus{border-color:#58d7fa;outline:none;box-shadow:0 0 0 3px #00d1ff15}
.ply-community-compose .ply-community-actions{margin-top:10px;gap:14px;align-items:center}
.ply-community-compose .ply-community-actions label{font-size:12px;gap:6px;color:#afc0d2}
.ply-community-compose input[type=checkbox]{accent-color:#00d1ff;flex-shrink:0}
.ply-community-compose select{font-size:12px;padding:6px 9px;min-height:32px;border-radius:7px;background:#24384b;color:#e6f0fa}
.ply-community-surface .ply-community-compose button.ply-community-primary{background:#00c6ee;color:#102432;border:1px solid #24d4f7;font-weight:650;min-height:36px;padding:8px 16px;border-radius:8px;text-decoration:none;box-shadow:0 2px 6px #0a172b30}
.ply-community-surface .ply-community-compose button.ply-community-primary:hover{background:#48dbf7;color:#102432;text-decoration:none}
.ply-community-empty{font-size:12px;padding:10px 2px;line-height:1.6;color:#9fb2c6}
.ply-community-translation-label{font-size:10px;margin-top:6px;color:#9aafc4;opacity:1}
.ply-community-original{font-size:11px;margin-top:2px}
.ply-community-original summary{color:#82cce0;line-height:1.6}
.ply-community-original>div{padding:8px 10px;margin-top:5px;background:#172736;border-left:2px solid #426479;border-radius:4px;font-size:13px;color:#c4d1df}
.ply-community-latest{padding:8px 14px;font-size:12px}
.ply-community-wall .ply-community-thread:not(.ply-community-expanded)>.ply-community-comment .ply-community-text{display:block;overflow:visible}
.ply-community-wall .ply-community-thread:not(.ply-community-expanded)>.ply-community-comment .ply-community-body{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ply-community-grid .ply-wishlist-scroll{height:auto!important;min-height:0!important;max-height:360px!important}
/* Trailer action strip: same controls and wishlist dropdown, a single location on all screens. */
body.page-template-scheda-gioco .ply-game-interactions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#26384a;border:1px solid #9cb5cd29;border-radius:13px;margin:12px 0 22px;padding:12px;position:relative;z-index:2}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-section{margin:0!important;position:relative;display:block;padding:0;border:0;background:transparent}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-wrapper{position:relative;margin:0;padding:0}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-toggle,body.page-template-scheda-gioco .ply-game-interactions .ply-community-jump{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-height:44px;margin:0!important;padding:10px 16px!important;border:1px solid #a7c4dd40!important;border-radius:9px!important;background:#31495f!important;color:#edf7ff!important;font:600 14px/1.3 system-ui,sans-serif!important;text-decoration:none;box-shadow:none;transform:none!important;white-space:normal}
body.page-template-scheda-gioco .ply-game-interactions .ply-community-jump{background:#00c6ee!important;border-color:#21d5f7!important;color:#102432!important}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-toggle.active{border-color:#60d4f380!important;background:#2b5365!important}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-toggle .wl-heart{font-size:19px!important;color:#93c8db!important;transform:none!important;line-height:1}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-toggle.active .wl-heart{color:#58ddff!important}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-dropdown{position:absolute;top:calc(100% + 8px);left:0;z-index:30;min-width:230px;max-width:calc(100vw - 52px);padding:12px;border:1px solid #849cb74d;border-radius:11px;background:#1e3042;box-shadow:0 12px 30px #0c162a66}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-dropdown[hidden]{display:none!important}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-dropdown select{width:100%;background:#263e53;color:#eaf2fa;border:1px solid #879db340;border-radius:7px;padding:8px;margin-bottom:8px}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-type-select{display:flex;gap:6px}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-option{font:500 13px/1.3 system-ui,sans-serif;padding:9px 10px;border-radius:7px;background:#345067;color:#edf7ff}
.ply-community-jump{gap:8px;font:600 13px/1.4 system-ui,sans-serif;background:#29475a;border-color:#6bdfff50;border-radius:9px;text-decoration:none}
@media(max-width:600px){
.ply-community-wall,.ply-community-surface:not(.ply-community-wall){padding:13px!important;border-radius:14px}
.ply-community-surface .ply-community-head h2{font-size:21px}
.ply-community-toolbar{margin:10px 0 12px}
.ply-community-tabs{width:100%;flex-wrap:nowrap;gap:2px}
.ply-community-tabs button{flex:1;padding:7px 5px;min-height:40px;font-size:11px;line-height:1.25}
.ply-community-context{padding:10px 12px;flex-wrap:nowrap}
.ply-community-comment{padding:12px 12px 6px}
.ply-community-footer{padding:6px 12px;gap:9px}
.ply-community-footer button,.ply-community-footer a,.ply-community-actions button{min-height:40px}
.ply-community-compose{padding:11px}
.ply-community-surface .ply-community-compose textarea,.ply-community-compose select{font-size:16px}
.ply-community-compose .ply-community-actions{gap:10px}
.ply-community-compose .ply-community-actions>label:nth-child(2){margin-left:auto}
.ply-community-compose .ply-community-actions button.ply-community-primary{width:100%;margin:0;min-height:42px}
body.page-template-scheda-gioco .ply-game-interactions{padding:10px;gap:8px;border-radius:11px}
body.page-template-scheda-gioco .ply-game-interactions>.wishlist-section,body.page-template-scheda-gioco .ply-game-interactions>.ply-community-jump{flex:1;min-width:0}
body.page-template-scheda-gioco .ply-game-interactions .wishlist-toggle{width:100%;padding:10px!important;font-size:12px!important}
body.page-template-scheda-gioco .ply-game-interactions .ply-community-jump{padding:10px!important;font-size:12px!important}
.ply-community-author>div{gap:5px}
}

/* 1.2.1: independent dashboard columns; short feeds never inherit wishlist height. */
.ply-community-dashboard .ply-grid.ply-community-grid{grid-template-areas:none}
.ply-community-column{display:flex;flex-direction:column;gap:20px;min-width:0}
.ply-community-dashboard .ply-community-column>section{margin:0;min-width:0}
.ply-community-dashboard .ply-community-grid #ply-wishlist-panel{height:auto!important;min-height:0!important;max-height:none!important}
.ply-community-context h3 a{color:inherit;text-decoration:none}
.ply-community-context h3 a:hover{color:#5adeff;text-decoration:underline}
.ply-community-context h3 a:focus-visible{outline:2px solid #5adeff;outline-offset:3px}
@media(max-width:980px){
.ply-community-dashboard .ply-grid.ply-community-grid{grid-template-areas:"wall" "plan" "wishlist" "history" "handles"}
.ply-community-column{display:contents}
.ply-community-grid .ply-panel--wishlist{grid-area:wishlist}
.ply-community-grid .ply-panel--backlog{grid-area:plan}
.ply-community-grid .ply-panel--history{grid-area:history}
.ply-community-grid #ply-handles-panel{grid-area:handles}
}

/* 1.3: block columns keep panel content in normal flow, without flex shrinking. */
.ply-community-dashboard .ply-community-grid>.ply-community-column{display:block;min-width:0;height:auto;align-self:start}
.ply-community-dashboard .ply-community-column>section{float:none;position:relative;width:100%;box-sizing:border-box;flex:none}
.ply-community-dashboard .ply-community-column>section+section{margin-top:20px!important}
.ply-community-dashboard .ply-community-column #ply-wishlist-panel{height:auto!important;min-height:0!important;max-height:none!important}
.ply-community-dashboard #ply-wishlist-panel .ply-wishlist-scroll{flex:none;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible}
.ply-community-dashboard #ply-wishlist-panel .ply-wishlist{flex:none;height:auto!important;min-height:0!important;max-height:360px!important;overflow-y:auto}
.ply-community-dashboard #ply-handles-panel{height:auto!important;min-height:0!important}
@media(max-width:980px){
.ply-community-dashboard .ply-community-grid>.ply-community-column{display:contents}
.ply-community-dashboard .ply-community-column>section+section{margin-top:0!important}
}

/* 1.3.1: reciprocal links between the game page and its published analysis. */
body.page-template-scheda-gioco .ply-game-interactions .ply-game-page-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-left:auto;padding:10px 15px;border:1px solid #a7c4dd40;border-radius:9px;background:#213447;color:#dcebf6;font:600 14px/1.3 system-ui,sans-serif;text-decoration:none;box-sizing:border-box}
body.page-template-scheda-gioco .ply-game-interactions .ply-game-page-link:hover{background:#34516a;border-color:#67cde180;color:#fff}
body.page-template-scheda-gioco .ply-game-interactions .ply-game-page-link:focus-visible{outline:2px solid #58ddff;outline-offset:3px}
@media(max-width:600px){body.page-template-scheda-gioco .ply-game-interactions .ply-game-page-link{flex:0 0 100%;width:100%;margin:0;font-size:13px}}

/* 1.4 personal home: scoped to the dashboard, existing game/news styles retained. */
body:has(.ply-hub){background:#131a22;color:#edf2f7}
body:has(.ply-hub) #masthead{display:none}
body:has(.ply-hub) #content,body:has(.ply-hub) .ast-container{max-width:none;padding:0;background:#131a22}
.ply-dash-wrap.ply-hub{display:grid;grid-template-columns:200px minmax(0,760px) 260px;gap:28px;max-width:1360px!important;margin:0 auto!important;padding:28px 24px 60px!important;align-items:start;font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.ply-hub[data-hub-view]:not([data-hub-view=feed]){grid-template-columns:200px minmax(0,1040px)}
.ply-hub *{box-sizing:border-box}
.ply-hub h1,.ply-hub h2,.ply-hub h3,.ply-hub button,.ply-hub select,.ply-hub textarea{font-family:inherit}
.ply-hub a{color:#58ddeb;text-decoration:none}.ply-hub a:hover{text-decoration:underline}
.ply-hub-sidebar{position:sticky;top:40px;min-width:0;border-right:1px solid #ffffff12;padding-right:22px}
.ply-hub-brand{display:block;margin:0 0 30px}.ply-hub-brand .custom-logo-link{display:inline-block;max-width:100%;line-height:0}.ply-hub-brand img{display:block;width:auto;max-width:170px;max-height:58px;height:auto;object-fit:contain}
.ply-hub-sidebar nav{display:flex;flex-direction:column;gap:5px}
.ply-hub-sidebar nav>a{padding:12px;color:#bac6d3;border-radius:8px;font-weight:500;min-height:44px}
.ply-hub-sidebar nav>a[aria-current=page]{background:#163744;color:#51deef;box-shadow:inset 3px 0 #30cee4}
.ply-hub-sidebar hr{background:#ffffff15;margin:18px 0}
.ply-hub-sidebar .ply-profile{display:block;margin:50px 0 0!important;padding:14px 0!important;background:transparent;border:0;box-shadow:none;border-radius:0}
.ply-hub-sidebar .ply-profile-left{gap:10px;align-items:start}.ply-hub-sidebar .ply-profile .ply-avatar{width:42px;height:42px;min-width:42px}
.ply-hub-sidebar .ply-profile h2{font-size:15px;margin:0}.ply-hub-sidebar .ply-userhash,.ply-hub-sidebar .ply-bio,.ply-hub-sidebar .ply-profile-right{display:none}
.ply-hub-sidebar .ply-level-row{display:block}.ply-hub-sidebar .ply-level-badge{font-size:11px;padding:0;color:#adbcce;background:none;border:0;box-shadow:none}
.ply-hub-sidebar .ply-prog-card{width:120px!important;max-width:120px!important;background:transparent;padding:0}.ply-hub-sidebar .ply-prog-card *{font-size:10px}
.ply-hub-content{min-width:0}.ply-hub-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 22px;gap:15px}
.ply-hub-heading h1{font-size:30px;letter-spacing:-.7px;margin:0;color:#f4f7fb}.ply-hub-heading p{margin:4px 0 0;color:#a6b5c6}.ply-hub-settings{font-size:12px}
.ply-hub .ply-community-wall{padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
.ply-hub .ply-community-head{justify-content:flex-end;margin:0}.ply-hub .ply-community-head>div{display:none}
.ply-hub .ply-community-toolbar{margin:0 0 20px}.ply-hub .ply-community-tabs{background:none;border:0;padding:0;gap:7px;flex-wrap:wrap}
.ply-hub .ply-community-tabs button{background:#192632;border:1px solid #ffffff18;border-radius:8px;color:#b8c7d6;padding:8px 13px;min-height:40px}
.ply-hub .ply-community-tabs button[aria-pressed=true]{background:#2ed0e5;color:#10212c;border-color:#2ed0e5}
.ply-hub .ply-community-thread{background:#1b2733;border:1px solid #ffffff12;border-radius:11px;margin-bottom:18px;box-shadow:none}
.ply-hub .ply-community-context{background:transparent;padding:14px 16px;border-bottom:1px solid #ffffff0b}
.ply-hub .ply-community-comment{padding:14px 16px 6px}.ply-hub .ply-community-text{font-size:15px;line-height:1.65}
.ply-hub .ply-community-footer{background:transparent;border-top:0;padding:8px 16px 14px}
.ply-hub .ply-community-latest{margin:8px 16px;padding:9px 12px;border:0;border-left:2px solid #4a667a;background:#233240;border-radius:0 7px 7px 0}
.ply-hub-rail section{padding:16px 0;border-bottom:1px solid #ffffff12}.ply-hub-rail header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.ply-hub-rail h2{font-size:17px;margin:0}.ply-hub-rail header>a{font-size:11px}.ply-hub-rail p{font-size:12px;color:#99aabd}
.ply-hub-game{display:flex;align-items:center;gap:12px;padding:10px 0;color:#e4ecf4!important}.ply-hub-game img{width:44px;height:60px;object-fit:cover;border-radius:5px}.ply-hub-game strong{font-size:13px;font-weight:600}
/* Compact news: bounded thumbnail, full headline, two-line preview. */
.ply-hub-news{display:grid;grid-template-columns:minmax(0,1fr);background:#1b2733;border:1px solid #ffffff12;border-radius:11px;overflow:hidden;margin-bottom:14px;padding:0 16px 14px;column-gap:16px;row-gap:10px}
.ply-hub-news.has-image{grid-template-columns:144px minmax(0,1fr)}
.ply-hub-news>header{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:12px 0 0;font-size:12px;min-width:0}
.ply-hub-news>header>a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ply-hub-news time{margin-left:auto;color:#9eafc0;font-size:11px;flex-shrink:0}
.ply-hub-kind{background:#153d48;color:#59deed;font-size:10px;font-weight:700;border-radius:4px;padding:3px 6px;flex-shrink:0}
.ply-hub-news-media{display:block;align-self:start;overflow:hidden;border-radius:7px}
.ply-hub-news .ply-hub-news-media>img{width:100%;height:96px;max-width:100%;object-fit:cover;display:block;margin:0}
.ply-hub-news-body{min-width:0;padding:0}
.ply-hub-news h3{font-size:18px;line-height:1.35;margin:0 0 6px;overflow-wrap:anywhere}
.ply-hub-news h3 a{color:#f3f6fa}
.ply-hub-news p{color:#afbed0;font-size:13px;line-height:1.5;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ply-hub-news footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px}
.ply-hub-news footer a{display:inline-flex;align-items:center;min-height:32px}
.ply-hub .ply-panel{width:100%;min-width:0;max-width:none;background:#1c2936;border:1px solid #ffffff15;box-shadow:none}.ply-hub #ply-handles-panel{height:auto!important}
.ply-hub-mobile-nav{display:none}
@media(max-width:1150px){.ply-dash-wrap.ply-hub{grid-template-columns:170px minmax(0,1fr);gap:20px}.ply-hub-rail{display:none}.ply-hub[data-hub-view]:not([data-hub-view=feed]){grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:760px){.ply-dash-wrap.ply-hub,.ply-hub[data-hub-view]:not([data-hub-view=feed]){display:block;padding:18px 14px 100px!important}.ply-hub-sidebar{position:static;border:0;padding:0}.ply-hub-sidebar nav,.ply-hub-sidebar .ply-profile{display:none}.ply-hub-brand{font-size:21px;margin:0 0 20px}.ply-hub-heading h1{font-size:25px}.ply-hub-settings{font-size:11px}.ply-hub-heading p{font-size:12px}.ply-hub .ply-community-tabs button{font-size:12px;padding:8px 10px}.ply-hub .ply-community-tabs{flex-wrap:wrap}.ply-hub-mobile-nav{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:1000;justify-content:space-around;gap:4px;padding:10px 8px calc(10px + env(safe-area-inset-bottom));background:#101b25;border-top:1px solid #ffffff15}.ply-hub-mobile-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:11px;color:#99acc0;padding:8px}.ply-hub-mobile-nav a[aria-current=page]{color:#4be0f1;background:#19333e;border-radius:7px}.ply-hub-news{padding:0 12px 12px;column-gap:12px;row-gap:9px}.ply-hub-news.has-image{grid-template-columns:88px minmax(0,1fr)}.ply-hub-news .ply-hub-news-media>img{height:66px}.ply-hub-news>header{font-size:11px;gap:7px}.ply-hub-news h3{font-size:16px}.ply-hub-news p{font-size:12px}.ply-hub-news footer{gap:4px 12px}.ply-hub-news footer a{min-height:44px}}

.ply-hub-heading-actions{display:flex;align-items:center;gap:12px;font-size:12px}
.ply-hub-user-slot .ply-header-user-chip{background:transparent;border:1px solid #ffffff18;box-shadow:none;padding:5px;border-radius:50%}
.ply-hub-user-slot .ply-header-user-chip__meta{display:none}.ply-hub-user-slot .ply-header-user-chip__avatar{width:32px;height:32px}
.ply-hub #ply-plan-panel .ply-bl-hub--games{background:transparent;box-shadow:none}

/* Dashboard header: settings, language, existing profile / notifications. */
.ply-hub-heading-actions{flex-shrink:0}.ply-hub-heading-actions>.ply-hub-settings{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.ply-hub-language{position:relative}.ply-hub-language summary{display:flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;cursor:pointer;list-style:none;border-radius:7px}.ply-hub-language summary::-webkit-details-marker{display:none}.ply-hub-language summary:hover,.ply-hub-language[open] summary{background:#233240}.ply-hub-language img{display:block;object-fit:cover;width:24px;height:16px;border-radius:2px;margin:0}.ply-hub-language-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:1001;min-width:150px;padding:6px;background:#1b2733;border:1px solid #ffffff25;border-radius:9px;box-shadow:0 8px 24px #0005}.ply-hub-language-menu a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border-radius:5px;color:#e4ecf4}.ply-hub-language-menu a:hover,.ply-hub-language-menu a[aria-current=true]{background:#163744;color:#51deef}.ply-hub-language summary:focus-visible{outline:2px solid #51deef;outline-offset:2px}
@media(max-width:760px){.ply-hub-heading{flex-wrap:wrap;align-items:flex-start}.ply-hub-heading-actions{margin-left:auto;gap:10px}.ply-hub-brand img{max-width:155px;max-height:48px}}

/* Keep the full player profile within the viewport; only the menu may scroll. */
.ply-hub{--ply-hub-sticky-top:24px}body.admin-bar .ply-hub{--ply-hub-sticky-top:56px}
.ply-hub-sidebar{top:var(--ply-hub-sticky-top);display:flex;flex-direction:column;max-height:calc(100vh - var(--ply-hub-sticky-top) - 20px);max-height:calc(100dvh - var(--ply-hub-sticky-top) - 20px)}
.ply-hub-brand{flex-shrink:0;margin-bottom:20px}
.ply-hub-sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex-shrink:1}
.ply-hub-sidebar nav>a{display:flex;align-items:center;gap:11px;flex-shrink:0;padding:10px 12px}
.ply-hub-menu-icon{display:block;flex-shrink:0;color:#91aabd}.ply-hub-sidebar a[aria-current=page] .ply-hub-menu-icon{color:#51deef}
.ply-hub-sidebar .ply-profile{flex-shrink:0;margin-top:18px!important;padding:10px 0!important;border-top:1px solid #ffffff12}
.ply-hub-sidebar .ply-profile-meta{min-width:0;flex:1}.ply-hub-sidebar .ply-profile h2{overflow-wrap:anywhere}
.ply-hub-sidebar .ply-prog-card{width:100%!important;max-width:120px!important;margin:4px 0 0!important;border:0;box-shadow:none;min-width:0}
.ply-hub-sidebar .ply-prog-head,.ply-hub-sidebar .ply-prog-sub{display:none}
.ply-hub-sidebar .ply-prog-meta{display:flex;gap:4px;flex-wrap:wrap;line-height:1.4;margin-top:5px}
.ply-hub-sidebar .ply-prog-meta>span{white-space:nowrap}
@media(max-width:760px){.ply-hub-sidebar{display:block;max-height:none}.ply-hub-brand{margin-bottom:20px}.ply-hub-mobile-nav a{flex-direction:column;gap:4px}.ply-hub-mobile-nav .ply-hub-menu-icon{width:18px;height:18px}.ply-hub-mobile-nav a[aria-current=page] .ply-hub-menu-icon{color:#4be0f1}}

/* Explicit mobile hierarchy, compact feed toolbar and five stable destinations. */
.ply-hub .ply-community-head{display:none}
.ply-hub .ply-community-toolbar{display:flex;align-items:center;gap:10px}
.ply-hub .ply-community-tabs{flex:1;min-width:0}
.ply-community-prefs-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:44px;padding:8px 10px;border:1px solid #ffffff20;border-radius:8px;background:#192632;color:#bac6d3;cursor:pointer;font-size:12px}
.ply-community-prefs-button[aria-expanded=true]{background:#163744;color:#51deef}.ply-community-prefs-button .ply-hub-menu-icon{width:18px;height:18px}
@media(max-width:760px){
 .ply-dash-wrap.ply-hub,.ply-hub[data-hub-view]:not([data-hub-view=feed]){padding-top:12px!important}
 .ply-hub-sidebar{display:none}.ply-hub-brand{display:none}
 .ply-hub-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:18px}
 .ply-hub-heading>div:first-child{grid-row:2;min-width:0}
 .ply-hub-heading-actions{grid-row:1;display:flex;align-items:center;width:100%;margin:0;gap:12px;padding-bottom:10px;border-bottom:1px solid #ffffff12}
 .ply-hub-heading-actions>.ply-hub-settings{margin-right:auto;font-size:12px;min-height:44px}
 .ply-hub-heading h1{font-size:24px;line-height:1.2;letter-spacing:-.4px;overflow-wrap:normal}
 .ply-hub-heading p{font-size:12px;line-height:1.45;margin-top:5px}.ply-hub-heading p:empty{display:none}
 .ply-hub .ply-community-toolbar{gap:8px;margin:0 0 16px}
 .ply-hub .ply-community-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:6px;padding-bottom:2px}
 .ply-hub .ply-community-tabs::-webkit-scrollbar{display:none}
 .ply-hub .ply-community-tabs button{flex:0 0 auto;width:auto;white-space:nowrap;font-size:12px;min-height:44px;padding:8px 11px}
 .ply-community-prefs-button{width:44px;height:44px;padding:0}.ply-community-prefs-button>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .ply-hub-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:7px 6px calc(7px + env(safe-area-inset-bottom))}
 .ply-hub-mobile-nav a{min-width:0;padding:6px 2px;font-size:10px;line-height:1.3;white-space:nowrap;min-height:48px}
}

/* Dedicated mobile lists grow with their contents instead of a dashboard tile cap. */
@media(max-width:760px){
 .ply-hub[data-hub-view=wishlist] #ply-wishlist-panel{height:auto!important;max-height:none!important;min-height:0;overflow:visible;display:block;padding:12px}
 .ply-hub[data-hub-view=wishlist] #ply-wishlist-panel .ply-wishlist-scroll,
 .ply-hub[data-hub-view=wishlist] #ply-wishlist-panel .ply-wishlist{height:auto!important;max-height:none!important;min-height:0;overflow:visible!important;display:block;flex:none;padding-right:0}
 .ply-hub[data-hub-view=wishlist] #ply-wishlist-panel .ply-wish-head{margin-bottom:12px;gap:10px}
 .ply-hub[data-hub-view=wishlist] #ply-wishlist-panel .ply-wish-head h3{font-size:16px;line-height:1.3;margin:0}
 .ply-hub[data-hub-view=wishlist] #ply-wishlist-panel .ply-wish-head h3>span{display:block;font-size:12px;line-height:1.4;margin-top:4px;color:#a6b5c6}
 .ply-hub[data-hub-view=history] #ply-history-panel{height:auto!important;max-height:none!important;overflow:visible}
}
