/* R11 uses the existing code-native book silhouette, portraits and pixel palette. */
#lobby[data-page="atlas"] #lobbyContent{background:repeating-linear-gradient(0deg,#101d2c 0 4px,#132334 4px 8px)}
#lobby[data-page="atlas"] .outer-panel{margin:0;border:0;padding:16px 12px 24px;background:none;min-height:100%}
.atlas-panel,.atlas-summary{--atlas-gold:#e1ba70;--atlas-ink:#122637;--atlas-line:#786a50;color:#f2e8d0;overflow-wrap:anywhere}
.atlas-heading,.atlas-card-head,.atlas-summary-heading{display:flex;align-items:center;gap:10px;min-width:0}
.atlas-heading{justify-content:space-between;margin-bottom:14px}.atlas-heading h1{font-size:26px;margin:4px 0}.atlas-heading p{font-size:13px;margin:0}.atlas-heading small,.atlas-summary small{font-size:12px;color:#cfc4a8;line-height:1.6}.atlas-heading>button{flex:none;width:42px;min-height:42px;margin:0;align-self:flex-start}
.atlas-steps{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;margin:0 0 12px;padding:0;border:1px solid #7e7259;background:#1b3140}.atlas-steps li{font-size:11px;text-align:center;padding:8px 2px;border-right:1px solid #5c5c50;white-space:nowrap}.atlas-steps li:last-child{border:0}.atlas-steps b{display:block;color:#edca80;font-size:17px}
.atlas-panel .atlas-rule,.atlas-selection p{font-size:12px;line-height:1.7;margin:8px 0}.atlas-rule{border-left:3px solid #e1ba70;padding-left:10px;color:#ded6c2}
.atlas-selection{border:2px solid #ad905a;background:#172d3b;box-shadow:inset 2px 2px #304754,inset -2px -2px #081825;margin:16px 0;padding:12px}.atlas-selection>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center}.atlas-selection strong{font-size:20px;color:#ffdd91}.atlas-selection>div>span{font-size:11px;color:#d2ccb8}
.atlas-slot-row{display:grid!important;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.atlas-slot{border:1px dashed #7b7867;padding:9px 4px;background:#10222f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:92px}.atlas-slot.filled{border-style:solid;border-color:#bd9855;background:#213844}.atlas-slot> b{font-size:28px;color:#6a7b7f}.atlas-slot small{font-size:12px;color:#e8dfc8;text-align:center}.atlas-slot .atlas-book-icon{width:40px;height:42px;flex-basis:42px}
.atlas-book-icon{position:relative;display:inline-flex;flex:none;width:48px;height:50px;align-items:center;justify-content:center;filter:drop-shadow(2px 3px 0 #050f17)}.atlas-book-icon img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.atlas-book-icon b{position:absolute;right:-2px;bottom:0;width:21px;height:21px;line-height:19px;background:#263c4c;border:1px solid #e8cf8e;color:#ecde9f;text-align:center;font-size:17px}.atlas-color-iceblade b{background:#25496a;color:#bcecff}.atlas-color-swordwall b{background:#5e382e;color:#ffce84}.atlas-color-sanctuary b{background:#365746;color:#c2f2a7}.atlas-color-frostraid b{background:#46355f;color:#e7c4ff}.atlas-color-fourfold b{background:#755c2c;color:#fff2b0}.atlas-color-bulwark b{background:#3c574d;color:#c7ecc0}.atlas-color-thunderweave b{background:#254e62;color:#a4edff}.atlas-color-alliance b{background:#793c52;color:#ffe3bd}
.atlas-section-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:18px 0 10px}.atlas-section-label h2{font-size:18px;margin:0}.atlas-section-label span{font-size:10px;color:#c5c5b2}.atlas-cards{display:grid;grid-template-columns:1fr;gap:14px}.atlas-card{border:1px solid #6f6a5a;border-left:4px solid #77694e;background:linear-gradient(120deg,#26394b,#142737);padding:12px;box-shadow:3px 3px #091723}.atlas-card.carried{border-color:#dfba6c;background:linear-gradient(120deg,#364439,#1c3038)}.atlas-card.locked{border-left-color:#4e626c}.atlas-card-head>div{flex:1;min-width:0}.atlas-card h3{font-size:18px;line-height:1.4;margin:0;color:#f3d28d}.atlas-card-head small{font-size:11px;color:#c7cbbd}.atlas-state{flex:none;font-size:11px;border:1px solid #817451;padding:3px 5px;color:#eacb8e;background:#12222b}.atlas-card .atlas-benefit{font-size:13px;line-height:1.65;color:#eee3cb;margin:10px 0}.atlas-members{display:flex;flex-wrap:wrap;gap:6px}.atlas-members>div{display:flex;align-items:center;gap:5px;background:#122532;padding:5px 6px;border:1px solid #496264;min-height:39px;max-width:100%}.atlas-members img{width:26px;height:26px;object-fit:contain;image-rendering:pixelated}.atlas-members span{font-size:12px;color:#dfebd7}.atlas-members small{display:block;font-size:10px;color:#a9b7b6}.atlas-members .missing{border-color:#a77858}.atlas-members .missing span{color:#efc6a6}.atlas-card .atlas-compatibility{font-size:11px;line-height:1.6;margin:9px 0}.atlas-source{border-top:1px solid #536067;padding-top:8px}.atlas-source small{font-size:11px;color:#c4c7b8;line-height:1.6}.atlas-source p{font-size:12px;line-height:1.6;margin:3px 0}.atlas-ranks{margin:10px 0;font-size:12px;border:1px solid #5d6157;padding:8px;background:#112532}.atlas-ranks summary{cursor:pointer;color:#dfc690}.atlas-ranks p{font-size:12px;line-height:1.65}.atlas-ranks p:last-child{margin-bottom:0}.atlas-ranks small{display:block;color:#b8c6bf;font-size:11px}.atlas-card button{font-size:13px;min-height:44px;margin:8px 0 0}.atlas-card button[aria-pressed="true"]{background:#46563b;border-color:#d9bd79;color:#fff1c4}
.atlas-plan-state.ready,.atlas-compatibility.ready{color:#bce0b0}.atlas-plan-state.blocked,.atlas-compatibility.blocked{color:#ffd2a8}.atlas-warning{border:1px solid #ac8059;background:#49372e;padding:10px;font-size:12px;line-height:1.7;color:#f7d6ad}.atlas-notice{border:1px solid #769464;background:#2a493b;padding:10px;font-size:12px;line-height:1.7;color:#d8edc9}.atlas-actions{position:sticky;bottom:0;margin:18px -4px -4px;padding:10px 4px max(6px,env(safe-area-inset-bottom));background:#101f2af5;border-top:2px solid #c5a568;box-shadow:0 -8px 16px #08172388;z-index:3}.atlas-actions p{font-size:11px;margin:0 4px 8px;color:#d4c8ae}.atlas-actions>div{display:grid;grid-template-columns:1fr 1.35fr;gap:7px}.atlas-actions button{font-size:12px;margin:0;padding:8px 5px;min-height:48px}.atlas-summary{padding:14px;margin:14px 0;border:2px solid #a78e5b;background:#1b2e3d}.atlas-summary h2{font-size:18px;margin:3px 0}.atlas-summary p{font-size:13px;line-height:1.6;margin:7px 0}.atlas-summary button{min-height:44px;font-size:13px;margin:9px 0 0}.atlas-confirm p{font-size:14px;line-height:1.8}.atlas-confirm h2{font-size:21px}.atlas-carried-state{display:block;border:1px solid #7e765b;padding:6px 8px;margin:8px 0;background:#162b38;color:#e8d6a7;font-size:12px;line-height:1.6}.atlas-run-snapshot{border:1px solid #b29659;background:#233c40;padding:9px;margin:8px 0;font-size:12px;line-height:1.7}.atlas-run-snapshot strong{display:block;color:#f5dca6}.atlas-repair{border:1px solid #c78c59;background:#47362c;padding:10px;font-size:13px;line-height:1.7}.atlas-repair button{font-size:12px;min-height:44px}.atlas-battle-rule{font-size:12px!important;line-height:1.7!important}
@media(min-width:680px){.atlas-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:374px){#lobby[data-page="atlas"] .outer-panel{padding:12px 9px 22px}.atlas-card{padding:10px}.atlas-card h3{font-size:17px}.atlas-card-head{gap:7px}.atlas-state{font-size:10px;padding:3px}.atlas-book-icon{width:43px;height:46px}.atlas-section-label{align-items:flex-start;flex-direction:column;gap:4px}.atlas-heading h1{font-size:25px}}

.atlas-unlock-note{margin:14px 0;padding:14px;background:linear-gradient(110deg,#394630,#1b383d);border:2px solid #d3b16a;color:#efe4c3;box-shadow:3px 3px #101c29}.atlas-unlock-note h3{font-size:18px;margin:7px 0;color:#ffe1a0}.atlas-unlock-note p{font-size:13px;line-height:1.7;margin:6px 0}.atlas-unlock-note small{font-size:12px;line-height:1.7;color:#d1d9bf}.atlas-unlock-note button{font-size:13px;min-height:44px;margin:10px 0 0}

/* v24 named recipe: same book silhouette, distinct cyan cover and linked-sentry seal. */
.atlas-color-sentryguard b{background:#174d59;color:#ffe4a1;border-color:#76e0d8}.named-member-face{width:26px;height:26px;vertical-align:middle;object-fit:contain;image-rendering:pixelated}.named-combo-result{border:1px solid #76b8b3;padding:12px;background:#183743}.named-combo-result small{line-height:1.6}.book-growth-card .plan-title h3{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.book-growth-card .atlas-book-icon{width:32px;height:36px}.atlas-members span{min-width:0;overflow-wrap:anywhere}
@media(max-width:420px){.atlas-card[data-recipe="sentryguard"] .atlas-members{display:grid;grid-template-columns:minmax(0,1fr)}.atlas-card-head{flex-wrap:wrap}.atlas-card-head .atlas-state{margin-left:auto}.atlas-selection>div:first-child{flex-wrap:wrap}.book-growth-card .plan-title{align-items:flex-start;flex-wrap:wrap}.named-combo-result{overflow-wrap:anywhere}}

/* v27 compact collectible tactical library */
#lobby[data-page="atlas"] #lobbyContent{background:#0b2930}
#lobby[data-page="atlas"] .outer-panel{padding:0 10px 16px}
.atlas-v27{max-width:820px;margin:auto}
.atlas-v27 .atlas-heading{margin:0 -10px;padding:18px 16px;min-height:100px;background:linear-gradient(90deg,#0a2930f5,#0a2930a8 65%,#0a29302c),url('assets/ui-library-v9.webp') center 35%/cover;border-bottom:1px solid #897446;box-sizing:border-box}
.atlas-v27 .atlas-heading h1{font-size:27px;letter-spacing:2px;color:#fff0bd;margin:3px 0}
.atlas-v27 .atlas-heading small{color:#dec888;font-size:11px}.atlas-v27 .atlas-heading p{font-size:12px;color:#cbd6ca;margin:6px 0 0}.atlas-v27 .atlas-heading>button{width:44px;min-height:44px;background:#102f38e8}
.atlas-v27 .atlas-future{display:flex;align-items:center;gap:14px;padding:9px 4px;border-bottom:1px solid #355359;color:#b5c6ca;min-height:31px}.atlas-v27 .atlas-future>span{font-size:13px;font-weight:700}.atlas-v27 .atlas-future small{font-size:10px;font-weight:400;color:#93a9b2}.atlas-v27 .atlas-future>small{margin-left:auto}
.atlas-v27 .atlas-how{padding:0;margin:0;border:0;background:none}.atlas-v27 .atlas-how>summary{padding:9px 4px;font-size:12px;min-height:36px;box-sizing:border-box;cursor:pointer;color:#a6c2bd}.atlas-v27 .atlas-how .atlas-steps{margin:5px 0 10px}
.atlas-v27 .atlas-selection{margin:0;padding:10px 8px;background:#17373d;border:1px solid #697754;box-shadow:none}.atlas-v27 .atlas-selection strong{font-size:16px;color:#f5dda0}.atlas-v27 .atlas-selection>div>span{font-size:10px}.atlas-v27 .atlas-selection .atlas-carry-rule{font-size:11px;margin:5px 0;color:#c6d1c2}
.atlas-v27 .atlas-slot-row{margin:8px 0 5px;gap:6px}.atlas-v27 .atlas-slot{min-height:66px;padding:5px 2px;gap:1px;border-color:#5a7471;background:#102d34}.atlas-v27 .atlas-slot.filled{border-color:#a68d56;background:#213f40}.atlas-v27 .atlas-slot .atlas-book-icon{height:35px;width:34px;flex-basis:35px}.atlas-v27 .atlas-slot .atlas-book-icon b{width:14px;height:14px;font-size:11px;line-height:13px}.atlas-v27 .atlas-slot small{font-size:11px;line-height:1.3}.atlas-v27 .atlas-plan-state{font-size:11px;line-height:1.5;margin:6px 0 0}
.atlas-v27 .atlas-actions{position:sticky;top:0;bottom:auto;margin:0 -2px;padding:8px 2px;background:#0b2930f5;border:0;box-shadow:0 4px 0 #071d2466;z-index:4}.atlas-v27 .atlas-actions p{font-size:10px;margin:0 0 5px;color:#c1ccba}.atlas-v27 .atlas-actions>div{grid-template-columns:1fr 1.3fr;gap:6px}.atlas-v27 .atlas-actions button{font-size:12px;min-height:44px;padding:7px 4px;box-shadow:none}
.atlas-v27 .atlas-section-label{margin:13px 1px 8px;align-items:center;flex-direction:row}.atlas-v27 .atlas-section-label h2{font-size:16px;color:#e9dcad}.atlas-v27 .atlas-section-label span{font-size:9px;max-width:150px;text-align:right}
.atlas-v27 .atlas-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.atlas-v27 .atlas-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:10px 8px 8px;background:#14353b;border:1px solid #426064;box-shadow:none;border-top:3px solid #75836a}.atlas-v27 .atlas-card.carried{background:#25403b;border-color:#b59d62;border-top-color:#eed18a}.atlas-v27 .atlas-card.locked{background:#142e36;border-color:#354f58;opacity:1}
.atlas-v27 .atlas-card-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:5px;align-items:center}.atlas-v27 .atlas-card-head .atlas-book-icon{width:38px;height:44px}.atlas-v27 .atlas-card-head .atlas-book-icon b{width:16px;height:16px;font-size:12px;line-height:15px}.atlas-v27 .atlas-card h3{font-size:15px;line-height:1.35;margin:0;color:#f3dcaa}.atlas-v27 .atlas-card-head small{font-size:9px;line-height:1.4;display:block;color:#b2c4bd}.atlas-v27 .atlas-state{grid-column:1/-1;justify-self:start;border:0;margin:4px 0 0!important;padding:2px 4px;font-size:10px;color:#e6d194;background:#0a242b}
.atlas-v27 .atlas-card .atlas-benefit{font-size:11px;line-height:1.55;margin:8px 0;min-height:52px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.atlas-v27 .atlas-card-detail{border-top:1px solid #456164;margin-top:0}.atlas-v27 .atlas-card-detail>summary{font-size:10px;line-height:1.5;cursor:pointer;color:#b8cbbf;padding:9px 0;min-height:36px;box-sizing:border-box}.atlas-v27 .atlas-full-benefit{font-size:11px;line-height:1.65;margin:4px 0 10px}
.atlas-v27 .atlas-members{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.atlas-v27 .atlas-members>div{padding:4px;gap:4px;min-height:32px;background:#0d2830;border:0}.atlas-v27 .atlas-members img{width:24px;height:24px;flex:none}.atlas-v27 .atlas-members span{font-size:10px}.atlas-v27 .atlas-members small{font-size:9px}
.atlas-v27 .atlas-card .atlas-compatibility,.atlas-v27 .atlas-source p,.atlas-v27 .atlas-rule{font-size:10px;line-height:1.65}.atlas-v27 .atlas-source small{font-size:10px}.atlas-v27 .atlas-ranks{border:0;border-top:1px solid #496164;padding:8px 0;background:none}.atlas-v27 .atlas-ranks summary,.atlas-v27 .atlas-ranks p,.atlas-v27 .atlas-ranks small{font-size:10px}
.atlas-v27 .atlas-card>button{font-size:11px;line-height:1.4;min-height:44px;padding:7px 3px;margin:6px 0 0;box-shadow:none;border-width:1px}.atlas-v27 .atlas-warning,.atlas-v27 .atlas-notice{margin:8px 0;font-size:11px}
@media(max-width:374px){.atlas-v27 .atlas-card-head{grid-template-columns:1fr}.atlas-v27 .atlas-card-head>.atlas-book-icon{margin:auto}.atlas-v27 .atlas-card-head>div{min-height:43px}.atlas-v27 .atlas-card h3{font-size:14px}.atlas-v27 .atlas-card{padding:8px 6px}.atlas-v27 .atlas-section-label span{max-width:125px}}
@media(min-width:680px){.atlas-v27 .atlas-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.atlas-v27 .atlas-heading{min-height:126px}.atlas-v27 .atlas-slot-row{max-width:440px;margin-left:auto;margin-right:auto}}
@media(prefers-reduced-motion:no-preference){.atlas-v27 .atlas-card{animation:atlas-enter .18s ease-out both}.atlas-v27 .atlas-card:nth-child(2n){animation-delay:.025s}@keyframes atlas-enter{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}}

.atlas-v27 .atlas-face-strip{display:flex;gap:2px;min-height:26px;align-items:center;margin-bottom:5px}.atlas-v27 .atlas-face-strip img{width:25px;height:25px;object-fit:contain;image-rendering:pixelated}.atlas-v27 .atlas-face-strip span{width:24px;height:24px;line-height:24px;text-align:center;color:#c4b992;background:#193039}.atlas-v27 .atlas-card .atlas-benefit{font-size:12px;min-height:56px}.atlas-v27 .atlas-card-detail>summary{min-height:44px;font-size:11px;padding:13px 0}
.atlas-v27 .atlas-face-strip{flex-wrap:wrap}.atlas-v27 .atlas-card>button{font-size:12px}.atlas-v27 .atlas-card-detail>summary{font-size:12px}.atlas-v27 .atlas-full-benefit,.atlas-v27 .atlas-source p,.atlas-v27 .atlas-ranks p{font-size:12px}
