/*!
 * ============================================================
 * VORTEX OS
 * P4.0.1 — Social-Documentary Shell Constitution
 * Stylesheet v1.0.0
 * Doctrine: IVAP • PST_X.0 • DOMINIZ
 * ============================================================
 */

:root{
  --vortex-black:#000;
  --vortex-black-soft:#050505;
  --vortex-ink:#f4f0e8;
  --vortex-muted:#8f949d;
  --vortex-gold:#d6b15e;
  --vortex-gold-line:rgba(214,177,94,.24);
  --vortex-line:rgba(255,255,255,.075);
  --vortex-safe-top:max(env(safe-area-inset-top),0px);
  --vortex-safe-bottom:max(env(safe-area-inset-bottom),0px);
}

*{box-sizing:border-box}

html,
body{
  width:100%;
  min-height:100%;
  margin:0;
  background:var(--vortex-black);
  color:var(--vortex-ink);
}

html{
  color-scheme:dark;
  -webkit-text-size-adjust:100%;
}

body{
  overflow:hidden;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  -webkit-tap-highlight-color:transparent;
}

#vortexRoot{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  overflow:hidden;
  background:#000;
}

/*
 * The primary surface owns the viewport after P3.3.4 initializes.
 * Before that moment this shell keeps the feed structurally valid.
 */
#vortexPublicFeed{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  margin:0;
  padding:0;
  background:#000;
  overflow:hidden;
}

#vortexPublicFeed .vortexSectionHead{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}

#vortexPublicFeedItems{
  width:100%;
  height:100%;
}

#vortexPublicFeedStatus{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  transform:translate(-50%,-50%);
  width:min(82vw,360px);
  padding:16px 18px;
  border:1px solid var(--vortex-gold-line);
  color:#a9adb4;
  background:rgba(0,0,0,.82);
  text-align:center;
  font-size:10px;
  line-height:1.55;
  letter-spacing:.08em;
  text-transform:uppercase;
}

#vortexPublicFeedStatus[hidden],
#vortexPublicFeedMore[hidden]{
  display:none!important;
}

#vortexPublicFeedMore{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ------------------------------------------------------------
 * SPLASH — boot gate only, never a Home.
 * ------------------------------------------------------------ */
#appSplash{
  position:fixed;
  inset:0;
  z-index:9200;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 50% 34%,rgba(214,177,94,.10),transparent 22%),
    linear-gradient(180deg,#030303,#000);
  transition:opacity .28s ease,visibility .28s ease;
}

#appSplash.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.vortexSplashInner{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:min(86vw,380px);
  padding:28px;
  text-align:center;
}

.vortexSplashMark{
  width:88px;
  height:88px;
  object-fit:contain;
  border-radius:22px;
  box-shadow:
    0 0 0 1px rgba(214,177,94,.18),
    0 0 42px rgba(214,177,94,.08),
    0 22px 48px rgba(0,0,0,.34);
}

.vortexSplashKicker{
  margin-top:24px;
  color:var(--vortex-gold);
  font-size:9px;
  font-weight:800;
  letter-spacing:.20em;
  text-transform:uppercase;
}

.vortexSplashTitle{
  margin-top:12px;
  color:#f4f0e8;
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  font-weight:700;
  line-height:1;
  letter-spacing:.06em;
}

.vortexSplashSub{
  width:min(100%,320px);
  margin-top:12px;
  color:#8f949d;
  font-size:10px;
  line-height:1.65;
  letter-spacing:.075em;
  text-transform:uppercase;
}

.splashBar{
  width:min(72vw,270px);
  height:1px;
  margin-top:26px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
}

#splashProgress{
  width:8%;
  height:100%;
  background:var(--vortex-gold);
  transition:width .25s ease;
}

#splashText{
  margin-top:12px;
  color:#747983;
  font-size:8px;
  line-height:1.5;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* ------------------------------------------------------------
 * Structural hosts. P3 modules currently inject their own DOM;
 * these anchors make the new ontology explicit without duplicating it.
 * ------------------------------------------------------------ */
.vortexPlaneHost{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  visibility:hidden;
}

#vortexShellStatus{
  position:fixed;
  left:12px;
  bottom:calc(10px + var(--vortex-safe-bottom));
  z-index:9300;
  max-width:calc(100vw - 24px);
  color:#777c84;
  font-size:7px;
  letter-spacing:.11em;
  text-transform:uppercase;
  pointer-events:none;
  opacity:0;
}

html[data-vortex-shell-debug="1"] #vortexShellStatus{
  opacity:1;
}

.vortexNoScript{
  position:fixed;
  inset:0;
  z-index:9900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:#000;
  color:#d8d4cc;
  text-align:center;
  font-size:14px;
  line-height:1.7;
}

@media(prefers-reduced-motion:reduce){
  #appSplash,
  #splashProgress{
    transition:none!important;
  }
}
