.rarity-label{color:var(--rarity,#b7c5cf);font-size:11px;font-weight:700;white-space:nowrap}.rarity-label:before{content:'◆';font-size:8px;margin-right:5px}.item-slot.has-item{border-bottom:3px solid var(--rarity,#b7c5cf)}
.boost-forge,.weekly-menu{--panel:#111e29;--muted:#9fb2bf;color:#e9e4d9;line-height:1.55}.boost-forge h3,.weekly-menu h3{font-size:24px;margin:7px 0 10px}.boost-forge h4,.weekly-menu h4{font-size:17px;margin:16px 0 8px}.boost-forge p,.weekly-menu p{color:var(--muted);font-size:13px;margin:8px 0 16px}.boost-forge small,.weekly-menu small{color:var(--muted)}.boost-forge .menu-button,.weekly-menu .menu-button{min-height:40px;border-radius:8px}.boost-forge .menu-button:focus-visible,.weekly-menu .menu-button:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px}.boost-forge label{display:grid;gap:6px;font-size:12px}.boost-forge hr{border:0;border-top:1px solid #2a3d4b;margin:22px 0}.boost-forge .menu-tabs,.weekly-menu .menu-tabs{gap:7px;flex-wrap:wrap;margin:18px 0}.forge-lead,.weekly-lead{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px 24px;border:1px solid #345064;border-radius:14px;background:radial-gradient(ellipse at right top,#24423e88,transparent 70%),#10212e}.forge-lead h3,.weekly-lead h3{font-size:30px}.forge-lead p,.weekly-lead p{margin-bottom:0}.forge-wallet{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#ffcc77;font-weight:700}.forge-wallet img{width:28px;height:28px}.forge-workspace{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.5fr);gap:16px;align-items:start}.forge-picker,.forge-detail,.forge-materials{padding:18px;border:1px solid #2b4151;border-radius:12px;background:#0d1721}.forge-picker{display:grid;gap:10px;position:sticky;top:0}.forge-pieces{display:grid;gap:7px;max-height:430px;overflow:auto}.forge-pieces button{display:flex;text-align:left;gap:10px;align-items:center;padding:10px;border:1px solid #283d4d;border-radius:9px;background:#14212d;color:#ece6d8;min-width:0;cursor:pointer}.forge-pieces button.selected{border-color:#d9ab53;background:#2a291f}.forge-pieces img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}.forge-pieces strong,.forge-pieces small{display:block;overflow-wrap:anywhere}.forge-pieces strong{font-size:12px}.forge-pieces small{font-size:10px}.forge-upgrade-visual{display:flex;justify-content:center;align-items:center;gap:26px;padding:18px;background:radial-gradient(ellipse,#94753422,transparent 70%)}.forge-upgrade-visual>span{display:grid;place-items:center;gap:3px;background:#08121b;border:1px solid #3c566c;border-radius:14px;padding:12px 23px}.forge-upgrade-visual>span.next{border-color:#b88a39;box-shadow:0 0 32px #d8ac4320}.forge-upgrade-visual img{width:56px;height:56px;object-fit:contain;image-rendering:pixelated}.forge-upgrade-visual b{font-size:23px;color:#f8d391}.forge-upgrade-visual em{font-style:normal;color:#d9ab53;font-size:25px}.forge-chance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 10px}.forge-chance>span{display:grid;gap:4px;background:#172734;padding:12px;border-radius:8px;font-size:12px;color:#aebdc5}.forge-chance strong{font-size:22px;color:#f5d294}.forge-pity,.weekly-health{height:5px;background:#2e424e;overflow:hidden;border-radius:9px}.forge-pity i,.weekly-health i{display:block;height:100%;background:linear-gradient(90deg,#be883b,#f8d994)}.forge-scroll{margin:18px 0}.forge-costs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.forge-cost,.forge-costs>span{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #294334;background:#162922;border-radius:8px;font-size:12px}.forge-cost img,.forge-costs img{width:30px;height:30px;object-fit:contain}.forge-cost strong{display:block;color:#b8e1bc}.forge-cost.missing{border-color:#67473e;background:#2b201e}.forge-cost.missing strong{color:#eeb9a8}.forge-warning{font-size:12px!important;border-left:2px solid #c9a866;padding-left:10px}.forge-detail>.primary{width:100%;margin:10px 0}.forge-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.forge-stats>div{display:flex;justify-content:space-between;gap:8px;background:#14232d;padding:7px;border-radius:5px;font-size:12px}.forge-stats dd{margin:0;color:#a9dec9}.forge-result{padding:12px;border-radius:8px;margin-top:15px;font-size:13px}.forge-result.success{background:#13362a;border:1px solid #427e67;color:#c5eedb}.forge-result.failure{background:#36291d;border:1px solid #83653e;color:#f0d4ac}.forge-help{margin:18px 0 0;border-top:1px solid #29404e;padding-top:12px;font-size:13px}.forge-help summary{cursor:pointer;color:#dfca9d}.forge-table{overflow-x:auto;margin:14px 0}.forge-table table{width:100%;border-collapse:collapse;font-size:12px}.forge-table td,.forge-table th{text-align:left;padding:8px;border-bottom:1px solid #243947}.forge-material-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.forge-material-grid article{display:flex;gap:10px;align-items:center;background:#14232e;border:1px solid #2d4456;padding:12px;border-radius:10px}.forge-material-grid article>img{width:40px;height:40px;object-fit:contain}.forge-material-grid article>div{flex:1;min-width:0}.forge-material-grid strong,.forge-material-grid small,.forge-material-grid .rarity-label{display:block}.forge-material-grid strong{font-size:12px}.forge-material-grid small{font-size:11px}.forge-material-grid b{color:#e8c98d}.forge-recipes{display:grid;grid-template-columns:1fr 1fr;gap:15px}.forge-recipes .menu-button{margin-top:10px}.forge-reforge-preview{border:1px solid #9f80b8;background:#292337;padding:14px;border-radius:10px;margin-top:15px}
.weekly-reset{display:grid;text-align:right;flex-shrink:0;gap:4px}.weekly-reset small{font-size:10px;letter-spacing:1px;color:#e9c582}.weekly-reset strong{font-size:19px}.weekly-reset span{font-size:11px;color:#a0b4c0}.weekly-rules{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.weekly-rules span{font-size:11px;border:1px solid #344657;border-radius:30px;padding:4px 10px;color:#b4c5d0}.weekly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.weekly-card{display:flex;overflow:hidden;background:#101d28;border:1px solid #304656;border-radius:13px;min-width:0}.weekly-card-art{position:relative;display:flex;align-items:center;justify-content:center;width:34%;min-width:100px;padding:26px 9px;background:radial-gradient(ellipse at bottom,color-mix(in srgb,var(--boss-color) 27%,transparent),transparent 75%),repeating-linear-gradient(145deg,#25374620 0px,#25374620 1px,transparent 1px,transparent 16px),#0d1821}.weekly-portrait{width:100%;max-width:180px;max-height:210px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 8px 8px #0007)}.weekly-level{position:absolute;bottom:8px;left:4px;right:4px;text-align:center;font-size:10px;background:#08131cdf;color:#d6c6a0;border-radius:5px;padding:3px}.weekly-card-body{padding:17px 15px;min-width:0;flex:1}.weekly-card-body>small{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--boss-color)}.weekly-card-body h3{font-size:21px;line-height:1.15;margin:8px 0}.weekly-card-body p{font-size:11px;margin-bottom:12px}.weekly-card footer{margin-top:13px}.weekly-card .menu-button{font-size:11px;width:100%}.weekly-claim{font-size:11px;color:#9ddbc6!important}.weekly-claim.claimed{color:#b6b6aa!important}.weekly-detail-head{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:25px;padding:20px;background:radial-gradient(ellipse at left,color-mix(in srgb,var(--boss-color) 20%,transparent),transparent 60%),#101e29;border:1px solid #345164;border-radius:14px}.weekly-detail-art{text-align:center}.weekly-detail-head .menu-eyebrow{display:block;margin-top:15px}.weekly-detail-head h3{font-size:34px}.weekly-difficulties .menu-button{display:grid;gap:3px;min-width:90px;text-align:left}.weekly-difficulties small{font-size:10px}.weekly-detail-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:24px;padding:12px 0}.weekly-guide,.weekly-loot{min-width:0}.weekly-guide ol{margin:12px 0;padding-left:22px}.weekly-guide li{padding:8px 0;color:#dfc48a}.weekly-guide li strong,.weekly-guide li span{display:block}.weekly-guide li strong{font-size:13px;color:#e9e2d3}.weekly-guide li span{font-size:12px;color:#9fb2bf;margin-top:5px}.weekly-mvc{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:14px 0}.weekly-mvc>span{display:grid;justify-items:center;align-content:start;background:#172834;padding:7px 2px;border:1px solid #35505f;border-radius:8px;min-width:0}.weekly-mvc img{width:45px;height:45px;object-fit:contain;image-rendering:pixelated}.weekly-mvc small{font-size:9px;text-align:center;overflow-wrap:anywhere}.weekly-drop{display:flex;align-items:center;gap:10px;min-height:48px;background:#12212c;border:1px solid #2a404e;border-radius:7px;padding:8px 10px;margin:6px 0;font-size:12px}.weekly-drop>img{width:30px;height:30px;object-fit:contain}.weekly-drop>span{flex:1;min-width:0}.weekly-drop strong{display:block;font-size:12px}.weekly-drop b{font-size:12px;white-space:nowrap;color:#e9c78c}.weekly-drop>span>img{width:22px;height:22px;vertical-align:middle}.weekly-loot h5{font-size:12px;text-transform:uppercase;letter-spacing:.6px;margin:18px 0 10px;color:#dfc991}.weekly-rarity-group{border:1px solid #2a404e;border-left:3px solid var(--rarity);border-radius:7px;margin:7px 0;padding:10px}.weekly-rarity-group summary{cursor:pointer;color:var(--rarity);font-size:12px}.weekly-rarity-group summary strong{float:right;font-size:11px}.weekly-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;bottom:-16px;padding:15px;background:#152733f5;backdrop-filter:blur(10px);border:1px solid #3c5665;border-radius:10px;z-index:2}.weekly-entry>div{display:flex;gap:7px;flex-wrap:wrap}.weekly-entry>div:first-child{display:grid;gap:3px}.weekly-entry small{font-size:11px;max-width:300px}.weekly-battle-info{display:flex;gap:25px;align-items:center}.weekly-battle-info>.weekly-portrait{width:150px}.weekly-victory{text-align:center;padding:25px 12px;background:radial-gradient(ellipse at top,#bda05822,transparent 75%)}.weekly-victory h3{font-size:32px;color:#f6d897}.weekly-reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.weekly-reward-grid article{display:grid;justify-items:center;text-align:center;gap:7px;border:1px solid #36505e;border-top:3px solid var(--rarity,#d7b572);border-radius:10px;background:#13242d;padding:15px;min-width:0}.weekly-reward-grid img{width:50px;height:50px;object-fit:contain}.weekly-reward-grid strong{font-size:12px}.weekly-no-equipment{padding:15px;background:#172735;border-radius:8px;text-align:center}.weekly-result-footer{text-align:center;padding-top:12px}.weekly-result-footer .primary{min-width:220px}#weekly-hud{position:fixed;left:50%;bottom:128px;transform:translateX(-50%);z-index:17;display:flex;align-items:center;gap:13px;background:#0e1c29ef;border:1px solid #c19752;padding:12px 16px;border-radius:10px;box-shadow:0 8px 25px #0006;max-width:calc(100vw - 32px)}#weekly-hud[hidden]{display:none}#weekly-hud>div{min-width:160px;display:grid;gap:5px}#weekly-hud span{font-size:10px;color:#b5c3c9}#weekly-hud strong{font-size:14px;color:#f2d59c}#weekly-hud .menu-button{font-size:11px}.weekly-health i{background:linear-gradient(90deg,#ad533e,#e99c64)}
@media(max-width:700px){.forge-lead,.weekly-lead{padding:16px;gap:12px;align-items:start}.forge-lead h3,.weekly-lead h3{font-size:23px}.forge-lead{flex-direction:column}.forge-wallet{font-size:12px}.forge-workspace{grid-template-columns:1fr}.forge-picker{position:static;padding:12px}.forge-pieces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:170px}.forge-pieces button{padding:7px;gap:6px}.forge-pieces img{width:30px;height:30px}.forge-pieces strong{font-size:11px}.forge-pieces .rarity-label{font-size:9px}.forge-detail{padding:15px}.forge-material-grid{grid-template-columns:1fr}.forge-recipes{grid-template-columns:1fr}.weekly-grid{grid-template-columns:1fr}.weekly-card-art{width:32%}.weekly-card .weekly-portrait{max-height:130px}.weekly-reset{min-width:110px}.weekly-reset strong{font-size:14px}.weekly-reset span{font-size:9px}.weekly-detail-head{grid-template-columns:95px 1fr;gap:12px;padding:13px}.weekly-detail-head h3{font-size:26px}.weekly-detail-head .weekly-portrait{max-height:140px}.weekly-detail-head .menu-eyebrow{font-size:9px}.weekly-detail-head .menu-tabs{grid-column:1/-1}.weekly-difficulties .menu-button{min-width:0;font-size:12px;padding:7px}.weekly-detail-grid{grid-template-columns:1fr;gap:5px}.weekly-entry{position:static;flex-direction:column;align-items:stretch;padding:12px}.weekly-entry .menu-button{flex:1}.weekly-entry>div{flex-wrap:wrap}.weekly-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-battle-info{flex-direction:column;gap:10px}.weekly-battle-info>.weekly-portrait{max-height:130px}#weekly-hud{bottom:158px;padding:8px 10px;gap:8px}#weekly-hud>div{min-width:115px}.weekly-rarity-group summary strong{float:none;display:block;margin-left:14px}.forge-chance strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.weekly-entry{backdrop-filter:none}}
.forge-workspace>*,.forge-picker label,.forge-detail label,.forge-detail select,.forge-detail input,.forge-picker select{min-width:0;max-width:100%}.forge-pieces button[hidden]{display:none}.forge-detail{overflow-wrap:anywhere}.weekly-entry small{overflow-wrap:anywhere}
@media(max-width:360px){.forge-upgrade-visual{gap:13px;padding:12px 4px}.forge-upgrade-visual>span{padding:8px 15px}.forge-upgrade-visual img{width:42px;height:42px}.forge-chance{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.forge-chance>span{padding:8px}.forge-chance strong{font-size:16px}.weekly-lead{flex-direction:column}.weekly-reset{text-align:left}.weekly-detail-head{grid-template-columns:70px minmax(0,1fr);gap:10px}.weekly-detail-head h3{font-size:22px}.weekly-detail-head .weekly-difficulties{gap:5px}.weekly-difficulties .menu-button{font-size:11px}.weekly-drop{gap:6px;padding:6px}.weekly-drop strong{font-size:11px}.weekly-drop b{font-size:10px}.weekly-drop>img{width:24px;height:24px}.weekly-mvc img{width:36px;height:36px}}

.weekly-map-preview{display:block;width:100%;height:auto;max-width:100%;border:1px solid #36505d;border-radius:10px;background:#112331;margin:14px 0;image-rendering:pixelated}.forge-lead{padding-top:16px;padding-bottom:16px}
.boost-forge .menu-button.primary,.weekly-menu .menu-button.primary{color:#221b10;background:linear-gradient(#ffdc87,#efb445);border-color:#e2b863;font-weight:700}.boost-forge .menu-button.primary:hover:not(:disabled),.weekly-menu .menu-button.primary:hover:not(:disabled){color:#18140c;background:linear-gradient(#ffe6aa,#fac66a);border-color:#ffe3a0}.boost-forge .menu-button:disabled,.weekly-menu .menu-button:disabled{opacity:.6}

#toolbar .tool-button[data-action="weekly-bosses"],.mobile-menu-grid [data-action="weekly-bosses"]{color:#ffcf7c;border:1px solid #96703e;background:linear-gradient(135deg,#66432255,#172631)}
#toolbar .tool-button[data-action="weekly-bosses"]:hover,#toolbar .tool-button[data-action="weekly-bosses"]:focus-visible,.mobile-menu-grid [data-action="weekly-bosses"]:hover{background:#3b3325;border-color:#e0b25e}

/* Shared weekly access status for boss and raid catalogs, guides and rewards. */
.weekly-access{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:16px 18px;border:1px solid #3c665d;border-radius:10px;background:#122a2c;color:#d7e9df;line-height:1.5}
.weekly-access>div{min-width:0}.weekly-access.locked{border-color:#8f7547;background:linear-gradient(110deg,#342c1f,#172631);color:#f6dfb1}.weekly-access-label{display:block;font-size:10px;font-weight:700;letter-spacing:1px;color:#96c7b1}.weekly-access.locked .weekly-access-label{color:#e5b967}.weekly-access strong{display:block;font-size:14px;margin-top:5px}.weekly-access small{display:block;font-size:11px;color:#b2c2cc;margin-top:4px}.weekly-access-return{flex-shrink:0;text-align:right}.weekly-access .weekly-countdown,.weekly-reset .weekly-countdown{display:block;font-variant-numeric:tabular-nums;font-size:18px;font-weight:700;letter-spacing:.3px;color:#ffe2a6;white-space:nowrap}.weekly-access.compact{align-items:flex-start;flex-direction:column;gap:7px;padding:12px;margin:14px 0 0}.weekly-access.compact .weekly-access-return{text-align:left}.weekly-access.compact .weekly-countdown{font-size:16px}.weekly-access.compact small{margin-top:2px}.weekly-result-footer>.weekly-access,.raid-entry>.weekly-access{width:100%;margin:0}.raid-info-strip .weekly-countdown{color:#ffe2a6;font-variant-numeric:tabular-nums}
@media(max-width:600px){.weekly-access{align-items:flex-start;flex-direction:column;gap:10px;padding:14px}.weekly-access-return{text-align:left}.weekly-access .weekly-countdown{font-size:17px}.weekly-reset .weekly-countdown{font-size:14px}}
.weekly-difficulties{flex-wrap:wrap}
.weekly-difficulties [data-id="nightmare"]{border-color:#ad77e5;color:#e1bcff}
.weekly-difficulties [data-id="nightmare"].selected{background:#41225e;color:#fff0ff}
.nightmare .weekly-portrait{filter:drop-shadow(0 0 12px #a04ced88) saturate(1.2)}
.nightmare-warning{border:1px solid #935fbc;background:#241632;border-radius:10px;padding:16px;color:#e9d2ff;margin:12px 0;grid-column:1/-1}
.nightmare-warning strong{color:#e0aeff;letter-spacing:1px;font-size:12px}
.nightmare-warning p{font-size:12px;line-height:1.6;margin:8px 0 0}
/* Daily Bosses 0.1.2 */
.daily-lead{border-color:#5d7891;background:radial-gradient(ellipse at right,#28475b99,transparent 70%),#10212e}.daily-card .weekly-card-art{position:relative;background:radial-gradient(ellipse,var(--boss-color),transparent 72%),#0c1822;background-blend-mode:soft-light}.daily-card .daily-portrait{width:112px;height:132px;object-fit:contain;image-rendering:pixelated}.daily-mechanics-label{position:absolute;bottom:8px;left:8px;right:8px;padding:4px;border:1px solid #a4834e;border-radius:5px;background:#19242f;font-size:9px;color:#ffd48a;text-align:center}.daily-card-status{font-size:11px;color:#a9d3c7}.daily-menu .weekly-detail-art img{image-rendering:pixelated;width:180px;height:190px;object-fit:contain}.daily-hud{position:fixed;z-index:22;bottom:100px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;min-width:300px;padding:12px 16px;border:1px solid #718f9e;border-radius:12px;background:#0b1b28ed;box-shadow:0 8px 26px #0007}.daily-hud[hidden]{display:none}.daily-hud>div{flex:1;min-width:0}.daily-hud small{display:block;color:#a7c2d1;font-size:11px}.daily-hud strong{color:#f2d699;font-size:15px}.daily-hud .menu-button{min-height:40px}.daily-menu .weekly-guide li{margin:12px 0;font-size:13px;color:#b5c7d1}.daily-menu .weekly-reset{min-width:190px}@media(max-width:600px){.daily-hud{bottom:150px;min-width:0;width:calc(100% - 24px);padding:8px 12px}.daily-menu .weekly-reset{min-width:0}.daily-card .daily-portrait{width:88px;height:112px}.daily-menu .weekly-entry{position:static}.daily-menu .weekly-detail-art img{width:130px;height:150px}}

.daily-card:has(.daily-mechanics-label) .weekly-level{top:8px;bottom:auto}
/* Each workbench operation has its own destination and readable requirements. */
.forge-tabs .menu-button{display:flex;align-items:center;gap:6px;min-height:42px}
.forge-tabs .pirate-icon{width:24px;height:24px;object-fit:contain;flex:none}
.forge-item-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.forge-item-heading>img{width:52px;height:52px;object-fit:contain;image-rendering:pixelated;flex:none}
.forge-item-heading>div{min-width:0}
.forge-item-heading h3{overflow-wrap:anywhere}
.forge-status{padding:10px 12px;border:1px solid #7b673e;border-radius:7px;background:#e9af3c0a;color:#e8c989!important}
.forge-filter-empty{padding:12px;border:1px dashed #465968;border-radius:6px}
@media(max-width:600px){.forge-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.forge-tabs .menu-button{justify-content:flex-start;padding:8px;font-size:14px;min-width:0}.forge-tabs .menu-button span{overflow-wrap:anywhere}}

/* Compact workbench: choose a piece, review the cost, then act. */
#game-modal[data-menu-type="forge"]{width:min(920px,calc(100vw - 24px));max-width:920px;max-height:calc(100dvh - 32px)}
#game-modal[data-menu-type="forge"]>header{position:sticky;top:0;z-index:2;background:#111e29;padding:14px 18px}
#game-modal[data-menu-type="forge"] #modal-body{padding:16px 18px}
.boost-forge .forge-lead{padding:0 0 12px;border:0;border-bottom:1px solid #2b3d49;border-radius:0;background:none;gap:12px;color:var(--muted);font-size:12px}
.boost-forge .forge-wallet{font-size:12px;gap:5px}
.boost-forge .forge-wallet img{width:20px;height:20px}
.boost-forge .forge-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:12px 0 16px;padding:4px;border:1px solid #2b3d49;border-radius:9px;background:#0a141d}
.boost-forge .forge-tabs .menu-button{justify-content:center;gap:5px;padding:8px 5px;min-width:0;min-height:38px;font-size:14px;line-height:1.2;border-color:transparent;background:transparent}
.boost-forge .forge-tabs .menu-button.selected{background:#2b281e;border-color:#b18b45;color:#f6d38e}
.boost-forge .forge-tabs .pirate-icon{width:20px;height:20px}
.boost-forge .forge-workspace{grid-template-columns:240px minmax(0,1fr);gap:16px}
.boost-forge .forge-picker{display:block;padding:12px;background:#0c1822;border-color:#293d4b}
.boost-forge .forge-picker>summary{display:none}
.boost-forge .forge-picker-fields{display:grid;gap:9px}
.boost-forge .forge-picker .menu-search{padding:9px 10px;min-height:36px;font-size:12px}
.boost-forge .forge-pieces{max-height:430px;gap:5px;scrollbar-width:thin}
.boost-forge .forge-pieces button{padding:9px;gap:8px;background:transparent;border-color:transparent;border-radius:6px}
.boost-forge .forge-pieces button:hover{background:#172733}
.boost-forge .forge-pieces button.selected{background:#232921;border-color:#a18b51}
.boost-forge .forge-pieces img{width:32px;height:32px}
.boost-forge .forge-pieces strong{font-size:12px;line-height:1.3}
.boost-forge .forge-pieces small{margin-top:2px;line-height:1.3}
.boost-forge .forge-detail,.boost-forge .forge-materials{padding:18px;border-color:#334753;background:#0d1822}
.boost-forge .forge-item-heading{gap:10px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #263946}
.boost-forge .forge-item-heading>img{width:40px;height:40px}
.boost-forge .forge-item-heading h3{font-size:22px;line-height:1.15;margin:0 0 4px}
.boost-forge .forge-item-heading p{font-size:11px;margin:0;line-height:1.4}
.boost-forge .forge-description{margin:0 0 14px;font-size:12px}
.boost-forge .forge-boost-overview{display:grid;grid-template-columns:135px minmax(0,1fr);gap:14px;align-items:center;margin:0 0 10px}
.boost-forge .forge-upgrade-visual{gap:9px;padding:0;background:none;justify-content:flex-start}
.boost-forge .forge-upgrade-visual>span{padding:6px 8px;gap:0;background:transparent;border:0;border-radius:6px;flex:none}
.boost-forge .forge-upgrade-visual>span.next{background:#d9ab5310;box-shadow:none}
.boost-forge .forge-upgrade-visual small{font-size:10px;white-space:nowrap}
.boost-forge .forge-upgrade-visual b{font-size:28px;line-height:1.2;white-space:nowrap}
.boost-forge .forge-upgrade-visual em{font-size:18px}
.boost-forge .forge-chance{gap:8px;margin:0 0 12px}
.boost-forge .forge-boost-overview .forge-chance{margin:0}
.boost-forge .forge-chance>span{padding:9px 10px;gap:3px;background:#152530;font-size:11px;line-height:1.3;min-width:0}
.boost-forge .forge-chance strong{font-size:20px;line-height:1.25}
.boost-forge .forge-detail>small{font-size:10px}
.boost-forge .forge-scroll{margin:14px 0;gap:5px}
.boost-forge .forge-scroll select{min-height:38px;padding:8px;font-size:12px}
.boost-forge .forge-payment{padding:12px 0;border-top:1px solid #263946;border-bottom:1px solid #263946;margin:12px 0}
.boost-forge .forge-payment h4{margin:0 0 8px;font:600 11px/1.3 var(--body,Arial,sans-serif);color:#a9bec9}
.boost-forge .forge-costs{gap:8px;margin:0;align-items:center}
.boost-forge .forge-cost,.boost-forge .forge-costs>span{padding:8px 10px;background:#14251f;border-color:#2c453a;font-size:12px;min-width:0}
.boost-forge .forge-cost strong{color:#d5e4d9;font-weight:600;line-height:1.3}
.boost-forge .forge-cost small{display:block;font-size:10px;margin-top:3px}
.boost-forge .forge-cost img,.boost-forge .forge-costs img{width:24px;height:24px;flex:none}
.boost-forge .forge-payment>.forge-costs>img{width:22px;height:22px}
.boost-forge .forge-cost.missing{background:#30211d;border-color:#70483e}
.boost-forge .forge-cost.missing strong{color:#edb7a7}
.boost-forge .forge-note{font-size:11px;margin:10px 0;color:#adbdc6}
.boost-forge .forge-warning{margin:12px 0;font-size:11px!important;line-height:1.5}
.boost-forge .forge-status{margin:10px 0;padding:9px 10px;font-size:11px;line-height:1.5}
.boost-forge .forge-detail>.forge-action{position:sticky;bottom:0;z-index:1;padding:10px 0 2px;background:#0d1822}
.boost-forge .forge-action>.menu-button{width:100%;min-height:42px;font-size:15px;margin:0}
.boost-forge .forge-tabs .menu-button:focus-visible,.boost-forge .forge-pieces button:focus-visible{outline:2px solid #94c6d6;outline-offset:-2px}
.boost-forge .forge-help{margin-top:14px;padding-top:11px;font-size:12px}
.boost-forge .forge-help summary{color:#b6c7ce;font-size:11px;line-height:1.5}
.boost-forge .forge-help[open] summary{color:#e3ca96;margin-bottom:10px}
.boost-forge .forge-help p{font-size:11px;line-height:1.6;margin:8px 0}
.boost-forge .forge-reforge-preview{padding:12px;margin:12px 0;background:#1c2430;border-color:#536278}
.boost-forge .forge-reforge-preview h4{font-size:15px;line-height:1.35;margin:0 0 9px}
.boost-forge .forge-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.boost-forge .forge-comparison .rarity-label{display:block;font:400 11px/1.5 var(--body,Arial,sans-serif);margin-top:3px}
.boost-forge .forge-comparison .forge-stats{grid-template-columns:1fr}
.boost-forge .forge-reforge-preview .dialog-actions{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.boost-forge .forge-reforge-preview .menu-button{min-width:0;padding:8px;font-size:14px}
.boost-forge .forge-materials>h3{font-size:22px;margin:0 0 5px}
.boost-forge .forge-materials>p{font-size:12px;margin-bottom:14px}
.boost-forge .forge-recipes{gap:12px}
.boost-forge .forge-recipes>section{padding:14px;border:1px solid #324653;border-radius:8px;background:#111e29;min-width:0}
.boost-forge .forge-recipes header{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.boost-forge .forge-recipes header>img{width:30px;height:30px;object-fit:contain;flex:none}
.boost-forge .forge-recipes h4{font-size:18px;margin:0;line-height:1.2}
.boost-forge .forge-recipes .forge-cost{width:100%}
.boost-forge .forge-recipes .menu-button{width:100%;margin-top:12px}
.boost-forge .forge-material-grid article{padding:10px;background:#111e29;border-color:#293d4b}
.boost-forge .forge-material-grid article>img{width:28px;height:28px}
@media(max-width:700px){
 #game-modal[data-menu-type="forge"] #modal-body{padding:12px}
 #game-modal[data-menu-type="forge"]>header{padding:12px 14px}
 .boost-forge .forge-lead{flex-direction:row;align-items:center;font-size:11px;padding-bottom:10px}
 .boost-forge .forge-wallet{font-size:10px}
 .boost-forge .forge-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 12px;gap:3px}
 .boost-forge .forge-tabs .menu-button{flex-direction:column;gap:3px;padding:6px 3px;font-size:13px;min-height:46px}
 .boost-forge .forge-tabs .pirate-icon{width:18px;height:18px}
 .boost-forge .forge-workspace{grid-template-columns:1fr;gap:10px}
 .boost-forge .forge-picker{position:static;padding:0}
 .boost-forge .forge-picker>summary{display:flex;align-items:center;gap:8px;list-style:none;padding:10px;cursor:pointer}
 .boost-forge .forge-picker>summary::-webkit-details-marker{display:none}
 .boost-forge .forge-picker>summary>img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated;flex:none}
 .boost-forge .forge-picker>summary>span{flex:1;min-width:0}
 .boost-forge .forge-picker>summary small{display:block;font-size:9px;color:#92aab8}
 .boost-forge .forge-picker>summary strong{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
 .boost-forge .forge-picker>summary b{font-size:11px;color:#ebce8f;font-weight:500}
 .boost-forge .forge-picker>summary:focus-visible{outline:2px solid #e6c681;outline-offset:-2px;border-radius:8px}
 .boost-forge .forge-picker[open]>summary{border-bottom:1px solid #293d4b}
 .boost-forge .forge-picker-fields{padding:10px}
 .boost-forge .forge-pieces{grid-template-columns:repeat(2,minmax(0,1fr));max-height:185px}
 .boost-forge .forge-pieces button{padding:6px;gap:5px}
 .boost-forge .forge-pieces img{width:26px;height:26px}
 .boost-forge .forge-pieces strong{font-size:11px}
 .boost-forge .forge-detail,.boost-forge .forge-materials{padding:13px}
 .boost-forge .forge-item-heading{gap:8px;margin-bottom:12px;padding-bottom:10px}
 .boost-forge .forge-item-heading>img{width:34px;height:34px}
 .boost-forge .forge-detail>.forge-item-heading{display:none}
 .boost-forge .forge-item-heading h3{font-size:20px}
 .boost-forge .forge-item-heading p{font-size:10px}
 .boost-forge .forge-boost-overview{grid-template-columns:100px minmax(0,1fr);gap:8px}
 .boost-forge .forge-upgrade-visual{gap:5px}
 .boost-forge .forge-upgrade-visual>span{padding:5px 4px}
 .boost-forge .forge-upgrade-visual b{font-size:24px}
 .boost-forge .forge-chance{gap:5px}
 .boost-forge .forge-chance>span{font-size:10px;padding:7px 6px}
 .boost-forge .forge-chance strong{font-size:17px}
 .boost-forge .forge-material-grid,.boost-forge .forge-recipes{grid-template-columns:1fr}
 .boost-forge .forge-help{margin-top:12px}
}
@media(max-width:360px){
 .boost-forge .forge-boost-overview{grid-template-columns:85px minmax(0,1fr);gap:6px}
 .boost-forge .forge-upgrade-visual{gap:3px}
 .boost-forge .forge-upgrade-visual b{font-size:22px}
 .boost-forge .forge-boost-overview .forge-chance{grid-template-columns:1fr}
 .boost-forge .forge-boost-overview .forge-chance>span{display:flex;align-items:center;justify-content:space-between;gap:5px}
 .boost-forge .forge-boost-overview .forge-chance strong{font-size:15px;flex:none}
 .boost-forge .forge-comparison{grid-template-columns:1fr;gap:12px}
}

/* Hachinosu recruitment: readable fragment progress on desktop and phones. */
.hachinosu-recruitment{margin:20px 0;padding:20px;border:1px solid #735886;border-radius:14px;background:linear-gradient(130deg,#231d35,#111f2a)}
.hachinosu-recruitment header>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hachinosu-recruitment header>div>img{width:44px;height:44px}.hachinosu-recruitment h3{margin:4px 0;font-size:22px;color:#f4d699}.hachinosu-recruitment p,.hachinosu-fragment-rule small{color:#b1bac6;line-height:1.55}
.hachinosu-fragment-rule{display:flex;flex-direction:column;gap:8px;padding:14px;background:#0e1826;border-radius:9px;border-left:3px solid #cfb17c}.hachinosu-fragment-rule strong{color:#f0d79f}.hachinosu-fragment-rule span{color:#d1b7ee}
.hachinosu-heroes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.hachinosu-hero{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #405062;border-radius:10px;background:#101b28;min-width:0}.hachinosu-hero.selected{border-color:#cfb67d;background:#282536}.hachinosu-hero .hachinosu-portrait{width:64px;height:64px;object-fit:contain;align-self:center}.hachinosu-hero h4{margin:2px 0 6px;color:#ece1c6}.hachinosu-hero span{font-size:12px;color:#b2c7d4}.hachinosu-hero label{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin:10px 0 6px;color:#c5bece}.hachinosu-hero label b{white-space:nowrap}.hachinosu-hero progress{width:100%;height:7px;accent-color:#b796d8}.hachinosu-hero button{grid-column:1/-1;min-height:38px;white-space:normal}.hachinosu-fragment-reward{border-color:#bd98da!important}.hachinosu-fragment-reward span{color:#dab5f6}
@media(max-width:600px){.hachinosu-recruitment{padding:12px}.hachinosu-heroes{grid-template-columns:1fr}.hachinosu-recruitment header h3{font-size:19px}.hachinosu-hero{grid-template-columns:56px minmax(0,1fr)}.hachinosu-hero .hachinosu-portrait{width:56px;height:56px}}
.hachinosu-arsenal{margin:18px 0;padding:18px;border:1px solid #6c5b42;border-radius:12px;background:linear-gradient(135deg,#192d37,#172029);color:#cbd8db}
.hachinosu-arsenal>header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.hachinosu-arsenal h3{margin:5px 0;color:#f1d49c}
.hachinosu-arsenal>p{font-size:13px;line-height:1.6}
.hachinosu-weapon-chance{display:flex;flex-direction:column;gap:3px}
.hachinosu-weapon-chance strong{font-size:24px;color:#f4ca76}
.hachinosu-weapon-chance small{font-size:11px;color:#b6c7cb}
.hachinosu-weapons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.hachinosu-weapon{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:9px;padding:12px;border:1px solid #415863;border-radius:10px;background:#111e28;min-width:0}
.hachinosu-weapon.selected{border-color:#dfb862;background:#233336}
.hachinosu-weapon-art{width:56px;height:56px;display:grid;place-items:center;background:#0b161f;border:1px solid #6a573e;border-radius:8px}
.hachinosu-weapon-art img{width:48px;height:48px;object-fit:contain}
.hachinosu-weapon h4{margin:4px 0;font-size:13px;line-height:1.4;color:#f1d49c;overflow-wrap:anywhere}
.hachinosu-weapon small{font-size:11px;color:#abc0c9}
.hachinosu-weapon p{margin:3px 0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.hachinosu-weapon button{grid-column:2;justify-self:start;max-width:100%;font-size:12px}
.hachinosu-weapon-odds{margin:14px 0;font-size:12px}
.hachinosu-weapon-odds summary{cursor:pointer;color:#e7c791;padding:5px 0}
.hachinosu-weapon-odds>div{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.hachinosu-weapon-odds span{color:var(--rarity);display:flex;gap:8px;align-items:center}
@media(max-width:620px){.hachinosu-weapons{grid-template-columns:1fr}.hachinosu-arsenal{padding:12px}.hachinosu-weapon{grid-template-columns:48px minmax(0,1fr)}.hachinosu-weapon-art{width:48px;height:48px}.hachinosu-weapon-art img{width:40px;height:40px}}
