.cloud-score-link{position:fixed;z-index:30;left:110px;top:25px;font:13px system-ui,-apple-system,'PingFang SC',sans-serif;text-decoration:none;background:#fffdf4e8;color:#493b53;border:1px solid #56425d26;border-radius:24px;padding:10px 16px;touch-action:manipulation}.cloud-score-link:focus-visible{outline:3px solid #71558e;outline-offset:3px}.score-sync{position:fixed;z-index:25;bottom:56px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);width:max-content;background:#fffdf4ed;color:#493b53;border-radius:12px;padding:8px 12px;font:12px/1.5 system-ui,-apple-system,'PingFang SC',sans-serif;pointer-events:none;text-align:center}.score-sync:empty{display:none}.score-sync button{font:inherit;border:0;background:none;color:#66418b;text-decoration:underline;cursor:pointer;padding:4px 8px;pointer-events:auto}.home-rank-link{font:13px system-ui;color:inherit;text-decoration:none;border:1px solid #ffffff40;border-radius:30px;padding:10px 16px;margin-left:auto;margin-right:12px;white-space:nowrap}@media(max-width:600px){.cloud-score-link{top:68px;left:20px;padding:9px 12px;font-size:12px}.home-rank-link{font-size:11px;padding:8px 10px;margin-right:8px}.score-sync{bottom:72px;font-size:11px}}

.gorillas-page .cloud-score-link{top:auto;bottom:20px;left:50%;transform:translateX(-50%)}

/* Compact, peripheral in-game boards; small screens open on demand. */
.game-ranking{position:fixed;z-index:30;right:20px;top:110px;width:238px;color:#453b50;background:#fffdf4ed;border:1px solid #59476624;border-radius:16px;box-shadow:0 6px 28px #30213e12;font:12px/1.5 system-ui,-apple-system,'PingFang SC',sans-serif;touch-action:pan-y;overflow:hidden;text-shadow:none}
.game-ranking button,.game-ranking a{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.game-ranking-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:22px;border:0;background:transparent;padding:13px 15px;text-align:left}
.game-ranking-toggle>span:first-child{font-size:11px;letter-spacing:1.5px;font-weight:600}.game-ranking-toggle b{font-size:16px;letter-spacing:0;margin-left:3px}.game-ranking-toggle-label{font-size:11px;color:#786a82}
.game-ranking:not(.is-open){width:auto}.game-ranking:not(.is-open) .game-ranking-toggle{gap:12px}
.game-ranking-scroll{max-height:min(370px,calc(100dvh - 235px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 12px;touch-action:pan-y}
.game-ranking table{border-collapse:collapse;width:100%;table-layout:fixed;font-variant-numeric:tabular-nums}
.game-ranking th{font-size:10px;color:#887c8e;font-weight:400;text-align:left;padding:0 0 7px}.game-ranking th:first-child{width:33px}.game-ranking th:last-child{width:66px;text-align:right}
.game-ranking td{padding:6px 0;border-top:1px solid #5e4d6d12;vertical-align:middle;font-size:11px;line-height:16px}.game-ranking td:first-child{color:#8d7e96}.game-ranking td:nth-child(2){overflow-wrap:anywhere;padding-right:7px}.game-ranking td:last-child{text-align:right;white-space:nowrap;font-size:10px}.game-ranking tbody tr:nth-child(-n+3) td:first-child{color:#9c743a;font-weight:700}.game-ranking .is-me td{color:#775098;font-weight:600}
.game-ranking-status{font-size:11px;line-height:1.7;color:#786a82;margin:10px 0 15px}.game-ranking-status:empty{display:none}
.game-ranking footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #5e4d6d18;padding:7px 12px}.game-ranking footer a{text-decoration:none;font-size:10px}.game-ranking-refresh{border:0;background:transparent;padding:5px;font-size:10px!important}.game-ranking-refresh:disabled{opacity:.5;cursor:wait}
.game-ranking button:hover,.game-ranking a:hover{color:#8756ac;background:#8c64a00a}.game-ranking :focus-visible{outline:2px solid #9874af;outline-offset:-2px}
.game-ranking [hidden]{display:none!important}
.stick-page .game-ranking{left:20px;right:auto}
.gorillas-page .game-ranking{top:auto;bottom:max(16px,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%)}.gorillas-page .game-ranking.is-open{bottom:58px}
@media(max-width:900px),(max-height:600px){.game-ranking{top:70px;left:20px;right:auto;width:238px;max-width:calc(100vw - 40px)}.game-ranking-toggle{padding:9px 12px}.game-ranking-scroll{max-height:min(310px,calc(100dvh - 210px))}.gorillas-page .game-ranking{top:auto;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}.gorillas-page .game-ranking:not(.is-open){top:70px;bottom:auto}.gorillas-page .game-ranking.is-open{bottom:58px}.gorillas-page .game-ranking-scroll{max-height:min(310px,calc(100dvh - 220px))}}
.preview .game-ranking{display:none!important}

/* The archer keeps the board folded until requested, away from the bow and HUD. */
.archer-page .game-ranking{top:112px;right:3%;left:auto;background:#343044ed;color:#f3e5d0;border-color:#e7cfa65c;max-width:calc(100vw - 36px)}
.archer-page .game-ranking-toggle-label,.archer-page .game-ranking-status,.archer-page .game-ranking th{color:#d2c0bb}
.archer-page .game-ranking td:first-child,.archer-page .game-ranking .is-me td{color:#f3d093}
.archer-page .game-ranking footer{border-color:#e7cfa62b}.archer-page .game-ranking td{border-color:#e7cfa61a}
.archer-page .game-ranking button:hover,.archer-page .game-ranking a:hover{color:#fff3d5;background:#ffffff0a}
.archer-page #cloud-status{position:static;transform:none;width:auto;max-width:none;background:#e7cfa612;color:#f4dfb0;font-size:12px;pointer-events:auto;margin-top:16px}
.archer-page #cloud-status button{color:#ffe7ae}
.result-ranking{display:inline-block;padding:8px 12px;color:#f4dfb0;text-decoration:underline;text-underline-offset:4px}
@media(max-aspect-ratio:1/1){.archer-page .game-ranking{top:24%;right:6%}.archer-page .game-ranking-scroll{max-height:30dvh}}
@media(max-height:500px) and (min-aspect-ratio:1/1){.archer-page .game-ranking{top:83px}.archer-page .game-ranking-scroll{max-height:calc(100dvh - 190px)}}
