.abyss-portrait { display: none; }

@media (min-width: 761px) {
  .album-desktop-map { display: contents; }
}

@media (max-width: 760px) {
  .album-desktop-map { display: none; }
  .abyss-portrait {
    display: block;
    padding-top: 74px;
    background: #101d25;
    color: #f5efe8;
  }
  .abyss-intro {
    padding: 18px 6% 14px;
    text-align: center;
  }
  .abyss-intro p,
  .abyss-veyr p {
    margin: 0 0 7px;
    color: #e7c99e;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .abyss-intro h1 {
    margin: 0;
    font: normal clamp(29px, 8vw, 44px)/1.05 Georgia, serif;
    text-wrap: balance;
  }
  .abyss-journey { position: relative; isolation: isolate; }
  .abyss-scene { position: relative; }
  .abyss-scene picture, .abyss-scene img { display: block; width: 100%; }
  .abyss-scene img { height: auto; }
  .abyss-scene--veyr picture {
    mask-image: linear-gradient(transparent, black 5%);
  }
  .abyss-scene--weather-front,
  .abyss-scene--deep-storm {
    margin-top: var(--overlap);
    mask-image: linear-gradient(transparent, #0003 var(--fade-start), #000b var(--fade-middle), #000 var(--fade-end));
  }
  .abyss-scene--weather-front {
    --overlap: -18.7035%;
    --fade-start: 2.6%;
    --fade-middle: 7%;
    --fade-end: 10.52%;
  }
  .abyss-scene--deep-storm {
    --overlap: -20.8289%;
    --fade-start: 2.8%;
    --fade-middle: 7.8%;
    --fade-end: 11.65%;
  }
  .abyss-veyr {
    position: absolute;
    isolation: isolate;
    top: 7%;
    left: 6%;
    width: 43%;
    text-shadow: 0 2px 6px #090f18;
  }
  .abyss-route {
    position: absolute;
    z-index: 1;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .abyss-portrait .abyss-emblem {
    position: absolute;
    z-index: 2;
    left: var(--emblem-x);
    top: var(--emblem-y);
    width: clamp(49px, 13.5vw, 68px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: drop-shadow(0 0 8px #173954c9);
    transition: transform .35s cubic-bezier(.2, 1.4, .35, 1), filter .25s;
  }
  .abyss-emblem::before,
  .abyss-emblem::after {
    content: "";
    position: absolute;
    inset: 0;
    background: center / contain no-repeat url("/r/refined/media/em/ab-01-blue-rest.webp");
  }
  .abyss-emblem::after {
    background-image: url("/r/refined/media/em/ab-01-blue-active.webp");
    opacity: 0;
    transition: opacity .25s;
  }
  .abyss-portrait .abyss-emblem:is(:hover, :focus-visible, :active) {
    filter: drop-shadow(0 0 11px #6cc7fbb3);
    transform: translate(-50%, -50%) scale(1.13);
  }
  .abyss-emblem:is(:hover, :focus-visible, :active)::after { opacity: 1; }
  .abyss-veyr::before {
    content: "";
    position: absolute;
    inset: -25px -30px;
    z-index: -1;
    background: radial-gradient(ellipse at 40% 45%, #101b28d9 5%, #101b2899 50%, transparent 75%);
    pointer-events: none;
  }
  .abyss-portrait a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff3df;
    text-underline-offset: 5px;
  }
  .abyss-portrait a:focus-visible {
    outline: 2px solid #f4d39f;
    outline-offset: 3px;
  }
  .abyss-portrait .abyss-watch {
    font: normal clamp(20px, 5vw, 28px)/1.08 Georgia, serif;
    text-decoration: underline;
    text-decoration-color: #d7ac72;
  }
  .abyss-portrait .abyss-story {
    display: table;
    padding: 11px 0;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-color: #d7ac7299;
  }
  .abyss-return {
    padding: 10px 7% 25px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abyss-portrait .abyss-emblem,
  .abyss-emblem::after { transition: none; }
}
