/* V5 Human-Crafted Indie Space Stylesheet
   Zero AI-template jargon · Polaroid Spring Stack · Hand-Drawn SVG Stroke
   WeChat-Moments Photo Grid · Smooth Lightbox · Guest/Owner Privacy Switch
   Magnetic Buttons · Particle Like Burst · Circular Ripple Theme */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.26s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-transitioning::view-transition-old(root),
html.theme-transitioning::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.theme-transitioning::view-transition-old(root) { z-index: 1; }
html.theme-transitioning::view-transition-new(root) { z-index: 9999; }

:root,
[data-theme="light"] {
  --bg-base: #F6F2EA;
  --surface: rgba(255, 253, 249, 0.86);
  --surface-solid: #FFFDF9;
  --surface-muted: rgba(235, 227, 214, 0.7);
  --glass-nav: rgba(255, 252, 247, 0.82);
  --glass-border: rgba(255, 255, 255, 0.82);
  --ink: #201D1A;
  --ink-secondary: #5A524A;
  --ink-muted: #8E8479;
  --line: rgba(60, 48, 36, 0.095);
  --line-strong: rgba(60, 48, 36, 0.19);
  --accent: #B8563A;
  --accent-hover: #9D4329;
  --accent-soft: rgba(184, 86, 58, 0.11);
  --priv-bg: rgba(196, 134, 45, 0.13);
  --priv-ink: #8F5D14;
  --sage-soft: rgba(94, 136, 112, 0.13);
  --sage-ink: #355E47;
  --sand-soft: rgba(186, 142, 78, 0.14);
  --sand-ink: #7A5828;
  --slate-soft: rgba(96, 112, 132, 0.13);
  --slate-ink: #3E5066;
  --heat-0: rgba(90, 75, 60, 0.075);
  --heat-1: rgba(184, 86, 58, 0.36);
  --heat-2: rgba(184, 86, 58, 0.68);
  --heat-3: #B8563A;
  --code-bg: #1E1B18;
  --code-ink: #EDE5DC;
  --shadow-nav: 0 8px 28px rgba(34, 28, 22, 0.065), 0 1px 2px rgba(34, 28, 22, 0.04);
  --shadow-card: 0 2px 6px rgba(34, 28, 22, 0.025), 0 12px 30px rgba(34, 28, 22, 0.035);
  --shadow-hover: 0 12px 28px rgba(34, 28, 22, 0.07), 0 22px 48px rgba(34, 28, 22, 0.08);
  --spotlight: rgba(184, 86, 58, 0.075);
  /* Big-Tech Input Design System Tokens (Light) */
  --card-tinted: #FAF7F2;
  --input-bg: #FFFFFF;
  --input-border: #D8D0C6;
  --input-border-hover: #B6ACA0;
  --input-ring: rgba(184, 86, 58, 0.16);
  --input-shadow: 0 1px 2px rgba(24, 18, 12, 0.045);
  --placeholder: #A69D92;
}

[data-theme="dark"] {
  --bg-base: #141210;
  --surface: rgba(31, 28, 25, 0.82);
  --surface-solid: #1E1B18;
  --surface-muted: rgba(44, 39, 35, 0.78);
  --glass-nav: rgba(28, 25, 22, 0.84);
  --glass-border: rgba(255, 245, 235, 0.08);
  --ink: #EFE8DF;
  --ink-secondary: #B2A89D;
  --ink-muted: #7D7369;
  --line: rgba(255, 244, 230, 0.085);
  --line-strong: rgba(255, 244, 230, 0.18);
  --accent: #DF8568;
  --accent-hover: #EB977C;
  --accent-soft: rgba(223, 133, 104, 0.15);
  --priv-bg: rgba(232, 174, 84, 0.16);
  --priv-ink: #ECC078;
  --sage-soft: rgba(118, 168, 140, 0.16);
  --sage-ink: #9DC7B0;
  --sand-soft: rgba(218, 180, 120, 0.15);
  --sand-ink: #E2C391;
  --slate-soft: rgba(130, 155, 185, 0.16);
  --slate-ink: #A8C0DB;
  --heat-0: rgba(255, 245, 235, 0.06);
  --heat-1: rgba(223, 133, 104, 0.36);
  --heat-2: rgba(223, 133, 104, 0.68);
  --heat-3: #DF8568;
  --code-bg: #0B0A09;
  --code-ink: #EAE1D7;
  --shadow-nav: 0 10px 34px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.30);
  --shadow-hover: 0 14px 38px rgba(0, 0, 0, 0.48);
  --spotlight: rgba(223, 133, 104, 0.10);
  /* Big-Tech Input Design System Tokens (Dark) */
  --card-tinted: #23201C;
  --input-bg: #151311;
  --input-border: rgba(255, 244, 230, 0.15);
  --input-border-hover: rgba(255, 244, 230, 0.28);
  --input-ring: rgba(223, 133, 104, 0.22);
  --input-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
  --placeholder: #6E665D;
}

/* Guest Preview Filter: Instantly hides all private items & owner-only edit controls */
html.guest-preview [data-private="1"],
html.guest-preview [data-owner-only="1"] {
  display: none !important;
}

.guest-banner {
  display: none;
  max-width: 1000px;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--priv-bg);
  border: 1px solid rgba(196, 134, 45, 0.3);
  color: var(--priv-ink);
  font-size: 12.5px;
  align-items: center;
  justify-content: space-between;
}

html.guest-preview .guest-banner {
  display: flex;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Organic Drifting Warm Light Canvas */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
  opacity: 0.5;
  will-change: transform;
  animation: auroraFloat 19s ease-in-out infinite alternate;
}

.aurora-blob.b1 { width: 520px; height: 360px; left: 5%; top: -110px; background: rgba(232, 168, 132, 0.42); }
.aurora-blob.b2 { width: 480px; height: 340px; right: 7%; top: -90px; background: rgba(158, 194, 174, 0.38); animation-delay: -6s; animation-duration: 23s; }
.aurora-blob.b3 { width: 440px; height: 300px; left: 38%; top: 70px; background: rgba(240, 212, 168, 0.3); animation-delay: -12s; animation-duration: 26s; }
[data-theme="dark"] .aurora-blob { opacity: 0.22; }

@keyframes auroraFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(36px, 24px, 0) scale(1.08); }
  100% { transform: translate3d(-28px, 16px, 0) scale(0.95); }
}

.font-serif-cn {
  font-family: "Georgia", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

.font-mono-num {
  font-family: "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; color: inherit; }
textarea { resize: none; }
input::placeholder, textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
  font-weight: 400;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 105, 90, 0.24); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 105, 90, 0.42); }

svg.ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #E5A07C);
  z-index: 95;
  transition: width 0.08s linear;
}

.container-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   FLOATING GLASS PILL NAVBAR + MAGNETIC BUTTONS
   ========================================================= */
.nav-wrapper {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 20px;
  margin-top: 14px;
}

.floating-nav {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  height: 54px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: var(--glass-nav);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-nav), inset 0 1px 0 var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-seal {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #FFFDF9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184, 86, 58, 0.28);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-seal { transform: rotate(-10deg) scale(1.08); }
.brand-title { font-size: 17.5px; font-weight: 700; letter-spacing: 0.02em; }

.nav-center-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-center-pills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-muted);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.nav-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.07);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-center-pills a {
  position: relative;
  z-index: 1;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-center-pills a:hover,
.nav-center-pills a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-reading-title {
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.floating-nav.is-reading-scrolled .nav-center-pills {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.floating-nav.is-reading-scrolled .nav-reading-title {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  cursor: pointer;
}

.floating-nav.is-reading-scrolled .nav-reading-title:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pill-action-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink-secondary);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.pill-action-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.pill-action-btn.guest-active {
  background: var(--priv-bg);
  border-color: rgba(196, 134, 45, 0.4);
  color: var(--priv-ink);
  font-weight: 600;
}

.write-cta-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFDF9 !important;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(184, 86, 58, 0.25);
  transition: background-color 0.18s ease, transform 0.15s ease-out;
}

.write-cta-pill:hover { background: var(--accent-hover); }

/* Private Badge */
.priv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--priv-bg);
  color: var(--priv-ink);
  font-size: 11px;
  font-weight: 600;
}

/* =========================================================
   HERO WITH HAND-DRAWN BRUSH STROKE & INTERACTIVE POLAROID STACK
   ========================================================= */
.hero-stage {
  padding: 38px 0 26px;
  display: grid;
  grid-template-columns: 1.18fr 0.88fr;
  gap: 32px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3F9E69;
  box-shadow: 0 0 0 3px rgba(63, 158, 105, 0.18);
  animation: gentlePulse 2.4s infinite;
  flex-shrink: 0;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.68; }
}

.tw-caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  background-color: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blinkCaret 0.9s step-end infinite;
}

@keyframes blinkCaret { 50% { opacity: 0; } }

.hero-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 16px;
}

.hero-hand-wrap {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.hand-underline-svg {
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: -6px;
  width: calc(100% + 6px);
  height: 12px;
  pointer-events: none;
  overflow: visible;
}

.hand-underline-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawBrush 0.95s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawBrush {
  to { stroke-dashoffset: 0; }
}

.hero-desc {
  font-size: 14.8px;
  line-height: 1.82;
  color: var(--ink-secondary);
  margin: 0 0 22px;
  max-width: 520px;
}

.hero-quick-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-quick-stats strong {
  color: var(--ink);
  font-size: 15px;
  margin-right: 3px;
}

/* Interactive Polaroid Fan Stack */
.polaroid-deck-wrap {
  position: relative;
  height: 276px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.polaroid-card {
  position: absolute;
  width: 248px;
  background: #FFFDF9;
  padding: 11px 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(50, 40, 30, 0.12);
  box-shadow: 0 12px 30px rgba(28, 22, 18, 0.12);
  cursor: pointer;
  transition: transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, opacity 0.3s ease;
  color: #2A2420;
}

[data-theme="dark"] .polaroid-card {
  background: #282420;
  color: #EAE2D8;
  border-color: rgba(255, 245, 235, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.polaroid-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  pointer-events: none;
}

.polaroid-caption {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.82;
}

/* Stack positions (0 = front, 1 = mid, 2 = back) */
.polaroid-card[data-pos="0"] {
  z-index: 3;
  transform: translate3d(0, 0, 0) rotate(-2.5deg);
}
.polaroid-card[data-pos="0"]::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 19px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(232, 214, 188, 0.72);
  border-left: 1px dashed rgba(140, 115, 85, 0.25);
  border-right: 1px dashed rgba(140, 115, 85, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
[data-theme="dark"] .polaroid-card[data-pos="0"]::before {
  background: rgba(180, 155, 125, 0.28);
}
.polaroid-card.tossing {
  animation: polaroidThrow 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes polaroidThrow {
  0% { transform: translate3d(0, -6px, 0) rotate(-1deg) scale(1.02); z-index: 5; }
  48% { transform: translate3d(125px, -28px, 0) rotate(14deg) scale(0.96); z-index: 5; }
  100% { transform: translate3d(-18px, -12px, 0) rotate(-7.5deg) scale(0.92); z-index: 1; }
}
.polaroid-card[data-pos="1"] {
  z-index: 2;
  transform: translate3d(18px, -8px, 0) rotate(4.5deg) scale(0.96);
}
.polaroid-card[data-pos="2"] {
  z-index: 1;
  transform: translate3d(-18px, -12px, 0) rotate(-7.5deg) scale(0.92);
}

/* Spring Fan-Out on Hover! */
.polaroid-deck-wrap:hover .polaroid-card[data-pos="0"] {
  transform: translate3d(0, -6px, 0) rotate(-1deg) scale(1.02);
  box-shadow: 0 18px 40px rgba(28, 22, 18, 0.18);
}
.polaroid-deck-wrap:hover .polaroid-card[data-pos="1"] {
  transform: translate3d(78px, 6px, 0) rotate(9deg) scale(0.97);
}
.polaroid-deck-wrap:hover .polaroid-card[data-pos="2"] {
  transform: translate3d(-78px, 8px, 0) rotate(-11deg) scale(0.97);
}

.polaroid-hint {
  position: absolute;
  bottom: -6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  opacity: 0.78;
}

/* =========================================================
   3-CARD BENTO STRIP (Heatmap + Recent Moment + Collection)
   ========================================================= */
.bento-widgets-strip {
  display: grid;
  grid-template-columns: 1.12fr 1fr 0.92fr;
  gap: 16px;
  margin: 14px 0 38px;
}

.bento-widget {
  position: relative;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
  transition: border-color 0.2s ease, transform 0.22s ease;
}

.bento-widget:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.bento-widget::before,
.post-card::before,
.shelf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 68%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.bento-widget:hover::before,
.post-card:hover::before,
.shelf-card:hover::before {
  opacity: 1;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.widget-head-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.heat-cell {
  aspect-ratio: 1 / 1;
  border-radius: 3.5px;
  background: var(--heat-0);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.heat-cell[data-level="1"] { background: var(--heat-1); cursor: pointer; }
.heat-cell[data-level="2"] { background: var(--heat-2); cursor: pointer; }
.heat-cell[data-level="3"] { background: var(--heat-3); cursor: pointer; }
.heat-cell:hover { transform: scale(1.36); z-index: 2; }

.heat-caption {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moment-mini-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.moment-mini-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.thought-next-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.thought-next-btn:hover { background: var(--surface-muted); color: var(--ink); }

.random-walk-btn {
  margin-top: 10px;
  width: 100%;
  height: 30px;
  border-radius: 9px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  font-size: 12px;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.random-walk-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.random-walk-btn svg { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.random-walk-btn:hover svg { transform: rotate(180deg); }

/* =========================================================
   FEATURED LEAD CARD + ADAPTIVE PHOTO/TEXT POST CARDS
   ========================================================= */
.featured-lead-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 28px;
  align-items: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.featured-lead-card.no-cover {
  grid-template-columns: 1fr;
  padding: 26px 30px;
}

.featured-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.featured-cover-wrap {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
}

.featured-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-lead-card:hover .featured-cover-wrap img {
  transform: scale(1.04);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.filter-tab {
  position: relative;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.18s ease;
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.active { color: var(--ink); font-weight: 600; }
.filter-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background-color: var(--accent);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px 0 68px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.post-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.post-card-cover {
  margin: -4px -4px 14px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card-cover img { transform: scale(1.045); }

.cat-chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}
.cat-chip.cat-sage { background: var(--sage-soft); color: var(--sage-ink); }
.cat-chip.cat-sand { background: var(--sand-soft); color: var(--sand-ink); }
.cat-chip.cat-slate { background: var(--slate-soft); color: var(--slate-ink); }

.card-orb-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.post-card:hover .card-orb-arrow {
  background: var(--accent);
  color: #FFFDF9;
  transform: translate(2px, -2px);
}

.card-title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.48;
  margin: 0 0 8px;
  text-wrap: pretty;
  transition: color 0.18s ease;
}
.post-card:hover .card-title { color: var(--accent); }

.card-excerpt {
  font-size: 13.8px;
  line-height: 1.76;
  color: var(--ink-secondary);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bottom-bar {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

/* =========================================================
   WECHAT-MOMENTS MULTI-PHOTO FEED (/moments.html)
   ========================================================= */
.moments-stream {
  position: relative;
  padding-left: 24px;
  border-left: 1.5px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.moment-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.moment-card:hover { transform: translateX(3px); border-color: var(--line-strong); }

.moment-card::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-base);
}

/* Adaptive Photo Grid: 1 -> large, 2/4 -> 2-col, 3/5-9 -> 3-col nine-grid */
.moment-gallery {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.moment-gallery[data-count="1"] {
  grid-template-columns: minmax(0, 320px);
}
.moment-gallery[data-count="2"],
.moment-gallery[data-count="4"] {
  grid-template-columns: repeat(2, 156px);
}
.moment-gallery[data-count="3"],
.moment-gallery[data-count="5"],
.moment-gallery[data-count="6"],
.moment-gallery[data-count="7"],
.moment-gallery[data-count="8"],
.moment-gallery[data-count="9"] {
  grid-template-columns: repeat(3, 132px);
}

.moment-photo-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.moment-gallery[data-count="2"] .moment-photo-item,
.moment-gallery[data-count="4"] .moment-photo-item {
  height: 156px;
}

.moment-gallery:not([data-count="1"]):not([data-count="2"]):not([data-count="4"]) .moment-photo-item {
  height: 132px;
}

.moment-gallery[data-count="1"] .moment-photo-item {
  height: 220px;
}

.moment-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.moment-photo-item:hover img {
  transform: scale(1.06);
}

.applause-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.applause-btn:hover, .applause-btn.liked {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.applause-btn.pop { transform: scale(1.24); }

.like-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 120;
  animation: particleFly 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes particleFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* =========================================================
   COLLECTION PAGE (/shelf.html — Cover Image + 3D Spine)
   ========================================================= */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.shelf-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.shelf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }

.artifact-cover {
  width: 88px;
  height: 118px;
  border-radius: 6px 10px 10px 6px;
  position: relative;
  overflow: hidden;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFDF9;
  box-shadow: -3px 2px 0 rgba(0,0,0,0.16), 0 10px 20px rgba(0,0,0,0.14);
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shelf-card:hover .artifact-cover {
  transform: perspective(420px) rotateY(-14deg) translateY(-3px);
}
.artifact-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artifact-cover::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.32);
  z-index: 2;
}

.tone-bg-terracotta { background: linear-gradient(145deg, #C46245, #8F3D25); }
.tone-bg-sage { background: linear-gradient(145deg, #58826B, #365745); }
.tone-bg-sand { background: linear-gradient(145deg, #C49758, #8A6530); }
.tone-bg-slate { background: linear-gradient(145deg, #5B708A, #37485E); }

.stars-row { color: #E0943A; font-size: 13px; letter-spacing: 1px; }

/* =========================================================
   ARCHIVE, ARTICLE & LIGHTBOX
   ========================================================= */
.archive-wrap { max-width: 860px; margin: 0 auto; padding: 34px 24px 80px; }
.archive-intro-box {
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}
.archive-intro-box h1 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.archive-intro-box p { font-size: 14px; line-height: 1.8; color: var(--ink-secondary); margin: 0 0 16px; }
.archive-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-pill {
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  font-size: 12.5px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}
.archive-pill.active, .archive-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.year-split-block {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.year-label-col { padding-top: 10px; }
.year-big-num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.year-count-note { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.year-entries-col,
.year-months-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* WeChat-Moments-Style Monthly Gutter & Month Filter Chips */
.wc-month-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wc-month-chip {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.16s ease;
}

.wc-month-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.wc-month-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-base);
  font-weight: 600;
}

.wc-month-group {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: stretch;
}

.wc-month-gutter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 10px;
  position: relative;
}

.wc-month-badge {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  line-height: 1;
}

.wc-month-num {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wc-month-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-left: 2px;
}

.wc-month-spine {
  flex: 1;
  width: 1.5px;
  min-height: 18px;
  margin-top: 10px;
  margin-left: 12px;
  background: linear-gradient(180deg, var(--accent-soft), var(--line) 70%, transparent);
  position: relative;
}

.wc-month-spine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.wc-month-entries {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wc-stream-month-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 10px;
  padding-left: 2px;
}

.wc-stream-month-head:first-child {
  margin-top: 2px;
}

.wc-stream-month-head .wc-m-big {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.wc-stream-month-head .wc-m-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.timeline-row-card {
  display: block;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.timeline-row-card:hover {
  background: var(--surface-solid);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}
.timeline-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.timeline-row-title { font-size: 17.5px; font-weight: 700; margin: 0; transition: color 0.18s; }
.timeline-row-card:hover .timeline-row-title { color: var(--accent); }
.timeline-row-date { font-size: 12.5px; color: var(--ink-muted); flex-shrink: 0; }
.timeline-row-excerpt { font-size: 13.8px; line-height: 1.75; color: var(--ink-secondary); margin: 0 0 6px; }
.timeline-row-meta { font-size: 12px; color: var(--accent); }

/* Article Stage */
.article-stage {
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 720px) 220px;
  justify-content: center;
  gap: 36px;
}
.article-paper {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 46px 46px;
  box-shadow: var(--shadow-card);
}
.article-top-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.back-btn-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.back-btn-inline:hover { color: var(--accent); }
.edit-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.article-head-block { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-main-title { font-size: clamp(23px, 2.7vw, 30px); font-weight: 700; line-height: 1.44; margin: 14px 0 0; text-wrap: pretty; }

.prose { font-size: 16px; line-height: 1.95; color: var(--ink); transition: font-size 0.2s ease; }
.article-paper[data-font="large"] .prose { font-size: 17.8px; line-height: 2.02; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-family: "Georgia", "Noto Serif SC", serif; font-size: 20.5px; font-weight: 700; margin: 38px 0 14px; scroll-margin-top: 88px; transition: color 0.3s; }
.prose h3 { font-family: "Georgia", "Noto Serif SC", serif; font-size: 17.5px; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 88px; }
.prose h2:target, .prose h3:target { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose ul.task-list { list-style: none; padding-left: 4px; }
.task-item { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.task-item.done { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-base);
  font-size: 11px;
  font-weight: 700;
  color: #FFFDF9;
  flex-shrink: 0;
  transform: translateY(1px);
}
.task-item.done .task-box {
  background: var(--accent);
  border-color: var(--accent);
}
mark.warm-mark {
  background: linear-gradient(transparent 56%, rgba(226, 152, 108, 0.34) 56%);
  color: inherit;
  padding: 0 3px;
  border-radius: 2px;
}
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 26px 0;
  padding: 15px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-base);
  border-radius: 0 14px 14px 0;
  font-family: "Georgia", "Noto Serif SC", serif;
  font-style: normal;
  color: var(--ink-secondary);
}
.prose blockquote p { margin: 0; }

.post-figure { margin: 26px 0; text-align: center; }
.post-figure img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.post-figure img:hover { transform: scale(1.01); }
.post-figure figcaption { font-size: 12.5px; color: var(--ink-muted); margin-top: 8px; }

.inline-code {
  font-family: Consolas, monospace;
  font-size: 0.87em;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  padding: 1.5px 6px;
  border-radius: 6px;
  color: var(--accent);
  white-space: nowrap;
}
.code-block { margin: 24px 0; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #9E948A; }
.code-dots { display: inline-flex; align-items: center; gap: 6px; }
.code-dots span { width: 8.5px; height: 8.5px; border-radius: 50%; opacity: 0.72; }
.code-dots span:nth-child(1) { background: #D4736A; }
.code-dots span:nth-child(2) { background: #D9A760; }
.code-dots span:nth-child(3) { background: #6FA882; }
.code-dots .code-lang { font-style: normal; margin-left: 6px; font-family: Consolas, monospace; font-size: 11.5px; }
.article-end-seal {
  margin: 38px 0 10px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.moment-notes-box {
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--surface-muted);
  font-size: 13px;
  color: var(--ink-secondary);
  display: grid;
  gap: 5px;
}
.moment-loc-tag {
  font-size: 11.5px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.search-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 0.15s;
}
.search-item:hover, .search-item.kb-active {
  background: var(--accent-soft);
  border-color: rgba(184, 86, 58, 0.22);
}
mark.search-hl {
  background: rgba(226, 152, 108, 0.38);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 2px;
}
.year-prog-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.year-prog-track {
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
  display: inline-block;
}
.year-prog-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.copy-btn { background: rgba(255,255,255,0.09); border: none; color: #E2D9CF; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; cursor: pointer; }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: Consolas, monospace; font-size: 13.5px; line-height: 1.72; }
.editorial-hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

/* Extended GFM+ Markdown Prose Elements (H1/H4, Tables, Callouts, Details, Math, Kbd, Spoiler, Footnotes, Bookmarks) */
.prose h1 { font-family: "Georgia", "Noto Serif SC", serif; font-size: 25px; font-weight: 700; margin: 42px 0 16px; line-height: 1.35; scroll-margin-top: 88px; }
.prose h4 { font-family: "Georgia", "Noto Serif SC", serif; font-size: 15.8px; font-weight: 700; margin: 22px 0 8px; line-height: 1.5; scroll-margin-top: 88px; color: var(--ink-secondary); }

.table-wrap { margin: 22px 0; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-solid); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.2px; line-height: 1.65; }
.prose thead th { background: var(--surface-muted); color: var(--ink); font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-strong); }
.prose tbody td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink-secondary); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover td { background: rgba(184, 86, 58, 0.035); }
.prose th + th, .prose td + td { border-left: 1px solid var(--line); }

.md-callout { margin: 22px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface-muted); }
.md-callout-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 14px; }
.md-callout-ico { font-size: 14px; line-height: 1; user-select: none; }
.md-callout-title { font-weight: 700; }
.md-callout-body p { margin: 0 0 6px; font-size: 14.8px; line-height: 1.78; color: var(--ink-secondary); }
.md-callout-body p:last-child { margin-bottom: 0; }
.md-callout.callout-note { border-left-color: #3B82F6; background: rgba(59, 130, 246, 0.065); }
.md-callout.callout-note .md-callout-head { color: #2563EB; }
.md-callout.callout-tip { border-left-color: #10B981; background: rgba(16, 185, 129, 0.065); }
.md-callout.callout-tip .md-callout-head { color: #059669; }
.md-callout.callout-important { border-left-color: #8B5CF6; background: rgba(139, 92, 246, 0.065); }
.md-callout.callout-important .md-callout-head { color: #7C3AED; }
.md-callout.callout-warning { border-left-color: #F59E0B; background: rgba(245, 158, 11, 0.075); }
.md-callout.callout-warning .md-callout-head { color: #D97706; }
.md-callout.callout-caution { border-left-color: #EF4444; background: rgba(239, 68, 68, 0.065); }
.md-callout.callout-caution .md-callout-head { color: #DC2626; }
[data-theme="dark"] .md-callout.callout-note .md-callout-head { color: #60A5FA; }
[data-theme="dark"] .md-callout.callout-tip .md-callout-head { color: #34D399; }
[data-theme="dark"] .md-callout.callout-important .md-callout-head { color: #A78BFA; }
[data-theme="dark"] .md-callout.callout-warning .md-callout-head { color: #FBBF24; }
[data-theme="dark"] .md-callout.callout-caution .md-callout-head { color: #F87171; }

details.md-details { margin: 20px 0; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-solid); overflow: hidden; }
summary.md-details-sum { padding: 11px 16px; font-size: 14.5px; font-weight: 600; cursor: pointer; user-select: none; background: var(--bg-base); list-style-position: inside; }
summary.md-details-sum:hover { color: var(--accent); }
.md-details-body { padding: 14px 18px; border-top: 1px solid var(--line); }
.md-details-body > :last-child { margin-bottom: 0; }

a.md-bookmark { display: block; margin: 20px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-solid); text-decoration: none !important; transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s; }
a.md-bookmark:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.md-bm-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.md-bm-desc { font-size: 13.2px; color: var(--ink-secondary); line-height: 1.6; margin-bottom: 6px; }
.md-bm-host { font-family: Consolas, monospace; font-size: 11.5px; color: var(--accent); }

.md-math-inline { font-family: "Cambria Math", "Times New Roman", "Georgia", serif; font-style: italic; font-size: 1.04em; padding: 0 3px; color: var(--ink); }
.md-math-block { margin: 22px 0; padding: 16px 20px; border-radius: 12px; background: var(--bg-base); border: 1px dashed var(--line-strong); text-align: center; overflow-x: auto; }
.md-math-src { margin: 0; font-family: "Cambria Math", "Times New Roman", "Georgia", serif; font-size: 16.5px; font-style: italic; color: var(--ink); white-space: pre-wrap; }

u.md-u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.8px; text-underline-offset: 4px; }
.md-spoiler { background: var(--ink); color: transparent; border-radius: 4px; padding: 1px 5px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.md-spoiler:hover, .md-spoiler.revealed { background: var(--surface-muted); color: var(--ink); }
kbd.md-kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface-solid); font-family: Consolas, monospace; font-size: 0.82em; line-height: 1.4; color: var(--ink); }
.prose sup, .prose sub { font-size: 0.76em; line-height: 0; }

.md-fn-ref a { text-decoration: none; font-family: Consolas, monospace; color: var(--accent); padding: 0 2px; }
.md-footnotes { margin-top: 36px; font-size: 13.2px; color: var(--ink-secondary); }
.md-fn-list { padding-left: 20px; margin: 12px 0 0; }
.md-fn-list li { margin-bottom: 6px; }
.md-fn-back { text-decoration: none !important; margin-left: 4px; font-size: 12px; }
.md-video-figure video { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.md-audio-figure { padding: 12px 16px; border-radius: 12px; background: var(--bg-base); border: 1px solid var(--line); }
.md-audio-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; text-align: left; }
.md-audio-figure audio { width: 100%; height: 36px; }

.prev-next-grid { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn-card { display: block; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-base); transition: all 0.18s ease; }
.pn-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pn-hint { font-size: 11.5px; color: var(--ink-muted); margin-bottom: 4px; }
.pn-title { font-size: 14px; font-weight: 600; }

.margin-toc { padding-top: 18px; }
.margin-toc-inner { position: sticky; top: 88px; padding-left: 16px; border-left: 1.5px solid var(--line); font-size: 12.5px; }
.toc-active-marker { position: absolute; left: -1.5px; top: 28px; width: 2.5px; height: 18px; border-radius: 2px; background: var(--accent); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.margin-toc-title { font-size: 11.5px; color: var(--ink-muted); margin-bottom: 10px; font-weight: 600; }
.margin-toc a { display: block; padding: 5px 0; color: var(--ink-muted); line-height: 1.45; text-decoration: none; transition: color 0.18s ease, transform 0.18s ease; }
.margin-toc a.toc-h3 { padding-left: 12px; font-size: 12px; }
.margin-toc a:hover, .margin-toc a.active { color: var(--accent); font-weight: 600; transform: translateX(2px); }

/* Smooth Fullscreen Image Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(14, 12, 10, 0.86);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox-backdrop.open { display: flex; animation: lbFade 0.22s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: lbPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lbPop { from { transform: scale(0.92); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-nav-btn:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-caption {
  position: absolute;
  bottom: 20px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

/* Floating Utility Dock */
.floating-utility-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-utility-dock.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dock-orb-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass-nav);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease-out, color 0.2s ease, border-color 0.2s ease;
}
.dock-orb-btn:hover { color: var(--accent); border-color: var(--accent); }
.progress-ring-svg { position: absolute; inset: -1px; width: 42px; height: 42px; transform: rotate(-90deg); pointer-events: none; }
.progress-ring-circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 120; stroke-dashoffset: 120; }

/* =========================================================
   STUDIO WORKSPACE + DRAG & PASTE IMAGE UPLOAD
   ========================================================= */
.studio-shell { max-width: 1040px; margin: 0 auto; padding: 24px 24px 72px; }
.studio-mode-bar { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-muted); margin-bottom: 20px; flex-wrap: wrap; }
.studio-mode-tab { padding: 6px 16px; border-radius: 9px; border: none; background: transparent; font-size: 13px; color: var(--ink-secondary); cursor: pointer; }
.studio-mode-tab.active { background: var(--surface-solid); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.studio-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-sidebar { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; padding: 15px; box-shadow: var(--shadow-card); }
.studio-new-btn { width: 100%; height: 36px; border-radius: 10px; border: none; background: var(--accent); color: #FFFDF9; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; margin-bottom: 12px; }
.studio-post-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.studio-post-item { padding: 9px 11px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.studio-post-item:hover { background: var(--bg-base); }
.studio-post-item.active { background: var(--accent-soft); border-color: rgba(184, 86, 58, 0.22); }

.studio-editor-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; padding: 24px 30px 30px; box-shadow: var(--shadow-card); }
.studio-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.studio-title-input { width: 100%; border: none; background: transparent; font-size: 25px; font-weight: 700; outline: none; margin-bottom: 14px; }
.studio-meta-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 15px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-secondary); }
/* Modern Design-System Inputs (Linear / Feishu / Shadcn Grade) */
.studio-input,
.ui-input {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  box-shadow: var(--input-shadow);
  color: var(--ink);
  caret-color: var(--accent);
  font-size: 14px;
  line-height: 20px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

textarea.studio-input,
.ui-textarea {
  height: auto;
  min-height: 82px;
  padding: 10px 13px;
  line-height: 1.68;
  resize: none;
}

select.studio-input,
.ui-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237D7369' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.studio-input:hover:not(:focus),
.ui-input:hover:not(:focus) {
  border-color: var(--input-border-hover);
}

.studio-input:focus,
.ui-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--input-ring), var(--input-shadow);
}

/* Composite Icon + Input + Clear/Action Wrapper */
.ui-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  box-shadow: var(--input-shadow);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ui-input-wrap:hover:not(:focus-within) {
  border-color: var(--input-border-hover);
}

.ui-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--input-ring), var(--input-shadow);
}

.ui-input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
  caret-color: var(--accent);
}

.ui-input-icon {
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ui-input-wrap:focus-within .ui-input-icon {
  color: var(--accent);
}

.ui-clear-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.15s, color 0.15s;
}

.ui-clear-btn.visible {
  display: inline-flex;
}

.ui-clear-btn:hover {
  background: var(--accent);
  color: #FFFDF9;
}

.ui-kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--card-tinted);
  color: var(--ink-muted);
  font-family: Consolas, monospace;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.studio-textarea { width: 100%; min-height: 350px; border: none; background: transparent; outline: none; resize: none; font-size: 15.5px; line-height: 1.9; }

.upload-dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--bg-base);
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.thumb-box {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }
.thumb-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #FFF;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}

.btn-primary { background: var(--accent); color: #FFFDF9; border: none; border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-secondary { background: var(--bg-base); color: var(--ink-secondary); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; }
.btn-danger { background: transparent; color: #C24B4B; border: 1px solid rgba(194, 75, 75, 0.3); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(18, 16, 14, 0.46); backdrop-filter: blur(5px); display: none; align-items: flex-start; justify-content: center; padding-top: 9vh; z-index: 100; }
.modal-backdrop.open { display: flex; }
.modal-box { width: 92%; max-width: 560px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-hover); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 12.5px; color: var(--ink-muted); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   V7 UX UPGRADES: SPA Transitions · Inline Flomo Composer
   Interactive Todo Checkboxes · Split-Pane Live Studio
   ========================================================= */
#app-view.spa-entering {
  animation: spaViewEnter 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes spaViewEnter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.global-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-base);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Flomo / Linear Style Zero-Jump Unified Composer on /moments.html */
.inline-composer {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 18px;
  padding: 16px 20px 14px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card), var(--input-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.inline-composer:hover:not(:focus-within) {
  border-color: var(--input-border-hover);
}

.inline-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--input-ring), var(--shadow-hover);
}

.composer-textarea {
  width: 100%;
  min-height: 64px;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.78;
  transition: min-height 0.2s ease;
}

.inline-composer:focus-within .composer-textarea {
  min-height: 88px;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px dashed var(--line);
}

.mood-chip-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-base);
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mood-chip-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.moment-card.just-posted {
  animation: momentPopIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes momentPopIn {
  0% { opacity: 0; transform: translateY(-14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.moment-quick-btn {
  background: none;
  border: none;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.moment-quick-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.inline-reply-row {
  display: none;
  gap: 8px;
  margin-top: 10px;
}

.inline-reply-row.open {
  display: flex;
}

/* Interactive Live Checkboxes inside Articles */
.task-item.interactive-task {
  cursor: pointer;
  user-select: none;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.task-item.interactive-task:hover {
  background: var(--surface-muted);
}

.task-item.interactive-task:active .task-box {
  transform: scale(0.86);
}

/* Polaroid Quick Upload Button on Homepage */
.polaroid-cam-btn {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 8;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-nav);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  color: var(--ink-secondary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.polaroid-deck-wrap:hover .polaroid-cam-btn {
  opacity: 1;
  transform: translateY(0);
}

.polaroid-cam-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Split-Pane Real-Time Studio */
.studio-split-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.studio-split-body.is-split {
  grid-template-columns: 1fr 1fr;
}

.studio-live-pane {
  display: none;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  max-height: 520px;
  overflow-y: auto;
}

.studio-split-body.is-split .studio-live-pane {
  display: block;
}

/* Clickable Star Picker in Add-Collection Modal */
.star-picker-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #E0943A;
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.15s;
}
.star-picker-btn:hover { transform: scale(1.2); }

@media (max-width: 900px) {
  .hero-stage { grid-template-columns: 1fr; }
  .polaroid-deck-wrap { height: 240px; }
  .bento-widgets-strip { grid-template-columns: 1fr; }
  .article-stage { grid-template-columns: 1fr; max-width: 740px; }
  .margin-toc { display: none; }
  .studio-split-body.is-split { grid-template-columns: 1fr; }
  .studio-live-pane { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
}

@media (max-width: 720px) {
  .featured-lead-card, .editorial-grid, .shelf-grid, .studio-grid, .prev-next-grid { grid-template-columns: 1fr; }
  .year-split-block { grid-template-columns: 1fr; gap: 8px; }
  .article-paper { padding: 26px 20px; }
}

/* =========================================================
   V12 SHOW-OFF INTERACTIVE ENGINE STYLES:
   60fps Stardust/Matrix/Fireworks Canvas · 3D Holo Glare Cards
   Spinning Vinyl Turntable + Tonearm · Frosted Context Menu
   Cyberpunk Geek Terminal HUD · Live FPS Telemetry
   ========================================================= */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.fx-fg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 185;
}

#app-view,
.site-footer {
  position: relative;
  z-index: 1;
}

/* 3D Holographic Card Tilt & Specular Foil Glare */
[data-tilt] {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.holo-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.28s ease;
  background:
    radial-gradient(
      circle 230px at var(--gx, 50%) var(--gy, 50%),
      rgba(255, 255, 255, 0.34),
      rgba(228, 148, 108, 0.12) 42%,
      rgba(120, 178, 154, 0.08) 64%,
      transparent 78%
    );
  mix-blend-mode: overlay;
}

[data-theme="dark"] .holo-glare {
  background:
    radial-gradient(
      circle 240px at var(--gx, 50%) var(--gy, 50%),
      rgba(255, 238, 220, 0.22),
      rgba(223, 133, 104, 0.14) 44%,
      rgba(118, 168, 140, 0.09) 65%,
      transparent 80%
    );
  mix-blend-mode: screen;
}

[data-tilt]:hover .holo-glare {
  opacity: 1;
}

/* Spinning Vinyl Turntable + Tonearm + Live EQ */
.vinyl-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vinyl-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 3;
}

.vinyl-platter-wrap {
  position: relative;
  width: 82px;
  height: 76px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.vinyl-disc {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    from 0deg,
    #161413,
    #322D29 16%,
    #131110 33%,
    #38312C 50%,
    #151312 67%,
    #2E2925 84%,
    #161413
  );
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vinylSpin 3.6s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.25s ease;
}

.vinyl-platter-wrap:hover .vinyl-disc {
  box-shadow: 0 9px 22px rgba(184, 86, 58, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}

.vinyl-bento-card.is-playing .vinyl-disc {
  animation-play-state: running;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.065) 0px,
    rgba(255, 255, 255, 0.065) 1px,
    transparent 1.5px,
    transparent 4px
  );
  pointer-events: none;
}

.vinyl-label {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #DF7B5C 0%, #A2452A 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 235, 0.36);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-label::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #181513;
}

.vinyl-arm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 50px;
  pointer-events: none;
  z-index: 4;
  transform-origin: 9px 6px;
  transform: rotate(-26deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vinyl-arm::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #E6DDD2, #8E8377);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.vinyl-arm::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 4.5px;
  width: 2.2px;
  height: 38px;
  border-radius: 2px;
  background: linear-gradient(180deg, #D8CFC4, #9A8F83);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transform: rotate(10deg);
  transform-origin: top center;
}

.vinyl-bento-card.is-playing .vinyl-arm {
  transform: rotate(7deg);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bars span {
  width: 2.5px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.4;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.vinyl-bento-card.is-playing .eq-bars span {
  opacity: 0.95;
  animation: eqBounce 0.78s ease-in-out infinite alternate;
}
.vinyl-bento-card.is-playing .eq-bars span:nth-child(1) { animation-duration: 0.56s; }
.vinyl-bento-card.is-playing .eq-bars span:nth-child(2) { animation-duration: 0.82s; animation-delay: -0.2s; }
.vinyl-bento-card.is-playing .eq-bars span:nth-child(3) { animation-duration: 0.64s; animation-delay: -0.4s; }
.vinyl-bento-card.is-playing .eq-bars span:nth-child(4) { animation-duration: 0.91s; animation-delay: -0.1s; }
.vinyl-bento-card.is-playing .eq-bars span:nth-child(5) { animation-duration: 0.69s; animation-delay: -0.35s; }
.vinyl-bento-card.is-playing .eq-bars span:nth-child(6) { animation-duration: 0.86s; animation-delay: -0.5s; }
.vinyl-bento-card.is-playing .eq-bars span:nth-child(7) { animation-duration: 0.60s; animation-delay: -0.15s; }

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

.vinyl-ctrl-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vinyl-ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vinyl-ctrl-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFDF9;
  padding: 0 12px;
}

.vinyl-ctrl-btn.primary:hover {
  background: var(--accent-hover);
  color: #FFFDF9;
}

.floating-utility-dock.music-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dock-vinyl-orb.is-playing {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card);
}

.dock-vinyl-orb.is-playing svg {
  animation: vinylSpin 3.4s linear infinite;
}

/* Telemetry FPS Pill */
.fps-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-ink);
  font-size: 11px;
  font-weight: 600;
}

/* Bespoke Categorized Frosted-Glass Right-Click Context Menu */
.ctx-menu {
  position: fixed;
  z-index: 260;
  width: 238px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  padding: 6px 7px;
  border-radius: 15px;
  background: var(--glass-nav);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hover), inset 0 1px 0 var(--glass-border);
  display: none;
  flex-direction: column;
  gap: 1px;
  user-select: none;
}

.ctx-menu.open {
  display: flex;
  animation: ctxPopIn 0.14s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes ctxPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ctx-group-label {
  padding: 4px 10px 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  opacity: 0.85;
}

.ctx-item {
  width: 100%;
  padding: 5.5px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.ctx-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.ctx-key {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-muted);
  font-family: Consolas, monospace;
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.35;
  flex-shrink: 0;
}

.ctx-item:hover .ctx-key {
  color: var(--accent);
}

.ctx-sep {
  height: 1px;
  background: var(--line);
  margin: 3px 6px 2px;
}

.ctx-vol-row {
  padding: 4px 10px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.ctx-vol-slider {
  flex: 1;
  min-width: 0;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.ctx-vol-num {
  width: 32px;
  text-align: right;
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.ctx-switch {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--surface-muted);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  line-height: 1.4;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.ctx-switch.is-on {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.36);
  color: var(--c-emerald);
}

/* Cyberpunk / macOS Geek Terminal HUD */
#geek-terminal {
  z-index: 240;
}

.term-window {
  width: 92%;
  max-width: 680px;
  border-radius: 16px;
  background: rgba(18, 16, 15, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 245, 235, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
  color: #EAE2D8;
  overflow: hidden;
  animation: ctxPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.term-titlebar {
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 245, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.term-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: inline-block;
}
.tdot.red { background: #FF5F56; cursor: pointer; }
.tdot.yellow { background: #FFBD2E; }
.tdot.green { background: #27C93F; }

.term-output {
  height: 300px;
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 12.8px;
  line-height: 1.68;
  color: #DFD7CD;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-output .t-cmd { color: #E5A07C; font-weight: 600; }
.term-output .t-ok { color: #8EC7A8; }
.term-output .t-dim { color: #8A8279; }
.term-output .t-link { color: #E5A07C; text-decoration: underline; cursor: pointer; }

.term-quick-chips {
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 245, 235, 0.07);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.term-quick-chips button {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 235, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #C7BEB3;
  font-family: Consolas, monospace;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.term-quick-chips button:hover {
  border-color: #DF8568;
  color: #FFFDF9;
  background: rgba(223, 133, 104, 0.2);
}

.term-prompt-row {
  height: 44px;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 245, 235, 0.09);
  background: rgba(0, 0, 0, 0.26);
  display: flex;
  align-items: center;
  gap: 10px;
}

.term-prompt-arrow {
  color: #8EC7A8;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

#term-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: #FFFDF9;
  caret-color: #DF8568;
  font-family: inherit;
  font-size: 13px;
}

#term-input::placeholder {
  color: #6B645C;
}

/* =========================================================
   V13 GITHUB-STYLE AVATAR CARD & PROFILE PAGE (/about.html)
   ========================================================= */
.brand-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}

.brand:hover .brand-avatar {
  transform: scale(1.08) rotate(-4deg);
  border-color: var(--accent);
}

/* Homepage Hero GitHub Identity Strip */
.hero-gh-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  max-width: 100%;
}

.hero-gh-avatar-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.hero-gh-avatar-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface-solid);
  box-shadow: 0 0 0 1px var(--line-strong), 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-gh-avatar-ring:hover .hero-gh-avatar-link {
  transform: scale(1.04);
}

.hero-gh-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-avatar-cam {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.84);
  transition: all 0.18s ease;
  z-index: 3;
}

.hero-avatar-cam svg.ico {
  width: 10.5px;
  height: 10.5px;
}

.hero-gh-avatar-ring:hover .hero-avatar-cam {
  opacity: 1;
  transform: scale(1);
}

.hero-avatar-cam:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFDF9;
}

.hero-gh-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--surface-solid);
  background: var(--card-tinted);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.18s ease;
}

.hero-gh-status-dot:hover {
  transform: scale(1.15);
}

.hero-gh-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-gh-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.hero-gh-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.hero-gh-name:hover {
  color: var(--accent);
}

.hero-gh-handle {
  font-size: 12px;
  color: var(--ink-muted);
}

.hero-gh-handle:hover {
  color: var(--accent);
}

.hero-gh-loc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-muted);
  padding-left: 4px;
  border-left: 1px solid var(--line);
}

.hero-gh-tw-line {
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Full GitHub Profile Page (/about.html) */
.gh-profile-stage {
  padding-top: 34px;
  padding-bottom: 84px;
}

.gh-profile-grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gh-sidebar {
  position: sticky;
  top: 86px;
}

.gh-avatar-stage {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 14px;
}

.gh-avatar-circle {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--surface-solid);
  border: 2.5px solid var(--surface-solid);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-card);
  cursor: pointer;
}

.gh-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-avatar-circle:hover img {
  transform: scale(1.04);
}

.gh-avatar-hover-mask {
  position: absolute;
  inset: auto 0 0 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(16, 14, 12, 0.8));
  color: #FFFDF9;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gh-avatar-hover-mask svg.ico {
  width: 12px;
  height: 12px;
}

.gh-avatar-circle:hover .gh-avatar-hover-mask {
  opacity: 1;
}

/* GitHub Iconic 4-o'clock Floating Status Bubble on Avatar Rim */
.gh-status-bubble {
  position: absolute;
  bottom: 3px;
  left: 86px;
  height: 26px;
  max-width: 26px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  color: var(--ink-secondary);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  z-index: 4;
  transition: max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1), padding 0.24s ease, border-color 0.18s ease, color 0.18s ease;
}

.gh-status-bubble .pulse-dot {
  flex-shrink: 0;
}

.gh-status-bubble-text {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gh-avatar-stage:hover .gh-status-bubble,
.gh-status-bubble:hover,
.gh-status-bubble:focus-visible {
  max-width: 196px;
  padding: 0 11px 0 8px;
  border-color: var(--accent);
  color: var(--ink);
}

.gh-avatar-stage:hover .gh-status-bubble-text,
.gh-status-bubble:hover .gh-status-bubble-text,
.gh-status-bubble:focus-visible .gh-status-bubble-text {
  opacity: 1;
}

.gh-names-block {
  margin-bottom: 10px;
}

.gh-fullname {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

.gh-username {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.gh-bio {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.gh-status-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 244px;
  padding: 10px;
  border-radius: 13px;
  background: var(--glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hover);
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.gh-status-popover.open {
  display: flex;
  animation: ctxPopIn 0.14s cubic-bezier(0.2, 0, 0, 1);
}

.gh-status-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gh-status-presets button {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.gh-status-presets button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gh-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 31px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--input-shadow);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.gh-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--card-tinted);
}

.gh-meta-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.gh-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-meta-row svg.ico {
  color: var(--ink-muted);
}

.gh-sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0 14px;
}

.gh-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.gh-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gh-mini-badge {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

/* Right GitHub Column */
.gh-main-col {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.gh-readme-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 26px 24px;
  box-shadow: var(--shadow-card);
}

.gh-readme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.gh-icon-link {
  color: var(--ink-muted);
  display: inline-flex;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}

.gh-icon-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.gh-readme-body > *:first-child {
  margin-top: 0;
}
.gh-readme-body > *:last-child {
  margin-bottom: 0;
}

.gh-sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gh-sec-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.gh-sec-more {
  font-size: 12px;
  color: var(--ink-muted);
}

.gh-sec-more:hover {
  color: var(--accent);
}

.gh-pinned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gh-pin-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-pin-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.gh-pin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.gh-pin-title {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.42;
}

.gh-pin-title svg.ico {
  color: var(--ink-muted);
  margin-top: 3px;
  flex-shrink: 0;
}

.gh-vis-pill {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.gh-pin-desc {
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-pin-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.gh-lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

/* GitHub 45-Week Contribution Calendar (Authentic 11px Density + Weekday Labels) */
.gh-contrib-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.gh-contrib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gh-contrib-scroll {
  overflow: visible;
}

.gh-cal-layout {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.gh-weekdays {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  gap: 3px;
  font-size: 9.5px;
  line-height: 11px;
  color: var(--ink-muted);
  padding-bottom: 1px;
  flex-shrink: 0;
}

.gh-months-row {
  display: grid;
  gap: 3px;
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 5px;
  white-space: nowrap;
}

.gh-contrib-matrix {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  gap: 3px;
}

.gh-day {
  width: 100%;
  height: 11px;
  border-radius: 2.5px;
  background: var(--heat-0);
  box-shadow: inset 0 0 0 1px rgba(27, 31, 36, 0.05);
  display: block;
  transition: transform 0.12s ease;
}

[data-theme="dark"] .gh-day {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.gh-day.is-future {
  opacity: 0.22;
  pointer-events: none;
}

.gh-day[data-level="1"] { background: var(--heat-1); }
.gh-day[data-level="2"] { background: var(--heat-2); }
.gh-day[data-level="3"] { background: var(--heat-3); }
.gh-day[data-level="4"] { background: var(--accent-hover); }
.gh-day[data-href] { cursor: pointer; }
.gh-day:not(.is-future):hover {
  transform: scale(1.28);
  outline: 1.5px solid var(--ink-secondary);
  z-index: 2;
}

html.guest-preview .gh-day[data-priv-cell="1"] {
  background: var(--heat-0) !important;
  cursor: default;
}

.gh-contrib-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.gh-legend {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
}

.gh-legend i.gh-day {
  width: 10px;
  height: 10px;
  pointer-events: none;
}

/* GitHub Activity Stream */
.gh-activity-stream {
  position: relative;
  padding-left: 14px;
  display: grid;
  gap: 6px;
}

.gh-activity-stream::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: var(--line);
}

.gh-act-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 0;
  border-radius: 10px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.gh-act-item:hover {
  transform: translateX(3px);
}

.gh-act-item:hover .gh-act-title {
  color: var(--accent);
}

.gh-act-node {
  position: relative;
  z-index: 2;
  margin-left: -14px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-act-node svg.ico {
  width: 12.5px;
  height: 12.5px;
}

.gh-act-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-act-badge {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-size: 11px;
  flex-shrink: 0;
}

.gh-act-title {
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.gh-act-date {
  font-size: 11.5px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Floating Dark Micro-Tooltip (GitHub Heatmap Style) */
.floating-tip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 9px));
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(24, 21, 19, 0.94);
  color: #F6F1EA;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  z-index: 270;
  opacity: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: opacity 0.12s ease;
}

.floating-tip::after {
  content: "";
  position: absolute;
  left: var(--arrow-left, 50%);
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(24, 21, 19, 0.94);
}

.floating-tip.show {
  opacity: 1;
}

/* Vinyl Specular Sheen, Spinning Side-A Mark & Track Dots */
.vinyl-sheen {
  position: absolute;
  left: 0;
  top: 2px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(132deg, transparent 36%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0.03) 54%, transparent 64%);
  pointer-events: none;
  z-index: 3;
}

.vinyl-label-mark {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6.5px;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.85);
  line-height: 1;
  pointer-events: none;
}

.vinyl-track-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.v-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-size: 10px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.v-dot:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.v-dot.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* Article Byline Mini-Avatar Chip */
.article-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  transition: color 0.15s ease;
}

.article-author-chip:hover {
  color: var(--accent);
}

.article-author-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

/* Inline Moments Composer Custom Past/Future Time Pill */
.ic-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  box-shadow: var(--input-shadow);
  font-size: 12px;
  color: var(--ink-secondary);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.ic-time-pill:hover {
  border-color: var(--input-border-hover);
  color: var(--ink);
}

.ic-time-pill.is-custom {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.ic-time-trigger {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.ic-datetime-input {
  display: none;
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 12px;
  height: 26px;
  padding: 0;
}

.ic-time-pill.is-custom .ic-time-trigger {
  display: none;
}

.ic-time-pill.is-custom .ic-datetime-input {
  display: inline-block;
}

@media (max-width: 860px) {
  .gh-profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gh-sidebar {
    position: static;
  }
  .gh-avatar-stage,
  .gh-avatar-circle {
    width: 112px;
    height: 112px;
  }
  .gh-status-bubble {
    bottom: 4px;
    left: 82px;
  }
  .gh-pinned-grid {
    grid-template-columns: 1fr;
  }
  .wc-month-group {
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }
}

/* =========================================================
   V14 CHROMATIC PRISM & INTERACTIVE SHOW-OFF OVERHAUL:
   5 Multi-Spectrum Aura Palettes · Jewel-Tone Chips · Rainbow Holo Foil
   Multi-Hue Heatmaps · Live Audio Wave · Cursor Ring · Cyber Fortune
   ========================================================= */
:root {
  --c-coral: #EA4C3B;
  --c-rose: #E13D80;
  --c-amber: #D9820B;
  --c-emerald: #0D9668;
  --c-sky: #0884C7;
  --c-indigo: #485FE6;
  --c-violet: #7C4DFF;
}

[data-theme="dark"] {
  --c-coral: #FF7868;
  --c-rose: #F472B6;
  --c-amber: #FBBF24;
  --c-emerald: #34D399;
  --c-sky: #38BDF8;
  --c-indigo: #818CF8;
  --c-violet: #A78BFA;
}

/* 5 Switchable Multi-Color Aura Palettes */
:root,
[data-aura="prism"] {
  --accent: #E04F3E;
  --accent-2: #8B5CF6;
  --accent-hover: #C83D2D;
  --accent-soft: rgba(224, 79, 62, 0.12);
  --aura-1: rgba(255, 107, 74, 0.52);
  --aura-2: rgba(139, 92, 246, 0.44);
  --aura-3: rgba(16, 185, 129, 0.40);
  --aura-4: rgba(236, 72, 153, 0.36);
  --aura-5: rgba(14, 165, 233, 0.38);
  --grad-hero: linear-gradient(95deg, #EA4C3B 0%, #E13D80 28%, #7C4DFF 56%, #0884C7 82%, #0D9668 100%);
}

[data-aura="cyber"] {
  --accent: #0891B2;
  --accent-2: #EC4899;
  --accent-hover: #0E7490;
  --accent-soft: rgba(8, 145, 178, 0.13);
  --aura-1: rgba(6, 182, 212, 0.54);
  --aura-2: rgba(236, 72, 153, 0.48);
  --aura-3: rgba(139, 92, 246, 0.45);
  --aura-4: rgba(59, 130, 246, 0.40);
  --aura-5: rgba(16, 185, 129, 0.36);
  --grad-hero: linear-gradient(95deg, #06B6D4 0%, #3B82F6 32%, #8B5CF6 64%, #EC4899 100%);
}

[data-aura="aurora"] {
  --accent: #0D9668;
  --accent-2: #0EA5E9;
  --accent-hover: #057A55;
  --accent-soft: rgba(13, 150, 104, 0.13);
  --aura-1: rgba(16, 185, 129, 0.52);
  --aura-2: rgba(14, 165, 233, 0.46);
  --aura-3: rgba(245, 158, 11, 0.38);
  --aura-4: rgba(99, 102, 241, 0.36);
  --aura-5: rgba(45, 212, 191, 0.44);
  --grad-hero: linear-gradient(95deg, #059669 0%, #0EA5E9 38%, #6366F1 72%, #F59E0B 100%);
}

[data-aura="nebula"] {
  --accent: #7C3AED;
  --accent-2: #EC4899;
  --accent-hover: #6D28D9;
  --accent-soft: rgba(124, 58, 237, 0.13);
  --aura-1: rgba(139, 92, 246, 0.54);
  --aura-2: rgba(79, 70, 229, 0.46);
  --aura-3: rgba(244, 63, 94, 0.42);
  --aura-4: rgba(56, 189, 248, 0.38);
  --aura-5: rgba(192, 132, 252, 0.42);
  --grad-hero: linear-gradient(95deg, #7C3AED 0%, #4F46E5 35%, #EC4899 70%, #F97316 100%);
}

[data-aura="sunset"] {
  --accent: #EA580C;
  --accent-2: #E11D48;
  --accent-hover: #C2410C;
  --accent-soft: rgba(234, 88, 12, 0.13);
  --aura-1: rgba(249, 115, 22, 0.55);
  --aura-2: rgba(236, 72, 153, 0.46);
  --aura-3: rgba(234, 179, 8, 0.44);
  --aura-4: rgba(168, 85, 247, 0.34);
  --aura-5: rgba(244, 63, 94, 0.42);
  --grad-hero: linear-gradient(95deg, #EA580C 0%, #E11D48 38%, #9333EA 74%, #F59E0B 100%);
}

[data-theme="dark"][data-aura="prism"] { --accent: #FF7868; }
[data-theme="dark"][data-aura="cyber"] { --accent: #22D3EE; }
[data-theme="dark"][data-aura="aurora"] { --accent: #34D399; }
[data-theme="dark"][data-aura="nebula"] { --accent: #A78BFA; }
[data-theme="dark"][data-aura="sunset"] { --accent: #FB923C; }

/* Vivid 5-Blob Multi-Hue Ambient Aurora Sky */
.aurora-blob {
  filter: blur(82px);
  opacity: 0.62;
  transition: background 0.6s ease;
}
.aurora-blob.b1 { width: 540px; height: 390px; left: -2%; top: -110px; background: var(--aura-1); }
.aurora-blob.b2 { width: 520px; height: 380px; right: -3%; top: -80px; background: var(--aura-2); animation-delay: -5s; animation-duration: 21s; }
.aurora-blob.b3 { width: 460px; height: 340px; left: 32%; top: 90px; background: var(--aura-3); animation-delay: -11s; animation-duration: 25s; }
.aurora-blob.b4 { width: 480px; height: 350px; left: 6%; bottom: -120px; background: var(--aura-4); animation-delay: -8s; animation-duration: 23s; }
.aurora-blob.b5 { width: 460px; height: 340px; right: 10%; bottom: -90px; background: var(--aura-5); animation-delay: -15s; animation-duration: 27s; }

[data-theme="dark"] .aurora-blob {
  opacity: 0.32;
}

/* Flowing Multi-Spectrum Hero Headline, Progress Bar & CTA */
#scroll-progress,
.year-prog-fill {
  background: linear-gradient(90deg, #FF5E4D, #EC4899, #8B5CF6, #06B6D4, #10B981);
  background-size: 200% 100%;
  animation: chromaFlow 6s linear infinite;
}

.hero-hand-wrap .scramble-text {
  background: var(--grad-hero);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: chromaFlow 8s ease-in-out infinite alternate;
}

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

.write-cta-pill {
  background: linear-gradient(135deg, var(--accent), var(--accent-2, #EC4899));
  box-shadow: 0 4px 14px var(--accent-soft);
}
.write-cta-pill:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* 7 Vivid Jewel-Tone Category & Mood Chips */
.cat-coral {
  background: rgba(234, 76, 59, 0.12);
  color: var(--c-coral);
  border: 1px solid rgba(234, 76, 59, 0.22);
}
.cat-indigo {
  background: rgba(72, 95, 230, 0.12);
  color: var(--c-indigo);
  border: 1px solid rgba(72, 95, 230, 0.22);
}
.cat-violet {
  background: rgba(124, 77, 255, 0.12);
  color: var(--c-violet);
  border: 1px solid rgba(124, 77, 255, 0.24);
}
.cat-emerald {
  background: rgba(13, 150, 104, 0.12);
  color: var(--c-emerald);
  border: 1px solid rgba(13, 150, 104, 0.24);
}
.cat-amber {
  background: rgba(217, 130, 11, 0.13);
  color: var(--c-amber);
  border: 1px solid rgba(217, 130, 11, 0.25);
}
.cat-rose {
  background: rgba(225, 61, 128, 0.12);
  color: var(--c-rose);
  border: 1px solid rgba(225, 61, 128, 0.24);
}
.cat-sky {
  background: rgba(8, 132, 199, 0.12);
  color: var(--c-sky);
  border: 1px solid rgba(8, 132, 199, 0.24);
}

/* Chromatic Tinted Bento Widgets */
.bento-tint-mint {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 52%, rgba(14, 165, 233, 0.06) 100%);
  border-top: 2px solid rgba(16, 185, 129, 0.42);
}
.bento-tint-mint .widget-head-title svg { color: var(--c-emerald); }

.bento-tint-rose {
  background: linear-gradient(155deg, rgba(236, 72, 153, 0.08) 0%, var(--surface) 52%, rgba(245, 158, 11, 0.07) 100%);
  border-top: 2px solid rgba(236, 72, 153, 0.42);
}
.bento-tint-rose .widget-head-title svg { color: var(--c-rose); }

.bento-tint-violet {
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.10) 0%, var(--surface) 54%, rgba(234, 76, 59, 0.08) 100%);
  border-top: 2px solid rgba(139, 92, 246, 0.46);
  overflow: hidden;
}
.bento-tint-violet .widget-head-title svg { color: var(--c-violet); }

/* Multi-Spectrum Heatmap & Contribution Squares (Mint -> Sky -> Violet -> Coral) */
.heat-cell[data-level="1"],
.gh-day[data-level="1"] { background: #34D399; }
.heat-cell[data-level="2"],
.gh-day[data-level="2"] { background: #0EA5E9; }
.heat-cell[data-level="3"],
.gh-day[data-level="3"] { background: #8B5CF6; }
.gh-day[data-level="4"] { background: #F43F5E; }

/* Rainbow 7-Bar Equalizer & Live Audio Wave Canvas */
.eq-bars span:nth-child(1) { background: #FF5E5B; }
.eq-bars span:nth-child(2) { background: #F59E0B; }
.eq-bars span:nth-child(3) { background: #10B981; }
.eq-bars span:nth-child(4) { background: #06B6D4; }
.eq-bars span:nth-child(5) { background: #3B82F6; }
.eq-bars span:nth-child(6) { background: #8B5CF6; }
.eq-bars span:nth-child(7) { background: #EC4899; }

.vinyl-wave-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  pointer-events: none;
  opacity: 0.78;
  z-index: 1;
}

/* True Rainbow Iridescent Foil Glare on 3D Tilt Cards */
.holo-glare {
  background:
    radial-gradient(
      circle 250px at var(--gx, 50%) var(--gy, 50%),
      rgba(255, 255, 255, 0.42),
      rgba(255, 94, 98, 0.16) 24%,
      rgba(251, 191, 36, 0.14) 40%,
      rgba(16, 185, 129, 0.14) 56%,
      rgba(99, 102, 241, 0.16) 72%,
      transparent 86%
    );
  mix-blend-mode: overlay;
}

[data-theme="dark"] .holo-glare {
  background:
    radial-gradient(
      circle 260px at var(--gx, 50%) var(--gy, 50%),
      rgba(255, 255, 255, 0.22),
      rgba(244, 63, 94, 0.18) 26%,
      rgba(168, 85, 247, 0.18) 48%,
      rgba(6, 182, 212, 0.16) 68%,
      transparent 86%
    );
  mix-blend-mode: screen;
}

.post-card:hover,
.featured-lead-card:hover,
.shelf-card:hover,
.gh-pin-card:hover {
  border-color: rgba(139, 92, 246, 0.36);
}

/* Navbar Rainbow Aura Wheel & Popover */
.aura-picker-wrap {
  position: relative;
}

.aura-pill-btn {
  padding: 0 9px;
}

.aura-rainbow-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: conic-gradient(#FF5E5B, #F59E0B, #10B981, #06B6D4, #6366F1, #EC4899, #FF5E5B);
  box-shadow: 0 0 0 1.5px var(--surface-solid), 0 2px 6px rgba(0, 0, 0, 0.18);
  animation: vinylSpin 9s linear infinite;
}

.aura-popover {
  position: fixed;
  top: 64px;
  left: 0;
  width: 124px;
  padding: 6px;
  border-radius: 14px;
  background: var(--glass-nav);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hover);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 255;
}

.aura-popover.open {
  display: flex;
  animation: ctxPopIn 0.14s cubic-bezier(0.2, 0, 0, 1);
}

.aura-opt {
  border: none;
  background: transparent;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.aura-opt:hover,
.aura-opt.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.aura-opt i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Hero Stats + Iridescent Cyber Fortune Pill */
.hero-stats-and-fortune {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cyber-fortune-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  background: linear-gradient(120deg, rgba(236, 72, 153, 0.10), rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.10));
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.cyber-fortune-pill svg {
  color: var(--c-violet);
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cyber-fortune-pill:hover {
  border-color: var(--c-violet);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
  transform: translateY(-1px);
}

.cyber-fortune-pill.flipping svg {
  transform: rotate(180deg) scale(1.18);
}

/* Spring-Physics Chromatic Cursor Ring */
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 280;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.cursor-ring.visible {
  opacity: 1;
}

.cursor-ring.is-interactive {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent-soft), transparent 72%);
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring {
    display: none !important;
  }
}

/* =========================================================
   V15 DIGITAL PLAYGROUND:
   Eye-Tracking Cyber-Cat · Playable Rainbow Synth Keys
   Frosted Neon Danmaku Sky · Mechanical SFX · Prismatic Chrome
   ========================================================= */
html:not(.studio-html) ::selection {
  background: rgba(139, 92, 246, 0.24);
  color: var(--ink);
}

html:not(.studio-html)::-webkit-scrollbar-thumb,
html:not(.studio-html) ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF5E5B, #8B5CF6, #06B6D4);
  border-radius: 999px;
}

/* Colorful Striped Washi Tape on Polaroids (Light & Dark Modes) */
.polaroid-card[data-pos="0"]::before,
[data-theme="dark"] .polaroid-card[data-pos="0"]::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(244, 63, 94, 0.44),
    rgba(244, 63, 94, 0.44) 5px,
    rgba(255, 255, 255, 0.52) 5px,
    rgba(255, 255, 255, 0.52) 10px
  );
}
.polaroid-card[data-pos="1"]::before,
[data-theme="dark"] .polaroid-card[data-pos="1"]::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(139, 92, 246, 0.44),
    rgba(139, 92, 246, 0.44) 5px,
    rgba(255, 255, 255, 0.52) 5px,
    rgba(255, 255, 255, 0.52) 10px
  );
}
.polaroid-card[data-pos="2"]::before,
[data-theme="dark"] .polaroid-card[data-pos="2"]::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(16, 185, 129, 0.44),
    rgba(16, 185, 129, 0.44) 5px,
    rgba(255, 255, 255, 0.52) 5px,
    rgba(255, 255, 255, 0.52) 10px
  );
}

/* Living Prismatic Shimmer Rim on Featured Lead Card */
.featured-lead-card {
  border: 1px solid rgba(139, 92, 246, 0.24);
  box-shadow:
    0 10px 30px rgba(139, 92, 246, 0.06),
    0 4px 14px rgba(236, 72, 153, 0.05),
    var(--shadow-card);
}

/* Master Page Audio Navbar Pill */
.sfx-pill-btn {
  padding: 0 9px;
}

.sfx-pill-btn.active {
  border-color: var(--c-emerald);
  background: rgba(16, 185, 129, 0.14);
  color: var(--c-emerald);
}

.sfx-pill-btn.is-muted {
  border-color: rgba(234, 76, 59, 0.32);
  background: rgba(234, 76, 59, 0.09);
  color: var(--c-coral);
}

/* Playable 6-Note Pentatonic Rainbow Synth Keys inside Vinyl Card */
.vinyl-piano {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 8px;
  position: relative;
  z-index: 4;
}

.vinyl-piano button {
  height: 20px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--kc) 36%, transparent);
  border-bottom: 2.5px solid var(--kc);
  background: color-mix(in srgb, var(--kc) 10%, var(--surface-solid));
  color: var(--ink-secondary);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.12s ease, box-shadow 0.14s ease, color 0.12s ease;
}

.vinyl-piano button:hover,
.vinyl-piano button.playing {
  transform: translateY(1.5px);
  background: var(--kc);
  color: #FFF;
  box-shadow: 0 0 12px color-mix(in srgb, var(--kc) 55%, transparent);
}

/* =========================================================
   V16 MASTERPIECE SUITE:
   VisionOS Specular Glass · Linear Prismatic Border Glow
   Optical Blur Choreography · 16x16 Neon Pixel Crest & Studio
   Terminal Cyber-Snake · Selection Pill & High-DPI Quote Poster
   ========================================================= */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

[data-theme="dark"] .film-grain {
  opacity: 0.032;
}

/* VisionOS Top-Edge Specular Quartz Highlight */
.bento-widget,
.post-card,
.featured-lead-card,
.moment-card,
.shelf-card,
.gh-readme-card,
.gh-pin-card,
.gh-contrib-card,
.hero-gh-identity {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    var(--shadow-card);
}

[data-theme="dark"] .bento-widget,
[data-theme="dark"] .post-card,
[data-theme="dark"] .featured-lead-card,
[data-theme="dark"] .moment-card,
[data-theme="dark"] .shelf-card,
[data-theme="dark"] .gh-readme-card,
[data-theme="dark"] .gh-pin-card,
[data-theme="dark"] .gh-contrib-card,
[data-theme="dark"] .hero-gh-identity {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--shadow-card);
}

/* Linear / Raycast 1px Prismatic Cursor-Tracking Border Rim */
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent),
    var(--accent-2, #8B5CF6) 45%,
    transparent 78%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
  z-index: 3;
}

[data-spotlight]:hover::after {
  opacity: 0.85;
}

/* Optical Blur-to-Crisp Entrance Choreography */
.reveal-on-scroll {
  filter: blur(4px);
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  filter: blur(0);
}

#app-view.spa-entering {
  animation: opticalPageEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes opticalPageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.poster-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Terminal Rainbow Neon Cyber-Snake Stage */
.term-snake-wrap {
  margin: 6px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 10, 18, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.35);
  white-space: normal;
}

.term-snake-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  line-height: 1.3;
  color: #C4B5FD;
  margin-bottom: 8px;
}

.term-snake-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 22 / 10;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  background: #0D0B14;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Prose Text Selection Floating Pill & High-DPI Quote Poster Studio */
.prose-quote-bar {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%) scale(0.92);
  height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(24, 21, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 260;
  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.prose-quote-bar.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 10px)) scale(1);
}

.prose-quote-bar button {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.prose-quote-bar button:hover {
  background: rgba(139, 92, 246, 0.32);
  color: #FFFFFF;
}

.pq-div {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.16);
}

.poster-modal-box {
  width: min(440px, 92vw) !important;
  padding: 16px 18px 18px !important;
  background: var(--card-tinted) !important;
}

.poster-canvas-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.poster-canvas-wrap canvas {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}

.poster-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.poster-theme-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pt-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pt-dot.active {
  transform: scale(1.16);
  box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 3.5px var(--accent);
}

/* Raycast Command Palette Action Rows inside #search-results */
.cmd-action-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(139, 92, 246, 0.34);
  color: var(--c-violet);
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Automatic Province & City Geolocation Badges */
.loc-refresh-inline {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.3s ease;
}

.loc-refresh-inline:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.loc-refresh-inline.spinning svg {
  animation: spin360 0.7s linear infinite;
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

.ic-auto-loc-btn.active {
  border-color: var(--c-emerald);
  background: rgba(16, 185, 129, 0.12);
  color: var(--c-emerald);
  font-weight: 600;
}

/* =========================================================
   HOLISTIC MICRO-DETAIL POLISH (Typography, Modals, Responsive)
   ========================================================= */
.prose p {
  letter-spacing: 0.012em;
}

.code-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.copy-btn {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.gh-vis-pill.is-priv {
  border-color: rgba(124, 77, 255, 0.34);
  background: rgba(124, 77, 255, 0.09);
  color: var(--c-violet);
}

.modal-backdrop.open {
  animation: lbFade 0.15s ease;
}

.modal-backdrop.open .modal-box {
  animation: ctxPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-caption:empty {
  display: none;
}

.lb-caption:not(:empty) {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(24, 21, 19, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.empty-filter-hint {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  font-size: 13.5px;
}

.card-filtering-in {
  animation: filterCardIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes filterCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer button:hover,
.site-footer a:hover {
  color: var(--accent) !important;
}

/* Dual Auto + Manual Location Drawer inside Front-End Moments Composer */
.ic-loc-drawer {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--line-strong);
}

.ic-loc-drawer.open {
  display: flex;
}

.ic-loc-drawer input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}

#ic-loc-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-loc-act-btn {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s, border-color 0.14s;
}

.ic-loc-act-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Prevent Browser Accidental Drag-Selection & Edge Mini-Menu While Playing on Background */
body:not(.studio-body) {
  user-select: none;
  -webkit-user-select: none;
}

.prose,
.prose *,
.article-main-title,
.gh-readme-body,
.gh-readme-body *,
.moment-card p,
.moment-notes-box,
.moment-notes-box *,
.code-block pre,
.code-block code,
.term-output,
.term-output *,
input,
textarea,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

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

html.is-gravity-playing,
html.is-gravity-playing * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: grabbing !important;
}

@media (max-width: 880px) {
  #priv-label-text,
  .write-cta-pill span {
    display: none;
  }
  .write-cta-pill {
    padding: 0 10px;
  }
  .nav-center-pills a {
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .brand-title,
  #sfx-toggle-btn,
  #terminal-open {
    display: none;
  }
  .floating-nav {
    padding: 0 8px 0 10px;
    gap: 6px;
  }
  .nav-center-pills a {
    padding: 5px 8px;
    font-size: 12.5px;
  }
}
