.legend-screen{min-height:calc(100dvh - 62px);padding:34px clamp(16px,3vw,40px) 70px;color:#e9edf0;background:radial-gradient(circle at 20% 0%,#214659 0,#0b2231 35%,#06141e 80%)}
.legend-screen *{box-sizing:border-box}.legend-wrap{max-width:1320px;margin:auto}.legend-heading{text-align:center;margin:15px auto 28px}.legend-heading span,.legend-subheading+small,.legend-side-overline,.legend-stage-head span,.legend-boss-tile small,.legend-boss-body>small,.legend-planet-info small{color:#dbbb7e;font-size:10px;font-weight:900;letter-spacing:.17em}.legend-heading h1,.legend-subheading h1,.legend-stage-head h1{color:#ffe0a0;margin:6px 0;font-size:clamp(30px,4vw,52px);text-shadow:0 3px 12px #000c}.legend-heading p,.legend-subheading p,.legend-stage-head p{color:#bed1d9;margin:0}.legend-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1030px;margin:0 auto}.legend-side-card{position:relative;display:flex;flex-direction:column;justify-content:end;align-items:start;min-height:460px;padding:35px;text-align:left;overflow:hidden;border:2px solid #bb9350;border-radius:10px;box-shadow:0 18px 40px #0009,inset 0 0 0 3px #061520;background-color:#123342;color:#fff;transition:transform .2s,box-shadow .2s}.legend-side-card:hover,.legend-side-card:focus-visible{transform:translateY(-5px);box-shadow:0 22px 50px #000b,0 0 24px #d5a55d66}.legend-side-card:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06121dfb 0%,#06121db0 36%,#06121d12 85%),url('../art/planets.webp') 0 0/400% 300% no-repeat;transition:transform .25s}.legend-side-card:hover:before{transform:scale(1.05)}.legend-side-card.legend-dark:before{background-image:linear-gradient(0deg,#110c1afb 0%,#1b0e1b88 75%),url('../art/planets.webp');background-position:center,100% 100%;filter:hue-rotate(135deg) saturate(.8)}.legend-side-card>*{position:relative;z-index:1}.legend-side-card strong{font-size:clamp(27px,3.3vw,40px);color:#ffe0a0;margin:9px 0}.legend-side-card small{font-size:15px;color:#e0ebed}.legend-card-action{margin-top:23px;border-top:1px solid #d6af7299;padding-top:12px;font-size:13px;font-weight:900;color:#f9d18b}.legend-trail{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#91aebb;font-size:12px;margin-bottom:24px}.legend-back{border:1px solid #806943;background:#173847;color:#f1dbad;padding:9px 16px;border-radius:5px;font-weight:900}.legend-back:hover{background:#235164}.legend-subheading{text-align:center;margin:0 0 30px}.legend-planets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.legend-planet-card{position:relative;min-height:330px;overflow:hidden;padding:0;background:#10293a;border:2px solid #a37d42;border-radius:8px;color:#e5f0f2;text-align:left;box-shadow:0 12px 30px #0008}.legend-planet-art{position:absolute;inset:0;background-image:url('../art/planets.webp');background-size:400% 300%;background-repeat:no-repeat}.legend-planet-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06151efc 0%,transparent 75%)}.legend-planet-info{position:absolute;z-index:1;left:20px;right:20px;bottom:18px;display:grid;gap:5px}.legend-planet-info strong{font-size:28px;color:#ffe2a8}.legend-planet-info span{font-size:12px}.legend-planet-info b{color:#abdde9;font-size:13px}.legend-planet-card:hover{filter:brightness(1.15)}.legend-empty{grid-column:1/-1;text-align:center;padding:70px 25px;background:linear-gradient(#172338,#091723);border:1px solid #835a67;border-radius:8px}.legend-empty h2{color:#efbfd0}.legend-stage-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}.legend-stage-head>strong{background:#153847;border:1px solid #cda55d;padding:10px 15px;border-radius:5px;color:#ffe1a1;white-space:nowrap}.legend-stage-grid{display:grid;grid-template-columns:minmax(250px,360px) minmax(0,1fr);gap:18px}.legend-stage-list,.legend-boss-detail{background:linear-gradient(#0f3042ed,#081a2af5);border:2px solid #a68750;border-radius:8px;box-shadow:0 14px 32px #0008}.legend-stage-list{padding:16px;align-self:start}.legend-stage-list h2{color:#ffdb9b;font-size:19px;margin:0 0 12px}.legend-stage-list>p{font-size:12px;color:#99b7c5;line-height:1.45}.legend-boss-tile{display:flex;align-items:center;gap:12px;width:100%;padding:8px;margin-bottom:9px;color:#eaf2f3;text-align:left;background:#081b29;border:1px solid #416172;border-radius:5px}.legend-boss-tile.selected{border-color:#e1b66a;background:#143b4a}.legend-boss-tile img{width:64px;height:75px;object-fit:cover;object-position:center 15%;border:1px solid #c49b5c}.legend-boss-tile span{display:grid;gap:3px}.legend-boss-tile b{font-size:14px}.legend-boss-tile em{font-size:11px;color:#8ccfae;font-style:normal}.legend-boss-tile.defeated em{color:#e0c885}.legend-boss-detail{display:grid;grid-template-columns:minmax(210px,40%) 1fr;min-height:500px;overflow:hidden}.legend-boss-portrait{position:relative;min-height:450px;background:#151d24}.legend-boss-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}.legend-boss-portrait span{position:absolute;left:16px;bottom:16px;background:#071b27db;border:1px solid #c69753;padding:8px 12px;color:#ffe0a0;font-weight:900}.legend-boss-body{display:flex;flex-direction:column;align-items:start;padding:clamp(18px,3vw,36px)}.legend-boss-body h2{font-size:clamp(26px,3vw,38px);color:#ffe0a1;margin:8px 0 18px}.legend-story{line-height:1.6;color:#d8e8ed;margin:0 0 22px}.legend-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin-bottom:24px}.legend-stats span{background:#071925;border:1px solid #385c6c;border-radius:4px;padding:9px}.legend-stats small{display:block;font-size:10px;color:#a1c0ce}.legend-stats b{font-size:19px;color:#f6d49a}.legend-fight{margin-top:auto;min-width:180px}.battle-box .legend-portrait img{object-fit:cover;object-position:center 12%}
@media(max-width:980px){.legend-stage-grid{grid-template-columns:1fr}.legend-stage-list{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.legend-stage-list h2,.legend-stage-list>p{width:100%}.legend-boss-tile{width:min(100%,310px)}.legend-planets{grid-template-columns:repeat(2,minmax(0,1fr))}}
.legend-reward{margin:0 0 18px;color:#b9d4dd;font-size:14px}.legend-reward b{color:#ffe0a0;display:block;margin-top:4px;font-size:16px}
@media(max-width:650px){.legend-screen{padding:18px 12px 38px}.legend-sides,.legend-planets{grid-template-columns:1fr}.legend-side-card{min-height:300px;padding:24px}.legend-stage-head{display:block}.legend-stage-head>strong{display:inline-block;margin-top:15px}.legend-boss-detail{grid-template-columns:1fr}.legend-boss-portrait{min-height:0;height:340px}.legend-boss-body{padding:20px}.legend-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.legend-fight{width:100%}}

.legend-boss-combat .battle-weapon{display:none}
