/* ENH-21 v6 "JOURNEY" - live-site additions on top of the concept's page.css / nav.css.
   Everything here replaces something the live CSP blocks (an inline style="" attribute) or adds what a real site needs.
   Loaded after page.css. */

/* page glow colour: the concept set it as <body style="--gl:R,G,B"> (inline style = blocked by the CSP) -> classes */
body.gl-255-160-70{--gl:255,160,70}
body.gl-255-170-80{--gl:255,170,80}
body.gl-240-197-106{--gl:240,197,106}
body.gl-255-130-60{--gl:255,130,60}
body.gl-255-160-60{--gl:255,160,60}
body.gl-255-150-70{--gl:255,150,70}
body.gl-240-180-90{--gl:240,180,90}
/* character page: the glow follows the character's main god (the concept set it from script) */
body.gl-255-110-90{--gl:255,110,90}
body.gl-110-150-255{--gl:110,150,255}
body.gl-188-195-210{--gl:188,195,210}

/* site footer world tag (was style="margin-top:16px") */
.ft .tag.live.v6-mt16{margin-top:16px}

/* keyboard users: skip straight to the page */
.skip-link{position:fixed;left:12px;top:-60px;z-index:100;padding:10px 14px;background:#030407;border:1px solid var(--gold);color:var(--gold3);font:700 13px/1 var(--ui);letter-spacing:.2em;text-transform:uppercase;transition:top .2s}
.skip-link:focus{top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* live form feedback (validation errors / status), styled in the v6 palette */
.v6-errors{margin:0 0 18px;padding:12px 16px;border:1px solid rgba(255,82,82,.45);background:rgba(255,82,82,.08);color:#ffd5d5;font:600 14px/1.45 var(--ui);letter-spacing:.04em}
.v6-errors ul{margin:0;padding-left:18px}
.v6-status{margin:0 0 18px;padding:12px 16px;border:1px solid var(--line);background:rgba(240,197,106,.07);color:var(--gold3);font:600 14px/1.45 var(--ui);letter-spacing:.04em}
.v6-field-error{display:block;margin-top:6px;color:#ff9a9a;font:600 12.5px/1.35 var(--ui);letter-spacing:.04em}

/* auth forms: a hint under a two-field row (was style="margin:-8px 0 22px") */
.hint.hgap{margin:-8px 0 22px}

/* emblem colours (were style="--g:...") */
.emb.g-gold{--g:var(--gold)}
.emb.g-warn{--g:#ff9a5a}

/* news: team posts from the CMS (live feature the mock-up had no rows for) - a one-column feature card;
   the tag takes the post's god colour (.gb/.gv/.gs set --g in page.css) */
.feat.post{grid-template-columns:1fr;margin-bottom:22px}
.tag.gb,.tag.gv,.tag.gs{--c:var(--g)}
.feat.post .post-body{white-space:pre-wrap;word-break:break-word}

/* reveal delays (were style="--d:...", read by .rv's transition in page.css): dt = .1 s steps, dl = .07 s steps */
.dt0{--d:0s}.dt1{--d:.1s}.dt2{--d:.2s}.dt3{--d:.3s}.dt4{--d:.4s}.dt5{--d:.5s}.dt6{--d:.6s}.dt7{--d:.7s}
.dl0{--d:0s}.dl1{--d:.07s}.dl2{--d:.14s}.dl3{--d:.21s}.dl4{--d:.28s}.dl5{--d:.35s}.dl6{--d:.42s}.dl7{--d:.49s}

/* download: the live "Full client link not configured" state, as a dimmed button */
.bt.off{opacity:.5;cursor:not-allowed}

/* support: live has 6 ticket categories (the mock-up showed 5) -> 3 x 2 on wide screens; rows of real tickets stack */
@media (min-width:901px){.cats.c6{grid-template-columns:repeat(3,1fr)}}
.sg .box+.box{margin-top:14px}
/* ticket: reply form spacing and auto-width buttons (were style="margin-top:26px" / style="width:auto");
   message text keeps the player's line breaks, as the live page did */
.rform{margin-top:26px}
.bt.wa{width:auto}
.msg p.mb{white-space:pre-wrap;word-break:break-word}

/* spacing helpers (were style="margin-top:..") */
.mt14{margin-top:14px}.mt16{margin-top:16px}.mt22{margin-top:22px}.mb34{margin-bottom:34px}

/* rankings / guilds: the "Overall" god tab (was style="--g:var(--gold)"); the live server selector keeps a world that
   is not running visible but disabled; the table's "No characters match" row (was an inline style) */
.gtabs button.ga{--g:var(--gold)}
.fls button:disabled{opacity:.5;cursor:not-allowed}
.tb td.nomatch{text-align:center;color:var(--mut)}

/* guilds / guild / character (were inline styles in the concept) */
.gcard .stats dd.dd22{font-size:22px}
.tb small.mpx{color:var(--txt);letter-spacing:.06em}
.gtx{color:var(--g)}
.tb tr.ri0{--i:0}.tb tr.ri1{--i:1}.tb tr.ri2{--i:2}.tb tr.ri3{--i:3}.tb tr.ri4{--i:4}.tb tr.ri5{--i:5}
.tb tr.ri6{--i:6}.tb tr.ri7{--i:7}.tb tr.ri8{--i:8}.tb tr.ri9{--i:9}.tb tr.ri10{--i:10}.tb tr.ri11{--i:11}

/* account (were inline styles in the concept): centred log-out button, state colours of tags / chips
   (Active green, Waiting orange as the concept's activation tag, Blocked red), hint spacings */
.bs.jc{justify-content:center}
.tag.c-warn{--c:#ff9a5a}
.chip.c-ok{--g:#52f5a0}.chip.c-warn{--g:#ff9a5a}.chip.c-bad{--g:var(--red)}
.hint.hgap2{margin:-8px 0 18px}
.hint.hlead{margin:-4px 0 18px}
/* live has up to N game logins (the mock-up showed one): their cards stack; a login can carry two chips */
.glogs{display:grid;gap:18px}
.gl-h .chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
/* one delete-code form per game login: open when there is one login (as in the concept), folded when there are more */
.dcx+.dcx{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.dcx summary.dc{cursor:pointer}
.dcx[open] summary.dc{margin-bottom:16px}
.dcf{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.tb td.msgt{white-space:pre-wrap;word-break:break-word}

/* donate (v6 version, prepared): the package lede (was style="margin:0 0 26px;max-width:760px") and a package's item
   list (a live field the mock-up had no rows for) */
.ld.pkld{margin:0 0 26px;max-width:760px}
.pkg .pi{list-style:none;display:grid;gap:4px;margin-top:12px;color:var(--mut);font-size:14px;line-height:1.35}
.pkg .pi b{color:var(--gold3)}
