/* Aetheria official Founder + Support dock v3.0.0
   Visuals reuse the approved mockup artwork; no pre-registration changes. */
.aetheria-official-dock{
  --dock-gold:#e8bf71;
  position:fixed!important;
  z-index:5800;
  right:22px;
  bottom:96px;
  display:grid;
  width:292px;
  max-width:calc(100vw - 24px);
  gap:9px;
  align-items:end;
  justify-items:stretch;
  isolation:isolate;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,.45));
  transition:filter .25s ease;
}
body.open-beta-gated .aetheria-official-dock,
body.open-beta-gated .official-founder-modal{
  display:none!important;
}
.founder-official-card{
  width:100%;
  aspect-ratio:1872/677;
  position:relative;
  min-width:0;
  overflow:visible;
  isolation:isolate;
}
.founder-official-card__background{
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
  border:0;
  pointer-events:none;
  user-select:none;
}
.founder-official-card__cta{
  position:absolute;
  z-index:2;
  left:4.2%;
  bottom:8%;
  width:54%;
  height:22%;
  display:block;
  outline:none;
  border-radius:8px;
  transition:filter .2s ease,transform .2s ease;
}
.founder-official-card__cta img{
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
  border:0;
  pointer-events:none;
  /* CTA is already painted in the approved full banner. This separate
     graphic is shipped for future localized/retina overlays; hiding it
     avoids a second, misaligned button on the original composition. */
  opacity:0;
}
.founder-official-card__cta:hover,
.founder-official-card__cta:focus-visible{
  filter:brightness(1.11) drop-shadow(0 0 9px rgba(255,204,85,.55));
  transform:translateY(-2px);
}
.founder-official-card__cta:focus-visible{
  outline:2px solid #ffe1a0;
  outline-offset:3px;
}
.official-support{
  position:relative;
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-height:0;
}
.official-support__expanded{
  width:100%;
  aspect-ratio:2095/707;
  position:relative;
  display:block;
  transition:filter .2s ease,transform .2s ease;
}
.official-support__expanded:hover{
  filter:brightness(1.08);
  transform:translateY(-2px);
}
.official-support__link{
  display:block;
  width:100%;
  height:100%;
  outline:none;
}
.official-support__link img{
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
  border:0;
  pointer-events:none;
  user-select:none;
}
.official-support__collapse{
  position:absolute;
  z-index:3;
  top:7%;
  right:1.1%;
  width:11.7%;
  height:85%;
  background:transparent;
  border:0;
  border-radius:4px;
  cursor:pointer;
  padding:0;
  touch-action:manipulation;
}
.official-support__collapse:hover{
  background:linear-gradient(to right,transparent,rgba(232,184,87,.12));
}
.official-support__link:focus-visible,
.official-support__collapse:focus-visible,
.official-support__tab:focus-visible{
  outline:2px solid #ffe1a0;
  outline-offset:2px;
}
.official-support__collapse .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;
}
.official-support__tab{
  display:block;
  width:54px;
  height:auto;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  cursor:pointer;
  touch-action:manipulation;
  transition:filter .22s ease,transform .22s ease;
}
.official-support__tab img{
  display:block;
  width:100%;
  height:auto;
  pointer-events:none;
  user-select:none;
}
.official-support__tab:hover{
  filter:brightness(1.12) drop-shadow(0 0 10px rgba(225,179,92,.27));
  transform:translateX(-3px);
}
.official-support__tab[hidden],
.official-support:not(.is-collapsed) .official-support__tab{
  display:none!important;
}
.official-support.is-collapsed .official-support__expanded{
  display:none!important;
}
.official-founder-modal[hidden]{
  display:none!important;
}
.official-founder-modal{
  position:fixed;
  z-index:2147482500;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  box-sizing:border-box;
}
.official-founder-modal__backdrop{
  position:absolute;
  z-index:0;
  inset:0;
  border:0;
  padding:0;
  background:rgba(1,6,13,.83);
  backdrop-filter:blur(7px);
  cursor:pointer;
}
.official-founder-modal__dialog{
  position:relative;
  z-index:1;
  width:min(950px,calc(100vw - 32px));
  max-height:min(92vh,960px);
  overflow:auto;
  box-sizing:border-box;
  border:1px solid rgba(238,194,104,.75);
  border-radius:15px;
  padding:clamp(18px,3vw,34px);
  background:
    radial-gradient(circle at 50% -15%,rgba(151,111,45,.23),transparent 62%),
    linear-gradient(145deg,#111e2c,#060d17 72%);
  box-shadow:0 30px 100px rgba(0,0,0,.74),inset 0 0 26px rgba(211,162,72,.09);
  color:#f2e9d6;
  text-align:center;
}
.official-founder-modal__close{
  position:absolute;
  top:12px;
  right:13px;
  z-index:2;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#f7d898;
  background:#111923;
  border:1px solid rgba(226,177,94,.52);
  border-radius:9px;
  font-size:27px;
  line-height:1;
}
.official-founder-modal__eyebrow{
  color:#e9b960;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.19em;
  text-transform:uppercase;
  margin:2px 0 8px;
}
.official-founder-modal__dialog h2{
  margin:0;
  color:#f4d397;
  font:700 clamp(1.45rem,4vw,2.3rem)/1.2 Cinzel,Georgia,serif;
}
.official-founder-modal__description{
  margin:12px auto 18px;
  max-width:640px;
  color:#c2cbd3;
  font-size:.9rem;
}
.official-founder-modal__rewards{
  display:block;
  width:100%;
  height:auto;
  max-height:65vh;
  object-fit:contain;
  border:1px solid rgba(220,170,80,.28);
  border-radius:9px;
  background:#08111b;
}
.official-founder-modal__footnote{
  max-width:700px;
  margin:15px auto 0;
  color:#8ea3b4;
  font-size:.72rem;
  line-height:1.5;
}
body.official-founder-preview-open{
  overflow:hidden!important;
}
@media(max-width:820px){
  .aetheria-official-dock{right:12px;bottom:86px;width:274px}
  .official-support__tab{width:51px}
}
@media(max-width:520px){
  .aetheria-official-dock{
    right:10px;
    bottom:82px;
    width:min(272px,calc(100vw - 20px));
    gap:6px;
  }
  .official-support__tab{width:45px}
  .official-founder-modal{padding:10px}
  .official-founder-modal__dialog{
    width:calc(100vw - 20px);
    padding:42px 12px 16px;
    max-height:92dvh;
  }
}
@media(prefers-reduced-motion:reduce){
  .aetheria-official-dock *,
  .aetheria-official-dock *::before,
  .aetheria-official-dock *::after{animation:none!important;transition:none!important}
}

/* Aetheria official dock v3.1.0 | right-edge alignment, independent cards.
   Only positioning/interaction changed; original approved artworks untouched. */
.aetheria-official-dock{
  right:0!important;
  bottom:max(80px,calc(env(safe-area-inset-bottom) + 76px));
  width:min(426px,calc(100vw - 4px));
  max-width:calc(100vw - 4px);
  grid-template-columns:minmax(0,1fr);
  align-items:end;
  justify-items:end;
  gap:12px;
  pointer-events:none;
}
.aetheria-official-dock > .founder-official-card,
.aetheria-official-dock > .official-support{
  pointer-events:auto;
}
.founder-official-card{
  width:100%;
  max-width:100%;
  aspect-ratio:1872/677;
}
.founder-official-card__expanded{
  display:block;
  position:relative;
  width:100%;
  height:100%;
}
.founder-official-card__collapse{
  position:absolute;
  z-index:4;
  right:0;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:31px;
  height:37px;
  padding:0;
  border:1px solid rgba(239,197,112,.72);
  border-right:0;
  border-radius:9px 0 0 9px;
  background:linear-gradient(130deg,rgba(9,18,29,.95),rgba(35,25,14,.93));
  box-shadow:0 0 12px rgba(0,0,0,.58),inset 0 0 9px rgba(241,182,72,.12);
  color:#ffe0a3;
  cursor:pointer;
  font:700 26px/1 Georgia,serif;
  touch-action:manipulation;
  transition:background .18s ease,box-shadow .18s ease;
}
.founder-official-card__collapse:hover{
  background:linear-gradient(130deg,#413019,#181d22);
  box-shadow:0 0 14px rgba(231,169,72,.3);
}
.founder-official-card__collapse:focus-visible,
.founder-official-card__tab:focus-visible{
  outline:2px solid #ffdda3;
  outline-offset:2px;
}
.founder-official-card__tab{
  display:flex;
  flex-direction:column;
  justify-content:space-around;
  align-items:center;
  position:relative;
  isolation:isolate;
  width:58px;
  height:132px;
  margin:0;
  padding:8px 3px;
  overflow:hidden;
  border:1px solid #e7b969;
  border-right:0;
  border-radius:14px 0 0 14px;
  background:#101924;
  color:#ffe0a0;
  box-shadow:-4px 4px 19px rgba(0,0,0,.57),inset 0 0 11px rgba(231,171,74,.19);
  cursor:pointer;
  touch-action:manipulation;
  transition:filter .2s ease,transform .2s ease;
}
.founder-official-card__tab::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:url("../images/official-widgets/founder-promo.webp") right center/auto 132px no-repeat;
  opacity:.95;
}
.founder-official-card__tab::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(7,12,21,.35),rgba(6,11,18,.86) 35%,rgba(8,13,23,.87) 75%,rgba(13,19,26,.29));
}
.founder-official-card__tab-icon,
.founder-official-card__tab-arrow{
  font-size:16px;
  line-height:1;
  text-shadow:0 0 9px rgba(255,196,79,.85);
}
.founder-official-card__tab-label{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  white-space:nowrap;
  text-orientation:mixed;
  font:700 9px/1 Cinzel,Georgia,serif;
  letter-spacing:.025em;
  text-shadow:0 1px 4px #02070c,0 0 8px #02070c;
}
.founder-official-card__tab:hover{
  filter:brightness(1.17) drop-shadow(0 0 7px rgba(238,182,83,.33));
  transform:translateX(-3px);
}
.founder-official-card__tab[hidden],
.founder-official-card:not(.is-collapsed) .founder-official-card__tab{
  display:none!important;
}
.founder-official-card.is-collapsed{
  width:58px;
  height:132px;
  aspect-ratio:auto;
}
.founder-official-card.is-collapsed .founder-official-card__expanded{
  display:none!important;
}
.official-support{
  width:min(356px,100%);
}
.official-support.is-collapsed{
  width:58px;
}
.official-support__tab{
  width:58px;
}
.official-support__tab[hidden],
.official-support:not(.is-collapsed) .official-support__tab{
  display:none!important;
}
.official-support.is-collapsed .official-support__expanded{
  display:none!important;
}
@media(max-width:820px){
  .aetheria-official-dock{
    right:0!important;
    bottom:max(80px,calc(env(safe-area-inset-bottom) + 76px));
    width:min(410px,calc(100vw - 3px));
    gap:10px;
  }
  .official-support{width:min(344px,100%);}
  .official-support.is-collapsed{width:54px;}
  .official-support__tab{width:54px;}
}
@media(max-width:520px){
  .aetheria-official-dock{
    right:0!important;
    bottom:max(78px,calc(env(safe-area-inset-bottom) + 74px));
    width:calc(100vw - 3px);
    max-width:calc(100vw - 3px);
    gap:8px;
  }
  .official-support{width:min(344px,calc(100vw - 6px));}
  .official-support.is-collapsed{width:49px;}
  .official-support__tab{width:49px;}
  .founder-official-card.is-collapsed{width:51px;height:118px;}
  .founder-official-card__tab{width:51px;height:118px;}
  .founder-official-card__tab::before{background-size:auto 118px;}
}
@media(max-height:530px){
  .aetheria-official-dock{bottom:40px;gap:6px;}
  .founder-official-card.is-collapsed{height:86px;}
  .founder-official-card__tab{height:86px;}
  .founder-official-card__tab::before{background-size:auto 86px;}
  .official-support.is-collapsed{width:42px;}
  .official-support__tab{width:42px;}
}
@media(prefers-reduced-motion:reduce){
  .founder-official-card__collapse,
  .founder-official-card__tab{transition:none!important;}
}

/* Aetheria dock glow v3.2.0: Founder + Apoie Aetheria receive the
   same restrained golden edge aura as the approved left-side badge.
   Pure CSS: no new frame, no edits to existing artwork or functionality. */
.aetheria-official-dock .founder-official-card.is-collapsed .founder-official-card__tab,
.aetheria-official-dock .official-support.is-collapsed .official-support__tab {
  transform-origin:right center;
  filter:
    drop-shadow(-1px 0 4px rgba(245,193,92,.42))
    drop-shadow(0 0 7px rgba(225,165,72,.24))
    drop-shadow(0 7px 9px rgba(0,0,0,.48));
  transition:filter .2s ease,transform .2s ease;
}
.aetheria-official-dock .founder-official-card.is-collapsed .founder-official-card__tab {
  border-color:rgba(247,204,116,.96);
  box-shadow:
    -2px 0 8px rgba(224,172,76,.22),
    inset 0 0 9px rgba(255,203,101,.14);
}
.aetheria-official-dock .founder-official-card.is-collapsed .founder-official-card__tab:hover,
.aetheria-official-dock .founder-official-card.is-collapsed .founder-official-card__tab:focus-visible,
.aetheria-official-dock .official-support.is-collapsed .official-support__tab:hover,
.aetheria-official-dock .official-support.is-collapsed .official-support__tab:focus-visible {
  transform:scale(1.045);
  filter:
    brightness(1.10)
    drop-shadow(-2px 0 6px rgba(248,203,112,.65))
    drop-shadow(0 0 12px rgba(235,175,83,.37))
    drop-shadow(0 9px 10px rgba(0,0,0,.53));
}
.aetheria-official-dock .founder-official-card.is-collapsed .founder-official-card__tab:active,
.aetheria-official-dock .official-support.is-collapsed .official-support__tab:active {
  transform:scale(.985);
}
@media(prefers-reduced-motion:reduce){
  .aetheria-official-dock .founder-official-card.is-collapsed .founder-official-card__tab,
  .aetheria-official-dock .official-support.is-collapsed .official-support__tab{
    transition:none!important;
  }
}
