/* Ancient Spirit Unlocks — the reward runway shares the existing Ancient
   Spirits shell, Hallowed veil and Gilded Tide language. Atmosphere never owns
   mechanics and remains below every word, item and control. */
.ancient-section-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,230px));gap:8px;margin:13px 0 2px}
.ancient-section-tabs button{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:58px;padding:9px 13px;border:1px solid rgba(186,144,235,.26);border-radius:10px;background:linear-gradient(145deg,rgba(26,23,37,.9),rgba(9,12,19,.94));color:var(--text-muted);text-align:left;cursor:pointer;overflow:hidden;transition:border-color .2s ease,transform .2s ease,background .2s ease,box-shadow .2s ease}
.ancient-section-tabs button::after{content:"";position:absolute;inset:auto 10px 0;height:2px;border-radius:99px;background:linear-gradient(90deg,transparent,#c9a7f2,#e4cb83,transparent);opacity:0;transform:scaleX(.3);transition:.2s ease}
.ancient-section-tabs button>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;color:#b98cff}
.ancient-section-tabs button>span svg{width:100%;height:100%}
.ancient-section-tabs button strong{font:600 13px/1.2 Cinzel,serif;color:var(--text)}
.ancient-section-tabs button small{font-size:9.5px;line-height:1.35;color:var(--text-dim)}
.ancient-section-tabs button:hover{transform:translateY(-1px);border-color:rgba(204,166,245,.55)}
.ancient-section-tabs button:focus-visible{outline:2px solid #c8a9f2;outline-offset:2px}
.ancient-section-tabs button[aria-selected="true"]{border-color:rgba(213,177,251,.78);background:linear-gradient(145deg,rgba(60,44,79,.62),rgba(16,19,29,.98));box-shadow:inset 0 0 24px rgba(171,113,225,.09),0 8px 25px rgba(0,0,0,.2)}
.ancient-section-tabs button[aria-selected="true"]::after{opacity:1;transform:scaleX(1)}
.ancient-section-panel[hidden]{display:none!important}.ancient-section-panel.active{animation:ancientUnlockPanelIn .32s ease both}

.ancient-unlocks-view{position:relative;display:grid;gap:13px;isolation:isolate}
.ancient-unlocks-hero{position:relative;display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:17px;min-height:142px;padding:22px 25px;overflow:hidden;border:1px solid rgba(192,158,225,.31);border-radius:13px;background:radial-gradient(ellipse at 10% 55%,rgba(169,111,224,.2),transparent 34%),radial-gradient(ellipse at 90% 0,rgba(126,224,235,.1),transparent 37%),linear-gradient(135deg,#171322,#0c131a 64%,#15131e);box-shadow:inset 0 1px rgba(255,255,255,.04),0 15px 34px rgba(0,0,0,.21)}
.ancient-unlocks-hero::before{content:"";position:absolute;inset:-65% -8% auto 38%;height:190%;border:1px solid rgba(212,181,247,.12);border-radius:50%;transform:rotate(-8deg);box-shadow:0 0 52px rgba(157,103,212,.09);pointer-events:none}
.ancient-unlocks-hero.gilded{border-color:rgba(220,187,101,.35);background:radial-gradient(ellipse at 12% 55%,rgba(39,159,150,.18),transparent 35%),radial-gradient(ellipse at 90% 0,rgba(221,179,75,.12),transparent 37%),linear-gradient(135deg,#101d20,#0a1319 62%,#1d190f)}
.ancient-unlocks-hero.between{background:radial-gradient(ellipse at 6% 55%,rgba(165,112,220,.16),transparent 34%),radial-gradient(ellipse at 96% 46%,rgba(42,163,152,.16),transparent 34%),linear-gradient(135deg,#171420,#0b1419 54%,#171710)}
.ancient-unlocks-hero-mark{position:relative;width:78px;height:78px;display:grid;place-items:center;color:#d3b5f6;border:1px solid rgba(211,181,246,.42);border-radius:50%;background:radial-gradient(circle,rgba(196,158,237,.18),rgba(12,15,23,.82) 67%);box-shadow:inset 0 0 24px rgba(195,156,237,.11),0 0 28px rgba(155,103,205,.15)}
.ancient-unlocks-hero.gilded .ancient-unlocks-hero-mark{color:#e2c36f;border-color:rgba(226,195,111,.48);background:radial-gradient(circle,rgba(67,190,177,.2),rgba(12,22,25,.86) 67%);box-shadow:inset 0 0 25px rgba(57,187,172,.1),0 0 28px rgba(208,165,64,.12)}
.ancient-unlocks-hero-mark svg{width:52px;height:52px}.ancient-unlocks-hero>div:last-child{position:relative;z-index:1}
.ancient-unlocks-hero small,.ancient-unlock-era-head small{display:block;margin-bottom:5px;color:#d3aeef;font-size:9.5px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.ancient-unlocks-hero.gilded small{color:#e3c46e}.ancient-unlocks-hero h1{margin:0;font:600 clamp(21px,3vw,31px)/1.15 Cinzel,serif;color:#f2edf8;text-shadow:0 2px 12px rgba(0,0,0,.55)}
.ancient-unlocks-hero p{max-width:850px;margin:8px 0 0;color:#b7b2c2;font-size:11px;line-height:1.65}

.ancient-unlock-path{position:relative;display:grid;grid-template-columns:minmax(145px,1fr) 34px minmax(145px,1fr) 34px minmax(145px,1fr) 34px minmax(145px,1fr);align-items:center;padding:11px 13px;border:1px solid rgba(144,156,182,.19);border-radius:11px;background:linear-gradient(180deg,rgba(20,24,34,.94),rgba(10,14,21,.96))}
.ancient-unlock-path>b{height:1px;background:linear-gradient(90deg,rgba(193,160,230,.23),rgba(225,191,102,.48));position:relative}.ancient-unlock-path>b::after{content:"";position:absolute;right:-1px;top:-2px;width:5px;height:5px;border-top:1px solid #d3bd82;border-right:1px solid #d3bd82;transform:rotate(45deg)}
.ancient-unlock-path-node{display:grid;grid-template-columns:31px minmax(0,1fr);gap:8px;align-items:center;min-width:0;color:#827f8a}
.ancient-unlock-path-node>i{width:29px;height:29px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;font-style:normal;background:rgba(8,11,17,.9);box-shadow:inset 0 0 12px rgba(255,255,255,.03)}
.ancient-unlock-path-node strong,.ancient-unlock-path-node small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ancient-unlock-path-node strong{font:600 10px/1.25 Cinzel,serif;color:currentColor}.ancient-unlock-path-node small{margin-top:2px;font-size:9.5px;color:#777584}
.ancient-unlock-path-node.complete.hallowed,.ancient-unlock-path-node.current.hallowed{color:#c9a9ef}.ancient-unlock-path-node.complete.gilded,.ancient-unlock-path-node.current.gilded{color:#e2c36d}.ancient-unlock-path-node.current>i{animation:ancientUnlockPathPulse 2.8s ease-in-out infinite;box-shadow:0 0 17px currentColor,inset 0 0 10px rgba(255,255,255,.08)}
.ancient-unlock-path-node.complete>i{color:#87d8ac}.ancient-unlock-path-node.sealed{opacity:.46}

.ancient-unlock-era-list{display:grid;gap:13px}.ancient-unlock-era{--era-tone:#c8a9f2;--era-secondary:#8fe9f4;position:relative;overflow:hidden;padding:16px;border:1px solid color-mix(in srgb,var(--era-tone) 34%,transparent);border-radius:13px;background:linear-gradient(145deg,color-mix(in srgb,var(--era-tone) 8%,#121720),rgba(8,12,18,.98) 58%,color-mix(in srgb,var(--era-secondary) 5%,#0a1017));box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 28px rgba(0,0,0,.18)}
.ancient-unlock-era::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(var(--era-tone),var(--era-secondary),transparent);box-shadow:0 0 17px var(--era-tone);opacity:.72}
.ancient-unlock-era-atmosphere{position:absolute;z-index:0;inset:0;overflow:hidden;pointer-events:none;opacity:.56}
.ancient-unlock-era-atmosphere::before{content:"";position:absolute;width:66%;height:180%;right:-16%;top:-45%;border:1px solid color-mix(in srgb,var(--era-tone) 16%,transparent);border-radius:50%;transform:rotate(-13deg);box-shadow:inset 0 0 55px color-mix(in srgb,var(--era-secondary) 5%,transparent)}
.ancient-unlock-era-atmosphere i{position:absolute;bottom:-16px;width:8px;height:8px;border:1px solid color-mix(in srgb,var(--era-secondary) 70%,white 8%);border-radius:50%;opacity:0;box-shadow:0 0 10px color-mix(in srgb,var(--era-secondary) 30%,transparent)}
.ancient-unlock-era.next .ancient-unlock-era-atmosphere i{animation:ancientUnlockMote 8s ease-in infinite}.ancient-unlock-era-atmosphere i:nth-child(1){left:8%;--drift:18px;animation-delay:-2s}.ancient-unlock-era-atmosphere i:nth-child(2){left:29%;width:5px;height:5px;--drift:-12px;animation-delay:-6s}.ancient-unlock-era-atmosphere i:nth-child(3){left:58%;width:11px;height:11px;--drift:22px;animation-delay:-4s}.ancient-unlock-era-atmosphere i:nth-child(4){left:77%;width:4px;height:4px;--drift:-17px;animation-delay:-1s}.ancient-unlock-era-atmosphere i:nth-child(5){left:91%;width:7px;height:7px;--drift:-9px;animation-delay:-7s}
.ancient-unlock-era.gilded .ancient-unlock-era-atmosphere i{border-radius:60% 45% 55% 35%;transform:rotate(35deg);background:linear-gradient(135deg,rgba(238,210,129,.58),rgba(69,189,177,.05));border-color:rgba(233,201,112,.54)}
.ancient-unlock-era-head{position:relative;z-index:1;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:14px;padding:2px 3px 14px;border-bottom:1px solid color-mix(in srgb,var(--era-tone) 18%,transparent)}
.ancient-unlock-era-sigil{width:60px;height:60px;display:grid;place-items:center;color:var(--era-tone);border:1px solid color-mix(in srgb,var(--era-tone) 45%,transparent);border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--era-tone) 16%,transparent),rgba(8,12,18,.86) 68%);box-shadow:inset 0 0 18px color-mix(in srgb,var(--era-tone) 10%,transparent),0 0 22px color-mix(in srgb,var(--era-tone) 12%,transparent)}
.ancient-unlock-era-sigil svg{width:40px;height:40px}.ancient-unlock-era-head h2{margin:0;font:600 20px/1.15 Cinzel,serif;color:#eee8f3}.ancient-unlock-era-head p{margin:5px 0 0;color:#9e99a8;font-size:10px;line-height:1.5}.ancient-unlock-era-head em{align-self:start;margin-top:3px;padding:5px 8px;border:1px solid color-mix(in srgb,var(--era-tone) 42%,transparent);border-radius:999px;color:var(--era-tone);background:color-mix(in srgb,var(--era-tone) 8%,rgba(9,12,18,.88));font-size:9.5px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.ancient-unlock-featured{position:relative;z-index:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-top:12px}.ancient-unlock-card{--unlock-tone:#c8a9f2;--unlock-secondary:#8fe9f4;position:relative;display:grid;grid-template-columns:43px minmax(0,1fr) 11px;gap:9px;align-items:center;min-width:0;min-height:76px;padding:10px;border:1px solid color-mix(in srgb,var(--unlock-tone) 22%,rgba(93,104,126,.18));border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--unlock-tone) 7%,rgba(19,23,32,.97)),rgba(8,12,18,.96));color:var(--text);text-align:left;cursor:pointer;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.ancient-unlock-card::before{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:linear-gradient(var(--unlock-tone),var(--unlock-secondary));opacity:.68}
.ancient-unlock-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--unlock-tone) 62%,transparent);box-shadow:0 9px 22px rgba(0,0,0,.23),0 0 16px color-mix(in srgb,var(--unlock-tone) 10%,transparent)}.ancient-unlock-card:focus-visible{outline:2px solid var(--unlock-tone);outline-offset:2px}
.ancient-unlock-card-icon{width:42px;height:42px;display:grid;place-items:center;color:var(--unlock-tone);border:1px solid color-mix(in srgb,var(--unlock-tone) 36%,transparent);border-radius:9px;background:radial-gradient(circle at 40% 34%,color-mix(in srgb,var(--unlock-secondary) 14%,transparent),rgba(8,12,18,.88));box-shadow:inset 0 0 13px color-mix(in srgb,var(--unlock-tone) 8%,transparent)}
.ancient-unlock-card-icon svg{width:30px;height:30px}.ancient-unlock-card-copy{min-width:0}.ancient-unlock-card-copy>*{display:block}.ancient-unlock-card-copy>small{margin-bottom:3px;color:var(--unlock-tone);font-size:9.5px;font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.07em}.ancient-unlock-card-copy>strong{font:600 11px/1.3 Cinzel,serif;color:#e9e4ed}.ancient-unlock-card-copy>span{display:-webkit-box;margin-top:4px;overflow:hidden;color:#8e8a99;font-size:9.5px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ancient-unlock-card-arrow{color:var(--unlock-tone);font-size:18px;font-style:normal;opacity:.6}
.ancient-unlock-featured .ancient-unlock-card{grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;align-content:start;min-height:145px;padding:12px}.ancient-unlock-featured .ancient-unlock-card-icon{width:50px;height:50px}.ancient-unlock-featured .ancient-unlock-card-copy{grid-column:1/-1}.ancient-unlock-featured .ancient-unlock-card-arrow{position:absolute;right:10px;top:12px}.ancient-unlock-featured .ancient-unlock-card-copy>strong{font-size:12px}.ancient-unlock-featured .ancient-unlock-card-copy>span{-webkit-line-clamp:3}
.ancient-unlock-groups{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.ancient-unlock-group{border:1px solid rgba(128,137,158,.2);border-radius:9px;background:rgba(8,12,18,.61);overflow:hidden}.ancient-unlock-group>summary{display:grid;grid-template-columns:28px minmax(0,1fr) auto 13px;gap:8px;align-items:center;min-height:48px;padding:7px 10px;color:#aaa4b2;cursor:pointer;list-style:none}.ancient-unlock-group>summary::-webkit-details-marker{display:none}.ancient-unlock-group>summary>span{width:27px;height:27px;color:var(--era-tone)}.ancient-unlock-group>summary svg{width:100%;height:100%}.ancient-unlock-group>summary strong{font:600 10px/1.3 Cinzel,serif;color:#d7d1de}.ancient-unlock-group>summary small{font-size:9.5px;color:#74717d}.ancient-unlock-group>summary i{font-size:15px;font-style:normal;color:var(--era-tone);transition:transform .18s ease}.ancient-unlock-group[open]>summary{background:color-mix(in srgb,var(--era-tone) 5%,transparent);border-bottom:1px solid color-mix(in srgb,var(--era-tone) 16%,transparent)}.ancient-unlock-group[open]>summary i{transform:rotate(180deg)}.ancient-unlock-group-body{display:grid;gap:6px;padding:7px}.ancient-unlock-group-body .ancient-unlock-card{min-height:70px}
.ancient-unlock-era>footer{position:relative;z-index:1;display:flex;justify-content:flex-end;gap:14px;margin-top:9px;color:#777481;font-size:9.5px}.ancient-unlock-era>footer span::before{content:"◇";margin-right:5px;color:var(--era-tone)}
.ancient-unlock-era.sealed{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:15px;min-height:118px;filter:saturate(.68);border-color:rgba(119,112,128,.25);background:linear-gradient(145deg,rgba(19,20,27,.92),rgba(8,11,16,.96))}.ancient-unlock-sealed-mark{width:72px;height:72px;display:grid;place-items:center;color:#696674;border:1px solid rgba(129,122,139,.28);border-radius:50%;background:#0b0e14}.ancient-unlock-sealed-mark svg{width:46px;height:46px}.ancient-unlock-era.sealed small{color:#77717f;font-size:9.5px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.ancient-unlock-era.sealed h2{margin:4px 0;font:600 17px/1.2 Cinzel,serif;color:#aaa5af}.ancient-unlock-era.sealed p{margin:0;color:#777481;font-size:10px;line-height:1.5}.ancient-unlock-era.sealed>span{padding:5px 9px;border:1px solid rgba(136,129,145,.27);border-radius:999px;color:#85808c;font-size:9.5px;font-weight:800;text-transform:uppercase}

.ancient-unlock-detail-backdrop{position:fixed;z-index:12000;inset:0;display:grid;place-items:center;padding:24px;background:rgba(3,5,9,.76);backdrop-filter:blur(5px);opacity:0;transition:opacity .18s ease}.ancient-unlock-detail-backdrop[hidden]{display:none}.ancient-unlock-detail-backdrop.open{opacity:1}.ancient-unlock-detail{position:relative;width:min(780px,calc(100vw - 32px));max-height:min(82vh,820px);overflow:auto;border:1px solid rgba(198,164,231,.38);border-radius:14px;background:linear-gradient(145deg,#171722,#0c1219 66%,#11151c);box-shadow:0 25px 80px rgba(0,0,0,.66),inset 0 1px rgba(255,255,255,.04);transform:translateY(10px) scale(.985);transition:transform .18s ease}.ancient-unlock-detail-backdrop.open .ancient-unlock-detail{transform:none}.ancient-unlock-detail-close{position:sticky;z-index:3;float:right;top:11px;margin:11px 11px -55px 0;width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(200,175,225,.32);border-radius:10px;background:rgba(8,11,17,.93);color:#e8e1ed;font-size:24px;line-height:1;cursor:pointer}.ancient-unlock-detail-close:focus-visible{outline:2px solid #c8a9f2;outline-offset:2px}.ancient-unlock-detail-hero{--unlock-tone:#c8a9f2;--unlock-secondary:#8fe9f4;display:grid;grid-template-columns:76px minmax(0,1fr);gap:15px;align-items:center;padding:20px 70px 18px 20px;border-bottom:1px solid color-mix(in srgb,var(--unlock-tone) 20%,transparent);background:radial-gradient(ellipse at 7% 40%,color-mix(in srgb,var(--unlock-secondary) 12%,transparent),transparent 35%),linear-gradient(120deg,color-mix(in srgb,var(--unlock-tone) 10%,transparent),transparent)}.ancient-unlock-detail-hero>span{width:72px;height:72px;display:grid;place-items:center;color:var(--unlock-tone);border:1px solid color-mix(in srgb,var(--unlock-tone) 42%,transparent);border-radius:12px;background:rgba(8,12,18,.76);box-shadow:inset 0 0 20px color-mix(in srgb,var(--unlock-secondary) 9%,transparent)}.ancient-unlock-detail-hero>span svg{width:52px;height:52px}.ancient-unlock-detail-hero small{display:block;color:var(--unlock-tone);font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.ancient-unlock-detail-hero h2{margin:4px 0;font:600 21px/1.2 Cinzel,serif;color:#f0ebf4}.ancient-unlock-detail-hero p{margin:6px 0 0;color:#a7a1ae;font-size:10px;line-height:1.55}.ancient-unlock-detail-copy{padding:15px 20px 4px;color:#b6b0bc;font-size:10px;line-height:1.7}.ancient-unlock-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:11px 20px}.ancient-unlock-facts span{display:flex;gap:7px;align-items:flex-start;min-height:42px;padding:8px;border:1px solid rgba(134,143,161,.19);border-radius:8px;background:rgba(8,12,18,.58);color:#a8a3af;font-size:9.5px;line-height:1.45}.ancient-unlock-facts i{color:#d6bcf2;font-style:normal}.ancient-unlock-items{padding:7px 20px 14px}.ancient-unlock-items>header{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:7px}.ancient-unlock-items>header small{font-size:9.5px;color:#777481;text-transform:uppercase;letter-spacing:.12em}.ancient-unlock-items>header strong{font-size:9.5px;color:#a8a2af}.ancient-unlock-items>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ancient-unlock-item{display:grid;grid-template-columns:39px minmax(0,1fr) 10px;gap:8px;align-items:center;min-height:55px;padding:7px 9px;border:1px solid rgba(137,148,169,.22);border-radius:8px;background:linear-gradient(145deg,rgba(24,28,38,.94),rgba(9,13,19,.94));color:#dcd7e1;text-align:left;cursor:pointer;transition:border-color .18s ease,transform .18s ease}.ancient-unlock-item:hover{transform:translateY(-1px);border-color:rgba(201,168,235,.56)}.ancient-unlock-item:focus-visible{outline:2px solid #c8a9f2;outline-offset:2px}.ancient-unlock-item>span:first-child{width:38px;height:38px;display:grid;place-items:center;color:#c9a9ef;border:1px solid rgba(195,160,232,.22);border-radius:7px;background:#0b1017}.ancient-unlock-item>span:first-child svg{width:29px;height:29px}.ancient-unlock-item>span:nth-child(2){min-width:0}.ancient-unlock-item strong,.ancient-unlock-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ancient-unlock-item strong{font-size:9.5px;color:#ddd7e2}.ancient-unlock-item small{margin-top:3px;font-size:9.5px;color:#777481}.ancient-unlock-item>i{color:#c9a9ef;font-size:16px;font-style:normal}.ancient-unlock-detail-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 20px 20px;border-top:1px solid rgba(139,146,162,.15)}.ancient-unlock-detail-actions button{min-height:44px;padding:9px 15px;border:1px solid rgba(200,166,235,.52);border-radius:8px;background:linear-gradient(135deg,rgba(126,80,170,.54),rgba(43,44,79,.76));color:#f0e9f5;font-size:10px;font-weight:800;cursor:pointer}.ancient-unlock-detail-actions button.secondary{border-color:rgba(139,146,162,.28);background:#11151d;color:#aaa5b0}
.ancient-unlock-special-item .item-guide-entry{grid-template-columns:1fr}

@keyframes ancientUnlockPanelIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes ancientUnlockPathPulse{0%,100%{transform:scale(.94);filter:brightness(.9)}50%{transform:scale(1.06);filter:brightness(1.28)}}
@keyframes ancientUnlockMote{0%{opacity:0;transform:translate3d(0,10px,0) scale(.6)}18%{opacity:.46}72%{opacity:.18}100%{opacity:0;transform:translate3d(var(--drift),-185px,0) scale(1.15)}}

@media(max-width:1000px){.ancient-unlock-featured{grid-template-columns:repeat(3,minmax(0,1fr))}.ancient-unlock-featured .ancient-unlock-card{min-height:132px}.ancient-unlock-path{grid-template-columns:repeat(7,minmax(0,auto))}.ancient-unlock-path-node strong{white-space:normal}.ancient-unlock-path-node small{display:none}}
@media(max-width:720px){.ancient-section-tabs{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.ancient-unlocks-hero{grid-template-columns:62px minmax(0,1fr);min-height:122px;padding:16px}.ancient-unlocks-hero-mark{width:59px;height:59px}.ancient-unlocks-hero-mark svg{width:40px;height:40px}.ancient-unlock-path{grid-template-columns:1fr;padding:12px 14px}.ancient-unlock-path>b{width:1px;height:17px;margin-left:14px;background:linear-gradient(#c9a9ef,#e0c16c)}.ancient-unlock-path>b::after{right:-2px;top:auto;bottom:-1px;transform:rotate(135deg)}.ancient-unlock-path-node{grid-template-columns:31px minmax(0,1fr)}.ancient-unlock-path-node small{display:block}.ancient-unlock-featured{grid-template-columns:repeat(2,minmax(0,1fr))}.ancient-unlock-groups{grid-template-columns:1fr}.ancient-unlock-era-head{grid-template-columns:52px minmax(0,1fr)}.ancient-unlock-era-sigil{width:50px;height:50px}.ancient-unlock-era-head>em{grid-column:2;justify-self:start;margin:0}.ancient-unlock-era.sealed{grid-template-columns:57px minmax(0,1fr)}.ancient-unlock-era.sealed>span{grid-column:2;justify-self:start}.ancient-unlock-sealed-mark{width:54px;height:54px}.ancient-unlock-facts{grid-template-columns:1fr}.ancient-unlock-detail-backdrop{padding:12px}.ancient-unlock-detail{width:calc(100vw - 24px);max-height:88vh}.ancient-unlock-detail-hero{grid-template-columns:58px minmax(0,1fr);padding:16px 64px 14px 14px}.ancient-unlock-detail-hero>span{width:56px;height:56px}.ancient-unlock-detail-hero>span svg{width:40px;height:40px}.ancient-unlock-items{padding-inline:14px}.ancient-unlock-detail-copy{padding-inline:14px}.ancient-unlock-facts{padding-inline:14px}.ancient-unlock-detail-actions{padding-inline:14px}}
@media(max-width:520px){.ancient-section-tabs button{grid-template-columns:29px minmax(0,1fr);column-gap:7px;padding:8px;min-height:56px}.ancient-section-tabs button>span{width:27px;height:27px}.ancient-section-tabs button small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ancient-unlocks-view{gap:9px}.ancient-unlocks-hero{grid-template-columns:1fr;padding:16px}.ancient-unlocks-hero-mark{width:50px;height:50px}.ancient-unlocks-hero h1{font-size:20px}.ancient-unlock-era{padding:12px}.ancient-unlock-featured{grid-template-columns:1fr}.ancient-unlock-featured .ancient-unlock-card{grid-template-columns:44px minmax(0,1fr) 11px;grid-template-rows:auto;min-height:76px}.ancient-unlock-featured .ancient-unlock-card-icon{width:43px;height:43px}.ancient-unlock-featured .ancient-unlock-card-copy{grid-column:auto}.ancient-unlock-featured .ancient-unlock-card-arrow{position:static}.ancient-unlock-featured .ancient-unlock-card-copy>span{-webkit-line-clamp:2}.ancient-unlock-era-head h2{font-size:17px}.ancient-unlock-era-head p{font-size:9.5px}.ancient-unlock-era>footer{justify-content:flex-start;flex-wrap:wrap}.ancient-unlock-items>div{grid-template-columns:1fr}.ancient-unlock-detail-backdrop{padding:0;place-items:end center}.ancient-unlock-detail{width:100%;max-height:91vh;border-radius:15px 15px 0 0;border-bottom:0;transform:translateY(18px)}.ancient-unlock-detail-actions{position:sticky;bottom:0;background:rgba(11,15,22,.96);backdrop-filter:blur(8px);flex-direction:column}.ancient-unlock-detail-actions button{width:100%}}

body.reduced-motion .ancient-section-panel.active,body.reduced-motion .ancient-unlock-path-node.current>i,body.reduced-motion .ancient-unlock-era-atmosphere i,body.reduced-motion .ancient-unlock-card,body.reduced-motion .ancient-unlock-detail,body.reduced-motion .ancient-unlock-detail-backdrop{animation:none!important;transition-duration:.01ms!important}
body.reduced-motion .ancient-unlock-era.next .ancient-unlock-era-atmosphere{opacity:.34;background:radial-gradient(circle at 72% 18%,color-mix(in srgb,var(--era-tone) 11%,transparent),transparent 34%)}
body.battery-saver .ancient-unlock-era-atmosphere{display:none}.battery-saver .ancient-unlocks-hero::before{display:none}.battery-saver .ancient-unlock-card,.battery-saver .ancient-section-tabs button,.battery-saver .ancient-unlock-detail,.battery-saver .ancient-unlock-detail-backdrop{animation:none!important;transition:none!important;backdrop-filter:none}

/* Keep the catalogue readable when the movable Nexus quick-view was left open
   elsewhere. The player's setting and open state are preserved for other pages. */
body.ancient-unlocks-open #nexus-fab-panel{display:none!important}

/* v2 — one continuous Ancient Spirit journey. Every unlock remains visible;
   collection cards open the same detail sheet and item inspectors as before. */
.ancient-unlock-journey{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:min(100%,980px);margin:0 auto;padding:16px 0 2px}
.ancient-unlock-journey::before{content:"";position:absolute;z-index:0;left:36px;top:17px;bottom:3px;width:1px;background:linear-gradient(transparent,color-mix(in srgb,var(--era-tone) 48%,transparent) 4%,color-mix(in srgb,var(--era-secondary) 40%,transparent) 94%,transparent);box-shadow:0 0 9px color-mix(in srgb,var(--era-tone) 18%,transparent)}
.ancient-unlock-card.journey{z-index:1;grid-template-columns:43px 70px minmax(0,1fr) 18px;gap:14px;min-height:124px;padding:15px 17px 15px 14px;border-color:color-mix(in srgb,var(--unlock-tone) 29%,rgba(93,104,126,.18));background:radial-gradient(circle at 11% 50%,color-mix(in srgb,var(--unlock-secondary) 9%,transparent),transparent 24%),linear-gradient(112deg,color-mix(in srgb,var(--unlock-tone) 8%,rgba(19,23,32,.98)),rgba(8,12,18,.98) 72%)}
.ancient-unlock-card.journey::before{width:3px}.ancient-unlock-card.journey.featured{border-color:color-mix(in srgb,var(--unlock-tone) 43%,transparent);box-shadow:inset 0 0 30px color-mix(in srgb,var(--unlock-tone) 4%,transparent),0 12px 24px rgba(0,0,0,.12)}
.ancient-unlock-journey-index{position:relative;width:34px;height:34px;display:grid;place-items:center;justify-self:center;border:1px solid color-mix(in srgb,var(--unlock-tone) 62%,#2b303c);border-radius:50%;background:#0b0f16;color:var(--unlock-tone);box-shadow:0 0 0 5px #0b0f16,0 0 15px color-mix(in srgb,var(--unlock-tone) 18%,transparent);font:800 9.5px/1 Cinzel,serif;letter-spacing:.03em}
.ancient-unlock-card.journey .ancient-unlock-card-icon{width:68px;height:68px;border-radius:14px}.ancient-unlock-card.journey .ancient-unlock-card-icon>svg{width:54px;height:54px}
.ancient-unlock-card.journey .ancient-unlock-card-copy>strong{margin-top:5px;font-size:17px;line-height:1.25}.ancient-unlock-card.journey .ancient-unlock-card-copy>span:not(.ancient-unlock-card-eyebrow):not(.ancient-unlock-card-meta){display:block;margin-top:7px;color:#a6a1ad;font-size:11px;line-height:1.55;overflow:visible;-webkit-line-clamp:unset}
.ancient-unlock-card-eyebrow{display:flex!important;align-items:center;flex-wrap:wrap;gap:7px}.ancient-unlock-card-eyebrow small{color:var(--unlock-tone);font-size:9.5px;font-weight:900;text-transform:uppercase;letter-spacing:.075em}.ancient-unlock-card-eyebrow em{padding:3px 7px;border:1px solid color-mix(in srgb,var(--unlock-secondary) 25%,transparent);border-radius:999px;color:#8f91a0;background:rgba(6,10,15,.48);font-size:9.5px;font-style:normal;line-height:1.2}
.ancient-unlock-card-meta{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.ancient-unlock-card-meta b{padding:4px 7px;border:1px solid color-mix(in srgb,var(--unlock-tone) 19%,rgba(121,131,151,.18));border-radius:6px;background:rgba(8,12,18,.54);color:#858390;font-size:9.5px;font-weight:700;line-height:1.3}.ancient-unlock-card.journey .ancient-unlock-card-arrow{font-size:25px}
.ancient-unlock-feature-icon{display:block;overflow:visible}.ancient-unlock-feature-icon .veil-orbit{transform-box:fill-box;transform-origin:center;animation:ancientUnlockVeilOrbit 8s ease-in-out infinite alternate}.ancient-unlock-feature-icon .attunement-orbit{transform-box:fill-box;transform-origin:center;animation:ancientUnlockAttunementOrbit 15s linear infinite}
.ancient-unlock-feature-icon .relic-compass-orbit{transform-box:fill-box;transform-origin:center;animation:ancientUnlockAttunementOrbit 18s linear infinite reverse}
@keyframes ancientUnlockVeilOrbit{from{transform:translateX(-1.5px);opacity:.42}to{transform:translateX(1.5px);opacity:.84}}
@keyframes ancientUnlockAttunementOrbit{to{transform:rotate(360deg)}}
body.reduced-motion .ancient-unlock-feature-icon *,body.battery-saver .ancient-unlock-feature-icon *{animation:none!important}

details.ancient-unlock-era>.ancient-unlock-era-head{cursor:pointer;list-style:none;user-select:none}
details.ancient-unlock-era>.ancient-unlock-era-head::-webkit-details-marker{display:none}
details.ancient-unlock-era>.ancient-unlock-era-head::marker{content:""}
.ancient-unlock-era-state{display:flex;align-items:center;gap:9px}.ancient-unlock-era-state>i{width:30px;height:30px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--era-tone) 30%,transparent);border-radius:50%;color:var(--era-tone);background:rgba(7,10,16,.62);font-size:17px;font-style:normal;transition:transform .2s ease,background .2s ease}
details.ancient-unlock-era[open] .ancient-unlock-era-state>i{transform:rotate(180deg);background:color-mix(in srgb,var(--era-tone) 9%,rgba(7,10,16,.75))}
details.ancient-unlock-era:not([open])>.ancient-unlock-era-head{padding-bottom:2px;border-bottom-color:transparent}
details.ancient-unlock-era:not([open])>.ancient-unlock-era-head:hover .ancient-unlock-era-state>i{border-color:color-mix(in srgb,var(--era-tone) 66%,transparent);box-shadow:0 0 13px color-mix(in srgb,var(--era-tone) 15%,transparent)}

@media(max-width:520px){
  .ancient-unlock-journey{gap:8px;padding-top:12px}
  .ancient-unlock-journey::before{left:17px}
  .ancient-unlock-card.journey{grid-template-columns:28px 52px minmax(0,1fr) 10px;gap:9px;min-height:112px;padding:12px 9px 12px 6px}
  .ancient-unlock-journey-index{width:27px;height:27px;box-shadow:0 0 0 3px #0b0f16,0 0 10px color-mix(in srgb,var(--unlock-tone) 17%,transparent)}
  .ancient-unlock-card.journey .ancient-unlock-card-icon{width:50px;height:50px;border-radius:10px}.ancient-unlock-card.journey .ancient-unlock-card-icon>svg{width:42px;height:42px}
  .ancient-unlock-card.journey .ancient-unlock-card-copy>strong{font-size:13px}.ancient-unlock-card.journey .ancient-unlock-card-copy>span:not(.ancient-unlock-card-eyebrow):not(.ancient-unlock-card-meta){font-size:9.5px;line-height:1.5}
  .ancient-unlock-card-eyebrow em{display:none}.ancient-unlock-card-meta b{font-size:9.5px}.ancient-unlock-card-meta b:nth-child(n+2){display:none}.ancient-unlock-card.journey .ancient-unlock-card-arrow{font-size:18px}
}
@media(max-width:720px){
  .ancient-unlock-era-state{grid-column:2;justify-self:start}
}
@media(max-width:350px){
  .ancient-unlock-journey::before{left:32px}
  .ancient-unlock-card.journey{grid-template-columns:52px minmax(0,1fr) 10px;gap:8px;padding-left:7px}
  .ancient-unlock-journey-index{display:none}
}
