/* ==========================================================================
   GameVJP 18+ × LucianLabs UX/UI — Ultra-Light Zero-Lag Liquid Glass CSS
   Optimized for 0% Idle CPU & 120fps Smooth Scrolling
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-page: #070812;
  --bg-elevated: #111324;
  --bg-glass: rgba(17, 19, 36, 0.92);
  --bg-glass-strong: rgba(12, 14, 28, 0.96);
  --bg-glass-subtle: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.11);
  --border-glass: rgba(255, 255, 255, 0.13);
  --border-glass-bright: rgba(255, 255, 255, 0.26);
  --text-main: #F8FAFC;
  --text-sub: #CBD5E1;
  --text-muted: #94A3B8;
  --shadow-glass:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 32px -12px rgba(0, 0, 0, 0.55);

  --ux-page: #070812;
  --ux-surface: #121426;
  --ux-surface-2: #1A1D35;
  --ux-elevated: #161930;
  --ux-glass: rgba(18, 20, 38, 0.92);
  --ux-ink: #F5F6FA;
  --ux-ink-2: #B8BDCE;
  --ux-ink-3: #7E849C;
  --ux-line: rgba(255, 255, 255, 0.10);
  --ux-line-2: rgba(255, 255, 255, 0.18);
  --ux-accent: #FF4D8D;
  --ux-accent-2: #8B6CFF;
  --ux-accent-soft: rgba(255, 77, 141, 0.16);
  --ux-accent-ink: #FFFFFF;
}

[data-theme="light"] {
  --bg-page: #EEF1F8;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-glass-strong: #FFFFFF;
  --bg-glass-subtle: rgba(15, 23, 42, 0.05);
  --bg-glass-hover: rgba(15, 23, 42, 0.09);
  --border-glass: rgba(15, 23, 42, 0.11);
  --border-glass-bright: rgba(15, 23, 42, 0.22);
  --text-main: #0F172A;
  --text-sub: #334155;
  --text-muted: #64748B;
  --shadow-glass:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px -12px rgba(15, 23, 42, 0.12);

  --ux-page: #EEF1F8;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F1F4FB;
  --ux-elevated: #FFFFFF;
  --ux-glass: rgba(255, 255, 255, 0.94);
  --ux-ink: #0F172A;
  --ux-ink-2: #334155;
  --ux-ink-3: #64748B;
  --ux-line: rgba(15, 23, 42, 0.09);
  --ux-line-2: rgba(15, 23, 42, 0.16);
  --ux-accent: #E11D48;
  --ux-accent-2: #6D28D9;
  --ux-accent-soft: rgba(225, 29, 72, 0.12);
  --ux-accent-ink: #FFFFFF;
}

/* ==========================================================================
   Base Page & Static Zero-CPU Ambient Background
   ========================================================================== */
html {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(139, 108, 255, 0.14), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 77, 141, 0.12), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hide legacy heavy canvas aurora & palette bar */
.u319,
.u319-bar {
  display: none !important;
}

[data-theme="light"] .text-white {
  color: var(--text-main) !important;
}
[data-theme="light"] .text-slate-100,
[data-theme="light"] .text-slate-200 {
  color: var(--text-sub) !important;
}
[data-theme="light"] .text-slate-300,
[data-theme="light"] .text-slate-400 {
  color: var(--text-muted) !important;
}
[data-theme="light"] .keep-white,
[data-theme="light"] .keep-white * {
  color: #FFFFFF !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Safe Blur 18+ Mode (Lightweight blur) */
body.nsfw-blur-mode .game-media-img {
  filter: blur(14px);
}
body.nsfw-blur-mode .game-media-img:hover {
  filter: blur(4px);
}

/* Lightweight Liquid Glass Containers (Only header uses light blur) */
.liquid-island-header {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.liquid-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.liquid-glass-pill {
  background: var(--bg-glass-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  color: var(--text-main);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.liquid-glass-pill:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-bright);
}
.liquid-glass-pill.active {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.28), rgba(139, 108, 255, 0.28));
  border-color: var(--ux-accent);
}

/* F95zone Engine Prefix Badges */
.engine-renpy {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: rgba(168, 85, 247, 0.52) !important;
  color: #E9D5FF !important;
}
.engine-rpgm {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.52) !important;
  color: #DBEAFE !important;
}
.engine-unity {
  background: rgba(249, 115, 22, 0.22) !important;
  border-color: rgba(249, 115, 22, 0.52) !important;
  color: #FFEDD5 !important;
}
.engine-vn {
  background: rgba(236, 72, 153, 0.22) !important;
  border-color: rgba(236, 72, 153, 0.52) !important;
  color: #FCE7F3 !important;
}
.engine-unreal {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(16, 185, 129, 0.52) !important;
  color: #D1FAE5 !important;
}
[data-theme="light"] .engine-renpy { color: #6B21A8 !important; }
[data-theme="light"] .engine-rpgm { color: #1D4ED8 !important; }
[data-theme="light"] .engine-unity { color: #C2410C !important; }
[data-theme="light"] .engine-vn { color: #BE185D !important; }
[data-theme="light"] .engine-unreal { color: #047857 !important; }

.liquid-skeleton {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   LUCIAN UX/UI #252 · Expandable announcement pill (Zero idle animation)
   ========================================================================== */
.u252 {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.u252-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 13px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--ux-line-2);
  cursor: pointer;
  max-width: 100%;
}
.u252-shine {
  display: none;
}
.u252-tag {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--ux-accent), var(--ux-accent-2));
  color: #fff;
  font-size: 10.5px;
  font-weight: 820;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.u252-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}
.u252-slot {
  position: relative;
  height: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.u252-msg {
  display: block;
  white-space: nowrap;
}
.u252-arr {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ux-ink-3);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.u252.is-open .u252-arr {
  transform: rotate(90deg);
}
.u252-card {
  width: 100%;
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ux-surface-2);
  box-shadow: 0 0 0 1px var(--ux-line-2);
  display: none;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.u252.is-open .u252-card {
  display: grid;
}
.u252-card b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ux-ink);
}
.u252-card small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ux-ink-3);
  line-height: 1.4;
}

/* ==========================================================================
   LUCIAN UX/UI #001 · Liquid glass button (Lightweight CSS-only)
   ========================================================================== */
.u001 {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.u001-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF4D8D 0%, #8B6CFF 100%);
  box-shadow: 0 10px 24px -8px rgba(255, 77, 141, 0.5);
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.u001-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.u001-btn:active {
  transform: scale(0.97);
}
.u001-blob,
.u001-rim {
  display: none;
}
.u001-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.u001-arr {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.u001-arr svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   LUCIAN UX/UI #389 · Side-expanding photo panels
   ========================================================================== */
.u389 {
  position: relative;
  width: 100%;
  height: 310px;
  display: flex;
  gap: 8px;
}
.u389-pan {
  position: relative;
  flex: 1 1 0;
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: flex-grow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background: #0B0D1A;
}
.u389-pan.is-on {
  flex-grow: 4.6;
  border-color: var(--ux-accent);
}
.u389-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.u389-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.u389-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 15, 0.15) 20%, rgba(6, 7, 15, 0.88) 100%);
}
.u389-num {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.u389-v {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) rotate(-90deg);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.85;
  pointer-events: none;
}
.u389-pan.is-on .u389-v {
  opacity: 0;
}
.u389-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.u389-pan.is-on .u389-cap {
  opacity: 1;
}
.u389-cap b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u389-cap small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .u389 {
    height: 220px;
  }
}

/* ==========================================================================
   LUCIAN UX/UI #021 · Day–night sky switch (Zero idle animation)
   ========================================================================== */
.u021-wrap {
  display: inline-flex;
  align-items: center;
}
.u021-sw {
  position: relative;
  width: 74px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #5EB1FF 0%, #8FD3FF 100%);
  cursor: pointer;
}
.u021-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0D1026 0%, #2D3266 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.u021-sw[aria-checked="true"] .u021-sky {
  opacity: 1;
}
.u021-stars, .u021-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.u021-stars {
  opacity: 0;
}
.u021-sw[aria-checked="true"] .u021-stars {
  opacity: 1;
}
.u021-sw[aria-checked="true"] .u021-clouds {
  opacity: 0;
}
.u021-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFF9E5;
}
.u021-star.s1 { left: 14px; top: 9px; }
.u021-star.s2 { left: 26px; top: 20px; }
.u021-star.s3 { left: 18px; top: 26px; }
.u021-star.s4 { left: 34px; top: 11px; }
.u021-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}
.u021-cloud.c1 { right: 9px; bottom: 6px; width: 24px; height: 9px; }
.u021-cloud.c2 { right: 22px; top: 8px; width: 16px; height: 6px; }
.u021-orb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFD24C;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}
.u021-sw[aria-checked="true"] .u021-orb {
  transform: translateX(34px);
  background: #E5E8F5;
}
.u021-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(140, 150, 186, 0.45);
  opacity: 0;
}
.u021-crater.k1 { width: 6px; height: 6px; left: 7px; top: 9px; }
.u021-crater.k2 { width: 5px; height: 5px; right: 6px; bottom: 7px; }
.u021-crater.k3 { width: 4px; height: 4px; right: 8px; top: 6px; }
.u021-sw[aria-checked="true"] .u021-crater {
  opacity: 1;
}

/* ==========================================================================
   LUCIAN UX/UI #046 · Command palette
   ========================================================================== */
.u046 {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 44px;
  z-index: 55;
}
.u046-pal {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 420px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--ux-elevated);
  border: 1px solid var(--ux-line-2);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.u046.is-closed .u046-pal {
  height: 44px;
  background: var(--bg-glass-subtle);
  box-shadow: none;
}
.u046.is-closed .u046-body,
.u046.is-closed .u046-foot {
  display: none;
}
.u046-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  flex: none;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--ux-line);
  cursor: text;
}
.u046.is-closed .u046-field {
  border-color: transparent;
}
.u046-field svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--ux-ink-3);
  stroke-width: 2;
  stroke-linecap: round;
}
.u046-in {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ux-ink);
  outline: none;
}
.u046-in::placeholder {
  color: var(--ux-ink-3);
}
.u046-kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--ux-surface-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--ux-ink-2);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.u046-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px;
}
.u046-hl {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 44px;
  border-radius: 12px;
  background: var(--ux-accent-soft);
  box-shadow: inset 3px 0 0 var(--ux-accent);
  transform: translateY(var(--y, 0));
  transition: transform 0.2s ease;
  pointer-events: none;
}
.u046-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.u046-g {
  padding: 8px 10px 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ux-ink-3);
}
.u046-op {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ux-ink-2);
  cursor: pointer;
}
.u046-op[aria-selected="true"] {
  color: var(--ux-ink);
}
.u046-op mark {
  background: none;
  color: var(--ux-accent);
  font-weight: 800;
}
.u046-ic {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--c, var(--ux-surface-2));
  color: #fff;
  overflow: hidden;
}
.u046-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.u046-ic svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.u046-op .u046-kbd {
  margin-left: auto;
}
.u046-empty {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ux-ink-3);
}
.u046-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  flex: none;
  padding: 0 14px;
  border-top: 1px solid var(--ux-line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ux-ink-3);
}
.u046-done {
  margin-left: auto;
  color: #22C3A6;
  font-weight: 700;
  opacity: 0;
}
.u046-done.show {
  opacity: 1;
}

/* ==========================================================================
   LUCIAN UX/UI #039 · Sliding pill tabs
   ========================================================================== */
.u039-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  border: 1px solid var(--ux-line);
  max-width: 100%;
  overflow-x: auto;
}
.u039-pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: var(--w, 84px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.30), rgba(139, 108, 255, 0.30));
  border: 1px solid var(--ux-accent);
  transform: translate3d(var(--x, 4px), 0, 0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.u039-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ux-ink-2);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.u039-tab:hover,
.u039-tab[aria-selected="true"],
.u039-tab.active {
  color: var(--ux-ink);
  font-weight: 750;
}

/* ==========================================================================
   LUCIAN UX/UI #019 · Interest chips multi-select (112 F95zone Tags)
   ========================================================================== */
.u019 {
  position: relative;
  width: 100%;
}
.u019-cnt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ux-ink-2);
}
.u019-dots {
  display: inline-flex;
  gap: 3px;
}
.u019-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ux-line-2);
}
.u019-dots i.on {
  background: var(--ux-accent);
}
.u019-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--ux-line-2);
  border-radius: 999px;
  background: var(--ux-surface);
  color: var(--ux-ink-2);
  font-size: 12px;
  font-weight: 640;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.u019-chip:hover {
  color: var(--ux-ink);
  border-color: var(--ux-ink-3);
}
.u019-chip i {
  display: none;
}
.u019-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--ux-accent), var(--ux-accent-2));
  border-color: transparent;
  color: #FFFFFF;
}
.u019-chip[aria-pressed="true"] i {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: 4px;
}
.u019-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   GAME CARDS — Lightweight Zero-Lag Hover & #366 Scrubbing
   ========================================================================== */
.u228-card {
  position: relative;
  border-radius: 24px;
  background: var(--ux-surface);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  contain: content;
}
.u228-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 141, 0.55);
}
.u228-in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.u050-glare {
  display: none;
}

.u366-stage {
  --p: 0;
  --px: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #080914;
  overflow: hidden;
  user-select: none;
}
.u366-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}
.u366-bar i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: #FF4D8D;
}
.u366-tip {
  position: absolute;
  bottom: 14px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(8, 9, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
  z-index: 5;
}
.u050-arr {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
}
.u228-card:hover .u050-arr {
  background: var(--ux-accent);
  color: #fff;
}

/* ==========================================================================
   LUCIAN UX/UI #022 · Heart burst like
   ========================================================================== */
.u022-btn {
  --rose: #FF3B6B;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(10, 11, 22, 0.78);
  color: #F8FAFC;
  cursor: pointer;
}
.u022-btn:hover {
  background: rgba(255, 59, 107, 0.24);
  border-color: rgba(255, 59, 107, 0.55);
}
.u022-btn[aria-pressed="true"] {
  color: var(--rose);
  background: rgba(255, 59, 107, 0.20);
  border-color: rgba(255, 59, 107, 0.55);
}
.u022-stage {
  position: relative;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.u022-heart {
  width: 16px;
  height: 16px;
}
.u022-heart path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.u022-btn[aria-pressed="true"] .u022-heart path {
  fill: var(--rose);
  stroke: var(--rose);
}
.u022-ring,
.u022-dot {
  display: none;
}

/* ==========================================================================
   LUCIAN UX/UI #208 · Floating App Dock (Clean CSS hover, no layout thrash)
   ========================================================================== */
.u208-wrap {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 45;
  pointer-events: none;
  max-width: calc(100vw - 16px);
}
.u208-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.72);
}
.u208-app {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bg);
  cursor: pointer;
  transition: transform 0.18s ease;
}
.u208-app:hover {
  transform: translateY(-4px) scale(1.1);
}
.u208-app svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.u208-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--ux-ink);
  color: var(--ux-page);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.u208-app:hover .u208-tip {
  opacity: 1;
}
.u208-dot {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ux-accent);
  transform: translateX(-50%) scale(0);
}
.u208-app.is-open .u208-dot {
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   LUCIAN UX/UI #061 · Thumbnail-to-lightbox zoom
   ========================================================================== */
.u061-th {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ux-surface-2);
  cursor: pointer;
}
.u061-zoom-pill {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

/* ==========================================================================
   LUCIAN UX/UI #043 · Stretching pagination
   ========================================================================== */
.u043 {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.u043-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 4px;
}
.u043-head small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ux-ink-3);
}
.u043-head b {
  display: block;
  margin-top: 2px;
  font-size: 16.5px;
  font-weight: 780;
  color: var(--ux-ink);
}
.u043-cnt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.u043-num {
  position: relative;
  width: 64px;
  height: 40px;
  overflow: hidden;
}
.u043-num span {
  position: absolute;
  inset: 0;
  font-size: 34px;
  line-height: 40px;
  font-weight: 850;
  text-align: right;
  color: var(--ux-accent);
}
.u043-cnt em {
  font-style: normal;
  font-size: 15px;
  font-weight: 750;
  color: var(--ux-ink-3);
}
.u043-pager {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  border: 1px solid var(--ux-line-2);
  max-width: 100%;
  overflow-x: auto;
}
.u043-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: var(--l, 0);
  right: var(--r, 0);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ux-accent), var(--ux-accent-2));
  pointer-events: none;
  transition: left 0.25s ease, right 0.25s ease;
}
.u043-pg {
  position: relative;
  z-index: 1;
  min-width: 38px;
  height: 38px;
  border: 0;
  padding: 0 11px;
  border-radius: 999px;
  background: none;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ux-ink-2);
  cursor: pointer;
}
.u043-pg:hover {
  color: var(--ux-ink);
}
.u043-pg[aria-current="page"] {
  color: #FFFFFF !important;
  font-weight: 850;
}
.u043-ar {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--ux-surface);
  color: var(--ux-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.u043-ar[aria-disabled="true"] {
  opacity: 0.32;
  pointer-events: none;
}
.u043-ar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   LUCIAN UX/UI #040 · Expanding side rail
   ========================================================================== */
.u040-rail {
  --rw: 66px;
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 44;
  width: var(--rw);
  padding: 10px 8px;
  border-radius: 24px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.7);
  color: var(--ux-ink);
  overflow: hidden;
  transition: width 0.25s ease;
}
.u040-rail:hover {
  --rw: 220px;
}
@media (max-width: 1279px) {
  .u040-rail {
    display: none;
  }
}
.u040-nav {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.u040-hl {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  border-radius: 15px;
  background: rgba(255, 77, 141, 0.22);
  border: 1px solid rgba(255, 77, 141, 0.48);
  transform: translateY(var(--y, 0));
  transition: transform 0.25s ease;
  pointer-events: none;
}
.u040-it {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  background: none;
  color: var(--ux-ink-2);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.u040-it:hover,
.u040-it[aria-current="page"] {
  color: var(--ux-ink);
}
.u040-it svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.u040-it span {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
}
.u040-rail:hover .u040-it span {
  opacity: 1;
}
.u040-bd {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 77, 141, 0.20);
  color: var(--ux-accent);
  font-size: 10.5px;
  font-weight: 800;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
}
.u040-rail:hover .u040-bd {
  opacity: 1;
}

/* ==========================================================================
   LUCIAN UX/UI #214 · Living bento feature grid
   ========================================================================== */
.u214-portal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .u214-portal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .u214-portal {
    grid-template-columns: 1fr;
  }
}
.u214-t {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line-2);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.u214-t:hover,
.u214-t.is-active-page {
  transform: translateY(-2px);
  border-color: var(--ux-accent);
}
.u214-t b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ux-ink);
}
.u214-t small {
  display: block;
  font-size: 11.5px;
  color: var(--ux-ink-3);
  margin-top: 2px;
}
.u214-br {
  margin-top: 10px;
  height: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.u214-br i {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--ux-accent), var(--ux-accent-2));
  transform-origin: 50% 100%;
  transform: scaleY(var(--h, .5));
  opacity: 0.75;
}
