/* Strictly scoped V291. No board, voice, shop/economy or global selectors. */
.ecs291{box-sizing:border-box;color:#f2e6ce;font:14px/1.45 system-ui,sans-serif;min-width:0;max-width:100%;text-align:left}
.ecs291 *{box-sizing:border-box}
.ecs291 h2,.ecs291 h3{color:#f8e3b6;margin:0 0 10px;font-family:Georgia,serif;line-height:1.25}
.ecs291 h3{font-size:19px}.ecs291 h2{font-size:24px}
.ecs291 p{margin:8px 0;color:#c4cfd8;font-size:12px}
.ecs291 button{appearance:none;cursor:pointer;border:1px solid #a68d5b;border-radius:7px;background:#192936;color:#fff0d0;padding:10px 12px;font:600 13px/1.3 system-ui,sans-serif;min-height:44px;white-space:normal;text-transform:none;letter-spacing:normal;max-width:100%}
.ecs291 button:hover{background:#273d4c}.ecs291 button:disabled{opacity:.55;cursor:wait}.ecs291 button:focus-visible,.ecs291 summary:focus-visible{outline:3px solid #b6e9fa;outline-offset:3px}
.ecs291-shop{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:12px;margin:16px 0}
.ecs291-progress,.ecs291-equipped{min-width:0;padding:16px;border:1px solid #8c785345;border-radius:12px;background:#0d1a24}
.ecs291-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.ecs291-goals strong{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;font-size:13px}.ecs291-goals strong span{color:#e9cc83}
.ecs291 progress{appearance:auto;width:100%;height:9px;accent-color:#debf77;margin:7px 0;display:block}
.ecs291 small{display:block;color:#b9c9d3;font-size:12px;overflow-wrap:anywhere}
.ecs291-signature{display:inline-flex;align-items:center;gap:5px;border:1px solid #d9bc7270;background:#292a25;padding:4px 8px;border-radius:5px;color:#f4d588;font-size:12px;font-weight:700;width:fit-content;max-width:100%;margin:5px 0}
.ecs291-tier-2{color:#bce4ff;border-color:#78b9df}.ecs291-tier-3{color:#e6c5ff;border-color:#c398df}
.ecs291-composition{display:grid;justify-items:center;gap:8px;min-width:0}
.ecs291-stage{position:relative;isolation:isolate;width:min(100%,310px);aspect-ratio:1;overflow:hidden;background:#101e29;border-radius:10px}
.ecs291-stage>img{position:absolute;display:block;object-fit:contain;border:0;border-radius:0;margin:0;max-width:none;box-shadow:none;filter:none;pointer-events:none}
.ecs291-stage>.ecs291-frame{inset:0;width:100%;height:100%;z-index:0}.ecs291-stage>.ecs291-character{inset:6% 20%;width:60%;height:88%;z-index:1}
.ecs291-identity{min-width:0;display:flex;align-items:center;flex-direction:column;gap:2px;text-align:center;overflow-wrap:anywhere}
.ecs291-identity>strong{color:#fff0cf;font-size:18px;line-height:1.25}.ecs291-identity>span:not(.ecs291-signature){font-size:13px;color:#dccba7}
.ecs291-compact{grid-template-columns:90px minmax(0,1fr);justify-items:stretch;align-items:center;margin-bottom:10px}.ecs291-compact .ecs291-stage{width:90px}.ecs291-compact .ecs291-identity{align-items:flex-start;text-align:left}.ecs291-compact .ecs291-identity>strong{font-size:15px}
.ecs291-equipped>button{width:100%;margin:0 0 8px}
.ecs291-room{position:relative;clear:both;margin:12px 0;padding:10px 12px;border:1px solid #9e895748;border-radius:10px;background:#0b1822;max-height:50vh;overflow:auto;z-index:0}
.ecs291-room>summary{cursor:pointer;font-size:14px;font-weight:700;color:#f3dba5;padding:4px;min-height:30px}
.ecs291-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:10px;margin-top:8px}
.ecs291-member{padding:8px;border:1px solid #405365;border-radius:8px;min-width:0}.ecs291-member>button{width:100%}.ecs291-member .ecs291-compact{grid-template-columns:66px minmax(0,1fr)}.ecs291-member .ecs291-stage{width:66px}
.ecs291-dialog{position:fixed;inset:0;width:min(94vw,480px);max-height:92dvh;overflow:auto;margin:auto;padding:22px;border:1px solid #bfa366;border-radius:14px;background:#0b1722;box-shadow:0 24px 80px #0009;z-index:1000}
.ecs291-dialog::backdrop{background:#02070de3}.ecs291-dialog .ecs291-close{display:block;margin:0 0 10px auto}.ecs291-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.ecs291-dialog [data-ecs-status]{min-height:20px}
@media(max-width:680px){.ecs291-shop{grid-template-columns:1fr}.ecs291-progress,.ecs291-equipped{padding:12px}.ecs291-goals{gap:8px}.ecs291-goals small{font-size:11px}.ecs291-compact{grid-template-columns:78px minmax(0,1fr)}.ecs291-compact .ecs291-stage{width:78px}.ecs291-dialog{padding:16px}.ecs291-actions{grid-template-columns:1fr}.ecs291-room{max-height:44vh}}
