/* Full-screen portal fluid, rendered without a ring, image blur, or glass. */
#portalSky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  user-select: none;
  background: #06291b;
  filter: none;
}
#portalSky > .portal-fluid-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: none;
  opacity: 1;
}
#portalSky::before, #portalSky::after { content: none; }
#portalSky[data-quiet] > .portal-fluid-canvas { visibility: hidden; }
/* Dark surfaces give text contrast while the liquid keeps its original detail. */
header.site, .overlay {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:has(#portalSky) #splash { display: none; }
header.site {
  background: linear-gradient(178deg, #263630, #12201e 20%, #11131d 63%, #1a1827);
  border-bottom-color: #315249;
  box-shadow: inset 0 1px #cfffdf29, inset 0 -1px #78fac139, 0 5px 22px #030411b0;
}
header.site::after { background: linear-gradient(90deg, #665d9733, #56e4aa 38%, #42bba9 68%, #665d9733); animation: none; }
header.site .brand .wordmark, body:has(#view-home.active):not(:has(.overlay.open)) header.site .brand .wordmark {
  color: #f0fff7;
  text-shadow: 0 1px #a4bfb0, 0 2px #3e6151, 0 3px #13241d, 0 3px 10px #03110e;
}
header.site .brand .wordmark em, body:has(#view-home.active):not(:has(.overlay.open)) header.site .brand .wordmark em {
  color: #63f7a2;
  text-shadow: 0 1px #24a96c, 0 2px #116046, 0 3px #0c382b, 0 0 11px #37e88444;
}
:root {
  --portal-foundry: linear-gradient(155deg, #1b302d, #171b29 29%, #121421 75%, #211c2b);
  --portal-bevel: inset 0 1px #d8ffec32, inset 1px 0 #83e0b81a, inset 0 -1px #04080f;
  --portal-elevation: 0 2px 0 #0b1018, 0 8px 20px -8px #000b;
}
.view :is(.panel, .dash-card, .dash-panel, .portal-series-card, .creator-library),
.overlay .modal:not(.reader-modal), header.site #mainNav .nav-menu-items, .bell-panel {
  background-color: #151b24;
  background-image: var(--portal-foundry);
  box-shadow: var(--portal-bevel), var(--portal-elevation);
  border-color: #495954;
}
#edPanel .ps-topbar, #edPanel .ps-tl-head, #edPanel .ps-phonebar {
  background: linear-gradient(#263831, #17272a 35%, #151923);
  box-shadow: var(--portal-bevel);
}
#view-home .home-spotlight, .series-hero .sp-poster, .catalog-card .catalog-cover,
.mg-card .mg-cover, .portal-cover, .watch-player {
  border-color: #577269;
  box-shadow: 0 0 0 1px #5d8373a8, 0 3px 0 #16201e, 0 11px 22px -8px #010303ce;
}
:where(.view, .overlay, header.site) :is(.btn, .portal-action, .icon-btn) {
  box-shadow: var(--portal-bevel), 0 2px 0 #080b14;
}
:where(.view, .overlay, header.site) :is(.btn, .portal-action, .icon-btn):active:enabled {
  box-shadow: inset 0 2px 4px #0006;
}
:where(main, header, footer, .overlay) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #b2ffd1;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  :root { --portal-elevation: 0 2px 0 #0b1018, 0 5px 12px -6px #000b; }
}
