/* Option 1 trophy link — separate from Grand Hall, arch, and game controls. */
#wdHomeLeaderboards[hidden]{display:none!important}
#wdHomeLeaderboards{
 position:fixed!important;z-index:75!important;
 top:clamp(34px,5.5dvh,72px)!important;right:clamp(15px,2.7vw,58px)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
 width:clamp(162px,12.2vw,210px)!important;min-height:45px!important;
 margin:0!important;padding:9px 12px!important;
 border:2px solid #ffd46a!important;border-radius:7px!important;
 background:linear-gradient(180deg,#1554b2 0%,#073376 58%,#061c4c 100%)!important;
 box-shadow:inset 0 0 0 1px #88520b,inset 0 2px 8px #8dbbff4d,0 4px 13px #0009!important;
 color:#ffdfa0!important;text-shadow:0 1px 2px #000!important;
 font:700 clamp(14px,1.04vw,17px)/1.15 Georgia,serif!important;
 letter-spacing:0!important;cursor:pointer!important;
}
#wdHomeLeaderboards:hover,#wdHomeLeaderboards:focus-visible{outline:2px solid #fff0aa!important;outline-offset:2px!important;filter:brightness(1.13)!important}
#wdHomeLeaderboards:disabled{opacity:.74!important}
#wdHomeLeaderboards .wd-leaderboards-trophy{font:22px/1 sans-serif!important}
@media(max-width:1150px){
 #wdHomeLeaderboards{top:12px!important;right:12px!important;width:164px!important;min-height:42px!important;font-size:14px!important}
}
@media(max-width:450px){
 #wdHomeLeaderboards{width:143px!important;min-height:39px!important;padding:6px 8px!important;font-size:12px!important}
 #wdHomeLeaderboards .wd-leaderboards-trophy{font-size:19px!important}
}

/* Home only: sole administrator shortcut, placed directly below Leaderboards.
   Independent positioning preserves the approved gold arch and rankings button. */
#wdHomeAdminShortcut[hidden]{display:none!important}
#wdHomeAdminShortcut{
 position:fixed!important;z-index:75!important;
 top:calc(clamp(34px,5.5dvh,72px) + 54px)!important;
 right:clamp(15px,2.7vw,58px)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:clamp(162px,12.2vw,210px)!important;min-height:39px!important;
 margin:0!important;padding:7px 12px!important;
 border:2px solid #efc76a!important;border-radius:7px!important;
 background:linear-gradient(180deg,#123b87 0%,#072860 59%,#061a42 100%)!important;
 color:#ffe6a5!important;text-shadow:0 1px 2px #000b!important;
 font:700 clamp(13px,.96vw,16px)/1.1 Georgia,serif!important;
 box-shadow:inset 0 0 0 1px #865016,0 3px 10px #0009!important;
 cursor:pointer!important;
}
#wdHomeAdminShortcut:hover,#wdHomeAdminShortcut:focus-visible{
 outline:2px solid #fff0af!important;outline-offset:2px!important;filter:brightness(1.13)!important
}
#wdHomeAdminShortcut:disabled{opacity:.7!important}
@media(max-width:1150px){
 #wdHomeAdminShortcut{top:61px!important;right:12px!important;width:164px!important;min-height:38px!important}
}
@media(max-width:450px){
 #wdHomeAdminShortcut{top:58px!important;width:143px!important;min-height:36px!important;padding:6px 8px!important;font-size:12px!important}
}

/* The Royal-only leaderboard page (no homepage art or positions affected). */
body.wd-leaderboards-page{
 min-height:100vh;margin:0;box-sizing:border-box;
 background:radial-gradient(ellipse at 50% 0,#123f89 0%,#071d4c 47%,#030a22 100%);
 color:#f8ecd4;font:16px/1.45 Georgia,'Times New Roman',serif;
}
.wd-leaderboards-page *, .wd-leaderboards-page *::before,.wd-leaderboards-page *::after{box-sizing:border-box}
.wd-leaderboards-shell{max-width:1210px;margin:0 auto;padding:22px clamp(15px,4vw,46px) 50px}
.wd-leaderboards-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
.wd-leaderboards-back,.wd-leaderboards-refresh{
 border:1px solid #eac064;background:linear-gradient(#154e99,#0b295c);
 border-radius:7px;color:#ffe3a2;text-decoration:none;padding:9px 16px;
 font:700 14px Georgia,serif;cursor:pointer
}
.wd-leaderboards-back:hover,.wd-leaderboards-back:focus-visible,.wd-leaderboards-refresh:hover{background:#235da6}
.wd-leaderboards-brand{width:min(210px,34vw);height:104px;object-fit:contain;display:block;margin:0 auto 2px}
.wd-leaderboards-title{text-align:center;margin:2px 0 5px;color:#ffdf8b;font:800 clamp(28px,4.2vw,47px)/1.1 Georgia,serif;text-shadow:0 3px 6px #000b}
.wd-leaderboards-subtitle{text-align:center;color:#e5d1a7;margin:0 auto 16px;max-width:760px}
.wd-leaderboards-status{text-align:center;margin:10px auto 20px;color:#d1dbf3;font-size:13px}
.wd-leaderboards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.wd-leaderboard-card{
 border:2px solid #d8a741;border-radius:13px;overflow:hidden;
 background:linear-gradient(160deg,#12366f,#07193b);
 box-shadow:inset 0 0 0 2px #7b521d88,0 8px 23px #0008
}
.wd-leaderboard-card h2{
 margin:0;padding:14px 18px;background:linear-gradient(90deg,#4b2d08,#102f68 28%,#183e80 70%,#51320c);
 border-bottom:1px solid #cba151;color:#ffe3a0;text-align:center;
 font:800 clamp(18px,2vw,24px)/1.25 Georgia,serif
}
.wd-leaderboard-scroll{max-height:520px;overflow:auto;overscroll-behavior:contain}
.wd-leaderboard-scroll table{border-collapse:collapse;width:100%;font:16px/1.25 Georgia,serif}
.wd-leaderboard-scroll th{
 position:sticky;top:0;z-index:1;background:#0e2c61;color:#e2cc93;
 font-size:13px;letter-spacing:.045em;padding:10px 15px;border-bottom:1px solid #8f723b
}
.wd-leaderboard-scroll td{padding:11px 15px;border-bottom:1px solid #ffffff1b}
.wd-leaderboard-scroll tbody tr:nth-child(even){background:#ffffff08}
.wd-leaderboard-scroll th:first-child,.wd-leaderboard-scroll td:first-child{text-align:center;width:68px}
.wd-leaderboard-scroll th:nth-child(2),.wd-leaderboard-scroll td:nth-child(2){text-align:left}
.wd-leaderboard-scroll th:last-child,.wd-leaderboard-scroll td:last-child{text-align:right;width:90px}
.wd-leaderboard-player{font-weight:700;color:#fff7e2}
.wd-leaderboard-score{font-weight:800;color:#ffdb79;font-variant-numeric:tabular-nums}
.wd-place-1{color:#ffd34b;font-weight:900}.wd-place-2{color:#c7d2df;font-weight:900}.wd-place-3{color:#e4a37a;font-weight:900}
.wd-leaderboards-empty{text-align:center;color:#c8d6e6;padding:25px 15px}
.wd-leaderboards-note{color:#c4cee0;margin:21px auto 0;font-size:13px;text-align:center;max-width:900px}
.wd-leaderboards-access{text-align:center;margin:30px auto;padding:26px;max-width:550px;border:1px solid #b8934c;background:#0b2654;border-radius:10px}
.wd-leaderboards-access a{color:#ffdf82}
[hidden]{display:none!important}
@media(max-width:720px){
 .wd-leaderboards-grid{grid-template-columns:1fr}
 .wd-leaderboards-heading{flex-wrap:wrap}
 .wd-leaderboards-scroll{max-height:470px}
}
