/* Shared entry UI styles, followed by page-scoped entry styles. */
/* LHU design tokens, 4 themes, global reset, a11y focus */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #070708;
}
img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button {
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

 
:root {
  --bg:              #f6f4ef;
  --bg-solid:        #ffffff;
  --bg-elevated:     #ece8df;
  --card-bg:         #ffffff;
  --header-bg:       rgba(246, 244, 239, 0.86);
  --door-bg:         #f6f4ef;

  --text:            #141413;
  --text-muted:      #5c5852;
  --text-soft:       #6b655e;

  --border-soft:     rgba(20, 20, 19, 0.12);
  --border-medium:   rgba(20, 20, 19, 0.22);
  --border-strong:   #141413;

  --accent:          #e04836;
  --accent-red:      #e0312d;
  --accent-yellow:   #e0b422;
  --accent-blue:     #2574d4;

  --strip-active:    var(--accent);
  --strip-text:      #3d2500;
  --strip-fade:      rgba(246, 244, 239, 1);
  --strip-fade-end:  rgba(246, 244, 239, 0);

  --dot:             #d5d0ca;
  --dot-active:      #b33;
  --dynamic-hue:     0deg;
  --bg-glow:         rgba(224, 72, 54, 0.05);

  --shadow-sm:       0 1px 3px rgba(20, 20, 19, 0.05);
  --shadow-md:       0 10px 30px rgba(20, 20, 19, 0.08);
  --shadow-lg:       0 24px 56px rgba(20, 20, 19, 0.14);
  --shadow-pixel:    0 10px 32px rgba(20, 20, 19, 0.08);

   
  --font-sans:       -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:       ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-display:    var(--font-sans);
  --font-body:       var(--font-sans);

  --fs-xs:           clamp(0.68rem, 1vw + 0.35rem, 0.78rem);
  --fs-sm:           clamp(0.78rem, 1.2vw + 0.4rem, 0.9rem);
  --fs-base:         clamp(0.92rem, 1.4vw + 0.45rem, 1.05rem);
  --fs-md:           clamp(1.05rem, 1.6vw + 0.5rem, 1.25rem);
  --fs-lg:           clamp(1.25rem, 2.2vw + 0.55rem, 1.65rem);
  --fs-xl:           clamp(1.5rem, 3vw + 0.65rem, 2.25rem);
  --fs-2xl:          clamp(1.85rem, 4vw + 0.75rem, 3rem);
  --fs-body-content: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem);

  --space-xs:        clamp(6px, 1.5vw, 10px);
  --space-sm:        clamp(12px, 2.5vw, 20px);
  --space-md:        clamp(22px, 3.5vw, 36px);
  --space-lg:        clamp(36px, 5.5vw, 64px);
  --space-xl:        clamp(56px, 7vw, 96px);

  --radius-sm:       8px;
  --radius:          14px;
  --radius-lg:       20px;

  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

 
html[data-theme="dark"] {
  --bg:            #09090b; --bg-solid: #111114; --bg-elevated: #16161a;
  --card-bg:       #141418; --header-bg: rgba(14, 14, 17, 0.84); --door-bg: #09090b;
  --text:          #f3f2ee; --text-muted: #9e9b93; --text-soft: #8c8981;
  --border-soft:   rgba(255, 255, 255, 0.11); --border-medium: rgba(255, 255, 255, 0.2); --border-strong: rgba(255, 255, 255, 0.32);
  --accent:        #ff6b4a; --accent-yellow: #ffd03b;
  --strip-text:    #d4b48a;
  --strip-fade:    rgba(22, 22, 26, 1); --strip-fade-end: rgba(22, 22, 26, 0);
  --dot:           #3a3a40; --dot-active: #ff6b4a;
  --bg-glow:       rgba(255, 107, 74, 0.05);
  --shadow-md:     0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 24px 56px rgba(0, 0, 0, 0.6);
}
html[data-theme="mono-gray"] {
  --bg: #111111; --bg-solid: #1a1a1a; --bg-elevated: #1a1a1a;
  --card-bg: #1e1e1e; --header-bg: rgba(20, 20, 20, 0.86); --door-bg: #111111;
  --text: #ededed; --text-muted: #9a9a9a; --text-soft: #8a8a8a;
  --border-soft: rgba(255,255,255,0.12); --border-medium: rgba(255,255,255,0.22); --border-strong: rgba(255,255,255,0.4);
  --accent: #ffffff; --strip-text: #bbb;
  --strip-fade: rgba(26,26,26,1); --strip-fade-end: rgba(26,26,26,0);
  --dot: #555; --dot-active: #ddd;
  --bg-glow: rgba(255, 255, 255, 0.03);
}
html[data-theme="mono-green"] {
  --bg: #030d04; --bg-solid: #071708; --bg-elevated: #061507;
  --card-bg: #091d0b; --header-bg: rgba(5, 19, 6, 0.88); --door-bg: #030d04;
  --text: #86ff8a; --text-muted: #56c95a; --text-soft: #5bbf5f;
  --border-soft: rgba(134, 255, 138, 0.16); --border-medium: rgba(134, 255, 138, 0.28); --border-strong: #9effa1;
  --accent: #9effa1; --accent-red: #ff5555; --accent-blue: #55bbff;
  --strip-text: #5cdb5c;
  --strip-fade: rgba(6, 21, 7, 1); --strip-fade-end: rgba(6, 21, 7, 0);
  --dot: #1b5e20; --dot-active: #69f0ae;
  --bg-glow: rgba(124, 255, 124, 0.05);
}
html[data-theme="crt"] {
  --bg: #090b09; --bg-solid: #0e120e; --bg-elevated: #0c100c;
  --card-bg: #121712; --header-bg: rgba(12, 16, 12, 0.88); --door-bg: #090b09;
  --text: #d0ebd0; --text-muted: #8eb38e; --text-soft: #79a079;
  --border-soft: rgba(208, 235, 208, 0.14); --border-medium: rgba(208, 235, 208, 0.25); --border-strong: #d4ffd4;
  --accent: #d4ffd4; --strip-text: #9ccc9c;
  --strip-fade: rgba(12, 16, 12, 1); --strip-fade-end: rgba(12, 16, 12, 0);
  --dot: #2a4a2a; --dot-active: #99ff99;
  --bg-glow: rgba(200, 230, 200, 0.04);
}
html[data-theme="mono-gray"] main#mainContent { filter: grayscale(1); }
html[data-theme="mono-green"] main#mainContent {
  filter: grayscale(1) sepia(0.85) hue-rotate(70deg) saturate(2.4) brightness(0.92);
}
html[data-theme="crt"]::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.7;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0px, rgba(0,0,0,0.35) 1px, transparent 1px, transparent 3px);
  background-size: 100% 3px;
}

 
body {
  background: radial-gradient(circle at 50% 0%, var(--bg-glow), transparent 65%), var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body-content);
  line-height: 1.6;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
   
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: auto;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
}
h2 { font-size: var(--fs-xl); margin: 0 auto var(--space-md); }
h3 { font-size: var(--fs-lg); margin: var(--space-lg) 0 var(--space-sm); }
h4 { font-size: var(--fs-md); margin: var(--space-md) 0 var(--space-sm); }

p, ul, ol, .body-text {
  font-family: var(--font-sans);
  font-size: var(--fs-body-content);
  line-height: 1.65;
  text-align: left;
  color: var(--text);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
 
main#mainContent :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
 

.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;
}
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 200001; padding: 10px 16px; background: var(--text); color: var(--bg);
  border-radius: 10px; font-size: var(--fs-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

 
.header {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(10px + env(safe-area-inset-top)) clamp(12px, 3vw, 28px) 10px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
   
  border-bottom: 0;
  position: sticky; top: 0; z-index: 1000;
  width: 100%;
  transition: background 0.35s ease;
}

.strip-wrapper.sphere-nav-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 780px);
  max-width: 780px;
  min-height: 54px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-medium);
}
.strip-wrapper.sphere-nav-toolbar .nav-toolbar-row > :not(#collapseToggle) {
  transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}
.strip-wrapper.sphere-nav-toolbar.is-collapsed .nav-toolbar-row > :not(#collapseToggle) {
  display: none !important;
}
.strip-wrapper.sphere-nav-toolbar.is-collapsed .nav-toolbar-row {
  justify-content: flex-end;
}
.strip-wrapper.sphere-nav-toolbar.is-collapsed {
  max-width: 42px !important;
  width: 42px !important;
  min-height: 42px !important;
  height: 42px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.strip-wrapper.sphere-nav-toolbar.is-collapsed .nav-toolbar-row {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  justify-content: flex-end;
}
/* Make the header transparent when the strip is collapsed */
.header:has(.strip-wrapper.is-collapsed) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
#collapseToggle {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.nav-toolbar-row {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  width: 100%;
  height: 54px;
  padding: 0 8px;
  gap: 8px;
}
.sphere-nav-toolbar .theme-btn,
.sphere-nav-toolbar .audio-btn,
.sphere-nav-toolbar .collapse-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sphere-nav-toolbar .theme-btn { font-size: 15px; }
.sphere-nav-toolbar .theme-btn:hover,
.sphere-nav-toolbar .audio-btn:hover,
.sphere-nav-toolbar .collapse-btn:hover {
  background: var(--text);
  color: var(--bg);
}
.sphere-nav-toolbar .collapse-btn img,
.sphere-nav-toolbar .audio-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}
.audio-btn:not(.muted) img {
  filter: hue-rotate(var(--dynamic-hue)) saturate(1.8);
}
 
.audio-btn.muted img {
  filter: none !important;
  opacity: 1;
}
 
.duck-crt {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  padding: 0 5px;
  border: 1px solid rgba(70, 255, 120, 0.24);
  border-radius: 6px;
  color: #8dffab;
  background: #041008;
  box-shadow: inset 0 0 10px rgba(0, 255, 80, 0.10), 0 0 8px rgba(0, 255, 80, 0.06);
}
.duck-crt::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(160, 255, 180, 0.25) 0,
    rgba(160, 255, 180, 0.25) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.7;
}
.duck-crt::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 38%, rgba(0,0,0,0.10));
  animation: duckCrtFlicker 3.4s steps(1, end) infinite;
}
.duck-crt-track {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  position: relative;
  z-index: 1;
  animation: duckCrtMoveLeft 14s linear infinite;
  will-change: transform;
}
.duck-crt-track span {
  display: block;
  flex: 0 0 auto;
  padding-right: 3.2em;
  white-space: nowrap;
  color: #8dffab;
  font-family: 'VT323', var(--font-mono), monospace;
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1;
  text-shadow: 0 0 2px rgba(90,255,130,0.95), 0 0 7px rgba(0,255,80,0.62);
}
.sphere-nav-toolbar.categories-open .duck-crt-track {
  animation-name: duckCrtMoveRight;
}
@keyframes duckCrtMoveLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes duckCrtMoveRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes duckCrtFlicker {
  0%, 94%, 96%, 100% { opacity: 1; }
  95% { opacity: 0.84; }
}

 
.duck-crt.category-marquee { height:42px; padding:0; border:0; border-radius:999px; background:rgba(255,255,255,.025); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.duck-crt.category-marquee::before,.duck-crt.category-marquee::after { display:none; }
.marquee-category { display:inline-flex; flex:0 0 auto; align-items:center; gap:8px; padding:3px 2px; border:0; background:transparent; color:var(--text-muted); cursor:pointer; white-space:nowrap; text-transform:uppercase; font:600 11px/1 var(--font-mono); letter-spacing:.035em; }
.marquee-category:hover,.marquee-category[aria-current="page"] { color:var(--text); }
.marquee-planet { display:block; width:30px; height:30px; flex:0 0 30px; border-radius:50%; border:1px solid rgba(255,255,255,.55); background:radial-gradient(circle at 28% 24%,rgba(255,255,255,.95),rgba(255,255,255,.12) 16%,transparent 34%),radial-gradient(circle at 35% 28%,var(--planet-hi),var(--planet-mid) 48%,var(--planet-low) 78%,#090909 100%); box-shadow:inset -5px -7px 12px rgba(0,0,0,.48),0 0 7px color-mix(in srgb,var(--planet-mid) 35%,transparent); }
.marquee-category.sphere-material-1 {--planet-hi:#ffaaa5;--planet-mid:#d8242c;--planet-low:#4b0710}
.marquee-category.sphere-material-2 {--planet-hi:#ffe8a0;--planet-mid:#c99422;--planet-low:#49300a}
.marquee-category.sphere-material-3 {--planet-hi:#fff0c8;--planet-mid:#a99a78;--planet-low:#393024}
.marquee-category.sphere-material-4 {--planet-hi:#a8d2ff;--planet-mid:#1766c5;--planet-low:#071d48}
.marquee-category.sphere-material-5 {--planet-hi:#e4c4ff;--planet-mid:#8453c9;--planet-low:#291043}
.marquee-category.sphere-material-6 {--planet-hi:#ffaaa5;--planet-mid:#d8242c;--planet-low:#4b0710}
.marquee-category.sphere-material-7 {--planet-hi:#d7f5a0;--planet-mid:#75a52c;--planet-low:#263c0b}
.marquee-category.sphere-material-8 {--planet-hi:#ffd0a1;--planet-mid:#bd6a26;--planet-low:#4a220b}
@media(max-width:768px) { .nav-toolbar-row{gap:5px;padding-inline:5px}.duck-crt.category-marquee{height:38px}.marquee-planet{width:25px;height:25px;flex-basis:25px}.marquee-category{font-size:10px;gap:6px} }

@media (max-width: 380px) {
  .duck-crt:not(.category-marquee) { height: 32px; padding-inline: 3px; }
  .duck-crt:not(.category-marquee) .duck-crt-track span { font-size: 15px; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
  .duck-crt:not(.category-marquee) .duck-crt-track { animation: none !important; transform: none !important; }
  .duck-crt:not(.category-marquee) .duck-crt-track span { font-size: 13px; letter-spacing: 0; padding-right: 0; }
  .duck-crt:not(.category-marquee) .duck-crt-track span:nth-child(2) { display: none; }
  .duck-crt:not(.category-marquee)::after { animation: none; }
}

.sphere-menu {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.42s var(--ease-out), opacity 0.22s ease, transform 0.28s var(--ease-out), padding 0.3s ease, visibility 0s linear 0.42s;
}
.sphere-nav-toolbar.categories-open .sphere-menu {
  max-height: 360px;
  padding: 16px 14px 18px;
  border-top: 1px solid var(--border-soft);
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: max-height 0.42s var(--ease-out), opacity 0.24s ease 0.04s, transform 0.28s var(--ease-out), padding 0.3s ease, visibility 0s;
}
.sphere-category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: clamp(8px, 1.6vw, 18px);
  width: 100%;
}
.sphere-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
}
.sphere-nav-toolbar.categories-open .sphere-option {
  animation: sphere-manifest 0.48s var(--ease-out) both;
  animation-delay: calc(var(--sphere-order, 0) * 45ms);
}
.sphere-category {
  --sphere-size: clamp(46px, 5.4vw, 68px);
  --sphere-light: #ff6257;
  --sphere-mid: #b9232e;
  --sphere-dark: #5b111b;
  --sphere-deep: #1c080e;
  position: relative;
  flex: 0 0 var(--sphere-size);
  width: var(--sphere-size);
  height: var(--sphere-size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 27% 16%, rgba(255,255,255,.96) 0 2.5%, rgba(255,255,255,.52) 5%, transparent 21%),
    radial-gradient(ellipse at 70% 82%, rgba(0,0,0,.42), transparent 44%),
    radial-gradient(circle at 34% 29%, var(--sphere-light) 0%, var(--sphere-mid) 38%, var(--sphere-dark) 73%, var(--sphere-deep) 100%);
  box-shadow: inset -8px -10px 16px rgba(0,0,0,.45), inset 4px 5px 10px rgba(255,255,255,.32), 0 6px 14px rgba(0,0,0,.22);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease, filter 0.24s ease;
}
.sphere-category::before {
  content: "";
  position: absolute;
  inset: -24% -34%;
  border-radius: 50%;
  background: linear-gradient(108deg, transparent 36%, rgba(255,255,255,.55) 49%, transparent 61%);
  transform: translateX(-56%) rotate(13deg);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
  animation: sphere-reflection-sweep 8s ease-in-out infinite;
  animation-delay: calc(var(--sphere-order, 0) * -450ms);
}
.sphere-material-1 { --sphere-light:#ff5548; --sphere-mid:#c51e28; --sphere-dark:#641019; --sphere-deep:#21060a; }
.sphere-material-2 { --sphere-light:#ffd45a; --sphere-mid:#c18a1d; --sphere-dark:#65420c; --sphere-deep:#211405; }
.sphere-material-3 { --sphere-light:#fff0d1; --sphere-mid:#c1a875; --sphere-dark:#69512d; --sphere-deep:#21170b; }
.sphere-material-4 { --sphere-light:#579cff; --sphere-mid:#205cb8; --sphere-dark:#10336e; --sphere-deep:#07152d; }
.sphere-material-5 { --sphere-light:#b28aff; --sphere-mid:#6842a8; --sphere-dark:#38205f; --sphere-deep:#130a24; }
.sphere-material-6 { --sphere-light:#ff493e; --sphere-mid:#c51c25; --sphere-dark:#650b13; --sphere-deep:#210408; }
.sphere-material-7 { --sphere-light:#a5cf52; --sphere-mid:#547d25; --sphere-dark:#2c4613; --sphere-deep:#101907; }
.sphere-material-8 { --sphere-light:#ff9a42; --sphere-mid:#bf5d1d; --sphere-dark:#66300e; --sphere-deep:#241005; }

.sphere-category:hover,
.sphere-category:focus-visible {
  transform: translateY(-3px) scale(1.06);
  filter: brightness(1.08);
  outline: none;
}
.sphere-category.active {
  transform: scale(1.06);
  box-shadow:
    inset -8px -10px 16px rgba(0,0,0,.45),
    inset 4px 5px 10px rgba(255,255,255,.35),
    0 0 0 2px var(--text),
    0 8px 20px rgba(0,0,0,.28);
}
.sphere-category-name {
  display: block;
  width: 100%;
  min-height: 2.2em;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: clamp(9px, 0.8vw, 10.5px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.sphere-option:hover .sphere-category-name,
.sphere-option.is-active .sphere-category-name {
  color: var(--text);
}

@keyframes sphere-manifest {
  0% { opacity: 0; transform: translateY(12px) scale(0.88); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sphere-reflection-sweep {
  0%, 15% { transform: translateX(-58%) rotate(13deg); opacity: 0.15; }
  50% { opacity: 0.72; }
  85%, 100% { transform: translateX(58%) rotate(13deg); opacity: 0.15; }
}

.legacy-nav-runtime { display: none !important; }

@media (max-width: 640px) {
  .sphere-nav-toolbar.categories-open .sphere-menu { max-height: 340px; padding: 14px 10px 16px; }
  .sphere-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .sphere-category { --sphere-size: clamp(48px, 13vw, 60px); }
  .sphere-category-name { font-size: 9px; }
}

 
main#mainContent {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 100%; max-width: 100%;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding: clamp(36px, 6vw, 76px) clamp(16px, 4vw, 48px) var(--space-xl);
  z-index: 1;
  overflow-x: hidden;  
  overflow-x: clip;   background: transparent;
  position: relative;
}
main#mainContent section,
main#mainContent div {
  width: 100%; max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
main#mainContent p, main#mainContent h2,
main#mainContent h3, main#mainContent h4 {
  word-wrap: break-word; overflow-wrap: break-word;
  max-width: 100%;
}
main#mainContent p {
  font-family: var(--font-sans);
  font-size: var(--fs-body-content);
  line-height: 1.68;
  margin: var(--space-sm) auto;
  text-align: left;
  max-width: 66ch;
}
main#mainContent h2.category-opening-title {
  display: block;
  width: 100%;
  margin: 0 auto clamp(24px, 4vw, 42px);
  text-align: center;
  font-weight: 700;
  color: var(--text);
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow:
    3px 0 0 rgba(224, 49, 45, 0.35),
   -2px 2px 0 rgba(224, 180, 34, 0.3),
   -2px -2px 0 rgba(37, 116, 212, 0.35);
}
main#mainContent img {
  display: block;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  margin: var(--space-md) auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
main#mainContent hr {
  border: 0; height: 1px;
  background: var(--border-soft);
  margin: var(--space-lg) auto;
  width: min(100%, 640px);
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main#mainContent > section { animation: sectionFadeIn 0.45s var(--ease-out); }

@media (min-width: 900px) {
  :root { --lhu-desktop-media-height: min(58vh, 560px); }
  main#mainContent section { max-width: 920px; padding: var(--space-md) var(--space-lg); }
  main#mainContent img { max-width: 620px !important; }
  main#mainContent .profile-carousel { max-width: min(100%, 500px); }
  main#mainContent .profile-carousel .carousel-slide img {
    width: auto !important; max-width: 100% !important;
    height: auto !important; max-height: var(--lhu-desktop-media-height) !important;
    object-fit: contain;
  }
  main#mainContent .lhu-image-frame:not(.lhu-image-frame--carousel) > img {
    width: auto !important; max-width: min(100%, 620px) !important;
    max-height: var(--lhu-desktop-media-height) !important; object-fit: contain;
  }
  main#mainContent #projects-accordion .carousel-stage {
    aspect-ratio: auto; height: var(--lhu-desktop-media-height);
    min-height: 300px; max-height: 560px;
  }
  main#mainContent #projects-accordion .carousel-slide img {
    width: auto !important; height: auto !important;
    max-width: 100% !important; max-height: 100% !important; object-fit: contain;
  }
  main#mainContent #projects-accordion .carousel-slide.is-model {
    width: min(100%, 500px); height: 100%; max-width: 500px; max-height: 100%;
  }
  main#mainContent #vhs-preview-wrap {
    max-width: min(100%, 620px); max-height: var(--lhu-desktop-media-height);
    align-items: center; justify-content: center;
  }
  main#mainContent #vhs-preview-img {
    width: auto !important; max-width: 100% !important;
    max-height: var(--lhu-desktop-media-height) !important; object-fit: contain;
  }
}

 
.welcome-card, .error-card {
  background: var(--card-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-md);
  animation: sectionFadeIn 0.4s var(--ease-out);
}
.welcome-card h2, .error-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  text-align: center;
}
.error-card h3 { color: var(--accent-red); }
.welcome-card p, .error-card p {
  color: var(--text-muted);
  text-align: center;
}
.error-card button {
  margin-top: var(--space-md);
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

 
#door-overlay { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
#door-overlay.closed { pointer-events: all; }
#door-overlay .door-panel {
  position: absolute; inset: 0;
  transition: transform 0.95s cubic-bezier(0.85, 0, 0.15, 1) !important;
  will-change: transform;
  backface-visibility: hidden;
  background-color: var(--door-bg);
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(4, 1fr);
  padding: 2vw; gap: 1.5vw;
}
.door-tile {
  background-image: url('pixelart/pixelart_vedran.png');
  background-size: contain; background-position: center center; background-repeat: no-repeat;
  width: 100%; height: 100%;
  transform: perspective(400px) translate(var(--t-tx, 0px), var(--t-ty, 0px)) rotate(var(--t-rot, 0deg)) rotateY(var(--t-rotY, 0deg)) skewX(var(--t-skx, 0deg)) scale(var(--t-sx, 1), var(--t-sy, 1));
  filter: var(--t-fil, none);
  will-change: transform, filter;
}
@media (max-width: 768px) {
  #door-overlay .door-panel { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); padding: 4vw; gap: 3vw; }
  .door-tile:nth-child(n+9) { display: none; }
}
#door-overlay.closed .door-panel { transform: translate3d(0, 0%, 0); }
#door-overlay.open .door-panel   { transform: translate3d(0, 120%, 0); }

/* Per-category pixel-art head effects on door tiles */
#door-overlay[data-category="ABOUT"] .door-tile { animation: doorFxJump 0.9s ease-in-out infinite; }
#door-overlay[data-category="VHS MULTIVERSE"] .door-tile { animation: doorFxHolo 1.6s steps(2, end) infinite; filter: hue-rotate(180deg) saturate(1.6) brightness(1.1); }
#door-overlay[data-category="HUMANART"] .door-tile { animation: doorFxGlitter 1.2s ease-in-out infinite; filter: brightness(1.3) saturate(1.4); }
#door-overlay[data-category="PROJECTS"] .door-tile { animation: doorFxTron 1.4s linear infinite; filter: hue-rotate(150deg) brightness(1.4) saturate(2); }
#door-overlay[data-category="STORYTIME"] .door-tile { animation: doorFxSonar 1.8s ease-in-out infinite; filter: hue-rotate(90deg) saturate(1.8) brightness(1.2); }
#door-overlay[data-category="MUSIC"] .door-tile { animation: doorFxSoundwave 0.8s ease-in-out infinite; }
#door-overlay[data-category="CONTACT"] .door-tile { animation: doorFxVibrate 0.35s linear infinite; }
#door-overlay[data-category="DONATE"] .door-tile { animation: doorFxBobbly 1.1s ease-in-out infinite; }

@keyframes doorFxJump { 0%,100% { opacity:1; } 50% { opacity:.94; } }
@keyframes doorFxHolo { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes doorFxGlitter { 0%,100% { filter: brightness(1.3) saturate(1.4); } 50% { filter: brightness(1.8) saturate(1.8) contrast(1.1); } }
@keyframes doorFxTron { 0% { box-shadow: 0 0 0 0 rgba(0, 220, 255, 0.6); } 50% { box-shadow: 0 0 12px 2px rgba(0, 220, 255, 0.9); } 100% { box-shadow: 0 0 0 0 rgba(0, 220, 255, 0.6); } }
@keyframes doorFxSonar { 0%,100% { opacity: 1; } 50% { opacity: 0.5; filter: hue-rotate(90deg) saturate(2) brightness(1.4); } }
@keyframes doorFxSoundwave { 0%,100% { opacity:1; } 50% { opacity:.94; } }
@keyframes doorFxVibrate { 0%,100% { filter:brightness(1); } 25% { filter:brightness(1.12); } 75% { filter:brightness(.96); } }
@keyframes doorFxBobbly { 0%,100% { filter:brightness(1); } 25% { filter:brightness(1.10); } 75% { filter:brightness(.96); } }
@media (prefers-reduced-motion: reduce) {
  #door-overlay .door-tile { animation: none !important; }
}

 
.prod-3d-badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 10px; padding: 4px 10px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font: 600 10px/1 var(--font-mono); letter-spacing: 0.06em;
}
.prod-header .prod-name-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; min-width: 0; }
main#mainContent #projects-accordion .carousel-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 280px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
main#mainContent #projects-accordion .carousel-slide,
main#mainContent #projects-accordion .carousel-slide.active {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
main#mainContent #projects-accordion .carousel-slide img {
  width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important;
  object-fit: contain; margin: 0 !important; border-radius: 0; box-shadow: none;
}

 
main#mainContent .lhu-image-frame {
  position: relative; display: block; width: fit-content; max-width: 100%;
  margin: var(--space-md) auto; isolation: isolate;
}
main#mainContent .lhu-image-frame > img { display: block; max-width: 100%; margin: 0 auto !important; }
main#mainContent .lhu-image-frame--carousel { width: 100%; height: auto; margin: 0; align-self: start; }
main#mainContent .profile-carousel .carousel-slide.lhu-image-frame--carousel {
  position: absolute; inset: 0; width: 100%; height: auto; margin: 0;
}
main#mainContent .profile-carousel .carousel-slide.lhu-image-frame--carousel.active { position: relative; }
main#mainContent .profile-carousel .lhu-image-frame--carousel > img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
}
main#mainContent .lhu-image-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 12;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(12, 12, 14, 0.82); color: #fff; font-size: 19px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35); cursor: zoom-in;
  transition: transform 0.18s ease, background 0.18s ease;
}
main#mainContent .lhu-image-zoom:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
main#mainContent .lhu-image-zoom:disabled { opacity: 0; pointer-events: none; }

main#mainContent a.sticker-link {
  display: inline-block; background: transparent !important; border: none !important;
  box-shadow: none !important; transition: transform 0.2s ease;
}
main#mainContent a.sticker-link:hover { transform: scale(1.04); }
main#mainContent a.sticker-link img.transparent-sticker {
  background: transparent !important; border: none !important; box-shadow: none !important;
  border-radius: 0 !important; max-width: 300px !important; margin: 0 auto;
}

.vhs-zoom-wrapper { overflow: hidden !important; border-radius: var(--radius); contain: paint; position: relative; }
.vhs-wobble-img { animation: vhsIdleWobble 4.5s ease-in-out infinite; will-change: transform; }
.vhs-zoom-wrapper.glitching .vhs-wobble-img { animation: vhsGlitch 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes vhsIdleWobble {
  0%,100% { transform: translateX(0) skewX(0); }
  25%     { transform: translateX(1.5px) skewX(-0.3deg); }
  50%     { transform: translateX(-1.5px) skewX(0.25deg); }
  75%     { transform: translateX(0.8px) skewX(-0.15deg); }
}
@keyframes vhsGlitch {
  0%   { transform: translateX(0) skewX(0); filter: none; }
  12%  { transform: translateX(-9px) skewX(4deg); filter: hue-rotate(90deg) saturate(2.5); }
  28%  { transform: translateX(7px) skewX(-4deg); filter: hue-rotate(-60deg) saturate(2); }
  50%  { transform: translateX(-4px) skewX(2deg); }
  100% { transform: translateX(0) skewX(0); filter: none; }
}
.vhs-crt-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(0,255,255,0.3) 35%, transparent 100%);
  mix-blend-mode: overlay;
}
.vhs-crt-overlay.active { animation: crtImagePowerOn 0.8s ease-out forwards; }
@keyframes crtImagePowerOn {
  0%   { opacity: 0; transform: scaleY(0.02); }
  20%  { opacity: 1; transform: scaleY(1.1); }
  100% { opacity: 0; transform: scaleY(1); }
}

.lhu-lightbox[hidden] { display: none !important; }
.lhu-lightbox {
  position: fixed; inset: 0; z-index: 200000;
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: center; justify-items: center; gap: 12px;
  padding: max(64px, env(safe-area-inset-top) + 54px) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(7, 7, 8, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lhu-lightbox__stage {
  position: relative; width: min(96vw, 1600px); height: min(78dvh, 900px);
  max-height: calc(100dvh - 190px); overflow: hidden; border-radius: 8px;
  touch-action: none; outline: none; user-select: none; -webkit-user-select: none;
}
.lhu-lightbox__stage.is-pannable { cursor: grab; }
.lhu-lightbox__stage.is-pannable:active { cursor: grabbing; }
.lhu-lightbox__image {
  position: absolute; top: 50%; left: 50%; max-width: none; max-height: none;
  border-radius: 6px; transform: translate3d(0, 0, 0) translate(-50%, -50%) scale(1);
  will-change: transform; pointer-events: none; user-select: none;
}
.lhu-lightbox__close {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(24,24,27,0.9);
  color: #fff; font-size: 26px; line-height: 1;
}
.lhu-lightbox__controls {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  background: rgba(20,20,24,0.9); color: #fff;
}
.lhu-lightbox__zoom-button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 22px; line-height: 1;
}
.lhu-lightbox__zoom-button:hover:not(:disabled) { background: #fff; color: #09090b; }
.lhu-lightbox__zoom-button:disabled { opacity: 0.35; cursor: default; }
.lhu-lightbox__zoom-input {
  width: 68px; height: 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
  background: rgba(255,255,255,0.08); color: #fff; font: 600 0.9rem/1 var(--font-mono); text-align: center;
}
.lhu-lightbox__zoom-suffix { margin-left: -4px; font: 600 0.85rem/1 var(--font-mono); }
.lhu-lightbox__hint { color: rgba(255,255,255,0.6); text-align: center; font: 0.72rem/1.4 var(--font-sans); }

#site-shell[hidden] { display: none !important; }
body.site-mode { overflow-y: auto; overflow-x: clip; }
body.site-mode #lhu-intro,
body.site-mode #lhu-index-experience { display: none !important; }
body.site-mode #site-shell { display: block; min-height: 100vh; min-height: 100dvh; }


/* LHU visual polish layer */
a, button, .btn, .glass, .welcome-card, .error-card, .lhu-image-frame, .sphere-category, .marquee-category {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease, transform 0.24s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:hover, .glass:hover, .welcome-card:hover, .error-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.lhu-image-frame img { transition: transform 0.35s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)); }
.lhu-image-frame:hover img { transform: scale(1.02); }
@media (min-width: 768px) {
  main#mainContent section { padding-inline: clamp(24px, 3vw, 48px); }
}
@media (min-width: 1280px) {
  main#mainContent { padding-inline: clamp(48px, 5vw, 96px); }
}


/* LHU mirror surface for the live MAIN PAGE controls. */
.lhu-mirror-nav-btn[data-mirror] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 38px;
  border: 1.5px solid rgba(255,255,255,.38) !important;
  border-radius: 999px !important;
  background: #0a0103 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.7), 0 0 18px rgba(255,18,48,.2), inset 0 1px 1px rgba(255,255,255,.52) !important;
}
.lhu-mirror-nav-btn[data-mirror] canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lhu-mirror-nav-btn[data-mirror]::before,
.lhu-mirror-nav-btn[data-mirror]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}
.lhu-mirror-nav-btn[data-mirror]::before {
  background: linear-gradient(180deg,rgba(255,255,255,.23),rgba(255,255,255,.04) 48%,rgba(0,0,0,.22) 53%,rgba(255,255,255,.08));
}
.lhu-mirror-nav-btn[data-mirror]::after {
  z-index: 3;
  background: radial-gradient(ellipse 66% 56% at 50% 50%,rgba(8,0,2,.34),rgba(8,0,2,.02) 78%,rgba(0,0,0,.24));
}
.lhu-mirror-nav-label {
  position: relative;
  z-index: 4;
  pointer-events: none;
  color: inherit;
  text-shadow: 0 2px 6px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.85);
}
.lhu-mirror-nav-btn[data-mirror]:hover {
  border-color: #fff !important;
  background: #0a0103 !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.82),0 0 25px rgba(255,24,54,.42),0 0 10px rgba(255,255,255,.22),inset 0 1px 1px rgba(255,255,255,.8) !important;
}
@media (prefers-reduced-motion: reduce) {
  .lhu-mirror-nav-btn[data-mirror] { transition: none !important; }
}

/* Index-only styles. */
/* Eleven Knob replaces the marquee sphere. Each category keeps its sphere colour. */
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-1 { --knob-accent:#ff382e; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-2 { --knob-accent:#ffd60a; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-3 { --knob-accent:#d8c9a8; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-4 { --knob-accent:#3aa0ff; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-5 { --knob-accent:#b28aff; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-6 { --knob-accent:#ff5fa2; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-7 { --knob-accent:#8fd34a; }
:where(html[data-lhu-page="index"]) #categoryMarqueeTrack .sphere-material-8 { --knob-accent:#ff9a42; }
:where(html[data-lhu-page="index"]) .marquee-dial {
  position:relative; display:block; width:30px; height:30px; flex:0 0 30px;
  border-radius:50%; cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent;
  touch-action:manipulation; outline:none;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.45));
}
:where(html[data-lhu-page="index"]) .marquee-dial .dial-circle { position:absolute; inset:0; border-radius:50%; pointer-events:none; }
:where(html[data-lhu-page="index"]) .marquee-dial .dial-outer { border:1.5px solid rgba(235,235,235,.9); box-shadow:inset 0 0 0 1px rgba(255,255,255,.04); }
:where(html[data-lhu-page="index"]) .marquee-dial .dial-inner { inset:5px; border:1px solid rgba(235,235,235,.24); }
:where(html[data-lhu-page="index"]) .marquee-dial .dial-label { position:absolute; top:58%; z-index:2; font:800 8px/1 var(--font-mono); letter-spacing:-.04em; pointer-events:none; text-shadow:0 1px 3px #090909; }
:where(html[data-lhu-page="index"]) .marquee-dial .dial-zero { left:2px; color:rgba(244,241,235,.95); }
:where(html[data-lhu-page="index"]) .marquee-dial .dial-eleven { right:2px; color:var(--knob-accent); }
:where(html[data-lhu-page="index"]) .marquee-dial .dial-marker {
  position:absolute; z-index:3; width:4px; height:4px; border-radius:50%;
  background:var(--knob-accent); transform:translate(-50%,-50%); left:5px; top:50%; pointer-events:none;
  box-shadow:0 0 6px var(--knob-accent),0 0 12px color-mix(in srgb,var(--knob-accent) 50%,transparent);
  will-change:left,top;
}
:where(html[data-lhu-page="index"]) .marquee-dial:focus-visible .dial-outer { box-shadow:0 0 0 3px color-mix(in srgb,var(--knob-accent) 40%,transparent); }
@media(max-width:768px) { :where(html[data-lhu-page="index"]) .nav-toolbar-row {gap:5px;padding-inline:5px}:where(html[data-lhu-page="index"]) .duck-crt.category-marquee {height:38px}:where(html[data-lhu-page="index"]) .marquee-planet {width:25px;height:25px;flex-basis:25px}:where(html[data-lhu-page="index"]) .marquee-dial {width:25px;height:25px;flex-basis:25px}:where(html[data-lhu-page="index"]) .marquee-category {font-size:10px;gap:6px} }

/* 3D Heads-only styles. */
:where(html[data-lhu-page="3dheads"]) {
  --gallery-void: #070708;
  --gallery-surface: rgba(18, 18, 22, 0.76);
  --gallery-surface-hover: rgba(32, 32, 38, 0.92);
  --gallery-border: rgba(255, 255, 255, 0.16);
  --gallery-border-strong: rgba(255, 255, 255, 0.34);
  --gallery-ink: #f5f4f0;
  --gallery-muted: rgba(245, 244, 240, 0.6);
}

:where(html[data-lhu-page="3dheads"]) body.heads-mode {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--gallery-void);
  color: var(--gallery-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: auto;
}

:where(html[data-lhu-page="3dheads"]) #lhu-index-experience[hidden] { display: none !important; }

 
:where(html[data-lhu-page="3dheads"]) #lhu-index-experience {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 36%, transparent 68%),
    var(--lhu-stage-color, var(--gallery-void));
  color: var(--gallery-ink);
}
/* Soft marble veining over the chosen stage colour. One small SVG tile is
   rasterised once and repeated - no per-frame filter cost on mobile. */
:where(html[data-lhu-page="3dheads"]) #lhu-index-experience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23m)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

:where(html[data-lhu-page="3dheads"]) #matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: opacity 0.4s ease;
}

:where(html[data-lhu-page="3dheads"]) #container3D {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  touch-action: none;
}
:where(html[data-lhu-page="3dheads"]) #container3D canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}

 
:where(html[data-lhu-page="3dheads"]) #heart-emojis, :where(html[data-lhu-page="3dheads"]) #rainbow-emojis {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 100200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
:where(html[data-lhu-page="3dheads"]) #heart-emojis.active, :where(html[data-lhu-page="3dheads"]) #rainbow-emojis.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100200 !important;
}
:where(html[data-lhu-page="3dheads"]) #shmup-container { position: fixed; inset: 0; pointer-events: none; z-index: 4; display: none; }
:where(html[data-lhu-page="3dheads"]) #rainbow-aura {
  position: fixed; left: 50%; top: 50%;
  width: min(56vw, 380px); height: min(56vw, 380px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3030, #ffd52e, #40ff70, #30d8ff, #7655ff, #ff35b8, #ff3030);
  opacity: 0.16; pointer-events: none; z-index: 3; display: none !important;
}
:where(html[data-lhu-page="3dheads"]) #rainbow-aura.active { display: none !important; animation: none !important; }
@keyframes rainbowAura {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(0.82); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) scale(1.06); }
  to   { transform: translate(-50%, -50%) rotate(360deg) scale(0.82); }
}

:where(html[data-lhu-page="3dheads"]) .shmup-center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
:where(html[data-lhu-page="3dheads"]) .shmup-beam { position: absolute; top: -8px; height: 16px; width: 45vw; border-radius: 8px; opacity: 0; }
:where(html[data-lhu-page="3dheads"]) .shmup-beam.right { left: 0; transform-origin: left center; background: linear-gradient(90deg, #fff, #ff3030, #ff9d21, transparent); animation: fireRight var(--speed) linear infinite; animation-delay: var(--delay); }
:where(html[data-lhu-page="3dheads"]) .shmup-beam.left { right: 0; transform-origin: right center; background: linear-gradient(-90deg, #fff, #ff3030, #ff9d21, transparent); animation: fireLeft var(--speed) linear infinite; animation-delay: var(--delay); }
@keyframes fireRight { 0% { transform: rotate(var(--angle)) translateX(5vw) scaleX(0.2); opacity: 1; } 100% { transform: rotate(var(--angle)) translateX(50vw) scaleX(1); opacity: 0; } }
@keyframes fireLeft { 0% { transform: rotate(var(--angle)) translateX(-5vw) scaleX(0.2); opacity: 1; } 100% { transform: rotate(var(--angle)) translateX(-50vw) scaleX(1); opacity: 0; } }

:where(html[data-lhu-page="3dheads"]) .fast-rise-emoji {
  position: absolute; bottom: 0; left: var(--left);
  font-size: var(--size); line-height: 1; opacity: 0;
  animation: none !important;
  will-change: transform, opacity;
}
@keyframes riseFast {
  0%   { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate3d(var(--drift), -120vh, 0) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :where(html[data-lhu-page="3dheads"]) .fast-rise-emoji { animation: riseFast 2.4s linear infinite !important; }
}

 
:where(html[data-lhu-page="3dheads"]) .bg-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--gallery-border);
  background: var(--gallery-surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--gallery-muted);
  display: grid;
  place-items: center;
  font: 400 15px/1 var(--font-sans);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
:where(html[data-lhu-page="3dheads"]) .bg-nav-btn:hover {
  color: var(--gallery-ink);
  border-color: var(--gallery-border-strong);
  background: var(--gallery-surface-hover);
}
:where(html[data-lhu-page="3dheads"]) .bg-nav-btn:active { transform: translateY(-50%) scale(0.92); }
:where(html[data-lhu-page="3dheads"]) #bg-prev { left: clamp(12px, 2.5vw, 32px); }
:where(html[data-lhu-page="3dheads"]) #bg-next { right: clamp(12px, 2.5vw, 32px); }

 
:where(html[data-lhu-page="3dheads"]) #ui-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

 
:where(html[data-lhu-page="3dheads"]) .ui-top {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: clamp(12px, 3.5vw, 44px);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
:where(html[data-lhu-page="3dheads"]) #ui-wrapper, :where(html[data-lhu-page="3dheads"]) #effect-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

:where(html[data-lhu-page="3dheads"]) .glass {
  border-radius: 12px;
  background: var(--gallery-surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gallery-border);
  color: var(--gallery-ink);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
:where(html[data-lhu-page="3dheads"]) .btn {
  min-height: 38px;
  padding: 0 14px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
:where(html[data-lhu-page="3dheads"]) .btn:hover {
  background: var(--gallery-surface-hover);
  border-color: var(--gallery-border-strong);
}
:where(html[data-lhu-page="3dheads"]) .btn:active { transform: scale(0.96); }

:where(html[data-lhu-page="3dheads"]) .btn-primary {
  background: var(--gallery-ink);
  color: #09090b;
  border-color: var(--gallery-ink);
  font-weight: 700;
}
:where(html[data-lhu-page="3dheads"]) .btn-primary:hover {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

:where(html[data-lhu-page="3dheads"]) .effect-btn {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  font-size: 15px;
}

:where(html[data-lhu-page="3dheads"]) .quote-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 4px;
  background: #20b56b;
  color: #07180f;
  font: 700 9px/17px var(--font-mono);
  text-align: center;
  transition: transform 0.15s var(--ease-spring);
}
:where(html[data-lhu-page="3dheads"]) .quote-counter.bump { transform: scale(1.3); }

 
:where(html[data-lhu-page="3dheads"]) .ui-bottom {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 480px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(16, 16, 20, 0.82);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--gallery-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

:where(html[data-lhu-page="3dheads"]) .head-picker {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
:where(html[data-lhu-page="3dheads"]) .head-picker::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-58%);
  color: var(--gallery-muted);
  font-size: 14px;
  pointer-events: none;
}

:where(html[data-lhu-page="3dheads"]) #head-select {
  width: 100%;
  min-height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gallery-ink);
  font: 500 12.5px/1.2 var(--font-mono);
  letter-spacing: -0.01em;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
}
:where(html[data-lhu-page="3dheads"]) #head-select:hover, :where(html[data-lhu-page="3dheads"]) #head-select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gallery-border-strong);
}
:where(html[data-lhu-page="3dheads"]) #head-select option {
  background: #141418;
  color: #f5f4f0;
}

:where(html[data-lhu-page="3dheads"]) .index-utility-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
:where(html[data-lhu-page="3dheads"]) .index-utility-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--gallery-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gallery-muted);
  font: 600 15px/1 var(--font-mono);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
:where(html[data-lhu-page="3dheads"]) .index-utility-btn:hover {
  color: var(--gallery-ink);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gallery-border-strong);
}

 
:where(html[data-lhu-page="3dheads"]) #wisdom-display {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 700px);
  padding: clamp(24px, 4.5vw, 44px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 9, 13, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.82),
    0 0 40px rgba(130, 190, 255, 0.12);
  font-family: var(--font-sans);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-align: center;
  color: #f5f4f0;
  -webkit-text-fill-color: #f5f4f0;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow:
    -1.5px 0 rgba(255, 59, 48, 0.48),
     1.5px 0 rgba(50, 173, 230, 0.52),
     0 0 12px rgba(245, 244, 240, 0.24);
  filter:
    drop-shadow(0 0 12px rgba(110, 210, 255, 0.18))
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95));
  animation: wisdomHoloChromatic 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 30;
  display: none;
}
:where(html[data-lhu-page="3dheads"]) .wisdom-active { display: block !important; }
@keyframes wisdomHoloChromatic {
  0%, 100% {
    text-shadow:
      -1.2px 0 rgba(255, 59, 48, 0.42),
       1.2px 0 rgba(50, 173, 230, 0.46),
       0 0 10px rgba(245, 244, 240, 0.20);
  }
  50% {
    text-shadow:
      -2.6px 0 rgba(255, 59, 48, 0.68),
       2.6px 0 rgba(50, 173, 230, 0.72),
       0 0 17px rgba(245, 244, 240, 0.30);
  }
}

 
:where(html[data-lhu-page="3dheads"]) #disclaimer-modal, :where(html[data-lhu-page="3dheads"]) #quote-modal {
  display: none;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 100002;
  width: min(90vw, 420px);
  padding: clamp(24px, 4vw, 34px);
  text-align: center;
  background: rgba(16, 16, 20, 0.94);
  border: 1px solid var(--gallery-border-strong);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}
:where(html[data-lhu-page="3dheads"]) #disclaimer-modal.show, :where(html[data-lhu-page="3dheads"]) #quote-modal.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
:where(html[data-lhu-page="3dheads"]) #disclaimer-modal p, :where(html[data-lhu-page="3dheads"]) #quote-modal p {
  font-family: var(--font-sans);
  margin: 0 0 22px 0;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
  color: rgba(245, 244, 240, 0.86);
}
:where(html[data-lhu-page="3dheads"]) #quote-mail-link {
  background: var(--gallery-ink);
  color: #09090b;
  border-color: var(--gallery-ink);
  font-weight: 700;
}
:where(html[data-lhu-page="3dheads"]) #quote-mail-link:hover { background: #fff; }

 
:where(html[data-lhu-page="3dheads"]) #index-loading {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  background: rgba(7, 7, 8, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gallery-ink);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
:where(html[data-lhu-page="3dheads"]) #index-loading.show { display: flex; }
:where(html[data-lhu-page="3dheads"]) #index-loading .hypnoload-ascii {
  width: min(56vw, 240px);
  height: min(56vw, 240px);
}

 
@media (max-width: 600px) {
  :where(html[data-lhu-page="3dheads"]) .ui-top { right: 12px; gap: 5px; }
  :where(html[data-lhu-page="3dheads"]) #ui-wrapper, :where(html[data-lhu-page="3dheads"]) #effect-buttons { gap: 4px; }
  :where(html[data-lhu-page="3dheads"]) .btn { min-height: 35px; padding: 0 10px; font-size: 10px; letter-spacing: 0.06em; }
  :where(html[data-lhu-page="3dheads"]) .effect-btn { width: 35px; min-width: 35px; height: 35px; font-size: 14px; }
  :where(html[data-lhu-page="3dheads"]) .bg-nav-btn { width: 34px; height: 34px; font-size: 14px; }
  :where(html[data-lhu-page="3dheads"]) #bg-prev { left: 10px; }
  :where(html[data-lhu-page="3dheads"]) #bg-next { right: 10px; }
  :where(html[data-lhu-page="3dheads"]) .ui-bottom {
    width: calc(100vw - 24px);
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 5px;
    gap: 6px;
  }
  :where(html[data-lhu-page="3dheads"]) #head-select { min-height: 42px; font-size: 12px; padding: 0 28px 0 12px; }
  :where(html[data-lhu-page="3dheads"]) .index-utility-btn { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  :where(html[data-lhu-page="3dheads"]) .btn { padding: 0 8px; font-size: 9.5px; letter-spacing: 0.04em; }
  :where(html[data-lhu-page="3dheads"]) .effect-btn { width: 33px; min-width: 33px; height: 33px; }
}

