/* Lifetime Statistics page only: expand into the available viewport. */
body.wd-royal-stats{margin:0;min-height:100dvh;overflow-x:hidden}
body.wd-royal-stats .wd-stats-page{
  box-sizing:border-box;width:100%!important;max-width:none!important;
  min-height:100dvh;margin:0!important;padding:8px clamp(12px,1.5vw,28px) 22px!important;
  display:flex;flex-direction:column;
}
body.wd-royal-stats .wd-royal-panel{
  box-sizing:border-box;width:100%;max-width:none;flex:1;
  display:flex;flex-direction:column;min-height:0;
}
body.wd-royal-stats #playerStatsContent{flex:1;display:flex;flex-direction:column;min-height:0}
body.wd-royal-stats .wd-stat-panels{flex:1;align-items:stretch}
body.wd-royal-stats .wd-stat-card{box-sizing:border-box;min-width:0}
body.wd-royal-stats .wd-stats-page,
body.wd-royal-stats .wd-stats-page button{font-size:130%}
body.wd-royal-stats .wd-royal-panel h1{font-size:clamp(33.8px,5.2vw,55.9px)!important}
body.wd-royal-stats #statsIdentity{font-size:clamp(26px,3.9vw,39px)!important}
body.wd-royal-stats .wd-stats-rating{font-size:22.1px}
body.wd-royal-stats .wd-stat-card h2{font-size:clamp(26px,3.25vw,33.8px)!important}
body.wd-royal-stats .wd-stat-subtitle{font-size:18.2px}
body.wd-royal-stats .wd-stat-tile strong{font-size:clamp(26px,3.51vw,41.6px)}
body.wd-royal-stats .wd-stat-tile span{font-size:15.6px}
body.wd-royal-stats .wd-difficulty-name{font-size:130%}
body.wd-royal-stats .wd-difficulty strong,
body.wd-royal-stats .wd-difficulty span{font-size:15.6px}
body.wd-royal-stats #statsRoyalSince{font-size:16.9px!important}
body.wd-royal-stats .wd-stats-crest{width:42px;height:42px}
body.wd-royal-stats .wd-stats-emblem{font-size:clamp(26px,3.9vw,54.6px)!important}
body.wd-royal-stats .wd-stats-refresh{font-size:1.3em!important}
body.wd-royal-stats .wd-back{font-size:1.3em!important}
@media(max-width:740px){
 body.wd-royal-stats .wd-stat-panels{grid-template-columns:minmax(0,1fr)}
 body.wd-royal-stats .wd-stats-page{padding:8px 10px 20px!important}
 body.wd-royal-stats .wd-stat-tile{padding:12px 2px}
 body.wd-royal-stats .wd-difficulty{padding:7px 2px}
 body.wd-royal-stats #statsRoyalSince{font-size:14.3px!important}
 body.wd-royal-stats .wd-stats-crest{width:35px;height:35px}
}

/* Royal membership identity centered directly beneath Lifetime Statistics heading. */
body.wd-royal-stats .wd-stats-membership-banner{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin:-5px auto 18px;color:#ffdb73;font:800 clamp(19px,2vw,26px)/1.15 Georgia,serif;text-shadow:0 2px 3px #0008}
body.wd-royal-stats .wd-stats-membership-banner[hidden]{display:none!important}
body.wd-royal-stats .wd-stats-member-crest{display:block;width:66px;height:66px;object-fit:contain;flex:none}
body.wd-royal-stats .wd-stats-year-circle{display:inline-flex;align-items:center;justify-content:center;width:76px;height:76px;box-sizing:border-box;flex:none;border-radius:50%;background:linear-gradient(145deg,#15944c,#00602f);border:3px solid #53eb8b;box-shadow:inset 0 2px 4px #ffffff35,0 3px 12px #0008;color:#fff;font:900 20px/1 Georgia,serif;letter-spacing:0;text-shadow:0 1px 2px #00391b}
@media(max-width:600px){body.wd-royal-stats .wd-stats-membership-banner{gap:10px;margin:0 auto 13px;font-size:18px}body.wd-royal-stats .wd-stats-member-crest{width:52px;height:52px}body.wd-royal-stats .wd-stats-year-circle{width:64px;height:64px;font-size:17px}}

/* Lower only the Statistics page's yellow Back to Word Dome strip by 3% of viewport height.
   Use flow spacing instead of a visual transform so the statistics heading remains clear. */
body.wd-royal-stats .wd-stats-page > .wd-back{
  margin-top:calc(4px + 3dvh)!important;
}
