/* V61: independent header trophy and on-demand leaderboard. */
.cabinet .game-header>#highscoreOpen{position:absolute;left:0;top:0;z-index:102;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;margin:0;border-radius:12px;color:#ffe099;border-color:#d6a34d;background:linear-gradient(#722054,#350c2e)}
.cabinet .game-header>#highscoreOpen svg{display:block;pointer-events:none}
@media(min-width:601px){.cabinet .game-header{padding-left:39px}}
@media(max-width:600px){.cabinet .game-header>#highscoreOpen{width:44px;height:44px;min-height:44px;border-radius:14px}}
#highscoreDialog{width:min(1000px,94vw);padding-inline:14px}
#highscoreDialog h2{color:#ffe099;margin:0 0 14px}
#highscoreDialog .score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#highscoreDialog .score-card{border:1px solid #a34779;border-radius:12px;min-width:0;padding:10px;background:#320e30}
#highscoreDialog h3{color:#ffe099;text-align:center;margin:0 0 10px;font-size:15px}
#highscoreDialog table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}
#highscoreDialog th,#highscoreDialog td{text-align:left;padding:7px 3px;border-bottom:1px solid #512140;overflow-wrap:anywhere}
#highscoreDialog th:last-child,#highscoreDialog td:last-child{text-align:right;color:#ffe099;font-variant-numeric:tabular-nums}
#highscoreDialog .score-pages{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:8px}
#highscoreDialog .score-pages button{padding:0;width:34px;height:34px;min-height:34px}
#scoreStatus,#scoreGuest,#authPlayerName{text-align:center;overflow-wrap:anywhere;font-size:13px}
#scoreStatus:empty{display:none}
.score-save-error{flex-basis:100%;text-align:center;color:#ffe099;font-size:12px;margin:0}
@media(max-width:700px){#highscoreDialog .score-grid{grid-template-columns:1fr}}

/* V63: hover feedback for the highscore dialog close icon only. */
#highscoreDialog .dialog-close {
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
#highscoreDialog .dialog-close:hover,
#highscoreDialog .dialog-close:focus-visible {
    background: #a32b77;
    border-color: #ff9ed6;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 91, 183, .65);
}
@media (prefers-reduced-motion: reduce) {
    #highscoreDialog .dialog-close { transition: none; }
}

/* V66: desktop trophy directly to the right of the info button. */
@media (min-width:601px){
 .cabinet .game-header{grid-template-columns:minmax(0,1fr) auto auto;padding-left:0;}
 .cabinet .game-header > #mobileMenuPanel{grid-column:2;grid-row:1;}
 .cabinet .game-header > #highscoreOpen{position:relative;left:auto;top:auto;grid-column:3;grid-row:1;align-self:center;justify-self:end;}
}

/* V67: hover feedback only; preserve original info icon dimensions. */
@media (min-width:601px){
 .cabinet .game-header > #highscoreOpen,
 .cabinet #mobileMenuPanel #info{transition:background 160ms ease,border-color 160ms ease,color 160ms ease,box-shadow 160ms ease;}
 .cabinet .game-header > #highscoreOpen:hover,
 .cabinet .game-header > #highscoreOpen:focus-visible,
 .cabinet #mobileMenuPanel #info:hover,
 .cabinet #mobileMenuPanel #info:focus-visible{background:#a32b77;border-color:#ff9ed6;color:#fff;box-shadow:0 0 12px rgba(255,91,183,.65);}
}
@media (prefers-reduced-motion:reduce){
 .cabinet .game-header > #highscoreOpen,
 .cabinet #mobileMenuPanel #info{transition:none;}
}

/* V68: readable desktop info glyph, no inner circle. */
@media (min-width:601px){
 .cabinet #mobileMenuPanel #info .desktop-menu-icon{font-size:26px;font-weight:700;font-family:system-ui,sans-serif;line-height:1;display:inline-block;vertical-align:middle;}
}
