/* Code Clash result parchment. One entrance, no particles or ongoing timers. */
body .clash-result{color:#24484e;--clash-accent:#427981;--clash-seal:#25616d}
body .clash-result.victory{--clash-accent:#a37c37;--clash-seal:#726034}
body .clash-result-hero{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;padding:2px 12px 22px;text-align:left}
body .clash-result-hero:after{content:'';position:absolute;bottom:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent,#b7a17b,transparent)}
body .clash-result-crest{display:grid;place-items:center;flex-shrink:0;width:64px;height:76px;padding-bottom:8px;background:var(--clash-seal);color:#f7df9c;clip-path:polygon(0 0,100% 0,100% 70%,50% 100%,0 70%);box-shadow:inset 0 0 0 4px #b8a16e;animation:clash-seal-arrive .42s ease-out both}
body .clash-result-crest .icon{width:34px;height:34px}
body .clash-overline{display:block;font-size:9px;font-weight:900;letter-spacing:.15em;color:#6b6149}
body .clash-result-hero h3{font:700 clamp(25px,4vw,34px)/1.1 Georgia,serif;color:#24484e;margin:5px 0}
body .clash-result-hero p{font-size:12px;line-height:1.5;margin:0;color:#526259;overflow-wrap:anywhere}
body .clash-result-hero>div{min-width:0}
body .clash-scores{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-top:20px;animation:clash-sheet-arrive .3s ease-out both}
body .clash-contender{min-width:0;padding:12px 15px;background:#fff9ed;border:1px solid #d2c5a6;border-top:3px solid #719191;box-shadow:inset 0 0 0 3px #faf3e3}
body .clash-contender.is-winner{background:#f5eacb;border-top-color:#a17c38}
body .clash-contender header{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:18px;font-size:9px;font-weight:900;letter-spacing:.08em;color:#576257;flex-wrap:wrap}
body .clash-winner{display:flex;align-items:center;gap:3px;letter-spacing:0;color:#75551f;font-size:10px}
body .clash-winner .icon{width:13px;height:13px}
body .clash-contender h4{color:#24484e;font-size:16px;font-weight:900;line-height:1.3;overflow-wrap:anywhere;margin:8px 0 10px;min-height:2.6em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body .clash-score{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
body .clash-score>strong{font:700 40px/1 Georgia,serif;font-variant-numeric:tabular-nums;color:#245664;white-space:nowrap}
body .clash-score strong>span{font-size:20px;font-weight:400;color:#62756e}
body .clash-score>small{font-size:11px;color:#53665b}
body .clash-score-marks{display:flex;gap:5px;margin:12px 0 14px}
body .clash-score-marks i{height:7px;flex:1;background:#dfdcc9;border:1px solid #c6c7af;transform:skewX(-12deg)}
body .clash-score-marks i.filled{background:#4f898b;border-color:#387277}
body .clash-time{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border-top:1px dashed #cdbd97;padding-top:9px;font-variant-numeric:tabular-nums;color:#385f63;font-size:12px;font-weight:800}
body .clash-time>.icon{width:14px;height:14px;flex-shrink:0}
body .clash-time>small{margin-left:auto;font-size:10px;font-weight:600;color:#5f695b}
body .clash-versus{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-4deg);padding:7px 4px;border:1px solid #ad996c;background:#efe0ba;color:#72572e;font:700 12px Georgia,serif;box-shadow:0 2px 0 #c8b893}
body .clash-decision{display:flex;justify-content:center;align-items:center;gap:6px;margin:12px 0 17px;font-size:11px;color:#596658;text-align:center;line-height:1.5}
body .clash-decision>.icon{width:14px;height:14px;flex-shrink:0}
body .clash-rating{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;background:#e2ebe5;padding:13px 15px;border:1px solid #b8c9be;border-left:3px solid #567e73}
body .clash-rating-icon{display:grid;place-items:center;width:34px;height:38px;background:#d2e0d8;color:#345e59;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%)}
body .clash-rating-icon>.icon{width:21px;height:21px}
body .clash-rating>div{display:grid;gap:3px;min-width:0}
body .clash-rating>div>span{font-size:10px;color:#3e625b;font-weight:800}
body .clash-rating>div>strong{font:700 22px/1.2 Georgia,serif;color:#244c4f;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body .clash-rating>div>strong>span[aria-hidden]{font:400 16px Nunito,sans-serif;color:#6b8074}
body .clash-rating>div>small{font-size:10px;line-height:1.4;color:#57685e}
body .clash-rating .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .clash-rating-delta{display:grid;gap:2px;text-align:center;font:700 24px/1.1 Georgia,serif;font-variant-numeric:tabular-nums;color:#395f63;border-left:1px solid #bdcdc2;padding-left:12px}
body .clash-rating-delta.gain{color:#32613e}body .clash-rating-delta.loss{color:#8b4639}
body .clash-rating-delta small{font:700 9px Nunito,sans-serif;color:#53695e}
body .clash-unrated{text-align:center;font-size:12px;color:#5e6b60}
body .clash-result-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
body .clash-result-actions .btn{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;min-width:0}
body .clash-result-actions .btn .icon{width:15px;height:15px;flex-shrink:0}
body .clash-result-actions .text-button{font-size:11px;min-height:44px;color:#42666b!important}
@keyframes clash-seal-arrive{from{opacity:0;transform:translateY(-7px) rotate(-7deg)}to{opacity:1;transform:none}}
@keyframes clash-sheet-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:480px){body .clash-result-hero{padding:0 0 17px;gap:12px;justify-content:flex-start}body .clash-result-crest{width:48px;height:58px}body .clash-result-crest .icon{width:27px;height:27px}body .clash-result-hero h3{font-size:26px}body .clash-result-hero p{font-size:11px}body .clash-scores{gap:14px;margin-top:16px}body .clash-contender{padding:10px}body .clash-contender h4{font-size:14px}body .clash-score{gap:4px}body .clash-score>strong{font-size:34px}body .clash-score strong>span{font-size:17px}body .clash-versus{font-size:10px;padding:5px 3px}body .clash-time>small{width:100%;margin-left:0}body .clash-rating{padding:11px 10px;gap:8px;grid-template-columns:minmax(0,1fr) auto}body .clash-rating-icon{display:none}body .clash-rating>div>strong{font-size:21px}body .clash-rating-delta{font-size:23px;padding-left:9px}body .clash-result-actions{gap:8px}body .clash-result-actions .btn{font-size:11px;padding:10px}body .clash-result-actions .text-button{font-size:10px}}
@media(prefers-reduced-motion:reduce){body .clash-result-crest,body .clash-scores{animation:none}}
html[data-graphics=low] .clash-result-crest,html[data-graphics=low] .clash-scores{animation:none}

/* Tournament desk: engraved seals and scrollable parchment slips, no render loop. */
body #app .arena-board{color:#203c43;container-type:inline-size;--arena-line:#d3c3a1}
body #app .arena-board-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
body #app .arena-overline{font-size:9px;letter-spacing:.12em;font-weight:900;color:#66593e}
body #app .arena-zone{display:flex;align-items:center;gap:4px;flex-shrink:0;font-size:10px;font-weight:800;color:#6b5a3b}
body #app .arena-zone .icon{width:15px;height:15px}.arena-zone.is-ready{color:#326846!important}
body #app .arena-scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
body #app .arena-rating-seal{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px;align-items:center;padding:14px 15px 10px;background:#e3ebe1;border:1px solid #b9c8b3;border-top:3px solid #517665;box-shadow:inset 0 0 0 3px #f7f2df;min-width:0}
body #app .arena-rating-seal.knowledge{background:#e0e9ec;border-color:#b2c5cd;border-top-color:#467080}
body #app .arena-crest{width:38px;height:44px;display:grid;place-items:center;background:#2a5960;color:#f2d79a;clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);box-shadow:inset 0 0 0 2px #ad945d;flex-shrink:0;padding-bottom:4px}
body #app .arena-crest .icon{width:23px;height:23px}
body #app .arena-rating-main{display:grid;gap:2px;min-width:0}
body #app .arena-rating-main>span{font-size:11px;font-weight:900;letter-spacing:.02em}
body #app .arena-rating-main>strong{font:700 29px/1 Georgia,serif;font-variant-numeric:tabular-nums;color:#244b53}
body #app .arena-rating-main>small{font-size:10px;color:#4e615d}
body #app .arena-rating-foot{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #b7c4b5;padding-top:7px;color:#4e615d;font-size:9px;font-weight:800}
body #app .arena-placement{display:flex;gap:4px}.arena-placement i{width:7px;height:7px;transform:rotate(45deg);background:#c4cec1;border:1px solid #899e8e}.arena-placement i.filled{background:#b68a3e;border-color:#8d6832}
body #app .arena-desk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
body #app .arena-pane{min-width:0;border:1px solid var(--arena-line);background:#fff8e9;box-shadow:0 3px 0 #8a714314}
body #app .arena-pane-head{display:flex;align-items:center;gap:8px;min-height:47px;padding:10px 12px;background:#e9dfc5;border-bottom:1px solid var(--arena-line)}
body #app .arena-pane-head>.icon{width:18px;height:18px;color:#6d613e;flex-shrink:0}
body #app .arena-pane-head h3{font:700 18px/1.1 Georgia,serif;margin:0;color:#294c51;flex:1;min-width:0}
body #app .arena-pane-head>span{font-size:10px;white-space:nowrap;color:#5e644f;font-weight:800}
body #app .arena-entry-ticket{margin:10px 12px 8px;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;color:#4c5c51}
body #app .arena-rule-link{display:grid;place-items:center;min-width:36px;min-height:36px;padding:5px;border:0;background:transparent;color:#49686c;cursor:pointer;flex-shrink:0}
body #app .arena-rule-link .icon{width:18px;height:18px}
body #app .arena-actions{display:grid;gap:7px;padding:0 12px 10px}
body #app .arena-actions .btn{display:flex;justify-content:center;align-items:center;gap:7px;font-size:12px;line-height:1.3;padding:9px 8px}
body #app .arena-actions .btn small{font-size:10px;font-weight:600}
body #app .arena-actions .icon{width:17px;height:17px;flex-shrink:0}
body #app .arena-mode-key{display:flex;justify-content:space-between;gap:6px;padding:8px 12px;border-block:1px dashed var(--arena-line);color:#5e654f;font-size:10px;background:#f4ecd8}
body #app .arena-mode-key span{display:flex;align-items:center;gap:4px}.arena-mode-key .icon{width:13px;height:13px;flex-shrink:0}
body #app .arena-roster,body #app .arena-log,body #app .arena-rank-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a18a61 #eee5ce;max-height:260px}
body #app .arena-rival{padding:12px;border-bottom:1px solid #e6d9bc}.arena-rival:last-child{border-bottom:0}
body #app .arena-rival-profile{border:0;background:transparent;display:flex;align-items:center;gap:8px;text-align:left;width:100%;padding:0;color:#244b53;cursor:pointer}
body #app .arena-rival-profile>svg{width:34px;height:34px;flex-shrink:0}
body #app .arena-rival-profile>span{flex:1;display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
body #app .arena-rival-profile strong{font-size:12px}.arena-rival-profile small{font-size:10px;color:#5b695e}
body #app .arena-rival-profile i{width:7px;height:7px;background:#b6a67f;transform:rotate(45deg);flex-shrink:0}.arena-rival-profile i.is-ready{background:#45805c!important}
body #app .arena-rival-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
body #app .arena-rival-actions .btn{font-size:11px;display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 5px;min-width:0}
body #app .arena-rival-actions .icon{width:15px;height:15px;flex-shrink:0}
body #app .arena-empty{display:grid;justify-items:center;gap:7px;padding:20px 12px;text-align:center;color:#566454;font-size:12px}
body #app .arena-empty .arena-crest{width:32px;height:38px;background:#d9d4b7;color:#546a56;box-shadow:none}
body #app .arena-empty .arena-crest .icon{width:19px;height:19px}
body #app .arena-empty small{font-size:11px;color:#627067}.arena-empty a{font-size:11px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
body #app .arena-log{min-height:120px;max-height:300px;padding:5px 9px;background:repeating-linear-gradient(transparent 0 55px,#b4a07a0c 55px 56px)}
body #app .arena-bout{width:100%;display:grid;grid-template-columns:25px minmax(0,1fr) auto 9px;gap:7px;align-items:center;text-align:left;margin:0;padding:11px 2px;border:0;border-bottom:1px solid #e0d3b7;border-radius:0;background:transparent;color:#294c51;cursor:pointer;transition:background-color .15s,transform .15s}
body #app .arena-bout:last-child{border-bottom:0}.arena-bout .arena-crest{width:24px!important;height:29px!important;background:#dce5d8!important;color:#3d655a!important;box-shadow:none!important}.arena-bout .arena-crest .icon{width:15px!important;height:15px!important}
body #app .arena-bout-name{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
body #app .arena-bout-name strong{font-size:12px;line-height:1.25}.arena-bout-name small{font-size:9px;color:#5f6b61}
body #app .arena-bout-result{display:grid;gap:3px;justify-items:end;min-width:0;font-size:10px}
body #app .arena-bout-result b{font-size:10px;line-height:1.3;padding:3px 5px;color:#53604e;background:#e9e4cf;border-radius:2px}.arena-bout-result small{font-size:9px;color:#5b695e}
body #app .arena-bout.victory .arena-bout-result b{background:#dfebd7;color:#315a39}.arena-bout.defeat .arena-bout-result b{background:#f1dfd7!important;color:#884438!important}
body #app .arena-bout:is(.pending,.active) .arena-bout-result b{background:#f0dfac;color:#694c13}
body #app .arena-bout:is(.pending,.active){background:#f8edcb;border-left:2px solid #b88e3c;padding-left:5px}
body #app .arena-bout-arrow .icon{width:11px;height:11px;color:#7d795a}
body #app .arena-log-footer{display:flex;gap:4px;align-items:center;justify-content:center;border-top:1px solid var(--arena-line);padding:8px;font-size:9px;color:#687164}.arena-log-footer .icon{width:11px;height:11px}
body #app .arena-caption{font-size:11px;line-height:1.5;color:#5b685c;margin:10px 12px}
body #app .arena-ranking-pane{margin-top:15px}
body #app .arena-refresh-status{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;border-top:1px solid var(--arena-line);padding:9px 12px;font-size:10px;line-height:1.5;color:#52685d}
body #app .arena-refresh-status>.icon{width:13px;height:13px;flex:none}
body #app .arena-refresh-status>small{font-size:9px;color:#617165;margin-left:auto}
body #app .arena-rank-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px}
body #app .arena-board-tabs{display:flex;gap:4px;min-width:0}
body #app .arena-board-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #c8bb97;border-bottom-width:2px;background:#efe4c9;color:#4d5c50;padding:8px 10px;min-height:40px;font-size:11px;font-weight:900;border-radius:2px;cursor:pointer}
body #app .arena-board-tabs .icon{width:15px;height:15px;flex-shrink:0}
body #app .arena-board-tabs button.active{background:#2b5f68;color:#fff2d3;border-color:#20434b}
body #app .arena-rank-scope{font-size:9px;letter-spacing:.06em;font-weight:800;color:#66674e;white-space:nowrap}
body #app .arena-your-rank{display:flex;align-items:center;gap:7px;margin:0 12px 5px;padding:9px;background:#e5ebdd;font-size:11px;color:#335848;flex-wrap:wrap}
body #app .arena-your-rank>b{margin-left:auto;font-variant-numeric:tabular-nums}.arena-your-rank small{font-size:9px;font-weight:500}
body #app .arena-rank-scroll{max-height:235px;padding:0 12px}
body #app .arena-rank-list{margin:0;padding:0;list-style:none}
body #app .arena-rank-list li{display:grid;grid-template-columns:22px 30px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 3px;border-bottom:1px solid #e2d7ba;font-size:12px}
body #app .arena-rank-list li:last-child{border-bottom:0}.arena-rank-list li.is-self{background:#e9efdf}
body #app .arena-rank-list svg{width:30px;height:30px}.arena-rank-list li>span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
body #app .arena-rank-list small{font-size:10px;color:#64715f}.arena-rank-list em{font-size:9px;font-style:normal;color:#396a4d}
body #app .arena-rank-number{color:#8b6a2e;font:700 17px Georgia,serif;text-align:center}.arena-rank-score{display:grid;text-align:right;gap:2px;font-variant-numeric:tabular-nums}.arena-rank-score small{font-weight:400}
body #app .arena-first-place{text-align:center;padding:7px 0 14px}
body #app .arena-footer{display:flex;justify-content:space-between;gap:8px;margin-top:12px}.arena-footer button{display:flex;align-items:center;gap:5px;font-size:10px;min-height:36px}.arena-footer .icon{width:13px;height:13px}
@media(hover:hover){body #app .arena-bout:hover{background:#eee6d0;transform:translateX(2px)}body #app .arena-rival-profile:hover strong{text-decoration:underline}.arena-board-tabs button:hover{filter:brightness(1.05)}}
@container(max-width:560px){body #app .arena-desk{grid-template-columns:1fr}body #app .arena-log{max-height:190px}body #app .arena-roster{max-height:210px}body #app .arena-scoreboard{gap:8px}body #app .arena-rating-seal{grid-template-columns:30px minmax(0,1fr);padding:11px 9px 9px;gap:7px}body #app .arena-rating-seal>.arena-crest{width:29px;height:36px}body #app .arena-rating-seal>.arena-crest .icon{width:19px;height:19px}body #app .arena-rating-main>strong{font-size:26px}}
@container(max-width:340px){body #app .arena-rating-foot{font-size:8px;gap:3px}body #app .arena-rating-foot>span:last-child:not(:first-child){display:none}body #app .arena-overline{font-size:8px;letter-spacing:.04em}body #app .arena-zone{font-size:9px}body #app .arena-rank-toolbar{flex-wrap:wrap}body #app .arena-rank-scope{font-size:8px}body #app .arena-pane-head h3{font-size:17px}body #app .arena-bout{grid-template-columns:22px minmax(0,1fr) auto 8px;gap:5px}}
@media(prefers-reduced-motion:reduce){body #app .arena-bout{transition:none;transform:none!important}}
[data-graphics=low] .arena-bout{transition:none!important;transform:none!important}

/* Top-side request slip; never steals focus or interrupts a lesson. */
.battle-request-notice{position:fixed;z-index:80;top:calc(82px + env(safe-area-inset-top,0px));right:20px;width:min(350px,calc(100vw - 24px));display:grid;grid-template-columns:28px minmax(0,1fr) auto 24px;gap:8px;align-items:center;padding:11px 9px 11px 12px;background:#fff4d8;color:#24434b;border:1px solid #ac925e;border-left:4px solid #b48b40;box-shadow:inset 0 0 0 3px #e9d8b44d,0 4px 0 #173e4626,0 8px 18px #173e4620;animation:battleNoticeEnter .2s ease-out}
.battle-request-notice[hidden]{display:none}
.battle-request-crest{display:grid;place-items:center;width:28px;height:34px;background:#2d626b;color:#f4dc9e;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);padding-bottom:3px}.battle-request-crest .icon{width:18px;height:18px}
.battle-request-copy{display:grid;gap:2px;min-width:0}.battle-request-copy>span{font-size:8px;letter-spacing:.09em;font-weight:900;color:#775b29}.battle-request-copy>strong{font-size:12px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-request-copy>small{font-size:10px;color:#536554}
.battle-request-review{display:flex;align-items:center;gap:2px;min-height:40px;padding:8px;background:#2b6069;color:#fff3d4;border-bottom:3px solid #1b424a;border-radius:2px;font-size:11px;font-weight:900}.battle-request-review .icon{width:11px;height:11px}
.battle-request-dismiss{display:grid;place-items:center;min-width:24px;min-height:40px;padding:2px;background:none;color:#b22f3b}.battle-request-dismiss .icon{width:19px;height:19px;stroke-width:3;transition:transform .15s}
@media(hover:hover){.battle-request-dismiss:hover .icon{transform:rotate(90deg)}.battle-request-review:hover{background:#347783}}
@keyframes battleNoticeEnter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:560px){.battle-request-notice{right:12px;top:calc(72px + env(safe-area-inset-top,0px));gap:6px;padding:9px 7px 9px 9px}}
@media(prefers-reduced-motion:reduce){.battle-request-notice{animation:none}.battle-request-dismiss .icon{transition:none;transform:none!important}}
[data-graphics=low] .battle-request-notice{animation:none;box-shadow:0 2px 0 #173e4626}[data-graphics=low] .battle-request-dismiss .icon{transition:none;transform:none!important}

/* Give the tournament desk room for both panes in the real kingdom drawer. */
@media(min-width:821px){body #app .realm-panel[data-route=arena]{width:min(780px,calc(100vw - 48px));max-width:none;right:24px;left:auto}}

@media(min-width:821px){body #app .realm-panel[data-route=leaderboard]{width:min(540px,calc(100vw - 48px));max-width:none;right:24px;left:auto}}

/* Kingdom standings: enamel pennants and medal slips, with bounded CSS motion. */
body #app .global-ladder{--rank-accent:#276b78;--rank-ink:#193f4a;--rank-paper:#fff8e6;margin-top:8px;background:#f3e8cc;border:1px solid #c6af77;box-shadow:inset 0 0 0 3px #fff5da,0 3px 0 #b6a07833;overflow:hidden}
body #app .global-ladder[data-rank-board=knowledge]{--rank-accent:#66528a;--rank-ink:#463e61}
body #app .global-ladder .rank-banner{position:relative;isolation:isolate;overflow:hidden;min-height:78px;padding:12px 14px;gap:12px;background:linear-gradient(110deg,#184651,#2f7880);border:0;border-bottom:3px solid #d1ad61;color:#ffedbd}
body #app .global-ladder[data-rank-board=knowledge] .rank-banner{background:linear-gradient(110deg,#393c59,#71608d)}
body #app .global-ladder .rank-banner:before{content:'';position:absolute;z-index:-1;inset:6px;border:1px solid #efcf8440;pointer-events:none}
body #app .global-ladder .rank-banner:after{content:'';position:absolute;z-index:-1;top:-50%;bottom:-50%;left:-35%;width:30%;background:linear-gradient(90deg,transparent,#fff1b325,transparent);transform:skewX(-18deg);pointer-events:none}
body #app .global-ladder .rank-banner h3{color:#fff0c7;font:700 clamp(18px,2.5vw,23px)/1.12 Georgia,serif;text-shadow:0 2px #123d493d;max-width:15ch}
body #app .global-ladder .rank-banner-seal{position:relative;display:grid;place-items:center;flex:0 0 43px;width:43px;height:49px;padding:0 0 5px;background:linear-gradient(135deg,#ffeab1,#dfb256);color:#5c4422;clip-path:polygon(0 0,100% 0,100% 74%,50% 100%,0 74%);box-shadow:inset 0 0 0 3px #b78335}
body #app .global-ladder .rank-banner-seal>.icon{width:27px;height:27px;fill:#e0a33e;stroke-width:1.5}
body #app .global-ladder .rank-banner-seal i{position:absolute;top:6px;right:6px;width:6px;height:6px;background:#fff8d7;clip-path:polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%)}
body #app .global-ladder .rank-refresh{color:#ffedbf;background:#173c4b45;min-width:40px;min-height:40px;margin-left:auto;border:1px solid #f4d89c44;transition:background .18s}
body #app .global-ladder .rank-refresh>.icon{transition:transform .35s}
body #app .global-ladder .rank-refresh:is(:hover,:focus-visible)>.icon{transform:rotate(45deg)}
body #app .global-ladder .arena-rank-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:13px 12px 8px}
body #app .global-ladder .arena-board-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
body #app .global-ladder .arena-board-tabs button{position:relative;min-height:46px;padding:6px 10px;gap:8px;background:#fbf3df;border-color:#cfbb8c;border-bottom:3px solid #c1a16b;color:#43616a;box-shadow:inset 0 0 0 2px #fff9e9;transition:transform .16s,background .16s}
body #app .global-ladder .arena-board-tabs button.active{background:var(--rank-accent);color:#fff2d0;border-color:var(--rank-accent);border-bottom-color:var(--rank-ink);box-shadow:inset 0 0 0 1px #ffe4aa38}
body #app .global-ladder .rank-tab-icon{display:grid;place-items:center;width:24px;height:25px;background:#7a9a9c21;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%)}
body #app .global-ladder .active .rank-tab-icon{background:#fff4c42b;color:#ffe0a1}
body #app .global-ladder .arena-board-tabs .icon{width:17px;height:17px;transition:transform .2s}
body #app .global-ladder .arena-board-tabs button:is(:hover,:focus-visible) .icon{transform:translateY(-2px) rotate(-8deg)}
body #app .global-ladder .arena-board-tabs button:active{transform:translateY(2px)}
body #app .global-ladder .arena-rank-scope{text-align:right;font-size:8px;color:#776342;letter-spacing:.14em}
body #app .global-ladder .arena-your-rank{flex-wrap:nowrap;gap:9px;margin:0 12px 12px;padding:9px 11px;background:#e2ebe4;border:1px solid #a9bcb1;border-left:3px solid var(--rank-accent);color:var(--rank-ink);box-shadow:inset 0 0 0 2px #f9f8e766}
body #app .global-ladder .rank-personal-crest{flex:0 0 28px;display:grid;place-items:center;width:28px;height:32px;padding-bottom:3px;background:var(--rank-accent);color:#ffedbe;clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%)}
body #app .global-ladder .rank-personal-crest .icon{width:18px;height:18px}
body #app .global-ladder .rank-personal-label{display:grid;gap:2px;min-width:0;font-size:9px;font-weight:800;line-height:1.25}
body #app .global-ladder .rank-personal-label strong{font-size:15px}
body #app .global-ladder .arena-your-rank>b{display:grid;gap:1px;font-size:18px;text-align:right;line-height:1.1}
body #app .global-ladder .arena-your-rank small{font-size:9px;color:#536c60}
body #app .global-ladder .arena-rank-scroll{padding:0 12px 10px;max-height:350px;scrollbar-color:#9c8557 #f4eace}
body #app .global-ladder .arena-rank-list{display:grid;gap:7px}
body #app .global-ladder .arena-rank-list li{--medal:#a4926b;--medal-light:#f1e3bf;position:relative;grid-template-columns:28px 38px minmax(0,1fr) auto;gap:9px;min-height:68px;padding:9px 10px;background:var(--rank-paper);border:1px solid #dccaa3;border-bottom:3px solid #cdb98e;box-shadow:inset 3px 0 var(--medal-light);font-size:13px}
body #app .global-ladder .arena-rank-list li.rank-medal-gold{--medal:#a06a20;--medal-light:#efca6e;background:linear-gradient(110deg,#fae5ae,#fff7de 75%);border-color:#cbaa5f}
body #app .global-ladder .arena-rank-list li.rank-medal-silver{--medal:#627786;--medal-light:#c4d5d8;background:linear-gradient(110deg,#e1ece8,#f5f7eb 75%);border-color:#a5b7b5}
body #app .global-ladder .arena-rank-list li.rank-medal-bronze{--medal:#8c5936;--medal-light:#dbad80;background:linear-gradient(110deg,#f1d7b7,#fff2de 75%);border-color:#c9a07b}
body #app .global-ladder .arena-rank-number{position:relative;display:grid;place-items:center;min-width:28px;height:36px;padding-bottom:4px;background:linear-gradient(135deg,#fff6dc,var(--medal-light));color:var(--medal);clip-path:polygon(0 0,100% 0,100% 73%,50% 100%,0 73%);font:900 17px/1 Georgia,serif;box-shadow:inset 0 0 0 1px var(--medal)}
body #app .global-ladder .rank-medal-plain .arena-rank-number{background:#eee4cb;box-shadow:none}
body #app .global-ladder .arena-rank-list .rank-player-avatar{display:block;width:38px;height:42px;padding:3px;background:#d6c598;border:1px solid var(--medal);box-shadow:inset 0 0 0 2px #fff3ce;overflow:visible}
body #app .global-ladder .rank-player-avatar svg{display:block;width:30px;height:34px}
body #app .global-ladder .arena-rank-list .rank-player-name{gap:4px;line-height:1.3;color:#234b56}
body #app .global-ladder .rank-player-name em{justify-self:start;font-size:8px;line-height:1;padding:3px 5px;letter-spacing:.04em;color:#fff6d7;background:var(--rank-accent);font-weight:900;text-transform:uppercase}
body #app .global-ladder .arena-rank-list li.is-self{outline:2px solid var(--rank-accent);outline-offset:-2px;box-shadow:inset 4px 0 var(--rank-accent)}
body #app .global-ladder .arena-rank-score{color:var(--rank-ink);font-size:17px;line-height:1.2;letter-spacing:-.025em}
body #app .global-ladder .arena-rank-score small{font-size:9px;color:#6c705e;letter-spacing:0}
body #app .global-ladder .arena-refresh-status{margin-top:2px;padding:10px 12px;background:#e9ddbd;border-top:1px solid #cdb98c;color:#605c44}
body #app .global-ladder .arena-refresh-status>small{color:#696750}
body #app .global-ladder .rank-empty{display:grid;justify-items:center;gap:8px;padding:15px;text-align:center;color:#3c5d61}
body #app .global-ladder .rank-empty p{margin:0;font-weight:800;font-size:13px}
body #app .global-ladder .rank-empty small{max-width:26ch;font-size:11px;line-height:1.5}
body #app .global-ladder .rank-loading{display:grid;gap:8px;padding:4px 12px 16px;color:#4d665f;font-size:12px}
body #app .global-ladder .rank-loading>span{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 0}
body #app .global-ladder .rank-loading .icon{width:20px;height:20px;color:#9a772d}
body #app .global-ladder .rank-loading>i{height:55px;background:linear-gradient(100deg,#e4d5b3,#faf1da,#e4d5b3);border:1px solid #d9c59a;opacity:.6;animation:rank-loading-light .8s ease-in-out 2 alternate}
body #app .global-ladder.rank-reveal .rank-banner:after{animation:rank-banner-light 1.1s .15s ease-out both}
body #app .global-ladder.rank-reveal .rank-banner-seal{animation:rank-seal-settle .6s ease-out both}
body #app .global-ladder.rank-reveal .rank-banner-seal i{animation:rank-spark .5s .3s ease-in-out 2 alternate}
body #app .global-ladder.rank-reveal .arena-rank-list li:nth-child(-n+8){animation:rank-slip-arrive .32s ease-out both;animation-delay:var(--rank-delay,0ms)}
body #app .realm-panel[data-route=leaderboard]{animation:rank-drawer-arrive .22s ease-out both}
body #app .realm-panel[data-route=leaderboard] .arena-rank-scroll{max-height:none;overflow:visible}
@keyframes rank-slip-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes rank-drawer-arrive{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes rank-banner-light{from{transform:translateX(0) skewX(-18deg)}to{transform:translateX(600%) skewX(-18deg)}}
@keyframes rank-seal-settle{0%{transform:rotate(-12deg) scale(.85)}65%{transform:rotate(4deg) scale(1.04)}100%{transform:none}}
@keyframes rank-spark{from{opacity:.3;transform:scale(.5)}to{opacity:1;transform:scale(1.4)}}
@keyframes rank-loading-light{to{opacity:1}}
@media(max-width:360px){body #app .global-ladder .rank-banner{padding:10px;gap:9px}body #app .global-ladder .rank-banner-seal{flex-basis:34px;width:34px;height:42px}body #app .global-ladder .rank-banner h3{font-size:18px}body #app .global-ladder .arena-rank-list li{grid-template-columns:24px 32px minmax(0,1fr) auto;gap:6px;padding:8px 7px;font-size:11px}body #app .global-ladder .arena-rank-number{min-width:24px;height:32px;font-size:15px}body #app .global-ladder .arena-rank-list .rank-player-avatar{width:32px;height:36px;padding:2px}body #app .global-ladder .rank-player-avatar svg{width:26px;height:30px}body #app .global-ladder .arena-rank-score{font-size:15px}body #app .global-ladder .arena-rank-toolbar,body #app .global-ladder .arena-rank-scroll{padding-left:8px;padding-right:8px}body #app .global-ladder .arena-your-rank{margin-left:8px;margin-right:8px}body #app .global-ladder .arena-board-tabs button{padding:6px;gap:5px}}
[data-graphics=low] #app .global-ladder *,[data-graphics=low] #app .global-ladder *:after,[data-graphics=low] #app .realm-panel[data-route=leaderboard]{animation:none!important;transition:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){body #app .global-ladder *,body #app .global-ladder *:after,body #app .realm-panel[data-route=leaderboard]{animation:none!important;transition:none!important;transform:none!important}}
