/* Shared NewPlay account surface: existing blue ink, glass controls and system type. */
.np-account-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 13px;border:1px solid #ffffffad;border-radius:18px;background:linear-gradient(145deg,#ffffffb8,#f5f9ff88);box-shadow:inset 0 1px #fff,0 2px 7px #21466a0b;backdrop-filter:blur(8px);color:#34516b;font:600 12px/1.3 system-ui,-apple-system,'PingFang SC',sans-serif;white-space:nowrap;cursor:pointer}.np-account-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.np-account{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(var(--np-visible-height,100dvh) - 24px - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;margin:auto;border:1px solid #ffffffd9;border-radius:26px;padding:30px;background:linear-gradient(145deg,#fbfdfff7,#eff6fcf5);color:#18334f;box-shadow:0 25px 90px #102b4b40;backdrop-filter:blur(24px);font:400 16px/1.6 system-ui,-apple-system,'PingFang SC',sans-serif;scroll-padding:18px}.np-account::backdrop{background:#102b4b66;backdrop-filter:blur(7px)}.np-account *{box-sizing:border-box}.np-account [hidden]{display:none!important}.np-account header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.np-account h2{font-size:25px;line-height:1.35;letter-spacing:-.035em;margin:0;color:#18334f}.np-account button{font:inherit;cursor:pointer;touch-action:manipulation}.np-account-close{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:14px;background:#e5edf5;color:#34516b;font-size:24px!important}.np-account-tabs{display:flex;background:#dfebf388;border-radius:14px;padding:4px;gap:4px;margin-bottom:24px}.np-account-tabs button{flex:1;border:0;border-radius:10px;padding:9px;color:#59718a;background:transparent;font-size:14px;font-weight:600}.np-account-tabs [aria-pressed=true]{background:#fff;color:#234a6e;box-shadow:0 2px 8px #16395812}.np-account-field{display:block;margin:0 0 18px;font-size:14px;font-weight:600}.np-account-field input{display:block;width:100%;min-height:49px;margin-top:7px;border:1px solid #b9ccdb;border-radius:12px;padding:11px 13px;background:#ffffffd9;color:#18334f;font:400 16px/1.5 system-ui,-apple-system,'PingFang SC',sans-serif;scroll-margin:20px}.np-account-field input[aria-invalid=true]{border-color:#ac3e3e;box-shadow:0 0 0 1px #ac3e3e}.np-account-field small{display:block;min-height:20px;font-size:12px;font-weight:400;color:#536f86;line-height:1.6;margin-top:5px}.np-account-field [data-error]{min-height:0;color:#a12e38}.np-account-password{position:relative}.np-account-password input{padding-right:66px}.np-account-show{position:absolute;right:8px;top:7px;height:49px;border:0;background:none;color:#315a7a;font-size:12px!important;padding:0 7px}.np-account-consent{display:flex;gap:10px;align-items:flex-start;margin:3px 0 18px;font-size:13px;font-weight:400;line-height:1.8;color:#425f78}.np-account-consent input{width:18px;height:18px;flex:none;margin:3px 0 0;accent-color:#3376dc}.np-account a{color:#245f9c;text-underline-offset:3px}.np-account-submit{display:block;width:100%;min-height:50px;border:0;border-radius:13px;background:var(--blue,#234bff);color:#fff;font-size:15px!important;font-weight:650!important;margin-top:14px}.np-account button:disabled{opacity:.65;cursor:wait}.np-account-status{min-height:24px;margin:8px 0 0!important;color:#8c303b!important;font-size:13px!important;line-height:1.7!important}.np-account-support{border-top:1px solid #d6e3ec;margin-top:22px;padding-top:17px;font-size:13px;color:#49677f}.np-account-support summary{cursor:pointer}.np-account-support p{font:400 13px/1.8 system-ui!important;color:#49677f!important;margin:10px 0 0!important}.np-account :focus-visible,.np-account-trigger:focus-visible{outline:3px solid #347bd5;outline-offset:3px}.np-account-submit:focus-visible{outline-color:#18334f}@media(max-width:760px){.np-account{padding:24px 22px;border-radius:23px}.np-account-trigger{width:44px;padding:0;border-radius:16px}.np-account-trigger span{display:none}.site-header>.np-account-trigger{margin-left:auto}.np-account header{margin-bottom:20px}.np-account-tabs{margin-bottom:20px}}@media(max-height:600px){.np-account{padding-block:18px}.np-account header{margin-bottom:14px}.np-account-tabs{margin-bottom:16px}.np-account-field{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){.np-account,.np-account-trigger{transition:none;scroll-behavior:auto}}
.np-ranking{width:min(100%,520px);margin:26px auto 0;padding:22px;border:1px solid #ffffffb3;border-radius:22px;background:linear-gradient(145deg,#ffffffbd,#eff6fc99);backdrop-filter:blur(12px);box-shadow:inset 0 1px #fff;color:#34516b;font:400 14px/1.7 system-ui,-apple-system,'PingFang SC',sans-serif}.np-ranking-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.np-ranking h2{font-size:18px;margin:0}.np-ranking h3{font-size:16px;margin:0}.np-ranking p{margin:8px 0;font-size:13px;color:#526e85}.np-ranking button{min-height:44px;padding:9px 13px;border:1px solid #b9ccdb;border-radius:12px;background:#f7fbff;color:#234a6e;font:600 13px/1.4 system-ui;white-space:nowrap;cursor:pointer}.np-ranking button:focus-visible{outline:3px solid #347bd5;outline-offset:3px}.np-ranking button:disabled{opacity:.6}.np-ranking-actions{display:flex;flex-wrap:wrap;gap:8px}.np-ranking ol{list-style:decimal-leading-zero;margin:12px 0 0;padding-left:24px}.np-ranking li{padding:8px 0 8px 4px;border-top:1px solid #d7e3ec}.np-ranking li strong{float:right}.np-ranking [data-status]{min-height:23px}.np-ranked-jump .wallet-hud,.np-ranked-jump .wallet-warning,.np-ranked-jump .result-wallet,.np-ranked-jump #record-reward,.np-ranked-jump .coin-progress,.np-ranked-jump .coin-rules,.np-ranked-jump .wallet-history,.np-ranked-jump .record-rules,.np-ranked-jump #run-earned,.np-ranked-jump #retry-coins{display:none!important}@media(max-width:760px){.np-ranking{padding:18px;margin-top:22px}.np-ranking-head{gap:10px;align-items:flex-start}.np-ranking h2{font-size:16px}}
.np-account-password{display:block;margin-top:7px}.np-account-password input{margin-top:0}.np-account-show{top:0}
.np-account-scope{font:400 13px/1.8 system-ui!important;color:#526e85!important;margin:10px 0 20px!important}.np-account-retry{display:block;width:100%;min-height:44px;margin-top:10px;border:1px solid #b9ccdb;border-radius:12px;background:white;color:#315a7a;font-size:14px!important}.np-account .np-account-support form{margin-top:18px}

.np-ranked-jump .revive-cost,.np-ranked-jump #records-open{display:none!important}

/* Result actions stay inside the original game result surface. */
.np-game-modebar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:8px 0 12px;color:#526e85;font:500 12px/1.5 system-ui}.np-game-modebar>span{margin-right:auto}.np-game-modebar button,.np-result-actions button{min-height:44px;padding:10px 15px;border:1px solid #bdcdd7;border-radius:14px;background:#ffffffb8;color:#234a6e;font:600 14px/1.4 system-ui;cursor:pointer}.np-game-modebar p{width:100%;margin:0}.np-game-modebar p:empty{display:none}.np-result-ranking{margin:18px 0 12px}.np-result-ranking p{font:400 13px/1.65 system-ui!important;color:#526e85!important;margin:7px 0!important}.np-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.np-result-actions .np-result-primary{grid-column:1/-1;background:var(--blue,#234bff);color:#fff;border-color:transparent}.np-result-ranking [hidden],.np-game-modebar [hidden]{display:none!important}.np-result-ranking button:disabled{opacity:.65;cursor:wait}.np-result-ranking [data-result-status]{min-height:23px}.np-ranked-jump .np-result-actions .np-result-primary{background:#2e6651}.np-leaderboard ol{padding-left:27px;list-style:decimal-leading-zero}.np-leaderboard li{padding:12px 0;border-bottom:1px solid #d6e3ec;font-size:15px}.np-leaderboard li strong{float:right}.np-leaderboard [data-board-status]{font-size:14px}.np-game-modebar button:focus-visible,.np-result-ranking button:focus-visible{outline:3px solid #347bd5;outline-offset:3px}.jump-main>.np-game-modebar{grid-column:1/-1}
@media(max-width:760px){.np-game-modebar{margin:7px 12px 10px;font-size:11px;gap:7px}.np-game-modebar button{font-size:12px;padding:9px 10px;min-height:42px}.np-result-actions button{padding:11px 9px;font-size:14px}.np-result-ranking{margin:14px 0 8px}.result-card .np-result-ranking p{font-size:12px!important}}

.np-jump-column{width:430px;flex-shrink:0}.np-jump-column .np-game-modebar{margin-top:0}.game-overlay .result-card{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.np-result-actions button{touch-action:manipulation}@media(max-width:760px){.np-jump-column{width:100%}.np-jump-column .game-shell{height:calc(100svh - 108px - env(safe-area-inset-top))}.np-jump-column .np-game-modebar{min-height:46px;margin-bottom:8px}.np-result-actions{gap:8px}}

.np-avatar{display:inline-flex;position:relative;overflow:hidden;width:36px;height:36px;flex:none;border-radius:50%;background:#e9f1f3;align-items:center;justify-content:center;color:#34516b;font-weight:700}.np-avatar img{position:absolute;width:180%;height:180%;max-width:none;object-fit:contain;left:-40%;top:-8%}.np-account-trigger.has-avatar{padding:3px 9px 3px 4px}.np-account-trigger.has-avatar>svg{display:none}.np-recent,.np-menu-identity{display:flex;align-items:center;gap:12px;margin:0 0 22px}.np-recent .np-avatar,.np-menu-identity .np-avatar{width:48px;height:48px}.np-recent strong,.np-menu-identity strong{overflow-wrap:anywhere;font-size:16px}.np-recent button{margin-left:auto;background:none;border:0;color:#315a7a;font-size:12px;padding:8px;white-space:nowrap}.np-register-avatar{text-align:center;margin:-9px 0 15px}.np-register-avatar .np-avatar{width:52px;height:52px}.np-account-menu{width:min(330px,calc(100vw - 32px));padding:23px}.np-account-menu .np-account-support{font-size:12px}.np-account-menu h2{font-size:21px}@media(max-width:760px){.np-account-trigger.has-avatar{padding:3px}.np-account-trigger .np-avatar{display:inline-flex}.np-account-trigger .np-avatar img{display:block}}

.np-result-actions .np-board-trophy{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;border:1px solid #c9b88e;background:linear-gradient(130deg,#fffdf6,#f0f5fa);color:#34516b;font-weight:650;font-size:16px;box-shadow:inset 0 1px #fff,0 3px 12px #6b754f0b}.np-board-trophy svg{width:23px;height:23px;fill:none;stroke:#a17c32;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.np-game-modebar .np-rank-disclosure{font:400 11px/1.5 system-ui;color:#617b8c;margin:0}.np-result-ranking [data-result-note]{font-size:12px!important}.np-result-actions [data-replay]{grid-column:1/-1}.np-result-ranking [data-auto-retry]{font-size:12px;min-height:36px}@media(prefers-reduced-motion:reduce){.np-avatar img{animation:none!important}}

.np-account-trigger.has-avatar{width:44px;padding:3px}.np-account-trigger.has-avatar>span:not(.np-avatar){display:none!important}@media(max-width:760px){.np-account-trigger:not(.has-avatar){width:auto;padding:0 10px;font-size:12px}.np-account-trigger:not(.has-avatar)>span{display:inline}.np-account-trigger:not(.has-avatar)>svg{display:none}}

.np-avatar img{width:100%;height:100%;object-fit:contain;left:0;top:0}

.opening-card .np-game-modebar{justify-content:center;text-align:center;margin:10px 0 0}.opening-card .np-game-modebar .np-rank-disclosure{width:100%;font-size:11px}.np-game-modebar .np-rank-disclosure[hidden]{display:none!important}

.np-unified-game #end-undo{display:none!important}.np-unified-game .game-controls{grid-template-columns:1fr 44px}

/* Reuse existing action rows and existing score-copy region; no new result row. */
.np-result-actions{display:flex;align-items:stretch;gap:10px}.np-result-actions .np-board-trophy{flex:1;grid-column:auto;min-height:44px;padding:10px 12px;font-size:14px}.np-result-actions>button:not([hidden]){flex:1}.np-result-actions [hidden]{display:none!important}.np-result-status{font:400 13px/1.5 system-ui!important;color:#526e85!important}.np-result-status:empty{display:none!important}.np-unified-game .result-card .result-main-actions #restart-button{display:inline-block!important}

.np-unified-game .wallet-hud,.np-unified-game .wallet-warning,.np-unified-game .coin-rules,.np-unified-game .wallet-history,.np-unified-game .record-rules{display:none!important}

/* Jump result hierarchy stays inside its existing card and action rows. */
.np-unified-game .result-card .personal-actions{justify-content:center;align-items:center;gap:10px;margin:12px 0}
.np-unified-game .result-card .personal-actions .np-board-trophy{flex:0 0 auto;width:auto;min-height:44px;padding:9px 15px;font-size:13px;border-radius:12px}
.np-unified-game .result-card #share-open{flex:0 0 44px;width:44px;height:44px;padding:11px;margin:0;border-radius:12px;display:grid;place-items:center}
.np-unified-game .result-card #share-open svg,.np-unified-game .result-card .result-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.np-unified-game .result-card .result-main-actions{grid-template-columns:1fr;margin-top:10px}
.np-unified-game .result-card .result-main-actions #restart-button{min-height:54px;font-size:15px;font-weight:650;width:100%}
.np-unified-game .result-card .result-main-actions .result-back{position:absolute;left:9px;top:9px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:50%;background:transparent;color:#526e5d}

/* Cached previous HTML must also keep icon-only compact actions. */
.np-unified-game .result-card #share-open{font-size:0!important}
.np-unified-game .result-card #share-open:not(:has(svg))::before{content:'↥';font:500 23px/1 system-ui}
.np-unified-game .result-card .result-main-actions>a{position:absolute;left:9px;top:9px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:50%;background:transparent;color:#526e5d;font-size:0}
.np-unified-game .result-card .result-main-actions>a:not(:has(svg))::before{content:'←';font:400 21px/1 system-ui}

.np-account-consent a{text-decoration:underline;text-underline-offset:3px}

/* One portrait-led glass account component, shared by login and registration. */
.np-account[aria-labelledby="np-account-title"]{padding:25px 30px;max-width:440px}
.np-account[aria-labelledby="np-account-title"] header{margin-bottom:14px}.np-account[aria-labelledby="np-account-title"] h2{font-size:24px}.np-account-tabs{margin-bottom:16px}
.np-login-avatar,.np-register-avatar{text-align:center;margin:0 0 18px;display:flex;flex-direction:column;align-items:center;gap:7px}
.np-login-avatar>span,.np-register-avatar>[data-draw-portrait],.np-recent>[data-recent-avatar]{width:104px;height:104px;border-radius:28px;background:linear-gradient(145deg,#fff,#e8f1f8);box-shadow:inset 0 1px #fff,0 10px 24px #294c7410;display:grid;place-items:center;overflow:hidden;flex:none}
.np-login-avatar .np-avatar-placeholder svg,.np-register-avatar .np-avatar-placeholder svg{width:82px;height:82px;fill:#bfcedb;stroke:#d9e5ee;stroke-width:2}
.np-register-avatar>[data-draw-name]{font-size:13px;line-height:1.45;color:#34516b;min-height:0}.np-register-avatar>[data-draw-name]:empty{display:none}
.np-register-avatar .np-draw-button{min-height:34px;padding:5px 13px;border:1px solid #c9d8e5;border-radius:11px;background:#ffffffb8;color:#315a7a;font-size:12px;font-weight:600;box-shadow:inset 0 1px #fff}
.np-register-avatar .np-draw-button:disabled{opacity:1;cursor:default;background:#eaf1f6;color:#59718a}.np-register-avatar [data-draw-status]{font-size:11px;color:#627990;line-height:1.55;max-width:250px}.np-register-avatar [data-draw-status]:empty{display:none}
.np-recent{flex-direction:column;gap:7px;text-align:center;margin-bottom:18px}.np-recent strong{font-size:15px}.np-recent button{margin:0;padding:3px 10px;min-height:30px;font-size:12px}
.np-account[data-mode=register] .np-account-field{margin-bottom:12px}.np-account[data-mode=register] .np-account-field input{min-height:46px}.np-account[data-mode=register] .np-account-field small{font-size:11px;min-height:16px;margin-top:3px}.np-account[data-mode=register] .np-account-field [data-error]{min-height:0}
.np-account[data-mode=register] .np-account-consent{font-size:12px;margin-bottom:7px}.np-account[data-mode=register] .np-account-status{min-height:0;margin-top:0!important}.np-account[data-mode=register] .np-account-status:empty{display:none}.np-account[data-mode=register] .np-account-submit{margin-top:13px}
@media(max-width:760px){.np-account[aria-labelledby="np-account-title"]{padding:22px}.np-account[aria-labelledby="np-account-title"] h2{font-size:23px}.np-account[aria-labelledby="np-account-title"] header{margin-bottom:12px}.np-account-tabs{margin-bottom:14px}.np-register-avatar{margin-bottom:14px}}
@media(max-height:650px){.np-account[aria-labelledby="np-account-title"]{padding-block:18px}.np-account-tabs{margin-bottom:12px}.np-login-avatar,.np-register-avatar,.np-recent{margin-bottom:12px}.np-login-avatar>span,.np-register-avatar>[data-draw-portrait],.np-recent>[data-recent-avatar]{width:96px;height:96px}.np-account[aria-labelledby="np-account-title"] header{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.np-register-avatar *,.np-login-avatar *,.np-recent *{animation:none!important;transition:none!important}}

.np-register-avatar>[data-draw-name]{min-height:19px}.np-register-avatar>[data-draw-name]:empty{display:block}.np-register-avatar [data-draw-status]{min-height:18px}.np-register-avatar [data-draw-status]:empty{display:block}.np-register-avatar .np-draw-button{min-width:124px}

.np-unified-game .np-jump-progress{margin:8px 0 12px;text-align:center;color:#245b50;line-height:1.4;font-size:14px;overflow-wrap:anywhere}
.np-jump-progress strong,.np-jump-progress span{display:block}.np-jump-progress strong{font-size:16px;font-weight:650}.np-jump-progress span{margin-top:3px;color:#506b65;font-size:13px}
.np-jump-leaderboard li.np-board-self{background:#e4f1eb;border-radius:14px;box-shadow:inset 0 0 0 1px #6a9a86}

/* Shared game leaderboard: same public avatars, medals and controls. */
.np-jump-leaderboard ol{list-style:none;margin:0;padding:0}
.np-jump-leaderboard li{display:grid;grid-template-columns:25px 40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #d7e3ec}
.np-jump-leaderboard li>span:nth-last-child(2){overflow-wrap:anywhere;min-width:0;font-size:14px}
.np-jump-leaderboard li strong{font-variant-numeric:tabular-nums;font-size:16px}
.np-board-avatar{width:40px;height:40px;border-radius:50%;background:#e5ece9;overflow:hidden;display:block}
.np-board-avatar img{width:40px;height:40px;object-fit:contain}
.np-board-place{display:grid;place-items:center;font-size:14px;color:#566d63}
.np-board-place svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.np-board-place.gold{color:#94701f}.np-board-place.silver{color:#677c8e}.np-board-place.bronze{color:#986142}
.np-jump-leaderboard [data-board-refresh]{margin-left:auto;margin-right:8px;width:44px;height:44px;padding:0;font-size:25px;min-height:44px}
.np-jump-leaderboard [data-board-status]:empty{display:none}
.np-jump-leaderboard header{gap:8px;align-items:center}
.np-jump-leaderboard header h2{flex:1;min-width:0;font-size:22px}
.np-jump-leaderboard header .np-board-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;margin:0;border:1px solid #c4d3df;border-radius:14px;background:#e5edf5;color:#34516b;box-shadow:none;line-height:1}
.np-jump-leaderboard header .np-board-icon svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.np-jump-leaderboard header .np-board-icon:disabled{opacity:.55;cursor:wait}
.np-jump-leaderboard header .np-board-icon:focus-visible{outline:3px solid #347bd5;outline-offset:3px}
@media(max-width:390px){.np-jump-leaderboard header h2{font-size:20px}}

/* Keep 2048's existing action layout and blue primary, with the score as the main result. */
.game-nav-page-2048 #end-dialog #end-score{font-size:clamp(36px,9vw,52px);line-height:1.1;max-width:72%;overflow-wrap:anywhere;text-align:right}
.game-nav-page-2048 #end-dialog .np-result-actions #end-new{background:var(--blue,#2755ed);color:#fff;border-color:transparent}

/* Shared leaderboard: reserved place/avatar/score columns, independent scrolling. */
.np-account.np-leaderboard{width:min(440px,calc(100vw - 24px));padding:20px;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:hidden}
.np-account.np-leaderboard[open]{display:flex;flex-direction:column}
.np-account.np-leaderboard header{flex:0 0 auto;margin:0 0 14px;padding:0 8px;gap:8px;align-items:center}
.np-account.np-leaderboard header h2{min-width:0;overflow-wrap:normal;font-size:20px;line-height:1.3}
.np-account.np-leaderboard [data-board-status]{flex:0 0 auto;margin:0 8px 12px;line-height:1.5;overflow-wrap:anywhere}
.np-account.np-leaderboard [data-board-status]:empty{display:none}
.np-account.np-leaderboard ol{flex:1 1 auto;min-height:0;max-height:min(60dvh,520px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;list-style:none;margin:0;padding:0 2px;scroll-padding-block:8px}
.np-account.np-leaderboard li{display:grid;grid-template-columns:3ch 36px minmax(0,1fr) 8ch;align-items:center;column-gap:8px;row-gap:2px;padding:12px 8px;border-bottom:0;border-top:1px solid #d7e3ec;font-size:14px;line-height:1.5;min-width:0}
.np-account.np-leaderboard .np-board-place{min-width:0;grid-column:1;font-variant-numeric:tabular-nums;align-self:center}
.np-account.np-leaderboard .np-board-avatar{grid-column:2;width:36px;height:36px;align-self:center}
.np-account.np-leaderboard .np-board-avatar img{width:36px;height:36px;object-fit:contain}
.np-account.np-leaderboard .np-board-name{grid-column:3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;font-size:14px}
.np-account.np-leaderboard .np-board-score{grid-column:4;min-width:0;float:none;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right;justify-self:end}
.np-account.np-leaderboard li.np-board-wide-score{grid-template-columns:3ch 36px minmax(0,1fr)}
.np-account.np-leaderboard .np-board-wide-score .np-board-place,.np-account.np-leaderboard .np-board-wide-score .np-board-avatar{grid-row:1 / span 2}
.np-account.np-leaderboard ol > li:nth-child(-n + 3) .np-board-name{font-weight:700}
.np-account.np-leaderboard .np-board-wide-score .np-board-name{grid-row:1}
.np-account.np-leaderboard .np-board-wide-score .np-board-score{grid-column:3;grid-row:2;max-width:100%;font-size:14px}
/* Server-confirmed record comparisons; existing game canvas/board dimensions stay intact. */
.np-record-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;font-variant-numeric:tabular-nums}
.np-record-comparison>div{display:flex;flex-direction:column;min-width:0;gap:3px}
.np-record-comparison span{font:400 11px/1.3 system-ui;color:#657b87;white-space:nowrap}
.np-record-comparison strong{display:block;font:650 14px/1.2 system-ui;color:#345367;white-space:nowrap;letter-spacing:0}
.np-record-comparison .np-record-long{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.np-record-comparison .np-record-login{font-size:12px}
.np-record-gap{min-height:17px;line-height:17px;white-space:nowrap;font-size:11px;font-weight:400;letter-spacing:0;font-variant-numeric:tabular-nums}
.game-nav-page-2048 .score-box.np-record-box{flex:1.45;min-width:168px;padding:9px 10px}
.game-nav-page-2048 .score-box.np-record-box>#best{display:none!important}
.game-nav-page-2048 .np-record-comparison{gap:9px}
.game-nav-page-2048 .frame-footer .np-record-gap{color:inherit}
.game-nav-page-2048 .score-box:not(.np-record-box){min-width:94px}
.game-nav-page-2048 #score.np-current-long{font-size:20px;letter-spacing:-1px}
.game-nav-page-jump .hud>.np-record-comparison{position:absolute;left:0;right:0;top:86px;gap:18px;max-width:100%;pointer-events:none}
.game-nav-page-jump .hud>.np-record-gap{position:absolute;left:0;right:0;top:124px;margin:0;color:#5f7e6a;pointer-events:none}
.game-nav-page-jump .combo-label{top:182px}
.game-nav-page-jump .score-block{max-width:calc(100% - 148px)}
.game-nav-page-jump #jump-score.np-current-long{font-size:clamp(24px,6vw,34px);letter-spacing:-1px}
.np-unified-game .record-bests,.np-unified-game .record-row,.np-unified-game #records-open,.np-unified-game #help-records-open{display:none!important}
@media(max-width:760px){.game-nav-page-2048 .score-box.np-record-box{min-width:140px;padding:8px}.game-nav-page-2048 .np-record-comparison{gap:6px}.game-nav-page-2048 .np-record-comparison span{font-size:10px}.game-nav-page-2048 .np-record-comparison strong{font-size:12px}.game-nav-page-2048 .score-box:not(.np-record-box){min-width:81px;padding-inline:7px}}
@media(max-width:400px){.game-nav-page-2048 .play-heading{gap:6px}.game-nav-page-2048 .game-title{padding-left:16px}.game-nav-page-2048 .game-title>strong{font-size:28px}.game-nav-page-2048 .game-title .mobile-plai{left:-8px;top:8px;width:22px;height:24px;object-fit:contain}.game-nav-page-2048 .score-row{gap:5px}.game-nav-page-2048 #score.np-current-long{font-size:18px}}
@media(max-width:340px){.np-account.np-leaderboard{padding:16px}.np-account.np-leaderboard header h2{font-size:18px}.np-account.np-leaderboard li{grid-template-columns:3ch 32px minmax(0,1fr) 8ch;column-gap:6px}.np-account.np-leaderboard .np-board-avatar,.np-account.np-leaderboard .np-board-avatar img{width:32px;height:32px}.np-account.np-leaderboard li.np-board-wide-score{grid-template-columns:3ch 32px minmax(0,1fr)}.game-nav-page-2048 .game-title{padding-left:0}.game-nav-page-2048 .game-title .mobile-plai{display:none}.game-nav-page-2048 .game-title>strong{font-size:26px}}
@media(max-height:650px){.game-nav-page-jump .hud>.np-record-comparison{top:70px}.game-nav-page-jump .hud>.np-record-gap{top:108px}.game-nav-page-jump .combo-label{top:156px}}

/* Shared HUD alignment: center each label/value group without changing game geometry. */
.game-nav-page-2048 .score-row{align-items:stretch}
.game-nav-page-2048 .score-box{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.game-nav-page-2048 .score-box.np-record-box>.np-record-comparison{width:100%;flex:1;align-items:center}
.game-nav-page-jump .hud>.np-record-comparison,.game-nav-page-2048 .np-record-comparison{grid-template-rows:auto auto;row-gap:3px;align-content:center}
.np-record-comparison>div{display:grid;grid-template-rows:subgrid;grid-row:span 2;align-items:center;justify-items:center;text-align:center;gap:3px}
.np-record-comparison strong{max-width:100%;text-align:center;align-self:start}
.np-record-comparison:has(.np-record-long) strong{font-size:12px}
.game-nav-page-jump .score-block{align-items:center;justify-content:center;text-align:center;min-width:72px}
.game-nav-page-jump .score-block>.score-label{text-align:center}

/* The score renderer measures its element: keep width tied to the card, not the digits. */
.game-nav-page-2048 .score-box>#score{align-self:stretch;min-width:0}

/* Local candidate: independent nonredeemable game points; confirmed total never interpolates. */
.np-game-coins{position:absolute;right:18px;top:152px;width:144px;min-height:59px;padding:9px 11px;display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:8px;align-items:center;border:1px solid #ffffffa0;border-radius:16px;background:#f8fbf1ed;color:#31523d;z-index:2;pointer-events:none}
.np-game-coins>img{width:26px;height:26px;grid-row:1/span 2}.np-game-coins>span{font:400 10px/1.35 system-ui;white-space:nowrap}.np-game-coins>strong{font:650 21px/1.1 system-ui;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.np-game-coins>small{grid-column:1/-1;font:400 10px/1.3 system-ui;color:#607c67;margin-top:3px}.np-game-coins>[data-coin-gain]{position:absolute;left:-36px;top:14px;font:700 17px/1 system-ui;color:#80701e;white-space:nowrap}.np-game-coins>[data-coin-gain].fly{animation:np-coin-flight .75s ease-out both}@keyframes np-coin-flight{from{opacity:1;transform:translateY(8px)}to{opacity:0;transform:translate(5px,-16px)}}
@media(prefers-reduced-motion:reduce){.np-game-coins>[data-coin-gain].fly{animation:none}}

.np-game-coins>small:empty{display:none}.np-game-coins.pickup-pop>img{animation:np-bag-pop .22s ease-out}@keyframes np-bag-pop{0%,100%{transform:scale(1)}45%{transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.np-game-coins.pickup-pop>img{animation:none}}

/* Jump phone HUD: two aligned rows; canvas projection and desktop remain unchanged. */
@media(max-width:760px),(pointer:coarse) and (max-height:500px){
 .game-nav-page-jump .hud{top:18px;left:max(18px,env(safe-area-inset-left,0px));right:max(18px,env(safe-area-inset-right,0px));height:44px;align-items:center}
 .game-nav-page-jump .score-block{height:44px;min-width:60px;max-width:calc(100% - 154px);align-items:flex-start;justify-content:center;text-align:left}
 .game-nav-page-jump .score-block>.score-label{font-size:9px;line-height:11px;letter-spacing:.5px;text-align:left}
 .game-nav-page-jump .score-block>#jump-score{font-size:32px;line-height:33px;letter-spacing:-1px}
 .game-nav-page-jump .score-block>#jump-score.np-current-long{font-size:26px}
 .game-nav-page-jump .hud-actions{gap:6px;align-items:center}
 .game-nav-page-jump .hud-actions .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid #294c3b13;border-radius:50%;background:#ffffff65}
 .game-nav-page-jump .hud-actions #jump-board-open{background:#ffffff65;border-color:#294c3b13;color:#95701f}
 .game-nav-page-jump .hud-actions #jump-board-open:hover,.game-nav-page-jump .hud-actions .icon-button:hover{background:#fff}
 .game-nav-page-jump .hud-actions .icon-button svg{width:22px;height:22px}
 .game-nav-page-jump .hud>.np-record-comparison{top:56px;left:0;right:104px;height:26px;display:flex;gap:6px;align-items:center;justify-content:flex-start;grid-template-rows:auto;row-gap:0;align-content:center}
 .game-nav-page-jump .hud>.np-record-comparison>div{display:flex;flex-direction:row;grid-row:auto;align-items:center;justify-content:flex-start;gap:4px;min-width:0}
 .game-nav-page-jump .hud>.np-record-comparison>div+div::before{content:'·';font:400 11px/18px system-ui;color:#657b87;margin-right:2px}
 .game-nav-page-jump .hud>.np-record-comparison span{font-size:10px;line-height:18px;display:block;flex:0 0 2em;width:2em;overflow:hidden;white-space:nowrap}
 .game-nav-page-jump .hud>.np-record-comparison strong{font-size:12px;line-height:18px;align-self:center;min-width:0;white-space:nowrap}
 .game-nav-page-jump .hud>.np-record-comparison .np-record-login{font-size:10px}
 .game-nav-page-jump .hud>.np-record-gap{display:none}
 .game-nav-page-jump .np-game-coins{top:74px;right:max(18px,env(safe-area-inset-right,0px));width:auto;max-width:98px;min-height:26px;height:26px;padding:3px 8px;display:flex;gap:5px;border-radius:14px;align-items:center}
 .game-nav-page-jump .np-game-coins>img{width:18px;height:18px;flex:0 0 18px}
 .game-nav-page-jump .np-game-coins>strong{font:650 16px/18px system-ui;min-width:1ch;white-space:nowrap;overflow-wrap:normal}
 .game-nav-page-jump .np-game-coins>span,.game-nav-page-jump .np-game-coins>small,.game-nav-page-jump .np-game-coins>[data-coin-gain]{display:none!important}
 .game-nav-page-jump .combo-label{top:150px}
}

/* Shared player card; account auth and deletion forms retain their existing behavior. */
.np-account-menu .np-player-heading{align-items:center;gap:12px}.np-account-menu .np-menu-identity{display:flex;align-items:center;gap:12px;margin:0;min-width:0}.np-account-menu .np-menu-identity strong{overflow-wrap:anywhere;font-size:21px}.np-account-menu .np-menu-identity .np-avatar{width:56px;height:56px;flex:0 0 56px}.np-player-wallet{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px 0}.np-player-wallet img{width:30px;height:30px}.np-player-wallet strong{font:700 32px/1.2 system-ui;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.np-player-games{display:grid;gap:8px}.np-player-game{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:76px;padding:14px;border:1px solid #d0dfe8;border-radius:16px;background:#ffffff80;color:#18314d;text-align:left;font:650 16px system-ui}.np-player-game span{min-width:0}.np-player-game small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#526d83}.np-player-game>strong{font-size:22px;white-space:nowrap;font-variant-numeric:tabular-nums}.np-player-logout{display:block;margin:16px auto 0;min-height:44px;padding:8px 16px;border:0;background:transparent;color:#49647c;font:inherit}.np-account-menu .np-account-support{margin-top:12px}.np-account-menu .np-account-support summary{min-height:44px;display:flex;align-items:center}.np-player-game:focus-visible,.np-player-logout:focus-visible{outline:3px solid #3865df;outline-offset:3px}@media(max-width:360px){.np-player-game{padding:12px;gap:8px}.np-player-game>strong{font-size:19px}}
.np-account-menu #np-game-account-title{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.np-account-menu .np-player-heading>.np-menu-identity{flex:1}.np-account-menu .np-menu-identity strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* One restrained, non-interactive rank signal on the existing trophy controls. */
:is(#jump-board-open,#board-open,.np-board-trophy)[data-rank-unread] { position:relative; }
:is(#jump-board-open,#board-open,.np-board-trophy)[data-rank-unread]::before {
  content:""; position:absolute; inset-block-start:4px; inset-inline-end:4px;
  width:7px; height:7px; border:1px solid #fff9e8; border-radius:50%;
  background:#b47b18; pointer-events:none;
}
:is(#jump-board-open,#board-open,.np-board-trophy)[data-rank-spark]::after {
  content:""; position:absolute; inset:1px; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 2px #efc264,0 0 8px #c58c2e46;
  animation:np-rank-spark .52s ease-out both;
}
@keyframes np-rank-spark {
  0% {opacity:0;clip-path:inset(0 90% 0 0);}
  32% {opacity:1;clip-path:inset(0 0 0 0);}
  100% {opacity:0;clip-path:inset(0 0 0 0);}
}
@media(prefers-reduced-motion:reduce) {
  :is(#jump-board-open,#board-open,.np-board-trophy)[data-rank-spark]::after {display:none;}
}

/* Keep refresh feedback inside the fixed 44px header control. */
.np-board-live {
 position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
 clip-path:inset(50%); white-space:nowrap; border:0;
}
.np-leaderboard [data-board-refresh][data-refresh-busy] {cursor:progress}
.np-leaderboard [data-board-refresh][data-refresh-busy] svg {
 transform-origin:50% 50%; animation:np-board-refresh-turn .8s linear infinite;
}
.np-leaderboard [data-board-refresh][data-refresh-error] {
 color:#865119; border-color:#c08d55; background:#fff3e1;
}
@keyframes np-board-refresh-turn {to {transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce) {
 .np-leaderboard [data-board-refresh][data-refresh-busy] {color:#546d82;background:#d9e5ef}
 .np-leaderboard [data-board-refresh][data-refresh-busy] svg {animation:none;opacity:.68}
}

/* Result CTAs: keep one stable action row in pending, ready and retry states. */
.np-unified-game .np-result-actions {display:flex;flex-direction:column}
.np-unified-game .np-result-pair {
 display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.22fr);gap:10px;align-items:stretch;width:100%;
}
.np-unified-game .result-card .personal-actions .np-result-pair .np-board-trophy,
.np-unified-game #end-dialog .np-result-pair .np-board-trophy,
.np-unified-game .np-result-pair #restart-button,.np-unified-game .np-result-pair #end-new {
 position:relative;min-width:0;width:100%;height:48px;min-height:48px;
 display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 7px;box-sizing:border-box;
 font:650 14px/1.15 system-ui;white-space:nowrap;border-radius:12px;
}
.np-unified-game .np-result-pair .np-board-trophy {overflow:hidden}
.np-unified-game .np-result-pair .np-board-trophy svg {width:18px;height:18px;flex:0 0 18px}
.np-unified-game .result-card .result-main-actions {margin-top:0}
.np-unified-game .np-result-pair .np-board-trophy[data-rank-settlement=pending] {cursor:progress}
.np-unified-game .np-result-pair .np-board-trophy[data-rank-settlement=retry] {border-color:#bb8b51}
.np-unified-game .np-rank-track {display:none;position:absolute;left:8px;right:8px;bottom:3px;height:3px;border-radius:6px;overflow:hidden;background:#c79b3635;pointer-events:none}
.np-unified-game .np-rank-track::before {content:"";display:block;width:100%;height:100%;border-radius:inherit;background:#bd8e28}
.np-unified-game [data-rank-settlement=pending] .np-rank-track {display:block}
.np-unified-game [data-rank-settlement=pending] .np-rank-track::before {width:34%;animation:np-rank-progress-sweep 1.25s ease-in-out infinite}
.np-unified-game [data-rank-settlement=confirmed] .np-rank-track {display:block;animation:np-rank-progress-confirm .65s ease-out both}
@keyframes np-rank-progress-sweep {from{transform:translateX(-105%)}to{transform:translateX(300%)}}
@keyframes np-rank-progress-confirm {0%,45%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce) {
 .np-unified-game [data-rank-settlement=pending] .np-rank-track::before {animation:none;transform:translateX(95%)}
 .np-unified-game [data-rank-settlement=confirmed] .np-rank-track {animation:none;display:none}
}
/* Reuse the pre-existing verified score-comparison area without moving the action row. */
.np-unified-game .result-card .np-result-status,
.np-unified-game #end-dialog .np-result-status {
 display:block!important;box-sizing:border-box;height:38px;overflow:auto;margin:0 0 5px;
}
.np-unified-game .result-card .np-result-status:empty,
.np-unified-game #end-dialog .np-result-status:empty {display:block!important}
.np-unified-game .result-card .result-caption {margin-bottom:4px}
.np-unified-game #end-dialog .np-result-actions {margin-top:8px}
.np-unified-game .np-result-status span {margin-top:0}
/* Keep the primary replay styled as primary while settlement holds it. */
.np-unified-game .np-result-pair #restart-button[aria-disabled=true],
.np-unified-game .np-result-pair #end-new[aria-disabled=true] {cursor:wait}
.np-unified-game .np-result-pair:has(.np-board-trophy[data-rank-settlement=retry]) [aria-disabled=true] {cursor:not-allowed}
.np-unified-game .np-result-pair #restart-button[aria-disabled=true]:active {transform:none}
