/* Shared lighting for ASAPANIME's portal frame, artwork and controls. */
:root {
  --portal-metal: linear-gradient(160deg, #263738 0%, #18242a 18%, #111922 55%, #181525 100%);
  --portal-edge: inset 0 1px 0 #e0fff538, inset 1px 0 0 #9ef6d319, inset 0 -1px 0 #020509;
  --portal-lift: 0 2px 0 #060910, 0 7px 14px -6px #02030bd9;
  --portal-frame: 0 0 0 1px #8caea75c, 0 2px 0 1px #090c16, 0 9px 17px -7px #000c;
}

header.site {
  background: linear-gradient(177deg, #243330 0%, #131c22 32%, #11121e 82%, #201e30);
  box-shadow: var(--portal-edge), 0 5px 18px -7px #000c;
}
footer.site {
  background: radial-gradient(ellipse at 10% 0%, #17322e, transparent 55%), #0c1019;
  box-shadow: inset 0 1px 0 #83e3bc47;
}

/* The bevel belongs to the frame, so the artwork keeps its original colors. */
#view-home .home-spotlight, .series-hero .sp-poster,
.catalog-card .catalog-cover, .series-tile, .mg-card .mg-cover,
.video-card .thumb, .short-card .vart, .continue-thumb, .portal-cover {
  box-shadow: var(--portal-frame);
}
#view-home .home-spotlight {
  border-color: #779b90;
  box-shadow: 0 0 0 1px #1d2a30, 0 3px 0 #18242a, 0 13px 25px -9px #000d;
}
.spotlight-copy h2, .sp-title {
  text-shadow: 0 1px 0 #9299a5, 0 2px 0 #555963, 0 3px 0 #2b3039, 0 6px 13px #02050bd9;
}

.view .panel, .view .dash-card, .view .dash-panel, .overlay .modal,
header.site #mainNav .nav-menu-items, .bell-panel {
  background-image: var(--portal-metal);
  box-shadow: var(--portal-edge), var(--portal-lift);
}
#edPanel .ps-topbar, #edPanel .ps-tl-head, #edPanel .ps-phonebar {
  background: linear-gradient(180deg, #253532, #172327 49%, #11191e);
  box-shadow: var(--portal-edge);
}
.watch-player, #edPanel .ed2-strip {
  box-shadow: 0 0 0 1px #04060b, 0 1px 0 1px #a2c5bc40;
}

.btn.primary, #edPanel .btn.primary, .portal-lime {
  color: #052217;
  background: linear-gradient(165deg, #cdffb4, #8af68b 43%, #4fd68c);
  border-color: #a4eeb3 #66b986 #408a6c;
  box-shadow: inset 0 1px 0 #efffeab3, inset 0 -2px 0 #21704a55, 0 2px 0 #144333;
}
.btn.primary:active:enabled, .portal-lime:active:enabled {
  box-shadow: inset 0 2px 3px #0d623f73, 0 1px 0 #113527;
}

/* Shelf movement is reserved for precise pointers with motion enabled. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.catalog-card .catalog-cover, .mg-card .mg-cover, .continue-thumb) {
    transition: translate 180ms ease-out, box-shadow 180ms ease-out;
  }
  .catalog-card:is(:hover, :focus-visible) .catalog-cover,
  .mg-cover:is(:hover, :focus-visible), .continue-thumb:is(:hover, :focus-visible) {
    translate: 0 -2px;
    box-shadow: 0 0 0 1px #93edc5, 0 3px 0 #1e4a41, 0 12px 18px -7px #000d;
  }
}
@media (max-width: 760px) {
  :root {
    --portal-frame: 0 0 0 1px #8caea752, 0 2px 0 #0b1418, 0 4px 8px -4px #000b;
    --portal-lift: 0 2px 0 #070a10, 0 4px 9px -5px #000c;
  }
}
