.frontier-illustration{display:block;width:100%;height:100%;overflow:hidden;max-width:100%}
.encounter-art>.frontier-illustration{height:330px;max-height:49vh;filter:drop-shadow(0 14px 18px #0005);margin:auto;padding:12px}
.result-battle>.frontier-illustration{width:130px;height:145px}
.floor-card .floor-preview{width:100px;min-width:75px;height:110px;filter:drop-shadow(0 7px 8px #0004)}
.floor-card .floor-number{font-size:24px;min-width:42px}
.build-panel{margin:20px 0}.build-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.build-choice{padding:15px;border:1px solid #adc79733;border-radius:13px;background:#203b342e}.build-choice.selected{border-color:#cab67b;background:#6a69452c}
.build-choice h4{margin:0 0 9px;font-size:15px;display:flex;align-items:center;gap:8px}.build-choice p{font-size:13px;line-height:1.6;min-height:65px}
.companion-effect{padding:13px;background:#779c7a15;border-radius:10px;font-size:13px;line-height:1.65}
.party-lobby{margin:16px 0}.party-lobby h3{margin:8px 0}.party-readiness{margin:10px 0 17px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px}
.party-ready-row{display:flex;align-items:center;gap:10px;border:1px solid #98b28a26;padding:10px;border-radius:10px;min-width:0}.party-ready-row small{display:block;font-size:11px;color:#a8b9a6;margin-top:4px}
.ready-light{width:11px;height:11px;min-width:11px;background:#7d827a;border-radius:50%}.ready-light.yes{background:#b0d59b;box-shadow:0 0 10px #a1d98933}
.party-ready-row .btn{font-size:10px;padding:8px}.party-ready-row .grow{min-width:0}.party-ready-row strong{overflow-wrap:anywhere}
.learning-diagram{margin:12px 0 18px;background:#0e25205c;border:1px solid #a0b79a35;border-radius:13px;padding:8px;max-width:480px}
.learning-diagram svg{width:100%;max-height:270px;display:block;font-family:inherit}.learning-scene{margin:8px 0 13px;float:right;width:150px;height:150px;padding:5px}.learning-scene svg{height:125px;filter:drop-shadow(0 6px 8px #0004)}
.learning-scene figcaption{font-size:10px;color:#acbba6;text-align:center}.question-actions{clear:both}.question-panel .passage{line-height:1.8}
.bestiary-modal{width:min(920px,95vw);max-height:88vh;overflow:auto}.bestiary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.bestiary-card{padding:15px;background:#1e38322e;border:1px solid #b0c09725;border-radius:13px}.bestiary-card>img,.bestiary-card>.frontier-illustration{width:100%;height:160px;object-fit:contain}.bestiary-card h3{font-size:16px;margin:12px 0 8px}.bestiary-card p{font-size:12px;line-height:1.7}.bestiary-card small{font-size:10px;color:#a6b4a2}.unknown-guardian{font-family:serif;font-size:70px;text-align:center;color:#89947b;height:160px;padding-top:30px}
.pet-effect{font-size:11px!important;color:#d1c18c!important}.boss-rule{font-size:12px;color:#e0cf9b;border-left:2px solid #bdac75;padding:8px 10px;margin:12px 0}
@media(max-width:640px){.build-choices{grid-template-columns:1fr}.build-choice p{min-height:0}.floor-card .floor-preview{width:66px;min-width:48px;height:85px}.floor-card .floor-number{display:none}.floor-card{flex-wrap:wrap}.floor-card .floor-copy{min-width:150px}.floor-card>.btn{margin-left:auto}.learning-scene{float:none;width:100%;height:135px;margin:0 0 8px}.learning-scene svg{height:115px}.party-readiness{grid-template-columns:1fr}.encounter-art>.frontier-illustration{height:235px}.bestiary-grid{grid-template-columns:1fr 1fr;gap:8px}.bestiary-card{padding:10px}.bestiary-card>img,.bestiary-card>.frontier-illustration{height:120px}.bestiary-card h3{font-size:13px}.bestiary-card p{font-size:11px}.bestiary-card small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.frontier-illustration{filter:none!important}}
