/* OBtwo production brand restoration: original wrapper-theme palette, logo and wolf. */
:root{--obtwo-bg:#08090B;--obtwo-panel:#121318;--obtwo-border:#1A1A24;--obtwo-text:#8E8F99;--obtwo-heading:#FFFFFF;--obtwo-violet:#4D0DA3;--obtwo-violet-bright:#7A22F2;--obtwo-red:#FF173E;
  --ob-brass:#7A22F2;--ob-brass-2:#A46BFF;
  --ob-ink:#08090B;--ob-ink-2:#121318;--ob-panel:#121318;--ob-panel-2:#1A1A24;
  --ob-text:#FFFFFF;--ob-dim:#B7B8C4;--ob-faint:#8E8F99;
  --ob-body:Arial,Helvetica,sans-serif;--ob-display:Arial,Helvetica,sans-serif;}
html,body{background:var(--obtwo-bg)!important;}
body{margin:0;min-height:100dvh;display:flex;flex-direction:column;color:var(--obtwo-text);}
body>#root{flex:1 1 0%;min-height:0;min-width:0;display:flex;flex-direction:column;}
body>#root>*{flex:1 1 auto;min-height:0;}
/* The app shell sits below the persistent brand header instead of a second full viewport. */
body.obtwo-branded .alphaops-shell{height:auto!important;min-height:0!important;flex:1 1 auto;}
body.obtwo-branded{height:100dvh;overflow:hidden;}
body.obtwo-branded>#root{overflow:auto;}

/* Persistent brand header */
#obtwo-brand-header{position:relative;z-index:40;flex:0 0 auto;display:flex;align-items:center;gap:20px;
  padding:14px clamp(16px,3vw,32px);background:linear-gradient(90deg,rgba(77,13,163,.35),rgba(8,9,11,.96) 45%,rgba(8,9,11,.96));
  border-bottom:1px solid var(--obtwo-border);box-shadow:inset 0 -1px 0 rgba(122,34,242,.35);overflow:hidden;}
#obtwo-brand-header a{display:inline-flex;align-items:center;min-width:0;border-radius:6px;}
#obtwo-brand-header a:focus-visible{outline:2px solid var(--obtwo-violet-bright);outline-offset:4px;}
#obtwo-brand-header .obtwo-brand-logo{display:block;height:clamp(56px,7vw,88px);width:auto;max-width:min(60vw,360px);object-fit:contain;
  filter:drop-shadow(0 4px 14px rgba(122,34,242,.45));}
#obtwo-brand-header .obtwo-brand-wolf{margin-left:auto;height:clamp(56px,7vw,88px);width:auto;aspect-ratio:1/1;object-fit:cover;border-radius:50%;
  border:2px solid var(--obtwo-violet-bright);box-shadow:0 0 0 4px rgba(77,13,163,.25);flex:0 0 auto;}
@media (max-width:480px){#obtwo-brand-header{gap:12px;padding:10px 14px}#obtwo-brand-header .obtwo-brand-wolf{height:48px}#obtwo-brand-header .obtwo-brand-logo{height:52px}}

/* Owner shell: styled only, behavior untouched */
#obtwo-production-owner-shell{background:var(--obtwo-panel)!important;border-bottom:1px solid var(--obtwo-border)!important;color:#D8D6E4!important;flex:0 0 auto;}
#obtwo-production-owner-shell a{color:#BCA1FF!important;}
#obtwo-production-owner-shell button{background:var(--obtwo-violet)!important;border:1px solid var(--obtwo-violet-bright)!important;color:#fff!important;}
#obtwo-production-owner-shell button:hover:not(:disabled){background:var(--obtwo-violet-bright)!important;}
#obtwo-production-owner-shell :focus-visible{outline-color:var(--obtwo-violet-bright)!important;}

/* Shell, rail, header */
.alphaops-shell{background:var(--obtwo-bg)!important;}
.ob-rail{background:linear-gradient(180deg,rgba(77,13,163,.18),var(--obtwo-bg) 40%) var(--obtwo-bg)!important;border-right:1px solid var(--obtwo-border)!important;}
.alphaops-shell header{background:rgba(8,9,11,.9)!important;border-bottom:1px solid var(--obtwo-border)!important;}
.alphaops-main-scroll{background-color:var(--obtwo-bg)!important;
  background-image:linear-gradient(rgba(8,9,11,.84),rgba(8,9,11,.9)),url('/obtwo-brand-assets/obtwo-wolf-hero.webp')!important;
  background-size:cover,min(1100px,140%) auto!important;background-position:center,center top!important;background-repeat:no-repeat!important;background-attachment:scroll,fixed!important;}
@media (max-width:767px){.alphaops-main-scroll{background-attachment:scroll!important;background-size:cover,cover!important;}}
.alphaops-nav-scroll a[aria-current="page"],.alphaops-nav-scroll a[data-active="true"],.alphaops-nav-scroll a:hover{
  background-color:rgba(77,13,163,.22)!important;color:var(--obtwo-heading)!important;box-shadow:inset 2px 0 0 var(--obtwo-violet-bright);}
[data-testid="link-home-brand"] > span[aria-hidden="true"]{display:none!important;}
.obtwo-rail-brand{display:block;flex:0 0 auto;padding:8px 16px 4px;}
.obtwo-rail-brand img{display:block;width:100%;max-width:220px;height:auto;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(77,13,163,.45));}
.obtwo-rail-brand .obtwo-rail-wolf{margin-top:10px;width:100%;max-width:220px;aspect-ratio:16/7;object-fit:cover;object-position:center 40%;border-radius:10px;border:1px solid rgba(122,34,242,.4);}
@media (max-height:650px){.obtwo-rail-brand .obtwo-rail-wolf{display:none;}.obtwo-rail-brand>img:first-child{max-height:64px;width:auto;max-width:100%;}#obtwo-brand-header{padding-block:6px;}#obtwo-brand-header .obtwo-brand-logo,#obtwo-brand-header .obtwo-brand-wolf{height:48px;}}

/* Purple buttons across routes (functional semantics untouched) */
.ob-btn-primary,button[type="submit"]{background:var(--obtwo-violet)!important;border-color:var(--obtwo-violet-bright)!important;color:#fff!important;}
.ob-btn-primary:hover,button[type="submit"]:hover:not(:disabled){background:var(--obtwo-violet-bright)!important;}
.alphaops-shell :focus-visible{outline-color:var(--obtwo-violet-bright)!important;}
h1,h2,h3{color:var(--obtwo-heading);}

/* Auth gate */
[data-alphaops-auth="ALPHAOPS_AUTH_GATE_LIVE_V1"]{position:relative;background-color:var(--obtwo-bg)!important;
  background-image:linear-gradient(rgba(8,9,11,.72),rgba(8,9,11,.8)),url('/obtwo-brand-assets/obtwo-wolf-hero.webp')!important;
  background-size:cover,cover!important;background-position:center!important;}
[data-alphaops-auth="ALPHAOPS_AUTH_GATE_LIVE_V1"] .ao-grid-bg,[data-alphaops-auth="ALPHAOPS_AUTH_GATE_LIVE_V1"] .ao-scanlines{display:none!important;}
[data-alphaops-auth="ALPHAOPS_AUTH_GATE_LIVE_V1"] input:focus{border-color:var(--obtwo-violet-bright)!important;outline:none;}
.obtwo-auth-brand{display:block;width:min(300px,80%);height:auto;margin:0 auto 20px;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(77,13,163,.6));}

@media (prefers-reduced-motion:reduce){
  #obtwo-brand-header *,.obtwo-rail-brand img,.obtwo-auth-brand{filter:none!important;transition:none!important;animation:none!important;}
  .alphaops-main-scroll{background-attachment:scroll!important;}
}
