@font-face {
  font-family: 'DepartureMono';
  src: url('../fonts/DepartureMono-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'NotoSymbols2';
  src: url('../fonts/NotoSansSymbols2-Regular.ttf') format('truetype');
  font-display: swap;
}

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

:root {
  --bg-dark: #020306;
  --bg-darker: #010204;
  --bg-card: rgba(8, 10, 18, 0.72);
  --bg-panel: rgba(10, 14, 26, 0.6);
  --bg-hover: rgba(20, 24, 42, 0.65);
  --text: #c4c8e4;
  --text-bright: #eeeeff;
  --text-dim: #7a7fa8;
  --text-faded: #6a6f9f;
  --primary: #aaaaff;
  --primary-dark: #6e6ec8;
  --secondary: #9fb5ff;
  --accent: #e8d47a;
  --accent-rose: #cc8ea0;
  --accent-teal: #7ac4b4;
  --accent-lavender: #b8a0e6;
  --accent-ember: #e8a878;
  --periwinkle: rgba(170, 170, 255, 1);
  --periwinkle-dim: rgba(170, 170, 255, 0.5);
  --periwinkle-faint: rgba(170, 170, 255, 0.22);
  --border: rgba(170, 170, 255, 0.18);
  --border-bright: rgba(170, 170, 255, 0.38);
  --shadow-glow: rgba(170, 170, 255, 0.32);

  --lcd-bg: linear-gradient(
    180deg,
    rgba(8, 14, 18, 0.96) 0%,
    rgba(4, 8, 12, 0.96) 100%
  );
  --lcd-green: #8cf0b4;
  --lcd-amber: #ffc98c;
  --lcd-cyan: #8cd8f0;
  --lcd-rose: #ff9fb4;

  --accent-cyan: #57cbde;
  --accent-cyan-deep: #1e6d82;
  --accent-violet: #b48cff;
  --accent-violet-deep: #4e2e94;
  --accent-glow: rgba(180, 140, 255, 0.55);
  --accent-pink: #ff9dc8;

  --smear:
    -1px 0 0 rgba(255, 70, 130, 0.45),
    1px 0 0 rgba(70, 220, 255, 0.45),
    -5px 0 6px color-mix(in srgb, currentColor 55%, transparent),
    5px 0 6px color-mix(in srgb, currentColor 55%, transparent),
    -16px 0 14px color-mix(in srgb, currentColor 32%, transparent),
    16px 0 14px color-mix(in srgb, currentColor 32%, transparent),
    -40px 0 28px color-mix(in srgb, currentColor 16%, transparent),
    40px 0 28px color-mix(in srgb, currentColor 16%, transparent);
  --smear-soft:
    -3px 0 4px color-mix(in srgb, currentColor 24%, transparent),
    3px 0 4px color-mix(in srgb, currentColor 24%, transparent),
    -12px 0 12px color-mix(in srgb, currentColor 9%, transparent),
    12px 0 12px color-mix(in srgb, currentColor 9%, transparent);

  --brand-discord: #8c9eff;
  --brand-patreon: #ff8a70;

  --z-shell: 2;
  --z-subtitle: 50;
  --z-ghost: 8800;
  --z-vignette: 9000;
  --z-scanlines: 9001;
  --z-static: 9002;
}

body {
  font-family: 'DepartureMono', monospace;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(58, 36, 110, 0.38) 0%, rgba(14, 10, 40, 0.2) 45%, transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(20, 40, 80, 0.35) 0%, transparent 60%),
    var(--bg-darker);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 16px;
  cursor: url('../cursors/arrow.png'), auto;
}

a,
button {
  cursor: url('../cursors/pointer.png') 6 0, pointer;
}

main {
  width: 100%;
  max-width: 1180px;
  position: relative;
  z-index: var(--z-shell);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.side-bar,
.main-col,
.right-bar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-panel {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--border);
  border-left: 0 solid var(--accent-violet);
  position: relative;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-section + .panel-section {
  padding-top: 14px;
  border-top: 1px dashed rgba(170, 170, 255, 0.18);
}

.panel-title {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--lcd-cyan);
  text-shadow: var(--smear);
}

.info-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.info-list dt {
  color: var(--text-faded);
}

.info-list dd {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.info-list .info-status {
  color: var(--lcd-amber);
  text-shadow: 0 0 5px rgba(255, 201, 140, 0.4);
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--primary);
  padding: 3px 6px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    text-shadow 0.18s ease;
}

.panel-link::before {
  content: '>';
  color: var(--text-faded);
  transition: color 0.18s ease;
}

.panel-link:hover,
.panel-link:focus-visible {
  color: var(--text-bright);
  background: var(--bg-hover);
  border-color: var(--border-bright);
  text-shadow: 0 0 6px var(--accent-glow);
  outline: none;
}

.panel-link:hover::before,
.panel-link:focus-visible::before {
  color: var(--accent-violet);
}

@media (max-width: 1100px) {
  main {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .main-col {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .right-bar {
    grid-column: 1;
  }
}

@media (max-width: 800px) {
  main {
    grid-template-columns: minmax(0, 480px);
  }

  .main-col,
  .right-bar {
    grid-column: auto;
    grid-row: auto;
  }
}

#static-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-static);
  pointer-events: none;
  opacity: 0.15;
  background: url('../img/static.gif') repeat;
  animation: static-breathe 12s ease-in-out infinite;
}

@keyframes static-breathe {
  0%, 100% { opacity: 0.13; }
  25% { opacity: 0.20; }
  50% { opacity: 0.11; }
  75% { opacity: 0.24; }
  90% { opacity: 0.16; }
}

::selection {
  color: var(--bg-dark);
  background: var(--text-bright);
  text-shadow: none;
}


#scanlines {
  position: fixed;
  inset: 0;
  z-index: var(--z-scanlines);
  pointer-events: none;
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.2) 3px);
}

.panel-title {
  position: relative;
}

.panel-title::after {
  content: '';
  position: absolute;
  left: -12px;
  top: calc(100% + 1px);
  width: 16em;
  height: 1px;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, currentColor 18%, #fff 42%, currentColor 68%, transparent);
  filter: drop-shadow(0 0 3px currentColor);
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: var(--z-vignette);
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse at center, transparent 60%, rgba(2, 3, 8, 0.58) 100%);
}

.cursor-ghost {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: var(--z-ghost);
  image-rendering: pixelated;
  transition: opacity 0.3s ease;
  filter: sepia(0.4) brightness(0.7) opacity(0.6);
  mix-blend-mode: screen;
}

.flag-header {
  width: 220px;
  display: flex;
  gap: 2px;
  position: relative;
  overflow: visible;
  margin: 0 auto 16px;
  justify-self: center;
}

.flag-col {
  font-family: 'DepartureMono', monospace;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: center;
  color: var(--text-bright);
  animation: flag-bob 4.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.flag-col:nth-child(even) {
  font-style: italic;
}

.flag-col::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.fc-1::before { background-image: url('../mosaic/1.webp'); background-position: 10% 50%; opacity: 0.2; }
.fc-2::before { background-image: url('../mosaic/2.webp'); background-position: 25% 40%; opacity: 0.25; }
.fc-3::before { background-image: url('../mosaic/3.webp'); background-position: 38% 55%; opacity: 0.3; }
.fc-4::before { background-image: url('../mosaic/4.webp'); background-position: 50% 45%; opacity: 0.35; }
.fc-5::before { background-image: url('../mosaic/5.webp'); background-position: 62% 50%; opacity: 0.4; }
.fc-6::before { background-image: url('../mosaic/6.webp'); background-position: 75% 60%; opacity: 0.45; }
.fc-7::before { background-image: url('../mosaic/7.webp'); background-position: 90% 45%; opacity: 0.5; }

.flag-col span {
  display: block;
  line-height: 1.4;
  font-size: 13px;
  animation: flag-rainbow 7s linear infinite;
  position: relative;
  z-index: 1;
}

.flag-col span:nth-child(1) { animation-delay: 0s; }
.flag-col span:nth-child(2) { animation-delay: -0.57s; }
.flag-col span:nth-child(3) { animation-delay: -1.14s; }
.flag-col span:nth-child(4) { animation-delay: -1.71s; }
.flag-col span:nth-child(5) { animation-delay: -2.28s; }
.flag-col span:nth-child(6) { animation-delay: -2.85s; }
.flag-col span:nth-child(7) { animation-delay: -3.42s; }

@keyframes flag-rainbow {
  0%   { color: hsla(0, 50%, 75%, 0.9); }
  14%  { color: hsla(30, 50%, 75%, 0.9); }
  28%  { color: hsla(60, 45%, 72%, 0.9); }
  42%  { color: hsla(120, 35%, 70%, 0.9); }
  57%  { color: hsla(200, 45%, 72%, 0.9); }
  71%  { color: hsla(260, 40%, 72%, 0.9); }
  85%  { color: hsla(320, 40%, 72%, 0.9); }
  100% { color: hsla(360, 50%, 75%, 0.9); }
}

.fc-1 span { animation-delay: calc(var(--i, 0) * -0.57s - 0s); }
.fc-2 span { animation-delay: calc(var(--i, 0) * -0.57s - 0.5s); }
.fc-3 span { animation-delay: calc(var(--i, 0) * -0.57s - 1s); }
.fc-4 span { animation-delay: calc(var(--i, 0) * -0.57s - 1.5s); }
.fc-5 span { animation-delay: calc(var(--i, 0) * -0.57s - 2s); }
.fc-6 span { animation-delay: calc(var(--i, 0) * -0.57s - 2.5s); }
.fc-7 span { animation-delay: calc(var(--i, 0) * -0.57s - 3s); }

@keyframes flag-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.flag-subtext {
  position: absolute;
  bottom: -11px;
  right: -44px;
  font-family: 'DepartureMono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: var(--z-subtitle);
  transform-origin: center center;
  animation:
    ghostly-shimmer 4s ease-in-out infinite,
    ghostly-tilt 6s ease-in-out infinite alternate;
}

@keyframes ghostly-shimmer {
  0%, 100% {
    opacity: 0.82;
    color: #dcf7fc;
    text-shadow:
      0 0 4px rgba(220, 248, 255, 0.75),
      0 0 9px rgba(87, 203, 222, 0.45),
      0 0 18px rgba(87, 203, 222, 0.2);
    filter: drop-shadow(0 0 1px rgba(180, 245, 255, 0.4));
  }
  33% {
    opacity: 0.98;
    color: #ffffff;
    text-shadow:
      0 0 7px rgba(255, 255, 255, 0.95),
      0 0 14px rgba(130, 235, 255, 0.7),
      0 0 24px rgba(87, 203, 222, 0.35);
    filter: drop-shadow(0 0 2.5px rgba(87, 203, 222, 0.65));
  }
  66% {
    opacity: 0.72;
    color: #cef2fa;
    text-shadow:
      0 0 3px rgba(200, 245, 255, 0.5),
      0 0 7px rgba(87, 203, 222, 0.3),
      0 0 13px rgba(87, 203, 222, 0.14);
    filter: drop-shadow(0 0 0.5px rgba(180, 245, 255, 0.25));
  }
}

@keyframes ghostly-tilt {
  0% { transform: rotate(-14deg) translateY(0); }
  50% { transform: rotate(-16deg) translateY(-2px) scale(1.02); }
  100% { transform: rotate(-13deg) translateY(1px); }
}

.mosaic-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-darker);
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(87, 203, 222, 0.1),
    inset 0 0 0 1px rgba(170, 170, 255, 0.08);
}

.mosaic-frame::before,
.mosaic-frame::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid var(--secondary);
}

.mosaic-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.mosaic-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.3) brightness(0.88) saturate(0.8);
  transition:
    filter 0.3s ease,
    transform 0.4s ease;
}

.mosaic-frame:hover .mosaic-img {
  filter: contrast(1.1) brightness(1.02) saturate(1.05);
}

.frame-tag {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: 'DepartureMono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--bg-dark);
  background: var(--lcd-cyan);
  padding: 2px 7px;
  border: 1px solid var(--text-bright);
  box-shadow: 0 0 10px rgba(140, 216, 240, 0.55);
  pointer-events: none;
  z-index: 2;
}

.entry-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--border);
  border-left: 0 solid var(--accent-cyan);
  position: relative;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-panel::before,
.lightbox::before,
.entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 5px solid;
  border-left-color: inherit;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 6' shape-rendering='crispEdges'%3E%3Cpath d='M1.5 0v5M3.5 0v5M0 1.5h5M0 3.5h5' stroke='%23000'/%3E%3C/svg%3E") 0 0 / 5px 6px repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 6' shape-rendering='crispEdges'%3E%3Cpath d='M1.5 0v5M3.5 0v5M0 1.5h5M0 3.5h5' stroke='%23000'/%3E%3C/svg%3E") 0 0 / 5px 6px repeat-y;
}

.entry-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-para {
  font-family: 'DepartureMono', monospace;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0;
  text-shadow: var(--smear-soft);
}

.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(170, 170, 255, 0.18);
}

.entry-tag {
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--text-faded);
}

.entry-mark {
  color: var(--accent-violet);
  text-shadow: 0 0 6px var(--accent-glow);
}

.entry-mark-teal {
  color: var(--accent-teal);
  text-shadow: 0 0 6px rgba(122, 196, 180, 0.4);
}

.entry-mark-ember {
  color: var(--accent-ember);
  text-shadow: 0 0 6px rgba(232, 168, 120, 0.4);
}

.entry-now {
  padding-left: 10px;
  border-left: 1px solid var(--border-bright);
  color: var(--text-dim);
}

.entry-now::before {
  content: 'now > ';
  color: var(--lcd-green);
  text-shadow: 0 0 5px rgba(140, 240, 180, 0.45);
}

.entry-caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 4px;
  vertical-align: -1px;
  background: var(--lcd-green);
  box-shadow: 0 0 6px rgba(140, 240, 180, 0.5);
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.info-mail {
  color: var(--accent-cyan);
  text-decoration: none;
  transition:
    color 0.18s ease,
    text-shadow 0.18s ease;
}

.info-mail:hover,
.info-mail:focus-visible {
  color: #e6fcff;
  text-shadow: 0 0 6px rgba(87, 203, 222, 0.6);
  outline: none;
}

main::before,
main::after {
  content: '';
  position: fixed;
  top: 50%;
  width: 26px;
  height: 72vh;
  transform: translateY(-50%);
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent, var(--periwinkle-faint) 20%, var(--periwinkle-faint) 80%, transparent),
    linear-gradient(to bottom, transparent, var(--periwinkle-dim) 20%, var(--periwinkle-dim) 80%, transparent),
    linear-gradient(to bottom, transparent, var(--periwinkle) 20%, var(--periwinkle) 80%, transparent);
  background-repeat: no-repeat;
  background-size: 1px 40%, 2px 70%, 3px 100%;
  filter: drop-shadow(0 0 4px var(--shadow-glow));
}

main::before {
  right: calc(50% + 610px);
  background-position: 0 50%, 9px 50%, 100% 50%;
}

main::after {
  left: calc(50% + 610px);
  background-position: 100% 50%, 15px 50%, 0 50%;
}

.cloud {
  position: fixed;
  top: 50%;
  z-index: 1;
  height: 72vh;
  overflow: hidden;
  transform: translateY(-50%);
  font-family: 'DepartureMono', monospace;
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 0;
  white-space: pre;
  pointer-events: none;
  text-shadow: 0 0 6px currentColor;
}

.cloud-left {
  right: calc(50% + 642px);
  color: var(--accent-pink);
  -webkit-mask-image: linear-gradient(to left, #000, rgba(0, 0, 0, 0.35) 320px);
  mask-image: linear-gradient(to left, #000, rgba(0, 0, 0, 0.35) 320px);
}

.cloud-right {
  left: calc(50% + 642px);
  right: 0;
  color: var(--lcd-cyan);
  -webkit-mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.35) 320px);
  mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.35) 320px);
}

.side-note {
  align-self: center;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text-faded);
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.side-note:hover,
.side-note:focus-visible {
  color: var(--text-bright);
  text-shadow: var(--smear);
  outline: none;
}

@media (max-width: 1320px) {
  main::before,
  main::after,
  .cloud {
    display: none;
  }
}

button.panel-link {
  font-family: inherit;
  background: none;
}

.tab-bar {
  display: flex;
  gap: 6px;
}

.tab-btn[aria-selected='true'] {
  color: var(--bg-dark);
  background: var(--primary);
  border-color: var(--text-bright);
  box-shadow: 0 0 10px var(--shadow-glow);
  text-shadow: none;
}

.tab-btn[aria-selected='true']::before {
  color: var(--bg-dark);
}

.tab-btn[hidden] {
  display: none;
}

.tab-sub {
  align-self: flex-end;
  font-size: 10px;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-panel[hidden] {
  display: none;
}

.ring-strip {
  height: 24px;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(170, 170, 255, 0.05) 0 4px, transparent 4px 8px),
    linear-gradient(180deg, rgba(14, 18, 34, 0.95) 0%, rgba(6, 8, 16, 0.96) 100%);
  border: 1px solid var(--periwinkle-dim);
  box-shadow:
    inset 0 1px 0 rgba(220, 220, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 10px rgba(170, 170, 255, 0.3),
    0 2px 0 rgba(0, 0, 0, 0.45);
}

.ring-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.gallery-card {
  border-left-color: var(--accent-pink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  font-family: inherit;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.3) brightness(0.85) saturate(0.75);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.gallery-meta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text-bright);
  background: rgba(2, 3, 6, 0.72);
  text-shadow: 0 0 6px var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  border-color: var(--border-bright);
  outline: none;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  filter: contrast(1.1) brightness(1.02) saturate(1.05);
  transform: scale(1.04);
}

.gallery-tile:hover .gallery-meta,
.gallery-tile:focus-visible .gallery-meta {
  opacity: 1;
}

.lightbox {
  width: min(720px, 92vw);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: #080a12;
  border: 1px solid var(--border-bright);
  border-left: 0 solid var(--accent-pink);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.9);
}

.lightbox::backdrop {
  background: rgba(1, 2, 4, 0.86);
}

.lightbox-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}

.lightbox-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--bg-darker);
  border: 1px solid var(--border);
}

.ring-track {
  display: flex;
  width: max-content;
  animation: ring-scroll 38s linear infinite;
  will-change: transform;
}

.ring-track span {
  flex: none;
  width: 18px;
  font-family: 'NotoSymbols2', serif;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
  animation: alchemy-glow 9s linear infinite;
}

@keyframes ring-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-864px, 0, 0); }
}

@keyframes alchemy-glow {
  0%   { color: rgba(255, 120, 160, 0.85); }
  20%  { color: rgba(255, 200, 100, 0.9); }
  40%  { color: rgba(140, 230, 170, 0.85); }
  60%  { color: rgba(120, 200, 255, 0.9); }
  80%  { color: rgba(200, 150, 255, 0.9); }
  100% { color: rgba(255, 120, 160, 0.85); }
}

.uplink-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uplink {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--uplink) 55%, transparent);
  border-left-width: 4px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    filter 0.3s ease;
}

.uplink:hover,
.uplink:focus-visible {
  transform: translateY(-2px);
  border-color: var(--uplink);
  filter: brightness(1.25);
  outline: none;
}

.uplink img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--uplink) 70%, transparent));
}

.uplink-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.uplink-name {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--uplink) 45%, white);
  text-shadow: var(--smear);
}

.uplink-sub {
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.uplink-discord {
  --uplink: var(--brand-discord);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.34) 0%, rgba(14, 16, 44, 0.7) 70%);
}

.uplink-discord::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(200, 210, 255, 0.22), transparent);
  transform: translateX(-120%);
  animation: uplink-sheen 5s ease-in-out infinite;
}

.uplink-live {
  width: 7px;
  height: 7px;
  background: var(--lcd-green);
  box-shadow: 0 0 8px var(--lcd-green);
  animation: uplink-pulse 1.8s ease-in-out infinite;
}

.uplink-patreon {
  --uplink: var(--brand-patreon);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 138, 112, 0.1) 0 4px, transparent 4px 8px),
    linear-gradient(90deg, rgba(255, 110, 84, 0.3) 0%, rgba(40, 12, 16, 0.7) 75%);
}

.uplink-heart {
  font-size: 13px;
  line-height: 1;
  color: var(--uplink);
  text-shadow: 0 0 8px var(--uplink);
  animation: uplink-pulse 1.4s ease-in-out infinite;
}

@keyframes uplink-sheen {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes uplink-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.post-card {
  border-left-color: var(--lcd-green);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(140, 240, 180, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.post-frame {
  aspect-ratio: 16 / 7;
}

.post-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  text-shadow: 0 0 8px var(--shadow-glow), 0 0 18px var(--shadow-glow);
}

.post-tags {
  color: var(--accent-teal);
}

.post-frame .mosaic-img {
  object-position: 50% 30%;
}

.post-body {
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  color: var(--text);
  text-shadow: var(--smear-soft);
}

.post-body > * + * {
  margin-top: 12px;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  text-shadow: var(--smear);
}

.post-body a {
  color: var(--accent-cyan);
}

.post-body a:hover,
.post-body a:focus-visible {
  color: var(--text-bright);
  outline: none;
}

.post-body strong {
  font-weight: 400;
  color: var(--text-bright);
}

.post-body em {
  color: var(--accent-lavender);
}

.post-body img,
.post-body video,
.post-body iframe {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.post-body ul,
.post-body ol {
  padding-left: 20px;
}

.post-body blockquote {
  padding-left: 10px;
  border-left: 1px solid var(--border-bright);
  color: var(--text-dim);
}

.post-body code {
  padding: 0 4px;
  font-family: inherit;
  color: var(--lcd-green);
  background: var(--bg-darker);
}

.post-body pre {
  padding: 10px;
  overflow-x: auto;
  background: var(--bg-darker);
  border: 1px solid var(--border);
}

.post-body pre code {
  padding: 0;
  background: none;
}

.post-body hr {
  border: 0;
  border-top: 1px dashed rgba(170, 170, 255, 0.18);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pager span.panel-link {
  visibility: hidden;
}

.pager-prev::before,
.pager-next::after {
  content: '<<';
  letter-spacing: -0.12em;
  color: var(--text-faded);
  transition: color 0.18s ease;
}

.pager-next::before {
  content: none;
}

.pager-next::after {
  content: '>>';
}

.pager-next:hover::after,
.pager-next:focus-visible::after {
  color: var(--accent-violet);
}

.pager-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-input {
  width: 5ch;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--text-bright);
  background: var(--bg-darker);
  border: 1px solid var(--border-bright);
  box-shadow: inset 0 0 8px var(--shadow-glow);
  text-shadow: var(--smear-soft);
  cursor: url('../cursors/text.png'), text;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.pager-input:hover,
.pager-input:focus-visible {
  border-color: var(--primary);
  box-shadow: inset 0 0 8px var(--shadow-glow), 0 0 10px var(--shadow-glow);
  outline: none;
}

.pinned-card {
  border-left-color: var(--lcd-rose);
}

.pinned-frame {
  aspect-ratio: 16 / 9;
}

.pinned-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
}

.pinned-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-bright);
  background: rgba(2, 3, 6, 0.4);
  text-shadow: var(--smear);
  transition: background 0.3s ease;
}

.pinned-play:hover .pinned-glyph,
.pinned-play:focus-visible .pinned-glyph {
  background: transparent;
}

.github-card {
  border-left-color: var(--lcd-amber);
}

.webring-card {
  border-left-color: var(--accent-pink);
}

.repo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2px 0 2px 8px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  border-left: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.repo:hover {
  border-left-color: var(--lcd-amber);
}

.repo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.repo-head .entry-tag {
  flex-shrink: 0;
  color: var(--lcd-amber);
}

.repo-name,
.repo-commit {
  text-decoration: none;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.repo-name {
  color: var(--text-bright);
  text-shadow: var(--smear-soft);
}

.repo-commit {
  color: var(--text);
}

.repo-commit::before {
  content: '> ';
  color: var(--lcd-green);
}

.repo-name:hover,
.repo-name:focus-visible,
.repo-commit:hover,
.repo-commit:focus-visible {
  color: var(--lcd-amber);
  text-shadow: var(--smear);
  outline: none;
}

.diff-add {
  color: var(--lcd-green);
}

.diff-del {
  color: var(--lcd-rose);
}

.post-foot > a {
  margin-left: auto;
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(170, 170, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .entry-caret,
  .ring-track,
  .ring-track span,
  .uplink-discord::after,
  .uplink-live,
  .uplink-heart {
    animation: none;
  }

  .post-card {
    transition: none;
  }

  .post-card:hover {
    transform: none;
  }
}
