:root {
  color-scheme: dark;
  --page-bg-base: #000000;
  --page-bg-top: #02040b;
  --page-bg-bottom: #000000;
  --page-glow-1: rgba(196, 220, 255, 0.08);
  --page-glow-2: rgba(95, 132, 190, 0.055);
  --page-glow-3: rgba(255, 255, 255, 0.025);
  --page-glow-1-x: 76%;
  --page-glow-1-y: 16%;
  --page-glow-2-x: 20%;
  --page-glow-2-y: 72%;
  --page-glow-3-x: 48%;
  --page-glow-3-y: 42%;
  --page-noise-a: rgba(255, 255, 255, 0.16);
  --page-noise-b: rgba(225, 238, 255, 0.11);
  --page-noise-c: rgba(185, 210, 255, 0.085);
  --menu-bg-start: rgba(11, 22, 48, 0.1);
  --menu-bg-end: rgba(6, 11, 20, 0.1);
  --menu-glow-1: rgba(48, 103, 194, 0.24);
  --menu-glow-2: rgba(23, 58, 128, 0.18);
  --nav-dropdown-hover-bg: rgba(120, 190, 255, 0.16);
  --nav-dropdown-panel-bg: rgba(7, 12, 22, 0.96);
  --nav-dropdown-panel-border: rgba(255, 255, 255, 0.14);
  --nav-dropdown-fade-duration: 0.7s;
  --nav-dropdown-hover-bridge-height: 6px;
  --nav-dropdown-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--page-bg-base);
  background-image:
    linear-gradient(
      155deg,
      var(--page-bg-top) 0%,
      #03060e 28%,
      #050810 52%,
      #020205 78%,
      var(--page-bg-bottom) 100%
    );
  background-attachment: fixed;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: hidden;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
}

em,
i,
cite,
dfn {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: italic;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background-image:
    radial-gradient(1500px 1100px at var(--page-glow-1-x) var(--page-glow-1-y), var(--page-glow-1), transparent 60%),
    radial-gradient(1300px 980px at var(--page-glow-2-x) var(--page-glow-2-y), var(--page-glow-2), transparent 62%),
    radial-gradient(1000px 700px at var(--page-glow-3-x) var(--page-glow-3-y), var(--page-glow-3), transparent 68%);
  transform-origin: center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: background-position;
  /* Multi-scale micro-dots = dithering to reduce 8-bit gradient banding */
  background-image:
    radial-gradient(circle at 20% 24%, var(--page-noise-a) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 36%, var(--page-noise-b) 0 1.4px, transparent 2px),
    radial-gradient(circle at 48% 68%, var(--page-noise-c) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.065) 0 0.85px, transparent 1.35px),
    radial-gradient(circle at 63% 11%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 62%, rgba(200, 210, 230, 0.055) 0 0.75px, transparent 1.2px),
    radial-gradient(circle at 44% 41%, rgba(255, 255, 255, 0.048) 0 1.1px, transparent 1.7px);
  background-size:
    150px 150px,
    230px 230px,
    310px 310px,
    82px 82px,
    67px 71px,
    53px 59px,
    96px 88px;
  background-position:
    0 0,
    60px 80px,
    30px 140px,
    12px 40px,
    33px 7px,
    7px 120px,
    88px 22px;
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

.theme-animate body::before {
  animation: pageGlowDrift 82s ease-in-out infinite alternate;
}

.theme-animate body::after {
  animation: pageNoiseDrift 110s linear infinite;
}

html.theme-bg-motion-off body::before,
html.theme-bg-motion-off body::after,
html.theme-bg-motion-off .ambient-scene,
html.theme-bg-motion-off .ambient-scene::before,
html.theme-bg-motion-off .ambient-scene::after,
html.theme-bg-motion-off .ambient-scene *,
html.theme-bg-motion-off .ambient-scene *::before,
html.theme-bg-motion-off .ambient-scene *::after,
html.theme-bg-motion-off .column::before,
html.theme-bg-motion-off .pill {
  animation: none !important;
}

html.theme-bg-auto-paused body::before,
html.theme-bg-auto-paused body::after,
html.theme-bg-auto-paused .ambient-scene,
html.theme-bg-auto-paused .ambient-scene::before,
html.theme-bg-auto-paused .ambient-scene::after,
html.theme-bg-auto-paused .ambient-scene *,
html.theme-bg-auto-paused .ambient-scene *::before,
html.theme-bg-auto-paused .ambient-scene *::after,
html.theme-bg-auto-paused .column::before,
html.theme-bg-auto-paused .pill {
  animation-play-state: paused;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: normal;
  opacity: 1;
  contain: paint;
}

/* Film-grain dither: keep z-index BELOW buildings/stars or the dot grid reads as “windows”. */
.ambient-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.17;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.48) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 20%, rgba(230, 235, 245, 0.24) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 10% 40%, rgba(255, 255, 255, 0.2) 0 1.05px, transparent 1.55px),
    radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.12) 0 0.65px, transparent 1.05px);
  background-size: 64px 64px, 83px 77px, 47px 51px, 109px 96px, 71px 63px;
  background-position: 0 0, 19px 33px, 7px 88px, 41px 12px, 26px 61px;
}

.ambient-scene__asset {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ambient-scene__building,
.ambient-scene__moon,
.ambient-scene__star,
.ambient-scene__comet,
.ambient-scene__figure {
  position: absolute;
  pointer-events: none;
}

.ambient-scene__building {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  min-width: 100%;
  height: 24vh;
  border-radius: 0;
  transform-origin: center bottom;
  will-change: transform, opacity;
  /* Large soft shadows = smooth ramps that band like gradients; keep a tight edge only */
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Furthest back: darkest. Nearest: lightest. Solid fills only — no vignette radials (they band). */
.ambient-scene__building--far {
  z-index: 2;
  background-color: #202028;
  clip-path: var(--ambient-building-clip, polygon(0 100%, 0 58%, 10% 58%, 10% 48%, 22% 48%, 22% 64%, 36% 64%, 36% 42%, 50% 42%, 50% 60%, 68% 60%, 68% 50%, 82% 50%, 82% 66%, 100% 66%, 100% 100%));
}

.ambient-scene__building--mid {
  z-index: 3;
  /* Mid layer: see more of the back row / sky */
  background-color: rgba(61, 61, 72, 0.68);
  clip-path: var(--ambient-building-clip, polygon(0 100%, 0 64%, 12% 64%, 12% 36%, 25% 36%, 25% 54%, 39% 54%, 39% 30%, 54% 30%, 54% 62%, 70% 62%, 70% 40%, 86% 40%, 86% 58%, 100% 58%, 100% 100%));
}

.ambient-scene__building--front {
  z-index: 4;
  /* Closest layer: more transparent than mid */
  background-color: rgba(110, 110, 122, 0.42);
  clip-path: var(--ambient-building-clip, polygon(0 100%, 0 52%, 8% 52%, 8% 28%, 20% 28%, 20% 70%, 32% 70%, 32% 34%, 46% 34%, 46% 58%, 60% 58%, 60% 22%, 72% 22%, 72% 48%, 88% 48%, 88% 38%, 100% 38%, 100% 100%));
}

.ambient-scene__moon {
  left: 0;
  top: 0;
  width: clamp(220px, 26vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  background:
    radial-gradient(
      circle at 38% 34%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(236, 242, 250, 0.96) 28%,
      rgba(200, 212, 228, 0.82) 52%,
      rgba(130, 148, 172, 0.45) 78%,
      rgba(72, 88, 112, 0.12) 100%
    );
  box-shadow:
    0 0 46px rgba(220, 235, 255, 0.26),
    0 0 180px rgba(156, 184, 230, 0.18);
  opacity: 0;
}

.ambient-scene__moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 36% 42%, rgba(115, 132, 160, 0.16) 0 6%, transparent 7%),
    radial-gradient(circle at 58% 30%, rgba(115, 132, 160, 0.12) 0 4%, transparent 5%),
    radial-gradient(circle at 62% 62%, rgba(115, 132, 160, 0.12) 0 8%, transparent 9%),
    radial-gradient(circle at 28% 66%, rgba(255, 255, 255, 0.2) 0 9%, transparent 10%);
}

.ambient-scene__moon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.52) 0 0.6px, transparent 1px),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.26) 0 0.9px, transparent 1.35px),
    radial-gradient(circle at 66% 24%, rgba(255, 255, 255, 0.14) 0 0.75px, transparent 1.15px);
  background-size: 42px 42px, 61px 57px, 48px 48px;
  background-position: 0 0, 13px 21px, 7px 9px;
}

.ambient-scene__star {
  left: 0;
  top: 0;
  z-index: 1;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 8px rgba(225, 238, 255, 0.42);
  opacity: 0;
}

.ambient-scene__comet {
  left: 0;
  top: 0;
  z-index: 5;
  will-change: transform, opacity;
  border-radius: 999px;
  transform-origin: 100% 50%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(186, 210, 255, 0.12) 38%,
    rgba(230, 240, 255, 0.55) 72%,
    rgba(255, 255, 255, 0.96) 100%
  );
  box-shadow:
    0 0 10px rgba(200, 228, 255, 0.55),
    0 0 26px rgba(160, 200, 255, 0.28);
  filter: blur(0.35px);
  opacity: 0;
}

.ambient-scene__comet--large {
  filter: blur(0.25px);
  box-shadow:
    0 0 14px rgba(210, 235, 255, 0.65),
    0 0 36px rgba(170, 210, 255, 0.38);
}

.ambient-scene__comet--medium {
  filter: blur(0.4px);
}

.ambient-scene__comet--small {
  filter: blur(0.55px);
  box-shadow:
    0 0 6px rgba(190, 220, 255, 0.45),
    0 0 16px rgba(150, 190, 255, 0.22);
}

.ambient-scene__figure {
  z-index: 5;
  bottom: 0;
  will-change: transform, opacity;
  width: 24px;
  height: 82px;
  color: rgba(223, 235, 255, 0.28);
  background: linear-gradient(180deg, rgba(191, 214, 255, 0.42), rgba(101, 137, 206, 0.1));
  border-radius: 12px 12px 8px 8px;
  opacity: 0;
}

.ambient-scene__figure::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 29%;
  width: 42%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: currentColor;
}

.ambient-scene__figure::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -10%;
  height: 18%;
  border-radius: 999px;
  background: rgba(104, 145, 214, 0.18);
  filter: blur(8px);
}

html:not(.theme-ambient-gsap) .ambient-scene__building {
  animation-name: ambientBuildingFloat;
  animation-duration: var(--ambient-duration, 20s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--ambient-delay, 0s);
  animation-iteration-count: 2;
  animation-direction: var(--ambient-direction, alternate);
  animation-fill-mode: both;
}

html:not(.theme-ambient-gsap) .ambient-scene__moon {
  opacity: var(--ambient-opacity, 0.92);
  animation-name: ambientMoonBreath;
  animation-duration: var(--ambient-moon-breath-duration, 14s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--ambient-delay, 0s);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
}

.ambient-scene__star {
  opacity: var(--ambient-fade-min, 0.14);
  animation-name: ambientStarTwinkle;
  animation-duration: var(--ambient-duration, 3s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--ambient-delay, 0s);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
}

html:not(.theme-ambient-gsap) .ambient-scene__comet {
  opacity: 0;
  animation-name: ambientCometStreak;
  animation-duration: var(--ambient-duration, 1.6s);
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-delay: var(--ambient-delay, 0s);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

html:not(.theme-ambient-gsap) .ambient-scene__figure {
  opacity: var(--ambient-fade-min, 0.06);
  animation-name: ambientFigureDrift;
  animation-duration: var(--ambient-duration, 12s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--ambient-delay, 0s);
  animation-iteration-count: 2;
  animation-direction: var(--ambient-direction, alternate);
  animation-fill-mode: both;
}

.site-header {
  background: linear-gradient(135deg, var(--menu-bg-start), var(--menu-bg-end));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
  overflow: visible;
  pointer-events: auto;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 180% at 10% 0%, var(--menu-glow-1), transparent 55%),
    radial-gradient(120% 180% at 90% 100%, var(--menu-glow-2), transparent 58%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  background: #070b12;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

.footer-container {
  max-width: 100%;
  padding: clamp(.2vw, .2vw, .2vw);
  padding-inline: clamp(2vw, 2vw, 2vw);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
  position: relative;
  z-index: 1;
}

.footer-container p {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.76rem;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

@media (max-width: 1100px) {
  .footer-container {
    flex-direction: column;
    gap: 4px;
    padding-block: 6px;
  }

  .footer-container p {
    position: static;
    transform: none;
    white-space: normal;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  user-select: none;
}

.footer-license-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.76rem;
}

.footer-license-link:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.nav-container {
  max-width: 100%;
  padding: clamp(.4vw, .4vw, .4vw);
  padding-inline: clamp(2vw, 2vw, 2vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2vw, 3vw, 4vw);
  position: relative;
  z-index: 1;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  width: 50px;
  height: auto;
  transform-origin: 50% 50%;
}

.nav-brand a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand a > span {
  display: inline-block;
  text-align: center;
}

.nav-brand-suffix {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.2;
  white-space: nowrap;
}

.nav-brand a:link,
.nav-brand a:visited,
.nav-brand a:hover {
  color: rgba(255, 255, 255, 0.88);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.nav-volume-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-motion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-motion-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  user-select: none;
  line-height: 1;
}

.nav-motion-switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 42px;
  height: 20px;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-motion-switch:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.nav-motion-switch:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.nav-motion-switch:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.nav-motion-switch-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.nav-motion-switch[aria-checked="true"] {
  background: rgba(120, 190, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(160, 214, 255, 0.22);
}

.nav-motion-switch[aria-checked="true"] .nav-motion-switch-thumb {
  transform: translateX(22px);
}

.nav-volume-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.nav-volume-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  user-select: none;
  line-height: 1;
}

.nav-volume-slider {
  width: 44px;
  height: 16px;
  accent-color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.nav-mute-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.nav-mute-btn[aria-pressed="true"] {
  background: rgba(200, 160, 0, 0.7);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a.nav-link-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.05;
  text-align: center;
}

.nav-links a.nav-link-stack > span {
  display: block;
  white-space: nowrap;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

.nav-links a:active {
  color: rgba(255, 255, 255, 1); /* Keep the hover color on active */
}

.nav-links a:link {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:visited {
  color: rgba(255, 255, 255, 0.82);
}

.nav-action-item {
  display: flex;
  align-items: center;
}

.nav-support-button {
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.96);
  background: #356fbe;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-support-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: #285da8;
  transform: translateY(-1px);
}

.nav-support-button:focus-visible,
.kofi-dialog-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.kofi-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(20, 30, 50, 0.22);
  border-radius: 12px;
  background: #f9f9f9;
  overflow: hidden;
}

.kofi-dialog::backdrop {
  background: rgba(8, 14, 28, 0.7);
}

.kofi-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 8px 12px 8px 16px;
  color: #17233b;
  background: #f9f9f9;
}

.kofi-dialog-header h2 {
  margin: 0;
  font-size: 1rem;
}

.kofi-dialog-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 35, 59, 0.25);
  border-radius: 6px;
  color: #17233b;
  background: transparent;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.kofi-dialog-content {
  position: relative;
  width: 100%;
  height: min(606px, calc(100vh - 96px));
  height: min(606px, calc(100dvh - 96px));
  overflow: hidden;
  background: #f9f9f9;
}

.kofi-dialog iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 117.647% !important;
  max-width: none;
  height: 117.647%;
  border: 0;
  box-sizing: border-box;
  transform: scale(0.85);
  transform-origin: top left;
}

.nav-download-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.nav-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a.nav-download-button,
.nav-links a.nav-download-button:link,
.nav-links a.nav-download-button:visited {
  color: rgba(255, 255, 255, 0.92);
}

.nav-download-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-download-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.nav-download-button:disabled:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.nav-dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: var(--nav-dropdown-hover-bridge-height);
}

.nav-links .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -6px -10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.nav-links button.nav-dropdown-trigger {
  appearance: none;
}

.nav-dropdown-item:hover > .nav-dropdown-trigger,
.nav-dropdown-item:focus-within > .nav-dropdown-trigger,
.nav-dropdown-item.is-open > .nav-dropdown-trigger {
  background: var(--nav-dropdown-hover-bg);
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

.nav-dropdown-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--nav-dropdown-hover-bridge-height));
  left: 50%;
  z-index: 400;
  display: flex;
  min-width: 190px;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--nav-dropdown-panel-border);
  border-radius: 12px;
  background: var(--nav-dropdown-panel-bg);
  box-shadow: var(--nav-dropdown-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -6px, 0);
  visibility: hidden;
}

.nav-dropdown-item.is-open > .nav-dropdown-menu {
  animation: navDropdownFadeIn var(--nav-dropdown-fade-duration) ease both;
  pointer-events: auto;
  visibility: visible;
}

.nav-dropdown-item.is-closing > .nav-dropdown-menu {
  animation: navDropdownFadeOut var(--nav-dropdown-fade-duration) ease both;
  pointer-events: none;
  visibility: visible;
}

.nav-links .nav-dropdown-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links .nav-dropdown-link:hover,
.nav-links .nav-dropdown-link:focus-visible {
  background: var(--nav-dropdown-hover-bg);
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

.nav-links .nav-dropdown-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

@keyframes navDropdownFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -6px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes navDropdownFadeOut {
  0% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -6px, 0);
  }
}

.header-image-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 60%;
}

.gallery-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(120, 200, 255, 0.3);
}

/* Unvisited links */
a:link {
  color: #3887e0; /* A soft blue that works on dark backgrounds */
  text-decoration: none; /* Optional: Remove underlines */
}

/* Visited links */
a:visited {
  color: #7b68ee; /* A lighter purple for visited links */
}

/* Hover effect */
a:hover {
  color: #90cdfc; /* White on hover for contrast */
  text-decoration: underline; /* Optional: Add underline on hover */
}

/* Active (clicked) state */
a:active {
  color: #cde4ff; /* A subtle red for active state */
}

.layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  min-height: 0;
}

/* Sonic Prism home (and any page with left + right columns) */
.layout.layout-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.layout.single {
  grid-template-columns: 1fr;
}

/* e.g. <main class="layout layout-single"> — not the same as .layout.single */
.layout.layout-single {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  margin: 0;
}

.column {
  position: relative;
  padding: 0 clamp(2vw, 2vw, 2vw);
  display: flex;
  align-items: center;
  min-height: 0;
  min-width: 0;
}

.column::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-size: 180% 180%;
  background-position: 0% 50%;
  animation: drift 90s ease-in-out infinite;
}

.left {
  background: transparent;
  align-items: stretch;
}

.left::before {
  background-image:
    radial-gradient(900px 500px at 15% 20%, rgba(120, 200, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at 85% 80%, rgba(170, 140, 255, 0.14), transparent 55%);
}

.right {
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  align-items: stretch;
}

.right::before {
  background-image:
    radial-gradient(900px 500px at 20% 80%, rgba(170, 140, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(120, 200, 255, 0.12), transparent 60%);
  animation-duration: 105s;
}

.single {
  background: transparent;
  align-items: stretch;
}

.single::before {
  background-image:
    radial-gradient(900px 500px at 15% 20%, rgba(120, 200, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at 85% 80%, rgba(170, 140, 255, 0.14), transparent 55%);
}

.column-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  min-height: 0;
}

#wow-img,
#magic-text {
  will-change: transform;
}

.left .column-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  z-index: 500;
  overflow-y: auto;
}

/* Equal flex spacers so the title + post-box block sits in the vertical middle */
.left .column-inner::before,
.left .column-inner::after {
  content: "";
  flex: 1 1 0;
  min-height: 0;
}

.home-layout .left .column-inner::before,
.home-layout .left .column-inner::after {
  content: none;
  display: none;
}

.right .column-inner {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.single .column-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.layout.layout-single .column {
  align-items: stretch;
  justify-content: flex-start;
  padding-block: 0;
  padding-inline: clamp(16px, 2vw, 32px);
}

.layout.layout-single .column-inner {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

h1,
h2 {
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}

.post-box {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 5px solid rgba(255, 255, 255, 0.20);
  overflow: hidden;
  position: relative;
  background: transparent;
  margin-bottom: 15px;
}

.left .post-box {
  flex: 0 1 auto;
  min-height: min(45vh, 420px);
  /* Match default .post-box so left and right columns align above the footer */
  margin-bottom: 15px;
}

.home-layout .left .post-box {
  flex: 1 1 0;
  min-height: 0;
}

.post-box > * {
  position: relative;
  z-index: 1;
}

.post-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
  z-index: 0;
}

.post-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Feed containment stays on the panel now that the page shell owns the viewport. */
.post-box--contained {
  overflow: hidden;
}

.post-box--contained .post-list {
  overscroll-behavior: contain;
}

/* Generic scroll container for any .post-box content */
.post-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  position: relative;
  z-index: 1;
}

.post-scroll > p {
  margin: 0 0 14px;
}

.post-scroll > :last-child {
  margin-bottom: 0;
}

/* Home left panel: keep the gallery discoverable without letting it take over the box. */
.home-layout .left .home-left-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(14px, 2.2vh, 24px);
  overflow-y: auto;
  /* Match the right column's post-list inset so the gallery starts level with its first post. */
  padding: 14px;
}

.home-beta-callout {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.home-beta-callout__headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.home-beta-callout__status {
  color: rgba(255, 255, 255, 0.98);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-shadow: 0 5px 22px rgba(120, 200, 255, 0.25);
}

.home-beta-callout__headline h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.home-beta-callout p {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
  line-height: 1.65;
}

.home-beta-callout__support-note {
  margin-top: 10px !important;
}

.home-beta-callout__support-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.home-beta-callout__support-link:hover,
.home-beta-callout__support-link:focus-visible {
  color: rgba(180, 220, 255, 1);
}

.home-gallery-card {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-height: clamp(132px, 22vh, 210px);
  padding: clamp(12px, 1.5vw, 18px);
  border: 5px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(36, 66, 112, 0.34), rgba(12, 18, 34, 0.72));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.home-gallery-copy {
  min-width: 0;
}

.home-gallery-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(180, 220, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-gallery-copy h2 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.home-gallery-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.home-layout .left .home-gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: clamp(100px, 17vh, 165px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.home-layout .left .home-gallery-trigger:focus-visible {
  outline: 2px solid rgba(180, 220, 255, 0.9);
  outline-offset: 4px;
}

.home-gallery-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease, filter 260ms ease;
}

.home-gallery-trigger__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 14, 0.82) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.home-gallery-trigger__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(2, 6, 14, 0.46);
  font-size: 1rem;
  line-height: 1;
}

.home-gallery-trigger:hover .home-gallery-thumb,
.home-gallery-trigger:focus-visible .home-gallery-thumb {
  filter: saturate(1.12) brightness(1.08);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .home-gallery-card {
    grid-template-columns: 1fr;
  }

  .home-layout .left .home-gallery-trigger {
    height: 150px;
  }
}

@media (max-width: 800px) {
  .layout.layout-two {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .layout-two .column {
    flex: 0 0 auto;
    padding-inline: 16px;
  }

  .layout-two .column-inner {
    height: auto;
    overflow: visible;
  }

  .layout.layout-two .post-box {
    flex: 0 0 auto;
  }

  .layout-two .post-list,
  .home-layout .left .home-left-content {
    overflow: visible;
  }

  .home-gallery-card {
    grid-template-columns: 1fr;
  }

  .layout-two .right {
    border-left: 0;
  }
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: rgba(0, 0, 0, 0.78);
}

.image-modal::backdrop {
  background: transparent;
}

.image-modal[hidden] {
  display: none;
}

.image-modal__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 90vw;
  height: 90dvh;
  box-sizing: border-box;
  padding: 0;
  border: 5px solid rgba(255, 255, 255, 0.20);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.image-modal__panel:focus {
  outline: none;
}

.image-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.image-modal__lens {
  --lens-size: clamp(130px, 16vw, 230px);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  display: none;
  width: var(--lens-size);
  height: var(--lens-size);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background-color: #000;
  background-repeat: no-repeat;
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.image-modal__lens.is-active {
  display: block;
}

.image-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(36px, 5vw, 48px);
  height: clamp(46px, 7vw, 62px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.image-modal__nav--prev {
  left: clamp(10px, 1.4vw, 18px);
}

.image-modal__nav--next {
  right: clamp(10px, 1.4vw, 18px);
}

.image-modal__nav[hidden] {
  display: none;
}

.image-modal__close:hover,
.image-modal__close:focus-visible,
.image-modal__nav:hover,
.image-modal__nav:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.image-modal__close:focus-visible,
.image-modal__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .image-modal__panel {
    border-width: 3px;
    border-radius: 12px;
  }
}

.features-list {
  margin: 0 0 0 1.15em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  padding-left: 0.2em;
}

.features-list li::marker {
  color: rgba(255, 255, 255, 0.45);
}

/* Basics tutorial model setup */
body.page-basics .post-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.basics-template-setup {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.basics-template-setup h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.basics-template-setup p {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: break-word;
}

.basics-template-setup .basics-eyebrow {
  margin-bottom: 5px;
  color: rgba(157, 205, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.basics-template-path {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.basics-template-setup .basics-template-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.basics-intro {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.basics-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.basics-intro p {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: break-word;
}

.basics-intro .basics-eyebrow {
  margin-bottom: 5px;
  color: rgba(157, 205, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.basics-intro .basics-offsite-note {
  margin-top: 14px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.model-card {
  min-width: 0;
  height: 100%;
  padding: clamp(15px, 2vw, 21px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(27, 43, 72, 0.48), rgba(7, 12, 24, 0.52));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.model-card-heading {
  margin-bottom: 10px;
}

.model-card-type {
  color: rgba(157, 205, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-card h3 {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.24rem;
  line-height: 1.2;
}

.model-card > p {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.model-file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-file {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.model-file-name {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.86);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.77rem;
  line-height: 1.4;
}

.model-file a {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 650;
}

.basics-warning {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 0.65rem;
  margin: -2px 0 14px;
  padding: 10px 11px;
  border-left: 3px solid rgba(255, 201, 105, 0.82);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 190, 76, 0.09);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.basics-warning > span {
  display: block;
  min-width: 0;
}

.basics-warning > strong:first-child + br {
  display: none;
}

.basics-upscaler-links {
  color: rgba(255, 255, 255, 0.76);
}

.basics-upscaler-links a {
  white-space: normal;
}

.basics-warning > strong:first-child {
  display: block;
  margin-bottom: 0;
  color: rgba(255, 216, 139, 0.96);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.basics-warning > span > strong:first-child {
  color: rgba(255, 216, 139, 0.9);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    height: auto;
  }
}

/*
 * Features only: viewport scroll lives in inner shells on other pages (.left .column-inner,
 * contained feed); layout-single leaves .post-scroll as the scrollport for long panel content.
 */
body.page-features .post-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.post-scroll.no-scroll {
  overflow: visible;
}

/*
 * Legal documents (terms / privacy): scroll inside .post-scroll (page shell is overflow:hidden).
 * body.legal-doc is set on terms.html & privacy.html only.
 */
body.legal-doc .post-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: break-word;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

body.legal-doc .legal-updated {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

body.legal-doc .column-inner > div:first-child h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.legal-doc .legal-section {
  margin-bottom: 1.35rem;
}

body.legal-doc .legal-section:last-child {
  margin-bottom: 0;
}

body.legal-doc .legal-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

body.legal-doc .legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.1rem 0 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

body.legal-doc .legal-section p,
body.legal-doc .legal-section li {
  font-size: 1em;
  line-height: inherit;
}

body.legal-doc .legal-section p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

body.legal-doc .legal-section ul,
body.legal-doc .legal-section ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1em;
}

body.legal-doc .legal-section li {
  margin: 0 0 0.5rem;
}

body.legal-doc .legal-section li:last-child {
  margin-bottom: 0;
}

body.legal-doc .legal-section code {
  font-size: 0.95em;
}

body.legal-doc .legal-section p:last-child {
  margin-bottom: 0;
}

body.legal-doc .legal-section a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal-doc .legal-section a:hover {
  color: #fff;
}

.other-project-links-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0 16px;
}

.other-project-links-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 240px);
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 223, 129, 0.98), rgba(255, 168, 62, 0.98));
  color: #171209;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(255, 159, 48, 0.22);
}

.other-project-links-cta :focus-visible {
  color: #171209;
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

.post {
  border-radius: 14px;
  border: 5px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.post::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
  z-index: 0;
}

.post > * {
  position: relative;
  z-index: 1;
}

.post-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-sticky-label {
  margin-left: auto;
  white-space: nowrap;
}

.post-content {
  display: grid;
  gap: 10px;
}

.post-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.86);
}

.post-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  max-width: 100%;
}

.post-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.post-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.post-embed-fallback {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 16, 30, 0.42);
}

.post-embed-fallback p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.post-embed-fallback a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.post-embed-fallback a:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.post-empty {
  color: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px;
}

.pill {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  animation: floaty 36s ease-in-out infinite;
}

@keyframes drift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pageGlowDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(1%, 1.5%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(2%, -1%, 0) scale(1.02);
  }
}

@keyframes pageNoiseDrift {
  0% {
    background-position:
      0 0,
      60px 80px,
      30px 140px,
      12px 40px,
      33px 7px,
      7px 120px,
      88px 22px;
  }
  100% {
    background-position:
      180px 120px,
      -120px 160px,
      210px 20px,
      92px -36px,
      -44px 58px,
      54px 188px,
      164px -12px;
  }
}

@keyframes ambientBuildingFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(var(--ambient-drift-x, 0vw), var(--ambient-drift-y, 0vh), 0);
  }
}

@keyframes ambientMoonBreath {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}

@keyframes ambientStarTwinkle {
  0% {
    opacity: var(--ambient-fade-min, 0.12);
    transform: scale(0.78);
  }
  100% {
    opacity: var(--ambient-fade-max, 0.86);
    transform: scale(var(--ambient-scale, 1.25));
  }
}

@keyframes ambientCometStreak {
  0% {
    transform: translate3d(var(--ambient-start-x, -12vw), var(--ambient-start-y, -6vh), 0) rotate(var(--ambient-rotation, 38deg))
      scale(var(--ambient-scale, 1));
    opacity: 0;
  }
  10% {
    opacity: var(--ambient-opacity, 0.75);
  }
  82% {
    opacity: var(--ambient-opacity, 0.75);
  }
  100% {
    transform: translate3d(var(--ambient-end-x, 108vw), var(--ambient-end-y, 92vh), 0) rotate(var(--ambient-rotation, 38deg))
      scale(var(--ambient-scale, 1));
    opacity: 0;
  }
}

@keyframes ambientFigureDrift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: var(--ambient-fade-min, 0.06);
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: var(--ambient-fade-max, 0.22);
  }
}

