:root{--bg:#03070c;--panel:rgba(4,10,17,.93);--blue:#78c8ff;--gold:#e0c16d;--text:#edf4fa;--muted:#93a5b5;--line:rgba(111,192,249,.28)}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background:var(--bg);color:var(--text);font-family:"Trebuchet MS",Arial,sans-serif}.hidden{display:none!important}.bg,.scan{position:fixed;inset:0;pointer-events:none}.bg{z-index:-2;background:radial-gradient(circle at 68% 24%,rgba(35,112,168,.24),transparent 30%),linear-gradient(120deg,rgba(0,0,0,.74),rgba(3,10,18,.82)),url("assets/bg-muxcess.png") center/cover fixed}.scan{z-index:-1;opacity:.14;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.04) 0,rgba(255,255,255,.04) 1px,transparent 2px,transparent 5px)}header,main,footer{width:min(1320px,calc(100% - 40px));margin:auto}header{min-height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(111,188,255,.14)}.brand{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none;letter-spacing:.13em}.brand>b{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--blue);background:#0a1f30;font-size:23px;transform:rotate(45deg);box-shadow:0 0 24px rgba(59,160,235,.2)}.brand strong,.brand small{display:block}.brand strong{font-size:14px}.brand small{margin-top:4px;color:var(--blue);font-size:9px}nav{display:flex;gap:22px}nav a{color:#9caebe;text-decoration:none;text-transform:uppercase;font-size:10px;letter-spacing:.17em}nav a:hover,nav .active{color:#fff}main{padding:clamp(52px,8vh,108px) 0 76px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(470px,1.1fr);gap:clamp(46px,7vw,110px);align-items:center}.kicker,.eye{margin:0;color:var(--blue);font-size:10px;letter-spacing:.28em;text-transform:uppercase}.intro h1{margin:18px 0 24px;font:500 clamp(3.2rem,6vw,6.5rem)/.93 Georgia,serif;letter-spacing:-.035em;text-shadow:0 18px 46px #000}.intro h1 span{color:#f1d98f}.lead{max-width:590px;color:#b4c1ce;font-size:clamp(1rem,1.35vw,1.17rem);line-height:1.75}.badges{margin-top:28px;display:flex;flex-wrap:wrap;gap:9px}.badges span{padding:8px 11px;border:1px solid rgba(120,198,255,.18);background:rgba(5,14,23,.62);color:#9db5c9;font-size:9px;letter-spacing:.12em;text-transform:uppercase}.panel{position:relative;padding:clamp(27px,4vw,44px);border:1px solid var(--line);background:linear-gradient(145deg,rgba(12,25,40,.8),rgba(2,6,11,.97));box-shadow:0 28px 80px rgba(0,0,0,.58);backdrop-filter:blur(14px)}.panel:before,.panel:after{content:"";position:absolute;width:42px;height:42px;pointer-events:none}.panel:before{top:-1px;left:-1px;border-top:2px solid var(--blue);border-left:2px solid var(--blue)}.panel:after{right:-1px;bottom:-1px;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold)}.panel h2{margin:9px 0 12px;font:500 clamp(2rem,3vw,2.75rem) Georgia,serif}.panel>p{color:#9fafbd;line-height:1.65}.loading{min-height:340px;display:grid;place-items:center;text-align:center}.loading i{width:54px;height:54px;border:1px solid var(--blue);transform:rotate(45deg);animation:rune 2.4s ease-in-out infinite;box-shadow:0 0 24px rgba(96,186,251,.3)}@keyframes rune{50%{transform:rotate(225deg) scale(.72);opacity:.45}}button,a{transition:.2s}.google{width:100%;margin-top:26px;padding:14px;border:1px solid #fff;background:#fff;color:#1c2630;font-weight:700;cursor:pointer}.google b{margin-right:10px;color:#4285f4;font-size:20px}.google:disabled{opacity:.42;cursor:not-allowed}.guest{display:block;margin-top:12px;padding:13px;border:1px solid var(--line);color:#b7d9f0;text-align:center;text-decoration:none;text-transform:uppercase;font-size:10px;letter-spacing:.1em}.guest:hover{border-color:var(--blue);background:rgba(72,156,218,.09)}.note{font-size:11px!important;color:#74899b!important}.status{margin-bottom:14px;padding:12px 14px;border-left:2px solid var(--blue);background:#05111c;color:#bdd1df;font-size:12px}.status.error{border-color:#ff7c80;color:#ffc1c3}.status.success{border-color:#79dda2;color:#c0f4d4}.user,.user>div,.vault-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.user img{width:58px;height:58px;border-radius:50%;border:1px solid var(--line);object-fit:cover}.user h2{margin:3px 0;font-size:1.7rem}.user small{color:#8497a8}.link{border:0;background:transparent;color:#9aafbf;text-transform:uppercase;font-size:9px;letter-spacing:.12em;cursor:pointer}.vault-head{margin-top:32px;padding-top:24px;border-top:1px solid rgba(117,186,237,.14)}.vault-head h3{margin:5px 0;font:500 1.55rem Georgia,serif}.primary,.secondary{padding:11px 15px;text-transform:uppercase;font-size:10px;letter-spacing:.12em;cursor:pointer}.primary{border:1px solid rgba(222,192,106,.72);background:linear-gradient(#947126,#422d0f);color:#fff0bd}.primary:hover{border-color:#f1d98f;transform:translateY(-1px)}.secondary{border:1px solid var(--line);background:#07101a;color:#abc0d1}.characters-list{margin-top:18px;display:grid;gap:12px}.character-card{display:grid;grid-template-columns:54px 1fr auto;gap:15px;align-items:center;padding:14px;border:1px solid rgba(105,180,232,.18);background:rgba(8,20,32,.72)}.character-rune{width:54px;height:54px;display:grid;place-items:center;border:1px solid var(--line);background:radial-gradient(circle,rgba(74,153,211,.22),rgba(4,10,16,.88));font:22px Georgia,serif;color:#b9e3ff}.character-info strong{display:block}.character-info span{display:block;margin-top:5px;color:#8498a9;font-size:10px;text-transform:uppercase}.char-actions{display:flex;gap:7px}.play,.delete{padding:9px 11px;font-size:9px;text-transform:uppercase;text-decoration:none;cursor:pointer}.play{border:1px solid rgba(222,192,106,.57);background:#6d5118;color:#ffe8a3}.delete{border:1px solid rgba(255,105,111,.25);background:transparent;color:#c98e91}.empty{padding:24px;border:1px dashed var(--line);text-align:center}.panel aside{margin-top:22px;padding:13px 14px;display:grid;grid-template-columns:auto 1fr;gap:13px;border-left:2px solid var(--gold);background:rgba(14,13,8,.48);color:#8493a0;font-size:10px;line-height:1.55}.panel aside strong{color:var(--gold)}footer{padding:22px 0 28px;display:flex;justify-content:space-between;border-top:1px solid rgba(111,188,255,.12);color:rgba(203,220,234,.46);font-size:9px;text-transform:uppercase;letter-spacing:.12em}.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(0,3,7,.84);backdrop-filter:blur(8px)}.modal-card{position:relative;width:min(480px,100%);padding:34px;border:1px solid var(--blue);background:#050a10;box-shadow:0 30px 90px #000}.modal-card h2{font:500 2rem Georgia,serif}.close{position:absolute;right:13px;top:9px;border:0;background:transparent;color:#9eb0bf;font-size:25px;cursor:pointer}.modal-card label{margin-top:18px;display:grid;gap:8px;color:#dce7ef;font-size:11px;text-transform:uppercase}.modal-card input,.modal-card select{padding:12px;border:1px solid var(--line);background:#03080d;color:#fff}.modal-card label small{color:#687b8c;text-transform:none}.actions{margin-top:24px;display:flex;justify-content:flex-end;gap:8px}.error{color:#ff9ea1!important;font-size:11px}@media(max-width:980px){main{grid-template-columns:1fr}.intro h1{font-size:clamp(3.4rem,10vw,6rem)}}@media(max-width:700px){header,main,footer{width:min(100% - 24px,1320px)}nav{gap:12px}nav a{font-size:8px}.character-card{grid-template-columns:50px 1fr}.char-actions{grid-column:1/-1;justify-content:flex-end}.panel aside{grid-template-columns:1fr}footer{flex-direction:column;gap:8px;text-align:center}}@media(max-width:430px){.brand small{display:none}nav{display:grid;gap:3px;text-align:right}.vault-head,.user{align-items:flex-start;flex-direction:column}.primary{width:100%}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}

/* Shared Xcess Origins logon mark: replaces the provisional X diamond. */
.brand .brand-mark {
  display: block;
  width: clamp(58px, 6vw, 76px);
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(93, 174, 240, .25));
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .brand { gap: 5px; letter-spacing: .08em; }
  .brand .brand-mark { width: 58px; height: 46px; }
  .brand strong { font-size: 11px; }
}
@media (max-width: 390px) {
  .brand .brand-mark { width: 48px; }
  .brand strong { font-size: 9px; }
}


/* Identity gateway: distinct existing-user login and first-time registration. */
.auth-mode-switch{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin:19px 0 24px;
  padding:4px;
  background:rgba(3,10,18,.72);
  border:1px solid rgba(122,188,231,.24);
}
.auth-mode-button{
  min-height:43px;
  padding:10px 8px;
  border:1px solid transparent;
  background:transparent;
  color:#a9bdcf;
  cursor:pointer;
  font-size:11px;
  letter-spacing:.06em;
  font-weight:600;
}
.auth-mode-button.is-selected{
  background:linear-gradient(125deg,rgba(23,58,83,.9),rgba(9,29,44,.95));
  border-color:rgba(105,190,241,.45);
  color:#e3f3ff;
  box-shadow:inset 0 -2px 0 rgba(121,204,255,.7);
}
.auth-mode-button:focus-visible,.auth-mode-help button:focus-visible{
  outline:2px solid #8bd9ff;
  outline-offset:3px;
}
.auth-mode-help{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:21px 0 6px;
  color:#99adbf;
  text-align:center;
  font-size:12px;
}
.auth-mode-help button{
  padding:6px 3px;
  border:0;
  background:transparent;
  color:#d4eaff;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}
.guest-divider{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin:23px 0 12px;
  color:#7898ad;
  letter-spacing:.16em;
  font-size:9px;
}
.guest-divider:before,.guest-divider:after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(112,181,228,.18);
}
#auth .guest{margin-top:0}
@media(max-width:430px){
  .auth-mode-switch{margin:16px 0 19px}
  .auth-mode-button{font-size:10px;min-height:44px}
}

/* Project identity: same compass emblem and typography as Home. */
.brand .brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(215,178,107,.18));
}
.brand strong {font-family: Georgia,"Times New Roman",serif;font-size:clamp(15px,1.35vw,20px);letter-spacing:.09em}
.brand small {color:#aec0ca;letter-spacing:.19em}
#auth .auth-mode-switch .auth-mode-button {
  display:flex;align-items:center;justify-content:center;
  text-align:center;text-decoration:none;border-radius:2px;
  min-height:47px;transition:background .18s,border-color .18s;
}
#auth .auth-mode-switch .auth-mode-button:hover {color:#f6e3bc;border-color:rgba(215,179,107,.55)}
#auth .auth-mode-help a {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:6px 10px;border:1px solid rgba(120,193,235,.24);
  border-radius:2px;background:rgba(19,48,66,.4);color:#c9e8fb;
  text-decoration:none;font-size:12px;font-weight:700;cursor:pointer;
}
#auth .auth-mode-help a:hover {border-color:#8cd7fc;background:rgba(34,90,127,.25)}
#auth .auth-mode-help a:focus-visible {outline:2px solid #9edcff;outline-offset:3px}
.vault-capacity {
  display:inline-flex;align-items:center;padding:10px 11px;
  border:1px solid rgba(218,186,108,.25);
  color:#d4c199;font-size:11px;letter-spacing:.08em;
}
@media(max-width:700px){.brand .brand-mark{width:40px;height:40px}}


.brand strong em{color:#e6c57c;font-style:normal}
.brand .brand-wordmark{min-width:0}

/* Email + password entry: fits inside the Identity Alpha login/register panel. */
.email-auth-divider {
  display:flex;align-items:center;gap:12px;margin:22px 0 16px;
  color:#8faec4;letter-spacing:.18em;font-size:10px;font-weight:700;
}
.email-auth-divider::before,.email-auth-divider::after {
  content:"";height:1px;flex:1;background:rgba(134,197,231,.27);
}
.password-auth {
  border:1px solid rgba(134,195,231,.21);background:rgba(4,12,21,.63);
  padding:18px 20px;border-radius:3px;
}
.email-form {display:grid;gap:14px;}
.email-form.hidden {display:none!important;}
.email-form label {
  display:grid;gap:7px;color:#b7d1e2;
  font:600 11px/1.4 "Trebuchet MS",Arial,sans-serif;
}
.email-form input {
  width:100%;min-width:0;min-height:46px;padding:11px 13px;
  color:#f5f9fc;background:rgba(2,11,20,.94);
  border:1px solid rgba(131,193,237,.34);outline:none;border-radius:4px;
  font:14px/1.4 "Trebuchet MS",Arial,sans-serif;
}
.email-form input::placeholder {color:#7894a8;}
.email-form input:focus-visible {
  border-color:#9dd8ff;box-shadow:0 0 0 2px rgba(130,204,255,.13);
}
.email-form input:disabled,.email-submit:disabled {opacity:.45;cursor:not-allowed;}
.email-submit {
  min-height:45px;padding:11px 14px;border:1px solid rgba(226,192,117,.7);
  color:#ffebc0;letter-spacing:.07em;text-transform:uppercase;
  font:700 11px "Trebuchet MS",Arial,sans-serif;
  background:linear-gradient(120deg,#715524,#362710);cursor:pointer;
}
.email-submit:not(:disabled):hover {
  background:linear-gradient(120deg,#8a6a2c,#49351a);
  border-color:#f5cf82;
}
.email-link {
  width:fit-content;justify-self:center;min-height:35px;
  background:transparent;border:0;color:#a6d7f6;font-size:12px;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.email-link:focus-visible,.email-submit:focus-visible {
  outline:2px solid #a4dfff;outline-offset:3px;
}
.email-help {
  margin:0;color:#91aec2;font:12px/1.65 "Trebuchet MS",Arial,sans-serif;
}
.email-help strong {color:#e8e8df;overflow-wrap:anywhere;}
.email-feedback {
  margin:14px 0 0;padding:12px 13px;
  background:rgba(37,70,93,.25);border-left:2px solid #78b5df;
  color:#b9d3e5;font:12px/1.55 "Trebuchet MS",Arial,sans-serif;
}
.email-feedback.success {border-color:#8addb7;color:#b4dfc9;}
.email-feedback.error {border-color:#ef9b98;color:#ffc6c0;}
@media (max-width:550px) {
 .password-auth{padding:14px 12px;}
 .email-form input{font-size:16px;}
 .email-auth-divider{letter-spacing:.08em;font-size:9px;}
}


.turnstile-shell {
  display:grid;gap:9px;justify-items:start;
  min-height:95px;margin:4px 0 1px;
  padding:12px;border:1px solid rgba(126,190,227,.18);
  background:rgba(2,9,17,.55);
}
.turnstile-shell .email-help{font-size:11px;line-height:1.5}
#email-turnstile{width:100%;min-height:54px;}
@media(max-width:430px){.turnstile-shell{padding:8px}}


/* Identity gateway compact edition, keeping Character Vault at original workspace width. */
body:not(.is-dashboard) main{
  width:min(1180px,calc(100% - 48px));
  grid-template-columns:minmax(0,1fr) minmax(420px,530px);
  gap:clamp(24px,4vw,68px);
  padding:clamp(30px,5vh,62px) 0 52px;
  align-items:center;
}
body:not(.is-dashboard) .intro h1{
  font-size:clamp(3rem,5.2vw,5.2rem);
  line-height:1.01;
  margin:12px 0 15px;
}
body:not(.is-dashboard) .intro .lead{
  font-size:clamp(14px,1.15vw,17px);
  line-height:1.55;
  margin:0;
}
#auth.panel{padding:clamp(20px,2.5vw,30px)}
#auth .eye{font-size:9px;letter-spacing:.22em}
#auth .auth-mode-switch{margin:12px 0 15px}
#auth .auth-mode-switch .auth-mode-button{min-height:40px;padding:8px}
#auth h2{font-size:clamp(1.9rem,2.6vw,2.35rem);margin:5px 0 8px}
#auth #auth-description{font-size:13px;line-height:1.55;margin:0}
#auth .google{margin-top:16px;padding:11px 13px;min-height:46px}
#auth .email-auth-divider{margin:16px 0 12px;font-size:9px}
#auth .password-auth{border:0;padding:0;background:transparent}
#auth .email-form{gap:10px}
#auth .email-form label{gap:5px}
#auth .email-form input{min-height:43px;padding:9px 12px}
#auth .email-submit{min-height:44px;padding:10px 14px}
#auth .email-link{min-height:30px;justify-self:end}
#auth .email-help{font-size:11px;line-height:1.5}
#auth .email-feedback{margin:10px 0 0;padding:9px 11px}
#email-request-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#email-request-form>:not(.email-password-pair){grid-column:1/-1}
#auth .turnstile-shell{padding:9px;gap:5px;min-height:76px}
#auth .turnstile-shell .email-help{font-size:10px}
@media(max-width:980px){
  body:not(.is-dashboard) main{grid-template-columns:minmax(0,1fr);gap:21px;padding:28px 0 42px}
  body:not(.is-dashboard) .intro h1{font-size:clamp(2.8rem,6vw,4.4rem);margin:8px 0 10px}
  body:not(.is-dashboard) .intro .lead{font-size:14px}
}
@media(max-width:550px){
  body:not(.is-dashboard) main{width:calc(100% - 28px);gap:16px;padding:22px 0 34px}
  #auth.panel{padding:18px 15px}
  #email-request-form{grid-template-columns:minmax(0,1fr)}
  #email-request-form>.email-password-pair{grid-column:1/-1}
  #auth .email-form input{font-size:16px}
  nav{flex-wrap:wrap;justify-content:flex-end;gap:8px}
  nav a{font-size:9px}
}
@media(max-width:430px){
  body:not(.is-dashboard) .intro h1{font-size:clamp(2.3rem,10vw,3rem)}
  #auth .google{font-size:12px}
}


/* PLATFORM-IDENTITY: read-only operator entry is concealed until backend
   /api/admin/overview confirms current session authorization in Sandbox. */
#operator-entry[hidden]{display:none!important}
#dashboard .operator-entry{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:14px;margin-top:24px;padding:18px 20px;
  border:1px solid rgba(222,192,106,.38);border-left:3px solid #e0c16d;
  background:linear-gradient(110deg,rgba(51,40,20,.52),rgba(8,19,30,.88));
}
#dashboard .operator-entry>div{min-width:0}
#dashboard .operator-entry strong{display:block;margin:7px 0 5px;font:500 19px Georgia,serif;color:#f1dfb8}
#dashboard .operator-entry small{display:block;font-size:11px;line-height:1.45;color:#b2c4d1}
#dashboard .operator-entry-link{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  min-height:42px;padding:10px 14px;border:1px solid #d5b77a;
  color:#f4e3be;text-decoration:none;text-transform:uppercase;
  letter-spacing:.09em;font-size:10px;font-weight:700;
  background:rgba(91,66,27,.35);
}
#dashboard .operator-entry-link:hover{background:rgba(133,99,42,.36)}
#dashboard .operator-entry-link:focus-visible{
  outline:2px solid #93d8f8;outline-offset:3px
}
@media(max-width:430px){
  #dashboard .operator-entry{align-items:stretch;flex-direction:column;padding:15px}
  #dashboard .operator-entry-link{justify-content:center;width:100%}
}
