/* Ref23: independently composed title, cards, portraits, progress, material and button states. */
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub){height:var(--gp124-height,calc(100dvh - 160px))!important;max-height:var(--gp124-height,calc(100dvh - 160px))!important;display:flex!important;flex-direction:column;min-height:0;gap:8px;padding:6px!important;box-sizing:border-box;overflow:hidden;color:#f1dfbb;font:14px Georgia,serif}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) *{box-sizing:border-box;min-width:0}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) .smith-button-skin{display:none!important}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) button{border:1px solid transparent!important;border-image:url('assets/round2-crafting/frames/button-normal.png') 80 110 / 10px 13.75px / 0 stretch!important;border-radius:0!important;background:#2c1c10 url('assets/round2-crafting/73-craft-leather-tile-v1.png') center/180px!important;box-shadow:none!important;color:#fff0c3!important;min-height:34px;padding:6px 10px;font:14px Georgia,serif;cursor:pointer}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) button:is(:hover,:focus-visible,[aria-pressed=true]){border-image-source:url('assets/round2-crafting/frames/button-hover.png')!important;background-color:#67451e!important}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) button:active{border-image-source:url('assets/round2-crafting/frames/button-pressed.png')!important}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) button:disabled{border-image-source:url('assets/round2-crafting/frames/button-disabled.png')!important;color:#bfb49d!important;cursor:default}
html body.pc-redesign #app .r130-expedition-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;padding:6px 10px!important;background:linear-gradient(#15120b99,#15120b99),url('assets/pc-v124/ui/hall-header.webp') center/cover}
html body.pc-redesign #app .r130-expedition-header h1{font:700 29px/1.1 Georgia;margin:0!important;color:#f3d18a}
html body.pc-redesign #app .r130-expedition-header>nav{display:flex;gap:5px}
html body.pc-redesign #app .r130-tower-selection :is(h2,h3),html body.pc-redesign #app .r130-expedition-hub h2{margin:0;color:#f0d28d;font:700 22px/1.15 Georgia}
html body.pc-redesign #app .r130-tower-selection>.r130-tower-panes{display:none!important}
html body.pc-redesign #app .r130-tower-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);gap:8px;flex:1;min-height:0;overflow:hidden}
html body.pc-redesign #app .r130-tower-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:0}
html body.pc-redesign #app .r130-tower-cards>.r130-tower-card{display:flex;flex-direction:column;gap:7px;padding:8px!important;min-height:0!important;overflow:hidden;border-image:url('assets/round2-crafting/frames/city-card.png') 120 / 12px / 0 stretch!important;background:#141714 url('assets/round2-crafting/28-work-panel-backing-v1.png') center/cover!important}
html body.pc-redesign #app .r130-tower-card.selected{outline:2px solid #ffd171;outline-offset:-3px;box-shadow:inset 0 0 25px #ce98283d!important}
html body.pc-redesign #app .r130-tower-cards>.r130-tower-card:is(:hover,:focus-visible,[aria-pressed=true],:active){border-image-source:url('assets/round2-crafting/frames/city-card.png')!important;background-color:#141714!important}
html body.pc-redesign #app .r130-tower-card>.smith-button-label{display:flex!important;flex-direction:column!important;gap:7px;width:100%;height:100%;min-height:0;padding:0!important}
html body.pc-redesign #app .r130-tower-card h2{font-size:21px;flex:none;width:100%;min-height:45px;display:flex;align-items:center;justify-content:center;padding:5px;background:#25180d url('assets/round2-crafting/73-craft-leather-tile-v1.png') center/160px;border-bottom:1px solid #a38241}
html body.pc-redesign #app .r130-card-scene{flex:1;min-height:30px;width:100%;position:relative;overflow:hidden;background:#10140f}
html body.pc-redesign #app .r130-card-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
html body.pc-redesign #app .r130-tower-card[data-region=mist-tower] .r130-card-scene img{object-position:72% center}
html body.pc-redesign #app .r130-tower-card[data-region=ashen-tower] .r130-card-scene img{object-position:30% center}
html body.pc-redesign #app .r130-tower-card[data-region=eclipse-tower] .r130-card-scene img{object-position:74% center}
html body.pc-redesign #app .r130-card-progress{display:flex;flex-direction:column;gap:6px;width:100%;padding:5px;flex:none}
html body.pc-redesign #app .r130-card-progress strong{font:14px Georgia}
html body.pc-redesign #app .r130-card-state{font:12px/1.25 Georgia;flex:none;text-align:center;min-height:29px}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) progress{appearance:none;width:100%;height:12px;border:1px solid #ae8842;border-radius:4px;background:#15110c;accent-color:#edb943}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) progress::-webkit-progress-bar{background:#15110c;border-radius:4px}
html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub) progress::-webkit-progress-value{background:linear-gradient(#ffe4a4,#c07c12);border-radius:3px}
html body.pc-redesign #app .r130-tower-preview{display:flex;flex-direction:column;gap:8px;padding:11px;min-height:0;overflow:hidden;border:1px solid transparent;border-image:url('assets/round2-crafting/frames/city-card.png') 120 / 12px / 0 stretch;background:#141714 url('assets/round2-crafting/28-work-panel-backing-v1.png') center/cover}
html body.pc-redesign #app .r130-tower-preview>header{flex:none;border-bottom:1px solid #9b783c;padding:5px}
html body.pc-redesign #app .r130-tower-preview>header small{display:block;margin-top:4px;font-size:12px}
html body.pc-redesign #app .r130-next-enemy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;flex:1;min-height:50px;overflow:hidden}
html body.pc-redesign #app .r130-enemy-art{min-height:0;position:relative;border:1px solid #a38340;background:#11130f;overflow:hidden}
html body.pc-redesign #app .r130-enemy-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
html body.pc-redesign #app .r130-enemy-info{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:0}
html body.pc-redesign #app .r130-enemy-info h3{font-size:18px;line-height:1.15}
html body.pc-redesign #app .r130-enemy-info dl{display:flex;flex-direction:column;gap:6px;margin:0;flex:none}
html body.pc-redesign #app .r130-enemy-info dl>div{display:flex;align-items:center;justify-content:space-between;gap:4px;border-bottom:1px solid #8a713744;padding:3px 0}
html body.pc-redesign #app .r130-enemy-info dt{display:flex;align-items:center;gap:4px;font-size:12px}
html body.pc-redesign #app .r130-enemy-info dt img{width:22px;height:22px;object-fit:contain}
html body.pc-redesign #app .r130-enemy-info dd{margin:0;font-size:16px}
html body.pc-redesign #app .r130-tower-power{display:flex;flex-direction:column;gap:3px;font-size:11px}
html body.pc-redesign #app .r130-next-enemy.is-boss .r130-enemy-art{border-color:#ef7f59;box-shadow:inset 0 0 20px #99201855}
html body.pc-redesign #app .r130-boss-label{color:#ef9a72;font-size:12px}
html body.pc-redesign #app .r130-tower-preparation{flex:none}
html body.pc-redesign #app .r130-tower-preparation h3{font-size:18px;margin-bottom:7px}
html body.pc-redesign #app .r130-preparation-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
html body.pc-redesign #app .r130-preparation-cards>article{display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px;min-height:0;background:#14130d;border:1px solid #9a7b3e;text-align:center}
html body.pc-redesign #app .r130-preparation-cards img{width:100%;height:55px;object-fit:contain}
html body.pc-redesign #app .r130-preparation-cards strong{font-size:13px}
html body.pc-redesign #app .r130-preparation-cards small{font-size:10px;line-height:1.2;min-height:24px}
html body.pc-redesign #app .r130-preparation-cards button{min-height:28px;font-size:10px;padding:4px!important;width:100%;margin-top:auto}
html body.pc-redesign #app .r130-tower-entry{display:flex;flex-direction:column;gap:6px;flex:none}
html body.pc-redesign #app .r130-tower-entry>button{min-height:44px;font-size:19px}
html body.pc-redesign #app .r130-tower-entry p{font-size:12px;line-height:1.3;margin:0}
html body.pc-redesign #app .r130-tower-entry>small{font-size:10px;line-height:1.25}
html body.pc-redesign #app .r130-hub-portals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0;flex:1}
html body.pc-redesign #app .r130-hub-portal{display:flex;flex-direction:column;gap:7px;padding:12px;min-height:0;border:1px solid transparent;border-image:url('assets/round2-crafting/frames/city-card.png') 120 / 12px / 0 stretch;background:#141714 url('assets/round2-crafting/28-work-panel-backing-v1.png') center/cover}
html body.pc-redesign #app .r130-hub-portal header{flex:none}
html body.pc-redesign #app .r130-hub-portal header small{font-size:12px}
html body.pc-redesign #app .r130-hub-portal-art{flex:1;min-height:30px;position:relative}
html body.pc-redesign #app .r130-hub-portal-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
html body.pc-redesign #app .r130-hub-portal footer{display:flex;flex-direction:column;gap:7px;flex:none}
html body.pc-redesign #app .r130-hub-portal footer p{font-size:14px;line-height:1.3;margin:0}
html body.pc-redesign #app .r130-hub-portal footer button{width:100%;min-height:42px;font-size:19px}
@media(max-width:1100px){
 html body.pc-redesign[data-layout=sidebar]:has(:is(.r130-tower-selection,.r130-expedition-hub)) .layout-footer{display:none!important}
 html body.pc-redesign #app .r130-expedition-header{padding:5px!important}
 html body.pc-redesign #app .r130-expedition-header h1{font-size:23px}
 html body.pc-redesign #app .r130-expedition-header button{font-size:12px;padding:4px!important}
 html body.pc-redesign #app .r130-tower-selection>.r130-tower-panes{display:flex!important;gap:4px;flex:none}
 html body.pc-redesign #app .r130-tower-panes button{flex:1;font-size:12px;padding:4px!important}
 html body.pc-redesign #app .r130-tower-layout{display:block;min-height:0}
 html body.pc-redesign #app .r130-tower-cards{height:100%}
 html body.pc-redesign #app .r130-tower-preview{height:100%}
 html body.pc-redesign #app .r130-tower-selection[data-pane="0"] .r130-tower-preview,html body.pc-redesign #app .r130-tower-selection:not([data-pane="0"]) .r130-tower-cards{display:none!important}
 html body.pc-redesign #app .r130-tower-selection[data-pane="1"] :is(.r130-tower-preparation,.r130-tower-entry),html body.pc-redesign #app .r130-tower-selection[data-pane="2"] .r130-next-enemy{display:none!important}
 html body.pc-redesign #app .r130-tower-selection[data-pane="2"] .r130-tower-preparation{display:flex;flex-direction:column;flex:1;min-height:0}
 html body.pc-redesign #app .r130-tower-selection[data-pane="2"] .r130-preparation-cards{flex:1;min-height:0}
 html body.pc-redesign #app .r130-tower-selection[data-pane="2"] .r130-preparation-cards img{flex:1;min-height:35px;max-height:45%;height:auto}
 html body.pc-redesign #app .r130-tower-card h2{font-size:18px}
}
@media(max-width:600px){
 html body.pc-redesign #app .r130-expedition-header{flex-direction:column;gap:5px;align-items:stretch}
 html body.pc-redesign #app .r130-expedition-header>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.pc-redesign #app .r130-tower-cards{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}
 html body.pc-redesign #app .r130-tower-card>.smith-button-label{display:grid!important;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px}
 html body.pc-redesign #app .r130-tower-card h2{grid-column:2;grid-row:1;min-height:0;font-size:17px;padding:3px}
 html body.pc-redesign #app .r130-tower-card .r130-card-scene{grid-column:1;grid-row:1/4;height:100%}
 html body.pc-redesign #app .r130-card-progress{grid-column:2;grid-row:2;padding:2px;gap:4px}
 html body.pc-redesign #app .r130-card-progress strong{font-size:12px}
 html body.pc-redesign #app .r130-card-state{grid-column:2;grid-row:3;font-size:10px;min-height:0}
 html body.pc-redesign #app .r130-hub-portals{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}
 html body.pc-redesign #app .r130-hub-portal{display:grid;grid-template-columns:minmax(0,.6fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:6px;padding:9px}
 html body.pc-redesign #app .r130-hub-portal header{grid-column:2;grid-row:1}
 html body.pc-redesign #app .r130-hub-portal-art{grid-column:1;grid-row:1/3}
 html body.pc-redesign #app .r130-hub-portal footer{grid-column:2;grid-row:2;gap:5px}
 html body.pc-redesign #app .r130-hub-portal footer p{font-size:11px}
 html body.pc-redesign #app .r130-hub-portal footer strong,html body.pc-redesign #app .r130-hub-portal footer small{font-size:10px}
 html body.pc-redesign #app .r130-hub-portal footer button{font-size:15px;min-height:34px}
}
@media(max-height:700px){
 html body.pc-redesign #app .r130-tower-preview{padding:7px;gap:5px}
 html body.pc-redesign #app .r130-tower-preview h2{font-size:19px}
 html body.pc-redesign #app .r130-enemy-info h3{font-size:15px}
 html body.pc-redesign #app .r130-enemy-info{gap:5px}
 html body.pc-redesign #app .r130-preparation-cards img{height:35px}
 html body.pc-redesign #app .r130-tower-entry>button{min-height:35px;font-size:15px}
}
@media(max-height:460px){
 html body.pc-redesign #app :is(.r130-tower-selection,.r130-expedition-hub){padding:4px!important;gap:4px}
 html body.pc-redesign #app .r130-expedition-header h1{font-size:19px}
 html body.pc-redesign #app .r130-expedition-header button,html body.pc-redesign #app .r130-tower-panes button{min-height:28px;font-size:11px}
 html body.pc-redesign #app .r130-tower-card h2{font-size:15px;min-height:30px;padding:3px}
 html body.pc-redesign #app .r130-card-state{font-size:10px;min-height:0}
 html body.pc-redesign #app .r130-card-progress strong{font-size:11px}
 html body.pc-redesign #app .r130-tower-card>.smith-button-label{gap:4px}
 html body.pc-redesign #app .r130-hub-portal{display:grid;grid-template-columns:minmax(0,.55fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);padding:7px}
 html body.pc-redesign #app .r130-hub-portal header{grid-column:2;grid-row:1}
 html body.pc-redesign #app .r130-hub-portal-art{grid-column:1;grid-row:1/3}
 html body.pc-redesign #app .r130-hub-portal footer{grid-column:2;grid-row:2;gap:4px}
 html body.pc-redesign #app .r130-hub-portal h2{font-size:18px}
 html body.pc-redesign #app .r130-hub-portal footer p{font-size:10px}
 html body.pc-redesign #app .r130-hub-portal footer :is(strong,small){font-size:9px}
 html body.pc-redesign #app .r130-hub-portal footer button{font-size:12px;min-height:30px}
 html body.pc-redesign #app .r130-preparation-cards small{min-height:0}
 html body.pc-redesign #app .r130-preparation-cards img{max-height:35px!important;min-height:25px!important}
 html body.pc-redesign #app .r130-tower-entry>small{display:none}
}

/* v131: catalogue pagination keeps all five towers available without scrolling. */
html body.pc-redesign #app .r131-tower-catalog{display:grid;grid-template-rows:minmax(0,1fr) 44px;gap:6px;min-height:0;overflow:hidden}
html body.pc-redesign #app .r131-tower-catalog .r130-tower-cards{height:100%;min-height:0;grid-template-columns:repeat(var(--r131-count,3),minmax(0,1fr))}
html body.pc-redesign #app .r131-tower-pages{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:0}
html body.pc-redesign #app .r131-tower-pages button{min-height:40px!important;font-size:13px!important}
html body.pc-redesign #app .r131-tower-pages span{font:13px Georgia;color:#f2dfb1}
@media(max-width:1199px){html body.pc-redesign #app .r130-tower-selection:not([data-pane="0"]) .r131-tower-catalog{display:none!important}}
@media(max-width:900px){html body.pc-redesign #app .r131-tower-catalog .r130-tower-cards{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(var(--r131-count,3),minmax(0,1fr))}}
html body.pc-redesign #app .r131-tower-catalog{height:100%;max-height:100%}html body.pc-redesign #app .r131-tower-catalog .r130-tower-cards{height:auto!important}
