/* The result ceremony owns the viewport after the castle-collapse animation. */
#battle-overlay:has(.victory-result),#battle-overlay.victory-overlay{position:fixed;inset:0;z-index:90;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;padding:0;background:radial-gradient(ellipse at 50% 25%,#6f58324d,transparent 65%),#071910eb;backdrop-filter:blur(5px);touch-action:pan-y}
.victory-result{--vr-gold:#ffdc83;--vr-light:#fff0b5;--vr-accent:#a4de83;position:relative;isolation:isolate;width:min(650px,100%);padding:calc(20px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));color:#f0f3df;text-align:center;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;overflow:hidden}
.victory-result *{box-sizing:border-box}.victory-result .vr-icon{width:32px;height:32px;flex:none;display:block}.vr-heading{position:relative;z-index:1}.vr-crest{width:180px;height:150px;display:block;margin:0 auto -8px;filter:drop-shadow(0 0 22px #e7bd5266);animation:vr-crest-pop .65s cubic-bezier(.2,1.55,.5,1) both}.vr-crest-rays{fill:#f3d26f13;stroke:#e0c77933;stroke-width:1;transform-origin:90px 70px;animation:vr-rays 16s linear infinite}.vr-crest-leaves{fill:none;stroke:#debc5b;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.vr-crest-shield{fill:#bf8c35;stroke:#ffe7a0;stroke-width:3}.vr-crest-inner{fill:#253e2d;stroke:#85612c;stroke-width:2}.vr-crest-mark{fill:#f6d47e;stroke:#ffedb7;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.vr-crest-ribbon{fill:#d5a54b;stroke:#ffe6a0;stroke-width:2}
.battle-overlay .victory-result h2.vr-title,.victory-result h2.vr-title{margin:0;font:950 clamp(45px,11vw,76px)/1.07 ui-sans-serif,system-ui,sans-serif;letter-spacing:-2px;color:#ffe9a5;text-shadow:0 4px 0 #896127,0 8px 22px #0009;animation:vr-title-pop .6s .12s cubic-bezier(.2,1.6,.5,1) both}.vr-boss-name{display:block;margin:10px 0 0;font-size:17px;color:#c5d5b3;font-weight:500}.vr-practice-badge,.vr-clear-badge{display:inline-block;font-size:12px;letter-spacing:1px;font-weight:750;border:1px solid #c4c89c5e;border-radius:30px;padding:7px 13px;margin:15px 0 3px;color:#ccdbba;background:#273b2b}.vr-clear-badge{background:#b38b281e;border-color:#d6b9667a;color:#ffe096;animation:vr-title-pop .5s .55s both}
.vr-loot{position:relative;z-index:1}.vr-currency-row{display:flex;justify-content:center;align-items:center;gap:38px;padding:24px 12px 12px;animation:vr-float-in .5s .3s both}.vr-currency{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:9px;text-align:left}.victory-result .vr-currency .vr-icon{grid-column:1;grid-row:1/3;width:48px;height:48px;filter:drop-shadow(0 3px 2px #0006)}.vr-currency strong{grid-column:2;grid-row:1;font-size:42px;line-height:1;font-weight:850;letter-spacing:-1.3px;font-variant-numeric:tabular-nums;color:#ffdd7c}.vr-currency small{grid-column:2;grid-row:2;display:block;margin-top:5px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#b3bf9c}.vr-crowns strong{font-size:34px;color:#cddfb3}.victory-result .vr-crowns .vr-icon{width:35px;height:35px;color:#d2dfad}
.vr-chest-section{padding:8px 0 0}.victory-result .vr-chest-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:300px;min-height:220px;padding:10px 20px 15px;margin:0 auto;background:radial-gradient(ellipse at 50% 50%,#ecb24324,transparent 70%);border:0;border-radius:16px;color:#ffdfa0;touch-action:manipulation;cursor:pointer;animation:vr-float-in .5s .5s both}.vr-chest-button:hover{background:radial-gradient(ellipse at 50% 50%,#ecb2433b,transparent 73%)}.vr-chest-button:focus-visible,.vr-return:focus-visible,.vr-campaign-actions button:focus-visible{outline:3px solid #fff0b5;outline-offset:4px}.vr-chest-art{width:220px;height:174px;display:block;overflow:visible;filter:drop-shadow(0 8px 9px #0006);--chest-wood:#95603a;--chest-band:#c8a14d;--chest-edge:#f0cb78}.vr-chest-wood{fill:var(--chest-wood)}.vr-chest-band,.vr-chest-lock{fill:var(--chest-band)}.vr-chest-edge{stroke:var(--chest-edge);stroke-width:3;stroke-linejoin:round}.vr-chest-silver{--chest-wood:#497386;--chest-band:#b6d1d4;--chest-edge:#e0f5e5}.vr-chest-royal{--chest-wood:#6c456e;--chest-band:#dfb752;--chest-edge:#ffe39b}.vr-chest-button .vr-chest-art{animation:vr-chest-bounce 2.4s .9s ease-in-out infinite}.vr-chest-light{opacity:0;transform-origin:120px 110px}.vr-chest-sparkles{transform-origin:center;animation:vr-sparkle 1.6s ease-in-out infinite}.vr-chest-lid{transform-origin:120px 100px}.vr-chest-button>strong{font-size:20px;margin-top:-13px;font-weight:750;color:#f4dfaa}.vr-chest-prompt{font-size:14px;font-weight:750;color:#27412d;background:linear-gradient(#ffe9a3,#dbb65e);border:1px solid #ffe8a8;border-radius:20px;padding:7px 23px;margin-top:9px;box-shadow:0 3px 0 #8b6d35,0 5px 12px #0003}.vr-opened-chest{display:flex;align-items:center;justify-content:center;gap:4px;color:#ffe29c}.vr-opened-chest .vr-chest-art{width:124px;height:100px;margin:0 -6px 0 -18px}.is-open .vr-chest-lid{animation:vr-lid-open .6s ease-out both}.is-open .vr-chest-light{animation:vr-light-burst .8s both}.is-open .vr-chest-sparkles{opacity:1}
.vr-reward-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px;max-width:560px;margin:6px auto 0;perspective:900px}.vr-reward-card{--rarity:#a9c389;overflow:hidden;min-width:0;border:1px solid var(--rarity);border-radius:10px;background:linear-gradient(#2f4535,#17291f);box-shadow:0 4px 15px #0004;animation:vr-card-flip .6s calc(.3s + var(--reveal)*.14s) cubic-bezier(.2,.8,.3,1) both;transform-origin:center;backface-visibility:hidden;padding-bottom:12px}.vr-rarity-rare{--rarity:#95c9ea}.vr-rarity-epic{--rarity:#c99bed}.vr-rarity-legendary{--rarity:#f0c967}.vr-reward-portrait{position:relative;aspect-ratio:1.05;overflow:hidden;border-bottom:1px solid #c3cd9a33}.vr-reward-portrait>img{display:block;object-fit:cover;object-position:50% 25%;width:100%;height:100%}.vr-card-badge{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,#14271bf2);color:var(--rarity);font-size:10px;font-weight:850;letter-spacing:1px;padding:13px 2px 4px}.vr-reward-card>strong{display:block;min-height:29px;padding:7px 5px 0;font-size:12px;font-weight:700;line-height:1.3;color:#e9eedb}.vr-reward-card>b{display:block;font-size:25px;color:#ffdfa1;line-height:1.2}.vr-reward-card>small{display:block;margin-top:3px;color:#a9be97;font-size:11px}
.vr-footer{position:relative;z-index:1;margin-top:21px}.victory-result .vr-return{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;width:min(300px,100%);padding:12px 20px;margin:auto;border:1px solid #dac181;border-radius:9px;background:linear-gradient(#d0bb7a,#ae985c);color:#243729;font:750 16px/1.3 ui-sans-serif,system-ui,sans-serif;box-shadow:0 4px 0 #6f603d,0 6px 18px #0004;touch-action:manipulation;cursor:pointer}.victory-result .vr-return .vr-icon{height:24px;width:24px}.victory-result .vr-return:disabled{opacity:.55;cursor:default;box-shadow:none}
.vr-lost{--vr-gold:#db9c83;--vr-accent:#c48778}.vr-lost .vr-crest{filter:drop-shadow(0 0 20px #c97c5f33)}.vr-lost .vr-crest-shield{fill:#775446;stroke:#d5a18a}.vr-lost .vr-crest-mark{fill:#b57865;stroke:#e5b5a4}.vr-lost .vr-crest-ribbon{fill:#835a49;stroke:#d0a182}.vr-lost .vr-crest-leaves{stroke:#97755b}.vr-lost .vr-crest-rays{stroke:#ba8d6b33;fill:#a96c5010}.battle-overlay .vr-lost h2.vr-title{color:#efb49d;text-shadow:0 4px 0 #71483a,0 8px 22px #0009}.vr-draw .vr-crest-mark{fill:none;stroke:#d5e5d9;stroke-width:5}.vr-draw .vr-crest-shield{fill:#66857b;stroke:#d1dfc7}.vr-draw .vr-crest-ribbon{fill:#6b8d7a;stroke:#bdcfb4}.battle-overlay .vr-draw h2.vr-title{color:#d6e6d2;text-shadow:0 4px 0 #52735f,0 8px 22px #0009}.vr-practice .vr-footer{margin-top:30px}
.vr-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}.vr-confetti>i{position:absolute;left:var(--x);top:-20px;width:6px;height:13px;background:#e1be59;opacity:0;transform:rotate(var(--turn));animation:vr-confetti-fall 3.1s var(--delay) ease-out 2}.vr-confetti>i:nth-child(3n){background:#95c28d;width:8px;height:8px}.vr-confetti>i:nth-child(3n+1){background:#e7dba4;height:8px}.vr-confetti>i:nth-child(4n){clip-path:polygon(50% 0,100% 100%,0 100%)}
@keyframes vr-crest-pop{from{transform:translateY(16px) scale(.2);opacity:0}to{transform:none;opacity:1}}@keyframes vr-title-pop{from{transform:scale(.55);opacity:0}to{transform:scale(1);opacity:1}}@keyframes vr-float-in{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}@keyframes vr-rays{to{transform:rotate(360deg)}}@keyframes vr-chest-bounce{0%,70%,100%{transform:translateY(0) rotate(0)}76%{transform:translateY(-9px) rotate(-3deg)}83%{transform:translateY(0) rotate(3deg)}90%{transform:translateY(-5px) rotate(-2deg)}}@keyframes vr-sparkle{0%,100%{opacity:.35}50%{opacity:1}}@keyframes vr-lid-open{from{transform:translateY(0) rotate(0)}to{transform:translateY(-28px) rotate(-18deg)}}@keyframes vr-light-burst{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.15)}100%{opacity:.7;transform:scale(1)}}@keyframes vr-card-flip{0%{transform:rotateY(80deg) translateY(18px);opacity:0}65%{transform:rotateY(-8deg);opacity:1}100%{transform:none;opacity:1}}@keyframes vr-confetti-fall{0%{transform:translateY(-10px) rotate(var(--turn));opacity:0}12%{opacity:.8}100%{transform:translateY(600px) rotate(calc(var(--turn) + 280deg));opacity:0}}
@media(max-width:360px){.victory-result{padding-left:17px;padding-right:17px}.vr-crest{width:152px;height:126px}.vr-currency-row{gap:25px}.vr-currency strong{font-size:35px}.victory-result .vr-currency .vr-icon{width:39px;height:39px}.vr-crowns strong{font-size:30px}.vr-reward-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.vr-reward-card>strong{font-size:11px;min-height:34px}.vr-reward-card>b{font-size:22px}.vr-card-badge{font-size:9px}}
@media(max-height:650px) and (max-width:599px){.victory-result{padding-top:14px;padding-bottom:18px}.vr-crest{width:133px;height:110px;margin-bottom:-10px}.battle-overlay .victory-result h2.vr-title{font-size:46px}.vr-currency-row{padding-top:18px;padding-bottom:3px}.vr-chest-button .vr-chest-art{width:180px;height:143px}.victory-result .vr-chest-button{min-height:187px}.vr-footer{margin-top:15px}.vr-opened-chest .vr-chest-art{width:100px;height:80px}}
@media(max-height:520px) and (min-width:600px){.victory-result{width:min(880px,100%);display:grid;grid-template-columns:1fr 1.1fr;gap:0 32px;align-items:center;padding:18px 32px}.vr-heading{grid-column:1;grid-row:1}.vr-crest{width:150px;height:125px}.battle-overlay .victory-result h2.vr-title{font-size:54px}.vr-loot{grid-column:2;grid-row:1/3;align-self:center}.vr-currency-row{padding:10px 0 0;gap:25px}.vr-currency strong{font-size:33px}.vr-crowns strong{font-size:28px}.victory-result .vr-currency .vr-icon{width:36px;height:36px}.vr-footer{grid-column:1;grid-row:2;margin-top:18px}.vr-chest-button .vr-chest-art{width:180px;height:143px}.victory-result .vr-chest-button{min-height:180px;padding-bottom:8px}.vr-opened-chest .vr-chest-art{width:100px;height:80px}.vr-reward-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.vr-reward-card>strong{font-size:10px;min-height:32px}.vr-reward-card>b{font-size:20px}.vr-reward-card{padding-bottom:6px}.vr-reward-card>small{font-size:10px}.vr-practice .vr-heading{grid-row:1/3}.vr-practice .vr-footer{grid-column:2;grid-row:1/3;margin-top:0}}
@media(prefers-reduced-motion:reduce){.victory-result *{animation:none!important;transition:none!important}.vr-confetti{display:none}.is-open .vr-chest-lid{transform:translateY(-28px) rotate(-18deg)}.is-open .vr-chest-light{opacity:.7}}
#battle-overlay[hidden]{display:none!important}
.vr-revealed .vr-heading *,.vr-revealed .vr-currency-row{animation:none!important}

/* The result has separate header, bounded reward area and in-flow footer. */
#battle-overlay:has(.victory-result){height:100dvh;overflow:hidden;touch-action:manipulation}
.victory-result{--vr-card-height:168px;position:relative;height:100dvh;max-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch;gap:8px;padding:max(10px,env(safe-area-inset-top)) 18px max(10px,env(safe-area-inset-bottom));overflow:hidden}
.victory-result .vr-heading{grid-column:1;grid-row:1;min-height:0;align-self:start}.vr-crest{width:100px;height:80px;margin:0 auto -4px}.battle-overlay .victory-result h2.vr-title{font-size:40px;line-height:1;margin:7px 0}.vr-boss-name{font-size:15px;line-height:1.2;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vr-practice-badge,.vr-clear-badge{font-size:10px;padding:4px 10px;margin:7px 0 0}
.victory-result .vr-loot{grid-column:1;grid-row:2;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.vr-currency-row{flex:none;padding:4px 0;gap:24px}.vr-currency strong{font-size:27px;line-height:1}.vr-currency small{font-size:10px;margin-top:3px}.victory-result .vr-currency .vr-icon{height:27px;width:27px}.vr-crowns strong{font-size:25px}
.vr-chest-section{width:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:0}.victory-result .vr-chest-button{width:min(280px,100%);min-height:0;margin:0 auto;padding:5px 8px;display:flex;align-items:center;justify-content:center;gap:4px}.vr-chest-button .vr-chest-art{flex:none;align-self:center;display:block;width:150px;height:119px;margin:0 auto}.vr-chest-button>strong{font-size:15px;line-height:1.2;margin:0;max-width:100%}.vr-chest-prompt{font-size:12px;line-height:1.2;margin-top:3px;padding:7px 19px}.vr-opened-chest{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;margin:0}.vr-opened-chest .vr-chest-art{display:block;width:70px;height:55px;margin:0 auto}
.vr-reward-pages{width:100%;height:var(--vr-card-height);min-height:var(--vr-card-height);flex:none;display:flex;flex-direction:column;align-items:center}.vr-reward-pages.screen-paged{height:calc(var(--vr-card-height) + 50px);flex:none}.vr-reward-pages .screen-pages{width:100%;height:var(--vr-card-height);min-height:var(--vr-card-height);flex:none;overflow:hidden}.vr-reward-pages .screen-page{height:var(--vr-card-height);min-height:var(--vr-card-height);flex:none;align-items:center;gap:0}.vr-reward-pages .screen-page-nav{width:100%;height:44px;min-height:44px;margin:6px 0 0;padding:0;border:0;flex:none}.vr-reward-pages .screen-page-nav>button{min-height:44px}
.vr-reward-grid,.vr-reward-pages .screen-page>.vr-reward-grid{width:min(100%,460px);height:var(--vr-card-height);min-height:var(--vr-card-height);max-height:var(--vr-card-height);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:var(--vr-card-height);grid-auto-rows:var(--vr-card-height);align-content:start;align-items:start;justify-items:center;gap:8px;margin:0 auto;flex:none;overflow:visible}
.vr-reward-grid:has(>.vr-reward-card:only-child),.vr-reward-grid:has(>.vr-reward-card:nth-child(2):last-child){display:flex;justify-content:center}.vr-reward-grid>.vr-reward-card:only-child{width:128px;flex:0 0 128px}.vr-reward-grid:has(>.vr-reward-card:nth-child(2):last-child)>.vr-reward-card{width:calc((100% - 16px)/3);flex:0 0 calc((100% - 16px)/3)}
.vr-reward-grid>.vr-reward-card{display:grid;grid-template-rows:minmax(0,1fr) 26px 24px 14px;width:100%;max-width:140px;height:var(--vr-card-height);min-height:var(--vr-card-height);max-height:var(--vr-card-height);padding:0 0 4px;border-radius:7px;overflow:hidden}.vr-reward-portrait{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto}.vr-card-badge{font-size:8px;line-height:1;padding:8px 1px 3px;letter-spacing:.4px}.vr-reward-card>strong{display:flex;align-items:center;justify-content:center;min-height:0;max-height:26px;overflow:hidden;margin:0;padding:0 3px;font-size:11px;line-height:1.1}.vr-reward-card>b{font-size:22px;line-height:1.05;margin:0}.vr-reward-card>small{font-size:10px;line-height:1.1;margin:0}
.victory-result .vr-footer{grid-column:1;grid-row:3;position:relative;min-height:0;align-self:end;margin:0;padding:0}.vr-campaign-actions{display:flex;gap:8px;justify-content:center;width:min(300px,100%);margin:8px auto 0}.vr-campaign-actions>button{min-height:44px;flex:1;border:1px solid #dbc47b88;border-radius:7px;background:#476849;color:#f0e5b9;font:600 13px/1.15 system-ui;padding:8px}.victory-result .vr-return{min-height:44px;padding:9px 15px;font-size:14px}.victory-result .online-reward-note{margin:0 0 7px;font-size:11px;line-height:1.2}
.victory-result:has(.vr-boss-name) .vr-crowns{display:none}.victory-result:has(.vr-boss-name) .vr-coins strong{font-size:23px}.victory-result:has(.vr-boss-name) .vr-currency-row{padding-top:3px}
@media(max-height:650px){.victory-result{--vr-card-height:140px;gap:6px;padding:max(7px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom))}.vr-crest{height:54px;width:68px;margin-bottom:-5px}.battle-overlay .victory-result h2.vr-title{font-size:32px;margin:5px 0}.vr-revealed .vr-crest{display:none}.vr-currency-row{padding:3px 0}.vr-currency strong{font-size:24px}.vr-currency small{font-size:9px}.vr-chest-button .vr-chest-art{width:120px;height:95px}.vr-chest-button>strong{font-size:14px}.vr-opened-chest{display:none}.vr-boss-name{font-size:13px}.vr-reward-grid,.vr-reward-pages .screen-page>.vr-reward-grid{gap:6px}.vr-reward-grid>.vr-reward-card{grid-template-rows:minmax(0,1fr) 24px 22px 12px}.vr-reward-card>strong{font-size:10px}.vr-reward-card>b{font-size:20px}.vr-reward-card>small{font-size:9px}.vr-campaign-actions{margin-top:6px}.vr-campaign-actions>button{font-size:12px}.victory-result .online-reward-note{font-size:10px;margin-bottom:5px}}
@media(max-height:450px) and (min-width:600px){.victory-result{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px 24px;padding:10px 24px;--vr-card-height:148px}.victory-result .vr-heading{grid-column:1;grid-row:1;align-self:center}.victory-result .vr-loot{grid-column:2;grid-row:1/3}.victory-result .vr-footer{grid-column:1;grid-row:2}.vr-crest{width:74px;height:60px}.vr-revealed .vr-crest{display:block}.vr-chest-button .vr-chest-art{width:120px;height:95px}.vr-reward-pages .screen-page-nav{gap:5px}.vr-reward-pages .screen-page-nav>button{min-width:60px}}

.vr-champion-unlock{display:flex;align-items:center;justify-content:center;gap:10px;color:#f4d98f}.vr-champion-unlock>.card-portrait{width:40px;height:46px;flex:none}.vr-champion-unlock small,.vr-champion-unlock strong{display:block}.vr-champion-unlock small{font-size:10px;letter-spacing:1px}.vr-champion-unlock strong{font-size:18px}

.battle-replay{display:grid;justify-items:center;gap:10px;padding:6px 0}
#modal.replay-modal{height:min(900px,var(--dialog-height));padding:10px 12px}
#modal.replay-modal .modal-header{margin-bottom:5px}
#modal.replay-modal .battle-replay{height:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px;padding:0}
.battle-replay-controls{grid-row:1;display:grid;width:100%;min-width:0;gap:6px}
.battle-replay-controls.has-perspectives{grid-template-columns:minmax(0,1fr) minmax(144px,1.2fr)}
.battle-replay-chooser{display:flex;align-items:center;gap:8px;width:100%;color:#d1c7a5;font:600 13px/1.3 system-ui}
.battle-replay-controls.has-perspectives .battle-replay-chooser>span{display:none}
.battle-replay-chooser select{flex:1;min-width:0;min-height:44px;padding:6px 8px;border:1px solid #dbc47b55;border-radius:7px;background:#193026;color:#f0e5b9;font:inherit;font-size:16px;text-overflow:ellipsis}
.battle-replay-perspective{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:2px;padding:2px;border:1px solid #dbc47b55;border-radius:7px;background:#11251c}
.battle-replay-perspective[hidden]{display:none}
.battle-replay-perspective>button{min-height:44px;display:grid;align-content:center;justify-items:center;gap:2px;padding:3px 1px;border:1px solid transparent;border-radius:4px;background:transparent;color:#d6dfce;font:700 12px/1.15 system-ui;white-space:nowrap}
.battle-replay-perspective>button small{font-size:10px;font-weight:550}
.battle-replay-perspective>button[aria-pressed="true"]{border-color:#dbc47b88;background:#536342;color:#fff3c5}
.battle-replay-perspective>button:focus-visible{outline:2px solid #f2d892;outline-offset:-2px}
.battle-replay video{display:block;grid-row:2;width:100%;height:100%;min-width:0;min-height:0;background:#09160f;border:1px solid #dbc47b55;border-radius:9px;object-fit:contain}
.battle-replay-actions{grid-row:3;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.battle-replay-actions>*{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid #dbc47b88;border-radius:7px;background:#38563c;color:#f0e5b9;text-decoration:none;font:600 13px/1.2 system-ui}
.battle-replay-actions>[hidden],.battle-replay-message:empty{display:none}
.battle-replay-message{grid-row:4;margin:0;color:#d1c7a5;font:13px/1.4 system-ui}
.vr-grade{display:inline-flex;align-items:center;gap:9px;margin:7px auto 0;text-align:left;color:#f4d98f}.vr-grade>b{display:grid;place-items:center;width:37px;height:40px;background:#ba944327;border:1px solid #e6cd8d88;clip-path:polygon(12% 0,88% 0,100% 20%,100% 80%,50% 100%,0 80%,0 20%);font-size:28px;line-height:1}.vr-grade strong{display:block;font-size:10px;letter-spacing:.8px}.vr-grade small{display:block;margin-top:3px;font-size:11px;font-variant-numeric:tabular-nums;color:#bdceb3}.vr-slot-unlock{flex:none;padding:5px 12px;border:1px solid #d9bd6788;border-radius:20px;background:#92804022;font-size:12px;color:#f5df9c}
@media(max-height:650px){.vr-grade{gap:7px;margin-top:4px}.vr-grade>b{height:30px;width:29px;font-size:23px}.vr-grade strong{font-size:9px}.vr-grade small{font-size:10px}.vr-slot-unlock{font-size:10px;padding:4px 8px}}
