/* veX Social Network — Dominic Ryker's Platform
   Visual language: dominicryker.com — Cinzel + Manrope, Gold #C5A059, Blueprint Grid, Tailwind-adjacent */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Manrope:wght@200;400;600&display=swap');

/* PIXELSTORTION BRANDING — matches dominicryker.com */
.ps-brand-dropdown {
  position: fixed; top: 1rem; left: 1.5rem; z-index: 9999;
}
.ps-brand {
  font-family: 'Manrope', sans-serif; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: #888; text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
.ps-brand:hover { color: #C5A059; text-shadow: 0 0 8px rgba(197,160,89,0.4); }
.ps-brand::after {
  content: ''; display: block; width: 100%; height: 1px;
  background: #C5A059; opacity: 0; transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s, opacity 0.3s;
}
.ps-brand:hover::after { opacity: 0.5; transform: scaleX(1); }

:root {
  --concrete: #1a1a1a;
  --steel: #4a4a4a;
  --gold: #C5A059;
  --gold-dim: rgba(197,160,89,0.4);
  --gold-glow: rgba(197,160,89,0.15);
  --void: #050505;
  --border-dim: rgba(255,255,255,0.05);
  --border-card: #333;
  --text-primary: #e5e5e5;
  --text-secondary: #999;
  --text-muted: #555;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Manrope', sans-serif;
  --nav-width: 240px;
  --sidebar-width: 300px;
  --feed-max: 600px;
}

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

html { font-size: 14px; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

h1, h2, h3, .serif { font-family: var(--font-serif); }

a { color: var(--gold); text-decoration: none; transition: all 0.3s; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--gold-dim); }

img { display: block; max-width: 100%; }

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

::selection { background: var(--gold-dim); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ═══ LAYOUT ═══ */
.app-layout { display: flex; justify-content: center; min-height: 100vh; }

/* LEFT NAV */
.nav-column {
  width: var(--nav-width);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 20px;
  border-right: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.nav-logo { padding: 16px 0 28px; display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 44px; height: 44px; border-radius: 2px; opacity: 0.9; margin-left: -22px; }
.nav-logo-text {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900;
  color: var(--gold); letter-spacing: 4px; text-transform: uppercase;
}

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

.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 0;
  font-size: 0.9rem; font-weight: 400; color: var(--text-secondary);
  transition: all 0.3s; cursor: pointer; text-decoration: none;
  border-left: 2px solid transparent;
}
.nav-item:hover { color: var(--gold); background: var(--gold-glow); border-left-color: var(--gold-dim); }
.nav-item.active { color: var(--gold); font-weight: 600; border-left-color: var(--gold); }
.nav-item-icon { font-size: 1rem; width: 20px; text-align: center; opacity: 0.7; }

.nav-spacer { flex: 1; }

/* PIXELSTORTION dropdown */
.pixelstortion-dropdown { margin-top: 16px; border-top: 1px solid var(--border-dim); padding-top: 16px; position: relative; }

.pixelstortion-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 0.5rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; width: 100%;
  font-family: var(--font-sans); border: none; background: none;
}
.pixelstortion-btn:hover { color: var(--gold); text-shadow: 0 0 8px var(--gold-dim); }
.pixelstortion-btn .arrow { margin-left: auto; transition: transform 0.2s; }
.pixelstortion-btn.open .arrow { transform: rotate(180deg); }

.pixelstortion-menu {
  position: absolute; top: 100%; left: 0; right: auto; bottom: auto; min-width: 140px;
  background: rgba(5,5,5,0.95); border: 1px solid var(--border-card);
  padding: 4px 0; display: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px); margin-top: 8px; z-index: 100;
}
.pixelstortion-menu.show { display: block; }

.menu-category {
  font-family: var(--font-serif); font-size: 0.6rem; font-weight: 700;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 20px 4px; border-bottom: 1px solid var(--border-dim);
  margin-bottom: 4px; background: rgba(0,0,0,0.5);
}

.pixelstortion-menu a,
.pixelstortion-menu .ps-menu-item {
  display: block; padding: 6px 20px; color: #ccc;
  font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  transition: all 0.2s; border-left: 2px solid transparent;
  text-decoration: none;
}
.pixelstortion-menu a:hover,
.pixelstortion-menu .ps-menu-item:hover {
  color: #fff; background: var(--gold-glow);
  border-left-color: var(--gold); padding-left: 24px;
}

.menu-category-wrapper { position: relative; }

.menu-category {
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; transition: all 0.2s;
}
.menu-category:hover { background: rgba(255,255,255,0.05); color: #bbb; }

.submenu {
  position: absolute; left: 100%; top: 0; margin-left: 2px;
  background: rgba(5,5,5,0.95); border: 1px solid var(--border-card);
  min-width: 180px; opacity: 0; visibility: hidden;
  transform: translateX(-5px); transition: all 0.2s ease;
  backdrop-filter: blur(8px); display: flex; flex-direction: column;
  z-index: 101; padding: 4px 0;
}
.menu-category-wrapper:hover > .submenu {
  opacity: 1; visibility: visible; transform: translateX(0);
}

/* CENTER FEED */
.feed-column {
  width: 100%; max-width: var(--feed-max);
  border-right: 1px solid var(--border-dim); min-height: 100vh;
}

.feed-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

.feed-tabs { display: flex; }

.feed-tab {
  flex: 1; text-align: center; padding: 14px 0;
  font-size: 0.85rem; font-weight: 400; color: var(--text-muted);
  cursor: pointer; position: relative; transition: color 0.3s;
  font-family: var(--font-sans); letter-spacing: 1px; text-transform: uppercase;
}
.feed-tab:hover { color: var(--text-secondary); }
.feed-tab.active { color: var(--gold); font-weight: 600; }
.feed-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--gold);
}

/* RIGHT SIDEBAR */
.sidebar-column {
  width: var(--sidebar-width); position: sticky; top: 0; height: 100vh;
  overflow-y: auto; padding: 20px; flex-shrink: 0;
}

.sidebar-card {
  background: rgba(10,10,10,0.8); border: 1px solid var(--border-card);
  backdrop-filter: blur(5px); padding: 16px; margin-bottom: 16px;
  transition: border-color 0.3s;
}
.sidebar-card:hover { border-color: var(--gold-dim); }

.sidebar-card h3 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px; letter-spacing: 1px;
}

.sidebar-profile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border-dim);
  transition: all 0.2s; cursor: pointer;
}
.sidebar-profile:last-child { border-bottom: none; }
.sidebar-profile:hover { padding-left: 4px; }

.sidebar-profile-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border-card);
}

.sidebar-profile-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.sidebar-profile-handle { font-size: 0.7rem; color: var(--text-muted); font-family: 'Courier Prime', monospace; }

.fiction-notice {
  font-size: 0.65rem; color: var(--text-muted); line-height: 1.7; padding: 14px;
  border: 1px solid var(--border-dim); background: rgba(10,10,10,0.5);
}
.fiction-notice strong { color: var(--text-secondary); display: block; margin-bottom: 4px; letter-spacing: 2px; font-size: 0.6rem; }

/* ═══ POST CARDS ═══ */
.post-card {
  display: flex; gap: 12px; padding: 16px;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s; cursor: default;
}
.post-card:hover { background: rgba(26,26,26,0.4); }

.post-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-card); transition: border-color 0.3s;
}
.post-card:hover .post-avatar { border-color: var(--gold-dim); }

.post-body { flex: 1; min-width: 0; }

.post-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }

.post-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }

.post-verified {
  color: var(--gold); font-size: 0.8rem; font-weight: 900;
  text-shadow: 0 0 8px var(--gold-dim);
  font-family: monospace;
}

.post-handle {
  font-size: 0.8rem; color: var(--text-muted);
  font-family: 'Courier Prime', monospace; cursor: pointer; transition: color 0.2s;
}
.post-handle:hover { color: var(--gold); }

.post-dot { color: var(--text-muted); font-size: 0.7rem; }
.post-time { font-size: 0.75rem; color: var(--text-muted); }

.post-content {
  font-size: 0.9rem; line-height: 1.6; color: #d1d5db;
  margin-bottom: 8px; word-wrap: break-word; white-space: pre-wrap;
  font-weight: 200;
}

.post-image {
  width: 100%; border: 1px solid var(--border-card);
  margin-bottom: 8px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #000;
  opacity: 0.85; transition: opacity 0.5s;
}
.post-card:hover .post-image { opacity: 1; }

.post-link {
  display: inline-block; color: var(--gold); font-size: 0.8rem;
  margin-bottom: 8px; letter-spacing: 0.5px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.post-link::before { content: '\01F517  '; }
.post-link:hover { border-color: var(--gold); }

.post-actions { display: flex; gap: 0; margin-top: 6px; max-width: 300px; }

.post-action {
  flex: 1; display: flex; align-items: center; gap: 6px;
  padding: 4px 0; font-size: 0.75rem; color: var(--text-muted);
  transition: color 0.2s; opacity: 0.5;
}
.post-action:hover { color: var(--gold); opacity: 1; }

/* ═══ TWITTER-STYLE THREAD GROUPS ═══ */
.thread-group {
  position: relative;
}

/* Thread connector line — runs from parent avatar down to replies */
.thread-group.has-replies > .post-card:first-child .post-avatar {
  position: relative;
}
.thread-group.has-replies > .post-card:first-child::after {
  content: '';
  position: absolute;
  left: 37px; /* center of 42px parent avatar + 16px padding */
  top: 58px;
  bottom: 0;
  width: 2px;
  background: var(--gold-dim);
  opacity: 0.4;
}

/* Reply cards — indented, smaller */
.post-card.is-reply {
  margin-left: 32px;
  padding: 10px 16px 10px 12px;
  border-left: none;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}

/* Horizontal connector from thread line to reply avatar */
.post-card.is-reply::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 26px;
  width: 14px;
  height: 2px;
  background: var(--gold-dim);
  opacity: 0.4;
}

/* Vertical continuation line for middle replies */
.thread-group .post-card.is-reply:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold-dim);
  opacity: 0.4;
}

/* Vertical line ending at the last reply */
.thread-group .post-card.is-reply:last-child::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  height: 28px;
  width: 2px;
  background: var(--gold-dim);
  opacity: 0.4;
}

/* Smaller avatar for replies */
.post-card.is-reply .post-avatar {
  width: 30px;
  height: 30px;
}

/* Reduced text sizing for replies */
.post-card.is-reply .post-name { font-size: 0.8rem; }
.post-card.is-reply .post-handle { font-size: 0.72rem; }
.post-card.is-reply .post-time { font-size: 0.68rem; }
.post-card.is-reply .post-content { font-size: 0.82rem; line-height: 1.5; }
.post-card.is-reply .post-image { aspect-ratio: 1 / 1; object-fit: contain; background: #000; }
.post-card.is-reply .post-actions { display: none; }
.post-card.is-reply .post-link { font-size: 0.72rem; }

/* Reply indicator */
.reply-indicator { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.5px; }
.reply-indicator span { color: var(--gold); }

/* Pinned post */
.post-card.pinned { border-left: 2px solid var(--gold); }
.pin-indicator {
  font-size: 0.7rem; color: var(--gold); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ═══ EXPLORE PROFILES ═══ */
.explore-grid { display: grid; grid-template-columns: 1fr; }

.explore-tier-label {
  padding: 16px; font-family: var(--font-serif);
  font-size: 0.85rem; font-weight: 700; color: var(--gold);
  border-bottom: 1px solid var(--border-dim);
  letter-spacing: 2px; text-transform: uppercase;
}

.profile-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border-dim);
  transition: all 0.3s; cursor: pointer;
  position: relative; overflow: hidden;
  min-height: 72px;
}
.profile-card:hover { background: rgba(26,26,26,0.4); transform: translateX(2px); border-left: 2px solid var(--gold-dim); }

/* Background image on right side of card */
.profile-card-bg {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 160px;
  background-size: cover; background-position: center;
  opacity: 0.12;
  transition: opacity 0.4s ease, width 0.4s ease;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,1) 100%);
}
.profile-card:hover .profile-card-bg {
  opacity: 0.3;
  width: 200px;
}

/* Visit overlay on the image area */
.profile-visit-overlay {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 160px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}
.profile-card:hover .profile-visit-overlay {
  opacity: 1;
  pointer-events: auto;
}
.profile-visit-link {
  color: var(--gold); text-decoration: none;
  font-family: var(--font-sans); font-size: 0.7rem;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.profile-visit-link:hover {
  background: var(--gold);
  color: var(--void);
  border-color: var(--gold);
  text-shadow: none;
}

.profile-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border-card); flex-shrink: 0;
  position: relative; z-index: 1;
}

.profile-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.profile-handle { font-size: 0.75rem; color: var(--text-muted); font-family: 'Courier Prime', monospace; }
.profile-bio { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 200; }

.profile-tier {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border: 1px solid var(--border-card);
  color: var(--text-muted); flex-shrink: 0; font-family: 'Courier Prime', monospace;
  position: relative; z-index: 1;
}
.profile-tier.primary { color: var(--gold); border-color: var(--gold-dim); }

.profile-card.memorial { opacity: 0.4; }
.profile-card.memorial .profile-name::after { content: ' †'; color: var(--text-muted); font-size: 0.7rem; }

/* ═══ FILTER BAR ═══ */
#filterBar {
  padding: 12px 16px; border-bottom: 1px solid var(--border-dim);
  font-size: 0.8rem; color: var(--text-secondary); font-family: 'Courier Prime', monospace;
  letter-spacing: 1px;
}

/* ═══ MOBILE ═══ */
.mobile-header {
  display: none; position: sticky; top: 0; z-index: 60;
  background: rgba(5,5,5,0.92); backdrop-filter: blur(12px);
  padding: 40px 16px 12px; border-bottom: 1px solid var(--border-dim);
  align-items: center; justify-content: space-between;
}
.mobile-header .nav-logo { padding: 0; flex-grow: 1; display: flex; justify-content: center; }
.mobile-header .nav-logo img { width: 44px; height: 44px; margin-left: 0; }
.mobile-pixelstortion {
  font-size: 0.5rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; transition: color 0.3s;
}
.mobile-pixelstortion:hover { color: var(--gold); }

.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(5,5,5,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-dim);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.mobile-nav-items { display: flex; justify-content: space-around; list-style: none; }
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 16px; color: var(--text-muted); font-size: 0.6rem;
  cursor: pointer; transition: color 0.2s; letter-spacing: 1px; text-transform: uppercase;
}
.mobile-nav-item .mobile-nav-icon { font-size: 1.2rem; }
.mobile-nav-item.active { color: var(--gold); }

/* Loading */
.loading { text-align: center; padding: 48px 16px; color: var(--text-muted); font-size: 0.8rem; }
.loading-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border-card); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in */
.post-card, .profile-card { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.footer-disclaimer {
  padding: 32px 16px; text-align: center;
  border-top: 1px solid var(--border-dim); margin-top: 48px;
}
.footer-disclaimer p {
  font-size: 0.6rem; color: var(--text-muted); line-height: 1.7;
  max-width: 480px; margin: 0 auto; letter-spacing: 1px;
}

/* ═══ PROFILE MODAL ═══ */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); z-index: 200;
  align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal-content {
  background: var(--concrete); border: 1px solid var(--gold-dim);
  width: 90%; max-width: 400px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.9); position: relative;
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.open .modal-content { transform: translateY(0); }
.modal-header {
  height: 120px; background: rgba(10,10,10,0.5); border-bottom: 1px solid var(--border-card); position: relative;
  background-size: cover; background-position: center;
  transition: background-image 0.3s;
}
.modal-header.has-image {
  background-blend-mode: overlay;
  background-color: rgba(10,10,10,0.4);
}
.modal-header.has-image::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, var(--concrete) 0%, transparent 100%);
  pointer-events: none;
}
.modal-close {
  position: absolute; top: 12px; right: 16px; font-size: 1.5rem;
  color: var(--text-muted); cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }
.modal-avatar {
  width: 140px; height: 140px; border-radius: 50%; border: 4px solid var(--concrete);
  object-fit: cover; position: absolute; top: 50px; left: 20px; background: var(--void);
}
.modal-body { padding: 80px 20px 24px; position: relative; }
.modal-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.modal-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); letter-spacing: 1px; }
.modal-handle { font-family: 'Courier Prime', monospace; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.modal-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; font-weight: 200; }
.modal-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.4;
}
.modal-site-link {
  position: absolute; top: 20px; right: 40px;
  margin-top: 0 !important;
  padding: 10px 24px !important;
  font-size: 1.1rem !important;
  font-weight: 700;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) { .sidebar-column { display: none; } .feed-column { max-width: 100%; } }
@media (max-width: 768px) {
  .nav-column { display: none; }
  .mobile-header { display: flex; }
  .mobile-nav { display: block; }
  .feed-column { max-width: 100%; border-right: none; padding-bottom: 72px; }
  .post-card { padding: 12px; }
  .post-avatar { width: 36px; height: 36px; }
  .submenu {
    position: static !important;
    margin-left: 0 !important;
    transform: none !important;
    border: none !important;
    border-left: 2px solid #333 !important;
    background: rgba(0,0,0,0.2) !important;
    min-width: auto !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    padding-left: 10px !important;
  }
  .menu-category-wrapper:hover > .submenu {
    display: flex !important;
    transform: none !important;
  }
  .pixelstortion-menu {
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
  /* Reduce reply indent on mobile */
  .post-card.is-reply { margin-left: 20px; padding: 8px 12px 8px 10px; }
  .post-card.is-reply .post-avatar { width: 26px; height: 26px; }
  .thread-group.has-replies > .post-card:first-child::after { left: 30px; }
  .post-card.is-reply::before { left: -9px; width: 10px; top: 22px; }
  .thread-group .post-card.is-reply:not(:last-child)::after { left: -10px; }
  .thread-group .post-card.is-reply:last-child::after { left: -10px; height: 24px; }
}
@media (max-width: 480px) { html { font-size: 13px; } }

/* ═══ INTRO OVERLAY ═══ */
.intro-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--void); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 1.5s ease-in-out;
}
.intro-overlay.fade-out { opacity: 0; pointer-events: none; }
.intro-text { text-align: center; color: var(--text-primary); max-width: 400px; padding: 20px; }
.intro-text h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px; }
.intro-text p { font-family: var(--font-sans); font-size: 1rem; color: #ccc; letter-spacing: 2px; text-transform: uppercase; font-weight: 200; }
.intro-divider { width: 40px; height: 1px; background: var(--gold); margin: 24px auto; opacity: 0.5; }
.intro-text .intro-small { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; letter-spacing: 1px; }
