/* THE ENCHANTED ATLAS · Phase 1 + Phase 2 exploration engine */
#enchantedAtlasOverlay{--atlas-ink:#f8f1ff;--atlas-muted:#d5c9e9;--atlas-lav:#c6a5ff;--atlas-teal:#80e8d4;--atlas-gold:#f5d58c;position:fixed;inset:0;z-index:9998;overflow:auto;background:#100d25;color:var(--atlas-ink);font-family:inherit}
#enchantedAtlasOverlay[hidden]{display:none!important}
#enchantedAtlasOverlay *{box-sizing:border-box}
.atlas-shell{min-height:100%;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 18%,rgba(112,79,169,.36),transparent 38%),linear-gradient(160deg,#17112f 0%,#11152e 52%,#0b182a 100%)}
.atlas-shell:before,.atlas-shell:after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1}
.atlas-shell:before{opacity:.55;background-image:radial-gradient(2px 2px at 8% 18%,#fff 45%,transparent 55%),radial-gradient(1px 1px at 24% 68%,#d9c4ff 45%,transparent 55%),radial-gradient(2px 2px at 72% 24%,#fff 45%,transparent 55%),radial-gradient(1px 1px at 88% 72%,#b9f4eb 45%,transparent 55%),radial-gradient(1px 1px at 52% 9%,#fff 45%,transparent 55%);background-size:240px 220px,310px 270px,280px 240px,330px 300px,190px 190px;animation:atlasStarDrift 36s linear infinite}
.atlas-shell:after{background:radial-gradient(ellipse at 50% 100%,rgba(67,117,119,.14),transparent 42%)}
.atlas-topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px clamp(14px,4vw,42px);background:rgba(13,11,32,.76);border-bottom:1px solid rgba(220,196,255,.14);backdrop-filter:blur(16px)}
.atlas-brand{display:flex;align-items:center;gap:10px;font-size:.78rem;letter-spacing:.18em;font-weight:900}.atlas-brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#fff2c9;background:radial-gradient(circle,#8e6ac3,#332451 70%);box-shadow:0 0 22px rgba(196,155,255,.38);font-size:19px}
.atlas-close{border:1px solid rgba(224,207,255,.24);border-radius:999px;padding:9px 14px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}
.atlas-screen{width:min(1120px,100%);margin:0 auto;padding:clamp(22px,5vw,58px) clamp(16px,4vw,36px) 56px}
.atlas-kicker{color:#d8c0ff;font-size:.68rem;font-weight:900;letter-spacing:.22em;text-transform:uppercase}
.atlas-entrance{text-align:center;position:relative;min-height:calc(100svh - 64px);display:flex;flex-direction:column;align-items:center;justify-content:center}
.atlas-entrance h1{font-family:Georgia,serif;font-size:clamp(2.6rem,8vw,6.4rem);line-height:.98;letter-spacing:-.055em;margin:14px 0 12px;text-shadow:0 5px 35px rgba(184,139,255,.4)}
.atlas-entrance h1 span{display:block;color:#e7d3ff;font-size:.42em;letter-spacing:.22em;text-transform:uppercase;margin-bottom:14px}
.atlas-lede{max-width:590px;margin:0 auto;color:var(--atlas-muted);font-size:clamp(.95rem,2vw,1.12rem);line-height:1.75}
.atlas-art-stage{width:min(820px,100%);height:clamp(250px,42vw,420px);position:relative;margin:18px auto 12px;overflow:hidden;border:1px solid rgba(218,190,255,.2);border-radius:28px;background:radial-gradient(ellipse at 50% 70%,rgba(91,180,174,.26),transparent 34%),radial-gradient(ellipse at 50% 25%,rgba(160,112,219,.34),transparent 45%),linear-gradient(180deg,#1c1b43 0%,#233b58 58%,#16283a 100%);box-shadow:0 25px 90px rgba(0,0,0,.32),inset 0 0 55px rgba(209,179,255,.09)}
.atlas-art-moon{position:absolute;width:clamp(70px,12vw,118px);height:clamp(70px,12vw,118px);top:12%;left:17%;border-radius:50%;background:radial-gradient(circle at 35% 32%,#fff9df,#e6c9ff 48%,#8f80b8 76%);box-shadow:0 0 30px rgba(231,209,255,.45),0 0 90px rgba(190,156,255,.25)}
.atlas-art-island{position:absolute;bottom:18%;left:50%;transform:translateX(-50%);width:68%;height:26%;border-radius:50% 50% 38% 38%;background:linear-gradient(180deg,#507c76,#263e4c 55%,#1a2639);box-shadow:0 18px 35px rgba(0,0,0,.4),0 0 32px rgba(125,231,210,.18)}
.atlas-art-island:before{content:"";position:absolute;inset:-18% 12% 50%;border-radius:50%;background:linear-gradient(180deg,#79aa8e,#385b68);filter:blur(1px)}
.atlas-art-castle{position:absolute;bottom:37%;left:50%;transform:translateX(-50%);width:28%;height:36%;background:linear-gradient(90deg,#554d79,#a38bb9 48%,#504b78);clip-path:polygon(0 100%,0 38%,15% 38%,15% 0,27% 0,27% 38%,38% 38%,38% 18%,48% 18%,48% 38%,63% 38%,63% 8%,76% 8%,76% 38%,100% 38%,100% 100%);filter:drop-shadow(0 0 18px rgba(211,181,255,.42))}
.atlas-art-tree{position:absolute;bottom:36%;left:26%;width:15%;height:35%;border-radius:50% 50% 20% 20%;background:radial-gradient(ellipse at 50% 24%,#c8f5d8,#68bba9 42%,#376c75 75%);filter:drop-shadow(0 0 24px rgba(120,242,211,.55))}
.atlas-art-tree:after{content:"";position:absolute;width:16%;height:62%;bottom:-42%;left:43%;background:linear-gradient(90deg,#59466a,#b69a9d,#5d496a);border-radius:40%}
.atlas-art-water{position:absolute;bottom:0;left:50%;height:22%;width:30%;transform:translateX(-50%);background:linear-gradient(180deg,rgba(152,231,222,.65),rgba(88,149,180,.05));clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);filter:blur(3px)}
.atlas-art-portal{position:absolute;bottom:12%;right:13%;width:70px;height:100px;border:3px solid rgba(233,211,255,.85);border-radius:50% 50% 8px 8px;box-shadow:0 0 16px #cba7ff,0 0 42px rgba(177,137,255,.7),inset 0 0 20px rgba(194,151,255,.55);animation:atlasPortalPulse 3s ease-in-out infinite}
.atlas-art-portal:after{content:"";position:absolute;inset:8px;border-radius:50% 50% 5px 5px;background:radial-gradient(ellipse,rgba(180,247,230,.45),rgba(157,111,223,.16) 58%,transparent 72%)}
.atlas-floating{position:absolute;color:#f5e2b2;text-shadow:0 0 14px #d8b9ff;animation:atlasFloat 5s ease-in-out infinite}
.atlas-floating.f1{top:18%;left:44%;font-size:24px}.atlas-floating.f2{top:43%;right:24%;font-size:16px;animation-delay:-2s}.atlas-floating.f3{top:16%;right:17%;font-size:20px;animation-delay:-3s}
.atlas-entrance-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.atlas-primary,.atlas-secondary{min-height:48px;padding:13px 22px;border-radius:999px;font:inherit;font-weight:900;cursor:pointer;transition:transform .2s,box-shadow .2s}
.atlas-primary{border:1px solid rgba(255,239,197,.8);color:#241735;background:linear-gradient(135deg,#f6dfaa,#c7a6ef 58%,#91e4d1);box-shadow:0 8px 30px rgba(191,157,245,.3)}
.atlas-secondary{border:1px solid rgba(223,205,255,.3);color:#f8f1ff;background:rgba(255,255,255,.07)}
.atlas-primary:hover,.atlas-secondary:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(183,145,245,.25)}
.atlas-footnote{display:block;margin-top:18px;color:#a99cbd;font-size:.72rem;letter-spacing:.08em}
.atlas-hub-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}
.atlas-hub-head h2{font-family:Georgia,serif;font-size:clamp(2rem,5vw,3.6rem);margin:7px 0}
.atlas-traveler-card{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid rgba(222,201,255,.2);border-radius:18px;background:rgba(255,255,255,.06)}
.atlas-traveler-emblem{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#a98ad7,#416e77);font-size:21px}
.atlas-traveler-card small{display:block;color:#bcb0d0;font-size:.65rem;letter-spacing:.12em}.atlas-traveler-card strong{font-size:.95rem}
.atlas-sanctuary-scene{position:relative;min-height:340px;overflow:hidden;border:1px solid rgba(223,203,255,.22);border-radius:26px;background:radial-gradient(ellipse at 50% 65%,rgba(130,231,200,.22),transparent 30%),radial-gradient(ellipse at 50% 25%,rgba(168,128,222,.3),transparent 42%),linear-gradient(155deg,#22224b,#244d5b 70%,#1c3040);box-shadow:inset 0 0 55px rgba(215,194,255,.1)}
.atlas-sanctuary-scene:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 80%,rgba(130,201,166,.28),transparent 38%),linear-gradient(0deg,rgba(9,22,31,.55),transparent 52%)}
.atlas-hub-crystal{position:absolute;left:50%;top:35%;transform:translate(-50%,-50%);width:100px;height:135px;clip-path:polygon(50% 0,88% 30%,75% 88%,50% 100%,20% 82%,8% 28%);background:linear-gradient(110deg,#6bcdbf,#e7d7ff 42%,#a47cdb 70%,#66d9cb);filter:drop-shadow(0 0 25px rgba(173,235,226,.8));animation:atlasCrystalBreath 4s ease-in-out infinite}
.atlas-hub-ring{position:absolute;left:50%;top:48%;width:230px;height:65px;transform:translate(-50%,-50%);border:2px solid rgba(211,190,255,.52);border-radius:50%;box-shadow:0 0 22px rgba(170,142,255,.32)}
.atlas-hub-path{position:absolute;left:50%;bottom:-7%;width:28%;height:48%;transform:translateX(-50%);background:linear-gradient(180deg,rgba(182,162,227,.22),rgba(174,219,205,.05));clip-path:polygon(38% 0,62% 0,100% 100%,0 100%)}
.atlas-hub-island{position:absolute;left:50%;bottom:-13%;width:88%;height:38%;transform:translateX(-50%);border-radius:50% 50% 0 0;background:linear-gradient(180deg,#668f83,#304d58 65%,#182b3b);box-shadow:0 -8px 30px rgba(126,218,197,.2)}
.atlas-hub-island:before{content:"";position:absolute;left:12%;right:12%;top:-12%;height:28%;border-radius:50%;background:#86aa91}
.atlas-hub-label{position:absolute;left:50%;top:9%;transform:translateX(-50%);text-align:center;color:#f5e8ff;text-shadow:0 2px 10px #111}
.atlas-hub-label strong{display:block;font-family:Georgia,serif;font-size:clamp(1.3rem,3vw,2rem)}
.atlas-hub-label small{font-size:.65rem;letter-spacing:.2em;color:#d5c7e8}
.atlas-realm-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:28px 0 12px}
.atlas-realm-heading h3{margin:3px 0;font-family:Georgia,serif;font-size:1.5rem}
.atlas-realm-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.atlas-realm-card{position:relative;min-width:0;min-height:170px;padding:15px 10px;border:1px solid rgba(223,204,255,.2);border-radius:18px;color:#f8f1ff;text-align:center;background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.035));cursor:pointer;overflow:hidden;transition:transform .2s,border-color .2s,background .2s}
.atlas-realm-card:before{content:"";position:absolute;inset:auto -20% -55%;height:110px;border-radius:50%;background:var(--realm-glow,rgba(181,146,255,.22));filter:blur(22px)}
.atlas-realm-card:hover,.atlas-realm-card:focus-visible{transform:translateY(-4px);border-color:rgba(232,211,255,.65);outline:none}
.atlas-realm-icon{position:relative;display:grid;place-items:center;width:58px;height:58px;margin:0 auto 10px;border-radius:50%;font-size:29px;background:radial-gradient(circle,rgba(255,255,255,.2),rgba(255,255,255,.04));box-shadow:0 0 25px var(--realm-glow,rgba(181,146,255,.25))}
.atlas-realm-card strong,.atlas-realm-card small,.atlas-realm-status{position:relative;display:block}
.atlas-realm-card strong{font-family:Georgia,serif;font-size:.98rem}.atlas-realm-card small{margin-top:5px;color:#c9bfdc;font-size:.69rem;line-height:1.4}.atlas-realm-status{margin-top:9px;color:#f2d99d;font-size:.58rem;font-weight:900;letter-spacing:.13em}
.atlas-realm-card.fairy{--realm-glow:rgba(132,231,184,.38)}.atlas-realm-card.moon{--realm-glow:rgba(179,143,255,.34)}.atlas-realm-card.abyss{--realm-glow:rgba(91,199,231,.36)}.atlas-realm-card.dragon{--realm-glow:rgba(240,146,103,.35)}.atlas-realm-card.celestial{--realm-glow:rgba(245,215,133,.34)}
.atlas-notice{min-height:56px;margin-top:14px;padding:13px 16px;border:1px solid rgba(220,200,255,.16);border-radius:14px;background:rgba(255,255,255,.045);color:#d9cdec;font-size:.85rem;line-height:1.55}
.atlas-notice strong{color:#fff0c6}.atlas-hub-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}
@keyframes atlasStarDrift{to{background-position:240px 220px,-310px 270px,280px -240px,-330px 300px,190px -190px}}
@keyframes atlasFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-13px)}}
@keyframes atlasPortalPulse{0%,100%{box-shadow:0 0 16px #cba7ff,0 0 42px rgba(177,137,255,.7),inset 0 0 20px rgba(194,151,255,.55)}50%{box-shadow:0 0 24px #d9c3ff,0 0 65px rgba(177,137,255,.9),inset 0 0 30px rgba(194,151,255,.8)}}
@keyframes atlasCrystalBreath{0%,100%{filter:drop-shadow(0 0 18px rgba(173,235,226,.55));transform:translate(-50%,-50%) scale(.97)}50%{filter:drop-shadow(0 0 34px rgba(173,235,226,.95));transform:translate(-50%,-50%) scale(1.04)}}
@media(max-width:760px){.atlas-realm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-realm-card:last-child{grid-column:1/-1}.atlas-hub-head{align-items:flex-start;flex-direction:column}.atlas-sanctuary-scene{min-height:300px}.atlas-hub-crystal{width:78px;height:108px}}
@media(max-width:480px){.atlas-screen{padding:20px 13px 34px}.atlas-topbar{padding:10px 12px}.atlas-brand{font-size:.66rem}.atlas-art-stage{height:270px;border-radius:20px}.atlas-art-island{width:84%}.atlas-art-castle{width:35%}.atlas-art-tree{left:14%;width:18%}.atlas-art-portal{right:8%;width:54px;height:82px}.atlas-entrance-actions{width:100%;flex-direction:column}.atlas-primary,.atlas-secondary{width:100%}.atlas-traveler-card{width:100%}.atlas-realm-grid{gap:8px}.atlas-realm-card{min-height:150px;padding:12px 7px}.atlas-realm-icon{width:50px;height:50px;font-size:25px}.atlas-hub-actions{flex-direction:column-reverse}.atlas-hub-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){#enchantedAtlasOverlay *,#enchantedAtlasOverlay *:before,#enchantedAtlasOverlay *:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
/* PHASE 2 · TOP-DOWN EXPLORATION */
.atlas-game-wrap{margin:18px 0 28px;padding:clamp(12px,2.5vw,22px);border:1px solid rgba(223,203,255,.22);border-radius:24px;background:linear-gradient(145deg,rgba(29,30,61,.92),rgba(21,48,58,.9));box-shadow:0 18px 55px rgba(0,0,0,.2)}
.atlas-game-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.atlas-game-heading strong{display:block;font-family:Georgia,serif;font-size:1.35rem;color:#fff0cf}
.atlas-game-heading small{display:block;margin-top:4px;color:#c9bfdc;font-size:.75rem;line-height:1.4}
.atlas-discovery-count{white-space:nowrap;border:1px solid rgba(238,214,169,.3);border-radius:999px;padding:8px 11px;color:#f3dba8;font-size:.7rem;font-weight:900}
.atlas-game-frame{position:relative;overflow:hidden;border:1px solid rgba(211,194,255,.24);border-radius:18px;background:#1d3045;box-shadow:inset 0 0 35px rgba(191,165,255,.15)}
#atlasGameCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:pan-y}
.atlas-game-prompt{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:9px 13px;border:1px solid rgba(255,240,207,.3);border-radius:999px;background:rgba(15,19,39,.82);color:#fff0cf;font-size:.76rem;font-weight:800;backdrop-filter:blur(10px)}
.atlas-game-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}
.atlas-dpad{display:grid;justify-items:center;gap:5px;touch-action:none}.atlas-dpad>div{display:flex;gap:5px}
.atlas-dpad button{width:42px;height:38px;border:1px solid rgba(224,205,255,.3);border-radius:11px;background:rgba(255,255,255,.09);color:#fff;font-size:15px;font-weight:900;touch-action:none;user-select:none}
.atlas-dpad button:active{background:rgba(181,149,239,.42);transform:scale(.96)}
.atlas-interact{min-height:48px;padding:12px 22px;border:1px solid rgba(255,238,194,.8);border-radius:999px;background:linear-gradient(135deg,#f4dda9,#c4a3e8 58%,#8ddfce);color:#241735;font:inherit;font-weight:1000;letter-spacing:.06em;box-shadow:0 7px 24px rgba(193,158,245,.2)}
.atlas-interact:disabled{opacity:.48;filter:saturate(.5)}
.atlas-control-hint{color:#bdb1d1;font-size:.68rem;text-align:right}
.atlas-discovery-panel{margin-top:14px;padding:16px 18px;border:1px solid rgba(230,209,255,.25);border-radius:16px;background:rgba(11,17,37,.88);box-shadow:0 12px 30px rgba(0,0,0,.18)}
.atlas-discovery-panel[hidden]{display:none}.atlas-discovery-panel>div{display:flex;justify-content:space-between;align-items:center}
.atlas-panel-kicker{color:#d8bdff;font-size:.62rem;font-weight:900;letter-spacing:.18em}
#atlasPanelClose{border:0;background:transparent;color:#e7dafa;font-size:18px;padding:4px 8px}
.atlas-discovery-panel h3{margin:8px 0;color:#fff0cf;font-family:Georgia,serif;font-size:1.45rem}
.atlas-discovery-panel p{margin:0;color:#d5c9e9;font-size:.9rem;line-height:1.65}
.atlas-discovery-panel small{display:block;margin-top:12px;color:#f0d59c;font-size:.68rem;font-weight:900;letter-spacing:.08em}
@media(max-width:600px){.atlas-game-wrap{padding:10px;border-radius:18px}.atlas-game-heading{align-items:flex-start;flex-direction:column}.atlas-game-heading strong{font-size:1.2rem}.atlas-game-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px}.atlas-dpad{grid-row:span 2}.atlas-dpad button{width:48px;height:42px}.atlas-interact{width:100%;align-self:center;padding:12px 8px;font-size:.78rem}.atlas-control-hint{grid-column:2;text-align:center;font-size:.6rem}.atlas-game-prompt{font-size:.68rem;left:7px;bottom:7px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.atlas-game-wrap *{scroll-behavior:auto!important;transition:none!important}}

/* THE FAIRYWILDS · Realm exploration presentation */
.atlas-realm-screen{padding:clamp(14px,3vw,28px);margin:0 0 24px;border:1px solid rgba(203,242,190,.2);border-radius:25px;background:radial-gradient(ellipse at 50% 0%,rgba(111,190,130,.18),transparent 42%),linear-gradient(155deg,rgba(19,57,48,.96),rgba(17,42,48,.97));box-shadow:0 20px 55px rgba(0,0,0,.22)}
.atlas-realm-screen[hidden]{display:none!important}
.atlas-realm-top{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin-bottom:16px}
.atlas-realm-top>div>span{font-size:.62rem;font-weight:900;letter-spacing:.18em;color:#b9e7ae}
.atlas-realm-top h2{margin:5px 0 3px;font-family:Georgia,serif;font-size:clamp(1.65rem,4vw,2.6rem);color:#f3f6d9}
.atlas-realm-top p{margin:0;color:#c6d9c2;font-size:.82rem}
.atlas-realm-progress{white-space:nowrap;padding:9px 12px;border:1px solid rgba(223,245,181,.28);border-radius:999px;color:#f0e4a8;font-size:.72rem;font-weight:900}
.atlas-realm-story{margin:12px 0 16px;padding:13px 16px;border-left:3px solid #b5d99b;border-radius:0 13px 13px 0;background:rgba(223,244,202,.07)}
.atlas-realm-story strong{font-family:Georgia,serif;color:#f1e9bf;font-size:1rem}
.atlas-realm-story p{margin:5px 0 0;color:#d0dfc8;font-size:.84rem;line-height:1.55}
.atlas-realm-canvas-wrap{position:relative;overflow:hidden;border:1px solid rgba(207,241,191,.25);border-radius:19px;background:#173e3d;box-shadow:inset 0 0 45px rgba(190,255,185,.08)}
#fairyCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:pan-y}
.atlas-realm-screen .atlas-game-bottom{margin-top:13px}
.atlas-realm-screen .atlas-dpad button{border-color:rgba(207,239,186,.3);background:rgba(210,242,197,.09)}
.atlas-realm-screen .atlas-interact{background:linear-gradient(135deg,#f1edb2,#b7e0a6 55%,#92d7c6);border-color:#e8f2c1}
.atlas-realm-footer{display:flex;justify-content:space-between;gap:12px;margin-top:17px;padding-top:12px;border-top:1px solid rgba(215,241,200,.14);color:#b9d6b5;font-size:.63rem;font-weight:900;letter-spacing:.12em}
.atlas-realm-footer b{color:#f2e5a8}
@media(max-width:650px){
 .atlas-realm-screen{padding:11px;border-radius:18px}
 .atlas-realm-top{grid-template-columns:1fr auto;gap:10px}
 .atlas-realm-top>.atlas-secondary{grid-column:1/-1;justify-self:start}
 .atlas-realm-top>div{grid-column:1;grid-row:2}
 .atlas-realm-progress{grid-column:2;grid-row:2}
 .atlas-realm-story{padding:11px 12px}
 .atlas-realm-footer{flex-direction:column;gap:6px;font-size:.57rem}
}

/* FAIRYWILDS VISUAL POLISH · storybook lighting, depth and responsive framing */
.atlas-realm-screen{background:radial-gradient(ellipse at 12% 18%,rgba(143,211,125,.16),transparent 34%),radial-gradient(ellipse at 88% 72%,rgba(74,177,157,.12),transparent 38%),linear-gradient(155deg,rgba(13,48,42,.98),rgba(12,34,42,.98));border-color:rgba(208,245,178,.3);box-shadow:0 24px 70px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.06)}
.atlas-realm-canvas-wrap{border-color:rgba(214,244,185,.4);box-shadow:0 12px 36px rgba(0,0,0,.28),inset 0 0 55px rgba(182,255,193,.12),0 0 26px rgba(110,203,151,.09)}
#fairyCanvas{filter:saturate(1.08) contrast(1.035)}
.atlas-realm-story{border-left-color:#d5e99c;background:linear-gradient(110deg,rgba(211,239,176,.11),rgba(167,225,194,.035));box-shadow:inset 0 1px rgba(255,255,255,.04)}
.atlas-realm-progress{background:rgba(225,239,178,.07);box-shadow:0 0 20px rgba(204,230,142,.08)}
.atlas-realm-screen .atlas-dpad button{box-shadow:inset 0 1px rgba(255,255,255,.1),0 5px 14px rgba(0,0,0,.16);transition:transform .15s,background .15s,border-color .15s}
.atlas-realm-screen .atlas-dpad button:active{background:rgba(201,238,159,.24);border-color:rgba(231,250,191,.7)}
.atlas-realm-screen .atlas-interact{box-shadow:0 8px 24px rgba(150,213,147,.2),inset 0 1px rgba(255,255,255,.55);text-shadow:0 1px rgba(255,255,255,.35)}
.atlas-realm-screen .atlas-discovery-panel{border-color:rgba(207,242,177,.35);background:linear-gradient(145deg,rgba(14,37,34,.97),rgba(17,43,49,.97));box-shadow:0 16px 40px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.05)}
.atlas-realm-screen .atlas-discovery-panel h3{color:#f3efc8;text-shadow:0 0 18px rgba(199,228,153,.18)}
.atlas-realm-screen .atlas-realm-footer{border-color:rgba(208,238,183,.2)}
@media(max-width:650px){.atlas-realm-canvas-wrap{border-radius:15px}.atlas-realm-screen .atlas-game-bottom{padding:8px 2px 2px}.atlas-realm-screen .atlas-interact{min-height:50px}}
@media(prefers-reduced-motion:reduce){#fairyCanvas{filter:none}}

/* MOONVEIL KINGDOM · silver moonlight, violet glass and gothic atmosphere */
.atlas-moonveil-screen{background:radial-gradient(ellipse at 16% 12%,rgba(170,159,232,.2),transparent 34%),radial-gradient(ellipse at 86% 78%,rgba(112,144,207,.13),transparent 38%),linear-gradient(155deg,rgba(24,24,55,.99),rgba(15,25,49,.99));border-color:rgba(203,194,255,.36);box-shadow:0 24px 70px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.07)}
.atlas-moonveil-screen .atlas-realm-top>div>span{color:#c9c2f6}
.atlas-moonveil-screen .atlas-realm-top h2{color:#f0edff;text-shadow:0 0 24px rgba(182,169,255,.28)}
.atlas-moonveil-screen .atlas-realm-top p{color:#c7c9e4}
.atlas-moonveil-screen .atlas-realm-progress{border-color:rgba(206,198,255,.36);color:#e3dcff;background:rgba(177,164,240,.08);box-shadow:0 0 22px rgba(170,154,255,.1)}
.atlas-moonveil-screen .atlas-realm-story{border-left-color:#c7c1f3;background:linear-gradient(110deg,rgba(190,180,255,.12),rgba(147,178,224,.035));box-shadow:inset 0 1px rgba(255,255,255,.05)}
.atlas-moonveil-screen .atlas-realm-story strong{color:#f0eaff}
.atlas-moonveil-screen .atlas-realm-story p{color:#d0d1ec}
.atlas-moonveil-screen .atlas-realm-canvas-wrap{border-color:rgba(203,198,255,.44);box-shadow:0 12px 38px rgba(0,0,0,.34),inset 0 0 55px rgba(185,175,255,.13),0 0 28px rgba(152,151,230,.1)}
#moonCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:pan-y;filter:saturate(1.06) contrast(1.04)}
.atlas-moonveil-screen .atlas-dpad button{border-color:rgba(207,202,255,.34);background:rgba(190,184,255,.1);box-shadow:inset 0 1px rgba(255,255,255,.12),0 5px 14px rgba(0,0,0,.2)}
.atlas-moonveil-screen .atlas-dpad button:active{background:rgba(185,177,255,.28);border-color:rgba(230,224,255,.75)}
.atlas-moonveil-screen .atlas-interact{background:linear-gradient(135deg,#f0eaff,#c7c4f2 55%,#a9cde8);border-color:#f0edff;box-shadow:0 8px 24px rgba(171,163,255,.23),inset 0 1px rgba(255,255,255,.65)}
.atlas-moonveil-screen .atlas-discovery-panel{border-color:rgba(202,195,255,.38);background:linear-gradient(145deg,rgba(23,22,53,.98),rgba(22,37,65,.98));box-shadow:0 16px 42px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.06)}
.atlas-moonveil-screen .atlas-discovery-panel h3{color:#f1ecff;text-shadow:0 0 18px rgba(189,178,255,.24)}
.atlas-moonveil-screen .atlas-realm-footer{border-color:rgba(204,198,255,.22);color:#c4c6e7}
.atlas-moonveil-screen .atlas-realm-footer b{color:#e9e1ff}
@media(max-width:650px){.atlas-moonveil-screen .atlas-realm-canvas-wrap{border-radius:15px}.atlas-moonveil-screen .atlas-game-bottom{padding:8px 2px 2px}.atlas-moonveil-screen .atlas-interact{min-height:50px}}
@media(prefers-reduced-motion:reduce){#moonCanvas{filter:none}}


/* ABYSSAL KINGDOM · silver moonlight, violet glass and gothic atmosphere */
.atlas-abyssal-screen{background:radial-gradient(ellipse at 16% 12%,rgba(65,211,199,.2),transparent 34%),radial-gradient(ellipse at 86% 78%,rgba(37,144,173,.16),transparent 38%),linear-gradient(155deg,rgba(7,45,65,.99),rgba(5,34,53,.99));border-color:rgba(128,239,220,.36);box-shadow:0 24px 70px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.07)}
.atlas-abyssal-screen .atlas-realm-top>div>span{color:#a5f2e7}
.atlas-abyssal-screen .atlas-realm-top h2{color:#e6fff7;text-shadow:0 0 24px rgba(182,169,255,.28)}
.atlas-abyssal-screen .atlas-realm-top p{color:#b7e8e8}
.atlas-abyssal-screen .atlas-realm-progress{border-color:rgba(206,198,255,.36);color:#d8fff7;background:rgba(177,164,240,.08);box-shadow:0 0 22px rgba(170,154,255,.1)}
.atlas-abyssal-screen .atlas-realm-story{border-left-color:#8ce4d9;background:linear-gradient(110deg,rgba(190,180,255,.12),rgba(147,178,224,.035));box-shadow:inset 0 1px rgba(255,255,255,.05)}
.atlas-abyssal-screen .atlas-realm-story strong{color:#d9fff4}
.atlas-abyssal-screen .atlas-realm-story p{color:#d0d1ec}
.atlas-abyssal-screen .atlas-realm-canvas-wrap{border-color:rgba(119,226,218,.42);box-shadow:0 12px 38px rgba(0,0,0,.34),inset 0 0 55px rgba(185,175,255,.13),0 0 28px rgba(152,151,230,.1)}
#abyssCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:pan-y;filter:saturate(1.06) contrast(1.04)}
.atlas-abyssal-screen .atlas-dpad button{border-color:rgba(207,202,255,.34);background:rgba(190,184,255,.1);box-shadow:inset 0 1px rgba(255,255,255,.12),0 5px 14px rgba(0,0,0,.2)}
.atlas-abyssal-screen .atlas-dpad button:active{background:rgba(185,177,255,.28);border-color:rgba(230,224,255,.75)}
.atlas-abyssal-screen .atlas-interact{background:linear-gradient(135deg,#d9fff4,#8adbd5 55%,#85e9dc);border-color:#e6fff7;box-shadow:0 8px 24px rgba(90,218,206,.24),inset 0 1px rgba(255,255,255,.65)}
.atlas-abyssal-screen .atlas-discovery-panel{border-color:rgba(202,195,255,.38);background:linear-gradient(145deg,rgba(23,22,53,.98),rgba(22,37,65,.98));box-shadow:0 16px 42px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.06)}
.atlas-abyssal-screen .atlas-discovery-panel h3{color:#f1ecff;text-shadow:0 0 18px rgba(189,178,255,.24)}
.atlas-abyssal-screen .atlas-realm-footer{border-color:rgba(204,198,255,.22);color:#c4c6e7}
.atlas-abyssal-screen .atlas-realm-footer b{color:#e9e1ff}
@media(max-width:650px){.atlas-abyssal-screen .atlas-realm-canvas-wrap{border-radius:15px}.atlas-abyssal-screen .atlas-game-bottom{padding:8px 2px 2px}.atlas-abyssal-screen .atlas-interact{min-height:50px}}
@media(prefers-reduced-motion:reduce){#abyssCanvas{filter:none}}


/* DRACONIC DOMINION · silver moonlight, violet glass and gothic atmosphere */
.atlas-draconic-screen{background:radial-gradient(ellipse at 16% 12%,rgba(255,128,65,.2),transparent 34%),radial-gradient(ellipse at 86% 78%,rgba(125,53,47,.18),transparent 38%),linear-gradient(155deg,rgba(52,30,39,.99),rgba(35,25,34,.99));border-color:rgba(255,176,116,.36);box-shadow:0 24px 70px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.07)}
.atlas-draconic-screen .atlas-realm-top>div>span{color:#ffc18d}
.atlas-draconic-screen .atlas-realm-top h2{color:#fff0d7;text-shadow:0 0 24px rgba(182,169,255,.28)}
.atlas-draconic-screen .atlas-realm-top p{color:#e6b9a0}
.atlas-draconic-screen .atlas-realm-progress{border-color:rgba(206,198,255,.36);color:#ffe2b7;background:rgba(177,164,240,.08);box-shadow:0 0 22px rgba(170,154,255,.1)}
.atlas-draconic-screen .atlas-realm-story{border-left-color:#ff9b65;background:linear-gradient(110deg,rgba(190,180,255,.12),rgba(147,178,224,.035));box-shadow:inset 0 1px rgba(255,255,255,.05)}
.atlas-draconic-screen .atlas-realm-story strong{color:#ffe0ad}
.atlas-draconic-screen .atlas-realm-story p{color:#d0d1ec}
.atlas-draconic-screen .atlas-realm-canvas-wrap{border-color:rgba(255,176,116,.42);box-shadow:0 12px 38px rgba(0,0,0,.34),inset 0 0 55px rgba(185,175,255,.13),0 0 28px rgba(152,151,230,.1)}
#dragonCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:pan-y;filter:saturate(1.06) contrast(1.04)}
.atlas-draconic-screen .atlas-dpad button{border-color:rgba(207,202,255,.34);background:rgba(190,184,255,.1);box-shadow:inset 0 1px rgba(255,255,255,.12),0 5px 14px rgba(0,0,0,.2)}
.atlas-draconic-screen .atlas-dpad button:active{background:rgba(185,177,255,.28);border-color:rgba(230,224,255,.75)}
.atlas-draconic-screen .atlas-interact{background:linear-gradient(135deg,#ffe0ad,#e68a5b 55%,#ffb46c);border-color:#fff0d7;box-shadow:0 8px 24px rgba(90,218,206,.24),inset 0 1px rgba(255,255,255,.65)}
.atlas-draconic-screen .atlas-discovery-panel{border-color:rgba(202,195,255,.38);background:linear-gradient(145deg,rgba(23,22,53,.98),rgba(22,37,65,.98));box-shadow:0 16px 42px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.06)}
.atlas-draconic-screen .atlas-discovery-panel h3{color:#f1ecff;text-shadow:0 0 18px rgba(189,178,255,.24)}
.atlas-draconic-screen .atlas-realm-footer{border-color:rgba(204,198,255,.22);color:#c4c6e7}
.atlas-draconic-screen .atlas-realm-footer b{color:#e9e1ff}
@media(max-width:650px){.atlas-draconic-screen .atlas-realm-canvas-wrap{border-radius:15px}.atlas-draconic-screen .atlas-game-bottom{padding:8px 2px 2px}.atlas-draconic-screen .atlas-interact{min-height:50px}}
@media(prefers-reduced-motion:reduce){#dragonCanvas{filter:none}}

/* CELESTIAL EXPANSE · cosmic indigo, aurora glass and starlight */
.atlas-celestial-screen{background:radial-gradient(ellipse at 16% 12%,rgba(145,139,255,.22),transparent 34%),radial-gradient(ellipse at 86% 78%,rgba(86,185,255,.15),transparent 38%),linear-gradient(155deg,rgba(16,19,57,.99),rgba(12,22,58,.99));border-color:rgba(177,195,255,.42);box-shadow:0 24px 70px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.08)}
.atlas-celestial-screen .atlas-realm-top>div>span{color:#c7c7ff}
.atlas-celestial-screen .atlas-realm-top h2{color:#f0efff;text-shadow:0 0 25px rgba(166,173,255,.38)}
.atlas-celestial-screen .atlas-realm-top p{color:#c8d6f7}
.atlas-celestial-screen .atlas-realm-progress{border-color:rgba(186,199,255,.42);color:#e6e8ff;background:rgba(149,156,255,.1);box-shadow:0 0 24px rgba(139,155,255,.14)}
.atlas-celestial-screen .atlas-realm-story{border-left-color:#b6c4ff;background:linear-gradient(110deg,rgba(164,173,255,.15),rgba(105,184,255,.045));box-shadow:inset 0 1px rgba(255,255,255,.06)}
.atlas-celestial-screen .atlas-realm-story strong{color:#f0edff}
.atlas-celestial-screen .atlas-realm-story p{color:#d0dafa}
.atlas-celestial-screen .atlas-realm-canvas-wrap{border-color:rgba(174,191,255,.5);box-shadow:0 12px 38px rgba(0,0,0,.38),inset 0 0 55px rgba(147,164,255,.16),0 0 30px rgba(117,150,255,.13)}
#celestialCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:pan-y;filter:saturate(1.1) contrast(1.05)}
.atlas-celestial-screen .atlas-dpad button{border-color:rgba(190,199,255,.38);background:rgba(159,167,255,.12);box-shadow:inset 0 1px rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.22)}
.atlas-celestial-screen .atlas-dpad button:active{background:rgba(190,190,255,.3);border-color:rgba(235,231,255,.8)}
.atlas-celestial-screen .atlas-interact{background:linear-gradient(135deg,#f3efff,#c9d7ff 55%,#9ee9f0);border-color:#f4f0ff;box-shadow:0 8px 24px rgba(142,165,255,.28),inset 0 1px rgba(255,255,255,.7)}
.atlas-celestial-screen .atlas-discovery-panel{border-color:rgba(184,195,255,.42);background:linear-gradient(145deg,rgba(19,22,58,.99),rgba(24,37,79,.99));box-shadow:0 16px 42px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.07)}
.atlas-celestial-screen .atlas-discovery-panel h3{color:#f2efff;text-shadow:0 0 18px rgba(189,193,255,.28)}
.atlas-celestial-screen .atlas-realm-footer{border-color:rgba(185,197,255,.26);color:#cbd4f2}
.atlas-celestial-screen .atlas-realm-footer b{color:#f0edff}
@media(max-width:650px){.atlas-celestial-screen .atlas-realm-canvas-wrap{border-radius:15px}.atlas-celestial-screen .atlas-game-bottom{padding:8px 2px 2px}.atlas-celestial-screen .atlas-interact{min-height:50px}}
@media(prefers-reduced-motion:reduce){#celestialCanvas{filter:none}}

/* CELESTIAL EXPANSE · visual polish pass */
.atlas-celestial-screen{position:relative;overflow:hidden;background-image:radial-gradient(ellipse at 15% 8%,rgba(158,151,255,.25),transparent 36%),radial-gradient(ellipse at 88% 76%,rgba(91,213,238,.18),transparent 42%),linear-gradient(155deg,#0d1239 0%,#171a4e 48%,#0b1b43 100%)}
.atlas-celestial-screen:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;background-image:radial-gradient(1px 1px at 12% 18%,#fff 99%,transparent),radial-gradient(1px 1px at 78% 26%,#c6e9ff 99%,transparent),radial-gradient(1px 1px at 44% 74%,#fff 99%,transparent),radial-gradient(2px 2px at 91% 84%,#e5c9ff 99%,transparent);background-size:170px 150px,230px 190px,190px 170px,260px 210px}
.atlas-celestial-screen .atlas-realm-top,.atlas-celestial-screen .atlas-realm-story,.atlas-celestial-screen .atlas-realm-canvas-wrap,.atlas-celestial-screen .atlas-game-bottom,.atlas-celestial-screen .atlas-realm-footer{position:relative;z-index:1}
.atlas-celestial-screen .atlas-realm-canvas-wrap{border:1px solid rgba(191,211,255,.62);border-radius:22px;background:#080d2b;box-shadow:0 18px 48px rgba(0,0,0,.48),inset 0 0 0 3px rgba(191,206,255,.07),0 0 34px rgba(112,151,255,.2)}
#celestialCanvas{border-radius:20px;filter:saturate(1.16) contrast(1.08)}
.atlas-celestial-screen .atlas-realm-story{border-radius:14px;border-left-width:3px;background:linear-gradient(105deg,rgba(135,150,255,.16),rgba(94,211,230,.06));}
.atlas-celestial-screen .atlas-realm-progress{backdrop-filter:blur(12px);border-radius:999px;box-shadow:0 0 26px rgba(139,155,255,.18),inset 0 0 14px rgba(180,200,255,.08)}
.atlas-celestial-screen .atlas-dpad button{min-width:44px;min-height:42px;border-radius:13px;backdrop-filter:blur(10px)}
.atlas-celestial-screen .atlas-interact{border-radius:16px;min-height:54px;font-weight:900;letter-spacing:.08em;text-shadow:0 1px rgba(255,255,255,.5)}
.atlas-celestial-screen .atlas-discovery-panel{z-index:3;border-radius:18px;backdrop-filter:blur(18px);border:1px solid rgba(200,211,255,.55)}
.atlas-celestial-screen .atlas-discovery-panel button{border:1px solid rgba(210,220,255,.3);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;width:34px;height:34px}
.atlas-celestial-screen .atlas-realm-footer{letter-spacing:.055em}
@media(max-width:650px){.atlas-celestial-screen .atlas-realm-canvas-wrap{border-radius:15px}.atlas-celestial-screen #celestialCanvas{border-radius:14px}.atlas-celestial-screen .atlas-dpad button{min-width:42px;min-height:40px}}
@media(prefers-reduced-motion:reduce){.atlas-celestial-screen:before{opacity:.12}}


/* CELESTIAL EXPANSE · expanded exploration frame to match the other realm presentations */
.atlas-celestial-screen{width:min(1320px,calc(100vw - 28px));max-width:none;margin-left:50%;transform:translateX(-50%)}
.atlas-celestial-screen .atlas-realm-canvas-wrap{width:100%;}
@media(max-width:650px){.atlas-celestial-screen{width:calc(100vw - 26px);padding:11px}.atlas-celestial-screen .atlas-realm-canvas-wrap{width:100%}}


/* ATLAS QUEST JOURNAL · connected story, readable objectives and mobile-first progress */
.atlas-quest-journal{margin:22px 0 18px;padding:18px;border:1px solid rgba(194,177,255,.28);border-radius:20px;background:linear-gradient(135deg,rgba(38,35,75,.88),rgba(22,48,66,.9));box-shadow:0 14px 36px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.08);color:#f7f2ff}
.atlas-quest-journal-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.atlas-quest-journal-head h3{margin:5px 0;color:#fff1d2;font-size:clamp(1.12rem,2.5vw,1.55rem)}
.atlas-quest-journal-head p{margin:0;color:#d4d5ed;font-size:.9rem}
.atlas-quest-journal-head .atlas-kicker{color:#c8baff}
.atlas-quest-journal-body{padding-top:16px}
.atlas-quest-main{padding:17px;border:1px solid rgba(222,207,255,.24);border-radius:16px;background:linear-gradient(120deg,rgba(121,95,176,.22),rgba(65,135,157,.14))}
.atlas-quest-kicker{font-size:.7rem;font-weight:900;letter-spacing:.12em;color:#e6d5ff}
.atlas-quest-main h4{margin:8px 0 6px;color:#fff2d8;font-size:1.12rem}
.atlas-quest-main p{margin:0 0 12px;color:#e2e1f4;line-height:1.55;font-size:.9rem}
.atlas-quest-progress{height:8px;margin:10px 0 7px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.12)}
.atlas-quest-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b9a7ff,#8ce5d5,#ffe1a0);box-shadow:0 0 14px rgba(176,207,255,.3);transition:width .35s ease}
.atlas-quest-main>small{color:#e4dff7;font-size:.78rem}
.atlas-quest-total{display:flex;justify-content:space-between;gap:10px;margin-top:15px;color:#e5e1f5;font-size:.82rem}
.atlas-quest-total strong{color:#fff0c9}
.atlas-quest-total-bar{height:6px;margin-bottom:0}
.atlas-quest-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.atlas-quest-card{padding:13px;border:1px solid rgba(210,202,255,.18);border-radius:14px;background:rgba(9,20,44,.32)}
.atlas-quest-card.is-complete{border-color:rgba(154,231,202,.42);background:rgba(39,104,87,.2)}
.atlas-quest-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.atlas-quest-card-top strong{font-size:.88rem;color:#fff}
.atlas-quest-card-top span{font-size:.62rem;font-weight:900;letter-spacing:.06em;color:#d9ccff;white-space:nowrap}
.atlas-quest-card.is-complete .atlas-quest-card-top span{color:#a8f0d4}
.atlas-quest-card p{margin:7px 0 0;color:#d2d5ea;font-size:.78rem}
.atlas-quest-card .atlas-quest-progress{height:6px;margin-bottom:0}
.atlas-quest-save-note{margin:12px 2px 0;color:#c9cbe2;font-size:.74rem}
@media(max-width:650px){.atlas-quest-journal{padding:14px;margin:16px 0;border-radius:16px}.atlas-quest-journal-head{align-items:flex-start;flex-direction:column}.atlas-quest-journal-head .atlas-secondary{width:100%}.atlas-quest-list{grid-template-columns:1fr}.atlas-quest-main{padding:14px}.atlas-quest-card{padding:12px}}


/* TRAVELER'S INVENTORY · relic cabinet and discovery archive */
.atlas-inventory{margin:16px 0 24px;padding:18px;border:1px solid rgba(160,211,222,.28);border-radius:20px;color:#f4f8ff;background:linear-gradient(140deg,rgba(19,55,75,.94),rgba(35,35,77,.94));box-shadow:0 14px 38px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.08)}
.atlas-inventory-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.atlas-inventory-head h3{margin:5px 0;color:#e7f7ff;font-size:clamp(1.12rem,2.5vw,1.55rem)}
.atlas-inventory-head p{margin:0;color:#c8d9eb;font-size:.9rem}
.atlas-inventory-head .atlas-kicker{color:#a9e7e8}
.atlas-inventory-body{padding-top:16px}
.atlas-inventory-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(179,226,240,.2);border-radius:13px;background:rgba(5,20,42,.3)}
.atlas-inventory-summary strong{color:#eaf9ff;font-size:.96rem}
.atlas-inventory-summary span{color:#c5d9ec;font-size:.78rem;text-align:right}
.atlas-inventory-filters{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
.atlas-inventory-filters button{min-height:38px;padding:8px 15px;border:1px solid rgba(192,220,255,.24);border-radius:999px;color:#dbeaff;background:rgba(255,255,255,.06);font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}
.atlas-inventory-filters button.is-active{border-color:rgba(178,237,231,.75);color:#102f42;background:linear-gradient(120deg,#c4f1e7,#c9d8ff);box-shadow:0 4px 18px rgba(145,218,222,.18)}
.atlas-inventory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.atlas-inventory-item{display:flex;min-width:0;min-height:132px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:11px 7px;border:1px solid rgba(190,220,255,.22);border-radius:14px;color:#eef8ff;background:linear-gradient(155deg,rgba(110,147,180,.16),rgba(14,34,62,.48));text-align:center;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}
.atlas-inventory-item.is-found{border-color:rgba(163,226,215,.36);background:linear-gradient(155deg,rgba(100,174,174,.2),rgba(25,44,77,.56))}
.atlas-inventory-item.is-unknown{opacity:.58;border-style:dashed}
.atlas-inventory-item.is-selected{outline:2px solid rgba(180,237,231,.78);outline-offset:1px;background:rgba(102,158,177,.28)}
.atlas-inventory-item:active{transform:scale(.97)}
.atlas-inventory-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:23px;background:radial-gradient(circle,rgba(192,231,255,.18),rgba(255,255,255,.025));text-shadow:0 0 18px rgba(170,220,255,.5)}
.atlas-inventory-item-name{max-width:100%;font-size:.78rem;font-weight:850;line-height:1.25;overflow-wrap:anywhere}
.atlas-inventory-item small{max-width:100%;color:#c0d3e6;font-size:.65rem;line-height:1.2}
.atlas-inventory-item em{font-size:.58rem;font-style:normal;font-weight:900;letter-spacing:.08em;color:#aee5df}
.atlas-inventory-item.is-unknown em{color:#b4bbd1}
.atlas-inventory-detail{min-height:82px;margin-top:13px;padding:14px;border:1px solid rgba(180,215,255,.25);border-radius:14px;background:linear-gradient(110deg,rgba(113,151,190,.16),rgba(94,126,164,.08))}
.atlas-inventory-detail strong{display:block;color:#f1f8ff;font-size:.98rem}
.atlas-inventory-detail span{display:block;margin-top:3px;color:#aee3e4;font-size:.7rem;font-weight:800;letter-spacing:.04em}
.atlas-inventory-detail p{margin:8px 0 0;color:#d3e1ef;font-size:.84rem;line-height:1.5}
.atlas-inventory-note{margin:12px 2px 0;color:#bdcfe1;font-size:.74rem}
@media(max-width:650px){.atlas-inventory{padding:14px;margin:14px 0 20px;border-radius:16px}.atlas-inventory-head{align-items:flex-start;flex-direction:column}.atlas-inventory-head .atlas-secondary{width:100%}.atlas-inventory-summary{align-items:flex-start;flex-direction:column;gap:4px}.atlas-inventory-summary span{text-align:left}.atlas-inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.atlas-inventory-item{min-height:122px}.atlas-inventory-filters{gap:6px}.atlas-inventory-filters button{padding:8px 12px}}

/* PHASE 3 · FAMILIAR COMPANIONS */
.atlas-familiar-panel{margin:16px 0 28px;padding:18px;border:1px solid rgba(199,174,255,.3);border-radius:22px;color:#f7f2ff;background:radial-gradient(ellipse at 12% 0%,rgba(153,116,220,.22),transparent 42%),linear-gradient(145deg,rgba(39,34,75,.96),rgba(20,47,65,.96));box-shadow:0 16px 42px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.08)}
.atlas-familiar-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.atlas-familiar-head h3{margin:5px 0;color:#f2eaff;font-size:clamp(1.15rem,2.5vw,1.55rem)}
.atlas-familiar-head p{margin:0;color:#cfc5e8;font-size:.88rem}
.atlas-familiar-active{padding:8px 11px;border:1px solid rgba(207,185,255,.25);border-radius:999px;color:#eadfff;background:rgba(255,255,255,.07);font-size:.75rem;font-weight:800}
.atlas-familiar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.atlas-familiar-card{display:grid;grid-template-columns:66px minmax(0,1fr);gap:11px;align-items:center;padding:13px;border:1px solid rgba(209,190,255,.2);border-radius:16px;background:rgba(8,14,37,.35)}
.atlas-familiar-card.is-active{border-color:#c6a5ff;box-shadow:0 0 0 1px rgba(198,165,255,.2),0 0 24px rgba(161,121,255,.14)}
.atlas-familiar-art{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:radial-gradient(circle,rgba(199,164,255,.3),rgba(88,70,139,.14));font-size:2.25rem;filter:drop-shadow(0 5px 12px rgba(185,153,255,.25))}
.atlas-familiar-card.is-locked .atlas-familiar-art{color:#a9a0c4}
.atlas-familiar-info{min-width:0}
.atlas-familiar-info>span{display:block;color:#b9a9df;font-size:.61rem;font-weight:900;letter-spacing:.12em}
.atlas-familiar-info strong{display:block;margin:3px 0;color:#fff;font-family:Georgia,serif;font-size:1.06rem}
.atlas-familiar-info small{display:block;color:#c5b9df;font-size:.72rem}
.atlas-familiar-info p{margin:7px 0;color:#ded7ee;font-size:.78rem;line-height:1.45}
.atlas-familiar-info em{display:block;color:#d8c2ff;font-size:.72rem;font-style:normal;font-weight:800}
.atlas-familiar-card>button{grid-column:1/-1;width:100%;min-height:38px}
.atlas-familiar-card>button:disabled{opacity:.55;cursor:not-allowed}
.atlas-familiar-note{margin:13px 0 0;color:#c9bfdf;font-size:.76rem;line-height:1.5}
@media(max-width:620px){.atlas-familiar-head{flex-direction:column}.atlas-familiar-active{align-self:flex-start}.atlas-familiar-grid{grid-template-columns:1fr}.atlas-familiar-card{grid-template-columns:58px minmax(0,1fr);padding:11px}.atlas-familiar-art{width:56px;height:56px;font-size:2rem}}

/* PHASE 4 · ACTIVE FAMILIAR ABILITIES */
.atlas-familiar-action{display:flex;flex:1 1 100%;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding:12px 14px;border:1px solid rgba(210,190,255,.26);border-radius:16px;background:linear-gradient(110deg,rgba(71,54,113,.34),rgba(27,76,91,.32))}
.atlas-familiar-cast{min-height:44px;padding:10px 18px;border:1px solid rgba(230,210,255,.65);border-radius:999px;color:#20183d;background:linear-gradient(120deg,#f0d9ff,#b9e8f2);font:inherit;font-weight:900;box-shadow:0 5px 20px rgba(179,151,255,.2);cursor:pointer;transition:transform .18s,filter .18s}
.atlas-familiar-cast:active,.atlas-familiar-cast.is-casting{transform:scale(.96);filter:brightness(1.2)}
.atlas-familiar-cast-status{flex:1 1 220px;color:#e5dcff;font-size:.78rem;line-height:1.45;text-align:center}
@media(max-width:560px){.atlas-familiar-action{align-items:stretch;flex-direction:column}.atlas-familiar-cast{width:100%}.atlas-familiar-cast-status{flex-basis:auto}}


/* PHASE 5 · FAMILIAR BONDING AND PLAY */
.atlas-familiar-card{position:relative;overflow:hidden}
.atlas-familiar-card-actions{display:flex;flex-direction:column;gap:7px;min-width:118px}
.atlas-bond-level{margin-top:10px;font-size:11px;font-weight:800;letter-spacing:.04em;color:#f4dca7}
.atlas-bond-track{height:7px;border-radius:20px;background:rgba(18,15,42,.72);border:1px solid rgba(220,205,255,.18);overflow:hidden;margin-top:6px}
.atlas-bond-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#78e8c9,#c6a5ff,#ffe39c);box-shadow:0 0 12px rgba(196,166,255,.6);transition:width .35s ease}
.atlas-bond-play-btn,.atlas-bond-symbol{border:1px solid rgba(221,202,255,.38);border-radius:12px;padding:9px 12px;color:#fff;background:linear-gradient(135deg,rgba(110,81,165,.72),rgba(49,66,111,.8));font-weight:800;cursor:pointer;min-height:40px}
.atlas-bond-play-btn:active,.atlas-bond-symbol:active{transform:scale(.96)}
.atlas-bond-play{margin:18px 0;padding:16px;border:1px solid rgba(205,187,255,.25);border-radius:18px;background:linear-gradient(135deg,rgba(44,38,83,.8),rgba(19,40,66,.78));box-shadow:inset 0 1px rgba(255,255,255,.08)}
.atlas-bond-play-title{font-weight:900;color:#f6e5b7;font-size:16px}
.atlas-bond-play p{font-size:13px;line-height:1.5;color:#d7d1ed}
.atlas-bond-play-stage{min-height:56px;display:grid;place-items:center;text-align:center;padding:12px;border-radius:13px;background:rgba(9,13,35,.55);color:#fff0c7;font-weight:800}
.atlas-bond-play-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.atlas-bond-symbol{width:58px;height:54px;font-size:23px;background:linear-gradient(145deg,rgba(90,72,146,.95),rgba(28,61,94,.95))}
.atlas-bond-symbol.is-correct{box-shadow:0 0 18px rgba(144,255,207,.75);border-color:#9dffd8}
@media(max-width:650px){.atlas-familiar-card-actions{width:100%;min-width:0;display:grid;grid-template-columns:1fr 1fr}.atlas-familiar-card{gap:10px}.atlas-bond-play{padding:13px}.atlas-bond-symbol{width:54px}}


/* PHASE 6 · REALM TRIALS AND PUZZLE PLAY */
.atlas-realm-trials{margin:20px 0;padding:18px;border:1px solid rgba(194,177,255,.24);border-radius:22px;background:linear-gradient(135deg,rgba(30,34,67,.96),rgba(28,52,70,.92));box-shadow:0 16px 42px rgba(4,8,28,.22)}
.atlas-realm-trials-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.atlas-realm-trials-head h3{margin:5px 0;font-size:20px;color:#f4e8ff}
.atlas-realm-trials-head p{margin:0;color:#d2d0e6;font-size:13px;line-height:1.5}
.atlas-trial-count{flex:none;padding:8px 11px;border-radius:999px;background:rgba(178,151,255,.15);border:1px solid rgba(208,186,255,.28);color:#f6e6b5;font-size:12px;font-weight:900}
.atlas-trial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.atlas-trial-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border-radius:15px;border:1px solid rgba(218,209,255,.16);background:rgba(7,16,39,.48)}
.atlas-trial-card-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(183,158,255,.14);font-size:23px}
.atlas-trial-card-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.atlas-trial-card-copy strong{font-size:13px;color:#fff}
.atlas-trial-card-copy small{font-size:11px;color:#c7c2dc}
.atlas-trial-card-copy span{font-size:10px;font-weight:900;letter-spacing:.06em;color:#e9d59e}
.atlas-trial-card button{grid-column:1/-1;width:100%;min-height:38px}
.atlas-trial-card.is-complete{border-color:rgba(134,240,196,.35);background:rgba(33,94,82,.18)}
.atlas-trial-card.is-locked{opacity:.78}
.atlas-trial-play{margin-top:16px;padding:16px;border-radius:18px;border:1px solid rgba(217,198,255,.3);background:linear-gradient(145deg,rgba(61,48,100,.68),rgba(12,45,66,.72))}
.atlas-trial-play-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.atlas-trial-play-head strong{font-size:16px;color:#fff0c8}
.atlas-trial-play>p{font-size:13px;color:#ddd7f2;line-height:1.5}
.atlas-trial-question{padding:15px;border-radius:13px;background:rgba(7,12,33,.65);font-weight:800;color:#fff;font-size:14px;line-height:1.55}
.atlas-trial-choices{display:grid;grid-template-columns:1fr;gap:9px;margin-top:12px}
.atlas-trial-choice{padding:12px 14px;min-height:46px;border-radius:12px;border:1px solid rgba(207,188,255,.3);background:rgba(109,91,159,.23);color:#fff;text-align:left;font-weight:700;cursor:pointer}
.atlas-trial-choice:active{transform:scale(.99);background:rgba(142,113,207,.45)}
.atlas-trial-feedback{min-height:34px;padding-top:11px;color:#e9d7a5;font-size:12px;font-weight:800;line-height:1.5}
.atlas-trial-reward{display:block;padding:12px;border-radius:12px;background:rgba(84,155,127,.2);color:#baffdf;font-weight:900;text-align:center}
@media(max-width:650px){.atlas-realm-trials{padding:13px}.atlas-realm-trials-head{align-items:flex-start;flex-direction:column}.atlas-trial-grid{grid-template-columns:1fr}.atlas-trial-play{padding:12px}}


/* PHASE · THE FORGOTTEN CHAMBERS — hidden-room exploration and guardian puzzle styling */
.atlas-secret-chambers{position:relative;overflow:hidden;margin:22px auto;padding:clamp(15px,2.4vw,25px);width:min(1180px,calc(100% - 28px));border:1px solid rgba(207,181,255,.28);border-radius:24px;background:radial-gradient(ellipse at 12% 0%,rgba(111,75,159,.28),transparent 45%),radial-gradient(ellipse at 95% 100%,rgba(40,124,139,.2),transparent 42%),linear-gradient(145deg,rgba(18,18,47,.96),rgba(13,30,48,.96));box-shadow:0 22px 65px rgba(3,5,20,.28)}
.atlas-secret-chambers:before{content:"✧  ·  ✦      ·       ✧       ·  ✦";position:absolute;right:20px;top:14px;color:rgba(237,218,255,.2);letter-spacing:.8em;pointer-events:none}
.atlas-secret-head{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:17px}
.atlas-secret-head h3{margin:5px 0 7px;color:#fff1d1;font-size:clamp(20px,3vw,27px)}
.atlas-secret-head p{max-width:690px;margin:0;color:#d0c9e5;font-size:13px;line-height:1.6}
.atlas-secret-count{flex:none;padding:9px 12px;border:1px solid rgba(233,211,255,.22);border-radius:999px;background:rgba(100,77,139,.24);color:#f4e4b9;font-size:11px;font-weight:900}
.atlas-secret-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atlas-secret-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;padding:13px;border:1px solid rgba(205,190,239,.2);border-radius:17px;background:linear-gradient(135deg,rgba(63,53,91,.48),rgba(14,47,61,.42));transition:transform .2s,border-color .2s,background .2s}
.atlas-secret-card.is-ready{border-color:rgba(240,211,151,.5);background:linear-gradient(135deg,rgba(101,74,105,.5),rgba(30,74,77,.46));box-shadow:inset 0 0 28px rgba(227,196,133,.07)}
.atlas-secret-card.is-open{border-color:rgba(142,239,198,.38);background:linear-gradient(135deg,rgba(43,91,82,.46),rgba(28,55,82,.45))}
.atlas-secret-card.is-hidden{opacity:.76}
.atlas-secret-art{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:radial-gradient(circle,rgba(219,193,255,.22),rgba(96,74,130,.16));font-size:24px;box-shadow:inset 0 0 16px rgba(226,203,255,.12)}
.atlas-secret-copy{display:grid;gap:4px;min-width:0}
.atlas-secret-copy strong{color:#fff;font-size:13px;line-height:1.3}
.atlas-secret-copy small{color:#c9c1df;font-size:10px}
.atlas-secret-copy span{color:#e8d39f;font-size:9px;font-weight:900;letter-spacing:.055em}
.atlas-secret-card.is-open .atlas-secret-copy span{color:#a9f2d0}
.atlas-secret-card button{grid-column:1/-1;width:100%;min-height:39px}
.atlas-secret-play{margin-top:16px;padding:clamp(13px,2.4vw,20px);border:1px solid rgba(227,205,255,.32);border-radius:19px;background:radial-gradient(ellipse at 50% 0%,rgba(127,93,172,.22),transparent 65%),linear-gradient(145deg,rgba(10,17,39,.94),rgba(14,44,57,.94));box-shadow:inset 0 0 35px rgba(169,143,220,.08)}
.atlas-secret-play-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.atlas-secret-play-head>div{display:grid;gap:5px}
.atlas-secret-play-head small{color:#d9c2ff;font-size:9px;font-weight:900;letter-spacing:.14em}
.atlas-secret-play-head strong{color:#fff0c9;font-size:clamp(16px,2.4vw,21px)}
.atlas-secret-story{color:#d6d2e7}
.atlas-secret-play>p{color:#d5cee7;font-size:13px;line-height:1.6}
.atlas-secret-stage{margin:14px 0 10px;padding:12px 14px;border-left:3px solid #c7a9ff;border-radius:8px;background:rgba(120,91,164,.18);color:#f5e8c7;font-size:11px;font-weight:950;letter-spacing:.09em}
.atlas-secret-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.atlas-secret-choice{min-height:70px;padding:12px;border:1px solid rgba(205,190,239,.28);border-radius:13px;background:linear-gradient(145deg,rgba(91,72,129,.34),rgba(20,66,78,.38));color:#fff;text-align:left;font-size:12px;font-weight:750;line-height:1.45;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}
.atlas-secret-choice:hover,.atlas-secret-choice:focus-visible{transform:translateY(-2px);border-color:rgba(255,226,167,.72);background:rgba(112,88,151,.48);outline:none}
.atlas-secret-feedback{min-height:38px;padding-top:12px;color:#e8d5a5;font-size:12px;font-weight:750;line-height:1.55}
.atlas-secret-complete{display:block;padding:18px;border:1px solid rgba(153,244,202,.36);border-radius:14px;background:radial-gradient(ellipse at center,rgba(98,196,152,.22),rgba(36,88,82,.12));color:#c5ffe1;text-align:center;font-weight:950;letter-spacing:.12em;box-shadow:0 0 28px rgba(123,241,187,.12)}
@media(max-width:700px){.atlas-secret-chambers{width:calc(100% - 20px);padding:14px;border-radius:19px}.atlas-secret-head{align-items:flex-start;flex-direction:column}.atlas-secret-grid{grid-template-columns:1fr}.atlas-secret-choices{grid-template-columns:1fr}.atlas-secret-choice{min-height:48px}.atlas-secret-play-head{align-items:flex-start}.atlas-secret-play-head .atlas-secondary{flex:none}}

/* PHASE 8 · FIVE REALM GUARDIANS */
.atlas-guardians{width:min(1180px,calc(100% - 28px));margin:24px auto;padding:clamp(16px,3vw,26px);border:1px solid rgba(180,163,255,.3);border-radius:24px;background:radial-gradient(ellipse at 12% 0%,rgba(111,91,172,.24),transparent 48%),linear-gradient(145deg,rgba(18,24,49,.97),rgba(11,22,38,.96));box-shadow:0 22px 70px rgba(0,0,0,.28);color:#f4efff}
.atlas-guardian-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.atlas-guardian-head h3{margin:7px 0;color:#fff0cb;font-size:clamp(22px,3vw,30px)}
.atlas-guardian-head p{max-width:720px;color:#d1cce5;font-size:13px;line-height:1.65}
.atlas-guardian-count{flex:none;padding:10px 13px;border:1px solid rgba(220,205,255,.25);border-radius:99px;background:rgba(124,102,177,.17);font-size:11px;font-weight:900;color:#f4e6b7}
.atlas-guardian-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atlas-guardian-card{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:12px;padding:14px;border:1px solid rgba(195,185,232,.2);border-radius:17px;background:linear-gradient(130deg,rgba(52,55,91,.5),rgba(20,47,60,.42))}
.atlas-guardian-card.is-won{border-color:rgba(155,235,191,.42);background:linear-gradient(130deg,rgba(52,105,89,.28),rgba(24,50,63,.5))}
.atlas-guardian-art{display:grid;place-items:center;width:60px;height:60px;border-radius:16px;background:radial-gradient(circle,var(--guardian-tone),rgba(25,30,58,.25) 70%);font-size:29px;filter:drop-shadow(0 0 12px var(--guardian-tone))}
.atlas-guardian-copy{display:grid;gap:4px;min-width:0}
.atlas-guardian-copy strong{font-size:13px;color:#fff2d4}
.atlas-guardian-copy small{font-size:11px;color:#c8c3df}
.atlas-guardian-copy span{font-size:9px;font-weight:950;letter-spacing:.08em;color:#b8d8d5}
.atlas-guardian-card button{font-size:10px;white-space:nowrap}
.atlas-guardian-battle{margin-top:18px;padding:16px;border:1px solid rgba(211,194,255,.28);border-radius:20px;background:linear-gradient(150deg,rgba(27,31,67,.94),rgba(9,27,42,.97))}
.atlas-guardian-battle-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.atlas-guardian-battle-head div{display:grid;gap:4px}
.atlas-guardian-battle-head small{font-size:9px;letter-spacing:.12em;color:#c3b8e9}
.atlas-guardian-battle-head strong{font-size:clamp(17px,2.5vw,23px);color:#fff0c8}
#atlasGuardianCanvas{display:block;width:100%;height:auto;aspect-ratio:2.5/1;border:1px solid rgba(201,187,255,.25);border-radius:15px;background:#10152c}
.atlas-guardian-bars{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0}
.atlas-guardian-bars>div{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}
.atlas-guardian-bars span{font-size:9px;font-weight:950;letter-spacing:.1em;color:#d8d0ed}
.atlas-guardian-bars b{font-size:10px;color:#fff0d2}
.atlas-guardian-bar{grid-column:1/-1;height:11px;overflow:hidden;border-radius:99px;background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.13)}
.atlas-guardian-bar i{display:block;width:100%;height:100%;border-radius:99px;background:linear-gradient(90deg,#d47a89,#ffc48a);transition:width .25s}
.atlas-guardian-bar.player i{background:linear-gradient(90deg,#62cbb7,#b3f2d2)}
.atlas-guardian-phase{padding:10px;border-radius:10px;background:rgba(152,124,205,.17);text-align:center;color:#f4dba6;font-size:10px;font-weight:950;letter-spacing:.12em}
.atlas-guardian-log{min-height:52px;padding:13px 4px;color:#e1def0;font-size:12px;line-height:1.6}
.atlas-guardian-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.atlas-guardian-actions button{min-height:48px;border:1px solid rgba(215,202,255,.3);border-radius:13px;background:linear-gradient(140deg,rgba(110,90,158,.48),rgba(35,84,91,.48));color:#fff2d2;font-size:11px;font-weight:950;letter-spacing:.04em;cursor:pointer}
.atlas-guardian-actions button:disabled{opacity:.42;cursor:not-allowed}
.atlas-guardian-tip{display:block;margin-top:12px;color:#bcb6d4;font-size:10px;line-height:1.5}
@media(max-width:700px){.atlas-guardians{width:calc(100% - 20px);padding:14px;border-radius:19px}.atlas-guardian-head{align-items:flex-start;flex-direction:column}.atlas-guardian-grid{grid-template-columns:1fr}.atlas-guardian-card{grid-template-columns:52px 1fr;gap:10px}.atlas-guardian-art{width:50px;height:50px;font-size:24px}.atlas-guardian-card button{grid-column:1/-1;width:100%;min-height:40px}.atlas-guardian-battle-head{align-items:flex-start}.atlas-guardian-bars{gap:10px}.atlas-guardian-actions{grid-template-columns:1fr}.atlas-guardian-actions button{min-height:46px}#atlasGuardianCanvas{aspect-ratio:1.65/1}}


/* Guardian battle upgrade · phase tells, combo indicator and cinematic arena */
.atlas-guardian-combo{padding:11px 13px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:linear-gradient(100deg,rgba(74,56,111,.48),rgba(28,63,78,.48));color:#e8e0ff;text-align:center;font-size:10px;font-weight:950;letter-spacing:.11em;text-shadow:0 0 12px rgba(220,205,255,.35);transition:background .2s,border-color .2s}
.atlas-guardian-combo.is-danger{border-color:rgba(255,150,126,.55);background:linear-gradient(100deg,rgba(132,48,56,.55),rgba(92,48,73,.5));color:#ffe0c8;animation:guardianTellPulse .9s ease-in-out infinite alternate}
.atlas-guardian-combo.is-open{border-color:rgba(255,236,157,.65);background:linear-gradient(100deg,rgba(119,103,53,.5),rgba(45,94,78,.5));color:#fff2b8;box-shadow:0 0 22px rgba(255,224,143,.12)}
@keyframes guardianTellPulse{from{filter:brightness(.9);transform:scale(1)}to{filter:brightness(1.22);transform:scale(1.008)}}
.atlas-guardian-actions button[data-guardian-action="dodge"]{background:linear-gradient(135deg,rgba(45,118,128,.78),rgba(39,75,111,.8));border-color:rgba(132,232,232,.5)}
.atlas-guardian-actions button[data-guardian-action="attack"]{background:linear-gradient(135deg,rgba(139,77,73,.78),rgba(105,59,91,.8));border-color:rgba(255,177,151,.5)}
.atlas-guardian-actions button[data-guardian-action="familiar"]{background:linear-gradient(135deg,rgba(113,87,157,.8),rgba(69,86,128,.8));border-color:rgba(222,202,255,.5)}
#atlasGuardianCanvas{box-shadow:inset 0 0 35px rgba(0,0,0,.38),0 12px 28px rgba(0,0,0,.2)}
.atlas-guardian-log{border-bottom:1px solid rgba(220,210,255,.1);margin-bottom:12px}
@media(max-width:700px){.atlas-guardian-combo{font-size:9px;line-height:1.5;padding:12px 8px}.atlas-guardian-actions{grid-template-columns:1fr 1fr}.atlas-guardian-actions button[data-guardian-action="familiar"]{grid-column:1/-1}}


/* Phase 9 · The Unwritten Reach — spacious, one-room-at-a-time finale */
.atlas-sixth-realm{position:relative;margin:24px auto 10px;padding:clamp(16px,3vw,28px);width:min(100%,1120px);overflow:hidden;border:1px solid rgba(193,178,255,.23);border-radius:25px;background:radial-gradient(ellipse at 82% 8%,rgba(103,91,171,.22),transparent 38%),linear-gradient(155deg,rgba(16,25,55,.97),rgba(8,24,39,.98));box-shadow:0 22px 60px rgba(0,0,0,.2)}
.atlas-sixth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.atlas-sixth-head h3{margin:7px 0;color:#f7e9ff;font-size:clamp(21px,3vw,29px)}
.atlas-sixth-head p{max-width:620px;margin:0;color:#c7c5df;font-size:12px;line-height:1.7}
.atlas-sixth-lock{flex:none;padding:9px 12px;border:1px solid rgba(206,190,255,.24);border-radius:99px;color:#d4c8ef;background:rgba(111,91,159,.16);font-size:9px;font-weight:950;letter-spacing:.08em}
.atlas-sixth-lock.is-open{border-color:rgba(162,235,201,.4);color:#c4f3d9;background:rgba(61,139,111,.18)}
.atlas-sixth-progress{display:flex;align-items:center;gap:9px;margin:22px 0 16px;color:#777f9e;font-size:9px;font-weight:950;letter-spacing:.08em}
.atlas-sixth-progress i{height:1px;min-width:12px;flex:1;background:rgba(193,178,255,.18)}
.atlas-sixth-progress span.is-current{color:#f1dcff}
.atlas-sixth-progress span.is-done{color:#a8e5c6}
.atlas-sixth-landing{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(18px,4vw,42px);padding:clamp(16px,3vw,28px);border:1px solid rgba(198,184,255,.16);border-radius:20px;background:linear-gradient(125deg,rgba(42,43,86,.48),rgba(13,43,59,.38))}
.atlas-sixth-art{position:relative;display:grid;place-items:center;min-height:185px;overflow:hidden;border-radius:16px;background:radial-gradient(ellipse,rgba(113,102,193,.22),rgba(11,21,47,.05) 68%,transparent)}
.sixth-core{z-index:2;display:grid;place-items:center;width:74px;height:74px;border:1px solid rgba(255,234,190,.7);border-radius:50%;color:#fff1c7;background:radial-gradient(circle,rgba(255,235,185,.34),rgba(116,105,191,.22) 60%,transparent);box-shadow:0 0 35px rgba(199,178,255,.42);font-size:36px;animation:sixthCorePulse 3.5s ease-in-out infinite}
.sixth-orbit{position:absolute;width:145px;height:64px;border:1px solid rgba(196,183,255,.38);border-radius:50%;transform:rotate(-28deg);animation:sixthOrbit 14s linear infinite}
.sixth-orbit.orbit-two{width:175px;height:90px;transform:rotate(48deg);animation-direction:reverse;border-color:rgba(161,222,220,.28)}
.sixth-star{position:absolute;color:#f7e7b9;text-shadow:0 0 13px #c6b4ff;animation:sixthStar 2.5s ease-in-out infinite alternate}
.sixth-star.star-a{top:22%;left:23%}.sixth-star.star-b{right:21%;top:26%;animation-delay:.6s}.sixth-star.star-c{bottom:19%;left:31%;animation-delay:1.2s}
@keyframes sixthCorePulse{50%{transform:scale(1.07);filter:brightness(1.25)}}
@keyframes sixthOrbit{to{transform:rotate(332deg)}}
@keyframes sixthStar{to{opacity:.35;transform:translateY(-7px) scale(.8)}}
.atlas-sixth-landing-copy{max-width:510px}
.atlas-sixth-landing-copy strong{display:block;margin-bottom:9px;color:#fff0d0;font-size:clamp(17px,2.5vw,22px)}
.atlas-sixth-landing-copy p{margin:0 0 17px;color:#c9c5df;font-size:12px;line-height:1.8}
.atlas-sixth-landing-copy button{min-height:43px;padding:0 18px}
.atlas-sixth-landing-copy button:disabled{opacity:.48;cursor:not-allowed}
.atlas-sixth-room{margin-top:15px;padding:clamp(17px,3vw,30px);border:1px solid rgba(202,188,255,.2);border-radius:20px;background:linear-gradient(145deg,rgba(34,39,77,.55),rgba(8,31,45,.72))}
.atlas-sixth-room-head{max-width:720px;margin:0 auto 20px;text-align:center}
.atlas-sixth-room-head small,.atlas-sixth-ending small{color:#c9b7ee;font-size:9px;font-weight:950;letter-spacing:.16em}
.atlas-sixth-room-head h4{margin:9px 0;color:#fff0d0;font-size:clamp(20px,3vw,27px)}
.atlas-sixth-room-head p,.atlas-sixth-ending p{margin:0 auto;color:#d0cde0;font-size:12px;line-height:1.85}
.atlas-sixth-riddle{display:flex;justify-content:center;gap:clamp(22px,6vw,64px);padding:25px 10px;color:#fff0c5;font-size:clamp(36px,7vw,58px);text-shadow:0 0 22px rgba(197,180,255,.65)}
.atlas-sixth-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:16px auto;max-width:720px}
.atlas-sixth-choices button,.atlas-sixth-ending-choices button{min-height:48px;padding:10px 18px;border:1px solid rgba(210,195,255,.27);border-radius:13px;color:#f6edff;background:linear-gradient(140deg,rgba(100,82,151,.36),rgba(30,82,91,.34));font-size:11px;font-weight:900;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}
.atlas-sixth-choices button:active,.atlas-sixth-ending-choices button:active{transform:scale(.98)}
.atlas-sixth-choices button:disabled{opacity:.4}
.atlas-sixth-feedback{min-height:28px;margin:13px auto;text-align:center;color:#c7e8dc;font-size:11px;line-height:1.65}
.atlas-sixth-sequence{display:flex;justify-content:center;gap:12px;margin:23px auto}
.atlas-sixth-sequence span{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(209,194,255,.3);border-radius:13px;color:#fff0c7;background:rgba(9,17,39,.4);font-size:24px}
.atlas-sixth-back{display:block;margin:18px auto 0}
.atlas-sixth-boss-art{position:relative;display:grid;place-items:center;min-height:165px;overflow:hidden;border-radius:17px;background:radial-gradient(ellipse at center,rgba(128,111,199,.23),rgba(9,17,43,.12) 64%,transparent)}
.sixth-boss-halo{position:absolute;width:135px;height:135px;border:1px solid rgba(230,215,255,.5);border-radius:50%;box-shadow:0 0 45px rgba(187,161,255,.35),inset 0 0 35px rgba(173,147,255,.2);animation:sixthOrbit 18s linear infinite}
.sixth-boss-sigil{z-index:1;color:#fff1cb;font-size:70px;text-shadow:0 0 30px #c8b5ff;animation:sixthCorePulse 2.5s ease-in-out infinite}
.atlas-sixth-boss-art span{position:absolute;bottom:12px;color:#cfc1ef;font-size:8px;font-weight:950;letter-spacing:.18em}
.atlas-sixth-boss-bars{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:15px auto;max-width:740px}
.atlas-sixth-boss-bars label{display:grid;grid-template-columns:1fr auto;gap:7px;color:#ded8ef;font-size:9px;font-weight:950;letter-spacing:.08em}
.atlas-sixth-boss-bars label i{grid-column:1/-1;height:9px;overflow:hidden;border-radius:99px;background:rgba(0,0,0,.35)}
.atlas-sixth-boss-bars label em{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#bd879e,#f5d29a);transition:width .25s}
.atlas-sixth-boss-bars label+label em{background:linear-gradient(90deg,#61c9ad,#b3f2d2)}
.atlas-sixth-boss-phase{margin:13px auto;padding:10px;text-align:center;border-radius:10px;background:rgba(139,117,192,.16);color:#f1dda9;font-size:10px;font-weight:950;letter-spacing:.12em}
.atlas-sixth-ending{margin-top:15px;padding:clamp(20px,4vw,36px);text-align:center;border:1px solid rgba(211,193,255,.22);border-radius:20px;background:radial-gradient(ellipse at 50% 0,rgba(127,104,193,.25),transparent 65%),rgba(12,25,48,.65)}
.atlas-sixth-ending-mark{margin:0 auto 10px;color:#fff0c5;font-size:42px;text-shadow:0 0 25px #c9b7ff}
.atlas-sixth-ending h4{margin:8px 0 12px;color:#fff0d0;font-size:clamp(21px,3vw,28px)}
.atlas-sixth-ending p{max-width:650px}
.atlas-sixth-ending-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;max-width:850px;margin:22px auto 0}
.atlas-sixth-ending-choices button{display:grid;align-content:center;gap:7px;min-height:105px;text-align:left}
.atlas-sixth-ending-choices strong{color:#fff0d0;font-size:12px}
.atlas-sixth-ending-choices span{color:#cbc5df;font-size:10px;line-height:1.55;font-weight:500}
@media(max-width:700px){
 .atlas-sixth-realm{margin:18px 0;padding:14px;border-radius:19px}
 .atlas-sixth-head{flex-direction:column;gap:10px}
 .atlas-sixth-progress{gap:5px;font-size:7px;letter-spacing:.02em}
 .atlas-sixth-landing{grid-template-columns:1fr;gap:12px;padding:13px}
 .atlas-sixth-art{min-height:140px}
 .atlas-sixth-landing-copy{padding:3px 4px 5px}
 .atlas-sixth-room{padding:15px 12px}
 .atlas-sixth-choices{display:grid;grid-template-columns:1fr}
 .atlas-sixth-choices button{width:100%;min-height:46px}
 .atlas-sixth-boss-bars{gap:9px}
 .atlas-sixth-ending-choices{grid-template-columns:1fr}
 .atlas-sixth-ending-choices button{min-height:70px;text-align:center}
}
