* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --zoom: 0.75;
}

img {
  -webkit-user-drag: none;
}

html {
  overflow-anchor: none;
}

body {
  background: #000;
  color: #fff;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

#vacuum {
  position: fixed;
  top: -50vh;
  left: 0;
  width: 100%;
  height: 200vh;
  z-index: -1;
  pointer-events: none;
  visibility: hidden;
}

.page {
  position: relative;
  zoom: var(--zoom);
  background: #000;
  display: grid;
  grid-template-columns: 380px 225px 1fr 225px 380px;
  grid-template-rows: 228px 1fr;
  min-height: max(1024px, calc(100vh / var(--zoom)));
  isolation: isolate;
}

.page::before {
  content: "";
  grid-column: 3;
  grid-row: 1 / 3;
  z-index: -1;
  background: url("assets/xsbg_tile.jpg") center top / 1600px auto repeat;
  opacity: 0.55;
}

.page.capped {
  overflow: hidden;
}

.page.capped .edge-left {
  contain: size;
  overflow: hidden;
}

.header,
.edge-left,
.edge-right,
.left,
.right,
.main {
  display: flex;
  gap: 16px;
}

.header,
.edge-left,
.edge-right,
.left,
.right {
  border: 1px solid #606060;
}

.edge-left  { grid-column: 1; grid-row: 1 / 3; flex-direction: column; gap: 0; }
.edge-right { grid-column: 5; grid-row: 1 / 3; flex-direction: column; gap: 0; contain: size; overflow: hidden; }
.left       { grid-column: 2; grid-row: 1 / 3; flex-direction: column; gap: 0; }
.right      { grid-column: 4; grid-row: 1 / 3; flex-direction: column; gap: 0; }
.header     { grid-column: 2 / 6; grid-row: 1; flex-direction: row; gap: 0; z-index: 1;
              align-items: center; justify-content: center; padding: 0 605px 0 225px; }

.left,
.right {
  contain: size;
  overflow: hidden;
}

.main {
  grid-column: 3;
  grid-row: 2;
  flex-direction: column;
  padding: 12px 12px 40px;
  text-transform: lowercase;
  font-size: 24px;
  line-height: 1.6;
  color: #fff;
}

.main > p {
  padding: 0 20px;
}

.main::after {
  content: "";
  flex: 1 0 auto;
  margin: -16px -12px -40px;
  background: #000 url("assets/bg-1.png") center top / 100% auto repeat-y;
}

.weblog {
  flex: none;
  margin: 24px -12px 0;
  padding: 12px;
  border-top: 1px solid #606060;
  border-bottom: 1px solid #606060;
}

.card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  filter: brightness(0.7);
}

.logbook {
  flex: none;
  margin: -16px -12px 0;
  padding: 12px;
  border-bottom: 1px solid #606060;
}

.card {
  min-height: 320px;
  padding: 14px;
  background: rgba(28, 28, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  line-height: 1.45;
  color: #d4d4d4;
}

.poster {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.left .poster,
.right .poster {
  border-bottom: 1px solid #606060;
}

.corner {
  display: block;
  width: 100%;
  height: 226px;
  object-fit: cover;
  flex-shrink: 0;
}

.crop {
  --crop: 2.6;
  width: 100%;
  height: 226px;
  flex-shrink: 0;
  overflow: hidden;
}

.crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--crop));
  transform-origin: center;
}

.gif-alt {
  overflow: hidden;
}

.gif-alt img {
  display: block;
  width: 100%;
  height: auto;
}

.playlists {
  display: flex;
  flex: none;
}

.pl {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  line-height: 0;
}

.pl img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.edge-left > .pl {
  flex: none;
}

.strip-items {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: paint;
}

.v-spacer {
  flex: none;
  display: block;
  height: 0;
}

.fact,
.eq,
.pi {
  flex-shrink: 0;
  padding: 14px;
  border-bottom: 1px solid #606060;
}

.fact {
  font-size: 15px;
  line-height: 1.45;
  color: #d4d4d4;
  text-transform: lowercase;
}

.fact img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.fact p {
  margin: 0;
}

.eq {
  padding: 28px 12px;
  text-align: center;
  overflow: hidden;
}

.eq .math {
  font-size: 22px;
  line-height: 1.35;
  color: #fff;
}

.eq .katex {
  font-size: 1em;
  color: #fff;
}

.eq .katex-display {
  margin: 0;
}

.pi {
  color: #bdbdbd;
}

.pi-feed {
  border-bottom: 0;
  overflow: hidden;
  padding: 4px 0 10px;
}

.pi-win {
  display: block;
}

.pi-chunk {
  font-family: Consolas, "Courier New", ui-monospace, monospace;
  font-size: 17px;
  line-height: 1.5;
  white-space: pre;
}

.pi-feed .pi-bin {
  color: #6b6b6b;
}

.pi-feed .pi-num {
  color: #bdbdbd;
}

.controls {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: 1;
  margin: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}

.play {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  color: #fff;
  border: 0;
  cursor: pointer;
}

.play .icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 64px solid currentColor;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  margin-left: 14px;
}

.play.is-playing .icon {
  width: 68px;
  height: 80px;
  border: 0;
  margin-left: 0;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66% 100%);
}

.bar {
  flex: none;
  display: flex;
  height: 36px;
}

.link {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  background: #000;
  color: #d4d4d4;
  caret-color: #b3b3b3;
  border: 0;
  border-top: 1px solid #606060;
  border-radius: 0;
  font-family: inherit;
  font-weight: 200;
  font-size: 15px;
  letter-spacing: 0.01em;
  outline: none;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  will-change: transform;
  transition: background-color 0.3s ease;
}

.link.bad {
  background: #2a2a2a;
}

.lookup {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  color: #b3b3b3;
  border: 0;
  border-top: 1px solid #606060;
  cursor: pointer;
}

.lookup .icon {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin: -3px 0 0 -3px;
}

.lookup .icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: top left;
}

.lookup.busy {
  opacity: 0.5;
}

.caret {
  position: absolute;
  left: 12px;
  bottom: 8px;
  width: 1px;
  height: 20px;
  background: #b3b3b3;
  pointer-events: none;
  animation: caret-blink 1.1s steps(1, end) infinite;
}

.link:focus + .caret,
.link:not(:placeholder-shown) + .caret {
  display: none;
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.lyrics {
  position: relative;
  isolation: isolate;
  flex: 1;
  align-self: stretch;
  min-width: 0;
  padding: 0 28px;
  border-left: 1px solid #606060;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-transform: lowercase;
}

.lyrics::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/void.png") center / cover no-repeat;
  transition: opacity 1.2s ease;
}

.lyrics.active::before,
.lyrics.tracing::before {
  opacity: 0.07;
}

.lyrics .heart {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lyrics.fav .heart {
  opacity: 1;
}

.lyrics .term {
  position: absolute;
  inset: 0;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.55;
  color: #6b6b6b;
  white-space: pre;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.lyrics .term div {
  animation: term-in 0.35s ease-out;
}

.lyrics .term .new {
  color: #bdbdbd;
}

.lyrics .term::after {
  content: "";
  width: 8px;
  height: 15px;
  margin-top: 3px;
  background: #bdbdbd;
  animation: caret-blink 1s steps(1, end) infinite;
}

.lyrics.tracing .term {
  opacity: 1;
}

.lyrics.tracing .cur,
.lyrics.tracing .next {
  visibility: hidden;
}

.lyrics .cur {
  font-size: 30px;
  line-height: 1.3;
  padding: 0.15em 0 0.05em;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.lyrics .cur.in {
  animation: lyric-in 0.1s ease-out;
}

.lyrics .next {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.35;
  padding: 0.1em 0 0.05em;
  color: #6f6f6f;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.lyrics .cur.in.after-term,
.lyrics .next.after-term {
  animation: term-in 0.55s ease-out 0.4s backwards;
}

@keyframes term-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lyric-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.yt-hidden {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 200px;
  height: 200px;
  opacity: 0;
  pointer-events: none;
}

.presence {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: -4px;
  width: 100%;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.3;
}

.presence [hidden] {
  display: none;
}

.pf-top {
  display: flex;
  align-items: stretch;
}

.pf-row {
  flex: none;
  width: 82px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: rgba(0, 0, 0, 0.62);
}

.pf-avatar {
  align-self: stretch;
  width: 100%;
}

.pf-pfp {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presence[data-status="offline"] .pf-pfp {
  opacity: 0.55;
}

.pf-banner {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-left: 0;
  overflow: hidden;
}

.pf-banner canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fm {
  position: relative;
  flex: none;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  background: linear-gradient(115deg, var(--g1, #232323) 0%, var(--g2, #4a4a4a) 100%);
}

.fm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.fm-cover {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
}

.fm-text {
  flex: 1;
  min-width: 0;
}

.fm-track,
.fm-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-track {
  color: var(--gt, #fff);
  font-size: 20px;
}

.fm-artist {
  margin-top: 3px;
  color: var(--ga, #d6d6d6);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.fm-eq {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.fm-eq i {
  display: block;
  width: 3px;
  height: 4px;
  background: #fff;
}

.fm[data-on="1"] .fm-eq i {
  animation: fm-eq 1s ease-in-out infinite;
}

.fm[data-on="1"] .fm-eq i:nth-child(2) { animation-delay: -0.35s; animation-duration: 0.85s; }
.fm[data-on="1"] .fm-eq i:nth-child(3) { animation-delay: -0.7s;  animation-duration: 1.15s; }

.fm[data-on="0"] .fm-eq i {
  background: #777;
}

.fm[data-on="0"] .fm-text,
.fm[data-on="0"] .fm-cover {
  opacity: 0.6;
}

@keyframes fm-eq {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.links1,
.links2 {
  position: absolute;
  left: calc(100% + 8px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.links1 {
  top: 0;
}

.links2 {
  top: calc(82px + 8px);
}

.gh {
  flex: none;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gh img {
  display: block;
  width: 36px;
  height: 36px;
  opacity: 0.55;
}

.empty {
  width: 238px;
}

.tpp img {
  width: 52px;
  height: 52px;
}

.p {
  overflow: hidden;
}

.p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.oasis img {
  transform: scale(1.2);
}

.prothesmia {
  width: 238px;
  gap: 0.643em;
  font-family: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #e8e8e6;
  text-decoration: none;
  white-space: nowrap;
}

.prothesmia-dot {
  flex: none;
  width: 0.4286em;
  height: 0.4286em;
  margin-top: 0.07em;
  border-radius: 50%;
  background: #e8e8e6;
  box-shadow:
    0 0 0.21em rgba(232, 232, 230, 0.95),
    0 0 0.57em rgba(232, 232, 230, 0.7),
    0 0 1.14em rgba(232, 232, 230, 0.4),
    0 0 2em rgba(232, 232, 230, 0.2);
}

.presence.is-stacked {
  max-width: none;
}

.presence.is-stacked .pf-top,
.presence.is-stacked .fm {
  max-width: 440px;
}

.presence.is-stacked .links1,
.presence.is-stacked .links2 {
  position: static;
  flex-wrap: wrap;
}

.band {
  flex: none;
  align-self: stretch;
  margin: 0 -12px 12px;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid #606060;
  border-bottom: 1px solid #606060;
}

.marquee {
  flex: none;
  align-self: stretch;
  min-width: 0;
  contain: inline-size;
  padding: 6px 0;
  overflow: hidden;
  background: rgba(28, 28, 28, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee-group {
  display: flex;
  flex: none;
  gap: 8px;
  padding-right: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--shift, 0px) * -1)); }
}

.b88 {
  flex: none;
  display: block;
  width: 176px;
  height: 62px;
  background: #000;
}

.b88 img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  -webkit-user-drag: auto;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .caret {
    animation: none;
  }
}

@media (max-width: 760px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 100vh;
  }

  .page::before {
    grid-column: 1;
    grid-row: 1;
  }

  .edge-left,
  .edge-right,
  .left,
  .right,
  .header {
    display: none;
  }

  .main {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 12px;
  }

  .main::after {
    display: none;
  }

  .presence,
  .presence.is-stacked {
    max-width: none;
    margin-bottom: 0;
  }

  .presence.is-stacked .pf-top,
  .presence.is-stacked .fm {
    max-width: none;
  }

  .pf-top {
    min-height: 96px;
  }

  .pf-row {
    width: 96px;
  }

  .fm {
    min-height: 96px;
  }

  .presence.is-stacked {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .presence.is-stacked .pf-top,
  .presence.is-stacked .fm {
    grid-column: 1 / -1;
  }

  .presence.is-stacked .links1,
  .presence.is-stacked .links2 {
    display: contents;
  }

  .presence.is-stacked .gh {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .presence.is-stacked .prothesmia {
    grid-column: span 2;
    aspect-ratio: auto;
  }

  .presence.is-stacked .empty {
    display: none;
  }

  .presence.is-stacked .prothesmia {
    font-size: 18px;
  }
}
