/* MU-TITAN top navigation bar, live online pill and beta/launch card.
   Loaded after the other theme files, so these rules win. */

/* ---------- Top bar ---------- */
body.titan-skin>header{position:fixed!important;top:0;left:0;right:0;z-index:60;display:flex!important;align-items:center;gap:14px;height:68px!important;min-height:68px!important;padding:0 max(20px,calc((100vw - 1320px)/2))!important;background:linear-gradient(180deg,rgba(20,13,8,.88),rgba(14,9,6,.74))!important;-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);border:0!important;border-bottom:1px solid rgba(214,170,92,.22)!important;box-shadow:0 6px 22px rgba(0,0,0,.35);transition:background .25s,box-shadow .25s}
body.titan-skin>header::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(243,197,107,.75) 30%,rgba(243,197,107,.75) 70%,transparent);pointer-events:none}
body.titan-skin>header.tn-scrolled{background:linear-gradient(180deg,rgba(18,12,8,.97),rgba(14,9,6,.94))!important;box-shadow:0 10px 30px rgba(0,0,0,.6)}
body.titan-skin>header::before{content:none!important}

/* Brand */
.tn-brand{display:flex;align-items:center;flex-shrink:0;height:100%;padding-right:6px;text-decoration:none}
.tn-brand img{display:block;height:40px;width:auto;filter:drop-shadow(0 0 10px rgba(240,180,80,.25));transition:filter .2s,transform .2s}
.tn-brand:hover img{filter:drop-shadow(0 0 14px rgba(255,200,100,.5));transform:translateY(-1px)}

/* Links */
body.titan-skin>header nav{flex:1;display:flex!important;align-items:center;justify-content:flex-start;gap:2px;height:68px!important;margin:0;padding:0!important;background:none!important;border:0!important;position:static!important}
body.titan-skin>header nav>a:not(.dd-nav-discord){height:40px!important;padding:0 14px!important;border-radius:4px;font:600 12.5px Cinzel,Georgia,'Times New Roman',serif!important;letter-spacing:.14em;color:#d8c194!important;transition:color .15s,background .15s}
body.titan-skin>header nav>a:not(.dd-nav-discord)+a:not(.dd-nav-discord)::before{display:none!important}
body.titan-skin>header nav>a:not(.dd-nav-discord)::after{bottom:4px!important}
body.titan-skin>header nav>a:not(.dd-nav-discord):hover{background:rgba(214,170,92,.08)!important}
body.titan-skin>header nav>a.active{background:rgba(214,170,92,.12)!important;color:#ffe9b3!important}
body.titan-skin>header nav>a:not(.dd-nav-discord):hover::after,body.titan-skin>header nav>a.active::after{left:12px!important;right:12px!important}
body.titan-skin>header nav a.dd-nav-discord{margin:0 0 0 auto!important;height:36px!important;border-radius:999px!important;padding:0 14px!important}
body.titan-skin>header nav .lang-switch{margin:0 0 0 8px!important}
body.titan-skin>header nav .lang-current{height:36px!important;border-radius:999px!important;padding:0 12px!important}

/* Live online pill */
.tn-online{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;height:36px;padding:0 14px 0 12px;border-radius:999px;border:1px solid rgba(74,222,128,.45);background:linear-gradient(180deg,rgba(22,101,52,.32),rgba(10,50,25,.32));color:#bbf7d0;font:600 13px Inter,Arial,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:0 0 14px rgba(74,222,128,.12);transition:border-color .15s,box-shadow .15s}
.tn-online[hidden]{display:none}
.tn-online:hover{border-color:#4ade80;box-shadow:0 0 18px rgba(74,222,128,.3);color:#dcfce7}
.tn-online b{color:#4ade80;font-weight:700;font-variant-numeric:tabular-nums}
.tn-online i,.dd-online-row dt i,.dd-live-badge i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 0 rgba(74,222,128,.7);animation:tn-pulse 2s infinite}
@keyframes tn-pulse{0%{box-shadow:0 0 0 0 rgba(74,222,128,.65)}70%{box-shadow:0 0 0 8px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
@media(prefers-reduced-motion:reduce){.tn-online i,.dd-online-row dt i,.dd-live-badge i{animation:none}}

/* Sidebar: players online in green */
body.titan-skin .dd-realm .dd-online-row dt{display:flex;align-items:center;gap:8px;color:#86efac!important}
body.titan-skin .dd-realm .dd-online-row dd{color:#4ade80!important;font-weight:700;text-shadow:0 0 10px rgba(74,222,128,.35)}

/* ---------- Beta is live + official launch countdown ---------- */
.dd-live-badge{display:inline-flex;align-items:center;gap:8px;padding:5px 14px;border:1px solid rgba(74,222,128,.55);border-radius:999px;background:rgba(22,101,52,.28);color:#bbf7d0;font:700 11px Inter,Arial,sans-serif;letter-spacing:.18em}
body.titan-skin .dd-beta.is-live,body.titan-skin .dd-beta.is-launched{border-color:rgba(214,170,92,.5)}
body.titan-skin .dd-beta .dd-beta-head{display:flex;flex-direction:column;align-items:center;gap:12px}
body.titan-skin .dd-beta .dd-beta-note{margin:10px auto 0;max-width:560px;color:#cbbd9f;font-size:14px;line-height:1.6}
.dd-beta-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.dd-beta-actions .button{min-width:150px;justify-content:center}

/* ---------- Small screens ---------- */
@media(max-width:850px){
 body.titan-skin>header{height:60px!important;min-height:60px!important;padding:0 12px!important;flex-wrap:wrap;gap:10px}
 body.titan-skin>header.menu-open{height:auto!important}
 .tn-brand{height:60px}.tn-brand img{height:32px}
 .tn-online{margin-left:auto;height:34px;padding:0 11px 0 10px;font-size:12px}
 body.titan-skin>header .menu-toggle{display:block!important;order:3}
 body.titan-skin>header nav{display:none!important;order:5;flex-basis:100%;height:auto!important}
 body.titan-skin>header.menu-open nav{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:6px 0 14px!important}
 body.titan-skin>header nav>a:not(.dd-nav-discord){height:auto!important;min-height:46px}
 body.titan-skin>header nav a.dd-nav-discord{margin:0!important;height:46px!important;border-radius:4px!important}
 body.titan-skin>header nav .lang-switch{margin:0!important}
 body.titan-skin>header nav .lang-current{height:46px!important;border-radius:4px!important;width:100%}
}
@media(max-width:380px){.tn-online span{display:none}}

/* ---------- Server stages ---------- */
.dd-stages{margin:14px 0 18px;padding:22px 24px;border:1px solid rgba(214,170,92,.4);border-radius:6px;background:linear-gradient(180deg,rgba(44,30,16,.9),rgba(20,14,9,.94));box-shadow:inset 0 0 0 1px rgba(0,0,0,.5)}
.dd-stages-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin-bottom:16px}
.dd-stages-head .eyebrow{width:100%;margin:0}
.dd-stages-head h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:24px;color:#f1dcae}
.dd-stages-head p{margin:0;color:#cbbd9f;font-size:14px}
.dd-stages-head strong{color:#ffd98a;font-variant-numeric:tabular-nums}
.dd-stage-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dd-stage-list>li{padding:12px 12px 10px;border:1px solid rgba(214,170,92,.22);border-radius:5px;background:rgba(0,0,0,.28);opacity:.82}
.dd-stage-list>li.is-current{opacity:1;border-color:#d6aa5c;background:linear-gradient(180deg,rgba(214,170,92,.16),rgba(0,0,0,.3));box-shadow:0 0 18px rgba(214,170,92,.15)}
.dd-stage-list>li.is-done{opacity:.55}
.dd-stage-top{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid rgba(214,170,92,.18)}
.dd-stage-top b{font:700 15px Cinzel,Georgia,serif;color:#f4d58d;letter-spacing:.04em}
.dd-stage-top span{font-size:12px;color:#a8977a;white-space:nowrap}
.dd-stage-list>li.is-current .dd-stage-top span{color:#86efac}
.dd-stage-list ul{list-style:none;margin:0;padding:0;display:grid;gap:5px;font-size:12.5px;line-height:1.45;color:#cbbd9f}
.dd-stage-list ul strong{color:#f1dcae}
@media(max-width:900px){.dd-stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.dd-stages{padding:18px 14px}.dd-stage-list{grid-template-columns:1fr}}

/* ---------- Skills & combos guide ---------- */
.dd-skill-class{margin:26px 0 8px;padding:18px 20px;border:1px solid rgba(214,170,92,.3);border-radius:6px;background:rgba(0,0,0,.22)}
.dd-skill-class>h2{margin:0 0 14px;font-family:Georgia,'Times New Roman',serif;color:#f1dcae}
.dd-skill-combo{display:grid;gap:10px;margin-bottom:16px}
.dd-skill-step{display:flex;gap:12px;align-items:flex-start}
.dd-skill-step h3{margin:2px 0 6px;font-size:14px;color:#e9cf98}
.dd-skill-step p{margin:0;color:#cbbd9f;font-size:14px}
.dd-skill-step-n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 14px Cinzel,Georgia,serif;color:#1a120a;background:linear-gradient(180deg,#f4d58d,#b98a3c)}
.dd-skill-chips{display:flex;flex-wrap:wrap;gap:6px}
.dd-skill-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 8px 3px 3px;border:1px solid rgba(214,170,92,.25);border-radius:4px;background:rgba(0,0,0,.3);font-size:12.5px;color:#e6d5b0}
.dd-skill-chip .dd-skill-ico{width:20px;height:28px}
.dd-skill-chip b{font-weight:600}
.dd-skill-ico{display:block;flex:none;image-rendering:pixelated;border:1px solid #000;box-shadow:0 0 0 1px rgba(214,170,92,.35)}
.dd-skill-ico-none{width:20px;height:28px;display:grid;place-items:center;background:#444;color:#ddd;font-size:10px}
.dd-skill-sub{margin:4px 0 10px;font-size:15px;color:#f1dcae}
.dd-skill-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.dd-skill-card{display:flex;gap:12px;padding:12px;border:1px solid rgba(214,170,92,.22);border-radius:5px;background:linear-gradient(180deg,rgba(44,30,16,.6),rgba(18,12,8,.6))}
.dd-skill-card h4{margin:0 0 4px;font-size:15px;color:#ffe3a6;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dd-skill-card p{margin:0 0 8px;font-size:13px;line-height:1.5;color:#cbbd9f}
.dd-skill-role{font:600 10.5px Inter,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;padding:2px 6px;border-radius:3px;background:rgba(214,170,92,.15);color:#e9cf98}
.dd-skill-role-step{background:rgba(74,222,128,.12);color:#86efac}
.dd-skill-card dl{margin:0;display:grid;gap:2px;font-size:12.5px}
.dd-skill-card dl div{display:flex;gap:6px}
.dd-skill-card dt{color:#a8977a;min-width:52px}
.dd-skill-card dd{margin:0;color:#e6d5b0}
@media(max-width:520px){.dd-skill-class{padding:14px 12px}.dd-skill-cards{grid-template-columns:1fr}}

/* Server stage labels (titan-stages.js) */
.stage-badge{display:inline-block;margin-left:.5em;padding:.1em .55em;border-radius:999px;font-size:.72rem;font-weight:600;letter-spacing:.02em;vertical-align:middle;white-space:nowrap;border:1px solid currentColor;line-height:1.5}
.stage-badge.stage-1{color:#7fd38a}.stage-badge.stage-2{color:#6fb7ff}.stage-badge.stage-3{color:#c79bff}.stage-badge.stage-4{color:#ff8a6a}
.stage-badge.is-locked{opacity:.75;border-style:dashed}
