/* References26/27. Frames, portrait, chest, reward icons and controls are separate. */
html body.pc-redesign #app .view-content:has(>.destination-live :is(.r130-expedition-hub,.r130-tower-selection,.r130-result)){grid-template-rows:minmax(0,1fr)!important}
html body.pc-redesign .destination-result-v124.r130-result {
 --result-card:url('assets/round2-crafting/frames/city-card.png');
 --result-button:url('assets/round2-crafting/frames/button-normal.png');
 --result-gold:#d8b765;
 display:flex!important;flex-direction:column;gap:8px!important;
 height:100%!important;
 max-height:100%!important;
 min-height:0!important;min-width:0;box-sizing:border-box;overflow:hidden!important;
 padding:8px!important;background:#11160feb!important;color:#f3dfaf;
 border:1px solid #ac8e4b;
}
@media(max-width:999px){
 html body.pc-redesign #app .r130-result>header{padding:4px 8px!important;min-height:0!important;height:48px!important;box-sizing:border-box}
 html body.pc-redesign #app .r130-result>header>div{margin:0!important;padding:0!important;min-height:0!important}
 html body.pc-redesign #app .r130-result-emblem .icon{width:24px!important;height:24px!important}
 html body.pc-redesign #app .r130-result button .smith-button-label{font:inherit!important;line-height:1.1!important;padding:0!important;min-height:0!important}
 html body.pc-redesign #app .r130-result>header h1{font:700 25px/1.05 Georgia!important;margin:0 0 2px!important}
 html body.pc-redesign #app .r130-result>header small{font:10px/1.2 Georgia!important}
 html body.pc-redesign #app .r130-result-panels>section>strong{font:700 14px/1.1 Georgia!important}
 html body.pc-redesign #app .r130-result-panels h2{font:700 17px/1.1 Georgia!important;margin:0!important;padding:2px 0 4px!important}
 html body.pc-redesign #app .r130-result-panels :is(p,small){font:11px/1.2 Georgia!important}
 html body.pc-redesign #app .r130-result-resources small{font-size:9px!important}
 html body.pc-redesign #app .r130-result-preserved h3{font:700 14px/1.1 Georgia!important;margin:0 0 3px!important}
 html body.pc-redesign #app .r130-result-preserved .icon{width:17px;height:17px}
 html body.pc-redesign #app .r130-result-preserved p{padding:2px 0}
 html body.pc-redesign #app .r130-result>.r2-result-panes button{height:36px!important;min-height:36px!important;padding:3px!important}
}
@media(max-width:999px) and (max-height:500px){
 html body.pc-redesign #app .r130-result>header h1{font-size:19px!important}
 html body.pc-redesign #app .r130-result>header{padding:2px 6px!important;height:36px!important}
 html body.pc-redesign #app .r130-result>.r2-result-panes button{height:28px!important;min-height:28px!important}
 html body.pc-redesign #app .r130-result-panels>section{grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:22px repeat(5,minmax(0,1fr));align-content:stretch;padding:5px;gap:3px 7px}
 html body.pc-redesign #app .r130-result-panels h2{grid-column:1/-1;font-size:14px!important}
 html body.pc-redesign #app .r130-result-panels .r130-result-portrait{grid-column:1;grid-row:2/7;height:auto}
 html body.pc-redesign #app .r130-result-panels :is(p,small){font-size:10px!important}
 html body.pc-redesign #app .r130-result-panels>section>strong{font-size:12px!important}
 html body.pc-redesign #app .r130-result-hero>:not(h2):not(.r130-result-portrait){grid-column:2/4}
 html body.pc-redesign #app .r130-result-chest{grid-column:1;grid-row:2/7;height:auto}
 html body.pc-redesign #app .r130-result-resources{grid-column:2/4;grid-row:2/5;gap:3px}
 html body.pc-redesign #app .r130-result-resources>div{padding:3px;grid-template-columns:22px minmax(0,1fr)}
 html body.pc-redesign #app .r130-result-loot-list{grid-column:2/4;grid-row:5/7}
 html body.pc-redesign #app .r130-result-reward>small{grid-column:1;grid-row:6;z-index:1;background:#111b}
 html body.pc-redesign #app .r130-result-next>small:first-of-type{grid-column:2;grid-row:2}
 html body.pc-redesign #app .r130-result-next>strong{grid-column:2;grid-row:3}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats{grid-column:2;grid-row:4/7;grid-template-columns:1fr;gap:2px}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats>div{grid-template-columns:18px 1fr auto;padding:2px;font-size:9px}
 html body.pc-redesign #app .r130-result-stats .icon{grid-row:auto;width:17px;height:17px}
 html body.pc-redesign #app .r130-result-next>button{grid-column:3}
 html body.pc-redesign #app .r130-result-next>small:last-of-type{grid-column:3;grid-row:5}
 html body.pc-redesign #app .r130-result-next>button:nth-of-type(1){grid-row:2}
 html body.pc-redesign #app .r130-result-next>button:nth-of-type(2){grid-row:3}
 html body.pc-redesign #app .r130-result-next>button:nth-of-type(3){grid-row:6}
 html body.pc-redesign #app .r130-result-opponent>strong{grid-column:2;grid-row:2/4}
 html body.pc-redesign #app .r130-result-opponent>.r130-result-health{grid-column:2;grid-row:4/6}
 html body.pc-redesign #app .r130-result-opponent>.r130-result-preserved{grid-column:3;grid-row:2/6;padding:4px}
 html body.pc-redesign #app .r130-result-opponent>.r130-result-preserved h3{font-size:12px!important}
 html body.pc-redesign #app .r130-result-opponent>small{grid-column:2;grid-row:6}
 html body.pc-redesign #app .r130-result-opponent>button{grid-column:3;grid-row:6}
 html body.pc-redesign #app .r130-result-prepare{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important}
 html body.pc-redesign #app .r130-result-prepare>.r130-result-preparation{grid-column:1;grid-row:2/7}
 html body.pc-redesign #app .r130-result-prepare>button{grid-column:2;grid-row:2/4}
 html body.pc-redesign #app .r130-result-prepare>p{grid-column:2;grid-row:4}
 html body.pc-redesign #app .r130-result-prepare>.r130-result-saved{grid-column:2;grid-row:5/7}
}
/* The gameplay fitter owns the available height; the result fills its wrapper. */
html body.pc-redesign #app .destination-live:has(>.r130-result){padding:0!important;box-sizing:border-box}
html body.pc-redesign #app .view-content:has(.r130-result){height:100%;min-height:0;overflow:hidden!important}
@media(max-width:1100px){
 html body.pc-redesign[data-layout=sidebar]:has(.r130-result) .layout-footer{display:none!important}
 html body.pc-redesign[data-layout=sidebar]:has(.r130-result) #app{grid-template-rows:62px minmax(0,1fr) 0!important}
}
@media(max-width:999px) and (max-height:500px){
 html body.pc-redesign[data-layout=sidebar]:has(.r130-result) #app{grid-template-rows:46px minmax(0,1fr) 0!important}
}
html body.pc-redesign .r130-result>header {
 display:flex;justify-content:center;align-items:center;gap:14px;flex:none;text-align:center;
 background:linear-gradient(90deg,#11160f99,#302817e8,#11160f99)!important;
 padding:5px 10px!important;border-bottom:1px solid #9b7a35;
}
.r130-result>header h1{font:700 clamp(24px,3vw,46px)/1.05 Georgia;margin:0 0 3px;color:#ffdf80;text-shadow:0 2px 3px #000}
.r130-result.is-defeat>header h1{color:#ffb08a}
.r130-result>header small{font-size:12px}
.r130-result-emblem .icon{width:40px;height:40px;color:#edc95b}
.r130-result.is-defeat .r130-result-emblem .icon{color:#e88961}
html body.pc-redesign .r130-result>.r130-result-panels{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1.1fr);gap:9px;min-height:0;overflow:hidden}
.r130-result-panels>section{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:7px;box-sizing:border-box;overflow:hidden;padding:10px;border:1px solid transparent;border-image:var(--result-card) 120 / 10px / 0 stretch;background:linear-gradient(135deg,#202019f5,#0c100df7)}
.r130-result-panels h2{font:700 clamp(16px,1.6vw,24px)/1.15 Georgia;text-align:center;color:#f5d987;margin:0;padding:3px 0 8px;border-bottom:1px solid #9b7a35;flex:none}
.r130-result-panels h3{font:700 17px/1.2 Georgia;text-align:center;margin:0 0 7px;color:#e9cf8b}
.r130-result-panels :is(p,small){font:12px/1.4 Georgia;margin:0}
.r130-result-panels>section>strong{font:700 17px/1.2 Georgia;text-align:center;color:#efcf87}
.r130-result-panels>section>small{text-align:center;color:#d7c8a0}
.r130-result-portrait{flex:1 1 0;min-height:30px;position:relative;display:flex;justify-content:center;overflow:hidden;background:#0a0e0b;border:1px solid #9b7a35}
.r130-result-portrait>:is(svg,img){display:block;width:100%!important;height:100%!important;object-fit:contain!important;min-height:0;max-height:100%;position:absolute;inset:0}
.r130-result-portrait>.hero-loadout-figure{width:100%;height:100%;position:absolute;inset:0}
.r130-result-portrait .hero-loadout-figure svg{width:100%;height:100%}
.r130-result-health{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:12px;flex:none}
.r130-result-health>strong{font-variant-numeric:tabular-nums}
.r130-result-health>[role=meter]{grid-column:1/-1;height:15px;padding:2px;box-sizing:border-box;border:1px solid #d3b363;background:#080a08;border-radius:4px;overflow:hidden}
.r130-result-health i{display:block;height:100%;border-radius:2px;background:linear-gradient(#ff6657,#d71b23 60%,#880c19)}
.r130-result-chest{flex:1 1 0;min-height:45px;position:relative;overflow:hidden}
.r130-result-chest img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.r130-result-resources{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.r130-result-resources>div,.r130-result-stats>div{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:2px 5px;border:1px solid #9b7a35;background:#0b100ddb;padding:6px;min-width:0}
.r130-result-resources .icon{width:30px;height:30px;grid-row:1/3;object-fit:contain;color:#e5c775}
.r130-result-resources small{font-size:11px;overflow-wrap:anywhere}
.r130-result-resources strong{font-size:19px;font-variant-numeric:tabular-nums}
.r130-result-loot-list{flex:none;display:flex;gap:5px;min-width:0}
.r130-result-loot{flex:1;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:3px 8px;padding:5px;border:1px solid var(--loot-color);min-width:0;box-sizing:border-box}
.r130-result-loot>div{grid-row:1/3;width:64px;height:64px;position:relative}
.r130-result-loot>div>:is(svg,img){width:100%;height:100%;object-fit:contain}
.r130-result-loot>strong{color:var(--loot-color);font-size:14px;overflow-wrap:anywhere}
.r130-result-loot small{font-size:11px}
.r130-result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none}
.r130-result-stats>div{grid-template-columns:20px minmax(0,1fr);font-size:11px;padding:5px}
.r130-result-stats .icon{width:20px;height:20px;grid-row:1/3;color:#e5c775}
.r130-result-stats strong{font-size:17px}
html body.pc-redesign .r130-result button{min-height:42px!important;flex:none;white-space:normal;font-size:14px;padding:7px 12px;box-sizing:border-box}
.r130-result-complete{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center}
.r130-result-complete .icon{width:85px;height:85px;color:#e6c75c}
.r130-result-complete strong{font:700 35px Georgia;color:#e6c75c}
.r130-result-preserved{flex:none;border:1px solid #9b7a35;padding:8px;background:#0b100dcc}
.r130-result-preserved p{display:flex;align-items:center;gap:7px;padding:3px 0}
.r130-result-preserved .icon,.r130-result-saved .icon{width:22px;height:22px;color:#e6c75c;flex:none}
.r130-result-preparation{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:8px}
.r130-result-preparation>div{display:flex;align-items:center;gap:10px;min-height:0;border:1px solid #9b7a35;padding:8px;background:#0b100dcc}
.r130-result-preparation .icon{width:38px;height:38px;flex:none;color:#e6c75c;object-fit:contain}
.r130-result-preparation button{flex:1!important}
.r130-result-saved{display:flex;gap:8px;align-items:center;border-top:1px solid #9b7a35;padding:8px 0;font-size:12px}
.r130-result>footer{display:flex;align-items:center;justify-content:center;gap:9px;padding:6px;border-top:1px solid #9b7a35;font:12px/1.2 Georgia;flex:none}
.r130-result>footer .icon{width:22px;height:22px;color:#e6c75c;flex:none}
@media(max-width:999px){
 html body.pc-redesign .destination-result-v124.r130-result{gap:5px!important;padding:5px!important}
 .r130-result>header h1{font-size:25px}.r130-result>header small{font-size:10px}.r130-result-emblem .icon{width:28px;height:28px}
 html body.pc-redesign .r130-result>.r2-result-panes{display:flex!important;gap:4px;flex:none}
 html body.pc-redesign .r130-result>.r2-result-panes button{flex:1!important;font-size:12px;min-height:36px!important;padding:4px}
 html body.pc-redesign .r130-result>.r130-result-panels{display:flex;gap:0}
 .r130-result-panels>section{width:100%;padding:8px;gap:6px}
 .r130-result[data-pane="0"] .r130-result-panels>section:not(:nth-child(1)),.r130-result[data-pane="1"] .r130-result-panels>section:not(:nth-child(2)),.r130-result[data-pane="2"] .r130-result-panels>section:not(:nth-child(3)){display:none}
 .r130-result-panels h2{font-size:20px;padding-bottom:5px}
 .r130-result-portrait{min-height:20px}
 .r130-result>footer{font-size:10px;padding:3px}
}
@media(max-height:700px){
 .r130-result-panels>section{gap:4px;padding:7px}.r130-result-panels h2{font-size:17px;padding-bottom:4px}.r130-result-panels h3{font-size:14px;margin-bottom:3px}
 .r130-result-panels :is(p,small){font-size:10px}.r130-result-resources{gap:4px}.r130-result-resources>div{padding:4px;grid-template-columns:23px minmax(0,1fr)}.r130-result-resources .icon{width:23px;height:23px}.r130-result-resources strong{font-size:16px}
 .r130-result-loot{grid-template-columns:40px minmax(0,1fr);padding:4px;gap:3px}.r130-result-loot>div{width:40px;height:40px}.r130-result-loot>strong{font-size:11px}
 html body.pc-redesign .r130-result button{min-height:34px!important;font-size:12px;padding:5px 8px}.r130-result-preserved{padding:5px}.r130-result-preserved p{padding:2px 0}
 .r130-result-preparation{gap:5px}.r130-result-preparation>div{padding:5px;gap:5px}.r130-result-preparation .icon{width:25px;height:25px}.r130-result-saved{padding:4px;font-size:10px}
}
@media(max-width:999px) and (max-height:500px){
 .r130-result>header h1{font-size:19px}.r130-result>header{padding:2px 6px!important}.r130-result-emblem .icon{width:22px;height:22px}
 html body.pc-redesign .r130-result>.r2-result-panes button{min-height:28px!important;font-size:10px}
 .r130-result-panels>section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);grid-auto-rows:auto;gap:4px 8px;align-content:start}
 .r130-result-panels h2{grid-column:1/-1;font-size:15px}.r130-result-panels .r130-result-portrait{grid-column:1;grid-row:2/8;min-height:0;height:100%}
 .r130-result-hero>:not(h2):not(.r130-result-portrait){grid-column:2}
 .r130-result-chest{grid-column:1;grid-row:2/5;min-height:0;height:100%}.r130-result-resources{grid-column:2;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr))}.r130-result-loot-list{grid-column:2;grid-row:3}.r130-result-reward>small{grid-column:2;grid-row:4}
 .r130-result-next>:not(h2):not(.r130-result-portrait){grid-column:2}.r130-result-next>.r130-result-portrait{grid-row:2/9}.r130-result-opponent>:not(h2):not(.r130-result-portrait){grid-column:2}.r130-result-opponent>.r130-result-portrait{grid-row:2/8}
 .r130-result-prepare{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important}.r130-result-preparation{grid-column:1;grid-row:2/6;display:grid;grid-template-columns:1fr 1fr}.r130-result-prepare>:not(h2):not(.r130-result-preparation){grid-column:2}.r130-result-preparation>div{padding:3px;gap:3px}.r130-result-preparation .icon{width:18px;height:18px}
 html body.pc-redesign .r130-result button{min-height:28px!important;font-size:10px;padding:3px}.r130-result-health{font-size:10px}.r130-result-preserved h3{font-size:12px}.r130-result-preserved p{font-size:9px}.r130-result-saved{font-size:9px}
 .r130-result>footer{font-size:9px;padding:2px}.r130-result>footer .icon{width:16px;height:16px}
}
@media(max-width:500px) and (max-height:700px){
 html body.pc-redesign #app .r130-result-panels>:is(.r130-result-next,.r130-result-opponent){display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto;gap:4px;padding:6px}
 html body.pc-redesign #app .r130-result-panels>:is(.r130-result-next,.r130-result-opponent)>h2{grid-column:1/-1}
 html body.pc-redesign #app .r130-result-panels>:is(.r130-result-next,.r130-result-opponent)>.r130-result-portrait{grid-column:1;grid-row:2/8;min-height:0;height:auto}
 html body.pc-redesign #app .r130-result-panels>:is(.r130-result-next,.r130-result-opponent)>:not(h2):not(.r130-result-portrait){grid-column:2;min-height:0}
 html body.pc-redesign #app .r130-result-panels>:is(.r130-result-next,.r130-result-opponent)>strong{font-size:12px!important}
 html body.pc-redesign #app .r130-result-panels>:is(.r130-result-next,.r130-result-opponent) :is(p,small){font-size:10px!important}
 html body.pc-redesign #app .r130-result-opponent .r130-result-preserved{padding:4px}
 html body.pc-redesign #app .r130-result-opponent .r130-result-preserved h3{font-size:12px!important}
 html body.pc-redesign #app .r130-result-next .r130-result-stats{gap:2px}
 html body.pc-redesign #app .r130-result-next .r130-result-stats>div{display:flex;flex-direction:column;padding:2px;gap:1px}
 html body.pc-redesign #app .r130-result-next .r130-result-stats .icon{width:16px;height:16px}
 html body.pc-redesign #app .r130-result-next .r130-result-stats strong{font-size:13px}
 html body.pc-redesign #app .r130-result-next .r130-result-stats small{font-size:9px!important}
}
@media(max-width:999px) and (max-height:500px){
 html body.pc-redesign #app .r130-result-panels>section{grid-template-rows:20px repeat(3,minmax(0,1fr));gap:3px 7px}
 html body.pc-redesign #app .r130-result-panels .r130-result-portrait{grid-row:2/5}
 html body.pc-redesign #app .r130-result-chest{grid-row:2/5}
 html body.pc-redesign #app .r130-result-resources{grid-row:2/4}
 html body.pc-redesign #app .r130-result-loot-list{grid-row:4}
 html body.pc-redesign #app .r130-result-reward>small{grid-row:4;font-size:9px!important;align-self:end}
 html body.pc-redesign #app .r130-result-loot>div{width:27px;height:27px}
 html body.pc-redesign #app .r130-result-loot{grid-template-columns:27px minmax(0,1fr);padding:2px}
 html body.pc-redesign #app .r130-result-next>small:first-of-type{grid-row:2;align-self:start}
 html body.pc-redesign #app .r130-result-next>strong{grid-row:2;align-self:end}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats{grid-row:3/5;grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats>div{display:flex;flex-direction:column;justify-content:center;gap:1px}
 html body.pc-redesign #app .r130-result-next>button:nth-of-type(3){grid-row:4}
 html body.pc-redesign #app .r130-result-next>small:last-of-type{grid-row:3;grid-column:2;align-self:start;transform:translateY(-3px);font-size:8px!important}
 html body.pc-redesign #app .r130-result-opponent>strong{grid-row:2}
 html body.pc-redesign #app .r130-result-opponent>.r130-result-health{grid-row:3}
 html body.pc-redesign #app .r130-result-opponent>.r130-result-preserved{grid-row:2/4}
 html body.pc-redesign #app .r130-result-opponent>small{grid-row:4}
 html body.pc-redesign #app .r130-result-opponent>button{grid-row:4}
 html body.pc-redesign #app .r130-result-opponent .r130-result-preserved p{padding:1px 0;font-size:9px!important}
 html body.pc-redesign #app .r130-result-prepare>.r130-result-preparation{grid-row:2/5}
 html body.pc-redesign #app .r130-result-prepare>button{grid-row:2}
 html body.pc-redesign #app .r130-result-prepare>p{grid-row:3}
 html body.pc-redesign #app .r130-result-prepare>.r130-result-saved{grid-row:4}
}
@media(max-width:999px){
 html body.pc-redesign #app .r130-result[data-pane="0"] .r130-result-panels>section:not(:nth-child(1)),
 html body.pc-redesign #app .r130-result[data-pane="1"] .r130-result-panels>section:not(:nth-child(2)),
 html body.pc-redesign #app .r130-result[data-pane="2"] .r130-result-panels>section:not(:nth-child(3)){display:none!important}
}
@media(max-width:999px){
 html body.pc-redesign #app .r130-result button{font:14px/1.1 Georgia!important}
 html body.pc-redesign #app .r130-result>.r2-result-panes button{font-size:12px!important}
}
@media(max-width:999px) and (max-height:500px){
 html body.pc-redesign #app .r130-result button{font-size:12px!important}
 html body.pc-redesign #app .r130-result>.r2-result-panes button{font-size:10px!important}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats{grid-row:3}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats>div{display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-rows:1fr 1fr;padding:2px}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats .icon{grid-row:1/3}
 html body.pc-redesign #app .r130-result-next>.r130-result-stats strong{font-size:13px}
 html body.pc-redesign #app .r130-result-next>small:last-of-type{grid-row:4;align-self:center;transform:none;font-size:10px!important}
}
